Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
b4e70030 | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
b4e70030 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
c906108c SS |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
bec39cab AC |
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+"$@"}'='"$@"' | |
b4e70030 JB |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
bec39cab AC |
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. | |
b4e70030 | 33 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
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 | |
b4e70030 | 47 | $as_unset $as_var |
bec39cab AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
b4e70030 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
b4e70030 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
b4e70030 | 66 | as_me=`$as_basename "$0" || |
bec39cab AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 71 | echo X/"$0" | |
b4e70030 JB |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
bec39cab | 76 | |
4e8d927d | 77 | |
b4e70030 JB |
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 | |
4e8d927d | 85 | |
b4e70030 JB |
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 | |
4e8d927d DJ |
97 | fi |
98 | ||
4e8d927d | 99 | |
b4e70030 JB |
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 | |
4e8d927d | 116 | |
b4e70030 JB |
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 | '') | |
bec39cab | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b4e70030 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bec39cab AC |
132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
b4e70030 JB |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
bec39cab | 137 | /*) |
b4e70030 | 138 | if ("$as_dir/$as_base" -c ' |
4e8d927d DJ |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
b4e70030 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4e8d927d | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
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 | |
bec39cab AC |
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 | |
b4e70030 JB |
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. | |
bec39cab | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
bec39cab AC |
165 | sed ' |
166 | N | |
b4e70030 JB |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 170 | t loop |
b4e70030 JB |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 173 | ' >$as_me.lineno && |
b4e70030 | 174 | chmod +x $as_me.lineno || |
bec39cab AC |
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 | |
b4e70030 JB |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
bec39cab AC |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
b4e70030 JB |
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= ;; | |
bec39cab AC |
192 | esac |
193 | ||
b4e70030 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
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 | |
b4e70030 JB |
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 | |
bec39cab | 207 | as_ln_s='cp -p' |
b4e70030 JB |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
bec39cab AC |
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 | |
b4e70030 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
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 | ||
b4e70030 | 225 | as_executable_p="test -f" |
bec39cab AC |
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 | ||
b4e70030 JB |
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 | |
bec39cab | 242 | |
c906108c | 243 | |
bec39cab AC |
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 | ||
b4e70030 JB |
249 | exec 6>&1 |
250 | ||
bec39cab AC |
251 | # |
252 | # Initializations. | |
253 | # | |
c906108c | 254 | ac_default_prefix=/usr/local |
bec39cab AC |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
b4e70030 JB |
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 | ||
bec39cab AC |
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> | |
b4e70030 JB |
303 | #else |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
bec39cab AC |
307 | #endif |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
783e057b DJ |
312 | gl_header_list= |
313 | ac_subdirs_all="$ac_subdirs_all doc testsuite" | |
b4e70030 JB |
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" | |
cfd53605 | 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 GDB_NM_FILE datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS' |
a4ce5b0d | 318 | ac_subst_files='host_makefile_frag' |
d5af19ba | 319 | ac_pwd=`pwd` |
c906108c SS |
320 | |
321 | # Initialize some variables set by options. | |
bec39cab AC |
322 | ac_init_help= |
323 | ac_init_version=false | |
c906108c SS |
324 | # The variables have the same names as the options, with |
325 | # dashes changed to underlines. | |
bec39cab | 326 | cache_file=/dev/null |
c906108c | 327 | exec_prefix=NONE |
c906108c | 328 | no_create= |
c906108c SS |
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= | |
c906108c SS |
337 | verbose= |
338 | x_includes=NONE | |
339 | x_libraries=NONE | |
bec39cab AC |
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. | |
c906108c SS |
346 | bindir='${exec_prefix}/bin' |
347 | sbindir='${exec_prefix}/sbin' | |
348 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 349 | datadir='${prefix}/share' |
c906108c SS |
350 | sysconfdir='${prefix}/etc' |
351 | sharedstatedir='${prefix}/com' | |
352 | localstatedir='${prefix}/var' | |
b4e70030 | 353 | libdir='${exec_prefix}/lib' |
c906108c SS |
354 | includedir='${prefix}/include' |
355 | oldincludedir='/usr/include' | |
b4e70030 JB |
356 | infodir='${prefix}/info' |
357 | mandir='${prefix}/man' | |
c906108c | 358 | |
c906108c SS |
359 | ac_prev= |
360 | for ac_option | |
361 | do | |
c906108c SS |
362 | # If the previous option needs an argument, assign it. |
363 | if test -n "$ac_prev"; then | |
b4e70030 | 364 | eval "$ac_prev=\$ac_option" |
c906108c SS |
365 | ac_prev= |
366 | continue | |
367 | fi | |
368 | ||
b4e70030 | 369 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
370 | |
371 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
372 | ||
b4e70030 | 373 | case $ac_option in |
c906108c SS |
374 | |
375 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
376 | ac_prev=bindir ;; | |
377 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 378 | bindir=$ac_optarg ;; |
c906108c SS |
379 | |
380 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 381 | ac_prev=build_alias ;; |
c906108c | 382 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 383 | build_alias=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab AC |
390 | cache_file=$ac_optarg ;; |
391 | ||
392 | --config-cache | -C) | |
393 | cache_file=config.cache ;; | |
c906108c | 394 | |
b4e70030 | 395 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 396 | ac_prev=datadir ;; |
b4e70030 JB |
397 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
398 | | --da=*) | |
bec39cab | 399 | datadir=$ac_optarg ;; |
c906108c SS |
400 | |
401 | -disable-* | --disable-*) | |
bec39cab | 402 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 403 | # Reject names that are not valid shell variable names. |
bec39cab AC |
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'` | |
b4e70030 | 408 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
409 | |
410 | -enable-* | --enable-*) | |
bec39cab | 411 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 412 | # Reject names that are not valid shell variable names. |
bec39cab AC |
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'` | |
b4e70030 JB |
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'" ;; | |
c906108c SS |
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=*) | |
bec39cab | 430 | exec_prefix=$ac_optarg ;; |
c906108c SS |
431 | |
432 | -gas | --gas | --ga | --g) | |
433 | # Obsolete; use --with-gas. | |
434 | with_gas=yes ;; | |
435 | ||
bec39cab AC |
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 ;; | |
c906108c SS |
442 | |
443 | -host | --host | --hos | --ho) | |
bec39cab | 444 | ac_prev=host_alias ;; |
c906108c | 445 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 446 | host_alias=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 453 | includedir=$ac_optarg ;; |
c906108c SS |
454 | |
455 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
456 | ac_prev=infodir ;; | |
457 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 458 | infodir=$ac_optarg ;; |
c906108c SS |
459 | |
460 | -libdir | --libdir | --libdi | --libd) | |
461 | ac_prev=libdir ;; | |
462 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 463 | libdir=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 470 | libexecdir=$ac_optarg ;; |
c906108c SS |
471 | |
472 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
473 | | --localstate | --localstat | --localsta | --localst \ |
474 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
475 | ac_prev=localstatedir ;; |
476 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
477 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
478 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 479 | localstatedir=$ac_optarg ;; |
c906108c SS |
480 | |
481 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
482 | ac_prev=mandir ;; | |
483 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 484 | mandir=$ac_optarg ;; |
c906108c SS |
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 \ | |
bec39cab | 491 | | --no-cr | --no-c | -n) |
c906108c SS |
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=*) | |
bec39cab | 505 | oldincludedir=$ac_optarg ;; |
c906108c SS |
506 | |
507 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
508 | ac_prev=prefix ;; | |
509 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 510 | prefix=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 517 | program_prefix=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 524 | program_suffix=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 541 | program_transform_name=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 551 | sbindir=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 562 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
563 | |
564 | -site | --site | --sit) | |
565 | ac_prev=site ;; | |
566 | -site=* | --site=* | --sit=*) | |
bec39cab | 567 | site=$ac_optarg ;; |
3ace7edb | 568 | |
c906108c SS |
569 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
570 | ac_prev=srcdir ;; | |
571 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 572 | srcdir=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 579 | sysconfdir=$ac_optarg ;; |
c906108c SS |
580 | |
581 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 582 | ac_prev=target_alias ;; |
c906108c | 583 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 584 | target_alias=$ac_optarg ;; |
c906108c SS |
585 | |
586 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
587 | verbose=yes ;; | |
588 | ||
bec39cab AC |
589 | -version | --version | --versio | --versi | --vers | -V) |
590 | ac_init_version=: ;; | |
c906108c SS |
591 | |
592 | -with-* | --with-*) | |
bec39cab | 593 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 594 | # Reject names that are not valid shell variable names. |
bec39cab AC |
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; }; } | |
c906108c | 598 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
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'" ;; | |
c906108c SS |
604 | |
605 | -without-* | --without-*) | |
bec39cab | 606 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 607 | # Reject names that are not valid shell variable names. |
bec39cab AC |
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'` | |
b4e70030 | 612 | eval "with_$ac_package=no" ;; |
c906108c SS |
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=*) | |
bec39cab | 623 | x_includes=$ac_optarg ;; |
c906108c SS |
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=*) | |
bec39cab | 630 | x_libraries=$ac_optarg ;; |
c906108c | 631 | |
bec39cab AC |
632 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
633 | Try \`$0 --help' for more information." >&2 | |
634 | { (exit 1); exit 1; }; } | |
c906108c SS |
635 | ;; |
636 | ||
bec39cab AC |
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; }; } | |
b4e70030 JB |
643 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
644 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
645 | export $ac_envvar ;; |
646 | ||
c906108c | 647 | *) |
bec39cab AC |
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} | |
c906108c SS |
653 | ;; |
654 | ||
655 | esac | |
656 | done | |
657 | ||
658 | if test -n "$ac_prev"; then | |
bec39cab AC |
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; }; } | |
c906108c | 662 | fi |
c906108c | 663 | |
b4e70030 JB |
664 | # Be sure to have absolute paths. |
665 | for ac_var in exec_prefix prefix | |
c906108c | 666 | do |
b4e70030 | 667 | eval ac_val=$`echo $ac_var` |
bec39cab | 668 | case $ac_val in |
b4e70030 JB |
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; }; };; | |
c906108c SS |
684 | esac |
685 | done | |
686 | ||
bec39cab AC |
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 | |
c906108c | 704 | |
bec39cab AC |
705 | ac_tool_prefix= |
706 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
707 | ||
708 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 709 | |
c906108c SS |
710 | |
711 | # Find the source files, if location was not specified. | |
712 | if test -z "$srcdir"; then | |
713 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
714 | # Try the directory containing this script, then its parent. |
715 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
716 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
717 | X"$0" : 'X\(//\)[^/]' \| \ | |
718 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
719 | X"$0" : 'X\(/\)' \| \ |
720 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 721 | echo X"$0" | |
b4e70030 JB |
722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
723 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
724 | /^X\(\/\/\)$/{ s//\1/; q; } | |
725 | /^X\(\/\).*/{ s//\1/; q; } | |
726 | s/.*/./; q'` | |
c906108c | 727 | srcdir=$ac_confdir |
b4e70030 | 728 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
729 | srcdir=.. |
730 | fi | |
731 | else | |
732 | ac_srcdir_defaulted=no | |
733 | fi | |
b4e70030 JB |
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 | |
bec39cab | 740 | { (exit 1); exit 1; }; } |
b4e70030 | 741 | fi |
c906108c | 742 | fi |
b4e70030 JB |
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 | |
bec39cab | 745 | { (exit 1); exit 1; }; } |
b4e70030 JB |
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 | |
c906108c | 779 | |
bec39cab AC |
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 | ||
b4e70030 JB |
807 | _ACEOF |
808 | ||
809 | cat <<_ACEOF | |
bec39cab AC |
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] | |
b4e70030 | 827 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
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] | |
b4e70030 JB |
834 | --infodir=DIR info documentation [PREFIX/info] |
835 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
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] | |
85981d60 AC |
863 | --enable-maintainer-mode enable make rules and dependencies not useful |
864 | (and sometimes confusing) to the casual installer | |
e28b3332 DJ |
865 | --disable-dependency-tracking speeds up one-time build |
866 | --enable-dependency-tracking do not reject slow dependency extractors | |
a1220294 TT |
867 | --enable-targets=TARGETS |
868 | alternative target configurations | |
c0993dbe | 869 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
bec39cab AC |
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 | |
3841debe | 875 | --disable-rpath do not hardcode runtime library paths |
a1220294 | 876 | --enable-werror treat compile warnings as errors |
32c1c914 | 877 | --enable-build-warnings enable build-time compiler warnings if gcc is used |
a1220294 | 878 | --enable-gdb-build-warnings |
32c1c914 | 879 | enable GDB specific build-time compiler warnings if |
a1220294 | 880 | gcc is used |
32c1c914 | 881 | --enable-sim link gdb with simulator |
bec39cab AC |
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) | |
a1220294 | 887 | --with-separate-debug-dir=PATH |
32c1c914 | 888 | look for global separate debug info in this path |
a1220294 | 889 | LIBDIR/debug |
29b0e8a2 | 890 | --with-relocated-sources=PATH |
32c1c914 TT |
891 | automatically relocate this path for source files |
892 | --with-libunwind use libunwind frame unwinding support | |
cb01cfba JB |
893 | --with-curses use the curses library instead of the termcap |
894 | library | |
c16158bc JM |
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 | |
a1220294 TT |
897 | --with-libiconv-prefix=DIR |
898 | search for libiconv in DIR/include and DIR/lib | |
6a30b0a5 | 899 | --with-system-readline use installed readline library |
5c39566f | 900 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
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 | |
d57a3c85 | 904 | --with-python include python support (auto/yes/no/<path>) |
a1220294 TT |
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) | |
32c1c914 TT |
909 | --with-sysroot[=DIR] |
910 | search for usr/lib et al within DIR | |
a1220294 | 911 | --with-system-gdbinit=FILE |
32c1c914 | 912 | automatically load a system-wide gdbinit file |
5062cc19 KS |
913 | --with-tcl directory containing tcl configuration (tclConfig.sh) |
914 | --with-tk directory containing tk configuration (tkConfig.sh) | |
bec39cab | 915 | --with-x use the X Window System |
26e251b6 JM |
916 | --with-datarootdir use datarootdir as the data root directory. |
917 | --with-docdir install documentation in this directory. | |
918 | --with-pdfdir install pdf in this directory. | |
919 | --with-htmldir install html in this directory. | |
bec39cab AC |
920 | |
921 | Some influential environment variables: | |
922 | CC C compiler command | |
923 | CFLAGS C compiler flags | |
924 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
925 | nonstandard directory <lib dir> | |
b4e70030 JB |
926 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
927 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
928 | CPP C preprocessor |
929 | ||
930 | Use these variables to override the choices made by `configure' or to help | |
931 | it to find libraries and programs with nonstandard names/locations. | |
932 | ||
933 | _ACEOF | |
934 | fi | |
935 | ||
936 | if test "$ac_init_help" = "recursive"; then | |
937 | # If there are subdirs, report their specific --help. | |
b4e70030 | 938 | ac_popdir=`pwd` |
bec39cab AC |
939 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
940 | test -d $ac_dir || continue | |
941 | ac_builddir=. | |
942 | ||
b4e70030 | 943 | if test "$ac_dir" != .; then |
bec39cab | 944 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
945 | # A "../" for each directory in $ac_dir_suffix. |
946 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
947 | else | |
948 | ac_dir_suffix= ac_top_builddir= | |
949 | fi | |
bec39cab AC |
950 | |
951 | case $srcdir in | |
b4e70030 | 952 | .) # No --srcdir option. We are building in place. |
bec39cab | 953 | ac_srcdir=. |
b4e70030 JB |
954 | if test -z "$ac_top_builddir"; then |
955 | ac_top_srcdir=. | |
956 | else | |
957 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
958 | fi ;; | |
959 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 960 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
961 | ac_top_srcdir=$srcdir ;; |
962 | *) # Relative path. | |
963 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
964 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
965 | esac | |
966 | ||
967 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
968 | # the directories may not exist. | |
969 | case `pwd` in | |
970 | .) ac_abs_builddir="$ac_dir";; | |
971 | *) | |
972 | case "$ac_dir" in | |
973 | .) ac_abs_builddir=`pwd`;; | |
974 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
975 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
976 | esac;; | |
977 | esac | |
978 | case $ac_abs_builddir in | |
979 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
980 | *) | |
981 | case ${ac_top_builddir}. in | |
982 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
983 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
984 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
985 | esac;; | |
986 | esac | |
987 | case $ac_abs_builddir in | |
988 | .) ac_abs_srcdir=$ac_srcdir;; | |
989 | *) | |
990 | case $ac_srcdir in | |
991 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
992 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
993 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
994 | esac;; | |
995 | esac | |
996 | case $ac_abs_builddir in | |
997 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
998 | *) | |
999 | case $ac_top_srcdir in | |
1000 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1001 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1002 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1003 | esac;; | |
bec39cab AC |
1004 | esac |
1005 | ||
b4e70030 JB |
1006 | cd $ac_dir |
1007 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 1008 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 1009 | echo |
bec39cab AC |
1010 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1011 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 1012 | echo |
bec39cab | 1013 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
1014 | elif test -f $ac_srcdir/configure.ac || |
1015 | test -f $ac_srcdir/configure.in; then | |
1016 | echo | |
1017 | $ac_configure --help | |
3ace7edb | 1018 | else |
bec39cab | 1019 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
1020 | fi |
1021 | cd $ac_popdir | |
bec39cab AC |
1022 | done |
1023 | fi | |
1024 | ||
b4e70030 | 1025 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1026 | if $ac_init_version; then |
1027 | cat <<\_ACEOF | |
1028 | ||
b4e70030 | 1029 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1030 | This configure script is free software; the Free Software Foundation |
1031 | gives unlimited permission to copy, distribute and modify it. | |
1032 | _ACEOF | |
b4e70030 | 1033 | exit 0 |
bec39cab | 1034 | fi |
b4e70030 JB |
1035 | exec 5>config.log |
1036 | cat >&5 <<_ACEOF | |
bec39cab AC |
1037 | This file contains any messages produced by compilers while |
1038 | running configure, to aid debugging if configure makes a mistake. | |
1039 | ||
1040 | It was created by $as_me, which was | |
b4e70030 | 1041 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1042 | |
1043 | $ $0 $@ | |
1044 | ||
1045 | _ACEOF | |
1046 | { | |
1047 | cat <<_ASUNAME | |
1048 | ## --------- ## | |
1049 | ## Platform. ## | |
1050 | ## --------- ## | |
1051 | ||
1052 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1053 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1054 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1055 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1056 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1057 | ||
1058 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1059 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1060 | ||
1061 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1062 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1063 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1064 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1065 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1066 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1067 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1068 | ||
1069 | _ASUNAME | |
1070 | ||
1071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1072 | for as_dir in $PATH | |
1073 | do | |
1074 | IFS=$as_save_IFS | |
1075 | test -z "$as_dir" && as_dir=. | |
1076 | echo "PATH: $as_dir" | |
1077 | done | |
1078 | ||
1079 | } >&5 | |
1080 | ||
1081 | cat >&5 <<_ACEOF | |
1082 | ||
1083 | ||
1084 | ## ----------- ## | |
1085 | ## Core tests. ## | |
1086 | ## ----------- ## | |
1087 | ||
1088 | _ACEOF | |
1089 | ||
1090 | ||
1091 | # Keep a trace of the command line. | |
1092 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1093 | # Strip out --silent because we don't want to record it for future runs. | |
1094 | # Also quote any args containing shell meta-characters. | |
1095 | # Make two passes to allow for proper duplicate-argument suppression. | |
1096 | ac_configure_args= | |
1097 | ac_configure_args0= | |
1098 | ac_configure_args1= | |
1099 | ac_sep= | |
1100 | ac_must_keep_next=false | |
1101 | for ac_pass in 1 2 | |
1102 | do | |
1103 | for ac_arg | |
1104 | do | |
1105 | case $ac_arg in | |
1106 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1107 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1108 | | -silent | --silent | --silen | --sile | --sil) | |
1109 | continue ;; | |
b4e70030 | 1110 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1111 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1112 | esac | |
1113 | case $ac_pass in | |
1114 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1115 | 2) | |
1116 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1117 | if test $ac_must_keep_next = true; then | |
1118 | ac_must_keep_next=false # Got value, back to normal. | |
1119 | else | |
1120 | case $ac_arg in | |
1121 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1122 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1123 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1124 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1125 | case "$ac_configure_args0 " in | |
1126 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1127 | esac | |
1128 | ;; | |
1129 | -* ) ac_must_keep_next=true ;; | |
1130 | esac | |
1131 | fi | |
1132 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1133 | # Get rid of the leading space. | |
1134 | ac_sep=" " | |
1135 | ;; | |
1136 | esac | |
1137 | done | |
1138 | done | |
1139 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1140 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1141 | ||
1142 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1143 | # config.log. We remove comments because anyway the quotes in there | |
1144 | # would cause problems or look ugly. | |
b4e70030 JB |
1145 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1146 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1147 | trap 'exit_status=$? |
1148 | # Save into config.log some information that might help in debugging. | |
1149 | { | |
1150 | echo | |
1151 | ||
1152 | cat <<\_ASBOX | |
1153 | ## ---------------- ## | |
1154 | ## Cache variables. ## | |
1155 | ## ---------------- ## | |
1156 | _ASBOX | |
1157 | echo | |
1158 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1159 | { |
bec39cab | 1160 | (set) 2>&1 | |
b4e70030 JB |
1161 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1162 | *ac_space=\ *) | |
bec39cab | 1163 | sed -n \ |
b4e70030 JB |
1164 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1165 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1166 | ;; | |
bec39cab | 1167 | *) |
b4e70030 JB |
1168 | sed -n \ |
1169 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1170 | ;; |
b4e70030 JB |
1171 | esac; |
1172 | } | |
bec39cab AC |
1173 | echo |
1174 | ||
1175 | cat <<\_ASBOX | |
1176 | ## ----------------- ## | |
1177 | ## Output variables. ## | |
1178 | ## ----------------- ## | |
1179 | _ASBOX | |
1180 | echo | |
1181 | for ac_var in $ac_subst_vars | |
1182 | do | |
b4e70030 JB |
1183 | eval ac_val=$`echo $ac_var` |
1184 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1185 | done | sort |
1186 | echo | |
1187 | ||
1188 | if test -n "$ac_subst_files"; then | |
1189 | cat <<\_ASBOX | |
b4e70030 JB |
1190 | ## ------------- ## |
1191 | ## Output files. ## | |
1192 | ## ------------- ## | |
bec39cab AC |
1193 | _ASBOX |
1194 | echo | |
1195 | for ac_var in $ac_subst_files | |
1196 | do | |
b4e70030 JB |
1197 | eval ac_val=$`echo $ac_var` |
1198 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1199 | done | sort |
1200 | echo | |
1201 | fi | |
1202 | ||
1203 | if test -s confdefs.h; then | |
1204 | cat <<\_ASBOX | |
1205 | ## ----------- ## | |
1206 | ## confdefs.h. ## | |
1207 | ## ----------- ## | |
1208 | _ASBOX | |
1209 | echo | |
b4e70030 | 1210 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1211 | echo |
3ace7edb | 1212 | fi |
bec39cab AC |
1213 | test "$ac_signal" != 0 && |
1214 | echo "$as_me: caught signal $ac_signal" | |
1215 | echo "$as_me: exit $exit_status" | |
1216 | } >&5 | |
b4e70030 JB |
1217 | rm -f core *.core && |
1218 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1219 | exit $exit_status |
b4e70030 | 1220 | ' 0 |
bec39cab AC |
1221 | for ac_signal in 1 2 13 15; do |
1222 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1223 | done | |
1224 | ac_signal=0 | |
1225 | ||
1226 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1227 | rm -rf conftest* confdefs.h |
1228 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1229 | echo >confdefs.h | |
bec39cab AC |
1230 | |
1231 | # Predefined preprocessor variables. | |
1232 | ||
1233 | cat >>confdefs.h <<_ACEOF | |
1234 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1235 | _ACEOF | |
1236 | ||
1237 | ||
1238 | cat >>confdefs.h <<_ACEOF | |
1239 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1240 | _ACEOF | |
1241 | ||
1242 | ||
1243 | cat >>confdefs.h <<_ACEOF | |
1244 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1245 | _ACEOF | |
1246 | ||
1247 | ||
1248 | cat >>confdefs.h <<_ACEOF | |
1249 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1250 | _ACEOF | |
1251 | ||
1252 | ||
1253 | cat >>confdefs.h <<_ACEOF | |
1254 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1255 | _ACEOF | |
1256 | ||
1257 | ||
1258 | # Let the site file select an alternate cache file if it wants to. | |
1259 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1260 | if test -z "$CONFIG_SITE"; then |
1261 | if test "x$prefix" != xNONE; then | |
1262 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1263 | else | |
1264 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1265 | fi | |
c906108c | 1266 | fi |
b4e70030 | 1267 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1268 | if test -r "$ac_site_file"; then |
bec39cab AC |
1269 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1270 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1271 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1272 | . "$ac_site_file" |
1273 | fi | |
1274 | done | |
1275 | ||
1276 | if test -r "$cache_file"; then | |
bec39cab AC |
1277 | # Some versions of bash will fail to source /dev/null (special |
1278 | # files actually), so we avoid doing that. | |
1279 | if test -f "$cache_file"; then | |
1280 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1281 | echo "$as_me: loading cache $cache_file" >&6;} | |
1282 | case $cache_file in | |
1283 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1284 | *) . ./$cache_file;; | |
1285 | esac | |
1286 | fi | |
c906108c | 1287 | else |
bec39cab AC |
1288 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1289 | echo "$as_me: creating cache $cache_file" >&6;} | |
1290 | >$cache_file | |
1291 | fi | |
1292 | ||
1293 | # Check that the precious variables saved in the cache have kept the same | |
1294 | # value. | |
1295 | ac_cache_corrupted=false | |
b4e70030 JB |
1296 | for ac_var in `(set) 2>&1 | |
1297 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1298 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1299 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1300 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1301 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1302 | case $ac_old_set,$ac_new_set in |
1303 | set,) | |
1304 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1305 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1306 | ac_cache_corrupted=: ;; | |
1307 | ,set) | |
1308 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1309 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1310 | ac_cache_corrupted=: ;; | |
1311 | ,);; | |
1312 | *) | |
1313 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
fdc59709 PB |
1314 | # differences in whitespace do not lead to failure. |
1315 | ac_old_val_w=`echo x $ac_old_val` | |
1316 | ac_new_val_w=`echo x $ac_new_val` | |
1317 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1318 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
bec39cab | 1319 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
fdc59709 PB |
1320 | ac_cache_corrupted=: |
1321 | else | |
1322 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1323 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1324 | eval $ac_var=\$ac_old_val | |
1325 | fi | |
1326 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1327 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1328 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1329 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
1330 | fi;; |
1331 | esac | |
1332 | # Pass precious variables to config.status. | |
1333 | if test "$ac_new_set" = set; then | |
1334 | case $ac_new_val in | |
b4e70030 JB |
1335 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1336 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1337 | *) ac_arg=$ac_var=$ac_new_val ;; |
1338 | esac | |
1339 | case " $ac_configure_args " in | |
1340 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1341 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1342 | esac | |
1343 | fi | |
1344 | done | |
1345 | if $ac_cache_corrupted; then | |
d5af19ba DJ |
1346 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1347 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1348 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1349 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1350 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1351 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1352 | { (exit 1); exit 1; }; } | |
c906108c SS |
1353 | fi |
1354 | ||
b4e70030 JB |
1355 | ac_ext=c |
1356 | ac_cpp='$CPP $CPPFLAGS' | |
1357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1360 | |
1361 | ||
783e057b DJ |
1362 | gl_header_list="$gl_header_list stdint.h" |
1363 | gl_header_list="$gl_header_list wchar.h" | |
1364 | gl_header_list="$gl_header_list string.h" | |
bec39cab AC |
1365 | |
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
bec39cab | 1381 | |
d5af19ba DJ |
1382 | |
1383 | ||
1384 | ||
b4e70030 JB |
1385 | ac_config_headers="$ac_config_headers config.h:config.in" |
1386 | ||
1387 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1388 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1389 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1390 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1391 | enableval="$enable_maintainer_mode" |
1392 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1393 | else |
1394 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1395 | fi; |
1396 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1397 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1398 | |
413ccac7 AC |
1399 | |
1400 | if test $USE_MAINTAINER_MODE = yes; then | |
1401 | MAINTAINER_MODE_TRUE= | |
1402 | MAINTAINER_MODE_FALSE='#' | |
1403 | else | |
1404 | MAINTAINER_MODE_TRUE='#' | |
1405 | MAINTAINER_MODE_FALSE= | |
1406 | fi | |
85981d60 | 1407 | |
413ccac7 | 1408 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1409 | |
c906108c | 1410 | |
bec39cab AC |
1411 | |
1412 | ac_ext=c | |
1413 | ac_cpp='$CPP $CPPFLAGS' | |
1414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1417 | if test -n "$ac_tool_prefix"; then | |
1418 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1419 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1422 | if test "${ac_cv_prog_CC+set}" = set; then |
1423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1424 | else | |
1425 | if test -n "$CC"; then | |
1426 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1427 | else | |
1428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1429 | for as_dir in $PATH | |
1430 | do | |
1431 | IFS=$as_save_IFS | |
1432 | test -z "$as_dir" && as_dir=. | |
1433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1435 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1437 | break 2 | |
1438 | fi | |
1439 | done | |
1440 | done | |
1441 | ||
1442 | fi | |
1443 | fi | |
1444 | CC=$ac_cv_prog_CC | |
1445 | if test -n "$CC"; then | |
b4e70030 JB |
1446 | echo "$as_me:$LINENO: result: $CC" >&5 |
1447 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1448 | else |
b4e70030 JB |
1449 | echo "$as_me:$LINENO: result: no" >&5 |
1450 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1451 | fi |
1452 | ||
1453 | fi | |
1454 | if test -z "$ac_cv_prog_CC"; then | |
1455 | ac_ct_CC=$CC | |
1456 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1457 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1460 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1462 | else | |
1463 | if test -n "$ac_ct_CC"; then | |
1464 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1465 | else | |
1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1467 | for as_dir in $PATH | |
1468 | do | |
1469 | IFS=$as_save_IFS | |
1470 | test -z "$as_dir" && as_dir=. | |
1471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1473 | ac_cv_prog_ac_ct_CC="gcc" |
1474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1475 | break 2 | |
1476 | fi | |
1477 | done | |
1478 | done | |
1479 | ||
1480 | fi | |
1481 | fi | |
1482 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1483 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1484 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1485 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1486 | else |
b4e70030 JB |
1487 | echo "$as_me:$LINENO: result: no" >&5 |
1488 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1489 | fi |
1490 | ||
b4e70030 | 1491 | CC=$ac_ct_CC |
bec39cab AC |
1492 | else |
1493 | CC="$ac_cv_prog_CC" | |
1494 | fi | |
1495 | ||
1496 | if test -z "$CC"; then | |
b4e70030 JB |
1497 | if test -n "$ac_tool_prefix"; then |
1498 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1499 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1502 | if test "${ac_cv_prog_CC+set}" = set; then |
1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1504 | else |
1505 | if test -n "$CC"; then | |
1506 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1507 | else | |
bec39cab AC |
1508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1509 | for as_dir in $PATH | |
1510 | do | |
1511 | IFS=$as_save_IFS | |
1512 | test -z "$as_dir" && as_dir=. | |
1513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1515 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1517 | break 2 | |
1518 | fi | |
1519 | done | |
1520 | done | |
1521 | ||
c906108c SS |
1522 | fi |
1523 | fi | |
bec39cab | 1524 | CC=$ac_cv_prog_CC |
c906108c | 1525 | if test -n "$CC"; then |
b4e70030 JB |
1526 | echo "$as_me:$LINENO: result: $CC" >&5 |
1527 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1528 | else |
b4e70030 JB |
1529 | echo "$as_me:$LINENO: result: no" >&5 |
1530 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1531 | fi |
1532 | ||
b4e70030 JB |
1533 | fi |
1534 | if test -z "$ac_cv_prog_CC"; then | |
1535 | ac_ct_CC=$CC | |
1536 | # Extract the first word of "cc", so it can be a program name with args. | |
1537 | set dummy cc; ac_word=$2 | |
1538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1540 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1542 | else | |
1543 | if test -n "$ac_ct_CC"; then | |
1544 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1545 | else | |
1546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1547 | for as_dir in $PATH | |
1548 | do | |
1549 | IFS=$as_save_IFS | |
1550 | test -z "$as_dir" && as_dir=. | |
1551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1553 | ac_cv_prog_ac_ct_CC="cc" | |
1554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1555 | break 2 | |
4e8d927d | 1556 | fi |
b4e70030 JB |
1557 | done |
1558 | done | |
1559 | ||
1560 | fi | |
1561 | fi | |
1562 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1563 | if test -n "$ac_ct_CC"; then | |
1564 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1565 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1566 | else | |
1567 | echo "$as_me:$LINENO: result: no" >&5 | |
1568 | echo "${ECHO_T}no" >&6 | |
1569 | fi | |
1570 | ||
1571 | CC=$ac_ct_CC | |
1572 | else | |
1573 | CC="$ac_cv_prog_CC" | |
1574 | fi | |
1575 | ||
bec39cab | 1576 | fi |
c906108c SS |
1577 | if test -z "$CC"; then |
1578 | # Extract the first word of "cc", so it can be a program name with args. | |
1579 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1582 | if test "${ac_cv_prog_CC+set}" = set; then |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1584 | else |
1585 | if test -n "$CC"; then | |
1586 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1587 | else | |
c906108c | 1588 | ac_prog_rejected=no |
bec39cab AC |
1589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1590 | for as_dir in $PATH | |
1591 | do | |
1592 | IFS=$as_save_IFS | |
1593 | test -z "$as_dir" && as_dir=. | |
1594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1596 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1597 | ac_prog_rejected=yes | |
1598 | continue | |
1599 | fi | |
1600 | ac_cv_prog_CC="cc" | |
1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1602 | break 2 | |
1603 | fi | |
1604 | done | |
1605 | done | |
1606 | ||
c906108c SS |
1607 | if test $ac_prog_rejected = yes; then |
1608 | # We found a bogon in the path, so make sure we never use it. | |
1609 | set dummy $ac_cv_prog_CC | |
1610 | shift | |
bec39cab | 1611 | if test $# != 0; then |
c906108c SS |
1612 | # We chose a different compiler from the bogus one. |
1613 | # However, it has the same basename, so the bogon will be chosen | |
1614 | # first if we set CC to just the basename; use the full file name. | |
1615 | shift | |
bec39cab | 1616 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1617 | fi |
1618 | fi | |
1619 | fi | |
1620 | fi | |
bec39cab | 1621 | CC=$ac_cv_prog_CC |
c906108c | 1622 | if test -n "$CC"; then |
b4e70030 JB |
1623 | echo "$as_me:$LINENO: result: $CC" >&5 |
1624 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1625 | else |
b4e70030 JB |
1626 | echo "$as_me:$LINENO: result: no" >&5 |
1627 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1628 | fi |
1629 | ||
bec39cab AC |
1630 | fi |
1631 | if test -z "$CC"; then | |
1632 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1633 | for ac_prog in cl |
bec39cab AC |
1634 | do |
1635 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1636 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1639 | if test "${ac_cv_prog_CC+set}" = set; then |
1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1641 | else |
1642 | if test -n "$CC"; then | |
1643 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1644 | else | |
bec39cab AC |
1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1646 | for as_dir in $PATH | |
1647 | do | |
1648 | IFS=$as_save_IFS | |
1649 | test -z "$as_dir" && as_dir=. | |
1650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1652 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1654 | break 2 | |
1655 | fi | |
1656 | done | |
1657 | done | |
1658 | ||
c906108c SS |
1659 | fi |
1660 | fi | |
bec39cab | 1661 | CC=$ac_cv_prog_CC |
c906108c | 1662 | if test -n "$CC"; then |
b4e70030 JB |
1663 | echo "$as_me:$LINENO: result: $CC" >&5 |
1664 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1665 | else |
b4e70030 JB |
1666 | echo "$as_me:$LINENO: result: no" >&5 |
1667 | echo "${ECHO_T}no" >&6 | |
c906108c | 1668 | fi |
bec39cab AC |
1669 | |
1670 | test -n "$CC" && break | |
1671 | done | |
1672 | fi | |
1673 | if test -z "$CC"; then | |
1674 | ac_ct_CC=$CC | |
b4e70030 | 1675 | for ac_prog in cl |
bec39cab AC |
1676 | do |
1677 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1678 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1681 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1683 | else | |
1684 | if test -n "$ac_ct_CC"; then | |
1685 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1686 | else | |
1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1688 | for as_dir in $PATH | |
1689 | do | |
1690 | IFS=$as_save_IFS | |
1691 | test -z "$as_dir" && as_dir=. | |
1692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1694 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1696 | break 2 | |
c906108c | 1697 | fi |
bec39cab AC |
1698 | done |
1699 | done | |
1700 | ||
1701 | fi | |
1702 | fi | |
1703 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1704 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1705 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1706 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1707 | else |
b4e70030 JB |
1708 | echo "$as_me:$LINENO: result: no" >&5 |
1709 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1710 | fi |
1711 | ||
bec39cab AC |
1712 | test -n "$ac_ct_CC" && break |
1713 | done | |
c906108c | 1714 | |
b4e70030 | 1715 | CC=$ac_ct_CC |
bec39cab AC |
1716 | fi |
1717 | ||
1718 | fi | |
1719 | ||
1720 | ||
d5af19ba DJ |
1721 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1722 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1723 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
bec39cab AC |
1724 | See \`config.log' for more details." >&5 |
1725 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1726 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1727 | { (exit 1); exit 1; }; }; } |
bec39cab AC |
1728 | |
1729 | # Provide some information about the compiler. | |
b4e70030 JB |
1730 | echo "$as_me:$LINENO:" \ |
1731 | "checking for C compiler version" >&5 | |
bec39cab | 1732 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1733 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1734 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1735 | ac_status=$? |
1736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1737 | (exit $ac_status); } | |
b4e70030 JB |
1738 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1739 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1740 | ac_status=$? |
1741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1742 | (exit $ac_status); } | |
b4e70030 JB |
1743 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1744 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1745 | ac_status=$? |
1746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1747 | (exit $ac_status); } | |
1748 | ||
1749 | cat >conftest.$ac_ext <<_ACEOF | |
1750 | /* confdefs.h. */ | |
1751 | _ACEOF | |
1752 | cat confdefs.h >>conftest.$ac_ext | |
1753 | cat >>conftest.$ac_ext <<_ACEOF | |
1754 | /* end confdefs.h. */ | |
1755 | ||
1756 | int | |
1757 | main () | |
1758 | { | |
1759 | ||
1760 | ; | |
1761 | return 0; | |
1762 | } | |
1763 | _ACEOF | |
1764 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1765 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1766 | # Try to create an executable without -o first, disregard a.out. |
1767 | # It will help us diagnose broken compilers, and finding out an intuition | |
1768 | # of exeext. | |
b4e70030 JB |
1769 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1770 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1771 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1772 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1773 | (eval $ac_link_default) 2>&5 | |
1774 | ac_status=$? | |
1775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1776 | (exit $ac_status); }; then | |
b4e70030 JB |
1777 | # Find the output, starting from the most likely. This scheme is |
1778 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1779 | # resort. | |
1780 | ||
1781 | # Be careful to initialize this variable, since it used to be cached. | |
1782 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1783 | ac_cv_exeext= | |
1784 | # b.out is created by i960 compilers. | |
1785 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1786 | do |
1787 | test -f "$ac_file" || continue | |
1788 | case $ac_file in | |
b4e70030 JB |
1789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1790 | ;; | |
1791 | conftest.$ac_ext ) | |
1792 | # This is the source file. | |
1793 | ;; | |
1794 | [ab].out ) | |
1795 | # We found the default executable, but exeext='' is most | |
1796 | # certainly right. | |
1797 | break;; | |
1798 | *.* ) | |
1799 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1800 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1801 | # but it would be cool to find out if it's true. Does anybody | |
1802 | # maintain Libtool? --akim. | |
1803 | export ac_cv_exeext | |
1804 | break;; | |
1805 | * ) | |
1806 | break;; | |
bec39cab AC |
1807 | esac |
1808 | done | |
1809 | else | |
1810 | echo "$as_me: failed program was:" >&5 | |
1811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1812 | ||
d5af19ba DJ |
1813 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1814 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1815 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1816 | See \`config.log' for more details." >&5 | |
1817 | echo "$as_me: error: C compiler cannot create executables | |
1818 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1819 | { (exit 77); exit 77; }; }; } |
bec39cab AC |
1820 | fi |
1821 | ||
b4e70030 JB |
1822 | ac_exeext=$ac_cv_exeext |
1823 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1824 | echo "${ECHO_T}$ac_file" >&6 | |
1825 | ||
1826 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1827 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1828 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1829 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1830 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1831 | # If not cross compiling, check that we can run a simple program. | |
1832 | if test "$cross_compiling" != yes; then | |
1833 | if { ac_try='./$ac_file' | |
1834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1835 | (eval $ac_try) 2>&5 | |
1836 | ac_status=$? | |
1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1838 | (exit $ac_status); }; }; then | |
1839 | cross_compiling=no | |
c906108c | 1840 | else |
bec39cab AC |
1841 | if test "$cross_compiling" = maybe; then |
1842 | cross_compiling=yes | |
1843 | else | |
d5af19ba DJ |
1844 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1845 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1846 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
bec39cab AC |
1847 | If you meant to cross compile, use \`--host'. |
1848 | See \`config.log' for more details." >&5 | |
1849 | echo "$as_me: error: cannot run C compiled programs. | |
1850 | If you meant to cross compile, use \`--host'. | |
1851 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1852 | { (exit 1); exit 1; }; }; } |
bec39cab | 1853 | fi |
c906108c | 1854 | fi |
bec39cab | 1855 | fi |
b4e70030 JB |
1856 | echo "$as_me:$LINENO: result: yes" >&5 |
1857 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1858 | |
b4e70030 JB |
1859 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1860 | ac_clean_files=$ac_clean_files_save | |
1861 | # Check the compiler produces executables we can run. If not, either | |
1862 | # the compiler is broken, or we cross compile. | |
1863 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1864 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1865 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1866 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1867 | |
b4e70030 JB |
1868 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1869 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1871 | (eval $ac_link) 2>&5 |
1872 | ac_status=$? | |
1873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1874 | (exit $ac_status); }; then | |
b4e70030 JB |
1875 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1876 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1877 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1878 | # `rm'. | |
1879 | for ac_file in conftest.exe conftest conftest.*; do | |
1880 | test -f "$ac_file" || continue | |
1881 | case $ac_file in | |
1882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1883 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1884 | export ac_cv_exeext | |
1885 | break;; | |
1886 | * ) break;; | |
1887 | esac | |
1888 | done | |
c906108c | 1889 | else |
d5af19ba DJ |
1890 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1891 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1892 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
bec39cab AC |
1893 | See \`config.log' for more details." >&5 |
1894 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1895 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1896 | { (exit 1); exit 1; }; }; } |
c906108c | 1897 | fi |
c906108c | 1898 | |
b4e70030 JB |
1899 | rm -f conftest$ac_cv_exeext |
1900 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1901 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1902 | |
b4e70030 | 1903 | rm -f conftest.$ac_ext |
bec39cab AC |
1904 | EXEEXT=$ac_cv_exeext |
1905 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1906 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1907 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1908 | if test "${ac_cv_objext+set}" = set; then |
1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1910 | else | |
b4e70030 JB |
1911 | cat >conftest.$ac_ext <<_ACEOF |
1912 | /* confdefs.h. */ | |
1913 | _ACEOF | |
1914 | cat confdefs.h >>conftest.$ac_ext | |
1915 | cat >>conftest.$ac_ext <<_ACEOF | |
1916 | /* end confdefs.h. */ | |
1917 | ||
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | ||
1922 | ; | |
1923 | return 0; | |
1924 | } | |
1925 | _ACEOF | |
1926 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1928 | (eval $ac_compile) 2>&5 | |
1929 | ac_status=$? | |
1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1931 | (exit $ac_status); }; then | |
b4e70030 | 1932 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1933 | case $ac_file in |
b4e70030 | 1934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1935 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1936 | break;; | |
1937 | esac | |
1938 | done | |
c906108c | 1939 | else |
bec39cab AC |
1940 | echo "$as_me: failed program was:" >&5 |
1941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1942 | ||
d5af19ba DJ |
1943 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1944 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1945 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1946 | See \`config.log' for more details." >&5 | |
1947 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1948 | See \`config.log' for more details." >&2;} | |
d5af19ba | 1949 | { (exit 1); exit 1; }; }; } |
c906108c SS |
1950 | fi |
1951 | ||
b4e70030 | 1952 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1953 | fi |
b4e70030 JB |
1954 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1955 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1956 | OBJEXT=$ac_cv_objext |
1957 | ac_objext=$OBJEXT | |
b4e70030 JB |
1958 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1959 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1960 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1962 | else |
bec39cab AC |
1963 | cat >conftest.$ac_ext <<_ACEOF |
1964 | /* confdefs.h. */ | |
1965 | _ACEOF | |
1966 | cat confdefs.h >>conftest.$ac_ext | |
1967 | cat >>conftest.$ac_ext <<_ACEOF | |
1968 | /* end confdefs.h. */ | |
1969 | ||
1970 | int | |
1971 | main () | |
1972 | { | |
1973 | #ifndef __GNUC__ | |
1974 | choke me | |
1975 | #endif | |
1976 | ||
1977 | ; | |
1978 | return 0; | |
1979 | } | |
1980 | _ACEOF | |
1981 | rm -f conftest.$ac_objext | |
1982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1983 | (eval $ac_compile) 2>conftest.er1 | |
1984 | ac_status=$? | |
1985 | grep -v '^ *+' conftest.er1 >conftest.err | |
1986 | rm -f conftest.er1 | |
1987 | cat conftest.err >&5 | |
1988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1989 | (exit $ac_status); } && | |
b4e70030 JB |
1990 | { ac_try='test -z "$ac_c_werror_flag" |
1991 | || test ! -s conftest.err' | |
bec39cab AC |
1992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1993 | (eval $ac_try) 2>&5 | |
1994 | ac_status=$? | |
1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1996 | (exit $ac_status); }; } && | |
1997 | { ac_try='test -s conftest.$ac_objext' | |
1998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1999 | (eval $ac_try) 2>&5 | |
2000 | ac_status=$? | |
2001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2002 | (exit $ac_status); }; }; then | |
2003 | ac_compiler_gnu=yes | |
2004 | else | |
2005 | echo "$as_me: failed program was:" >&5 | |
2006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2007 | ||
b4e70030 | 2008 | ac_compiler_gnu=no |
bec39cab AC |
2009 | fi |
2010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2011 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2012 | ||
2013 | fi | |
b4e70030 JB |
2014 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2015 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
2016 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2017 | ac_test_CFLAGS=${CFLAGS+set} | |
2018 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
2019 | CFLAGS="-g" |
2020 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2021 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
2022 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2024 | else | |
b4e70030 | 2025 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
2026 | /* confdefs.h. */ |
2027 | _ACEOF | |
2028 | cat confdefs.h >>conftest.$ac_ext | |
2029 | cat >>conftest.$ac_ext <<_ACEOF | |
2030 | /* end confdefs.h. */ | |
2031 | ||
2032 | int | |
2033 | main () | |
2034 | { | |
2035 | ||
2036 | ; | |
2037 | return 0; | |
2038 | } | |
2039 | _ACEOF | |
2040 | rm -f conftest.$ac_objext | |
2041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2042 | (eval $ac_compile) 2>conftest.er1 | |
2043 | ac_status=$? | |
2044 | grep -v '^ *+' conftest.er1 >conftest.err | |
2045 | rm -f conftest.er1 | |
2046 | cat conftest.err >&5 | |
2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2048 | (exit $ac_status); } && | |
b4e70030 JB |
2049 | { ac_try='test -z "$ac_c_werror_flag" |
2050 | || test ! -s conftest.err' | |
bec39cab AC |
2051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2052 | (eval $ac_try) 2>&5 | |
2053 | ac_status=$? | |
2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2055 | (exit $ac_status); }; } && | |
2056 | { ac_try='test -s conftest.$ac_objext' | |
2057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2058 | (eval $ac_try) 2>&5 | |
2059 | ac_status=$? | |
2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2061 | (exit $ac_status); }; }; then | |
c906108c SS |
2062 | ac_cv_prog_cc_g=yes |
2063 | else | |
bec39cab AC |
2064 | echo "$as_me: failed program was:" >&5 |
2065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2066 | |
b4e70030 | 2067 | ac_cv_prog_cc_g=no |
4e8d927d | 2068 | fi |
bec39cab AC |
2069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2070 | fi | |
b4e70030 JB |
2071 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2072 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2073 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2074 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2075 | elif test $ac_cv_prog_cc_g = yes; then |
2076 | if test "$GCC" = yes; then | |
2077 | CFLAGS="-g -O2" | |
2078 | else | |
2079 | CFLAGS="-g" | |
2080 | fi | |
2081 | else | |
2082 | if test "$GCC" = yes; then | |
2083 | CFLAGS="-O2" | |
2084 | else | |
2085 | CFLAGS= | |
2086 | fi | |
2087 | fi | |
b4e70030 JB |
2088 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2089 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2090 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2092 | else | |
b4e70030 | 2093 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2094 | ac_save_CC=$CC |
2095 | cat >conftest.$ac_ext <<_ACEOF | |
2096 | /* confdefs.h. */ | |
2097 | _ACEOF | |
2098 | cat confdefs.h >>conftest.$ac_ext | |
2099 | cat >>conftest.$ac_ext <<_ACEOF | |
2100 | /* end confdefs.h. */ | |
c906108c SS |
2101 | #include <stdarg.h> |
2102 | #include <stdio.h> | |
2103 | #include <sys/types.h> | |
2104 | #include <sys/stat.h> | |
2105 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2106 | struct buf { int x; }; | |
2107 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2108 | static char *e (p, i) | |
2109 | char **p; | |
2110 | int i; | |
2111 | { | |
2112 | return p[i]; | |
2113 | } | |
2114 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2115 | { | |
2116 | char *s; | |
2117 | va_list v; | |
2118 | va_start (v,p); | |
2119 | s = g (p, va_arg (v,int)); | |
2120 | va_end (v); | |
2121 | return s; | |
2122 | } | |
bec39cab AC |
2123 | |
2124 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2125 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2126 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2127 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2128 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2129 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2130 | that's true only with -std1. */ |
bec39cab AC |
2131 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2132 | ||
c906108c SS |
2133 | int test (int i, double x); |
2134 | struct s1 {int (*f) (int a);}; | |
2135 | struct s2 {int (*f) (double a);}; | |
2136 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2137 | int argc; | |
2138 | char **argv; | |
bec39cab AC |
2139 | int |
2140 | main () | |
2141 | { | |
c906108c | 2142 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2143 | ; |
2144 | return 0; | |
2145 | } | |
2146 | _ACEOF | |
b4e70030 JB |
2147 | # Don't try gcc -ansi; that turns off useful extensions and |
2148 | # breaks some systems' header files. | |
2149 | # AIX -qlanglvl=ansi | |
2150 | # Ultrix and OSF/1 -std1 | |
2151 | # HP-UX 10.20 and later -Ae | |
2152 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2153 | # SVR4 -Xc -D__EXTENSIONS__ | |
2154 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2155 | do |
2156 | CC="$ac_save_CC $ac_arg" | |
2157 | rm -f conftest.$ac_objext | |
2158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2159 | (eval $ac_compile) 2>conftest.er1 | |
2160 | ac_status=$? | |
2161 | grep -v '^ *+' conftest.er1 >conftest.err | |
2162 | rm -f conftest.er1 | |
2163 | cat conftest.err >&5 | |
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2165 | (exit $ac_status); } && | |
b4e70030 JB |
2166 | { ac_try='test -z "$ac_c_werror_flag" |
2167 | || test ! -s conftest.err' | |
bec39cab AC |
2168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2169 | (eval $ac_try) 2>&5 | |
2170 | ac_status=$? | |
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2172 | (exit $ac_status); }; } && | |
2173 | { ac_try='test -s conftest.$ac_objext' | |
2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2175 | (eval $ac_try) 2>&5 | |
2176 | ac_status=$? | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2179 | ac_cv_prog_cc_stdc=$ac_arg |
2180 | break | |
c906108c | 2181 | else |
bec39cab AC |
2182 | echo "$as_me: failed program was:" >&5 |
2183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2184 | ||
c906108c | 2185 | fi |
bec39cab | 2186 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2187 | done |
b4e70030 | 2188 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2189 | CC=$ac_save_CC |
c906108c SS |
2190 | |
2191 | fi | |
b4e70030 JB |
2192 | |
2193 | case "x$ac_cv_prog_cc_stdc" in | |
2194 | x|xno) | |
2195 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2196 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2197 | *) |
b4e70030 JB |
2198 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2199 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2200 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2201 | esac |
2202 | ||
b4e70030 JB |
2203 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2204 | # in C++ we need to declare it. In case someone uses the same compiler | |
2205 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2206 | # the declaration of exit, since it's the most demanding environment. | |
2207 | cat >conftest.$ac_ext <<_ACEOF | |
2208 | #ifndef __cplusplus | |
2209 | choke me | |
2210 | #endif | |
2211 | _ACEOF | |
2212 | rm -f conftest.$ac_objext | |
2213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2214 | (eval $ac_compile) 2>conftest.er1 | |
2215 | ac_status=$? | |
2216 | grep -v '^ *+' conftest.er1 >conftest.err | |
2217 | rm -f conftest.er1 | |
2218 | cat conftest.err >&5 | |
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2220 | (exit $ac_status); } && | |
2221 | { ac_try='test -z "$ac_c_werror_flag" | |
2222 | || test ! -s conftest.err' | |
2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2224 | (eval $ac_try) 2>&5 | |
2225 | ac_status=$? | |
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2227 | (exit $ac_status); }; } && | |
2228 | { ac_try='test -s conftest.$ac_objext' | |
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2230 | (eval $ac_try) 2>&5 | |
2231 | ac_status=$? | |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); }; }; then | |
2234 | for ac_declaration in \ | |
2235 | '' \ | |
2236 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2237 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2238 | 'extern "C" void exit (int) throw ();' \ | |
2239 | 'extern "C" void exit (int);' \ | |
2240 | 'void exit (int);' | |
2241 | do | |
2242 | cat >conftest.$ac_ext <<_ACEOF | |
2243 | /* confdefs.h. */ | |
2244 | _ACEOF | |
2245 | cat confdefs.h >>conftest.$ac_ext | |
2246 | cat >>conftest.$ac_ext <<_ACEOF | |
2247 | /* end confdefs.h. */ | |
2248 | $ac_declaration | |
2249 | #include <stdlib.h> | |
2250 | int | |
2251 | main () | |
2252 | { | |
2253 | exit (42); | |
2254 | ; | |
2255 | return 0; | |
2256 | } | |
2257 | _ACEOF | |
2258 | rm -f conftest.$ac_objext | |
2259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2260 | (eval $ac_compile) 2>conftest.er1 | |
2261 | ac_status=$? | |
2262 | grep -v '^ *+' conftest.er1 >conftest.err | |
2263 | rm -f conftest.er1 | |
2264 | cat conftest.err >&5 | |
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2266 | (exit $ac_status); } && | |
2267 | { ac_try='test -z "$ac_c_werror_flag" | |
2268 | || test ! -s conftest.err' | |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2270 | (eval $ac_try) 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); }; } && | |
2274 | { ac_try='test -s conftest.$ac_objext' | |
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2276 | (eval $ac_try) 2>&5 | |
2277 | ac_status=$? | |
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | (exit $ac_status); }; }; then | |
2280 | : | |
2281 | else | |
2282 | echo "$as_me: failed program was:" >&5 | |
2283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2284 | ||
2285 | continue | |
2286 | fi | |
2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2288 | cat >conftest.$ac_ext <<_ACEOF | |
2289 | /* confdefs.h. */ | |
2290 | _ACEOF | |
2291 | cat confdefs.h >>conftest.$ac_ext | |
2292 | cat >>conftest.$ac_ext <<_ACEOF | |
2293 | /* end confdefs.h. */ | |
2294 | $ac_declaration | |
2295 | int | |
2296 | main () | |
2297 | { | |
2298 | exit (42); | |
2299 | ; | |
2300 | return 0; | |
2301 | } | |
2302 | _ACEOF | |
2303 | rm -f conftest.$ac_objext | |
2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2305 | (eval $ac_compile) 2>conftest.er1 | |
2306 | ac_status=$? | |
2307 | grep -v '^ *+' conftest.er1 >conftest.err | |
2308 | rm -f conftest.er1 | |
2309 | cat conftest.err >&5 | |
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2311 | (exit $ac_status); } && | |
2312 | { ac_try='test -z "$ac_c_werror_flag" | |
2313 | || test ! -s conftest.err' | |
2314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2315 | (eval $ac_try) 2>&5 | |
2316 | ac_status=$? | |
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2318 | (exit $ac_status); }; } && | |
2319 | { ac_try='test -s conftest.$ac_objext' | |
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2321 | (eval $ac_try) 2>&5 | |
2322 | ac_status=$? | |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); }; }; then | |
2325 | break | |
2326 | else | |
2327 | echo "$as_me: failed program was:" >&5 | |
2328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2329 | ||
2330 | fi | |
2331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2332 | done | |
2333 | rm -f conftest* | |
2334 | if test -n "$ac_declaration"; then | |
2335 | echo '#ifdef __cplusplus' >>confdefs.h | |
2336 | echo $ac_declaration >>confdefs.h | |
2337 | echo '#endif' >>confdefs.h | |
2338 | fi | |
2339 | ||
2340 | else | |
2341 | echo "$as_me: failed program was:" >&5 | |
2342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2343 | |
b4e70030 JB |
2344 | fi |
2345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2346 | ac_ext=c |
2347 | ac_cpp='$CPP $CPPFLAGS' | |
2348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2351 | |
60ca704f | 2352 | |
bec39cab AC |
2353 | cat >>confdefs.h <<\_ACEOF |
2354 | #define _GNU_SOURCE 1 | |
2355 | _ACEOF | |
c906108c SS |
2356 | |
2357 | ||
8bb2c122 | 2358 | |
bec39cab AC |
2359 | ac_ext=c |
2360 | ac_cpp='$CPP $CPPFLAGS' | |
2361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2364 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2365 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2366 | # On Suns, sometimes $CPP names a directory. |
2367 | if test -n "$CPP" && test -d "$CPP"; then | |
2368 | CPP= | |
8bb2c122 | 2369 | fi |
bec39cab AC |
2370 | if test -z "$CPP"; then |
2371 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2373 | else | |
2374 | # Double quotes because CPP needs to be expanded | |
2375 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2376 | do | |
2377 | ac_preproc_ok=false | |
2378 | for ac_c_preproc_warn_flag in '' yes | |
2379 | do | |
2380 | # Use a header file that comes with gcc, so configuring glibc | |
2381 | # with a fresh cross-compiler works. | |
2382 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2383 | # <limits.h> exists even on freestanding compilers. | |
2384 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2385 | # not just through cpp. "Syntax error" is here to catch this case. | |
2386 | cat >conftest.$ac_ext <<_ACEOF | |
2387 | /* confdefs.h. */ | |
2388 | _ACEOF | |
2389 | cat confdefs.h >>conftest.$ac_ext | |
2390 | cat >>conftest.$ac_ext <<_ACEOF | |
2391 | /* end confdefs.h. */ | |
2392 | #ifdef __STDC__ | |
2393 | # include <limits.h> | |
2394 | #else | |
2395 | # include <assert.h> | |
2396 | #endif | |
2397 | Syntax error | |
2398 | _ACEOF | |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2401 | ac_status=$? | |
2402 | grep -v '^ *+' conftest.er1 >conftest.err | |
2403 | rm -f conftest.er1 | |
2404 | cat conftest.err >&5 | |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2406 | (exit $ac_status); } >/dev/null; then | |
2407 | if test -s conftest.err; then | |
2408 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2410 | else | |
2411 | ac_cpp_err= | |
2412 | fi | |
8bb2c122 | 2413 | else |
bec39cab | 2414 | ac_cpp_err=yes |
8bb2c122 | 2415 | fi |
bec39cab AC |
2416 | if test -z "$ac_cpp_err"; then |
2417 | : | |
8bb2c122 | 2418 | else |
bec39cab AC |
2419 | echo "$as_me: failed program was:" >&5 |
2420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2421 | ||
2422 | # Broken: fails on valid input. | |
2423 | continue | |
2424 | fi | |
2425 | rm -f conftest.err conftest.$ac_ext | |
2426 | ||
b4e70030 | 2427 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2428 | # can be detected and how. |
2429 | cat >conftest.$ac_ext <<_ACEOF | |
2430 | /* confdefs.h. */ | |
2431 | _ACEOF | |
2432 | cat confdefs.h >>conftest.$ac_ext | |
2433 | cat >>conftest.$ac_ext <<_ACEOF | |
2434 | /* end confdefs.h. */ | |
2435 | #include <ac_nonexistent.h> | |
2436 | _ACEOF | |
2437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2439 | ac_status=$? | |
2440 | grep -v '^ *+' conftest.er1 >conftest.err | |
2441 | rm -f conftest.er1 | |
2442 | cat conftest.err >&5 | |
2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2444 | (exit $ac_status); } >/dev/null; then | |
2445 | if test -s conftest.err; then | |
2446 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2448 | else | |
2449 | ac_cpp_err= | |
2450 | fi | |
8bb2c122 | 2451 | else |
bec39cab | 2452 | ac_cpp_err=yes |
8bb2c122 | 2453 | fi |
bec39cab AC |
2454 | if test -z "$ac_cpp_err"; then |
2455 | # Broken: success on invalid input. | |
2456 | continue | |
8bb2c122 | 2457 | else |
bec39cab AC |
2458 | echo "$as_me: failed program was:" >&5 |
2459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2460 | |
bec39cab AC |
2461 | # Passes both tests. |
2462 | ac_preproc_ok=: | |
2463 | break | |
8bb2c122 | 2464 | fi |
bec39cab | 2465 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2466 | |
bec39cab AC |
2467 | done |
2468 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2469 | rm -f conftest.err conftest.$ac_ext | |
2470 | if $ac_preproc_ok; then | |
2471 | break | |
2472 | fi | |
8bb2c122 | 2473 | |
bec39cab AC |
2474 | done |
2475 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2476 | |
c906108c | 2477 | fi |
bec39cab AC |
2478 | CPP=$ac_cv_prog_CPP |
2479 | else | |
2480 | ac_cv_prog_CPP=$CPP | |
c906108c | 2481 | fi |
b4e70030 JB |
2482 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2483 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2484 | ac_preproc_ok=false |
2485 | for ac_c_preproc_warn_flag in '' yes | |
2486 | do | |
2487 | # Use a header file that comes with gcc, so configuring glibc | |
2488 | # with a fresh cross-compiler works. | |
2489 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2490 | # <limits.h> exists even on freestanding compilers. | |
2491 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2492 | # not just through cpp. "Syntax error" is here to catch this case. | |
2493 | cat >conftest.$ac_ext <<_ACEOF | |
2494 | /* confdefs.h. */ | |
2495 | _ACEOF | |
2496 | cat confdefs.h >>conftest.$ac_ext | |
2497 | cat >>conftest.$ac_ext <<_ACEOF | |
2498 | /* end confdefs.h. */ | |
2499 | #ifdef __STDC__ | |
2500 | # include <limits.h> | |
2501 | #else | |
2502 | # include <assert.h> | |
2503 | #endif | |
2504 | Syntax error | |
2505 | _ACEOF | |
2506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2508 | ac_status=$? | |
2509 | grep -v '^ *+' conftest.er1 >conftest.err | |
2510 | rm -f conftest.er1 | |
2511 | cat conftest.err >&5 | |
2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2513 | (exit $ac_status); } >/dev/null; then | |
2514 | if test -s conftest.err; then | |
2515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2517 | else | |
2518 | ac_cpp_err= | |
2519 | fi | |
c906108c | 2520 | else |
bec39cab | 2521 | ac_cpp_err=yes |
c906108c | 2522 | fi |
bec39cab AC |
2523 | if test -z "$ac_cpp_err"; then |
2524 | : | |
c906108c | 2525 | else |
bec39cab AC |
2526 | echo "$as_me: failed program was:" >&5 |
2527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2528 | ||
2529 | # Broken: fails on valid input. | |
2530 | continue | |
2531 | fi | |
2532 | rm -f conftest.err conftest.$ac_ext | |
2533 | ||
b4e70030 | 2534 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2535 | # can be detected and how. |
2536 | cat >conftest.$ac_ext <<_ACEOF | |
2537 | /* confdefs.h. */ | |
2538 | _ACEOF | |
2539 | cat confdefs.h >>conftest.$ac_ext | |
2540 | cat >>conftest.$ac_ext <<_ACEOF | |
2541 | /* end confdefs.h. */ | |
2542 | #include <ac_nonexistent.h> | |
2543 | _ACEOF | |
2544 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2545 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2546 | ac_status=$? | |
2547 | grep -v '^ *+' conftest.er1 >conftest.err | |
2548 | rm -f conftest.er1 | |
2549 | cat conftest.err >&5 | |
2550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2551 | (exit $ac_status); } >/dev/null; then | |
2552 | if test -s conftest.err; then | |
2553 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2554 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2555 | else | |
2556 | ac_cpp_err= | |
2557 | fi | |
c906108c | 2558 | else |
bec39cab | 2559 | ac_cpp_err=yes |
c906108c | 2560 | fi |
bec39cab AC |
2561 | if test -z "$ac_cpp_err"; then |
2562 | # Broken: success on invalid input. | |
2563 | continue | |
c906108c | 2564 | else |
bec39cab AC |
2565 | echo "$as_me: failed program was:" >&5 |
2566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2567 | |
bec39cab AC |
2568 | # Passes both tests. |
2569 | ac_preproc_ok=: | |
2570 | break | |
c906108c | 2571 | fi |
bec39cab | 2572 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2573 | |
bec39cab AC |
2574 | done |
2575 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2576 | rm -f conftest.err conftest.$ac_ext | |
2577 | if $ac_preproc_ok; then | |
c906108c SS |
2578 | : |
2579 | else | |
d5af19ba DJ |
2580 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2581 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2582 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
bec39cab AC |
2583 | See \`config.log' for more details." >&5 |
2584 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2585 | See \`config.log' for more details." >&2;} | |
d5af19ba | 2586 | { (exit 1); exit 1; }; }; } |
c906108c | 2587 | fi |
c906108c | 2588 | |
bec39cab AC |
2589 | ac_ext=c |
2590 | ac_cpp='$CPP $CPPFLAGS' | |
2591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2594 | ||
2595 | ||
b4e70030 JB |
2596 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2597 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2598 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2600 | else | |
b4e70030 JB |
2601 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2602 | then ac_cv_prog_egrep='grep -E' | |
2603 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2604 | fi |
4e8d927d | 2605 | fi |
b4e70030 JB |
2606 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2607 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2608 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2609 | |
bec39cab AC |
2610 | |
2611 | ||
b4e70030 JB |
2612 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2613 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2614 | cat >conftest.$ac_ext <<_ACEOF |
2615 | /* confdefs.h. */ | |
2616 | _ACEOF | |
2617 | cat confdefs.h >>conftest.$ac_ext | |
2618 | cat >>conftest.$ac_ext <<_ACEOF | |
2619 | /* end confdefs.h. */ | |
2620 | #ifdef _AIX | |
2621 | yes | |
2622 | #endif | |
2623 | ||
2624 | _ACEOF | |
c906108c | 2625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2626 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2627 | echo "$as_me:$LINENO: result: yes" >&5 |
2628 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2629 | cat >>confdefs.h <<\_ACEOF |
2630 | #define _ALL_SOURCE 1 | |
2631 | _ACEOF | |
2632 | ||
c906108c | 2633 | else |
b4e70030 JB |
2634 | echo "$as_me:$LINENO: result: no" >&5 |
2635 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2636 | fi |
2637 | rm -f conftest* | |
2638 | ||
c906108c | 2639 | |
b4e70030 JB |
2640 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2641 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2642 | if test "${ac_cv_search_strerror+set}" = set; then |
2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2644 | else |
bec39cab | 2645 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2646 | ac_cv_search_strerror=no |
bec39cab AC |
2647 | cat >conftest.$ac_ext <<_ACEOF |
2648 | /* confdefs.h. */ | |
2649 | _ACEOF | |
2650 | cat confdefs.h >>conftest.$ac_ext | |
2651 | cat >>conftest.$ac_ext <<_ACEOF | |
2652 | /* end confdefs.h. */ | |
c906108c | 2653 | |
b4e70030 | 2654 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2655 | #ifdef __cplusplus |
2656 | extern "C" | |
2657 | #endif | |
b4e70030 JB |
2658 | /* We use char because int might match the return type of a gcc2 |
2659 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2660 | char strerror (); |
2661 | int | |
2662 | main () | |
2663 | { | |
b4e70030 | 2664 | strerror (); |
bec39cab AC |
2665 | ; |
2666 | return 0; | |
2667 | } | |
2668 | _ACEOF | |
b4e70030 | 2669 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2671 | (eval $ac_link) 2>conftest.er1 | |
2672 | ac_status=$? | |
2673 | grep -v '^ *+' conftest.er1 >conftest.err | |
2674 | rm -f conftest.er1 | |
2675 | cat conftest.err >&5 | |
2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2677 | (exit $ac_status); } && | |
b4e70030 JB |
2678 | { ac_try='test -z "$ac_c_werror_flag" |
2679 | || test ! -s conftest.err' | |
bec39cab AC |
2680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2681 | (eval $ac_try) 2>&5 | |
2682 | ac_status=$? | |
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2684 | (exit $ac_status); }; } && | |
2685 | { ac_try='test -s conftest$ac_exeext' | |
2686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2687 | (eval $ac_try) 2>&5 | |
2688 | ac_status=$? | |
2689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2690 | (exit $ac_status); }; }; then | |
b4e70030 | 2691 | ac_cv_search_strerror="none required" |
c906108c | 2692 | else |
bec39cab AC |
2693 | echo "$as_me: failed program was:" >&5 |
2694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2695 | |
2696 | fi | |
bec39cab | 2697 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2698 | conftest$ac_exeext conftest.$ac_ext |
2699 | if test "$ac_cv_search_strerror" = no; then | |
2700 | for ac_lib in cposix; do | |
2701 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2702 | cat >conftest.$ac_ext <<_ACEOF | |
2703 | /* confdefs.h. */ | |
2704 | _ACEOF | |
2705 | cat confdefs.h >>conftest.$ac_ext | |
2706 | cat >>conftest.$ac_ext <<_ACEOF | |
2707 | /* end confdefs.h. */ | |
2708 | ||
2709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2710 | #ifdef __cplusplus | |
2711 | extern "C" | |
2712 | #endif | |
2713 | /* We use char because int might match the return type of a gcc2 | |
2714 | builtin and then its argument prototype would still apply. */ | |
2715 | char strerror (); | |
2716 | int | |
2717 | main () | |
2718 | { | |
2719 | strerror (); | |
2720 | ; | |
2721 | return 0; | |
2722 | } | |
2723 | _ACEOF | |
2724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2726 | (eval $ac_link) 2>conftest.er1 | |
2727 | ac_status=$? | |
2728 | grep -v '^ *+' conftest.er1 >conftest.err | |
2729 | rm -f conftest.er1 | |
2730 | cat conftest.err >&5 | |
2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2732 | (exit $ac_status); } && | |
2733 | { ac_try='test -z "$ac_c_werror_flag" | |
2734 | || test ! -s conftest.err' | |
2735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2736 | (eval $ac_try) 2>&5 | |
2737 | ac_status=$? | |
2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2739 | (exit $ac_status); }; } && | |
2740 | { ac_try='test -s conftest$ac_exeext' | |
2741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2742 | (eval $ac_try) 2>&5 | |
2743 | ac_status=$? | |
2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2745 | (exit $ac_status); }; }; then | |
2746 | ac_cv_search_strerror="-l$ac_lib" | |
2747 | break | |
4e8d927d | 2748 | else |
b4e70030 JB |
2749 | echo "$as_me: failed program was:" >&5 |
2750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2751 | ||
2752 | fi | |
2753 | rm -f conftest.err conftest.$ac_objext \ | |
2754 | conftest$ac_exeext conftest.$ac_ext | |
2755 | done | |
c906108c | 2756 | fi |
bec39cab | 2757 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2758 | fi |
b4e70030 JB |
2759 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2760 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2761 | if test "$ac_cv_search_strerror" != no; then | |
2762 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2763 | |
c906108c SS |
2764 | fi |
2765 | ||
783e057b DJ |
2766 | if test -n "$ac_tool_prefix"; then |
2767 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2768 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2771 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2773 | else | |
2774 | if test -n "$RANLIB"; then | |
2775 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2776 | else | |
2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2778 | for as_dir in $PATH | |
2779 | do | |
2780 | IFS=$as_save_IFS | |
2781 | test -z "$as_dir" && as_dir=. | |
2782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2784 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2786 | break 2 | |
2787 | fi | |
2788 | done | |
2789 | done | |
c906108c | 2790 | |
783e057b DJ |
2791 | fi |
2792 | fi | |
2793 | RANLIB=$ac_cv_prog_RANLIB | |
2794 | if test -n "$RANLIB"; then | |
2795 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2796 | echo "${ECHO_T}$RANLIB" >&6 | |
2797 | else | |
2798 | echo "$as_me:$LINENO: result: no" >&5 | |
2799 | echo "${ECHO_T}no" >&6 | |
2800 | fi | |
bec39cab | 2801 | |
783e057b DJ |
2802 | fi |
2803 | if test -z "$ac_cv_prog_RANLIB"; then | |
2804 | ac_ct_RANLIB=$RANLIB | |
2805 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2806 | set dummy ranlib; ac_word=$2 | |
2807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2809 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
bec39cab | 2810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 2811 | else |
783e057b DJ |
2812 | if test -n "$ac_ct_RANLIB"; then |
2813 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2814 | else | |
2815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2816 | for as_dir in $PATH | |
bec39cab | 2817 | do |
783e057b DJ |
2818 | IFS=$as_save_IFS |
2819 | test -z "$as_dir" && as_dir=. | |
2820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2822 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2824 | break 2 | |
2825 | fi | |
2826 | done | |
2827 | done | |
2828 | ||
2829 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2830 | fi | |
2831 | fi | |
2832 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2833 | if test -n "$ac_ct_RANLIB"; then | |
2834 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2835 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2836 | else | |
2837 | echo "$as_me:$LINENO: result: no" >&5 | |
2838 | echo "${ECHO_T}no" >&6 | |
2839 | fi | |
2840 | ||
2841 | RANLIB=$ac_ct_RANLIB | |
2842 | else | |
2843 | RANLIB="$ac_cv_prog_RANLIB" | |
2844 | fi | |
2845 | ||
2846 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2847 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2848 | if test "${ac_cv_header_stdc+set}" = set; then | |
2849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2850 | else | |
bec39cab AC |
2851 | cat >conftest.$ac_ext <<_ACEOF |
2852 | /* confdefs.h. */ | |
2853 | _ACEOF | |
2854 | cat confdefs.h >>conftest.$ac_ext | |
2855 | cat >>conftest.$ac_ext <<_ACEOF | |
2856 | /* end confdefs.h. */ | |
783e057b | 2857 | #include <stdlib.h> |
bec39cab | 2858 | #include <stdarg.h> |
783e057b DJ |
2859 | #include <string.h> |
2860 | #include <float.h> | |
c906108c | 2861 | |
bec39cab AC |
2862 | int |
2863 | main () | |
2864 | { | |
c906108c | 2865 | |
bec39cab AC |
2866 | ; |
2867 | return 0; | |
2868 | } | |
2869 | _ACEOF | |
2870 | rm -f conftest.$ac_objext | |
2871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2872 | (eval $ac_compile) 2>conftest.er1 | |
2873 | ac_status=$? | |
2874 | grep -v '^ *+' conftest.er1 >conftest.err | |
2875 | rm -f conftest.er1 | |
2876 | cat conftest.err >&5 | |
2877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2878 | (exit $ac_status); } && | |
b4e70030 JB |
2879 | { ac_try='test -z "$ac_c_werror_flag" |
2880 | || test ! -s conftest.err' | |
bec39cab AC |
2881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2882 | (eval $ac_try) 2>&5 | |
2883 | ac_status=$? | |
2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2885 | (exit $ac_status); }; } && | |
2886 | { ac_try='test -s conftest.$ac_objext' | |
2887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2888 | (eval $ac_try) 2>&5 | |
2889 | ac_status=$? | |
2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2891 | (exit $ac_status); }; }; then | |
783e057b | 2892 | ac_cv_header_stdc=yes |
c906108c | 2893 | else |
bec39cab AC |
2894 | echo "$as_me: failed program was:" >&5 |
2895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2896 | |
783e057b | 2897 | ac_cv_header_stdc=no |
c906108c | 2898 | fi |
bec39cab | 2899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2900 | |
783e057b DJ |
2901 | if test $ac_cv_header_stdc = yes; then |
2902 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2903 | cat >conftest.$ac_ext <<_ACEOF | |
2904 | /* confdefs.h. */ | |
2905 | _ACEOF | |
2906 | cat confdefs.h >>conftest.$ac_ext | |
2907 | cat >>conftest.$ac_ext <<_ACEOF | |
2908 | /* end confdefs.h. */ | |
2909 | #include <string.h> | |
c906108c | 2910 | |
783e057b DJ |
2911 | _ACEOF |
2912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2913 | $EGREP "memchr" >/dev/null 2>&1; then | |
2914 | : | |
c906108c | 2915 | else |
783e057b | 2916 | ac_cv_header_stdc=no |
c906108c | 2917 | fi |
783e057b | 2918 | rm -f conftest* |
c906108c SS |
2919 | |
2920 | fi | |
2921 | ||
783e057b DJ |
2922 | if test $ac_cv_header_stdc = yes; then |
2923 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2924 | cat >conftest.$ac_ext <<_ACEOF | |
2925 | /* confdefs.h. */ | |
2926 | _ACEOF | |
2927 | cat confdefs.h >>conftest.$ac_ext | |
2928 | cat >>conftest.$ac_ext <<_ACEOF | |
2929 | /* end confdefs.h. */ | |
2930 | #include <stdlib.h> | |
bec39cab | 2931 | |
783e057b DJ |
2932 | _ACEOF |
2933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2934 | $EGREP "free" >/dev/null 2>&1; then | |
2935 | : | |
bec39cab | 2936 | else |
783e057b | 2937 | ac_cv_header_stdc=no |
bec39cab | 2938 | fi |
783e057b | 2939 | rm -f conftest* |
bec39cab AC |
2940 | |
2941 | fi | |
bec39cab | 2942 | |
783e057b DJ |
2943 | if test $ac_cv_header_stdc = yes; then |
2944 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2945 | if test "$cross_compiling" = yes; then | |
2946 | : | |
bec39cab | 2947 | else |
783e057b DJ |
2948 | cat >conftest.$ac_ext <<_ACEOF |
2949 | /* confdefs.h. */ | |
2950 | _ACEOF | |
2951 | cat confdefs.h >>conftest.$ac_ext | |
2952 | cat >>conftest.$ac_ext <<_ACEOF | |
2953 | /* end confdefs.h. */ | |
2954 | #include <ctype.h> | |
2955 | #if ((' ' & 0x0FF) == 0x020) | |
2956 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2957 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2958 | #else | |
2959 | # define ISLOWER(c) \ | |
2960 | (('a' <= (c) && (c) <= 'i') \ | |
2961 | || ('j' <= (c) && (c) <= 'r') \ | |
2962 | || ('s' <= (c) && (c) <= 'z')) | |
2963 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2964 | #endif | |
2965 | ||
2966 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2967 | int | |
2968 | main () | |
2969 | { | |
2970 | int i; | |
2971 | for (i = 0; i < 256; i++) | |
2972 | if (XOR (islower (i), ISLOWER (i)) | |
2973 | || toupper (i) != TOUPPER (i)) | |
2974 | exit(2); | |
2975 | exit (0); | |
2976 | } | |
2977 | _ACEOF | |
2978 | rm -f conftest$ac_exeext | |
2979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2980 | (eval $ac_link) 2>&5 | |
2981 | ac_status=$? | |
2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2985 | (eval $ac_try) 2>&5 | |
2986 | ac_status=$? | |
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2988 | (exit $ac_status); }; }; then | |
2989 | : | |
2990 | else | |
2991 | echo "$as_me: program exited with status $ac_status" >&5 | |
2992 | echo "$as_me: failed program was:" >&5 | |
2993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2994 | ||
2995 | ( exit $ac_status ) | |
2996 | ac_cv_header_stdc=no | |
2997 | fi | |
2998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2999 | fi | |
3000 | fi | |
3001 | fi | |
3002 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3003 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3004 | if test $ac_cv_header_stdc = yes; then | |
3005 | ||
3006 | cat >>confdefs.h <<\_ACEOF | |
3007 | #define STDC_HEADERS 1 | |
3008 | _ACEOF | |
3009 | ||
3010 | fi | |
3011 | ||
3012 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3013 | ||
3014 | ||
3015 | ||
3016 | ||
3017 | ||
3018 | ||
3019 | ||
3020 | ||
3021 | ||
3022 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3023 | inttypes.h stdint.h unistd.h | |
3024 | do | |
3025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3030 | else | |
3031 | cat >conftest.$ac_ext <<_ACEOF | |
3032 | /* confdefs.h. */ | |
3033 | _ACEOF | |
3034 | cat confdefs.h >>conftest.$ac_ext | |
3035 | cat >>conftest.$ac_ext <<_ACEOF | |
3036 | /* end confdefs.h. */ | |
3037 | $ac_includes_default | |
3038 | ||
3039 | #include <$ac_header> | |
3040 | _ACEOF | |
3041 | rm -f conftest.$ac_objext | |
3042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3043 | (eval $ac_compile) 2>conftest.er1 | |
3044 | ac_status=$? | |
3045 | grep -v '^ *+' conftest.er1 >conftest.err | |
3046 | rm -f conftest.er1 | |
3047 | cat conftest.err >&5 | |
3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3049 | (exit $ac_status); } && | |
3050 | { ac_try='test -z "$ac_c_werror_flag" | |
3051 | || test ! -s conftest.err' | |
3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3053 | (eval $ac_try) 2>&5 | |
3054 | ac_status=$? | |
3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3056 | (exit $ac_status); }; } && | |
3057 | { ac_try='test -s conftest.$ac_objext' | |
3058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3059 | (eval $ac_try) 2>&5 | |
3060 | ac_status=$? | |
3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3062 | (exit $ac_status); }; }; then | |
3063 | eval "$as_ac_Header=yes" | |
3064 | else | |
3065 | echo "$as_me: failed program was:" >&5 | |
3066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3067 | ||
3068 | eval "$as_ac_Header=no" | |
3069 | fi | |
3070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3071 | fi | |
3072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3075 | cat >>confdefs.h <<_ACEOF | |
3076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3077 | _ACEOF | |
3078 | ||
3079 | fi | |
3080 | ||
3081 | done | |
3082 | ||
3083 | ||
3084 | ||
3085 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3086 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3087 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3088 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3090 | fi | |
3091 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3092 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3093 | else | |
3094 | # Is the header compilable? | |
3095 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
3096 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
3098 | /* confdefs.h. */ | |
3099 | _ACEOF | |
3100 | cat confdefs.h >>conftest.$ac_ext | |
3101 | cat >>conftest.$ac_ext <<_ACEOF | |
3102 | /* end confdefs.h. */ | |
3103 | $ac_includes_default | |
3104 | #include <minix/config.h> | |
3105 | _ACEOF | |
3106 | rm -f conftest.$ac_objext | |
3107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3108 | (eval $ac_compile) 2>conftest.er1 | |
3109 | ac_status=$? | |
3110 | grep -v '^ *+' conftest.er1 >conftest.err | |
3111 | rm -f conftest.er1 | |
3112 | cat conftest.err >&5 | |
3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3114 | (exit $ac_status); } && | |
3115 | { ac_try='test -z "$ac_c_werror_flag" | |
3116 | || test ! -s conftest.err' | |
3117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3118 | (eval $ac_try) 2>&5 | |
3119 | ac_status=$? | |
3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3121 | (exit $ac_status); }; } && | |
3122 | { ac_try='test -s conftest.$ac_objext' | |
3123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3124 | (eval $ac_try) 2>&5 | |
3125 | ac_status=$? | |
3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3127 | (exit $ac_status); }; }; then | |
3128 | ac_header_compiler=yes | |
3129 | else | |
3130 | echo "$as_me: failed program was:" >&5 | |
3131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3132 | ||
3133 | ac_header_compiler=no | |
3134 | fi | |
3135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3136 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3137 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3138 | ||
3139 | # Is the header present? | |
3140 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
3141 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
3142 | cat >conftest.$ac_ext <<_ACEOF | |
3143 | /* confdefs.h. */ | |
3144 | _ACEOF | |
3145 | cat confdefs.h >>conftest.$ac_ext | |
3146 | cat >>conftest.$ac_ext <<_ACEOF | |
3147 | /* end confdefs.h. */ | |
3148 | #include <minix/config.h> | |
3149 | _ACEOF | |
3150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3152 | ac_status=$? | |
3153 | grep -v '^ *+' conftest.er1 >conftest.err | |
3154 | rm -f conftest.er1 | |
3155 | cat conftest.err >&5 | |
3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3157 | (exit $ac_status); } >/dev/null; then | |
3158 | if test -s conftest.err; then | |
3159 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3161 | else | |
3162 | ac_cpp_err= | |
3163 | fi | |
3164 | else | |
3165 | ac_cpp_err=yes | |
3166 | fi | |
3167 | if test -z "$ac_cpp_err"; then | |
3168 | ac_header_preproc=yes | |
3169 | else | |
3170 | echo "$as_me: failed program was:" >&5 | |
3171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3172 | ||
3173 | ac_header_preproc=no | |
3174 | fi | |
3175 | rm -f conftest.err conftest.$ac_ext | |
3176 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3177 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3178 | ||
3179 | # So? What about this header? | |
3180 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3181 | yes:no: ) | |
3182 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3183 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3184 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
3185 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
3186 | ac_header_preproc=yes | |
3187 | ;; | |
3188 | no:yes:* ) | |
3189 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
3190 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
3191 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
3192 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
3193 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
3194 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
3195 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3196 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3197 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
3198 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
3199 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
3200 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
3201 | ( | |
3202 | cat <<\_ASBOX | |
3203 | ## ------------------------------------------ ## | |
3204 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3205 | ## ------------------------------------------ ## | |
3206 | _ASBOX | |
3207 | ) | | |
3208 | sed "s/^/$as_me: WARNING: /" >&2 | |
3209 | ;; | |
3210 | esac | |
3211 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3212 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3213 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3215 | else | |
3216 | ac_cv_header_minix_config_h=$ac_header_preproc | |
3217 | fi | |
3218 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3219 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3220 | ||
3221 | fi | |
3222 | if test $ac_cv_header_minix_config_h = yes; then | |
3223 | MINIX=yes | |
3224 | else | |
3225 | MINIX= | |
3226 | fi | |
3227 | ||
3228 | ||
3229 | if test "$MINIX" = yes; then | |
3230 | ||
3231 | cat >>confdefs.h <<\_ACEOF | |
3232 | #define _POSIX_SOURCE 1 | |
3233 | _ACEOF | |
3234 | ||
3235 | ||
3236 | cat >>confdefs.h <<\_ACEOF | |
3237 | #define _POSIX_1_SOURCE 2 | |
3238 | _ACEOF | |
3239 | ||
3240 | ||
3241 | cat >>confdefs.h <<\_ACEOF | |
3242 | #define _MINIX 1 | |
3243 | _ACEOF | |
3244 | ||
3245 | fi | |
3246 | ||
3247 | ||
3248 | ||
3249 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3250 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
3251 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3253 | else | |
3254 | cat >conftest.$ac_ext <<_ACEOF | |
3255 | /* confdefs.h. */ | |
3256 | _ACEOF | |
3257 | cat confdefs.h >>conftest.$ac_ext | |
3258 | cat >>conftest.$ac_ext <<_ACEOF | |
3259 | /* end confdefs.h. */ | |
3260 | ||
3261 | # define __EXTENSIONS__ 1 | |
3262 | $ac_includes_default | |
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | ||
3267 | ; | |
3268 | return 0; | |
3269 | } | |
3270 | _ACEOF | |
3271 | rm -f conftest.$ac_objext | |
3272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3273 | (eval $ac_compile) 2>conftest.er1 | |
3274 | ac_status=$? | |
3275 | grep -v '^ *+' conftest.er1 >conftest.err | |
3276 | rm -f conftest.er1 | |
3277 | cat conftest.err >&5 | |
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3279 | (exit $ac_status); } && | |
3280 | { ac_try='test -z "$ac_c_werror_flag" | |
3281 | || test ! -s conftest.err' | |
3282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3283 | (eval $ac_try) 2>&5 | |
3284 | ac_status=$? | |
3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3286 | (exit $ac_status); }; } && | |
3287 | { ac_try='test -s conftest.$ac_objext' | |
3288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3289 | (eval $ac_try) 2>&5 | |
3290 | ac_status=$? | |
3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3292 | (exit $ac_status); }; }; then | |
3293 | ac_cv_safe_to_define___extensions__=yes | |
3294 | else | |
3295 | echo "$as_me: failed program was:" >&5 | |
3296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3297 | ||
3298 | ac_cv_safe_to_define___extensions__=no | |
3299 | fi | |
3300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3301 | fi | |
3302 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3303 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
3304 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3305 | cat >>confdefs.h <<\_ACEOF | |
3306 | #define __EXTENSIONS__ 1 | |
3307 | _ACEOF | |
3308 | ||
3309 | cat >>confdefs.h <<\_ACEOF | |
3310 | #define _ALL_SOURCE 1 | |
3311 | _ACEOF | |
3312 | ||
3313 | cat >>confdefs.h <<\_ACEOF | |
3314 | #define _GNU_SOURCE 1 | |
3315 | _ACEOF | |
3316 | ||
3317 | cat >>confdefs.h <<\_ACEOF | |
3318 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
3319 | _ACEOF | |
3320 | ||
3321 | cat >>confdefs.h <<\_ACEOF | |
3322 | #define _TANDEM_SOURCE 1 | |
3323 | _ACEOF | |
3324 | ||
3325 | ||
3326 | ||
3327 | ||
3328 | ||
3329 | ||
3330 | ||
3331 | ||
3332 | ||
3333 | ||
3334 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
3335 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
3336 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
3337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3338 | else | |
3339 | am_cv_prog_cc_stdc=no | |
3340 | ac_save_CC="$CC" | |
3341 | # Don't try gcc -ansi; that turns off useful extensions and | |
3342 | # breaks some systems' header files. | |
3343 | # AIX -qlanglvl=ansi | |
3344 | # Ultrix and OSF/1 -std1 | |
3345 | # HP-UX 10.20 and later -Ae | |
3346 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3347 | # SVR4 -Xc -D__EXTENSIONS__ | |
3348 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3349 | do | |
3350 | CC="$ac_save_CC $ac_arg" | |
3351 | cat >conftest.$ac_ext <<_ACEOF | |
3352 | /* confdefs.h. */ | |
3353 | _ACEOF | |
3354 | cat confdefs.h >>conftest.$ac_ext | |
3355 | cat >>conftest.$ac_ext <<_ACEOF | |
3356 | /* end confdefs.h. */ | |
3357 | #include <stdarg.h> | |
3358 | #include <stdio.h> | |
3359 | #include <sys/types.h> | |
3360 | #include <sys/stat.h> | |
3361 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3362 | struct buf { int x; }; | |
3363 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3364 | static char *e (p, i) | |
3365 | char **p; | |
3366 | int i; | |
3367 | { | |
3368 | return p[i]; | |
3369 | } | |
3370 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3371 | { | |
3372 | char *s; | |
3373 | va_list v; | |
3374 | va_start (v,p); | |
3375 | s = g (p, va_arg (v,int)); | |
3376 | va_end (v); | |
3377 | return s; | |
3378 | } | |
3379 | int test (int i, double x); | |
3380 | struct s1 {int (*f) (int a);}; | |
3381 | struct s2 {int (*f) (double a);}; | |
3382 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3383 | int argc; | |
3384 | char **argv; | |
3385 | ||
3386 | int | |
3387 | main () | |
3388 | { | |
3389 | ||
3390 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3391 | ||
3392 | ; | |
3393 | return 0; | |
3394 | } | |
3395 | _ACEOF | |
3396 | rm -f conftest.$ac_objext | |
3397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3398 | (eval $ac_compile) 2>conftest.er1 | |
3399 | ac_status=$? | |
3400 | grep -v '^ *+' conftest.er1 >conftest.err | |
3401 | rm -f conftest.er1 | |
3402 | cat conftest.err >&5 | |
3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3404 | (exit $ac_status); } && | |
3405 | { ac_try='test -z "$ac_c_werror_flag" | |
3406 | || test ! -s conftest.err' | |
3407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3408 | (eval $ac_try) 2>&5 | |
3409 | ac_status=$? | |
3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3411 | (exit $ac_status); }; } && | |
3412 | { ac_try='test -s conftest.$ac_objext' | |
3413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3414 | (eval $ac_try) 2>&5 | |
3415 | ac_status=$? | |
3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3417 | (exit $ac_status); }; }; then | |
3418 | am_cv_prog_cc_stdc="$ac_arg"; break | |
3419 | else | |
3420 | echo "$as_me: failed program was:" >&5 | |
3421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3422 | ||
3423 | fi | |
3424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3425 | done | |
3426 | CC="$ac_save_CC" | |
3427 | ||
3428 | fi | |
3429 | ||
3430 | if test -z "$am_cv_prog_cc_stdc"; then | |
3431 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3432 | echo "${ECHO_T}none needed" >&6 | |
3433 | else | |
3434 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 | |
3435 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
3436 | fi | |
3437 | case "x$am_cv_prog_cc_stdc" in | |
3438 | x|xno) ;; | |
3439 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
3440 | esac | |
3441 | ||
3442 | ||
3443 | ac_aux_dir= | |
3444 | for ac_dir in .. $srcdir/..; do | |
3445 | if test -f $ac_dir/install-sh; then | |
3446 | ac_aux_dir=$ac_dir | |
3447 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3448 | break | |
3449 | elif test -f $ac_dir/install.sh; then | |
3450 | ac_aux_dir=$ac_dir | |
3451 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3452 | break | |
3453 | elif test -f $ac_dir/shtool; then | |
3454 | ac_aux_dir=$ac_dir | |
3455 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3456 | break | |
3457 | fi | |
3458 | done | |
3459 | if test -z "$ac_aux_dir"; then | |
3460 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
3461 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
3462 | { (exit 1); exit 1; }; } | |
3463 | fi | |
3464 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
3465 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3466 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
3467 | ||
3468 | # Make sure we can run config.sub. | |
3469 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3470 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3471 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3472 | { (exit 1); exit 1; }; } | |
3473 | ||
3474 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3475 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3476 | if test "${ac_cv_build+set}" = set; then | |
3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3478 | else | |
3479 | ac_cv_build_alias=$build_alias | |
3480 | test -z "$ac_cv_build_alias" && | |
3481 | ac_cv_build_alias=`$ac_config_guess` | |
3482 | test -z "$ac_cv_build_alias" && | |
3483 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3484 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3485 | { (exit 1); exit 1; }; } | |
3486 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3487 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3488 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3489 | { (exit 1); exit 1; }; } | |
3490 | ||
3491 | fi | |
3492 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3493 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3494 | build=$ac_cv_build | |
3495 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3496 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3497 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3498 | ||
3499 | ||
3500 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3501 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3502 | if test "${ac_cv_host+set}" = set; then | |
3503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3504 | else | |
3505 | ac_cv_host_alias=$host_alias | |
3506 | test -z "$ac_cv_host_alias" && | |
3507 | ac_cv_host_alias=$ac_cv_build_alias | |
3508 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3509 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3510 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3511 | { (exit 1); exit 1; }; } | |
3512 | ||
3513 | fi | |
3514 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3515 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3516 | host=$ac_cv_host | |
3517 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3518 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3519 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3520 | ||
3521 | ||
3522 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3523 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3524 | if test "${ac_cv_target+set}" = set; then | |
3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3526 | else | |
3527 | ac_cv_target_alias=$target_alias | |
3528 | test "x$ac_cv_target_alias" = "x" && | |
b4e70030 JB |
3529 | ac_cv_target_alias=$ac_cv_host_alias |
3530 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3531 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3532 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
3533 | { (exit 1); exit 1; }; } |
3534 | ||
3535 | fi | |
783e057b DJ |
3536 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
3537 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3538 | target=$ac_cv_target | |
3539 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3540 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3541 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3542 | ||
3543 | ||
3544 | # The aliases save the names the user supplied, while $host etc. | |
3545 | # will get canonicalized. | |
3546 | test -n "$target_alias" && | |
3547 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3548 | NONENONEs,x,x, && | |
3549 | program_prefix=${target_alias}- | |
3550 | ||
a417dc56 RW |
3551 | # Dependency checking. |
3552 | rm -rf .tst 2>/dev/null | |
3553 | mkdir .tst 2>/dev/null | |
3554 | if test -d .tst; then | |
3555 | am__leading_dot=. | |
3556 | else | |
3557 | am__leading_dot=_ | |
3558 | fi | |
3559 | rmdir .tst 2>/dev/null | |
3560 | ||
3561 | DEPDIR="${am__leading_dot}deps" | |
3562 | ||
3563 | ac_config_commands="$ac_config_commands depdir" | |
3564 | ||
3565 | ||
3566 | depcc="$CC" am_compiler_list= | |
3567 | ||
3568 | am_depcomp=$ac_aux_dir/depcomp | |
3569 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3570 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3571 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3573 | else | |
3574 | if test -f "$am_depcomp"; then | |
3575 | # We make a subdir and do the tests there. Otherwise we can end up | |
3576 | # making bogus files that we don't know about and never remove. For | |
3577 | # instance it was reported that on HP-UX the gcc test will end up | |
3578 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3579 | # in D'. | |
3580 | mkdir conftest.dir | |
3581 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3582 | # using a relative directory. | |
3583 | cp "$am_depcomp" conftest.dir | |
3584 | cd conftest.dir | |
3585 | # We will build objects and dependencies in a subdirectory because | |
3586 | # it helps to detect inapplicable dependency modes. For instance | |
3587 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3588 | # side effect of compilation, but ICC will put the dependencies in | |
3589 | # the current directory while Tru64 will put them in the object | |
3590 | # directory. | |
3591 | mkdir sub | |
3592 | ||
3593 | am_cv_CC_dependencies_compiler_type=none | |
3594 | if test "$am_compiler_list" = ""; then | |
3595 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3596 | fi | |
3597 | for depmode in $am_compiler_list; do | |
3598 | if test $depmode = none; then break; fi | |
3599 | ||
3600 | echo "$as_me:$LINENO: trying $depmode" >&5 | |
3601 | # Setup a source with many dependencies, because some compilers | |
3602 | # like to wrap large dependency lists on column 80 (with \), and | |
3603 | # we should not choose a depcomp mode which is confused by this. | |
3604 | # | |
3605 | # We need to recreate these files for each test, as the compiler may | |
3606 | # overwrite some of them when testing with obscure command lines. | |
3607 | # This happens at least with the AIX C compiler. | |
3608 | : > sub/conftest.c | |
3609 | for i in 1 2 3 4 5 6; do | |
3610 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3611 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3612 | # Solaris 8's {/usr,}/bin/sh. | |
3613 | touch sub/conftst$i.h | |
3614 | done | |
3615 | echo "include sub/conftest.Po" > confmf | |
3616 | ||
3617 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3618 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3619 | # handle `-M -o', and we need to detect this. | |
3620 | depcmd="depmode=$depmode \ | |
3621 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3622 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3623 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
3624 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
3625 | if env $depcmd > conftest.err 2>&1 && | |
3626 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
3627 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
3628 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
3629 | # icc doesn't choke on unknown options, it will just issue warnings | |
3630 | # or remarks (even with -Werror). So we grep stderr for any message | |
3631 | # that says an option was ignored or not supported. | |
3632 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3633 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3634 | # The diagnosis changed in icc 8.0: | |
3635 | # icc: Command line remark: option '-MP' not supported | |
3636 | if (grep 'ignoring option' conftest.err || | |
3637 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3638 | am_cv_CC_dependencies_compiler_type=$depmode | |
3639 | echo "$as_me:$LINENO: success" >&5 | |
3640 | break | |
3641 | fi | |
3642 | fi | |
3643 | echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
3644 | sed -e 's/^/| /' < conftest.err >&5 | |
3645 | done | |
3646 | ||
3647 | cd .. | |
3648 | rm -rf conftest.dir | |
3649 | else | |
3650 | am_cv_CC_dependencies_compiler_type=none | |
3651 | fi | |
3652 | ||
3653 | fi | |
3654 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3655 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3656 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
3657 | then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5 | |
3658 | echo "$as_me: error: no usable dependency style found" >&2;} | |
3659 | { (exit 1); exit 1; }; } | |
3660 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3661 | ||
3662 | fi | |
3663 | ||
3664 | ||
3665 | # Check for the 'make' the user wants to use. | |
3666 | for ac_prog in make | |
3667 | do | |
3668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3669 | set dummy $ac_prog; ac_word=$2 | |
3670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3672 | if test "${ac_cv_prog_MAKE+set}" = set; then | |
3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3674 | else | |
3675 | if test -n "$MAKE"; then | |
3676 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
3677 | else | |
3678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3679 | for as_dir in $PATH | |
3680 | do | |
3681 | IFS=$as_save_IFS | |
3682 | test -z "$as_dir" && as_dir=. | |
3683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3685 | ac_cv_prog_MAKE="$ac_prog" | |
3686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3687 | break 2 | |
3688 | fi | |
3689 | done | |
3690 | done | |
3691 | ||
3692 | fi | |
3693 | fi | |
3694 | MAKE=$ac_cv_prog_MAKE | |
3695 | if test -n "$MAKE"; then | |
3696 | echo "$as_me:$LINENO: result: $MAKE" >&5 | |
3697 | echo "${ECHO_T}$MAKE" >&6 | |
3698 | else | |
3699 | echo "$as_me:$LINENO: result: no" >&5 | |
3700 | echo "${ECHO_T}no" >&6 | |
3701 | fi | |
3702 | ||
3703 | test -n "$MAKE" && break | |
3704 | done | |
3705 | ||
3706 | MAKE_IS_GNU= | |
3707 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
3708 | *GNU*) | |
3709 | MAKE_IS_GNU=yes | |
3710 | ;; | |
3711 | esac | |
3712 | ||
3713 | ||
3714 | if test "$MAKE_IS_GNU" = yes; then | |
3715 | GMAKE_TRUE= | |
3716 | GMAKE_FALSE='#' | |
3717 | else | |
3718 | GMAKE_TRUE='#' | |
3719 | GMAKE_FALSE= | |
3720 | fi | |
3721 | ||
3722 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3723 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3724 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3725 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3727 | else | |
3728 | cat >conftest.make <<\_ACEOF | |
3729 | all: | |
3730 | @echo 'ac_maketemp="$(MAKE)"' | |
3731 | _ACEOF | |
3732 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3733 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3734 | if test -n "$ac_maketemp"; then | |
3735 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3736 | else | |
3737 | eval ac_cv_prog_make_${ac_make}_set=no | |
3738 | fi | |
3739 | rm -f conftest.make | |
3740 | fi | |
3741 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3742 | echo "$as_me:$LINENO: result: yes" >&5 | |
3743 | echo "${ECHO_T}yes" >&6 | |
3744 | SET_MAKE= | |
3745 | else | |
3746 | echo "$as_me:$LINENO: result: no" >&5 | |
3747 | echo "${ECHO_T}no" >&6 | |
3748 | SET_MAKE="MAKE=${MAKE-make}" | |
3749 | fi | |
3750 | ||
3751 | ||
783e057b DJ |
3752 | |
3753 | CONFIG_OBS= | |
3754 | CONFIG_DEPS= | |
3755 | CONFIG_SRCS= | |
3756 | ENABLE_CFLAGS= | |
3757 | ||
3758 | CONFIG_ALL= | |
3759 | CONFIG_CLEAN= | |
3760 | CONFIG_INSTALL= | |
3761 | CONFIG_UNINSTALL= | |
3762 | ||
3763 | # If we haven't got the data from the intl directory, | |
3764 | # assume NLS is disabled. | |
3765 | USE_NLS=no | |
3766 | LIBINTL= | |
3767 | LIBINTL_DEP= | |
3768 | INCINTL= | |
3769 | XGETTEXT= | |
3770 | GMSGFMT= | |
3771 | POSUB= | |
3772 | ||
3773 | if test -f ../intl/config.intl; then | |
3774 | . ../intl/config.intl | |
3775 | fi | |
3776 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
3777 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
3778 | if test x"$USE_NLS" != xyes; then | |
3779 | echo "$as_me:$LINENO: result: no" >&5 | |
3780 | echo "${ECHO_T}no" >&6 | |
3781 | else | |
3782 | echo "$as_me:$LINENO: result: yes" >&5 | |
3783 | echo "${ECHO_T}yes" >&6 | |
3784 | ||
3785 | cat >>confdefs.h <<\_ACEOF | |
3786 | #define ENABLE_NLS 1 | |
3787 | _ACEOF | |
3788 | ||
3789 | ||
3790 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
3791 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
3792 | # Look for .po and .gmo files in the source directory. | |
3793 | CATALOGS= | |
3794 | XLINGUAS= | |
3795 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
3796 | # If there aren't any .gmo files the shell will give us the | |
3797 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
3798 | # weeded out. | |
3799 | case "$cat" in *\**) | |
3800 | continue;; | |
3801 | esac | |
3802 | # The quadruple backslash is collapsed to a double backslash | |
3803 | # by the backticks, then collapsed again by the double quotes, | |
3804 | # leaving us with one backslash in the sed expression (right | |
3805 | # before the dot that mustn't act as a wildcard). | |
3806 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
3807 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
3808 | # The user is allowed to set LINGUAS to a list of languages to | |
3809 | # install catalogs for. If it's empty that means "all of them." | |
3810 | if test "x$LINGUAS" = x; then | |
3811 | CATALOGS="$CATALOGS $cat" | |
3812 | XLINGUAS="$XLINGUAS $lang" | |
3813 | else | |
3814 | case "$LINGUAS" in *$lang*) | |
3815 | CATALOGS="$CATALOGS $cat" | |
3816 | XLINGUAS="$XLINGUAS $lang" | |
3817 | ;; | |
3818 | esac | |
3819 | fi | |
3820 | done | |
3821 | LINGUAS="$XLINGUAS" | |
3822 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3823 | echo "${ECHO_T}$LINGUAS" >&6 | |
3824 | ||
3825 | ||
3826 | DATADIRNAME=share | |
3827 | ||
3828 | INSTOBJEXT=.mo | |
3829 | ||
3830 | GENCAT=gencat | |
3831 | ||
3832 | CATOBJEXT=.gmo | |
3833 | ||
3834 | fi | |
3835 | ||
3836 | localedir='${datadir}/locale' | |
3837 | ||
3838 | ||
3839 | if test x"$USE_NLS" = xyes; then | |
3840 | CONFIG_ALL="$CONFIG_ALL all-po" | |
3841 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3842 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3843 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | GNULIB_MEMMEM=0; | |
3848 | GNULIB_MEMPCPY=0; | |
3849 | GNULIB_MEMRCHR=0; | |
3850 | GNULIB_STPCPY=0; | |
3851 | GNULIB_STPNCPY=0; | |
3852 | GNULIB_STRCHRNUL=0; | |
3853 | GNULIB_STRDUP=0; | |
3854 | GNULIB_STRNDUP=0; | |
3855 | GNULIB_STRNLEN=0; | |
3856 | GNULIB_STRPBRK=0; | |
3857 | GNULIB_STRSEP=0; | |
3858 | GNULIB_STRSTR=0; | |
3859 | GNULIB_STRCASESTR=0; | |
3860 | GNULIB_STRTOK_R=0; | |
3861 | GNULIB_MBSLEN=0; | |
3862 | GNULIB_MBSNLEN=0; | |
3863 | GNULIB_MBSCHR=0; | |
3864 | GNULIB_MBSRCHR=0; | |
3865 | GNULIB_MBSSTR=0; | |
3866 | GNULIB_MBSCASECMP=0; | |
3867 | GNULIB_MBSNCASECMP=0; | |
3868 | GNULIB_MBSPCASECMP=0; | |
3869 | GNULIB_MBSCASESTR=0; | |
3870 | GNULIB_MBSCSPN=0; | |
3871 | GNULIB_MBSPBRK=0; | |
3872 | GNULIB_MBSSPN=0; | |
3873 | GNULIB_MBSSEP=0; | |
3874 | GNULIB_MBSTOK_R=0; | |
3875 | GNULIB_STRERROR=0; | |
3876 | GNULIB_STRSIGNAL=0; | |
3877 | HAVE_DECL_MEMMEM=1; | |
3878 | HAVE_MEMPCPY=1; | |
3879 | HAVE_DECL_MEMRCHR=1; | |
3880 | HAVE_STPCPY=1; | |
3881 | HAVE_STPNCPY=1; | |
3882 | HAVE_STRCHRNUL=1; | |
3883 | HAVE_DECL_STRDUP=1; | |
3884 | HAVE_STRNDUP=1; | |
3885 | HAVE_DECL_STRNDUP=1; | |
3886 | HAVE_DECL_STRNLEN=1; | |
3887 | HAVE_STRPBRK=1; | |
3888 | HAVE_STRSEP=1; | |
3889 | HAVE_STRCASESTR=1; | |
3890 | HAVE_DECL_STRTOK_R=1; | |
3891 | HAVE_DECL_STRERROR=1; | |
3892 | HAVE_DECL_STRSIGNAL=1; | |
3893 | REPLACE_STRERROR=0; | |
3894 | REPLACE_STRSIGNAL=0; | |
3895 | REPLACE_MEMMEM=0; | |
3896 | REPLACE_STRCASESTR=0; | |
3897 | REPLACE_STRSTR=0; | |
3898 | ||
3899 | ||
3900 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 | |
3901 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 | |
3902 | if test "${ac_cv_have_decl_memmem+set}" = set; then | |
3903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3904 | else | |
3905 | cat >conftest.$ac_ext <<_ACEOF | |
3906 | /* confdefs.h. */ | |
3907 | _ACEOF | |
3908 | cat confdefs.h >>conftest.$ac_ext | |
3909 | cat >>conftest.$ac_ext <<_ACEOF | |
3910 | /* end confdefs.h. */ | |
3911 | $ac_includes_default | |
3912 | int | |
3913 | main () | |
3914 | { | |
3915 | #ifndef memmem | |
3916 | char *p = (char *) memmem; | |
3917 | #endif | |
3918 | ||
3919 | ; | |
3920 | return 0; | |
3921 | } | |
3922 | _ACEOF | |
3923 | rm -f conftest.$ac_objext | |
3924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3925 | (eval $ac_compile) 2>conftest.er1 | |
3926 | ac_status=$? | |
3927 | grep -v '^ *+' conftest.er1 >conftest.err | |
3928 | rm -f conftest.er1 | |
3929 | cat conftest.err >&5 | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); } && | |
3932 | { ac_try='test -z "$ac_c_werror_flag" | |
3933 | || test ! -s conftest.err' | |
3934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3935 | (eval $ac_try) 2>&5 | |
3936 | ac_status=$? | |
3937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3938 | (exit $ac_status); }; } && | |
3939 | { ac_try='test -s conftest.$ac_objext' | |
3940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3941 | (eval $ac_try) 2>&5 | |
3942 | ac_status=$? | |
3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3944 | (exit $ac_status); }; }; then | |
3945 | ac_cv_have_decl_memmem=yes | |
3946 | else | |
3947 | echo "$as_me: failed program was:" >&5 | |
3948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3949 | ||
3950 | ac_cv_have_decl_memmem=no | |
3951 | fi | |
3952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3953 | fi | |
3954 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 | |
3955 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 | |
3956 | if test $ac_cv_have_decl_memmem = yes; then | |
3957 | ||
3958 | cat >>confdefs.h <<_ACEOF | |
3959 | #define HAVE_DECL_MEMMEM 1 | |
3960 | _ACEOF | |
3961 | ||
3962 | ||
3963 | else | |
3964 | cat >>confdefs.h <<_ACEOF | |
3965 | #define HAVE_DECL_MEMMEM 0 | |
3966 | _ACEOF | |
3967 | ||
3968 | ||
3969 | fi | |
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | ||
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | ||
3984 | ||
3985 | for ac_func in memmem | |
3986 | do | |
3987 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3988 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3989 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3990 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3992 | else | |
3993 | cat >conftest.$ac_ext <<_ACEOF | |
3994 | /* confdefs.h. */ | |
3995 | _ACEOF | |
3996 | cat confdefs.h >>conftest.$ac_ext | |
3997 | cat >>conftest.$ac_ext <<_ACEOF | |
3998 | /* end confdefs.h. */ | |
3999 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4001 | #define $ac_func innocuous_$ac_func | |
4002 | ||
4003 | /* System header to define __stub macros and hopefully few prototypes, | |
4004 | which can conflict with char $ac_func (); below. | |
4005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4006 | <limits.h> exists even on freestanding compilers. */ | |
4007 | ||
4008 | #ifdef __STDC__ | |
4009 | # include <limits.h> | |
4010 | #else | |
4011 | # include <assert.h> | |
4012 | #endif | |
4013 | ||
4014 | #undef $ac_func | |
4015 | ||
4016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4017 | #ifdef __cplusplus | |
4018 | extern "C" | |
4019 | { | |
4020 | #endif | |
4021 | /* We use char because int might match the return type of a gcc2 | |
4022 | builtin and then its argument prototype would still apply. */ | |
4023 | char $ac_func (); | |
4024 | /* The GNU C library defines this for functions which it implements | |
4025 | to always fail with ENOSYS. Some functions are actually named | |
4026 | something starting with __ and the normal name is an alias. */ | |
4027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4028 | choke me | |
4029 | #else | |
4030 | char (*f) () = $ac_func; | |
4031 | #endif | |
4032 | #ifdef __cplusplus | |
4033 | } | |
4034 | #endif | |
4035 | ||
4036 | int | |
4037 | main () | |
4038 | { | |
4039 | return f != $ac_func; | |
4040 | ; | |
4041 | return 0; | |
4042 | } | |
4043 | _ACEOF | |
4044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4046 | (eval $ac_link) 2>conftest.er1 | |
4047 | ac_status=$? | |
4048 | grep -v '^ *+' conftest.er1 >conftest.err | |
4049 | rm -f conftest.er1 | |
4050 | cat conftest.err >&5 | |
4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4052 | (exit $ac_status); } && | |
4053 | { ac_try='test -z "$ac_c_werror_flag" | |
4054 | || test ! -s conftest.err' | |
4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4056 | (eval $ac_try) 2>&5 | |
4057 | ac_status=$? | |
4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4059 | (exit $ac_status); }; } && | |
4060 | { ac_try='test -s conftest$ac_exeext' | |
4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4062 | (eval $ac_try) 2>&5 | |
4063 | ac_status=$? | |
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4065 | (exit $ac_status); }; }; then | |
4066 | eval "$as_ac_var=yes" | |
4067 | else | |
4068 | echo "$as_me: failed program was:" >&5 | |
4069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4070 | ||
4071 | eval "$as_ac_var=no" | |
4072 | fi | |
4073 | rm -f conftest.err conftest.$ac_objext \ | |
4074 | conftest$ac_exeext conftest.$ac_ext | |
4075 | fi | |
4076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4077 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4078 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4079 | cat >>confdefs.h <<_ACEOF | |
4080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4081 | _ACEOF | |
4082 | ||
4083 | else | |
4084 | ||
4085 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
4086 | ||
4087 | fi | |
4088 | done | |
4089 | ||
4090 | ||
4091 | ||
4092 | : | |
4093 | ||
4094 | ||
4095 | ||
4096 | ||
4097 | ||
4098 | if test $ac_cv_have_decl_memmem = no; then | |
4099 | HAVE_DECL_MEMMEM=0 | |
4100 | fi | |
4101 | : | |
4102 | ||
4103 | ||
4104 | echo "$as_me:$LINENO: checking for long long int" >&5 | |
4105 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | |
4106 | if test "${ac_cv_type_long_long_int+set}" = set; then | |
4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4108 | else | |
4109 | cat >conftest.$ac_ext <<_ACEOF | |
4110 | ||
4111 | /* confdefs.h. */ | |
4112 | _ACEOF | |
4113 | cat confdefs.h >>conftest.$ac_ext | |
4114 | cat >>conftest.$ac_ext <<_ACEOF | |
4115 | /* end confdefs.h. */ | |
4116 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
4117 | implementations with broken preprocessors. Perhaps this can | |
4118 | be revisited in 2012. In the meantime, code should not expect | |
4119 | #if to work with literals wider than 32 bits. */ | |
4120 | /* Test literals. */ | |
4121 | long long int ll = 9223372036854775807ll; | |
4122 | long long int nll = -9223372036854775807LL; | |
4123 | unsigned long long int ull = 18446744073709551615ULL; | |
4124 | /* Test constant expressions. */ | |
4125 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
4126 | ? 1 : -1)]; | |
4127 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
4128 | ? 1 : -1)]; | |
4129 | int i = 63; | |
4130 | int | |
4131 | main () | |
4132 | { | |
4133 | /* Test availability of runtime routines for shift and division. */ | |
4134 | long long int llmax = 9223372036854775807ll; | |
4135 | unsigned long long int ullmax = 18446744073709551615ull; | |
4136 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
4137 | | (llmax / ll) | (llmax % ll) | |
4138 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
4139 | | (ullmax / ull) | (ullmax % ull)); | |
4140 | ; | |
4141 | return 0; | |
4142 | } | |
4143 | ||
4144 | _ACEOF | |
4145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4147 | (eval $ac_link) 2>conftest.er1 | |
4148 | ac_status=$? | |
4149 | grep -v '^ *+' conftest.er1 >conftest.err | |
4150 | rm -f conftest.er1 | |
4151 | cat conftest.err >&5 | |
4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4153 | (exit $ac_status); } && | |
4154 | { ac_try='test -z "$ac_c_werror_flag" | |
4155 | || test ! -s conftest.err' | |
4156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4157 | (eval $ac_try) 2>&5 | |
4158 | ac_status=$? | |
4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4160 | (exit $ac_status); }; } && | |
4161 | { ac_try='test -s conftest$ac_exeext' | |
4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4163 | (eval $ac_try) 2>&5 | |
4164 | ac_status=$? | |
4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4166 | (exit $ac_status); }; }; then | |
4167 | if test "$cross_compiling" = yes; then | |
4168 | ac_cv_type_long_long_int=yes | |
4169 | else | |
4170 | cat >conftest.$ac_ext <<_ACEOF | |
4171 | /* confdefs.h. */ | |
4172 | _ACEOF | |
4173 | cat confdefs.h >>conftest.$ac_ext | |
4174 | cat >>conftest.$ac_ext <<_ACEOF | |
4175 | /* end confdefs.h. */ | |
4176 | #include <limits.h> | |
4177 | #ifndef LLONG_MAX | |
4178 | # define HALF \ | |
4179 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
4180 | # define LLONG_MAX (HALF - 1 + HALF) | |
4181 | #endif | |
4182 | int | |
4183 | main () | |
4184 | { | |
4185 | long long int n = 1; | |
4186 | int i; | |
4187 | for (i = 0; ; i++) | |
4188 | { | |
4189 | long long int m = n << i; | |
4190 | if (m >> i != n) | |
4191 | return 1; | |
4192 | if (LLONG_MAX / 2 < m) | |
4193 | break; | |
4194 | } | |
4195 | return 0; | |
4196 | ; | |
4197 | return 0; | |
4198 | } | |
4199 | _ACEOF | |
4200 | rm -f conftest$ac_exeext | |
4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4202 | (eval $ac_link) 2>&5 | |
4203 | ac_status=$? | |
4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4205 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4207 | (eval $ac_try) 2>&5 | |
4208 | ac_status=$? | |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4210 | (exit $ac_status); }; }; then | |
4211 | ac_cv_type_long_long_int=yes | |
4212 | else | |
4213 | echo "$as_me: program exited with status $ac_status" >&5 | |
4214 | echo "$as_me: failed program was:" >&5 | |
4215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4216 | ||
4217 | ( exit $ac_status ) | |
4218 | ac_cv_type_long_long_int=no | |
4219 | fi | |
4220 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4221 | fi | |
4222 | else | |
4223 | echo "$as_me: failed program was:" >&5 | |
4224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4225 | ||
4226 | ac_cv_type_long_long_int=no | |
4227 | fi | |
4228 | rm -f conftest.err conftest.$ac_objext \ | |
4229 | conftest$ac_exeext conftest.$ac_ext | |
4230 | fi | |
4231 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | |
4232 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | |
4233 | if test $ac_cv_type_long_long_int = yes; then | |
4234 | ||
4235 | cat >>confdefs.h <<\_ACEOF | |
4236 | #define HAVE_LONG_LONG_INT 1 | |
4237 | _ACEOF | |
4238 | ||
4239 | fi | |
4240 | ||
4241 | ||
4242 | echo "$as_me:$LINENO: checking for unsigned long long int" >&5 | |
4243 | echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6 | |
4244 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then | |
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4246 | else | |
4247 | cat >conftest.$ac_ext <<_ACEOF | |
4248 | ||
4249 | /* confdefs.h. */ | |
4250 | _ACEOF | |
4251 | cat confdefs.h >>conftest.$ac_ext | |
4252 | cat >>conftest.$ac_ext <<_ACEOF | |
4253 | /* end confdefs.h. */ | |
4254 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
4255 | implementations with broken preprocessors. Perhaps this can | |
4256 | be revisited in 2012. In the meantime, code should not expect | |
4257 | #if to work with literals wider than 32 bits. */ | |
4258 | /* Test literals. */ | |
4259 | long long int ll = 9223372036854775807ll; | |
4260 | long long int nll = -9223372036854775807LL; | |
4261 | unsigned long long int ull = 18446744073709551615ULL; | |
4262 | /* Test constant expressions. */ | |
4263 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
4264 | ? 1 : -1)]; | |
4265 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
4266 | ? 1 : -1)]; | |
4267 | int i = 63; | |
4268 | int | |
4269 | main () | |
4270 | { | |
4271 | /* Test availability of runtime routines for shift and division. */ | |
4272 | long long int llmax = 9223372036854775807ll; | |
4273 | unsigned long long int ullmax = 18446744073709551615ull; | |
4274 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
4275 | | (llmax / ll) | (llmax % ll) | |
4276 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
4277 | | (ullmax / ull) | (ullmax % ull)); | |
4278 | ; | |
4279 | return 0; | |
4280 | } | |
4281 | ||
4282 | _ACEOF | |
4283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4285 | (eval $ac_link) 2>conftest.er1 | |
4286 | ac_status=$? | |
4287 | grep -v '^ *+' conftest.er1 >conftest.err | |
4288 | rm -f conftest.er1 | |
4289 | cat conftest.err >&5 | |
4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4291 | (exit $ac_status); } && | |
4292 | { ac_try='test -z "$ac_c_werror_flag" | |
4293 | || test ! -s conftest.err' | |
4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4295 | (eval $ac_try) 2>&5 | |
4296 | ac_status=$? | |
4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4298 | (exit $ac_status); }; } && | |
4299 | { ac_try='test -s conftest$ac_exeext' | |
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4301 | (eval $ac_try) 2>&5 | |
4302 | ac_status=$? | |
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4304 | (exit $ac_status); }; }; then | |
4305 | ac_cv_type_unsigned_long_long_int=yes | |
4306 | else | |
4307 | echo "$as_me: failed program was:" >&5 | |
4308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4309 | ||
4310 | ac_cv_type_unsigned_long_long_int=no | |
4311 | fi | |
4312 | rm -f conftest.err conftest.$ac_objext \ | |
4313 | conftest$ac_exeext conftest.$ac_ext | |
4314 | fi | |
4315 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
4316 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6 | |
4317 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
4318 | ||
4319 | cat >>confdefs.h <<\_ACEOF | |
4320 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 | |
4321 | _ACEOF | |
4322 | ||
4323 | fi | |
4324 | ||
4325 | ||
4326 | ||
4327 | echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 | |
4328 | echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6 | |
4329 | if test "${gl_cv_have_include_next+set}" = set; then | |
4330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4331 | else | |
4332 | rm -rf conftestd1 conftestd2 | |
4333 | mkdir conftestd1 conftestd2 | |
4334 | cat <<EOF > conftestd1/conftest.h | |
4335 | #define DEFINED_IN_CONFTESTD1 | |
4336 | #include_next <conftest.h> | |
4337 | #ifdef DEFINED_IN_CONFTESTD2 | |
4338 | int foo; | |
4339 | #else | |
4340 | #error "include_next doesn't work" | |
4341 | #endif | |
4342 | EOF | |
4343 | cat <<EOF > conftestd2/conftest.h | |
4344 | #ifndef DEFINED_IN_CONFTESTD1 | |
4345 | #error "include_next test doesn't work" | |
4346 | #endif | |
4347 | #define DEFINED_IN_CONFTESTD2 | |
4348 | EOF | |
4349 | save_CPPFLAGS="$CPPFLAGS" | |
4350 | CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" | |
4351 | cat >conftest.$ac_ext <<_ACEOF | |
4352 | #include <conftest.h> | |
4353 | _ACEOF | |
4354 | rm -f conftest.$ac_objext | |
4355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4356 | (eval $ac_compile) 2>conftest.er1 | |
4357 | ac_status=$? | |
4358 | grep -v '^ *+' conftest.er1 >conftest.err | |
4359 | rm -f conftest.er1 | |
4360 | cat conftest.err >&5 | |
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4362 | (exit $ac_status); } && | |
4363 | { ac_try='test -z "$ac_c_werror_flag" | |
4364 | || test ! -s conftest.err' | |
4365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4366 | (eval $ac_try) 2>&5 | |
4367 | ac_status=$? | |
4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4369 | (exit $ac_status); }; } && | |
4370 | { ac_try='test -s conftest.$ac_objext' | |
4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4372 | (eval $ac_try) 2>&5 | |
4373 | ac_status=$? | |
4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4375 | (exit $ac_status); }; }; then | |
4376 | gl_cv_have_include_next=yes | |
4377 | else | |
4378 | echo "$as_me: failed program was:" >&5 | |
4379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4380 | ||
4381 | gl_cv_have_include_next=no | |
4382 | fi | |
4383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4384 | CPPFLAGS="$save_CPPFLAGS" | |
4385 | rm -rf conftestd1 conftestd2 | |
4386 | ||
4387 | fi | |
4388 | echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 | |
4389 | echo "${ECHO_T}$gl_cv_have_include_next" >&6 | |
4390 | if test $gl_cv_have_include_next = yes; then | |
4391 | ||
4392 | ||
4393 | cat >>confdefs.h <<\_ACEOF | |
4394 | #define HAVE_INCLUDE_NEXT 1 | |
4395 | _ACEOF | |
4396 | ||
4397 | ||
4398 | INCLUDE_NEXT=include_next | |
4399 | else | |
4400 | INCLUDE_NEXT=include | |
4401 | fi | |
4402 | ||
4403 | ||
4404 | ||
4405 | ||
4406 | ||
4407 | ||
4408 | ||
4409 | for ac_header in $gl_header_list | |
4410 | do | |
4411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4417 | fi | |
4418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4420 | else | |
4421 | # Is the header compilable? | |
4422 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4424 | cat >conftest.$ac_ext <<_ACEOF | |
4425 | /* confdefs.h. */ | |
4426 | _ACEOF | |
4427 | cat confdefs.h >>conftest.$ac_ext | |
4428 | cat >>conftest.$ac_ext <<_ACEOF | |
4429 | /* end confdefs.h. */ | |
4430 | $ac_includes_default | |
4431 | #include <$ac_header> | |
4432 | _ACEOF | |
4433 | rm -f conftest.$ac_objext | |
4434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4435 | (eval $ac_compile) 2>conftest.er1 | |
4436 | ac_status=$? | |
4437 | grep -v '^ *+' conftest.er1 >conftest.err | |
4438 | rm -f conftest.er1 | |
4439 | cat conftest.err >&5 | |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4441 | (exit $ac_status); } && | |
4442 | { ac_try='test -z "$ac_c_werror_flag" | |
4443 | || test ! -s conftest.err' | |
4444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4445 | (eval $ac_try) 2>&5 | |
4446 | ac_status=$? | |
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4448 | (exit $ac_status); }; } && | |
4449 | { ac_try='test -s conftest.$ac_objext' | |
4450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4451 | (eval $ac_try) 2>&5 | |
4452 | ac_status=$? | |
4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4454 | (exit $ac_status); }; }; then | |
4455 | ac_header_compiler=yes | |
4456 | else | |
4457 | echo "$as_me: failed program was:" >&5 | |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4459 | ||
4460 | ac_header_compiler=no | |
4461 | fi | |
4462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4463 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4464 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4465 | ||
4466 | # Is the header present? | |
4467 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4468 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4469 | cat >conftest.$ac_ext <<_ACEOF | |
4470 | /* confdefs.h. */ | |
4471 | _ACEOF | |
4472 | cat confdefs.h >>conftest.$ac_ext | |
4473 | cat >>conftest.$ac_ext <<_ACEOF | |
4474 | /* end confdefs.h. */ | |
4475 | #include <$ac_header> | |
4476 | _ACEOF | |
4477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4479 | ac_status=$? | |
4480 | grep -v '^ *+' conftest.er1 >conftest.err | |
4481 | rm -f conftest.er1 | |
4482 | cat conftest.err >&5 | |
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4484 | (exit $ac_status); } >/dev/null; then | |
4485 | if test -s conftest.err; then | |
4486 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4487 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4488 | else | |
4489 | ac_cpp_err= | |
4490 | fi | |
4491 | else | |
4492 | ac_cpp_err=yes | |
4493 | fi | |
4494 | if test -z "$ac_cpp_err"; then | |
4495 | ac_header_preproc=yes | |
4496 | else | |
4497 | echo "$as_me: failed program was:" >&5 | |
4498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4499 | ||
4500 | ac_header_preproc=no | |
4501 | fi | |
4502 | rm -f conftest.err conftest.$ac_ext | |
4503 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4504 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4505 | ||
4506 | # So? What about this header? | |
4507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4508 | yes:no: ) | |
4509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4513 | ac_header_preproc=yes | |
4514 | ;; | |
4515 | no:yes:* ) | |
4516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4528 | ( | |
4529 | cat <<\_ASBOX | |
4530 | ## ------------------------------------------ ## | |
4531 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4532 | ## ------------------------------------------ ## | |
4533 | _ASBOX | |
4534 | ) | | |
4535 | sed "s/^/$as_me: WARNING: /" >&2 | |
4536 | ;; | |
4537 | esac | |
4538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4542 | else | |
4543 | eval "$as_ac_Header=\$ac_header_preproc" | |
4544 | fi | |
4545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4547 | ||
4548 | fi | |
4549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4550 | cat >>confdefs.h <<_ACEOF | |
4551 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4552 | _ACEOF | |
4553 | ||
4554 | fi | |
4555 | ||
4556 | done | |
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | ||
4563 | ||
4564 | ||
4565 | ||
4566 | ||
4567 | ||
4568 | ||
4569 | echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 | |
4570 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 | |
4571 | if test "${ac_cv_c_restrict+set}" = set; then | |
4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4573 | else | |
4574 | ac_cv_c_restrict=no | |
4575 | # The order here caters to the fact that C++ does not require restrict. | |
4576 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
4577 | cat >conftest.$ac_ext <<_ACEOF | |
4578 | /* confdefs.h. */ | |
4579 | _ACEOF | |
4580 | cat confdefs.h >>conftest.$ac_ext | |
4581 | cat >>conftest.$ac_ext <<_ACEOF | |
4582 | /* end confdefs.h. */ | |
4583 | typedef int * int_ptr; | |
4584 | int foo (int_ptr $ac_kw ip) { | |
4585 | return ip[0]; | |
4586 | } | |
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | int s[1]; | |
4591 | int * $ac_kw t = s; | |
4592 | t[0] = 0; | |
4593 | return foo(t) | |
4594 | ; | |
4595 | return 0; | |
4596 | } | |
4597 | _ACEOF | |
4598 | rm -f conftest.$ac_objext | |
4599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4600 | (eval $ac_compile) 2>conftest.er1 | |
4601 | ac_status=$? | |
4602 | grep -v '^ *+' conftest.er1 >conftest.err | |
4603 | rm -f conftest.er1 | |
4604 | cat conftest.err >&5 | |
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4606 | (exit $ac_status); } && | |
4607 | { ac_try='test -z "$ac_c_werror_flag" | |
4608 | || test ! -s conftest.err' | |
4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4610 | (eval $ac_try) 2>&5 | |
4611 | ac_status=$? | |
4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4613 | (exit $ac_status); }; } && | |
4614 | { ac_try='test -s conftest.$ac_objext' | |
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4616 | (eval $ac_try) 2>&5 | |
4617 | ac_status=$? | |
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); }; }; then | |
4620 | ac_cv_c_restrict=$ac_kw | |
4621 | else | |
4622 | echo "$as_me: failed program was:" >&5 | |
4623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4624 | ||
4625 | fi | |
4626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4627 | test "$ac_cv_c_restrict" != no && break | |
4628 | done | |
4629 | ||
4630 | fi | |
4631 | echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 | |
4632 | echo "${ECHO_T}$ac_cv_c_restrict" >&6 | |
4633 | ||
4634 | ||
4635 | case $ac_cv_c_restrict in | |
4636 | restrict) ;; | |
4637 | no) cat >>confdefs.h <<\_ACEOF | |
4638 | #define restrict | |
4639 | _ACEOF | |
4640 | ;; | |
4641 | *) cat >>confdefs.h <<_ACEOF | |
4642 | #define restrict $ac_cv_c_restrict | |
4643 | _ACEOF | |
4644 | ;; | |
4645 | esac | |
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
4658 | ||
4659 | : | |
4660 | ||
4661 | ||
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | if test $gl_cv_have_include_next = yes; then | |
4668 | gl_cv_next_string_h='<'string.h'>' | |
4669 | else | |
4670 | echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 | |
4671 | echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6 | |
4672 | if test "${gl_cv_next_string_h+set}" = set; then | |
4673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4674 | else | |
4675 | ||
4676 | if test $ac_cv_header_string_h = yes; then | |
4677 | cat >conftest.$ac_ext <<_ACEOF | |
4678 | /* confdefs.h. */ | |
4679 | _ACEOF | |
4680 | cat confdefs.h >>conftest.$ac_ext | |
4681 | cat >>conftest.$ac_ext <<_ACEOF | |
4682 | /* end confdefs.h. */ | |
4683 | #include <string.h> | |
4684 | ||
4685 | _ACEOF | |
4686 | gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4687 | sed -n '\#/string.h#{ | |
4688 | s#.*"\(.*/string.h\)".*#\1# | |
4689 | s#^/[^/]#//&# | |
4690 | p | |
4691 | q | |
4692 | }'`'"' | |
4693 | else | |
4694 | gl_cv_next_string_h='<'string.h'>' | |
4695 | fi | |
4696 | ||
4697 | fi | |
4698 | echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 | |
4699 | echo "${ECHO_T}$gl_cv_next_string_h" >&6 | |
4700 | fi | |
4701 | NEXT_STRING_H=$gl_cv_next_string_h | |
4702 | ||
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | GNULIB_WCWIDTH=0; | |
4708 | HAVE_DECL_WCWIDTH=1; | |
4709 | REPLACE_WCWIDTH=0; | |
4710 | WCHAR_H= | |
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
4716 | if false; then | |
4717 | GL_COND_LIBTOOL_TRUE= | |
4718 | GL_COND_LIBTOOL_FALSE='#' | |
4719 | else | |
4720 | GL_COND_LIBTOOL_TRUE='#' | |
4721 | GL_COND_LIBTOOL_FALSE= | |
4722 | fi | |
4723 | ||
4724 | gl_cond_libtool=false | |
4725 | gl_libdeps= | |
4726 | gl_ltlibdeps= | |
4727 | ||
4728 | ||
4729 | ||
4730 | gl_source_base='gnulib' | |
4731 | ||
4732 | ||
4733 | ||
4734 | ||
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
4740 | for ac_func in memchr | |
4741 | do | |
4742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4745 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4747 | else | |
4748 | cat >conftest.$ac_ext <<_ACEOF | |
4749 | /* confdefs.h. */ | |
4750 | _ACEOF | |
4751 | cat confdefs.h >>conftest.$ac_ext | |
4752 | cat >>conftest.$ac_ext <<_ACEOF | |
4753 | /* end confdefs.h. */ | |
4754 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4756 | #define $ac_func innocuous_$ac_func | |
4757 | ||
4758 | /* System header to define __stub macros and hopefully few prototypes, | |
4759 | which can conflict with char $ac_func (); below. | |
4760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4761 | <limits.h> exists even on freestanding compilers. */ | |
4762 | ||
4763 | #ifdef __STDC__ | |
4764 | # include <limits.h> | |
4765 | #else | |
4766 | # include <assert.h> | |
4767 | #endif | |
4768 | ||
4769 | #undef $ac_func | |
4770 | ||
4771 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4772 | #ifdef __cplusplus | |
4773 | extern "C" | |
4774 | { | |
4775 | #endif | |
4776 | /* We use char because int might match the return type of a gcc2 | |
4777 | builtin and then its argument prototype would still apply. */ | |
4778 | char $ac_func (); | |
4779 | /* The GNU C library defines this for functions which it implements | |
4780 | to always fail with ENOSYS. Some functions are actually named | |
4781 | something starting with __ and the normal name is an alias. */ | |
4782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4783 | choke me | |
4784 | #else | |
4785 | char (*f) () = $ac_func; | |
4786 | #endif | |
4787 | #ifdef __cplusplus | |
4788 | } | |
4789 | #endif | |
4790 | ||
4791 | int | |
4792 | main () | |
4793 | { | |
4794 | return f != $ac_func; | |
4795 | ; | |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
4799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4801 | (eval $ac_link) 2>conftest.er1 | |
4802 | ac_status=$? | |
4803 | grep -v '^ *+' conftest.er1 >conftest.err | |
4804 | rm -f conftest.er1 | |
4805 | cat conftest.err >&5 | |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4807 | (exit $ac_status); } && | |
4808 | { ac_try='test -z "$ac_c_werror_flag" | |
4809 | || test ! -s conftest.err' | |
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4811 | (eval $ac_try) 2>&5 | |
4812 | ac_status=$? | |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4814 | (exit $ac_status); }; } && | |
4815 | { ac_try='test -s conftest$ac_exeext' | |
4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4817 | (eval $ac_try) 2>&5 | |
4818 | ac_status=$? | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); }; }; then | |
4821 | eval "$as_ac_var=yes" | |
4822 | else | |
4823 | echo "$as_me: failed program was:" >&5 | |
4824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4825 | ||
4826 | eval "$as_ac_var=no" | |
4827 | fi | |
4828 | rm -f conftest.err conftest.$ac_objext \ | |
4829 | conftest$ac_exeext conftest.$ac_ext | |
4830 | fi | |
4831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4834 | cat >>confdefs.h <<_ACEOF | |
4835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4836 | _ACEOF | |
4837 | ||
4838 | else | |
4839 | ||
4840 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
4841 | ||
4842 | fi | |
4843 | done | |
4844 | ||
4845 | ||
4846 | if test $ac_cv_func_memchr = no; then | |
4847 | ||
4848 | ||
4849 | for ac_header in bp-sym.h | |
4850 | do | |
4851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4857 | fi | |
4858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4859 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4860 | else | |
4861 | # Is the header compilable? | |
4862 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4863 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
4865 | /* confdefs.h. */ | |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
4870 | $ac_includes_default | |
4871 | #include <$ac_header> | |
4872 | _ACEOF | |
4873 | rm -f conftest.$ac_objext | |
4874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4875 | (eval $ac_compile) 2>conftest.er1 | |
4876 | ac_status=$? | |
4877 | grep -v '^ *+' conftest.er1 >conftest.err | |
4878 | rm -f conftest.er1 | |
4879 | cat conftest.err >&5 | |
4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4881 | (exit $ac_status); } && | |
4882 | { ac_try='test -z "$ac_c_werror_flag" | |
4883 | || test ! -s conftest.err' | |
4884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4885 | (eval $ac_try) 2>&5 | |
4886 | ac_status=$? | |
4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4888 | (exit $ac_status); }; } && | |
4889 | { ac_try='test -s conftest.$ac_objext' | |
4890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4891 | (eval $ac_try) 2>&5 | |
4892 | ac_status=$? | |
4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4894 | (exit $ac_status); }; }; then | |
4895 | ac_header_compiler=yes | |
4896 | else | |
4897 | echo "$as_me: failed program was:" >&5 | |
4898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4899 | ||
4900 | ac_header_compiler=no | |
4901 | fi | |
4902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4903 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4904 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4905 | ||
4906 | # Is the header present? | |
4907 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4908 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4909 | cat >conftest.$ac_ext <<_ACEOF | |
4910 | /* confdefs.h. */ | |
4911 | _ACEOF | |
4912 | cat confdefs.h >>conftest.$ac_ext | |
4913 | cat >>conftest.$ac_ext <<_ACEOF | |
4914 | /* end confdefs.h. */ | |
4915 | #include <$ac_header> | |
4916 | _ACEOF | |
4917 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4918 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4919 | ac_status=$? | |
4920 | grep -v '^ *+' conftest.er1 >conftest.err | |
4921 | rm -f conftest.er1 | |
4922 | cat conftest.err >&5 | |
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4924 | (exit $ac_status); } >/dev/null; then | |
4925 | if test -s conftest.err; then | |
4926 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4927 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4928 | else | |
4929 | ac_cpp_err= | |
4930 | fi | |
4931 | else | |
4932 | ac_cpp_err=yes | |
4933 | fi | |
4934 | if test -z "$ac_cpp_err"; then | |
4935 | ac_header_preproc=yes | |
4936 | else | |
4937 | echo "$as_me: failed program was:" >&5 | |
4938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4939 | ||
4940 | ac_header_preproc=no | |
4941 | fi | |
4942 | rm -f conftest.err conftest.$ac_ext | |
4943 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4944 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4945 | ||
4946 | # So? What about this header? | |
4947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4948 | yes:no: ) | |
4949 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4950 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4951 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4952 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4953 | ac_header_preproc=yes | |
4954 | ;; | |
4955 | no:yes:* ) | |
4956 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4957 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4958 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4959 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4960 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4961 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4962 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4963 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4965 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4966 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4967 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4968 | ( | |
4969 | cat <<\_ASBOX | |
4970 | ## ------------------------------------------ ## | |
4971 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4972 | ## ------------------------------------------ ## | |
4973 | _ASBOX | |
4974 | ) | | |
4975 | sed "s/^/$as_me: WARNING: /" >&2 | |
4976 | ;; | |
4977 | esac | |
4978 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4982 | else | |
4983 | eval "$as_ac_Header=\$ac_header_preproc" | |
4984 | fi | |
4985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4986 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4987 | ||
4988 | fi | |
4989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4990 | cat >>confdefs.h <<_ACEOF | |
4991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4992 | _ACEOF | |
4993 | ||
4994 | fi | |
4995 | ||
4996 | done | |
4997 | ||
4998 | ||
4999 | fi | |
5000 | ||
5001 | ||
5002 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
5003 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
5004 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5006 | else | |
5007 | if test "$cross_compiling" = yes; then | |
5008 | ac_cv_func_memcmp_working=no | |
5009 | else | |
5010 | cat >conftest.$ac_ext <<_ACEOF | |
5011 | /* confdefs.h. */ | |
5012 | _ACEOF | |
5013 | cat confdefs.h >>conftest.$ac_ext | |
5014 | cat >>conftest.$ac_ext <<_ACEOF | |
5015 | /* end confdefs.h. */ | |
5016 | $ac_includes_default | |
5017 | int | |
5018 | main () | |
5019 | { | |
5020 | ||
5021 | /* Some versions of memcmp are not 8-bit clean. */ | |
5022 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
5023 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
5024 | exit (1); | |
5025 | ||
5026 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
5027 | or more and with at least one buffer not starting on a 4-byte boundary. | |
5028 | William Lewis provided this test program. */ | |
5029 | { | |
5030 | char foo[21]; | |
5031 | char bar[21]; | |
5032 | int i; | |
5033 | for (i = 0; i < 4; i++) | |
5034 | { | |
5035 | char *a = foo + i; | |
5036 | char *b = bar + i; | |
5037 | strcpy (a, "--------01111111"); | |
5038 | strcpy (b, "--------10000000"); | |
5039 | if (memcmp (a, b, 16) >= 0) | |
5040 | exit (1); | |
5041 | } | |
5042 | exit (0); | |
5043 | } | |
5044 | ||
5045 | ; | |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5049 | rm -f conftest$ac_exeext | |
5050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5051 | (eval $ac_link) 2>&5 | |
5052 | ac_status=$? | |
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5056 | (eval $ac_try) 2>&5 | |
5057 | ac_status=$? | |
5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5059 | (exit $ac_status); }; }; then | |
5060 | ac_cv_func_memcmp_working=yes | |
5061 | else | |
5062 | echo "$as_me: program exited with status $ac_status" >&5 | |
5063 | echo "$as_me: failed program was:" >&5 | |
5064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5065 | ||
5066 | ( exit $ac_status ) | |
5067 | ac_cv_func_memcmp_working=no | |
5068 | fi | |
5069 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5070 | fi | |
5071 | fi | |
5072 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
5073 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
5074 | test $ac_cv_func_memcmp_working = no && | |
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | ||
5081 | gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext" | |
5082 | ||
5083 | ||
5084 | if test $ac_cv_func_memcmp_working = no; then | |
5085 | ||
5086 | cat >>confdefs.h <<\_ACEOF | |
5087 | #define memcmp rpl_memcmp | |
5088 | _ACEOF | |
5089 | ||
5090 | : | |
5091 | fi | |
5092 | ||
5093 | ||
5094 | ||
5095 | if test $ac_cv_have_decl_memmem = yes; then | |
5096 | echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5 | |
5097 | echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6 | |
5098 | if test "${gl_cv_func_memmem_works+set}" = set; then | |
5099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5100 | else | |
5101 | if test "$cross_compiling" = yes; then | |
5102 | gl_cv_func_memmem_works="guessing no" | |
5103 | else | |
5104 | cat >conftest.$ac_ext <<_ACEOF | |
5105 | /* confdefs.h. */ | |
5106 | _ACEOF | |
5107 | cat confdefs.h >>conftest.$ac_ext | |
5108 | cat >>conftest.$ac_ext <<_ACEOF | |
5109 | /* end confdefs.h. */ | |
5110 | ||
5111 | #include <string.h> /* for memmem */ | |
5112 | #include <stdlib.h> /* for malloc */ | |
5113 | #include <unistd.h> /* for alarm */ | |
5114 | ||
5115 | int | |
5116 | main () | |
5117 | { | |
5118 | size_t m = 1000000; | |
5119 | char *haystack = (char *) malloc (2 * m + 1); | |
5120 | char *needle = (char *) malloc (m + 1); | |
5121 | void *result = 0; | |
5122 | /* Failure to compile this test due to missing alarm is okay, | |
5123 | since all such platforms (mingw) also lack memmem. */ | |
5124 | alarm (5); | |
5125 | /* Check for quadratic performance. */ | |
5126 | if (haystack && needle) | |
5127 | { | |
5128 | memset (haystack, 'A', 2 * m); | |
5129 | haystack[2 * m] = 'B'; | |
5130 | memset (needle, 'A', m); | |
5131 | needle[m] = 'B'; | |
5132 | result = memmem (haystack, 2 * m + 1, needle, m + 1); | |
5133 | } | |
5134 | /* Check for empty needle behavior. */ | |
5135 | return !result || !memmem ("a", 1, 0, 0); | |
5136 | ; | |
5137 | return 0; | |
5138 | } | |
5139 | _ACEOF | |
5140 | rm -f conftest$ac_exeext | |
5141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5142 | (eval $ac_link) 2>&5 | |
5143 | ac_status=$? | |
5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5147 | (eval $ac_try) 2>&5 | |
5148 | ac_status=$? | |
5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5150 | (exit $ac_status); }; }; then | |
5151 | gl_cv_func_memmem_works=yes | |
5152 | else | |
5153 | echo "$as_me: program exited with status $ac_status" >&5 | |
5154 | echo "$as_me: failed program was:" >&5 | |
5155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5156 | ||
5157 | ( exit $ac_status ) | |
5158 | gl_cv_func_memmem_works=no | |
5159 | fi | |
5160 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5161 | fi | |
5162 | fi | |
5163 | echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5 | |
5164 | echo "${ECHO_T}$gl_cv_func_memmem_works" >&6 | |
5165 | if test "$gl_cv_func_memmem_works" != yes; then | |
5166 | REPLACE_MEMMEM=1 | |
5167 | ||
5168 | ||
5169 | ||
5170 | ||
5171 | ||
5172 | ||
5173 | ||
5174 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" | |
5175 | ||
5176 | fi | |
5177 | fi | |
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | for ac_func in memmem | |
5192 | do | |
5193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5196 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5198 | else | |
5199 | cat >conftest.$ac_ext <<_ACEOF | |
5200 | /* confdefs.h. */ | |
5201 | _ACEOF | |
5202 | cat confdefs.h >>conftest.$ac_ext | |
5203 | cat >>conftest.$ac_ext <<_ACEOF | |
5204 | /* end confdefs.h. */ | |
5205 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5206 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5207 | #define $ac_func innocuous_$ac_func | |
5208 | ||
5209 | /* System header to define __stub macros and hopefully few prototypes, | |
5210 | which can conflict with char $ac_func (); below. | |
5211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5212 | <limits.h> exists even on freestanding compilers. */ | |
5213 | ||
5214 | #ifdef __STDC__ | |
5215 | # include <limits.h> | |
5216 | #else | |
5217 | # include <assert.h> | |
5218 | #endif | |
5219 | ||
5220 | #undef $ac_func | |
5221 | ||
5222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5223 | #ifdef __cplusplus | |
5224 | extern "C" | |
5225 | { | |
5226 | #endif | |
5227 | /* We use char because int might match the return type of a gcc2 | |
5228 | builtin and then its argument prototype would still apply. */ | |
5229 | char $ac_func (); | |
5230 | /* The GNU C library defines this for functions which it implements | |
5231 | to always fail with ENOSYS. Some functions are actually named | |
5232 | something starting with __ and the normal name is an alias. */ | |
5233 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5234 | choke me | |
5235 | #else | |
5236 | char (*f) () = $ac_func; | |
5237 | #endif | |
5238 | #ifdef __cplusplus | |
5239 | } | |
5240 | #endif | |
5241 | ||
5242 | int | |
5243 | main () | |
5244 | { | |
5245 | return f != $ac_func; | |
5246 | ; | |
5247 | return 0; | |
5248 | } | |
5249 | _ACEOF | |
5250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5252 | (eval $ac_link) 2>conftest.er1 | |
5253 | ac_status=$? | |
5254 | grep -v '^ *+' conftest.er1 >conftest.err | |
5255 | rm -f conftest.er1 | |
5256 | cat conftest.err >&5 | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); } && | |
5259 | { ac_try='test -z "$ac_c_werror_flag" | |
5260 | || test ! -s conftest.err' | |
5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5262 | (eval $ac_try) 2>&5 | |
5263 | ac_status=$? | |
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5265 | (exit $ac_status); }; } && | |
5266 | { ac_try='test -s conftest$ac_exeext' | |
5267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5268 | (eval $ac_try) 2>&5 | |
5269 | ac_status=$? | |
5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5271 | (exit $ac_status); }; }; then | |
5272 | eval "$as_ac_var=yes" | |
5273 | else | |
5274 | echo "$as_me: failed program was:" >&5 | |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5276 | ||
5277 | eval "$as_ac_var=no" | |
5278 | fi | |
5279 | rm -f conftest.err conftest.$ac_objext \ | |
5280 | conftest$ac_exeext conftest.$ac_ext | |
5281 | fi | |
5282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5285 | cat >>confdefs.h <<_ACEOF | |
5286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5287 | _ACEOF | |
5288 | ||
5289 | else | |
5290 | ||
5291 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
5292 | ||
5293 | fi | |
5294 | done | |
5295 | ||
5296 | ||
5297 | ||
5298 | : | |
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | if test $ac_cv_have_decl_memmem = no; then | |
5305 | HAVE_DECL_MEMMEM=0 | |
5306 | fi | |
5307 | : | |
5308 | ||
5309 | ||
5310 | ||
5311 | GNULIB_MEMMEM=1 | |
5312 | ||
5313 | ||
5314 | ||
5315 | ||
5316 | if test $ac_cv_type_long_long_int = yes; then | |
5317 | HAVE_LONG_LONG_INT=1 | |
5318 | else | |
5319 | HAVE_LONG_LONG_INT=0 | |
5320 | fi | |
5321 | ||
5322 | ||
5323 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
5324 | HAVE_UNSIGNED_LONG_LONG_INT=1 | |
5325 | else | |
5326 | HAVE_UNSIGNED_LONG_LONG_INT=0 | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | if test $ac_cv_header_inttypes_h = yes; then | |
5331 | HAVE_INTTYPES_H=1 | |
5332 | else | |
5333 | HAVE_INTTYPES_H=0 | |
5334 | fi | |
5335 | ||
5336 | ||
5337 | if test $ac_cv_header_sys_types_h = yes; then | |
5338 | HAVE_SYS_TYPES_H=1 | |
5339 | else | |
5340 | HAVE_SYS_TYPES_H=0 | |
5341 | fi | |
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
5347 | : | |
5348 | ||
5349 | ||
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | ||
5355 | if test $gl_cv_have_include_next = yes; then | |
5356 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5357 | else | |
5358 | echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 | |
5359 | echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6 | |
5360 | if test "${gl_cv_next_stdint_h+set}" = set; then | |
5361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5362 | else | |
5363 | ||
5364 | if test $ac_cv_header_stdint_h = yes; then | |
5365 | cat >conftest.$ac_ext <<_ACEOF | |
5366 | /* confdefs.h. */ | |
5367 | _ACEOF | |
5368 | cat confdefs.h >>conftest.$ac_ext | |
5369 | cat >>conftest.$ac_ext <<_ACEOF | |
5370 | /* end confdefs.h. */ | |
5371 | #include <stdint.h> | |
5372 | ||
5373 | _ACEOF | |
5374 | gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5375 | sed -n '\#/stdint.h#{ | |
5376 | s#.*"\(.*/stdint.h\)".*#\1# | |
5377 | s#^/[^/]#//&# | |
5378 | p | |
5379 | q | |
5380 | }'`'"' | |
5381 | else | |
5382 | gl_cv_next_stdint_h='<'stdint.h'>' | |
5383 | fi | |
5384 | ||
5385 | fi | |
5386 | echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 | |
5387 | echo "${ECHO_T}$gl_cv_next_stdint_h" >&6 | |
5388 | fi | |
5389 | NEXT_STDINT_H=$gl_cv_next_stdint_h | |
5390 | ||
5391 | ||
5392 | ||
5393 | if test $ac_cv_header_stdint_h = yes; then | |
5394 | HAVE_STDINT_H=1 | |
5395 | else | |
5396 | HAVE_STDINT_H=0 | |
5397 | fi | |
5398 | ||
5399 | ||
5400 | if test $ac_cv_header_stdint_h = yes; then | |
5401 | echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 | |
5402 | echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6 | |
5403 | if test "${gl_cv_header_working_stdint_h+set}" = set; then | |
5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5405 | else | |
5406 | gl_cv_header_working_stdint_h=no | |
5407 | cat >conftest.$ac_ext <<_ACEOF | |
5408 | ||
5409 | /* confdefs.h. */ | |
5410 | _ACEOF | |
5411 | cat confdefs.h >>conftest.$ac_ext | |
5412 | cat >>conftest.$ac_ext <<_ACEOF | |
5413 | /* end confdefs.h. */ | |
5414 | ||
5415 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
5416 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
5417 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
5418 | #include <stdint.h> | |
5419 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
5420 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
5421 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
5422 | #endif | |
5423 | ||
5424 | ||
5425 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5426 | included before <wchar.h>. */ | |
5427 | #include <stddef.h> | |
5428 | #include <signal.h> | |
5429 | #if HAVE_WCHAR_H | |
5430 | # include <stdio.h> | |
5431 | # include <time.h> | |
5432 | # include <wchar.h> | |
5433 | #endif | |
5434 | ||
5435 | ||
5436 | #ifdef INT8_MAX | |
5437 | int8_t a1 = INT8_MAX; | |
5438 | int8_t a1min = INT8_MIN; | |
5439 | #endif | |
5440 | #ifdef INT16_MAX | |
5441 | int16_t a2 = INT16_MAX; | |
5442 | int16_t a2min = INT16_MIN; | |
5443 | #endif | |
5444 | #ifdef INT32_MAX | |
5445 | int32_t a3 = INT32_MAX; | |
5446 | int32_t a3min = INT32_MIN; | |
5447 | #endif | |
5448 | #ifdef INT64_MAX | |
5449 | int64_t a4 = INT64_MAX; | |
5450 | int64_t a4min = INT64_MIN; | |
5451 | #endif | |
5452 | #ifdef UINT8_MAX | |
5453 | uint8_t b1 = UINT8_MAX; | |
5454 | #else | |
5455 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
5456 | #endif | |
5457 | #ifdef UINT16_MAX | |
5458 | uint16_t b2 = UINT16_MAX; | |
5459 | #endif | |
5460 | #ifdef UINT32_MAX | |
5461 | uint32_t b3 = UINT32_MAX; | |
5462 | #endif | |
5463 | #ifdef UINT64_MAX | |
5464 | uint64_t b4 = UINT64_MAX; | |
5465 | #endif | |
5466 | int_least8_t c1 = INT8_C (0x7f); | |
5467 | int_least8_t c1max = INT_LEAST8_MAX; | |
5468 | int_least8_t c1min = INT_LEAST8_MIN; | |
5469 | int_least16_t c2 = INT16_C (0x7fff); | |
5470 | int_least16_t c2max = INT_LEAST16_MAX; | |
5471 | int_least16_t c2min = INT_LEAST16_MIN; | |
5472 | int_least32_t c3 = INT32_C (0x7fffffff); | |
5473 | int_least32_t c3max = INT_LEAST32_MAX; | |
5474 | int_least32_t c3min = INT_LEAST32_MIN; | |
5475 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
5476 | int_least64_t c4max = INT_LEAST64_MAX; | |
5477 | int_least64_t c4min = INT_LEAST64_MIN; | |
5478 | uint_least8_t d1 = UINT8_C (0xff); | |
5479 | uint_least8_t d1max = UINT_LEAST8_MAX; | |
5480 | uint_least16_t d2 = UINT16_C (0xffff); | |
5481 | uint_least16_t d2max = UINT_LEAST16_MAX; | |
5482 | uint_least32_t d3 = UINT32_C (0xffffffff); | |
5483 | uint_least32_t d3max = UINT_LEAST32_MAX; | |
5484 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
5485 | uint_least64_t d4max = UINT_LEAST64_MAX; | |
5486 | int_fast8_t e1 = INT_FAST8_MAX; | |
5487 | int_fast8_t e1min = INT_FAST8_MIN; | |
5488 | int_fast16_t e2 = INT_FAST16_MAX; | |
5489 | int_fast16_t e2min = INT_FAST16_MIN; | |
5490 | int_fast32_t e3 = INT_FAST32_MAX; | |
5491 | int_fast32_t e3min = INT_FAST32_MIN; | |
5492 | int_fast64_t e4 = INT_FAST64_MAX; | |
5493 | int_fast64_t e4min = INT_FAST64_MIN; | |
5494 | uint_fast8_t f1 = UINT_FAST8_MAX; | |
5495 | uint_fast16_t f2 = UINT_FAST16_MAX; | |
5496 | uint_fast32_t f3 = UINT_FAST32_MAX; | |
5497 | uint_fast64_t f4 = UINT_FAST64_MAX; | |
5498 | #ifdef INTPTR_MAX | |
5499 | intptr_t g = INTPTR_MAX; | |
5500 | intptr_t gmin = INTPTR_MIN; | |
5501 | #endif | |
5502 | #ifdef UINTPTR_MAX | |
5503 | uintptr_t h = UINTPTR_MAX; | |
5504 | #endif | |
5505 | intmax_t i = INTMAX_MAX; | |
5506 | uintmax_t j = UINTMAX_MAX; | |
5507 | ||
5508 | #include <limits.h> /* for CHAR_BIT */ | |
5509 | #define TYPE_MINIMUM(t) \ | |
5510 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | |
5511 | #define TYPE_MAXIMUM(t) \ | |
5512 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | |
5513 | struct s { | |
5514 | int check_PTRDIFF: | |
5515 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
5516 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
5517 | ? 1 : -1; | |
5518 | /* Detect bug in FreeBSD 6.0 / ia64. */ | |
5519 | int check_SIG_ATOMIC: | |
5520 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
5521 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
5522 | ? 1 : -1; | |
5523 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
5524 | int check_WCHAR: | |
5525 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
5526 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
5527 | ? 1 : -1; | |
5528 | /* Detect bug in mingw. */ | |
5529 | int check_WINT: | |
5530 | WINT_MIN == TYPE_MINIMUM (wint_t) | |
5531 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
5532 | ? 1 : -1; | |
5533 | ||
5534 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
5535 | int check_UINT8_C: | |
5536 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
5537 | int check_UINT16_C: | |
5538 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
5539 | ||
5540 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
5541 | #ifdef UINT8_MAX | |
5542 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
5543 | #endif | |
5544 | #ifdef UINT16_MAX | |
5545 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
5546 | #endif | |
5547 | #ifdef UINT32_MAX | |
5548 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
5549 | #endif | |
5550 | #ifdef UINT64_MAX | |
5551 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
5552 | #endif | |
5553 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
5554 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
5555 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
5556 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
5557 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
5558 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
5559 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
5560 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
5561 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
5562 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
5563 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
5564 | }; | |
5565 | ||
5566 | int | |
5567 | main () | |
5568 | { | |
5569 | ||
5570 | ; | |
5571 | return 0; | |
5572 | } | |
5573 | _ACEOF | |
5574 | rm -f conftest.$ac_objext | |
5575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5576 | (eval $ac_compile) 2>conftest.er1 | |
5577 | ac_status=$? | |
5578 | grep -v '^ *+' conftest.er1 >conftest.err | |
5579 | rm -f conftest.er1 | |
5580 | cat conftest.err >&5 | |
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 | (exit $ac_status); } && | |
5583 | { ac_try='test -z "$ac_c_werror_flag" | |
5584 | || test ! -s conftest.err' | |
5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5586 | (eval $ac_try) 2>&5 | |
5587 | ac_status=$? | |
5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5589 | (exit $ac_status); }; } && | |
5590 | { ac_try='test -s conftest.$ac_objext' | |
5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5592 | (eval $ac_try) 2>&5 | |
5593 | ac_status=$? | |
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5595 | (exit $ac_status); }; }; then | |
5596 | gl_cv_header_working_stdint_h=yes | |
5597 | else | |
5598 | echo "$as_me: failed program was:" >&5 | |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
5601 | fi | |
5602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5603 | fi | |
5604 | echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 | |
5605 | echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6 | |
5606 | fi | |
5607 | if test "$gl_cv_header_working_stdint_h" = yes; then | |
5608 | STDINT_H= | |
5609 | else | |
5610 | ||
5611 | ||
5612 | for ac_header in sys/inttypes.h sys/bitypes.h | |
5613 | do | |
5614 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5620 | fi | |
5621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5623 | else | |
5624 | # Is the header compilable? | |
5625 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5627 | cat >conftest.$ac_ext <<_ACEOF | |
5628 | /* confdefs.h. */ | |
5629 | _ACEOF | |
5630 | cat confdefs.h >>conftest.$ac_ext | |
5631 | cat >>conftest.$ac_ext <<_ACEOF | |
5632 | /* end confdefs.h. */ | |
5633 | $ac_includes_default | |
5634 | #include <$ac_header> | |
5635 | _ACEOF | |
5636 | rm -f conftest.$ac_objext | |
5637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5638 | (eval $ac_compile) 2>conftest.er1 | |
5639 | ac_status=$? | |
5640 | grep -v '^ *+' conftest.er1 >conftest.err | |
5641 | rm -f conftest.er1 | |
5642 | cat conftest.err >&5 | |
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5644 | (exit $ac_status); } && | |
5645 | { ac_try='test -z "$ac_c_werror_flag" | |
5646 | || test ! -s conftest.err' | |
5647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5648 | (eval $ac_try) 2>&5 | |
5649 | ac_status=$? | |
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 | (exit $ac_status); }; } && | |
5652 | { ac_try='test -s conftest.$ac_objext' | |
5653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5654 | (eval $ac_try) 2>&5 | |
5655 | ac_status=$? | |
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5657 | (exit $ac_status); }; }; then | |
5658 | ac_header_compiler=yes | |
5659 | else | |
5660 | echo "$as_me: failed program was:" >&5 | |
5661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5662 | ||
5663 | ac_header_compiler=no | |
5664 | fi | |
5665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5667 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5668 | ||
5669 | # Is the header present? | |
5670 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5672 | cat >conftest.$ac_ext <<_ACEOF | |
5673 | /* confdefs.h. */ | |
5674 | _ACEOF | |
5675 | cat confdefs.h >>conftest.$ac_ext | |
5676 | cat >>conftest.$ac_ext <<_ACEOF | |
5677 | /* end confdefs.h. */ | |
5678 | #include <$ac_header> | |
5679 | _ACEOF | |
5680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5682 | ac_status=$? | |
5683 | grep -v '^ *+' conftest.er1 >conftest.err | |
5684 | rm -f conftest.er1 | |
5685 | cat conftest.err >&5 | |
5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5687 | (exit $ac_status); } >/dev/null; then | |
5688 | if test -s conftest.err; then | |
5689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5691 | else | |
5692 | ac_cpp_err= | |
5693 | fi | |
5694 | else | |
5695 | ac_cpp_err=yes | |
5696 | fi | |
5697 | if test -z "$ac_cpp_err"; then | |
5698 | ac_header_preproc=yes | |
5699 | else | |
5700 | echo "$as_me: failed program was:" >&5 | |
5701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5702 | ||
5703 | ac_header_preproc=no | |
5704 | fi | |
5705 | rm -f conftest.err conftest.$ac_ext | |
5706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5707 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5708 | ||
5709 | # So? What about this header? | |
5710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5711 | yes:no: ) | |
5712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5716 | ac_header_preproc=yes | |
5717 | ;; | |
5718 | no:yes:* ) | |
5719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5731 | ( | |
5732 | cat <<\_ASBOX | |
5733 | ## ------------------------------------------ ## | |
5734 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5735 | ## ------------------------------------------ ## | |
5736 | _ASBOX | |
5737 | ) | | |
5738 | sed "s/^/$as_me: WARNING: /" >&2 | |
5739 | ;; | |
5740 | esac | |
5741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5745 | else | |
5746 | eval "$as_ac_Header=\$ac_header_preproc" | |
5747 | fi | |
5748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5750 | ||
5751 | fi | |
5752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5753 | cat >>confdefs.h <<_ACEOF | |
5754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5755 | _ACEOF | |
5756 | ||
5757 | fi | |
5758 | ||
5759 | done | |
5760 | ||
5761 | if test $ac_cv_header_sys_inttypes_h = yes; then | |
5762 | HAVE_SYS_INTTYPES_H=1 | |
5763 | else | |
5764 | HAVE_SYS_INTTYPES_H=0 | |
5765 | fi | |
5766 | ||
5767 | if test $ac_cv_header_sys_bitypes_h = yes; then | |
5768 | HAVE_SYS_BITYPES_H=1 | |
5769 | else | |
5770 | HAVE_SYS_BITYPES_H=0 | |
5771 | fi | |
5772 | ||
5773 | ||
5774 | ||
5775 | : | |
5776 | ||
5777 | ||
5778 | ||
5779 | ||
5780 | ||
5781 | ||
5782 | ||
5783 | ||
5784 | ||
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | ||
5790 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
5791 | echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 | |
5792 | echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6 | |
5793 | if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then | |
5794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5795 | else | |
5796 | if test "$cross_compiling" = yes; then | |
5797 | # Depending upon the size, compute the lo and hi bounds. | |
5798 | cat >conftest.$ac_ext <<_ACEOF | |
5799 | /* confdefs.h. */ | |
5800 | _ACEOF | |
5801 | cat confdefs.h >>conftest.$ac_ext | |
5802 | cat >>conftest.$ac_ext <<_ACEOF | |
5803 | /* end confdefs.h. */ | |
5804 | ||
5805 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5806 | included before <wchar.h>. */ | |
5807 | #include <stddef.h> | |
5808 | #include <signal.h> | |
5809 | #if HAVE_WCHAR_H | |
5810 | # include <stdio.h> | |
5811 | # include <time.h> | |
5812 | # include <wchar.h> | |
5813 | #endif | |
5814 | ||
5815 | #include <limits.h> | |
5816 | int | |
5817 | main () | |
5818 | { | |
5819 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; | |
5820 | test_array [0] = 0 | |
5821 | ||
5822 | ; | |
5823 | return 0; | |
5824 | } | |
5825 | _ACEOF | |
5826 | rm -f conftest.$ac_objext | |
5827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5828 | (eval $ac_compile) 2>conftest.er1 | |
5829 | ac_status=$? | |
5830 | grep -v '^ *+' conftest.er1 >conftest.err | |
5831 | rm -f conftest.er1 | |
5832 | cat conftest.err >&5 | |
5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5834 | (exit $ac_status); } && | |
5835 | { ac_try='test -z "$ac_c_werror_flag" | |
5836 | || test ! -s conftest.err' | |
5837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5838 | (eval $ac_try) 2>&5 | |
5839 | ac_status=$? | |
5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5841 | (exit $ac_status); }; } && | |
5842 | { ac_try='test -s conftest.$ac_objext' | |
5843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5844 | (eval $ac_try) 2>&5 | |
5845 | ac_status=$? | |
5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5847 | (exit $ac_status); }; }; then | |
5848 | ac_lo=0 ac_mid=0 | |
5849 | while :; do | |
5850 | cat >conftest.$ac_ext <<_ACEOF | |
5851 | /* confdefs.h. */ | |
5852 | _ACEOF | |
5853 | cat confdefs.h >>conftest.$ac_ext | |
5854 | cat >>conftest.$ac_ext <<_ACEOF | |
5855 | /* end confdefs.h. */ | |
5856 | ||
5857 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5858 | included before <wchar.h>. */ | |
5859 | #include <stddef.h> | |
5860 | #include <signal.h> | |
5861 | #if HAVE_WCHAR_H | |
5862 | # include <stdio.h> | |
5863 | # include <time.h> | |
5864 | # include <wchar.h> | |
5865 | #endif | |
5866 | ||
5867 | #include <limits.h> | |
5868 | int | |
5869 | main () | |
5870 | { | |
5871 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
5872 | test_array [0] = 0 | |
5873 | ||
5874 | ; | |
5875 | return 0; | |
5876 | } | |
5877 | _ACEOF | |
5878 | rm -f conftest.$ac_objext | |
5879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5880 | (eval $ac_compile) 2>conftest.er1 | |
5881 | ac_status=$? | |
5882 | grep -v '^ *+' conftest.er1 >conftest.err | |
5883 | rm -f conftest.er1 | |
5884 | cat conftest.err >&5 | |
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5886 | (exit $ac_status); } && | |
5887 | { ac_try='test -z "$ac_c_werror_flag" | |
5888 | || test ! -s conftest.err' | |
5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5890 | (eval $ac_try) 2>&5 | |
5891 | ac_status=$? | |
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5893 | (exit $ac_status); }; } && | |
5894 | { ac_try='test -s conftest.$ac_objext' | |
5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5896 | (eval $ac_try) 2>&5 | |
5897 | ac_status=$? | |
5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5899 | (exit $ac_status); }; }; then | |
5900 | ac_hi=$ac_mid; break | |
5901 | else | |
5902 | echo "$as_me: failed program was:" >&5 | |
5903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5904 | ||
5905 | ac_lo=`expr $ac_mid + 1` | |
5906 | if test $ac_lo -le $ac_mid; then | |
5907 | ac_lo= ac_hi= | |
5908 | break | |
5909 | fi | |
5910 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5911 | fi | |
5912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5913 | done | |
5914 | else | |
5915 | echo "$as_me: failed program was:" >&5 | |
5916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5917 | ||
5918 | cat >conftest.$ac_ext <<_ACEOF | |
5919 | /* confdefs.h. */ | |
5920 | _ACEOF | |
5921 | cat confdefs.h >>conftest.$ac_ext | |
5922 | cat >>conftest.$ac_ext <<_ACEOF | |
5923 | /* end confdefs.h. */ | |
5924 | ||
5925 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5926 | included before <wchar.h>. */ | |
5927 | #include <stddef.h> | |
5928 | #include <signal.h> | |
5929 | #if HAVE_WCHAR_H | |
5930 | # include <stdio.h> | |
5931 | # include <time.h> | |
5932 | # include <wchar.h> | |
5933 | #endif | |
5934 | ||
5935 | #include <limits.h> | |
5936 | int | |
5937 | main () | |
5938 | { | |
5939 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; | |
5940 | test_array [0] = 0 | |
5941 | ||
5942 | ; | |
5943 | return 0; | |
5944 | } | |
5945 | _ACEOF | |
5946 | rm -f conftest.$ac_objext | |
5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5948 | (eval $ac_compile) 2>conftest.er1 | |
5949 | ac_status=$? | |
5950 | grep -v '^ *+' conftest.er1 >conftest.err | |
5951 | rm -f conftest.er1 | |
5952 | cat conftest.err >&5 | |
5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5954 | (exit $ac_status); } && | |
5955 | { ac_try='test -z "$ac_c_werror_flag" | |
5956 | || test ! -s conftest.err' | |
5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5958 | (eval $ac_try) 2>&5 | |
5959 | ac_status=$? | |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; } && | |
5962 | { ac_try='test -s conftest.$ac_objext' | |
5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5964 | (eval $ac_try) 2>&5 | |
5965 | ac_status=$? | |
5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5967 | (exit $ac_status); }; }; then | |
5968 | ac_hi=-1 ac_mid=-1 | |
5969 | while :; do | |
5970 | cat >conftest.$ac_ext <<_ACEOF | |
5971 | /* confdefs.h. */ | |
5972 | _ACEOF | |
5973 | cat confdefs.h >>conftest.$ac_ext | |
5974 | cat >>conftest.$ac_ext <<_ACEOF | |
5975 | /* end confdefs.h. */ | |
5976 | ||
5977 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
5978 | included before <wchar.h>. */ | |
5979 | #include <stddef.h> | |
5980 | #include <signal.h> | |
5981 | #if HAVE_WCHAR_H | |
5982 | # include <stdio.h> | |
5983 | # include <time.h> | |
5984 | # include <wchar.h> | |
5985 | #endif | |
5986 | ||
5987 | #include <limits.h> | |
5988 | int | |
5989 | main () | |
5990 | { | |
5991 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; | |
5992 | test_array [0] = 0 | |
5993 | ||
5994 | ; | |
5995 | return 0; | |
5996 | } | |
5997 | _ACEOF | |
5998 | rm -f conftest.$ac_objext | |
5999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6000 | (eval $ac_compile) 2>conftest.er1 | |
6001 | ac_status=$? | |
6002 | grep -v '^ *+' conftest.er1 >conftest.err | |
6003 | rm -f conftest.er1 | |
6004 | cat conftest.err >&5 | |
6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6006 | (exit $ac_status); } && | |
6007 | { ac_try='test -z "$ac_c_werror_flag" | |
6008 | || test ! -s conftest.err' | |
6009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6010 | (eval $ac_try) 2>&5 | |
6011 | ac_status=$? | |
6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6013 | (exit $ac_status); }; } && | |
6014 | { ac_try='test -s conftest.$ac_objext' | |
6015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6016 | (eval $ac_try) 2>&5 | |
6017 | ac_status=$? | |
6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6019 | (exit $ac_status); }; }; then | |
6020 | ac_lo=$ac_mid; break | |
6021 | else | |
6022 | echo "$as_me: failed program was:" >&5 | |
6023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6024 | ||
6025 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6026 | if test $ac_mid -le $ac_hi; then | |
6027 | ac_lo= ac_hi= | |
6028 | break | |
6029 | fi | |
6030 | ac_mid=`expr 2 '*' $ac_mid` | |
6031 | fi | |
6032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6033 | done | |
6034 | else | |
6035 | echo "$as_me: failed program was:" >&5 | |
6036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6037 | ||
6038 | ac_lo= ac_hi= | |
6039 | fi | |
6040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6041 | fi | |
6042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6043 | # Binary search between lo and hi bounds. | |
6044 | while test "x$ac_lo" != "x$ac_hi"; do | |
6045 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6046 | cat >conftest.$ac_ext <<_ACEOF | |
6047 | /* confdefs.h. */ | |
6048 | _ACEOF | |
6049 | cat confdefs.h >>conftest.$ac_ext | |
6050 | cat >>conftest.$ac_ext <<_ACEOF | |
6051 | /* end confdefs.h. */ | |
6052 | ||
6053 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6054 | included before <wchar.h>. */ | |
6055 | #include <stddef.h> | |
6056 | #include <signal.h> | |
6057 | #if HAVE_WCHAR_H | |
6058 | # include <stdio.h> | |
6059 | # include <time.h> | |
6060 | # include <wchar.h> | |
6061 | #endif | |
6062 | ||
6063 | #include <limits.h> | |
6064 | int | |
6065 | main () | |
6066 | { | |
6067 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; | |
6068 | test_array [0] = 0 | |
6069 | ||
6070 | ; | |
6071 | return 0; | |
6072 | } | |
6073 | _ACEOF | |
6074 | rm -f conftest.$ac_objext | |
6075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6076 | (eval $ac_compile) 2>conftest.er1 | |
6077 | ac_status=$? | |
6078 | grep -v '^ *+' conftest.er1 >conftest.err | |
6079 | rm -f conftest.er1 | |
6080 | cat conftest.err >&5 | |
6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6082 | (exit $ac_status); } && | |
6083 | { ac_try='test -z "$ac_c_werror_flag" | |
6084 | || test ! -s conftest.err' | |
6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6086 | (eval $ac_try) 2>&5 | |
6087 | ac_status=$? | |
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6089 | (exit $ac_status); }; } && | |
6090 | { ac_try='test -s conftest.$ac_objext' | |
6091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6092 | (eval $ac_try) 2>&5 | |
6093 | ac_status=$? | |
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6095 | (exit $ac_status); }; }; then | |
6096 | ac_hi=$ac_mid | |
6097 | else | |
6098 | echo "$as_me: failed program was:" >&5 | |
6099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6100 | ||
6101 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6102 | fi | |
6103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6104 | done | |
6105 | case $ac_lo in | |
6106 | ?*) result=$ac_lo;; | |
6107 | '') result=unknown ;; | |
6108 | esac | |
6109 | else | |
6110 | if test "$cross_compiling" = yes; then | |
d5af19ba DJ |
6111 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6112 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6113 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
783e057b DJ |
6114 | See \`config.log' for more details." >&5 |
6115 | echo "$as_me: error: cannot run test program while cross compiling | |
6116 | See \`config.log' for more details." >&2;} | |
d5af19ba | 6117 | { (exit 1); exit 1; }; }; } |
783e057b DJ |
6118 | else |
6119 | cat >conftest.$ac_ext <<_ACEOF | |
6120 | /* confdefs.h. */ | |
6121 | _ACEOF | |
6122 | cat confdefs.h >>conftest.$ac_ext | |
6123 | cat >>conftest.$ac_ext <<_ACEOF | |
6124 | /* end confdefs.h. */ | |
6125 | ||
6126 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6127 | included before <wchar.h>. */ | |
6128 | #include <stddef.h> | |
6129 | #include <signal.h> | |
6130 | #if HAVE_WCHAR_H | |
6131 | # include <stdio.h> | |
6132 | # include <time.h> | |
6133 | # include <wchar.h> | |
6134 | #endif | |
6135 | ||
6136 | #include <limits.h> | |
6137 | long longval () { return sizeof ($gltype) * CHAR_BIT; } | |
6138 | unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; } | |
6139 | #include <stdio.h> | |
6140 | #include <stdlib.h> | |
6141 | int | |
6142 | main () | |
6143 | { | |
6144 | ||
6145 | FILE *f = fopen ("conftest.val", "w"); | |
6146 | if (! f) | |
6147 | exit (1); | |
6148 | if ((sizeof ($gltype) * CHAR_BIT) < 0) | |
6149 | { | |
6150 | long i = longval (); | |
6151 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
6152 | exit (1); | |
6153 | fprintf (f, "%ld\n", i); | |
6154 | } | |
6155 | else | |
6156 | { | |
6157 | unsigned long i = ulongval (); | |
6158 | if (i != (sizeof ($gltype) * CHAR_BIT)) | |
6159 | exit (1); | |
6160 | fprintf (f, "%lu\n", i); | |
6161 | } | |
6162 | exit (ferror (f) || fclose (f) != 0); | |
6163 | ||
6164 | ; | |
6165 | return 0; | |
6166 | } | |
6167 | _ACEOF | |
6168 | rm -f conftest$ac_exeext | |
6169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6170 | (eval $ac_link) 2>&5 | |
6171 | ac_status=$? | |
6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6175 | (eval $ac_try) 2>&5 | |
6176 | ac_status=$? | |
6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6178 | (exit $ac_status); }; }; then | |
6179 | result=`cat conftest.val` | |
6180 | else | |
6181 | echo "$as_me: program exited with status $ac_status" >&5 | |
6182 | echo "$as_me: failed program was:" >&5 | |
6183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6184 | ||
6185 | ( exit $ac_status ) | |
6186 | result=unknown | |
6187 | fi | |
6188 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6189 | fi | |
6190 | fi | |
6191 | rm -f conftest.val | |
6192 | eval gl_cv_bitsizeof_${gltype}=\$result | |
c906108c | 6193 | |
783e057b DJ |
6194 | fi |
6195 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5 | |
6196 | echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6 | |
6197 | eval result=\$gl_cv_bitsizeof_${gltype} | |
6198 | if test $result = unknown; then | |
6199 | result=0 | |
6200 | fi | |
6201 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6202 | cat >>confdefs.h <<_ACEOF | |
6203 | #define BITSIZEOF_${GLTYPE} $result | |
6204 | _ACEOF | |
c906108c | 6205 | |
783e057b DJ |
6206 | eval BITSIZEOF_${GLTYPE}=\$result |
6207 | done | |
c906108c | 6208 | |
c906108c | 6209 | |
c906108c | 6210 | |
bec39cab | 6211 | |
3841debe | 6212 | |
783e057b DJ |
6213 | |
6214 | ||
6215 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
6216 | echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 | |
6217 | echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6 | |
6218 | if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then | |
6219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6220 | else | |
6221 | cat >conftest.$ac_ext <<_ACEOF | |
6222 | /* confdefs.h. */ | |
6223 | _ACEOF | |
6224 | cat confdefs.h >>conftest.$ac_ext | |
6225 | cat >>conftest.$ac_ext <<_ACEOF | |
6226 | /* end confdefs.h. */ | |
6227 | ||
6228 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6229 | included before <wchar.h>. */ | |
6230 | #include <stddef.h> | |
6231 | #include <signal.h> | |
6232 | #if HAVE_WCHAR_H | |
6233 | # include <stdio.h> | |
6234 | # include <time.h> | |
6235 | # include <wchar.h> | |
6236 | #endif | |
6237 | ||
6238 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
6239 | int | |
6240 | main () | |
6241 | { | |
6242 | ||
6243 | ; | |
6244 | return 0; | |
6245 | } | |
6246 | _ACEOF | |
6247 | rm -f conftest.$ac_objext | |
6248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6249 | (eval $ac_compile) 2>conftest.er1 | |
6250 | ac_status=$? | |
6251 | grep -v '^ *+' conftest.er1 >conftest.err | |
6252 | rm -f conftest.er1 | |
6253 | cat conftest.err >&5 | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6255 | (exit $ac_status); } && | |
6256 | { ac_try='test -z "$ac_c_werror_flag" | |
6257 | || test ! -s conftest.err' | |
6258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6259 | (eval $ac_try) 2>&5 | |
6260 | ac_status=$? | |
6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); }; } && | |
6263 | { ac_try='test -s conftest.$ac_objext' | |
6264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6265 | (eval $ac_try) 2>&5 | |
6266 | ac_status=$? | |
6267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6268 | (exit $ac_status); }; }; then | |
6269 | result=yes | |
6270 | else | |
6271 | echo "$as_me: failed program was:" >&5 | |
6272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6273 | ||
6274 | result=no | |
20e95c23 | 6275 | fi |
783e057b DJ |
6276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6277 | eval gl_cv_type_${gltype}_signed=\$result | |
6278 | ||
6279 | fi | |
6280 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5 | |
6281 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6 | |
6282 | eval result=\$gl_cv_type_${gltype}_signed | |
6283 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6284 | if test "$result" = yes; then | |
6285 | cat >>confdefs.h <<_ACEOF | |
6286 | #define HAVE_SIGNED_${GLTYPE} 1 | |
6287 | _ACEOF | |
6288 | ||
6289 | eval HAVE_SIGNED_${GLTYPE}=1 | |
6290 | else | |
6291 | eval HAVE_SIGNED_${GLTYPE}=0 | |
6292 | fi | |
6293 | done | |
6294 | ||
6295 | ||
6296 | gl_cv_type_ptrdiff_t_signed=yes | |
6297 | gl_cv_type_size_t_signed=no | |
6298 | ||
6299 | ||
6300 | ||
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do | |
6306 | echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 | |
6307 | echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6 | |
6308 | if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then | |
6309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6310 | else |
783e057b DJ |
6311 | eval gl_cv_type_${gltype}_suffix=no |
6312 | eval result=\$gl_cv_type_${gltype}_signed | |
6313 | if test "$result" = yes; then | |
6314 | glsufu= | |
6315 | else | |
6316 | glsufu=u | |
6317 | fi | |
6318 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
6319 | case $glsuf in | |
6320 | '') gltype1='int';; | |
6321 | l) gltype1='long int';; | |
6322 | ll) gltype1='long long int';; | |
6323 | i64) gltype1='__int64';; | |
6324 | u) gltype1='unsigned int';; | |
6325 | ul) gltype1='unsigned long int';; | |
6326 | ull) gltype1='unsigned long long int';; | |
6327 | ui64)gltype1='unsigned __int64';; | |
6328 | esac | |
6329 | cat >conftest.$ac_ext <<_ACEOF | |
6330 | /* confdefs.h. */ | |
6331 | _ACEOF | |
6332 | cat confdefs.h >>conftest.$ac_ext | |
6333 | cat >>conftest.$ac_ext <<_ACEOF | |
6334 | /* end confdefs.h. */ | |
6335 | ||
6336 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
6337 | included before <wchar.h>. */ | |
6338 | #include <stddef.h> | |
6339 | #include <signal.h> | |
6340 | #if HAVE_WCHAR_H | |
6341 | # include <stdio.h> | |
6342 | # include <time.h> | |
6343 | # include <wchar.h> | |
6344 | #endif | |
6345 | ||
6346 | extern $gltype foo; | |
6347 | extern $gltype1 foo; | |
6348 | int | |
6349 | main () | |
6350 | { | |
6351 | ||
6352 | ; | |
6353 | return 0; | |
6354 | } | |
6355 | _ACEOF | |
6356 | rm -f conftest.$ac_objext | |
6357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6358 | (eval $ac_compile) 2>conftest.er1 | |
6359 | ac_status=$? | |
6360 | grep -v '^ *+' conftest.er1 >conftest.err | |
6361 | rm -f conftest.er1 | |
6362 | cat conftest.err >&5 | |
6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6364 | (exit $ac_status); } && | |
6365 | { ac_try='test -z "$ac_c_werror_flag" | |
6366 | || test ! -s conftest.err' | |
6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6368 | (eval $ac_try) 2>&5 | |
6369 | ac_status=$? | |
6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6371 | (exit $ac_status); }; } && | |
6372 | { ac_try='test -s conftest.$ac_objext' | |
6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6374 | (eval $ac_try) 2>&5 | |
6375 | ac_status=$? | |
6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6377 | (exit $ac_status); }; }; then | |
6378 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
6379 | else | |
6380 | echo "$as_me: failed program was:" >&5 | |
6381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6382 | ||
6383 | fi | |
6384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6385 | eval result=\$gl_cv_type_${gltype}_suffix | |
6386 | test "$result" != no && break | |
6387 | done | |
6388 | fi | |
6389 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5 | |
6390 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6 | |
6391 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
6392 | eval result=\$gl_cv_type_${gltype}_suffix | |
6393 | test "$result" = no && result= | |
6394 | eval ${GLTYPE}_SUFFIX=\$result | |
6395 | cat >>confdefs.h <<_ACEOF | |
6396 | #define ${GLTYPE}_SUFFIX $result | |
6397 | _ACEOF | |
6398 | ||
6399 | done | |
6400 | ||
6401 | ||
6402 | ||
6403 | STDINT_H=stdint.h | |
6404 | fi | |
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 | |
6413 | echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6 | |
6414 | if test "${gl_cv_header_wchar_h_standalone+set}" = set; then | |
6415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6416 | else | |
6417 | cat >conftest.$ac_ext <<_ACEOF | |
6418 | #include <wchar.h> | |
6419 | wchar_t w; | |
6420 | _ACEOF | |
6421 | rm -f conftest.$ac_objext | |
6422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6423 | (eval $ac_compile) 2>conftest.er1 | |
6424 | ac_status=$? | |
6425 | grep -v '^ *+' conftest.er1 >conftest.err | |
6426 | rm -f conftest.er1 | |
6427 | cat conftest.err >&5 | |
6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6429 | (exit $ac_status); } && | |
6430 | { ac_try='test -z "$ac_c_werror_flag" | |
6431 | || test ! -s conftest.err' | |
6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6433 | (eval $ac_try) 2>&5 | |
6434 | ac_status=$? | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); }; } && | |
6437 | { ac_try='test -s conftest.$ac_objext' | |
6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6439 | (eval $ac_try) 2>&5 | |
6440 | ac_status=$? | |
6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6442 | (exit $ac_status); }; }; then | |
6443 | gl_cv_header_wchar_h_standalone=yes | |
6444 | else | |
6445 | echo "$as_me: failed program was:" >&5 | |
6446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6447 | ||
6448 | gl_cv_header_wchar_h_standalone=no | |
6449 | fi | |
6450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6451 | fi | |
6452 | echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 | |
6453 | echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6 | |
6454 | if test $gl_cv_header_wchar_h_standalone != yes; then | |
6455 | WCHAR_H=wchar.h | |
6456 | fi | |
6457 | ||
6458 | ||
6459 | : | |
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | if test $ac_cv_header_wchar_h = yes; then | |
6466 | HAVE_WCHAR_H=1 | |
6467 | else | |
6468 | HAVE_WCHAR_H=0 | |
6469 | fi | |
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | : | |
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | if test $gl_cv_have_include_next = yes; then | |
6483 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6484 | else | |
6485 | echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 | |
6486 | echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6 | |
6487 | if test "${gl_cv_next_wchar_h+set}" = set; then | |
6488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6489 | else | |
6490 | ||
6491 | if test $ac_cv_header_wchar_h = yes; then | |
6492 | cat >conftest.$ac_ext <<_ACEOF | |
6493 | /* confdefs.h. */ | |
6494 | _ACEOF | |
6495 | cat confdefs.h >>conftest.$ac_ext | |
6496 | cat >>conftest.$ac_ext <<_ACEOF | |
6497 | /* end confdefs.h. */ | |
6498 | #include <wchar.h> | |
6499 | ||
6500 | _ACEOF | |
6501 | gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6502 | sed -n '\#/wchar.h#{ | |
6503 | s#.*"\(.*/wchar.h\)".*#\1# | |
6504 | s#^/[^/]#//&# | |
6505 | p | |
6506 | q | |
6507 | }'`'"' | |
6508 | else | |
6509 | gl_cv_next_wchar_h='<'wchar.h'>' | |
6510 | fi | |
6511 | ||
6512 | fi | |
6513 | echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 | |
6514 | echo "${ECHO_T}$gl_cv_next_wchar_h" >&6 | |
6515 | fi | |
6516 | NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
6517 | ||
c906108c | 6518 | |
c906108c | 6519 | |
c906108c | 6520 | |
c906108c | 6521 | |
c906108c | 6522 | |
c906108c | 6523 | |
c906108c | 6524 | |
783e057b DJ |
6525 | gltests_libdeps= |
6526 | gltests_ltlibdeps= | |
20e95c23 | 6527 | |
20e95c23 | 6528 | |
20e95c23 | 6529 | |
783e057b | 6530 | gl_source_base='tests' |
c906108c | 6531 | |
bec39cab | 6532 | |
bec39cab | 6533 | |
783e057b DJ |
6534 | |
6535 | LIBGNU_LIBDEPS="$gl_libdeps" | |
6536 | ||
6537 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
6538 | ||
6539 | ||
e28b3332 | 6540 | |
d5af19ba DJ |
6541 | # For Makefile dependencies. |
6542 | GNULIB_STDINT_H= | |
6543 | if test x"$STDINT_H" != x; then | |
6544 | GNULIB_STDINT_H=gnulib/$STDINT_H | |
6545 | fi | |
6546 | ||
6547 | ||
bec39cab AC |
6548 | PACKAGE=gdb |
6549 | ||
6550 | cat >>confdefs.h <<_ACEOF | |
6551 | #define PACKAGE "$PACKAGE" | |
6552 | _ACEOF | |
6553 | ||
6554 | ||
6555 | ||
e28b3332 DJ |
6556 | # GDB does not use automake, but gnulib does. This line lets us |
6557 | # generate its Makefile.in. | |
6558 | am__api_version="1.9" | |
6559 | # Find a good install program. We prefer a C program (faster), | |
6560 | # so one script is as good as another. But avoid the broken or | |
6561 | # incompatible versions: | |
6562 | # SysV /etc/install, /usr/sbin/install | |
6563 | # SunOS /usr/etc/install | |
6564 | # IRIX /sbin/install | |
6565 | # AIX /bin/install | |
6566 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6567 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6568 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6569 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6570 | # OS/2's system install, which has a completely different semantic | |
6571 | # ./install, which can be erroneously created by make from ./install.sh. | |
85541719 | 6572 | # Reject install programs that cannot install multiple files. |
e28b3332 DJ |
6573 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
6574 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6575 | if test -z "$INSTALL"; then | |
6576 | if test "${ac_cv_path_install+set}" = set; then | |
6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6578 | else | |
6579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6580 | for as_dir in $PATH | |
6581 | do | |
6582 | IFS=$as_save_IFS | |
6583 | test -z "$as_dir" && as_dir=. | |
6584 | # Account for people who put trailing slashes in PATH elements. | |
6585 | case $as_dir/ in | |
6586 | ./ | .// | /cC/* | \ | |
6587 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6588 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
6589 | /usr/ucb/* ) ;; | |
6590 | *) | |
6591 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6592 | # Don't use installbsd from OSF since it installs stuff as root | |
6593 | # by default. | |
6594 | for ac_prog in ginstall scoinst install; do | |
6595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6596 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
6597 | if test $ac_prog = install && | |
6598 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6599 | # AIX install. It has an incompatible calling convention. | |
6600 | : | |
6601 | elif test $ac_prog = install && | |
6602 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6603 | # program-specific install script used by HP pwplus--don't use. | |
6604 | : | |
6605 | else | |
85541719 DE |
6606 | rm -rf conftest.one conftest.two conftest.dir |
6607 | echo one > conftest.one | |
6608 | echo two > conftest.two | |
6609 | mkdir conftest.dir | |
6610 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
6611 | test -s conftest.one && test -s conftest.two && | |
6612 | test -s conftest.dir/conftest.one && | |
6613 | test -s conftest.dir/conftest.two | |
6614 | then | |
6615 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6616 | break 3 | |
6617 | fi | |
e28b3332 DJ |
6618 | fi |
6619 | fi | |
6620 | done | |
6621 | done | |
6622 | ;; | |
6623 | esac | |
6624 | done | |
6625 | ||
85541719 | 6626 | rm -rf conftest.one conftest.two conftest.dir |
e28b3332 DJ |
6627 | |
6628 | fi | |
6629 | if test "${ac_cv_path_install+set}" = set; then | |
6630 | INSTALL=$ac_cv_path_install | |
6631 | else | |
85541719 DE |
6632 | # As a last resort, use the slow shell script. Don't cache a |
6633 | # value for INSTALL within a source directory, because that will | |
e28b3332 | 6634 | # break other packages using the cache if that directory is |
85541719 | 6635 | # removed, or if the value is a relative name. |
e28b3332 DJ |
6636 | INSTALL=$ac_install_sh |
6637 | fi | |
6638 | fi | |
6639 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
6640 | echo "${ECHO_T}$INSTALL" >&6 | |
6641 | ||
6642 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6643 | # It thinks the first close brace ends the variable substitution. | |
6644 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6645 | ||
6646 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6647 | ||
6648 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6649 | ||
6650 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
6651 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
6652 | # Just in case | |
6653 | sleep 1 | |
6654 | echo timestamp > conftest.file | |
6655 | # Do `set' in a subshell so we don't clobber the current shell's | |
6656 | # arguments. Must try -L first in case configure is actually a | |
6657 | # symlink; some systems play weird games with the mod time of symlinks | |
6658 | # (eg FreeBSD returns the mod time of the symlink's containing | |
6659 | # directory). | |
6660 | if ( | |
6661 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
6662 | if test "$*" = "X"; then | |
6663 | # -L didn't work. | |
6664 | set X `ls -t $srcdir/configure conftest.file` | |
6665 | fi | |
6666 | rm -f conftest.file | |
6667 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
6668 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
6669 | ||
6670 | # If neither matched, then we have a broken ls. This can happen | |
6671 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
6672 | # broken ls alias from the environment. This has actually | |
6673 | # happened. Such a system could not be considered "sane". | |
6674 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
6675 | alias in your environment" >&5 | |
6676 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
6677 | alias in your environment" >&2;} | |
6678 | { (exit 1); exit 1; }; } | |
6679 | fi | |
6680 | ||
6681 | test "$2" = conftest.file | |
6682 | ) | |
6683 | then | |
6684 | # Ok. | |
6685 | : | |
6686 | else | |
6687 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
6688 | Check your system clock" >&5 | |
6689 | echo "$as_me: error: newly created file is older than distributed files! | |
6690 | Check your system clock" >&2;} | |
6691 | { (exit 1); exit 1; }; } | |
6692 | fi | |
6693 | echo "$as_me:$LINENO: result: yes" >&5 | |
6694 | echo "${ECHO_T}yes" >&6 | |
6695 | test "$program_prefix" != NONE && | |
6696 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
6697 | # Use a double $ so make ignores it. | |
6698 | test "$program_suffix" != NONE && | |
6699 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
6700 | # Double any \ or $. echo might interpret backslashes. | |
6701 | # By default was `s,x,x', remove it if useless. | |
6702 | cat <<\_ACEOF >conftest.sed | |
6703 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6704 | _ACEOF | |
6705 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6706 | rm conftest.sed | |
6707 | ||
6708 | # expand $ac_aux_dir to an absolute path | |
6709 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
6710 | ||
6711 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
6712 | # Use eval to expand $SHELL | |
6713 | if eval "$MISSING --run true"; then | |
6714 | am_missing_run="$MISSING --run " | |
6715 | else | |
6716 | am_missing_run= | |
6717 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
6718 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
6719 | fi | |
6720 | ||
6721 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
6722 | # We used to keeping the `.' as first argument, in order to | |
6723 | # allow $(mkdir_p) to be used without argument. As in | |
6724 | # $(mkdir_p) $(somedir) | |
6725 | # where $(somedir) is conditionally defined. However this is wrong | |
6726 | # for two reasons: | |
6727 | # 1. if the package is installed by a user who cannot write `.' | |
6728 | # make install will fail, | |
6729 | # 2. the above comment should most certainly read | |
6730 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
6731 | # so it does not work when $(somedir) is undefined and | |
6732 | # $(DESTDIR) is not. | |
6733 | # To support the latter case, we have to write | |
6734 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
6735 | # so the `.' trick is pointless. | |
6736 | mkdir_p='mkdir -p --' | |
6737 | else | |
6738 | # On NextStep and OpenStep, the `mkdir' command does not | |
6739 | # recognize any option. It will interpret all options as | |
6740 | # directories to create, and then abort because `.' already | |
6741 | # exists. | |
6742 | for d in ./-p ./--version; | |
6743 | do | |
6744 | test -d $d && rmdir $d | |
6745 | done | |
6746 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
6747 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
6748 | mkdir_p='$(mkinstalldirs)' | |
6749 | else | |
6750 | mkdir_p='$(install_sh) -d' | |
6751 | fi | |
6752 | fi | |
6753 | ||
6754 | for ac_prog in gawk mawk nawk awk | |
6755 | do | |
6756 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6757 | set dummy $ac_prog; ac_word=$2 | |
6758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6760 | if test "${ac_cv_prog_AWK+set}" = set; then | |
6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6762 | else | |
6763 | if test -n "$AWK"; then | |
6764 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6765 | else | |
6766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6767 | for as_dir in $PATH | |
6768 | do | |
6769 | IFS=$as_save_IFS | |
6770 | test -z "$as_dir" && as_dir=. | |
6771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6773 | ac_cv_prog_AWK="$ac_prog" | |
6774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6775 | break 2 | |
6776 | fi | |
6777 | done | |
6778 | done | |
6779 | ||
6780 | fi | |
6781 | fi | |
6782 | AWK=$ac_cv_prog_AWK | |
6783 | if test -n "$AWK"; then | |
6784 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
6785 | echo "${ECHO_T}$AWK" >&6 | |
6786 | else | |
6787 | echo "$as_me:$LINENO: result: no" >&5 | |
6788 | echo "${ECHO_T}no" >&6 | |
6789 | fi | |
6790 | ||
6791 | test -n "$AWK" && break | |
6792 | done | |
6793 | ||
e28b3332 DJ |
6794 | ac_config_commands="$ac_config_commands depfiles" |
6795 | ||
6796 | ||
6797 | am_make=${MAKE-make} | |
6798 | cat > confinc << 'END' | |
6799 | am__doit: | |
6800 | @echo done | |
6801 | .PHONY: am__doit | |
6802 | END | |
6803 | # If we don't find an include directive, just comment out the code. | |
6804 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
6805 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
6806 | am__include="#" | |
6807 | am__quote= | |
6808 | _am_result=none | |
6809 | # First try GNU make style include. | |
6810 | echo "include confinc" > confmf | |
6811 | # We grep out `Entering directory' and `Leaving directory' | |
6812 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
6813 | # In particular we don't look at `^make:' because GNU make might | |
6814 | # be invoked under some other name (usually "gmake"), in which | |
6815 | # case it prints its new name instead of `make'. | |
6816 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
6817 | am__include=include | |
6818 | am__quote= | |
6819 | _am_result=GNU | |
6820 | fi | |
6821 | # Now try BSD make style include. | |
6822 | if test "$am__include" = "#"; then | |
6823 | echo '.include "confinc"' > confmf | |
6824 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
6825 | am__include=.include | |
6826 | am__quote="\"" | |
6827 | _am_result=BSD | |
6828 | fi | |
6829 | fi | |
6830 | ||
6831 | ||
6832 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
6833 | echo "${ECHO_T}$_am_result" >&6 | |
6834 | rm -f confinc confmf | |
6835 | ||
6836 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
6837 | if test "${enable_dependency_tracking+set}" = set; then | |
6838 | enableval="$enable_dependency_tracking" | |
6839 | ||
6840 | fi; | |
6841 | if test "x$enable_dependency_tracking" != xno; then | |
6842 | am_depcomp="$ac_aux_dir/depcomp" | |
6843 | AMDEPBACKSLASH='\' | |
6844 | fi | |
6845 | ||
6846 | ||
6847 | if test "x$enable_dependency_tracking" != xno; then | |
6848 | AMDEP_TRUE= | |
6849 | AMDEP_FALSE='#' | |
6850 | else | |
6851 | AMDEP_TRUE='#' | |
6852 | AMDEP_FALSE= | |
6853 | fi | |
6854 | ||
6855 | ||
6856 | ||
6857 | # test to see if srcdir already configured | |
6858 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
6859 | test -f $srcdir/config.status; then | |
6860 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
6861 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
6862 | { (exit 1); exit 1; }; } | |
6863 | fi | |
6864 | ||
6865 | # test whether we have cygpath | |
6866 | if test -z "$CYGPATH_W"; then | |
6867 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
6868 | CYGPATH_W='cygpath -w' | |
6869 | else | |
6870 | CYGPATH_W=echo | |
6871 | fi | |
6872 | fi | |
6873 | ||
6874 | ||
6875 | # Define the identity of the package. | |
6876 | PACKAGE=gdb | |
6877 | VERSION=UNUSED-VERSION | |
6878 | ||
6879 | ||
6880 | # Some tools Automake needs. | |
6881 | ||
6882 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
6883 | ||
6884 | ||
6885 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
6886 | ||
6887 | ||
6888 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
6889 | ||
6890 | ||
6891 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
6892 | ||
6893 | ||
6894 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6895 | ||
6896 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
6897 | ||
6898 | # Installed binaries are usually stripped using `strip' when the user | |
6899 | # run `make install-strip'. However `strip' might not be the right | |
6900 | # tool to use in cross-compilation environments, therefore Automake | |
6901 | # will honor the `STRIP' environment variable to overrule this program. | |
6902 | if test "$cross_compiling" != no; then | |
6903 | if test -n "$ac_tool_prefix"; then | |
6904 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6905 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6908 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6910 | else | |
6911 | if test -n "$STRIP"; then | |
6912 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6913 | else | |
6914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6915 | for as_dir in $PATH | |
6916 | do | |
6917 | IFS=$as_save_IFS | |
6918 | test -z "$as_dir" && as_dir=. | |
6919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6921 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6923 | break 2 | |
6924 | fi | |
6925 | done | |
6926 | done | |
6927 | ||
6928 | fi | |
6929 | fi | |
6930 | STRIP=$ac_cv_prog_STRIP | |
6931 | if test -n "$STRIP"; then | |
6932 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6933 | echo "${ECHO_T}$STRIP" >&6 | |
6934 | else | |
6935 | echo "$as_me:$LINENO: result: no" >&5 | |
6936 | echo "${ECHO_T}no" >&6 | |
6937 | fi | |
6938 | ||
6939 | fi | |
6940 | if test -z "$ac_cv_prog_STRIP"; then | |
6941 | ac_ct_STRIP=$STRIP | |
6942 | # Extract the first word of "strip", so it can be a program name with args. | |
6943 | set dummy strip; ac_word=$2 | |
6944 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6946 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6948 | else | |
6949 | if test -n "$ac_ct_STRIP"; then | |
6950 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6951 | else | |
6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6953 | for as_dir in $PATH | |
6954 | do | |
6955 | IFS=$as_save_IFS | |
6956 | test -z "$as_dir" && as_dir=. | |
6957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6959 | ac_cv_prog_ac_ct_STRIP="strip" | |
6960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6961 | break 2 | |
6962 | fi | |
6963 | done | |
6964 | done | |
6965 | ||
6966 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6967 | fi | |
6968 | fi | |
6969 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6970 | if test -n "$ac_ct_STRIP"; then | |
6971 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6972 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6973 | else | |
6974 | echo "$as_me:$LINENO: result: no" >&5 | |
6975 | echo "${ECHO_T}no" >&6 | |
6976 | fi | |
6977 | ||
6978 | STRIP=$ac_ct_STRIP | |
6979 | else | |
6980 | STRIP="$ac_cv_prog_STRIP" | |
6981 | fi | |
6982 | ||
6983 | fi | |
6984 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
6985 | ||
6986 | # We need awk for the "check" target. The system "awk" is bad on | |
6987 | # some platforms. | |
6988 | # Always define AMTAR for backward compatibility. | |
6989 | ||
6990 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
6991 | ||
6992 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | depcc="$CC" am_compiler_list= | |
6998 | ||
6999 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
7000 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
7001 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
7002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7003 | else | |
7004 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
7005 | # We make a subdir and do the tests there. Otherwise we can end up | |
7006 | # making bogus files that we don't know about and never remove. For | |
7007 | # instance it was reported that on HP-UX the gcc test will end up | |
7008 | # making a dummy file named `D' -- because `-MD' means `put the output | |
7009 | # in D'. | |
7010 | mkdir conftest.dir | |
7011 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
7012 | # using a relative directory. | |
7013 | cp "$am_depcomp" conftest.dir | |
7014 | cd conftest.dir | |
7015 | # We will build objects and dependencies in a subdirectory because | |
7016 | # it helps to detect inapplicable dependency modes. For instance | |
7017 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
7018 | # side effect of compilation, but ICC will put the dependencies in | |
7019 | # the current directory while Tru64 will put them in the object | |
7020 | # directory. | |
7021 | mkdir sub | |
7022 | ||
7023 | am_cv_CC_dependencies_compiler_type=none | |
7024 | if test "$am_compiler_list" = ""; then | |
7025 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
7026 | fi | |
7027 | for depmode in $am_compiler_list; do | |
7028 | # Setup a source with many dependencies, because some compilers | |
7029 | # like to wrap large dependency lists on column 80 (with \), and | |
7030 | # we should not choose a depcomp mode which is confused by this. | |
7031 | # | |
7032 | # We need to recreate these files for each test, as the compiler may | |
7033 | # overwrite some of them when testing with obscure command lines. | |
7034 | # This happens at least with the AIX C compiler. | |
7035 | : > sub/conftest.c | |
7036 | for i in 1 2 3 4 5 6; do | |
7037 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
7038 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
7039 | # Solaris 8's {/usr,}/bin/sh. | |
7040 | touch sub/conftst$i.h | |
7041 | done | |
7042 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
7043 | ||
7044 | case $depmode in | |
7045 | nosideeffect) | |
7046 | # after this tag, mechanisms are not by side-effect, so they'll | |
7047 | # only be used when explicitly requested | |
7048 | if test "x$enable_dependency_tracking" = xyes; then | |
7049 | continue | |
7050 | else | |
7051 | break | |
7052 | fi | |
7053 | ;; | |
7054 | none) break ;; | |
7055 | esac | |
7056 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
7057 | # mode. It turns out that the SunPro C++ compiler does not properly | |
7058 | # handle `-M -o', and we need to detect this. | |
7059 | if depmode=$depmode \ | |
7060 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
7061 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
7062 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
7063 | >/dev/null 2>conftest.err && | |
7064 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7065 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
7066 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
7067 | # icc doesn't choke on unknown options, it will just issue warnings | |
7068 | # or remarks (even with -Werror). So we grep stderr for any message | |
7069 | # that says an option was ignored or not supported. | |
7070 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
7071 | # icc: Command line warning: ignoring option '-M'; no argument required | |
7072 | # The diagnosis changed in icc 8.0: | |
7073 | # icc: Command line remark: option '-MP' not supported | |
7074 | if (grep 'ignoring option' conftest.err || | |
7075 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
7076 | am_cv_CC_dependencies_compiler_type=$depmode | |
7077 | break | |
7078 | fi | |
7079 | fi | |
7080 | done | |
7081 | ||
7082 | cd .. | |
7083 | rm -rf conftest.dir | |
7084 | else | |
7085 | am_cv_CC_dependencies_compiler_type=none | |
7086 | fi | |
7087 | ||
7088 | fi | |
7089 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
7090 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
7091 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
7092 | ||
7093 | ||
7094 | ||
7095 | if | |
7096 | test "x$enable_dependency_tracking" != xno \ | |
7097 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
7098 | am__fastdepCC_TRUE= | |
7099 | am__fastdepCC_FALSE='#' | |
7100 | else | |
7101 | am__fastdepCC_TRUE='#' | |
7102 | am__fastdepCC_FALSE= | |
7103 | fi | |
7104 | ||
7105 | ||
7106 | ||
7107 | ||
bec39cab AC |
7108 | debugdir=${libdir}/debug |
7109 | ||
7110 | ||
b4e70030 | 7111 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 7112 | if test "${with_separate_debug_dir+set}" = set; then |
783e057b DJ |
7113 | withval="$with_separate_debug_dir" |
7114 | debugdir="${withval}" | |
7115 | fi; | |
20e95c23 | 7116 | |
20e95c23 | 7117 | |
783e057b DJ |
7118 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
7119 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7120 | ac_define_dir=`eval echo $debugdir` | |
7121 | ac_define_dir=`eval echo $ac_define_dir` | |
20e95c23 | 7122 | |
783e057b DJ |
7123 | cat >>confdefs.h <<_ACEOF |
7124 | #define DEBUGDIR "$ac_define_dir" | |
20e95c23 | 7125 | _ACEOF |
20e95c23 | 7126 | |
20e95c23 | 7127 | |
783e057b | 7128 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
20e95c23 | 7129 | |
783e057b DJ |
7130 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
7131 | if test "x$prefix" = xNONE; then | |
7132 | test_prefix=/usr/local | |
7133 | else | |
7134 | test_prefix=$prefix | |
7135 | fi | |
20e95c23 | 7136 | else |
783e057b | 7137 | test_prefix=$exec_prefix |
20e95c23 | 7138 | fi |
783e057b DJ |
7139 | case ${debugdir} in |
7140 | "${test_prefix}"|"${test_prefix}/"*|\ | |
7141 | '${exec_prefix}'|'${exec_prefix}/'*) | |
20e95c23 DJ |
7142 | |
7143 | cat >>confdefs.h <<\_ACEOF | |
783e057b | 7144 | #define DEBUGDIR_RELOCATABLE 1 |
20e95c23 DJ |
7145 | _ACEOF |
7146 | ||
783e057b DJ |
7147 | ;; |
7148 | esac | |
7149 | ||
20e95c23 | 7150 | |
29b0e8a2 JM |
7151 | # Check whether --with-relocated-sources or --without-relocated-sources was given. |
7152 | if test "${with_relocated_sources+set}" = set; then | |
7153 | withval="$with_relocated_sources" | |
7154 | reloc_srcdir="${withval}" | |
7155 | ||
7156 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7157 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7158 | ac_define_dir=`eval echo $reloc_srcdir` | |
7159 | ac_define_dir=`eval echo $ac_define_dir` | |
7160 | ||
7161 | cat >>confdefs.h <<_ACEOF | |
7162 | #define RELOC_SRCDIR "$ac_define_dir" | |
7163 | _ACEOF | |
7164 | ||
7165 | ||
7166 | ||
7167 | fi; | |
7168 | ||
7169 | ||
20e95c23 | 7170 | |
783e057b | 7171 | subdirs="$subdirs doc testsuite" |
20e95c23 DJ |
7172 | |
7173 | ||
783e057b DJ |
7174 | # Check whether to support alternative target configurations |
7175 | # Check whether --enable-targets or --disable-targets was given. | |
7176 | if test "${enable_targets+set}" = set; then | |
7177 | enableval="$enable_targets" | |
7178 | case "${enableval}" in | |
7179 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
7180 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
7181 | { (exit 1); exit 1; }; } | |
7182 | ;; | |
7183 | no) enable_targets= ;; | |
7184 | *) enable_targets=$enableval ;; | |
7185 | esac | |
7186 | fi; | |
20e95c23 | 7187 | |
783e057b DJ |
7188 | # Check whether to enable 64-bit support on 32-bit hosts |
7189 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
7190 | if test "${enable_64_bit_bfd+set}" = set; then | |
7191 | enableval="$enable_64_bit_bfd" | |
7192 | case "${enableval}" in | |
7193 | yes) want64=true ;; | |
7194 | no) want64=false ;; | |
7195 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
7196 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
7197 | { (exit 1); exit 1; }; } ;; | |
7198 | esac | |
7199 | else | |
7200 | want64=false | |
7201 | fi; | |
7202 | # Provide defaults for some variables set by the per-host and per-target | |
7203 | # configuration. | |
7204 | gdb_host_obs=posix-hdep.o | |
20e95c23 | 7205 | |
783e057b DJ |
7206 | if test "${target}" = "${host}"; then |
7207 | gdb_native=yes | |
7208 | else | |
7209 | gdb_native=no | |
7210 | fi | |
20e95c23 | 7211 | |
783e057b | 7212 | . $srcdir/configure.host |
20e95c23 | 7213 | |
783e057b | 7214 | # Accumulate some settings from configure.tgt over all enabled targets |
20e95c23 | 7215 | |
783e057b DJ |
7216 | TARGET_OBS= |
7217 | all_targets= | |
20e95c23 | 7218 | |
783e057b | 7219 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
20e95c23 | 7220 | do |
783e057b DJ |
7221 | if test "$targ_alias" = "all"; then |
7222 | all_targets=true | |
7223 | else | |
7224 | # Canonicalize the secondary target names. | |
7225 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
7226 | if test -n "$result"; then | |
7227 | targ=$result | |
7228 | else | |
7229 | targ=$targ_alias | |
7230 | fi | |
20e95c23 | 7231 | |
783e057b | 7232 | . ${srcdir}/configure.tgt |
20e95c23 | 7233 | |
783e057b DJ |
7234 | # Target-specific object files |
7235 | for i in ${gdb_target_obs}; do | |
7236 | case " $TARGET_OBS " in | |
7237 | *" ${i} "*) ;; | |
7238 | *) | |
7239 | TARGET_OBS="$TARGET_OBS ${i}" | |
7240 | ;; | |
7241 | esac | |
7242 | done | |
20e95c23 | 7243 | |
783e057b DJ |
7244 | # Check whether this target needs 64-bit CORE_ADDR |
7245 | if test x${want64} = xfalse; then | |
7246 | . ${srcdir}/../bfd/config.bfd | |
7247 | fi | |
7248 | fi | |
20e95c23 DJ |
7249 | done |
7250 | ||
783e057b DJ |
7251 | if test x${all_targets} = xtrue; then |
7252 | ||
7253 | # We want all 64-bit targets if we either: | |
7254 | # - run on a 64-bit host or | |
7255 | # - already require 64-bit support for some other target or | |
7256 | # - the --enable-64-bit-bfd option was supplied | |
7257 | # Otherwise we only support all 32-bit targets. | |
7258 | # | |
7259 | # NOTE: This test must be in sync with the corresponding | |
7260 | # tests in BFD! | |
20e95c23 | 7261 | |
783e057b DJ |
7262 | if test x${want64} = xfalse; then |
7263 | echo "$as_me:$LINENO: checking for long" >&5 | |
c0993dbe UW |
7264 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
7265 | if test "${ac_cv_type_long+set}" = set; then | |
7266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7267 | else | |
7268 | cat >conftest.$ac_ext <<_ACEOF | |
7269 | /* confdefs.h. */ | |
7270 | _ACEOF | |
7271 | cat confdefs.h >>conftest.$ac_ext | |
7272 | cat >>conftest.$ac_ext <<_ACEOF | |
7273 | /* end confdefs.h. */ | |
7274 | $ac_includes_default | |
7275 | int | |
7276 | main () | |
7277 | { | |
7278 | if ((long *) 0) | |
7279 | return 0; | |
7280 | if (sizeof (long)) | |
7281 | return 0; | |
7282 | ; | |
7283 | return 0; | |
7284 | } | |
7285 | _ACEOF | |
7286 | rm -f conftest.$ac_objext | |
7287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7288 | (eval $ac_compile) 2>conftest.er1 | |
7289 | ac_status=$? | |
7290 | grep -v '^ *+' conftest.er1 >conftest.err | |
7291 | rm -f conftest.er1 | |
7292 | cat conftest.err >&5 | |
7293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7294 | (exit $ac_status); } && | |
7295 | { ac_try='test -z "$ac_c_werror_flag" | |
7296 | || test ! -s conftest.err' | |
7297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7298 | (eval $ac_try) 2>&5 | |
7299 | ac_status=$? | |
7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7301 | (exit $ac_status); }; } && | |
7302 | { ac_try='test -s conftest.$ac_objext' | |
7303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7304 | (eval $ac_try) 2>&5 | |
7305 | ac_status=$? | |
7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7307 | (exit $ac_status); }; }; then | |
7308 | ac_cv_type_long=yes | |
7309 | else | |
7310 | echo "$as_me: failed program was:" >&5 | |
7311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7312 | ||
7313 | ac_cv_type_long=no | |
7314 | fi | |
7315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7316 | fi | |
7317 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
7318 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
7319 | ||
7320 | echo "$as_me:$LINENO: checking size of long" >&5 | |
7321 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
7322 | if test "${ac_cv_sizeof_long+set}" = set; then | |
7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7324 | else | |
7325 | if test "$ac_cv_type_long" = yes; then | |
7326 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7327 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7328 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7329 | # This bug is HP SR number 8606223364. | |
7330 | if test "$cross_compiling" = yes; then | |
7331 | # Depending upon the size, compute the lo and hi bounds. | |
7332 | cat >conftest.$ac_ext <<_ACEOF | |
7333 | /* confdefs.h. */ | |
7334 | _ACEOF | |
7335 | cat confdefs.h >>conftest.$ac_ext | |
7336 | cat >>conftest.$ac_ext <<_ACEOF | |
7337 | /* end confdefs.h. */ | |
7338 | $ac_includes_default | |
7339 | int | |
7340 | main () | |
7341 | { | |
7342 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
7343 | test_array [0] = 0 | |
7344 | ||
7345 | ; | |
7346 | return 0; | |
7347 | } | |
7348 | _ACEOF | |
7349 | rm -f conftest.$ac_objext | |
7350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7351 | (eval $ac_compile) 2>conftest.er1 | |
7352 | ac_status=$? | |
7353 | grep -v '^ *+' conftest.er1 >conftest.err | |
7354 | rm -f conftest.er1 | |
7355 | cat conftest.err >&5 | |
7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357 | (exit $ac_status); } && | |
7358 | { ac_try='test -z "$ac_c_werror_flag" | |
7359 | || test ! -s conftest.err' | |
7360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7361 | (eval $ac_try) 2>&5 | |
7362 | ac_status=$? | |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); }; } && | |
7365 | { ac_try='test -s conftest.$ac_objext' | |
7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7367 | (eval $ac_try) 2>&5 | |
7368 | ac_status=$? | |
7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7370 | (exit $ac_status); }; }; then | |
7371 | ac_lo=0 ac_mid=0 | |
7372 | while :; do | |
7373 | cat >conftest.$ac_ext <<_ACEOF | |
7374 | /* confdefs.h. */ | |
7375 | _ACEOF | |
7376 | cat confdefs.h >>conftest.$ac_ext | |
7377 | cat >>conftest.$ac_ext <<_ACEOF | |
7378 | /* end confdefs.h. */ | |
7379 | $ac_includes_default | |
7380 | int | |
7381 | main () | |
7382 | { | |
7383 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7384 | test_array [0] = 0 | |
7385 | ||
7386 | ; | |
7387 | return 0; | |
7388 | } | |
7389 | _ACEOF | |
7390 | rm -f conftest.$ac_objext | |
7391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7392 | (eval $ac_compile) 2>conftest.er1 | |
7393 | ac_status=$? | |
7394 | grep -v '^ *+' conftest.er1 >conftest.err | |
7395 | rm -f conftest.er1 | |
7396 | cat conftest.err >&5 | |
7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7398 | (exit $ac_status); } && | |
7399 | { ac_try='test -z "$ac_c_werror_flag" | |
7400 | || test ! -s conftest.err' | |
7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7402 | (eval $ac_try) 2>&5 | |
7403 | ac_status=$? | |
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7405 | (exit $ac_status); }; } && | |
7406 | { ac_try='test -s conftest.$ac_objext' | |
7407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7408 | (eval $ac_try) 2>&5 | |
7409 | ac_status=$? | |
7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7411 | (exit $ac_status); }; }; then | |
7412 | ac_hi=$ac_mid; break | |
7413 | else | |
7414 | echo "$as_me: failed program was:" >&5 | |
7415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7416 | ||
7417 | ac_lo=`expr $ac_mid + 1` | |
7418 | if test $ac_lo -le $ac_mid; then | |
7419 | ac_lo= ac_hi= | |
7420 | break | |
7421 | fi | |
7422 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7423 | fi | |
7424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7425 | done | |
7426 | else | |
7427 | echo "$as_me: failed program was:" >&5 | |
7428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7429 | ||
7430 | cat >conftest.$ac_ext <<_ACEOF | |
7431 | /* confdefs.h. */ | |
7432 | _ACEOF | |
7433 | cat confdefs.h >>conftest.$ac_ext | |
7434 | cat >>conftest.$ac_ext <<_ACEOF | |
7435 | /* end confdefs.h. */ | |
7436 | $ac_includes_default | |
7437 | int | |
7438 | main () | |
7439 | { | |
7440 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
7441 | test_array [0] = 0 | |
7442 | ||
7443 | ; | |
7444 | return 0; | |
7445 | } | |
7446 | _ACEOF | |
7447 | rm -f conftest.$ac_objext | |
7448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7449 | (eval $ac_compile) 2>conftest.er1 | |
7450 | ac_status=$? | |
7451 | grep -v '^ *+' conftest.er1 >conftest.err | |
7452 | rm -f conftest.er1 | |
7453 | cat conftest.err >&5 | |
7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7455 | (exit $ac_status); } && | |
7456 | { ac_try='test -z "$ac_c_werror_flag" | |
7457 | || test ! -s conftest.err' | |
7458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7459 | (eval $ac_try) 2>&5 | |
7460 | ac_status=$? | |
7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7462 | (exit $ac_status); }; } && | |
7463 | { ac_try='test -s conftest.$ac_objext' | |
7464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7465 | (eval $ac_try) 2>&5 | |
7466 | ac_status=$? | |
7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7468 | (exit $ac_status); }; }; then | |
7469 | ac_hi=-1 ac_mid=-1 | |
7470 | while :; do | |
7471 | cat >conftest.$ac_ext <<_ACEOF | |
7472 | /* confdefs.h. */ | |
7473 | _ACEOF | |
7474 | cat confdefs.h >>conftest.$ac_ext | |
7475 | cat >>conftest.$ac_ext <<_ACEOF | |
7476 | /* end confdefs.h. */ | |
7477 | $ac_includes_default | |
7478 | int | |
7479 | main () | |
7480 | { | |
7481 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
7482 | test_array [0] = 0 | |
7483 | ||
7484 | ; | |
7485 | return 0; | |
7486 | } | |
7487 | _ACEOF | |
7488 | rm -f conftest.$ac_objext | |
7489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7490 | (eval $ac_compile) 2>conftest.er1 | |
7491 | ac_status=$? | |
7492 | grep -v '^ *+' conftest.er1 >conftest.err | |
7493 | rm -f conftest.er1 | |
7494 | cat conftest.err >&5 | |
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 | (exit $ac_status); } && | |
7497 | { ac_try='test -z "$ac_c_werror_flag" | |
7498 | || test ! -s conftest.err' | |
7499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7500 | (eval $ac_try) 2>&5 | |
7501 | ac_status=$? | |
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7503 | (exit $ac_status); }; } && | |
7504 | { ac_try='test -s conftest.$ac_objext' | |
7505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7506 | (eval $ac_try) 2>&5 | |
7507 | ac_status=$? | |
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7509 | (exit $ac_status); }; }; then | |
7510 | ac_lo=$ac_mid; break | |
7511 | else | |
7512 | echo "$as_me: failed program was:" >&5 | |
7513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7514 | ||
7515 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7516 | if test $ac_mid -le $ac_hi; then | |
7517 | ac_lo= ac_hi= | |
7518 | break | |
7519 | fi | |
7520 | ac_mid=`expr 2 '*' $ac_mid` | |
7521 | fi | |
7522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7523 | done | |
7524 | else | |
7525 | echo "$as_me: failed program was:" >&5 | |
7526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7527 | ||
7528 | ac_lo= ac_hi= | |
7529 | fi | |
7530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7531 | fi | |
7532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7533 | # Binary search between lo and hi bounds. | |
7534 | while test "x$ac_lo" != "x$ac_hi"; do | |
7535 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7536 | cat >conftest.$ac_ext <<_ACEOF | |
7537 | /* confdefs.h. */ | |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
7542 | $ac_includes_default | |
7543 | int | |
7544 | main () | |
7545 | { | |
7546 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7547 | test_array [0] = 0 | |
7548 | ||
7549 | ; | |
7550 | return 0; | |
7551 | } | |
7552 | _ACEOF | |
7553 | rm -f conftest.$ac_objext | |
7554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7555 | (eval $ac_compile) 2>conftest.er1 | |
7556 | ac_status=$? | |
7557 | grep -v '^ *+' conftest.er1 >conftest.err | |
7558 | rm -f conftest.er1 | |
7559 | cat conftest.err >&5 | |
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7561 | (exit $ac_status); } && | |
7562 | { ac_try='test -z "$ac_c_werror_flag" | |
7563 | || test ! -s conftest.err' | |
7564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7565 | (eval $ac_try) 2>&5 | |
7566 | ac_status=$? | |
7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7568 | (exit $ac_status); }; } && | |
7569 | { ac_try='test -s conftest.$ac_objext' | |
7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7571 | (eval $ac_try) 2>&5 | |
7572 | ac_status=$? | |
7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7574 | (exit $ac_status); }; }; then | |
7575 | ac_hi=$ac_mid | |
7576 | else | |
7577 | echo "$as_me: failed program was:" >&5 | |
7578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7579 | ||
7580 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7581 | fi | |
7582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7583 | done | |
7584 | case $ac_lo in | |
7585 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
d5af19ba DJ |
7586 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7587 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7588 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
c0993dbe UW |
7589 | See \`config.log' for more details." >&5 |
7590 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7591 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7592 | { (exit 1); exit 1; }; }; } ;; |
c0993dbe UW |
7593 | esac |
7594 | else | |
7595 | if test "$cross_compiling" = yes; then | |
d5af19ba DJ |
7596 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7597 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7598 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
c0993dbe UW |
7599 | See \`config.log' for more details." >&5 |
7600 | echo "$as_me: error: cannot run test program while cross compiling | |
7601 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7602 | { (exit 1); exit 1; }; }; } |
c0993dbe UW |
7603 | else |
7604 | cat >conftest.$ac_ext <<_ACEOF | |
7605 | /* confdefs.h. */ | |
7606 | _ACEOF | |
7607 | cat confdefs.h >>conftest.$ac_ext | |
7608 | cat >>conftest.$ac_ext <<_ACEOF | |
7609 | /* end confdefs.h. */ | |
7610 | $ac_includes_default | |
7611 | long longval () { return (long) (sizeof (long)); } | |
7612 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
7613 | #include <stdio.h> | |
7614 | #include <stdlib.h> | |
7615 | int | |
7616 | main () | |
7617 | { | |
7618 | ||
7619 | FILE *f = fopen ("conftest.val", "w"); | |
7620 | if (! f) | |
7621 | exit (1); | |
7622 | if (((long) (sizeof (long))) < 0) | |
7623 | { | |
7624 | long i = longval (); | |
7625 | if (i != ((long) (sizeof (long)))) | |
7626 | exit (1); | |
7627 | fprintf (f, "%ld\n", i); | |
7628 | } | |
7629 | else | |
7630 | { | |
7631 | unsigned long i = ulongval (); | |
7632 | if (i != ((long) (sizeof (long)))) | |
7633 | exit (1); | |
7634 | fprintf (f, "%lu\n", i); | |
7635 | } | |
7636 | exit (ferror (f) || fclose (f) != 0); | |
7637 | ||
7638 | ; | |
7639 | return 0; | |
7640 | } | |
7641 | _ACEOF | |
7642 | rm -f conftest$ac_exeext | |
7643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7644 | (eval $ac_link) 2>&5 | |
7645 | ac_status=$? | |
7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7649 | (eval $ac_try) 2>&5 | |
7650 | ac_status=$? | |
7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7652 | (exit $ac_status); }; }; then | |
7653 | ac_cv_sizeof_long=`cat conftest.val` | |
7654 | else | |
7655 | echo "$as_me: program exited with status $ac_status" >&5 | |
7656 | echo "$as_me: failed program was:" >&5 | |
7657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7658 | ||
7659 | ( exit $ac_status ) | |
d5af19ba DJ |
7660 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7661 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
c0993dbe UW |
7662 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
7663 | See \`config.log' for more details." >&5 | |
7664 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7665 | See \`config.log' for more details." >&2;} | |
d5af19ba | 7666 | { (exit 1); exit 1; }; }; } |
c0993dbe UW |
7667 | fi |
7668 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7669 | fi | |
7670 | fi | |
7671 | rm -f conftest.val | |
7672 | else | |
7673 | ac_cv_sizeof_long=0 | |
7674 | fi | |
7675 | fi | |
7676 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7677 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7678 | cat >>confdefs.h <<_ACEOF | |
7679 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7680 | _ACEOF | |
7681 | ||
7682 | ||
7683 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
7684 | want64=true | |
7685 | fi | |
7686 | fi | |
7687 | if test x${want64} = xtrue; then | |
7688 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' | |
7689 | else | |
7690 | TARGET_OBS='$(ALL_TARGET_OBS)' | |
7691 | fi | |
7692 | fi | |
7693 | ||
7694 | ||
7695 | ||
7696 | # For other settings, only the main target counts. | |
7697 | gdb_sim= | |
7698 | gdb_osabi= | |
7699 | build_gdbserver= | |
7700 | targ=$target; . ${srcdir}/configure.tgt | |
7701 | ||
7702 | # Fetch the default architecture and default target vector from BFD. | |
7703 | targ=$target; . $srcdir/../bfd/config.bfd | |
7704 | ||
7705 | # We only want the first architecture, so strip off the others if | |
7706 | # there is more than one. | |
7707 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
7708 | ||
7709 | if test "x$targ_archs" != x; then | |
7710 | ||
7711 | cat >>confdefs.h <<_ACEOF | |
7712 | #define DEFAULT_BFD_ARCH $targ_archs | |
7713 | _ACEOF | |
7714 | ||
7715 | fi | |
7716 | if test "x$targ_defvec" != x; then | |
7717 | ||
7718 | cat >>confdefs.h <<_ACEOF | |
7719 | #define DEFAULT_BFD_VEC $targ_defvec | |
7720 | _ACEOF | |
7721 | ||
7722 | fi | |
7723 | ||
c0993dbe UW |
7724 | # The CLI cannot be disabled yet, but may be in the future. |
7725 | ||
7726 | # Enable CLI. | |
7727 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
7728 | if test "${enable_gdbcli+set}" = set; then | |
7729 | enableval="$enable_gdbcli" | |
7730 | case $enableval in | |
7731 | yes) | |
7732 | ;; | |
7733 | no) | |
7734 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
7735 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
7736 | { (exit 1); exit 1; }; } ;; | |
7737 | *) | |
7738 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
7739 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
7740 | { (exit 1); exit 1; }; } ;; | |
7741 | esac | |
7742 | else | |
7743 | enable_gdbcli=yes | |
7744 | fi; | |
7745 | if test x"$enable_gdbcli" = xyes; then | |
7746 | if test -d $srcdir/cli; then | |
7747 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
7748 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
7749 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
7750 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
7751 | fi | |
7752 | fi | |
7753 | ||
7754 | # Enable MI. | |
7755 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
7756 | if test "${enable_gdbmi+set}" = set; then | |
7757 | enableval="$enable_gdbmi" | |
7758 | case $enableval in | |
7759 | yes | no) | |
7760 | ;; | |
7761 | *) | |
7762 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
7763 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
7764 | { (exit 1); exit 1; }; } ;; | |
7765 | esac | |
7766 | else | |
7767 | enable_gdbmi=yes | |
7768 | fi; | |
7769 | if test x"$enable_gdbmi" = xyes; then | |
7770 | if test -d $srcdir/mi; then | |
7771 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
7772 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
7773 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
7774 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
7775 | fi | |
7776 | fi | |
7777 | ||
7778 | # Enable TUI. | |
7779 | # Check whether --enable-tui or --disable-tui was given. | |
7780 | if test "${enable_tui+set}" = set; then | |
7781 | enableval="$enable_tui" | |
7782 | case $enableval in | |
3ca64bd3 | 7783 | yes | no | auto) |
c0993dbe UW |
7784 | ;; |
7785 | *) | |
7786 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
7787 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
7788 | { (exit 1); exit 1; }; } ;; | |
7789 | esac | |
7790 | else | |
3ca64bd3 | 7791 | enable_tui=auto |
c0993dbe UW |
7792 | fi; |
7793 | ||
7794 | # Enable gdbtk. | |
7795 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
7796 | if test "${enable_gdbtk+set}" = set; then | |
7797 | enableval="$enable_gdbtk" | |
7798 | case $enableval in | |
7799 | yes | no) | |
7800 | ;; | |
7801 | *) | |
7802 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
7803 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
7804 | { (exit 1); exit 1; }; } ;; | |
7805 | esac | |
7806 | else | |
5062cc19 | 7807 | if test -d $srcdir/gdbtk; then |
c0993dbe UW |
7808 | enable_gdbtk=yes |
7809 | else | |
7810 | enable_gdbtk=no | |
7811 | fi | |
7812 | fi; | |
7813 | # We unconditionally disable gdbtk tests on selected platforms. | |
7814 | case $host_os in | |
7815 | go32* | windows*) | |
7816 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
7817 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
7818 | enable_gdbtk=no ;; | |
7819 | esac | |
7820 | ||
7821 | # Libunwind support. | |
bec39cab | 7822 | |
b4e70030 | 7823 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 7824 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
7825 | withval="$with_libunwind" |
7826 | case "${withval}" in | |
bec39cab AC |
7827 | yes) enable_libunwind=yes ;; |
7828 | no) enable_libunwind=no ;; | |
7829 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
7830 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
7831 | { (exit 1); exit 1; }; } ;; | |
7832 | esac | |
7833 | else | |
7834 | ||
7835 | ||
a9322a30 TT |
7836 | |
7837 | for ac_header in libunwind.h libunwind-ia64.h | |
bec39cab AC |
7838 | do |
7839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7845 | fi | |
b4e70030 JB |
7846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7848 | else |
7849 | # Is the header compilable? | |
b4e70030 JB |
7850 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7851 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7852 | cat >conftest.$ac_ext <<_ACEOF |
7853 | /* confdefs.h. */ | |
7854 | _ACEOF | |
7855 | cat confdefs.h >>conftest.$ac_ext | |
7856 | cat >>conftest.$ac_ext <<_ACEOF | |
7857 | /* end confdefs.h. */ | |
7858 | $ac_includes_default | |
7859 | #include <$ac_header> | |
7860 | _ACEOF | |
7861 | rm -f conftest.$ac_objext | |
7862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7863 | (eval $ac_compile) 2>conftest.er1 | |
7864 | ac_status=$? | |
7865 | grep -v '^ *+' conftest.er1 >conftest.err | |
7866 | rm -f conftest.er1 | |
7867 | cat conftest.err >&5 | |
7868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7869 | (exit $ac_status); } && | |
b4e70030 JB |
7870 | { ac_try='test -z "$ac_c_werror_flag" |
7871 | || test ! -s conftest.err' | |
bec39cab AC |
7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7873 | (eval $ac_try) 2>&5 | |
7874 | ac_status=$? | |
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7876 | (exit $ac_status); }; } && | |
7877 | { ac_try='test -s conftest.$ac_objext' | |
7878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7879 | (eval $ac_try) 2>&5 | |
7880 | ac_status=$? | |
7881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7882 | (exit $ac_status); }; }; then | |
7883 | ac_header_compiler=yes | |
7884 | else | |
7885 | echo "$as_me: failed program was:" >&5 | |
7886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7887 | ||
b4e70030 | 7888 | ac_header_compiler=no |
bec39cab AC |
7889 | fi |
7890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7891 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7892 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7893 | |
7894 | # Is the header present? | |
b4e70030 JB |
7895 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7896 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7897 | cat >conftest.$ac_ext <<_ACEOF |
7898 | /* confdefs.h. */ | |
7899 | _ACEOF | |
7900 | cat confdefs.h >>conftest.$ac_ext | |
7901 | cat >>conftest.$ac_ext <<_ACEOF | |
7902 | /* end confdefs.h. */ | |
7903 | #include <$ac_header> | |
7904 | _ACEOF | |
7905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7907 | ac_status=$? | |
7908 | grep -v '^ *+' conftest.er1 >conftest.err | |
7909 | rm -f conftest.er1 | |
7910 | cat conftest.err >&5 | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 | (exit $ac_status); } >/dev/null; then | |
7913 | if test -s conftest.err; then | |
7914 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7915 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7916 | else | |
7917 | ac_cpp_err= | |
7918 | fi | |
7919 | else | |
7920 | ac_cpp_err=yes | |
7921 | fi | |
7922 | if test -z "$ac_cpp_err"; then | |
7923 | ac_header_preproc=yes | |
7924 | else | |
7925 | echo "$as_me: failed program was:" >&5 | |
7926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7927 | ||
7928 | ac_header_preproc=no | |
7929 | fi | |
7930 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7931 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7932 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7933 | |
7934 | # So? What about this header? | |
7935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7936 | yes:no: ) | |
7937 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7938 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7940 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7941 | ac_header_preproc=yes | |
7942 | ;; | |
7943 | no:yes:* ) | |
7944 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7945 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7946 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7947 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7948 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7949 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7950 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7951 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7954 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7955 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7956 | ( |
7957 | cat <<\_ASBOX | |
7958 | ## ------------------------------------------ ## | |
7959 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7960 | ## ------------------------------------------ ## | |
7961 | _ASBOX | |
7962 | ) | | |
7963 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7964 | ;; |
7965 | esac | |
b4e70030 JB |
7966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7970 | else | |
7971 | eval "$as_ac_Header=\$ac_header_preproc" | |
7972 | fi | |
b4e70030 JB |
7973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7975 | |
7976 | fi | |
7977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7978 | cat >>confdefs.h <<_ACEOF | |
7979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7980 | _ACEOF | |
7981 | ||
7982 | fi | |
7983 | ||
7984 | done | |
7985 | ||
a9322a30 TT |
7986 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then |
7987 | enable_libunwind=yes; | |
7988 | fi | |
7989 | ||
7990 | fi; | |
7991 | ||
7992 | if test x"$enable_libunwind" = xyes; then | |
7993 | ||
bec39cab | 7994 | |
a9322a30 | 7995 | for ac_header in libunwind.h libunwind-ia64.h |
bec39cab AC |
7996 | do |
7997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8003 | fi | |
b4e70030 JB |
8004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8006 | else |
8007 | # Is the header compilable? | |
b4e70030 JB |
8008 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8009 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8010 | cat >conftest.$ac_ext <<_ACEOF |
8011 | /* confdefs.h. */ | |
8012 | _ACEOF | |
8013 | cat confdefs.h >>conftest.$ac_ext | |
8014 | cat >>conftest.$ac_ext <<_ACEOF | |
8015 | /* end confdefs.h. */ | |
8016 | $ac_includes_default | |
8017 | #include <$ac_header> | |
8018 | _ACEOF | |
8019 | rm -f conftest.$ac_objext | |
8020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8021 | (eval $ac_compile) 2>conftest.er1 | |
8022 | ac_status=$? | |
8023 | grep -v '^ *+' conftest.er1 >conftest.err | |
8024 | rm -f conftest.er1 | |
8025 | cat conftest.err >&5 | |
8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8027 | (exit $ac_status); } && | |
b4e70030 JB |
8028 | { ac_try='test -z "$ac_c_werror_flag" |
8029 | || test ! -s conftest.err' | |
bec39cab AC |
8030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8031 | (eval $ac_try) 2>&5 | |
8032 | ac_status=$? | |
8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8034 | (exit $ac_status); }; } && | |
8035 | { ac_try='test -s conftest.$ac_objext' | |
8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8037 | (eval $ac_try) 2>&5 | |
8038 | ac_status=$? | |
8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8040 | (exit $ac_status); }; }; then | |
8041 | ac_header_compiler=yes | |
8042 | else | |
8043 | echo "$as_me: failed program was:" >&5 | |
8044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8045 | ||
b4e70030 | 8046 | ac_header_compiler=no |
bec39cab AC |
8047 | fi |
8048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8049 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8050 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8051 | |
8052 | # Is the header present? | |
b4e70030 JB |
8053 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8055 | cat >conftest.$ac_ext <<_ACEOF |
8056 | /* confdefs.h. */ | |
8057 | _ACEOF | |
8058 | cat confdefs.h >>conftest.$ac_ext | |
8059 | cat >>conftest.$ac_ext <<_ACEOF | |
8060 | /* end confdefs.h. */ | |
8061 | #include <$ac_header> | |
8062 | _ACEOF | |
8063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8065 | ac_status=$? | |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8070 | (exit $ac_status); } >/dev/null; then | |
8071 | if test -s conftest.err; then | |
8072 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8074 | else | |
8075 | ac_cpp_err= | |
8076 | fi | |
8077 | else | |
8078 | ac_cpp_err=yes | |
8079 | fi | |
8080 | if test -z "$ac_cpp_err"; then | |
8081 | ac_header_preproc=yes | |
8082 | else | |
8083 | echo "$as_me: failed program was:" >&5 | |
8084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8085 | ||
8086 | ac_header_preproc=no | |
8087 | fi | |
8088 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
8089 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8090 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8091 | |
8092 | # So? What about this header? | |
8093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8094 | yes:no: ) | |
8095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8099 | ac_header_preproc=yes | |
8100 | ;; | |
8101 | no:yes:* ) | |
8102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8114 | ( |
8115 | cat <<\_ASBOX | |
8116 | ## ------------------------------------------ ## | |
8117 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8118 | ## ------------------------------------------ ## | |
8119 | _ASBOX | |
8120 | ) | | |
8121 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8122 | ;; |
8123 | esac | |
b4e70030 JB |
8124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8128 | else | |
8129 | eval "$as_ac_Header=\$ac_header_preproc" | |
8130 | fi | |
b4e70030 JB |
8131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8133 | |
8134 | fi | |
8135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8136 | cat >>confdefs.h <<_ACEOF | |
8137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8138 | _ACEOF | |
8139 | ||
8140 | fi | |
8141 | ||
8142 | done | |
8143 | ||
bec39cab | 8144 | |
a9322a30 TT |
8145 | cat >>confdefs.h <<\_ACEOF |
8146 | #define HAVE_LIBUNWIND 1 | |
8147 | _ACEOF | |
8148 | ||
8149 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
8150 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
8151 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
8152 | fi | |
8153 | ||
cb01cfba JB |
8154 | opt_curses=no |
8155 | ||
8156 | # Check whether --with-curses or --without-curses was given. | |
8157 | if test "${with_curses+set}" = set; then | |
8158 | withval="$with_curses" | |
8159 | opt_curses=$withval | |
8160 | fi; | |
8161 | ||
76a39ba7 | 8162 | prefer_curses=no |
cb01cfba | 8163 | if test "$opt_curses" = "yes"; then |
76a39ba7 | 8164 | prefer_curses=yes |
cb01cfba JB |
8165 | fi |
8166 | ||
a9322a30 TT |
8167 | # Profiling support. |
8168 | # Check whether --enable-profiling or --disable-profiling was given. | |
8169 | if test "${enable_profiling+set}" = set; then | |
8170 | enableval="$enable_profiling" | |
8171 | case $enableval in | |
8172 | yes | no) | |
8173 | ;; | |
8174 | *) | |
8175 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
8176 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
8177 | { (exit 1); exit 1; }; } ;; | |
8178 | esac | |
8179 | else | |
8180 | enable_profiling=no | |
b4e70030 | 8181 | fi; |
bec39cab | 8182 | |
bec39cab | 8183 | |
a9322a30 TT |
8184 | |
8185 | for ac_func in monstartup _mcleanup | |
bec39cab | 8186 | do |
a9322a30 TT |
8187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8190 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 8192 | else |
a9322a30 | 8193 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
8194 | /* confdefs.h. */ |
8195 | _ACEOF | |
8196 | cat confdefs.h >>conftest.$ac_ext | |
8197 | cat >>conftest.$ac_ext <<_ACEOF | |
8198 | /* end confdefs.h. */ | |
a9322a30 TT |
8199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8201 | #define $ac_func innocuous_$ac_func | |
8202 | ||
8203 | /* System header to define __stub macros and hopefully few prototypes, | |
8204 | which can conflict with char $ac_func (); below. | |
8205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8206 | <limits.h> exists even on freestanding compilers. */ | |
8207 | ||
8208 | #ifdef __STDC__ | |
8209 | # include <limits.h> | |
8210 | #else | |
8211 | # include <assert.h> | |
8212 | #endif | |
8213 | ||
8214 | #undef $ac_func | |
8215 | ||
8216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8217 | #ifdef __cplusplus | |
8218 | extern "C" | |
8219 | { | |
8220 | #endif | |
8221 | /* We use char because int might match the return type of a gcc2 | |
8222 | builtin and then its argument prototype would still apply. */ | |
8223 | char $ac_func (); | |
8224 | /* The GNU C library defines this for functions which it implements | |
8225 | to always fail with ENOSYS. Some functions are actually named | |
8226 | something starting with __ and the normal name is an alias. */ | |
8227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8228 | choke me | |
8229 | #else | |
8230 | char (*f) () = $ac_func; | |
8231 | #endif | |
8232 | #ifdef __cplusplus | |
8233 | } | |
8234 | #endif | |
8235 | ||
8236 | int | |
8237 | main () | |
8238 | { | |
8239 | return f != $ac_func; | |
8240 | ; | |
8241 | return 0; | |
8242 | } | |
bec39cab | 8243 | _ACEOF |
a9322a30 TT |
8244 | rm -f conftest.$ac_objext conftest$ac_exeext |
8245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8246 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
8247 | ac_status=$? |
8248 | grep -v '^ *+' conftest.er1 >conftest.err | |
8249 | rm -f conftest.er1 | |
8250 | cat conftest.err >&5 | |
8251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8252 | (exit $ac_status); } && | |
b4e70030 JB |
8253 | { ac_try='test -z "$ac_c_werror_flag" |
8254 | || test ! -s conftest.err' | |
bec39cab AC |
8255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8256 | (eval $ac_try) 2>&5 | |
8257 | ac_status=$? | |
8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8259 | (exit $ac_status); }; } && | |
a9322a30 | 8260 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8262 | (eval $ac_try) 2>&5 | |
8263 | ac_status=$? | |
8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8265 | (exit $ac_status); }; }; then | |
a9322a30 | 8266 | eval "$as_ac_var=yes" |
bec39cab AC |
8267 | else |
8268 | echo "$as_me: failed program was:" >&5 | |
8269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8270 | ||
a9322a30 | 8271 | eval "$as_ac_var=no" |
bec39cab | 8272 | fi |
a9322a30 TT |
8273 | rm -f conftest.err conftest.$ac_objext \ |
8274 | conftest$ac_exeext conftest.$ac_ext | |
bec39cab | 8275 | fi |
a9322a30 TT |
8276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8277 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8278 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
bec39cab | 8279 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 8280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
bec39cab AC |
8281 | _ACEOF |
8282 | ||
8283 | fi | |
bec39cab AC |
8284 | done |
8285 | ||
a9322a30 TT |
8286 | echo "$as_me:$LINENO: checking for _etext" >&5 |
8287 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
8288 | if test "${ac_cv_var__etext+set}" = set; then | |
bec39cab | 8289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 8290 | else |
a9322a30 | 8291 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
8292 | /* confdefs.h. */ |
8293 | _ACEOF | |
8294 | cat confdefs.h >>conftest.$ac_ext | |
8295 | cat >>conftest.$ac_ext <<_ACEOF | |
8296 | /* end confdefs.h. */ | |
a9322a30 TT |
8297 | #include <stdlib.h> |
8298 | extern char _etext; | |
8299 | ||
8300 | int | |
8301 | main () | |
8302 | { | |
8303 | free (&_etext); | |
8304 | ; | |
8305 | return 0; | |
8306 | } | |
bec39cab | 8307 | _ACEOF |
a9322a30 TT |
8308 | rm -f conftest.$ac_objext conftest$ac_exeext |
8309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8310 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
8311 | ac_status=$? |
8312 | grep -v '^ *+' conftest.er1 >conftest.err | |
8313 | rm -f conftest.er1 | |
8314 | cat conftest.err >&5 | |
8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8316 | (exit $ac_status); } && | |
b4e70030 JB |
8317 | { ac_try='test -z "$ac_c_werror_flag" |
8318 | || test ! -s conftest.err' | |
bec39cab AC |
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8320 | (eval $ac_try) 2>&5 | |
8321 | ac_status=$? | |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 | (exit $ac_status); }; } && | |
a9322a30 | 8324 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8326 | (eval $ac_try) 2>&5 | |
8327 | ac_status=$? | |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8329 | (exit $ac_status); }; }; then | |
a9322a30 | 8330 | ac_cv_var__etext=yes |
bec39cab AC |
8331 | else |
8332 | echo "$as_me: failed program was:" >&5 | |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8334 | ||
a9322a30 | 8335 | ac_cv_var__etext=no |
bec39cab | 8336 | fi |
a9322a30 TT |
8337 | rm -f conftest.err conftest.$ac_objext \ |
8338 | conftest$ac_exeext conftest.$ac_ext | |
bec39cab | 8339 | fi |
a9322a30 TT |
8340 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
8341 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
8342 | if test $ac_cv_var__etext = yes; then | |
60ca704f SE |
8343 | |
8344 | cat >>confdefs.h <<\_ACEOF | |
a9322a30 | 8345 | #define HAVE__ETEXT 1 |
bec39cab AC |
8346 | _ACEOF |
8347 | ||
bec39cab | 8348 | fi |
a9322a30 TT |
8349 | echo "$as_me:$LINENO: checking for etext" >&5 |
8350 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 | |
8351 | if test "${ac_cv_var_etext+set}" = set; then | |
bec39cab AC |
8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8353 | else | |
8354 | cat >conftest.$ac_ext <<_ACEOF | |
8355 | /* confdefs.h. */ | |
8356 | _ACEOF | |
8357 | cat confdefs.h >>conftest.$ac_ext | |
8358 | cat >>conftest.$ac_ext <<_ACEOF | |
8359 | /* end confdefs.h. */ | |
a9322a30 TT |
8360 | #include <stdlib.h> |
8361 | extern char etext; | |
bec39cab AC |
8362 | |
8363 | int | |
8364 | main () | |
8365 | { | |
a9322a30 | 8366 | free (&etext); |
bec39cab AC |
8367 | ; |
8368 | return 0; | |
8369 | } | |
8370 | _ACEOF | |
8371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8373 | (eval $ac_link) 2>conftest.er1 | |
8374 | ac_status=$? | |
8375 | grep -v '^ *+' conftest.er1 >conftest.err | |
8376 | rm -f conftest.er1 | |
8377 | cat conftest.err >&5 | |
8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8379 | (exit $ac_status); } && | |
b4e70030 JB |
8380 | { ac_try='test -z "$ac_c_werror_flag" |
8381 | || test ! -s conftest.err' | |
bec39cab AC |
8382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8383 | (eval $ac_try) 2>&5 | |
8384 | ac_status=$? | |
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8386 | (exit $ac_status); }; } && | |
8387 | { ac_try='test -s conftest$ac_exeext' | |
8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8389 | (eval $ac_try) 2>&5 | |
8390 | ac_status=$? | |
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8392 | (exit $ac_status); }; }; then | |
a9322a30 | 8393 | ac_cv_var_etext=yes |
bec39cab AC |
8394 | else |
8395 | echo "$as_me: failed program was:" >&5 | |
8396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8397 | ||
a9322a30 | 8398 | ac_cv_var_etext=no |
bec39cab AC |
8399 | fi |
8400 | rm -f conftest.err conftest.$ac_objext \ | |
8401 | conftest$ac_exeext conftest.$ac_ext | |
8402 | fi | |
a9322a30 TT |
8403 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 |
8404 | echo "${ECHO_T}$ac_cv_var_etext" >&6 | |
8405 | if test $ac_cv_var_etext = yes; then | |
8406 | ||
8407 | cat >>confdefs.h <<\_ACEOF | |
8408 | #define HAVE_ETEXT 1 | |
bec39cab AC |
8409 | _ACEOF |
8410 | ||
8411 | fi | |
a9322a30 TT |
8412 | if test "$enable_profiling" = yes ; then |
8413 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
8414 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
8415 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
8416 | { (exit 1); exit 1; }; } | |
8417 | fi | |
8418 | PROFILE_CFLAGS=-pg | |
8419 | OLD_CFLAGS="$CFLAGS" | |
8420 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
bec39cab | 8421 | |
a9322a30 TT |
8422 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
8423 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
8424 | if test "${ac_cv_cc_supports_pg+set}" = set; then | |
bec39cab AC |
8425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8426 | else | |
8427 | cat >conftest.$ac_ext <<_ACEOF | |
8428 | /* confdefs.h. */ | |
8429 | _ACEOF | |
8430 | cat confdefs.h >>conftest.$ac_ext | |
8431 | cat >>conftest.$ac_ext <<_ACEOF | |
8432 | /* end confdefs.h. */ | |
bec39cab AC |
8433 | |
8434 | int | |
8435 | main () | |
8436 | { | |
a9322a30 | 8437 | int x; |
bec39cab AC |
8438 | ; |
8439 | return 0; | |
8440 | } | |
8441 | _ACEOF | |
a9322a30 TT |
8442 | rm -f conftest.$ac_objext |
8443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8444 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
8445 | ac_status=$? |
8446 | grep -v '^ *+' conftest.er1 >conftest.err | |
8447 | rm -f conftest.er1 | |
8448 | cat conftest.err >&5 | |
8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8450 | (exit $ac_status); } && | |
b4e70030 JB |
8451 | { ac_try='test -z "$ac_c_werror_flag" |
8452 | || test ! -s conftest.err' | |
bec39cab AC |
8453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8454 | (eval $ac_try) 2>&5 | |
8455 | ac_status=$? | |
8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8457 | (exit $ac_status); }; } && | |
a9322a30 | 8458 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8460 | (eval $ac_try) 2>&5 | |
8461 | ac_status=$? | |
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8463 | (exit $ac_status); }; }; then | |
a9322a30 | 8464 | ac_cv_cc_supports_pg=yes |
bec39cab AC |
8465 | else |
8466 | echo "$as_me: failed program was:" >&5 | |
8467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8468 | ||
a9322a30 | 8469 | ac_cv_cc_supports_pg=no |
bec39cab | 8470 | fi |
a9322a30 | 8471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 8472 | fi |
a9322a30 TT |
8473 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
8474 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab | 8475 | |
a9322a30 TT |
8476 | if test $ac_cv_cc_supports_pg = no; then |
8477 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
8478 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
8479 | { (exit 1); exit 1; }; } | |
8480 | fi | |
bec39cab | 8481 | |
a9322a30 | 8482 | CFLAGS="$OLD_CFLAGS" |
bec39cab AC |
8483 | fi |
8484 | ||
c16158bc JM |
8485 | |
8486 | ||
8487 | # Check whether --with-pkgversion or --without-pkgversion was given. | |
8488 | if test "${with_pkgversion+set}" = set; then | |
8489 | withval="$with_pkgversion" | |
8490 | case "$withval" in | |
8491 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
8492 | echo "$as_me: error: package version not specified" >&2;} | |
8493 | { (exit 1); exit 1; }; } ;; | |
8494 | no) PKGVERSION= ;; | |
8495 | *) PKGVERSION="($withval) " ;; | |
8496 | esac | |
8497 | else | |
8498 | PKGVERSION="(GDB) " | |
8499 | ||
8500 | fi; | |
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | # Check whether --with-bugurl or --without-bugurl was given. | |
8506 | if test "${with_bugurl+set}" = set; then | |
8507 | withval="$with_bugurl" | |
8508 | case "$withval" in | |
8509 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
8510 | echo "$as_me: error: bug URL not specified" >&2;} | |
8511 | { (exit 1); exit 1; }; } ;; | |
8512 | no) BUGURL= | |
8513 | ;; | |
8514 | *) BUGURL="$withval" | |
8515 | ;; | |
8516 | esac | |
8517 | else | |
8518 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
8519 | ||
8520 | fi; | |
8521 | case ${BUGURL} in | |
8522 | "") | |
8523 | REPORT_BUGS_TO= | |
8524 | REPORT_BUGS_TEXI= | |
8525 | ;; | |
8526 | *) | |
8527 | REPORT_BUGS_TO="<$BUGURL>" | |
8528 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
8529 | ;; | |
8530 | esac; | |
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | cat >>confdefs.h <<_ACEOF | |
8536 | #define PKGVERSION "$PKGVERSION" | |
8537 | _ACEOF | |
8538 | ||
8539 | ||
8540 | cat >>confdefs.h <<_ACEOF | |
8541 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
8542 | _ACEOF | |
8543 | ||
8544 | ||
bec39cab AC |
8545 | # --------------------- # |
8546 | # Checks for programs. # | |
8547 | # --------------------- # | |
8548 | ||
8549 | for ac_prog in gawk mawk nawk awk | |
8550 | do | |
8551 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8552 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8555 | if test "${ac_cv_prog_AWK+set}" = set; then |
8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8557 | else | |
8558 | if test -n "$AWK"; then | |
8559 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
8560 | else | |
8561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8562 | for as_dir in $PATH | |
8563 | do | |
8564 | IFS=$as_save_IFS | |
8565 | test -z "$as_dir" && as_dir=. | |
8566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8568 | ac_cv_prog_AWK="$ac_prog" |
8569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8570 | break 2 | |
8571 | fi | |
8572 | done | |
8573 | done | |
8574 | ||
8575 | fi | |
8576 | fi | |
8577 | AWK=$ac_cv_prog_AWK | |
8578 | if test -n "$AWK"; then | |
b4e70030 JB |
8579 | echo "$as_me:$LINENO: result: $AWK" >&5 |
8580 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 8581 | else |
b4e70030 JB |
8582 | echo "$as_me:$LINENO: result: no" >&5 |
8583 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8584 | fi |
8585 | ||
8586 | test -n "$AWK" && break | |
8587 | done | |
8588 | ||
8589 | # Find a good install program. We prefer a C program (faster), | |
8590 | # so one script is as good as another. But avoid the broken or | |
8591 | # incompatible versions: | |
8592 | # SysV /etc/install, /usr/sbin/install | |
8593 | # SunOS /usr/etc/install | |
8594 | # IRIX /sbin/install | |
8595 | # AIX /bin/install | |
8596 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
8597 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8598 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8599 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8600 | # OS/2's system install, which has a completely different semantic | |
8601 | # ./install, which can be erroneously created by make from ./install.sh. | |
85541719 | 8602 | # Reject install programs that cannot install multiple files. |
b4e70030 JB |
8603 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8604 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
8605 | if test -z "$INSTALL"; then |
8606 | if test "${ac_cv_path_install+set}" = set; then | |
8607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8608 | else | |
8609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8610 | for as_dir in $PATH | |
8611 | do | |
8612 | IFS=$as_save_IFS | |
8613 | test -z "$as_dir" && as_dir=. | |
8614 | # Account for people who put trailing slashes in PATH elements. | |
8615 | case $as_dir/ in | |
8616 | ./ | .// | /cC/* | \ | |
8617 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8618 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8619 | /usr/ucb/* ) ;; | |
c906108c | 8620 | *) |
bec39cab AC |
8621 | # OSF1 and SCO ODT 3.0 have their own names for install. |
8622 | # Don't use installbsd from OSF since it installs stuff as root | |
8623 | # by default. | |
8624 | for ac_prog in ginstall scoinst install; do | |
8625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8626 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
8627 | if test $ac_prog = install && |
8628 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8629 | # AIX install. It has an incompatible calling convention. | |
8630 | : | |
8631 | elif test $ac_prog = install && | |
8632 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8633 | # program-specific install script used by HP pwplus--don't use. | |
8634 | : | |
8635 | else | |
85541719 DE |
8636 | rm -rf conftest.one conftest.two conftest.dir |
8637 | echo one > conftest.one | |
8638 | echo two > conftest.two | |
8639 | mkdir conftest.dir | |
8640 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
8641 | test -s conftest.one && test -s conftest.two && | |
8642 | test -s conftest.dir/conftest.one && | |
8643 | test -s conftest.dir/conftest.two | |
8644 | then | |
8645 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
8646 | break 3 | |
8647 | fi | |
bec39cab AC |
8648 | fi |
8649 | fi | |
8650 | done | |
8651 | done | |
8652 | ;; | |
c906108c | 8653 | esac |
bec39cab AC |
8654 | done |
8655 | ||
85541719 | 8656 | rm -rf conftest.one conftest.two conftest.dir |
bec39cab AC |
8657 | |
8658 | fi | |
8659 | if test "${ac_cv_path_install+set}" = set; then | |
8660 | INSTALL=$ac_cv_path_install | |
8661 | else | |
85541719 DE |
8662 | # As a last resort, use the slow shell script. Don't cache a |
8663 | # value for INSTALL within a source directory, because that will | |
bec39cab | 8664 | # break other packages using the cache if that directory is |
85541719 | 8665 | # removed, or if the value is a relative name. |
bec39cab AC |
8666 | INSTALL=$ac_install_sh |
8667 | fi | |
8668 | fi | |
b4e70030 JB |
8669 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8670 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
8671 | |
8672 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8673 | # It thinks the first close brace ends the variable substitution. | |
8674 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8675 | ||
8676 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
8677 | ||
8678 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8679 | ||
b4e70030 JB |
8680 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
8681 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
8682 | LN_S=$as_ln_s |
8683 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
8684 | echo "$as_me:$LINENO: result: yes" >&5 |
8685 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 8686 | else |
b4e70030 JB |
8687 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
8688 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
8689 | fi |
8690 | ||
8691 | if test -n "$ac_tool_prefix"; then | |
8692 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8693 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
8694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8696 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
8697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8698 | else | |
8699 | if test -n "$RANLIB"; then | |
8700 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8701 | else | |
8702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8703 | for as_dir in $PATH | |
8704 | do | |
8705 | IFS=$as_save_IFS | |
8706 | test -z "$as_dir" && as_dir=. | |
8707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8709 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8711 | break 2 | |
8712 | fi | |
8713 | done | |
8714 | done | |
8715 | ||
8716 | fi | |
8717 | fi | |
8718 | RANLIB=$ac_cv_prog_RANLIB | |
8719 | if test -n "$RANLIB"; then | |
b4e70030 JB |
8720 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8721 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 8722 | else |
b4e70030 JB |
8723 | echo "$as_me:$LINENO: result: no" >&5 |
8724 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8725 | fi |
8726 | ||
8727 | fi | |
8728 | if test -z "$ac_cv_prog_RANLIB"; then | |
8729 | ac_ct_RANLIB=$RANLIB | |
8730 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8731 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
8732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8734 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
8735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8736 | else | |
8737 | if test -n "$ac_ct_RANLIB"; then | |
8738 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8739 | else | |
8740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8741 | for as_dir in $PATH | |
8742 | do | |
8743 | IFS=$as_save_IFS | |
8744 | test -z "$as_dir" && as_dir=. | |
8745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8747 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
8748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8749 | break 2 | |
8750 | fi | |
8751 | done | |
8752 | done | |
8753 | ||
b4e70030 | 8754 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
8755 | fi |
8756 | fi | |
8757 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8758 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
8759 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
8760 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 8761 | else |
b4e70030 JB |
8762 | echo "$as_me:$LINENO: result: no" >&5 |
8763 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8764 | fi |
8765 | ||
b4e70030 | 8766 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
8767 | else |
8768 | RANLIB="$ac_cv_prog_RANLIB" | |
8769 | fi | |
8770 | ||
8771 | for ac_prog in 'bison -y' byacc | |
8772 | do | |
8773 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8774 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
8775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8777 | if test "${ac_cv_prog_YACC+set}" = set; then |
8778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8779 | else | |
8780 | if test -n "$YACC"; then | |
8781 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8782 | else | |
8783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8784 | for as_dir in $PATH | |
8785 | do | |
8786 | IFS=$as_save_IFS | |
8787 | test -z "$as_dir" && as_dir=. | |
8788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8790 | ac_cv_prog_YACC="$ac_prog" |
8791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8792 | break 2 | |
8793 | fi | |
8794 | done | |
8795 | done | |
8796 | ||
8797 | fi | |
8798 | fi | |
8799 | YACC=$ac_cv_prog_YACC | |
8800 | if test -n "$YACC"; then | |
b4e70030 JB |
8801 | echo "$as_me:$LINENO: result: $YACC" >&5 |
8802 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 8803 | else |
b4e70030 JB |
8804 | echo "$as_me:$LINENO: result: no" >&5 |
8805 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8806 | fi |
8807 | ||
8808 | test -n "$YACC" && break | |
8809 | done | |
8810 | test -n "$YACC" || YACC="yacc" | |
8811 | ||
8812 | ||
8813 | if test -n "$ac_tool_prefix"; then | |
8814 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
8815 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
8816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8818 | if test "${ac_cv_prog_AR+set}" = set; then |
8819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8820 | else | |
8821 | if test -n "$AR"; then | |
8822 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8823 | else | |
8824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8825 | for as_dir in $PATH | |
8826 | do | |
8827 | IFS=$as_save_IFS | |
8828 | test -z "$as_dir" && as_dir=. | |
8829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8831 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
8832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8833 | break 2 | |
8834 | fi | |
8835 | done | |
8836 | done | |
8837 | ||
8838 | fi | |
8839 | fi | |
8840 | AR=$ac_cv_prog_AR | |
8841 | if test -n "$AR"; then | |
b4e70030 JB |
8842 | echo "$as_me:$LINENO: result: $AR" >&5 |
8843 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 8844 | else |
b4e70030 JB |
8845 | echo "$as_me:$LINENO: result: no" >&5 |
8846 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8847 | fi |
8848 | ||
8849 | fi | |
8850 | if test -z "$ac_cv_prog_AR"; then | |
8851 | ac_ct_AR=$AR | |
8852 | # Extract the first word of "ar", so it can be a program name with args. | |
8853 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
8854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8856 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
8857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8858 | else | |
8859 | if test -n "$ac_ct_AR"; then | |
8860 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8861 | else | |
8862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8863 | for as_dir in $PATH | |
8864 | do | |
8865 | IFS=$as_save_IFS | |
8866 | test -z "$as_dir" && as_dir=. | |
8867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8869 | ac_cv_prog_ac_ct_AR="ar" |
8870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8871 | break 2 | |
8872 | fi | |
8873 | done | |
8874 | done | |
8875 | ||
8876 | fi | |
8877 | fi | |
8878 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8879 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
8880 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
8881 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 8882 | else |
b4e70030 JB |
8883 | echo "$as_me:$LINENO: result: no" >&5 |
8884 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8885 | fi |
8886 | ||
b4e70030 | 8887 | AR=$ac_ct_AR |
bec39cab AC |
8888 | else |
8889 | AR="$ac_cv_prog_AR" | |
8890 | fi | |
8891 | ||
8892 | if test -n "$ac_tool_prefix"; then | |
8893 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
8894 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
8895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8897 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8899 | else | |
8900 | if test -n "$DLLTOOL"; then | |
8901 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8902 | else | |
8903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8904 | for as_dir in $PATH | |
8905 | do | |
8906 | IFS=$as_save_IFS | |
8907 | test -z "$as_dir" && as_dir=. | |
8908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8910 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
8911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8912 | break 2 | |
8913 | fi | |
8914 | done | |
8915 | done | |
8916 | ||
8917 | fi | |
8918 | fi | |
8919 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8920 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
8921 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
8922 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 8923 | else |
b4e70030 JB |
8924 | echo "$as_me:$LINENO: result: no" >&5 |
8925 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8926 | fi |
8927 | ||
8928 | fi | |
8929 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
8930 | ac_ct_DLLTOOL=$DLLTOOL | |
8931 | # Extract the first word of "dlltool", so it can be a program name with args. | |
8932 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
8933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8935 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
8936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8937 | else | |
8938 | if test -n "$ac_ct_DLLTOOL"; then | |
8939 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
8940 | else | |
8941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8942 | for as_dir in $PATH | |
8943 | do | |
8944 | IFS=$as_save_IFS | |
8945 | test -z "$as_dir" && as_dir=. | |
8946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8947 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8948 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
8949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8950 | break 2 | |
8951 | fi | |
8952 | done | |
8953 | done | |
8954 | ||
8955 | fi | |
8956 | fi | |
8957 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
8958 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
8959 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
8960 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 8961 | else |
b4e70030 JB |
8962 | echo "$as_me:$LINENO: result: no" >&5 |
8963 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
8964 | fi |
8965 | ||
b4e70030 | 8966 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
8967 | else |
8968 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
8969 | fi | |
8970 | ||
8971 | if test -n "$ac_tool_prefix"; then | |
8972 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
8973 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
8974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
8976 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8978 | else | |
8979 | if test -n "$WINDRES"; then | |
8980 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8981 | else | |
8982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8983 | for as_dir in $PATH | |
8984 | do | |
8985 | IFS=$as_save_IFS | |
8986 | test -z "$as_dir" && as_dir=. | |
8987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 8988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
8989 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
8990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8991 | break 2 | |
8992 | fi | |
8993 | done | |
8994 | done | |
8995 | ||
8996 | fi | |
8997 | fi | |
8998 | WINDRES=$ac_cv_prog_WINDRES | |
8999 | if test -n "$WINDRES"; then | |
b4e70030 JB |
9000 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
9001 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 9002 | else |
b4e70030 JB |
9003 | echo "$as_me:$LINENO: result: no" >&5 |
9004 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
9005 | fi |
9006 | ||
9007 | fi | |
9008 | if test -z "$ac_cv_prog_WINDRES"; then | |
9009 | ac_ct_WINDRES=$WINDRES | |
9010 | # Extract the first word of "windres", so it can be a program name with args. | |
9011 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
9012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9014 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9016 | else | |
9017 | if test -n "$ac_ct_WINDRES"; then | |
9018 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
9019 | else | |
9020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9021 | for as_dir in $PATH | |
9022 | do | |
9023 | IFS=$as_save_IFS | |
9024 | test -z "$as_dir" && as_dir=. | |
9025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9027 | ac_cv_prog_ac_ct_WINDRES="windres" |
9028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9029 | break 2 | |
9030 | fi | |
9031 | done | |
9032 | done | |
9033 | ||
9034 | fi | |
9035 | fi | |
9036 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
9037 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
9038 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
9039 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 9040 | else |
b4e70030 JB |
9041 | echo "$as_me:$LINENO: result: no" >&5 |
9042 | echo "${ECHO_T}no" >&6 | |
c906108c | 9043 | fi |
bec39cab | 9044 | |
b4e70030 | 9045 | WINDRES=$ac_ct_WINDRES |
c906108c | 9046 | else |
bec39cab | 9047 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
9048 | fi |
9049 | ||
bec39cab AC |
9050 | |
9051 | # Needed for GNU/Hurd. | |
9052 | if test -n "$ac_tool_prefix"; then | |
9053 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
9054 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
9055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9057 | if test "${ac_cv_prog_MIG+set}" = set; then |
9058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 9059 | else |
bec39cab AC |
9060 | if test -n "$MIG"; then |
9061 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
9062 | else | |
9063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9064 | for as_dir in $PATH | |
9065 | do | |
9066 | IFS=$as_save_IFS | |
9067 | test -z "$as_dir" && as_dir=. | |
9068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9070 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
9071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9072 | break 2 | |
9073 | fi | |
9074 | done | |
9075 | done | |
9076 | ||
c906108c | 9077 | fi |
bec39cab AC |
9078 | fi |
9079 | MIG=$ac_cv_prog_MIG | |
9080 | if test -n "$MIG"; then | |
b4e70030 JB |
9081 | echo "$as_me:$LINENO: result: $MIG" >&5 |
9082 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 9083 | else |
b4e70030 JB |
9084 | echo "$as_me:$LINENO: result: no" >&5 |
9085 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
9086 | fi |
9087 | ||
bec39cab AC |
9088 | fi |
9089 | if test -z "$ac_cv_prog_MIG"; then | |
9090 | ac_ct_MIG=$MIG | |
9091 | # Extract the first word of "mig", so it can be a program name with args. | |
9092 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
9093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
9095 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9097 | else | |
9098 | if test -n "$ac_ct_MIG"; then | |
9099 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
9100 | else | |
9101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9102 | for as_dir in $PATH | |
9103 | do | |
9104 | IFS=$as_save_IFS | |
9105 | test -z "$as_dir" && as_dir=. | |
9106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 9107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
9108 | ac_cv_prog_ac_ct_MIG="mig" |
9109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9110 | break 2 | |
9111 | fi | |
9112 | done | |
9113 | done | |
c906108c | 9114 | |
bec39cab AC |
9115 | fi |
9116 | fi | |
9117 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
9118 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
9119 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
9120 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 9121 | else |
b4e70030 JB |
9122 | echo "$as_me:$LINENO: result: no" >&5 |
9123 | echo "${ECHO_T}no" >&6 | |
bec39cab | 9124 | fi |
c906108c | 9125 | |
b4e70030 | 9126 | MIG=$ac_ct_MIG |
bec39cab AC |
9127 | else |
9128 | MIG="$ac_cv_prog_MIG" | |
9129 | fi | |
c906108c | 9130 | |
c906108c | 9131 | |
bec39cab AC |
9132 | # ---------------------- # |
9133 | # Checks for libraries. # | |
9134 | # ---------------------- # | |
c906108c | 9135 | |
bec39cab | 9136 | # We might need to link with -lm; most simulators need it. |
c906108c | 9137 | |
b4e70030 JB |
9138 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
9139 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
9140 | if test "${ac_cv_lib_m_main+set}" = set; then |
9141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9142 | else | |
9143 | ac_check_lib_save_LIBS=$LIBS | |
9144 | LIBS="-lm $LIBS" | |
9145 | cat >conftest.$ac_ext <<_ACEOF | |
9146 | /* confdefs.h. */ | |
9147 | _ACEOF | |
9148 | cat confdefs.h >>conftest.$ac_ext | |
9149 | cat >>conftest.$ac_ext <<_ACEOF | |
9150 | /* end confdefs.h. */ | |
c906108c | 9151 | |
c906108c | 9152 | |
bec39cab AC |
9153 | int |
9154 | main () | |
9155 | { | |
b4e70030 | 9156 | main (); |
bec39cab AC |
9157 | ; |
9158 | return 0; | |
9159 | } | |
9160 | _ACEOF | |
9161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9163 | (eval $ac_link) 2>conftest.er1 | |
9164 | ac_status=$? | |
9165 | grep -v '^ *+' conftest.er1 >conftest.err | |
9166 | rm -f conftest.er1 | |
9167 | cat conftest.err >&5 | |
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9169 | (exit $ac_status); } && | |
b4e70030 JB |
9170 | { ac_try='test -z "$ac_c_werror_flag" |
9171 | || test ! -s conftest.err' | |
bec39cab AC |
9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9173 | (eval $ac_try) 2>&5 | |
9174 | ac_status=$? | |
9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9176 | (exit $ac_status); }; } && | |
9177 | { ac_try='test -s conftest$ac_exeext' | |
9178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9179 | (eval $ac_try) 2>&5 | |
9180 | ac_status=$? | |
9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9182 | (exit $ac_status); }; }; then | |
9183 | ac_cv_lib_m_main=yes | |
9184 | else | |
9185 | echo "$as_me: failed program was:" >&5 | |
9186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9187 | ||
b4e70030 | 9188 | ac_cv_lib_m_main=no |
bec39cab AC |
9189 | fi |
9190 | rm -f conftest.err conftest.$ac_objext \ | |
9191 | conftest$ac_exeext conftest.$ac_ext | |
9192 | LIBS=$ac_check_lib_save_LIBS | |
9193 | fi | |
b4e70030 JB |
9194 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
9195 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
9196 | if test $ac_cv_lib_m_main = yes; then |
9197 | cat >>confdefs.h <<_ACEOF | |
9198 | #define HAVE_LIBM 1 | |
9199 | _ACEOF | |
9200 | ||
9201 | LIBS="-lm $LIBS" | |
c906108c | 9202 | |
c906108c | 9203 | fi |
bec39cab AC |
9204 | |
9205 | ||
9206 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
9207 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
9208 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
9209 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
9210 | echo "$as_me:$LINENO: checking for wctype" >&5 |
9211 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
9212 | if test "${ac_cv_func_wctype+set}" = set; then |
9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9214 | else | |
9215 | cat >conftest.$ac_ext <<_ACEOF | |
9216 | /* confdefs.h. */ | |
9217 | _ACEOF | |
9218 | cat confdefs.h >>conftest.$ac_ext | |
9219 | cat >>conftest.$ac_ext <<_ACEOF | |
9220 | /* end confdefs.h. */ | |
9221 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
9222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9223 | #define wctype innocuous_wctype | |
9224 | ||
9225 | /* System header to define __stub macros and hopefully few prototypes, | |
9226 | which can conflict with char wctype (); below. | |
9227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9228 | <limits.h> exists even on freestanding compilers. */ | |
9229 | ||
9230 | #ifdef __STDC__ | |
9231 | # include <limits.h> | |
9232 | #else | |
9233 | # include <assert.h> | |
9234 | #endif | |
9235 | ||
9236 | #undef wctype | |
9237 | ||
b4e70030 | 9238 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9239 | #ifdef __cplusplus |
9240 | extern "C" | |
b4e70030 | 9241 | { |
bec39cab | 9242 | #endif |
b4e70030 JB |
9243 | /* We use char because int might match the return type of a gcc2 |
9244 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9245 | char wctype (); |
9246 | /* The GNU C library defines this for functions which it implements | |
9247 | to always fail with ENOSYS. Some functions are actually named | |
9248 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 9249 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 9250 | choke me |
b4e70030 JB |
9251 | #else |
9252 | char (*f) () = wctype; | |
9253 | #endif | |
9254 | #ifdef __cplusplus | |
9255 | } | |
bec39cab AC |
9256 | #endif |
9257 | ||
9258 | int | |
9259 | main () | |
9260 | { | |
b4e70030 | 9261 | return f != wctype; |
bec39cab AC |
9262 | ; |
9263 | return 0; | |
9264 | } | |
9265 | _ACEOF | |
9266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9268 | (eval $ac_link) 2>conftest.er1 | |
9269 | ac_status=$? | |
9270 | grep -v '^ *+' conftest.er1 >conftest.err | |
9271 | rm -f conftest.er1 | |
9272 | cat conftest.err >&5 | |
9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9274 | (exit $ac_status); } && | |
b4e70030 JB |
9275 | { ac_try='test -z "$ac_c_werror_flag" |
9276 | || test ! -s conftest.err' | |
bec39cab AC |
9277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9278 | (eval $ac_try) 2>&5 | |
9279 | ac_status=$? | |
9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9281 | (exit $ac_status); }; } && | |
9282 | { ac_try='test -s conftest$ac_exeext' | |
9283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9284 | (eval $ac_try) 2>&5 | |
9285 | ac_status=$? | |
9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9287 | (exit $ac_status); }; }; then | |
9288 | ac_cv_func_wctype=yes | |
9289 | else | |
9290 | echo "$as_me: failed program was:" >&5 | |
9291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9292 | ||
b4e70030 | 9293 | ac_cv_func_wctype=no |
bec39cab AC |
9294 | fi |
9295 | rm -f conftest.err conftest.$ac_objext \ | |
9296 | conftest$ac_exeext conftest.$ac_ext | |
9297 | fi | |
b4e70030 JB |
9298 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
9299 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
9300 | if test $ac_cv_func_wctype = yes; then |
9301 | : | |
c906108c | 9302 | else |
c906108c | 9303 | |
b4e70030 JB |
9304 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
9305 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
9306 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
9307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9308 | else | |
9309 | ac_check_lib_save_LIBS=$LIBS | |
9310 | LIBS="-lw $LIBS" | |
9311 | cat >conftest.$ac_ext <<_ACEOF | |
9312 | /* confdefs.h. */ | |
9313 | _ACEOF | |
9314 | cat confdefs.h >>conftest.$ac_ext | |
9315 | cat >>conftest.$ac_ext <<_ACEOF | |
9316 | /* end confdefs.h. */ | |
c906108c | 9317 | |
b4e70030 | 9318 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9319 | #ifdef __cplusplus |
9320 | extern "C" | |
9321 | #endif | |
b4e70030 JB |
9322 | /* We use char because int might match the return type of a gcc2 |
9323 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9324 | char wctype (); |
9325 | int | |
9326 | main () | |
9327 | { | |
b4e70030 | 9328 | wctype (); |
bec39cab AC |
9329 | ; |
9330 | return 0; | |
9331 | } | |
9332 | _ACEOF | |
9333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9335 | (eval $ac_link) 2>conftest.er1 | |
9336 | ac_status=$? | |
9337 | grep -v '^ *+' conftest.er1 >conftest.err | |
9338 | rm -f conftest.er1 | |
9339 | cat conftest.err >&5 | |
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9341 | (exit $ac_status); } && | |
b4e70030 JB |
9342 | { ac_try='test -z "$ac_c_werror_flag" |
9343 | || test ! -s conftest.err' | |
bec39cab AC |
9344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9345 | (eval $ac_try) 2>&5 | |
9346 | ac_status=$? | |
9347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9348 | (exit $ac_status); }; } && | |
9349 | { ac_try='test -s conftest$ac_exeext' | |
9350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9351 | (eval $ac_try) 2>&5 | |
9352 | ac_status=$? | |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9354 | (exit $ac_status); }; }; then | |
9355 | ac_cv_lib_w_wctype=yes | |
9356 | else | |
9357 | echo "$as_me: failed program was:" >&5 | |
9358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9359 | ||
b4e70030 | 9360 | ac_cv_lib_w_wctype=no |
bec39cab AC |
9361 | fi |
9362 | rm -f conftest.err conftest.$ac_objext \ | |
9363 | conftest$ac_exeext conftest.$ac_ext | |
9364 | LIBS=$ac_check_lib_save_LIBS | |
9365 | fi | |
b4e70030 JB |
9366 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
9367 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
9368 | if test $ac_cv_lib_w_wctype = yes; then |
9369 | cat >>confdefs.h <<_ACEOF | |
9370 | #define HAVE_LIBW 1 | |
9371 | _ACEOF | |
c906108c | 9372 | |
bec39cab | 9373 | LIBS="-lw $LIBS" |
c906108c | 9374 | |
bec39cab | 9375 | fi |
c906108c | 9376 | |
bec39cab | 9377 | fi |
c906108c | 9378 | |
ddc9cd0f | 9379 | |
bec39cab | 9380 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
9381 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
9382 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
9383 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
9384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9385 | else | |
9386 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 9387 | ac_cv_search_gethostbyname=no |
bec39cab AC |
9388 | cat >conftest.$ac_ext <<_ACEOF |
9389 | /* confdefs.h. */ | |
9390 | _ACEOF | |
9391 | cat confdefs.h >>conftest.$ac_ext | |
9392 | cat >>conftest.$ac_ext <<_ACEOF | |
9393 | /* end confdefs.h. */ | |
ddc9cd0f | 9394 | |
b4e70030 | 9395 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9396 | #ifdef __cplusplus |
9397 | extern "C" | |
9398 | #endif | |
b4e70030 JB |
9399 | /* We use char because int might match the return type of a gcc2 |
9400 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
9401 | char gethostbyname (); |
9402 | int | |
9403 | main () | |
9404 | { | |
b4e70030 | 9405 | gethostbyname (); |
bec39cab AC |
9406 | ; |
9407 | return 0; | |
9408 | } | |
9409 | _ACEOF | |
b4e70030 | 9410 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9412 | (eval $ac_link) 2>conftest.er1 | |
9413 | ac_status=$? | |
9414 | grep -v '^ *+' conftest.er1 >conftest.err | |
9415 | rm -f conftest.er1 | |
9416 | cat conftest.err >&5 | |
9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9418 | (exit $ac_status); } && | |
b4e70030 JB |
9419 | { ac_try='test -z "$ac_c_werror_flag" |
9420 | || test ! -s conftest.err' | |
bec39cab AC |
9421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9422 | (eval $ac_try) 2>&5 | |
9423 | ac_status=$? | |
9424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9425 | (exit $ac_status); }; } && | |
9426 | { ac_try='test -s conftest$ac_exeext' | |
9427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9428 | (eval $ac_try) 2>&5 | |
9429 | ac_status=$? | |
9430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9431 | (exit $ac_status); }; }; then | |
b4e70030 | 9432 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
9433 | else |
9434 | echo "$as_me: failed program was:" >&5 | |
9435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 9436 | |
bec39cab AC |
9437 | fi |
9438 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9439 | conftest$ac_exeext conftest.$ac_ext |
9440 | if test "$ac_cv_search_gethostbyname" = no; then | |
9441 | for ac_lib in nsl; do | |
9442 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9443 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
9444 | /* confdefs.h. */ |
9445 | _ACEOF | |
9446 | cat confdefs.h >>conftest.$ac_ext | |
9447 | cat >>conftest.$ac_ext <<_ACEOF | |
9448 | /* end confdefs.h. */ | |
ddc9cd0f | 9449 | |
b4e70030 | 9450 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9451 | #ifdef __cplusplus |
9452 | extern "C" | |
9453 | #endif | |
b4e70030 JB |
9454 | /* We use char because int might match the return type of a gcc2 |
9455 | builtin and then its argument prototype would still apply. */ | |
9456 | char gethostbyname (); | |
bec39cab AC |
9457 | int |
9458 | main () | |
9459 | { | |
b4e70030 | 9460 | gethostbyname (); |
bec39cab AC |
9461 | ; |
9462 | return 0; | |
9463 | } | |
9464 | _ACEOF | |
b4e70030 | 9465 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9467 | (eval $ac_link) 2>conftest.er1 | |
9468 | ac_status=$? | |
9469 | grep -v '^ *+' conftest.er1 >conftest.err | |
9470 | rm -f conftest.er1 | |
9471 | cat conftest.err >&5 | |
9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9473 | (exit $ac_status); } && | |
b4e70030 JB |
9474 | { ac_try='test -z "$ac_c_werror_flag" |
9475 | || test ! -s conftest.err' | |
bec39cab AC |
9476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9477 | (eval $ac_try) 2>&5 | |
9478 | ac_status=$? | |
9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9480 | (exit $ac_status); }; } && | |
9481 | { ac_try='test -s conftest$ac_exeext' | |
9482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9483 | (eval $ac_try) 2>&5 | |
9484 | ac_status=$? | |
9485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9486 | (exit $ac_status); }; }; then | |
b4e70030 JB |
9487 | ac_cv_search_gethostbyname="-l$ac_lib" |
9488 | break | |
bec39cab AC |
9489 | else |
9490 | echo "$as_me: failed program was:" >&5 | |
9491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9492 | ||
9493 | fi | |
9494 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
9495 | conftest$ac_exeext conftest.$ac_ext |
9496 | done | |
bec39cab AC |
9497 | fi |
9498 | LIBS=$ac_func_search_save_LIBS | |
9499 | fi | |
b4e70030 JB |
9500 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
9501 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
9502 | if test "$ac_cv_search_gethostbyname" != no; then | |
9503 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 9504 | |
bec39cab | 9505 | fi |
96baa820 | 9506 | |
c906108c | 9507 | |
b4e70030 JB |
9508 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
9509 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
9510 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
9511 | if test "${ac_cv_search_socketpair+set}" = set; then | |
9512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9513 | else | |
9514 | ac_func_search_save_LIBS=$LIBS | |
9515 | ac_cv_search_socketpair=no | |
9516 | cat >conftest.$ac_ext <<_ACEOF | |
9517 | /* confdefs.h. */ | |
9518 | _ACEOF | |
9519 | cat confdefs.h >>conftest.$ac_ext | |
9520 | cat >>conftest.$ac_ext <<_ACEOF | |
9521 | /* end confdefs.h. */ | |
9522 | ||
9523 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9524 | #ifdef __cplusplus | |
9525 | extern "C" | |
9526 | #endif | |
9527 | /* We use char because int might match the return type of a gcc2 | |
9528 | builtin and then its argument prototype would still apply. */ | |
9529 | char socketpair (); | |
9530 | int | |
9531 | main () | |
9532 | { | |
9533 | socketpair (); | |
9534 | ; | |
9535 | return 0; | |
9536 | } | |
9537 | _ACEOF | |
9538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9540 | (eval $ac_link) 2>conftest.er1 | |
9541 | ac_status=$? | |
9542 | grep -v '^ *+' conftest.er1 >conftest.err | |
9543 | rm -f conftest.er1 | |
9544 | cat conftest.err >&5 | |
9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9546 | (exit $ac_status); } && | |
9547 | { ac_try='test -z "$ac_c_werror_flag" | |
9548 | || test ! -s conftest.err' | |
9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9550 | (eval $ac_try) 2>&5 | |
9551 | ac_status=$? | |
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9553 | (exit $ac_status); }; } && | |
9554 | { ac_try='test -s conftest$ac_exeext' | |
9555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9556 | (eval $ac_try) 2>&5 | |
9557 | ac_status=$? | |
9558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9559 | (exit $ac_status); }; }; then | |
9560 | ac_cv_search_socketpair="none required" | |
9561 | else | |
9562 | echo "$as_me: failed program was:" >&5 | |
9563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9564 | ||
9565 | fi | |
9566 | rm -f conftest.err conftest.$ac_objext \ | |
9567 | conftest$ac_exeext conftest.$ac_ext | |
9568 | if test "$ac_cv_search_socketpair" = no; then | |
9569 | for ac_lib in socket; do | |
9570 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9571 | cat >conftest.$ac_ext <<_ACEOF | |
9572 | /* confdefs.h. */ | |
9573 | _ACEOF | |
9574 | cat confdefs.h >>conftest.$ac_ext | |
9575 | cat >>conftest.$ac_ext <<_ACEOF | |
9576 | /* end confdefs.h. */ | |
9577 | ||
9578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9579 | #ifdef __cplusplus | |
9580 | extern "C" | |
9581 | #endif | |
9582 | /* We use char because int might match the return type of a gcc2 | |
9583 | builtin and then its argument prototype would still apply. */ | |
9584 | char socketpair (); | |
9585 | int | |
9586 | main () | |
9587 | { | |
9588 | socketpair (); | |
9589 | ; | |
9590 | return 0; | |
9591 | } | |
9592 | _ACEOF | |
9593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9595 | (eval $ac_link) 2>conftest.er1 | |
9596 | ac_status=$? | |
9597 | grep -v '^ *+' conftest.er1 >conftest.err | |
9598 | rm -f conftest.er1 | |
9599 | cat conftest.err >&5 | |
9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9601 | (exit $ac_status); } && | |
9602 | { ac_try='test -z "$ac_c_werror_flag" | |
9603 | || test ! -s conftest.err' | |
9604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9605 | (eval $ac_try) 2>&5 | |
9606 | ac_status=$? | |
9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9608 | (exit $ac_status); }; } && | |
9609 | { ac_try='test -s conftest$ac_exeext' | |
9610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9611 | (eval $ac_try) 2>&5 | |
9612 | ac_status=$? | |
9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 | (exit $ac_status); }; }; then | |
9615 | ac_cv_search_socketpair="-l$ac_lib" | |
9616 | break | |
9617 | else | |
9618 | echo "$as_me: failed program was:" >&5 | |
9619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9620 | ||
9621 | fi | |
9622 | rm -f conftest.err conftest.$ac_objext \ | |
9623 | conftest$ac_exeext conftest.$ac_ext | |
9624 | done | |
9625 | fi | |
9626 | LIBS=$ac_func_search_save_LIBS | |
9627 | fi | |
9628 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
9629 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
9630 | if test "$ac_cv_search_socketpair" != no; then | |
9631 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
9632 | ||
9633 | fi | |
9634 | ||
9635 | ||
233a11ab CS |
9636 | # Link in zlib if we can. This allows us to read compressed debug sections. |
9637 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
9638 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
9639 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
9640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9641 | else | |
9642 | ac_func_search_save_LIBS=$LIBS | |
9643 | ac_cv_search_zlibVersion=no | |
9644 | cat >conftest.$ac_ext <<_ACEOF | |
9645 | /* confdefs.h. */ | |
9646 | _ACEOF | |
9647 | cat confdefs.h >>conftest.$ac_ext | |
9648 | cat >>conftest.$ac_ext <<_ACEOF | |
9649 | /* end confdefs.h. */ | |
9650 | ||
9651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9652 | #ifdef __cplusplus | |
9653 | extern "C" | |
9654 | #endif | |
9655 | /* We use char because int might match the return type of a gcc2 | |
9656 | builtin and then its argument prototype would still apply. */ | |
9657 | char zlibVersion (); | |
9658 | int | |
9659 | main () | |
9660 | { | |
9661 | zlibVersion (); | |
9662 | ; | |
9663 | return 0; | |
9664 | } | |
9665 | _ACEOF | |
9666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9668 | (eval $ac_link) 2>conftest.er1 | |
9669 | ac_status=$? | |
9670 | grep -v '^ *+' conftest.er1 >conftest.err | |
9671 | rm -f conftest.er1 | |
9672 | cat conftest.err >&5 | |
9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9674 | (exit $ac_status); } && | |
9675 | { ac_try='test -z "$ac_c_werror_flag" | |
9676 | || test ! -s conftest.err' | |
9677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9678 | (eval $ac_try) 2>&5 | |
9679 | ac_status=$? | |
9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9681 | (exit $ac_status); }; } && | |
9682 | { ac_try='test -s conftest$ac_exeext' | |
9683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9684 | (eval $ac_try) 2>&5 | |
9685 | ac_status=$? | |
9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9687 | (exit $ac_status); }; }; then | |
9688 | ac_cv_search_zlibVersion="none required" | |
9689 | else | |
9690 | echo "$as_me: failed program was:" >&5 | |
9691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9692 | ||
9693 | fi | |
9694 | rm -f conftest.err conftest.$ac_objext \ | |
9695 | conftest$ac_exeext conftest.$ac_ext | |
9696 | if test "$ac_cv_search_zlibVersion" = no; then | |
9697 | for ac_lib in z; do | |
9698 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9699 | cat >conftest.$ac_ext <<_ACEOF | |
9700 | /* confdefs.h. */ | |
9701 | _ACEOF | |
9702 | cat confdefs.h >>conftest.$ac_ext | |
9703 | cat >>conftest.$ac_ext <<_ACEOF | |
9704 | /* end confdefs.h. */ | |
9705 | ||
9706 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9707 | #ifdef __cplusplus | |
9708 | extern "C" | |
9709 | #endif | |
9710 | /* We use char because int might match the return type of a gcc2 | |
9711 | builtin and then its argument prototype would still apply. */ | |
9712 | char zlibVersion (); | |
9713 | int | |
9714 | main () | |
9715 | { | |
9716 | zlibVersion (); | |
9717 | ; | |
9718 | return 0; | |
9719 | } | |
9720 | _ACEOF | |
9721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9723 | (eval $ac_link) 2>conftest.er1 | |
9724 | ac_status=$? | |
9725 | grep -v '^ *+' conftest.er1 >conftest.err | |
9726 | rm -f conftest.er1 | |
9727 | cat conftest.err >&5 | |
9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9729 | (exit $ac_status); } && | |
9730 | { ac_try='test -z "$ac_c_werror_flag" | |
9731 | || test ! -s conftest.err' | |
9732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9733 | (eval $ac_try) 2>&5 | |
9734 | ac_status=$? | |
9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9736 | (exit $ac_status); }; } && | |
9737 | { ac_try='test -s conftest$ac_exeext' | |
9738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9739 | (eval $ac_try) 2>&5 | |
9740 | ac_status=$? | |
9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9742 | (exit $ac_status); }; }; then | |
9743 | ac_cv_search_zlibVersion="-l$ac_lib" | |
9744 | break | |
9745 | else | |
9746 | echo "$as_me: failed program was:" >&5 | |
9747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9748 | ||
9749 | fi | |
9750 | rm -f conftest.err conftest.$ac_objext \ | |
9751 | conftest$ac_exeext conftest.$ac_ext | |
9752 | done | |
9753 | fi | |
9754 | LIBS=$ac_func_search_save_LIBS | |
9755 | fi | |
9756 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
9757 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
9758 | if test "$ac_cv_search_zlibVersion" != no; then | |
9759 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
9760 | ||
9761 | for ac_header in zlib.h | |
9762 | do | |
9763 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9765 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9769 | fi | |
9770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9771 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9772 | else | |
9773 | # Is the header compilable? | |
9774 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9775 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9776 | cat >conftest.$ac_ext <<_ACEOF | |
9777 | /* confdefs.h. */ | |
9778 | _ACEOF | |
9779 | cat confdefs.h >>conftest.$ac_ext | |
9780 | cat >>conftest.$ac_ext <<_ACEOF | |
9781 | /* end confdefs.h. */ | |
9782 | $ac_includes_default | |
9783 | #include <$ac_header> | |
9784 | _ACEOF | |
9785 | rm -f conftest.$ac_objext | |
9786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9787 | (eval $ac_compile) 2>conftest.er1 | |
9788 | ac_status=$? | |
9789 | grep -v '^ *+' conftest.er1 >conftest.err | |
9790 | rm -f conftest.er1 | |
9791 | cat conftest.err >&5 | |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9793 | (exit $ac_status); } && | |
9794 | { ac_try='test -z "$ac_c_werror_flag" | |
9795 | || test ! -s conftest.err' | |
9796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9797 | (eval $ac_try) 2>&5 | |
9798 | ac_status=$? | |
9799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9800 | (exit $ac_status); }; } && | |
9801 | { ac_try='test -s conftest.$ac_objext' | |
9802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9803 | (eval $ac_try) 2>&5 | |
9804 | ac_status=$? | |
9805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9806 | (exit $ac_status); }; }; then | |
9807 | ac_header_compiler=yes | |
9808 | else | |
9809 | echo "$as_me: failed program was:" >&5 | |
9810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9811 | ||
9812 | ac_header_compiler=no | |
9813 | fi | |
9814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9815 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9816 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9817 | ||
9818 | # Is the header present? | |
9819 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9820 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9821 | cat >conftest.$ac_ext <<_ACEOF | |
9822 | /* confdefs.h. */ | |
9823 | _ACEOF | |
9824 | cat confdefs.h >>conftest.$ac_ext | |
9825 | cat >>conftest.$ac_ext <<_ACEOF | |
9826 | /* end confdefs.h. */ | |
9827 | #include <$ac_header> | |
9828 | _ACEOF | |
9829 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9830 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9831 | ac_status=$? | |
9832 | grep -v '^ *+' conftest.er1 >conftest.err | |
9833 | rm -f conftest.er1 | |
9834 | cat conftest.err >&5 | |
9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9836 | (exit $ac_status); } >/dev/null; then | |
9837 | if test -s conftest.err; then | |
9838 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9839 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9840 | else | |
9841 | ac_cpp_err= | |
9842 | fi | |
9843 | else | |
9844 | ac_cpp_err=yes | |
9845 | fi | |
9846 | if test -z "$ac_cpp_err"; then | |
9847 | ac_header_preproc=yes | |
9848 | else | |
9849 | echo "$as_me: failed program was:" >&5 | |
9850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9851 | ||
9852 | ac_header_preproc=no | |
9853 | fi | |
9854 | rm -f conftest.err conftest.$ac_ext | |
9855 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9856 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9857 | ||
9858 | # So? What about this header? | |
9859 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9860 | yes:no: ) | |
9861 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9862 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9863 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9864 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9865 | ac_header_preproc=yes | |
9866 | ;; | |
9867 | no:yes:* ) | |
9868 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9869 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9870 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9871 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9872 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9873 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9874 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9875 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9877 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9878 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9879 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9880 | ( | |
9881 | cat <<\_ASBOX | |
9882 | ## ------------------------------------------ ## | |
9883 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9884 | ## ------------------------------------------ ## | |
9885 | _ASBOX | |
9886 | ) | | |
9887 | sed "s/^/$as_me: WARNING: /" >&2 | |
9888 | ;; | |
9889 | esac | |
9890 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9894 | else | |
9895 | eval "$as_ac_Header=\$ac_header_preproc" | |
9896 | fi | |
9897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9899 | ||
9900 | fi | |
9901 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9902 | cat >>confdefs.h <<_ACEOF | |
9903 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9904 | _ACEOF | |
9905 | ||
9906 | fi | |
9907 | ||
9908 | done | |
9909 | ||
9910 | fi | |
9911 | ||
9912 | ||
77f120bf JB |
9913 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
9914 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 | |
9915 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 | |
9916 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then | |
bec39cab AC |
9917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9918 | else | |
9919 | ac_func_search_save_LIBS=$LIBS | |
77f120bf | 9920 | ac_cv_search_dlgetmodinfo=no |
bec39cab AC |
9921 | cat >conftest.$ac_ext <<_ACEOF |
9922 | /* confdefs.h. */ | |
9923 | _ACEOF | |
9924 | cat confdefs.h >>conftest.$ac_ext | |
9925 | cat >>conftest.$ac_ext <<_ACEOF | |
9926 | /* end confdefs.h. */ | |
c906108c | 9927 | |
b4e70030 | 9928 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
9929 | #ifdef __cplusplus |
9930 | extern "C" | |
9931 | #endif | |
b4e70030 JB |
9932 | /* We use char because int might match the return type of a gcc2 |
9933 | builtin and then its argument prototype would still apply. */ | |
77f120bf | 9934 | char dlgetmodinfo (); |
bec39cab AC |
9935 | int |
9936 | main () | |
9937 | { | |
77f120bf | 9938 | dlgetmodinfo (); |
bec39cab AC |
9939 | ; |
9940 | return 0; | |
9941 | } | |
9942 | _ACEOF | |
b4e70030 | 9943 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
9944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9945 | (eval $ac_link) 2>conftest.er1 | |
9946 | ac_status=$? | |
9947 | grep -v '^ *+' conftest.er1 >conftest.err | |
9948 | rm -f conftest.er1 | |
9949 | cat conftest.err >&5 | |
9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9951 | (exit $ac_status); } && | |
b4e70030 JB |
9952 | { ac_try='test -z "$ac_c_werror_flag" |
9953 | || test ! -s conftest.err' | |
bec39cab AC |
9954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9955 | (eval $ac_try) 2>&5 | |
9956 | ac_status=$? | |
9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9958 | (exit $ac_status); }; } && | |
9959 | { ac_try='test -s conftest$ac_exeext' | |
9960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9961 | (eval $ac_try) 2>&5 | |
9962 | ac_status=$? | |
9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9964 | (exit $ac_status); }; }; then | |
77f120bf | 9965 | ac_cv_search_dlgetmodinfo="none required" |
bec39cab AC |
9966 | else |
9967 | echo "$as_me: failed program was:" >&5 | |
9968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
9969 | |
9970 | fi | |
bec39cab | 9971 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 | 9972 | conftest$ac_exeext conftest.$ac_ext |
77f120bf JB |
9973 | if test "$ac_cv_search_dlgetmodinfo" = no; then |
9974 | for ac_lib in dl xpdl; do | |
b4e70030 JB |
9975 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
9976 | cat >conftest.$ac_ext <<_ACEOF | |
9977 | /* confdefs.h. */ | |
9978 | _ACEOF | |
9979 | cat confdefs.h >>conftest.$ac_ext | |
9980 | cat >>conftest.$ac_ext <<_ACEOF | |
9981 | /* end confdefs.h. */ | |
9982 | ||
9983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9984 | #ifdef __cplusplus | |
9985 | extern "C" | |
9986 | #endif | |
9987 | /* We use char because int might match the return type of a gcc2 | |
9988 | builtin and then its argument prototype would still apply. */ | |
77f120bf | 9989 | char dlgetmodinfo (); |
b4e70030 JB |
9990 | int |
9991 | main () | |
9992 | { | |
77f120bf | 9993 | dlgetmodinfo (); |
b4e70030 JB |
9994 | ; |
9995 | return 0; | |
9996 | } | |
9997 | _ACEOF | |
9998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10000 | (eval $ac_link) 2>conftest.er1 | |
10001 | ac_status=$? | |
10002 | grep -v '^ *+' conftest.er1 >conftest.err | |
10003 | rm -f conftest.er1 | |
10004 | cat conftest.err >&5 | |
10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10006 | (exit $ac_status); } && | |
10007 | { ac_try='test -z "$ac_c_werror_flag" | |
10008 | || test ! -s conftest.err' | |
10009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10010 | (eval $ac_try) 2>&5 | |
10011 | ac_status=$? | |
10012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10013 | (exit $ac_status); }; } && | |
10014 | { ac_try='test -s conftest$ac_exeext' | |
10015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10016 | (eval $ac_try) 2>&5 | |
10017 | ac_status=$? | |
10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10019 | (exit $ac_status); }; }; then | |
77f120bf | 10020 | ac_cv_search_dlgetmodinfo="-l$ac_lib" |
b4e70030 | 10021 | break |
4e8d927d | 10022 | else |
b4e70030 JB |
10023 | echo "$as_me: failed program was:" >&5 |
10024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10025 | ||
10026 | fi | |
10027 | rm -f conftest.err conftest.$ac_objext \ | |
10028 | conftest$ac_exeext conftest.$ac_ext | |
10029 | done | |
1ba607ad | 10030 | fi |
bec39cab AC |
10031 | LIBS=$ac_func_search_save_LIBS |
10032 | fi | |
77f120bf JB |
10033 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 |
10034 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 | |
10035 | if test "$ac_cv_search_dlgetmodinfo" != no; then | |
10036 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" | |
c906108c | 10037 | |
8bb2c122 | 10038 | fi |
8bb2c122 | 10039 | |
8bb2c122 | 10040 | |
77f120bf | 10041 | |
77f120bf | 10042 | |
6c7a06a3 TT |
10043 | |
10044 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
10045 | if test "${with_libiconv_prefix+set}" = set; then | |
10046 | withval="$with_libiconv_prefix" | |
10047 | ||
10048 | for dir in `echo "$withval" | tr : ' '`; do | |
94ae1714 TT |
10049 | if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi |
10050 | if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi | |
6c7a06a3 TT |
10051 | done |
10052 | ||
10053 | fi; | |
10054 | ||
10055 | BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs" | |
10056 | BUILD_LIBICONV_INCLUDE="-I../libiconv/include" | |
10057 | ||
10058 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
10059 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
10060 | if test "${am_cv_func_iconv+set}" = set; then | |
d542061a UW |
10061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10062 | else | |
6c7a06a3 TT |
10063 | |
10064 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
10065 | am_cv_lib_iconv=no | |
10066 | am_cv_use_build_libiconv=no | |
94ae1714 | 10067 | # First, try to find iconv in libc. |
6c7a06a3 | 10068 | cat >conftest.$ac_ext <<_ACEOF |
d542061a UW |
10069 | /* confdefs.h. */ |
10070 | _ACEOF | |
10071 | cat confdefs.h >>conftest.$ac_ext | |
10072 | cat >>conftest.$ac_ext <<_ACEOF | |
10073 | /* end confdefs.h. */ | |
6c7a06a3 TT |
10074 | #include <stdlib.h> |
10075 | #include <iconv.h> | |
d542061a UW |
10076 | int |
10077 | main () | |
10078 | { | |
6c7a06a3 TT |
10079 | iconv_t cd = iconv_open("",""); |
10080 | iconv(cd,NULL,NULL,NULL,NULL); | |
10081 | iconv_close(cd); | |
d542061a UW |
10082 | ; |
10083 | return 0; | |
10084 | } | |
10085 | _ACEOF | |
10086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10088 | (eval $ac_link) 2>conftest.er1 | |
10089 | ac_status=$? | |
10090 | grep -v '^ *+' conftest.er1 >conftest.err | |
10091 | rm -f conftest.er1 | |
10092 | cat conftest.err >&5 | |
10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 | (exit $ac_status); } && | |
10095 | { ac_try='test -z "$ac_c_werror_flag" | |
10096 | || test ! -s conftest.err' | |
10097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10098 | (eval $ac_try) 2>&5 | |
10099 | ac_status=$? | |
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10101 | (exit $ac_status); }; } && | |
10102 | { ac_try='test -s conftest$ac_exeext' | |
10103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10104 | (eval $ac_try) 2>&5 | |
10105 | ac_status=$? | |
10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10107 | (exit $ac_status); }; }; then | |
6c7a06a3 | 10108 | am_cv_func_iconv=yes |
d542061a UW |
10109 | else |
10110 | echo "$as_me: failed program was:" >&5 | |
10111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10112 | ||
10113 | fi | |
10114 | rm -f conftest.err conftest.$ac_objext \ | |
10115 | conftest$ac_exeext conftest.$ac_ext | |
94ae1714 TT |
10116 | |
10117 | # If iconv was not in libc, try -liconv. In this case, arrange to | |
10118 | # look in the libiconv prefix, if it was specified by the user. | |
6c7a06a3 | 10119 | if test "$am_cv_func_iconv" != yes; then |
94ae1714 | 10120 | am_save_CPPFLAGS="$CPPFLAGS" |
6c7a06a3 | 10121 | am_save_LIBS="$LIBS" |
94ae1714 TT |
10122 | if test -n "$LIBICONV_INCLUDE"; then |
10123 | CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | |
10124 | LIBS="$LIBS $LIBICONV_LIBDIR" | |
10125 | fi | |
6c7a06a3 TT |
10126 | LIBS="$LIBS -liconv" |
10127 | cat >conftest.$ac_ext <<_ACEOF | |
d542061a UW |
10128 | /* confdefs.h. */ |
10129 | _ACEOF | |
10130 | cat confdefs.h >>conftest.$ac_ext | |
10131 | cat >>conftest.$ac_ext <<_ACEOF | |
10132 | /* end confdefs.h. */ | |
6c7a06a3 TT |
10133 | #include <stdlib.h> |
10134 | #include <iconv.h> | |
d542061a UW |
10135 | int |
10136 | main () | |
10137 | { | |
6c7a06a3 TT |
10138 | iconv_t cd = iconv_open("",""); |
10139 | iconv(cd,NULL,NULL,NULL,NULL); | |
10140 | iconv_close(cd); | |
d542061a UW |
10141 | ; |
10142 | return 0; | |
10143 | } | |
10144 | _ACEOF | |
10145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10147 | (eval $ac_link) 2>conftest.er1 | |
10148 | ac_status=$? | |
10149 | grep -v '^ *+' conftest.er1 >conftest.err | |
10150 | rm -f conftest.er1 | |
10151 | cat conftest.err >&5 | |
10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10153 | (exit $ac_status); } && | |
10154 | { ac_try='test -z "$ac_c_werror_flag" | |
10155 | || test ! -s conftest.err' | |
10156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10157 | (eval $ac_try) 2>&5 | |
10158 | ac_status=$? | |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); }; } && | |
10161 | { ac_try='test -s conftest$ac_exeext' | |
10162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10163 | (eval $ac_try) 2>&5 | |
10164 | ac_status=$? | |
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10166 | (exit $ac_status); }; }; then | |
6c7a06a3 TT |
10167 | am_cv_lib_iconv=yes |
10168 | am_cv_func_iconv=yes | |
d542061a UW |
10169 | else |
10170 | echo "$as_me: failed program was:" >&5 | |
10171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10172 | ||
10173 | fi | |
10174 | rm -f conftest.err conftest.$ac_objext \ | |
10175 | conftest$ac_exeext conftest.$ac_ext | |
6c7a06a3 | 10176 | LIBS="$am_save_LIBS" |
94ae1714 | 10177 | CPPFLAGS="$am_save_CPPFLAGS" |
77f120bf | 10178 | fi |
94ae1714 TT |
10179 | |
10180 | # If that didn't work, try to find libiconv in the build tree. | |
6c7a06a3 TT |
10181 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then |
10182 | am_save_LIBS="$LIBS" | |
10183 | am_save_CPPFLAGS="$CPPFLAGS" | |
10184 | LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv" | |
10185 | CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE" | |
10186 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
10187 | /* confdefs.h. */ |
10188 | _ACEOF | |
10189 | cat confdefs.h >>conftest.$ac_ext | |
10190 | cat >>conftest.$ac_ext <<_ACEOF | |
10191 | /* end confdefs.h. */ | |
6c7a06a3 TT |
10192 | #include <stdlib.h> |
10193 | #include <iconv.h> | |
bec39cab AC |
10194 | int |
10195 | main () | |
10196 | { | |
6c7a06a3 TT |
10197 | iconv_t cd = iconv_open("",""); |
10198 | iconv(cd,NULL,NULL,NULL,NULL); | |
10199 | iconv_close(cd); | |
bec39cab AC |
10200 | ; |
10201 | return 0; | |
10202 | } | |
10203 | _ACEOF | |
b4e70030 | 10204 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
10205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10206 | (eval $ac_link) 2>conftest.er1 | |
10207 | ac_status=$? | |
10208 | grep -v '^ *+' conftest.er1 >conftest.err | |
10209 | rm -f conftest.er1 | |
10210 | cat conftest.err >&5 | |
10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10212 | (exit $ac_status); } && | |
b4e70030 JB |
10213 | { ac_try='test -z "$ac_c_werror_flag" |
10214 | || test ! -s conftest.err' | |
bec39cab AC |
10215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10216 | (eval $ac_try) 2>&5 | |
10217 | ac_status=$? | |
10218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10219 | (exit $ac_status); }; } && | |
10220 | { ac_try='test -s conftest$ac_exeext' | |
10221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10222 | (eval $ac_try) 2>&5 | |
10223 | ac_status=$? | |
10224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10225 | (exit $ac_status); }; }; then | |
94ae1714 TT |
10226 | am_cv_use_build_libiconv=yes |
10227 | am_cv_lib_iconv=yes | |
6c7a06a3 | 10228 | am_cv_func_iconv=yes |
627af7ea | 10229 | else |
bec39cab AC |
10230 | echo "$as_me: failed program was:" >&5 |
10231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 10232 | |
627af7ea | 10233 | fi |
bec39cab | 10234 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 | 10235 | conftest$ac_exeext conftest.$ac_ext |
6c7a06a3 | 10236 | LIBS="$am_save_LIBS" |
fc3b640d | 10237 | CPPFLAGS="$am_save_CPPFLAGS" |
6c7a06a3 TT |
10238 | fi |
10239 | ||
10240 | fi | |
10241 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
10242 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
94ae1714 TT |
10243 | |
10244 | # Set the various flags based on the cache variables. We can't rely | |
10245 | # on the flags to remain set from the above code, due to caching. | |
fc3b640d TT |
10246 | LIBICONV= |
10247 | if test "$am_cv_lib_iconv" = yes; then | |
10248 | LIBICONV="-liconv" | |
94ae1714 TT |
10249 | else |
10250 | LIBICONV_LIBDIR= | |
10251 | LIBICONV_INCLUDE= | |
fc3b640d TT |
10252 | fi |
10253 | if test "$am_cv_use_build_libiconv" = yes; then | |
10254 | LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR" | |
10255 | LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE" | |
10256 | fi | |
10257 | CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | |
10258 | LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV" | |
94ae1714 | 10259 | |
6c7a06a3 TT |
10260 | if test "$am_cv_func_iconv" = yes; then |
10261 | ||
10262 | cat >>confdefs.h <<\_ACEOF | |
10263 | #define HAVE_ICONV 1 | |
10264 | _ACEOF | |
10265 | ||
10266 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
10267 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
10268 | if test "${am_cv_proto_iconv+set}" = set; then | |
10269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10270 | else | |
10271 | ||
10272 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
10273 | /* confdefs.h. */ |
10274 | _ACEOF | |
10275 | cat confdefs.h >>conftest.$ac_ext | |
10276 | cat >>conftest.$ac_ext <<_ACEOF | |
10277 | /* end confdefs.h. */ | |
10278 | ||
6c7a06a3 TT |
10279 | #include <stdlib.h> |
10280 | #include <iconv.h> | |
10281 | extern | |
b4e70030 | 10282 | #ifdef __cplusplus |
6c7a06a3 | 10283 | "C" |
b4e70030 | 10284 | #endif |
6c7a06a3 TT |
10285 | #if defined(__STDC__) || defined(__cplusplus) |
10286 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
10287 | #else | |
10288 | size_t iconv(); | |
10289 | #endif | |
10290 | ||
b4e70030 JB |
10291 | int |
10292 | main () | |
10293 | { | |
6c7a06a3 | 10294 | |
b4e70030 JB |
10295 | ; |
10296 | return 0; | |
10297 | } | |
10298 | _ACEOF | |
6c7a06a3 TT |
10299 | rm -f conftest.$ac_objext |
10300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10301 | (eval $ac_compile) 2>conftest.er1 | |
b4e70030 JB |
10302 | ac_status=$? |
10303 | grep -v '^ *+' conftest.er1 >conftest.err | |
10304 | rm -f conftest.er1 | |
10305 | cat conftest.err >&5 | |
10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10307 | (exit $ac_status); } && | |
10308 | { ac_try='test -z "$ac_c_werror_flag" | |
10309 | || test ! -s conftest.err' | |
10310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10311 | (eval $ac_try) 2>&5 | |
10312 | ac_status=$? | |
10313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10314 | (exit $ac_status); }; } && | |
6c7a06a3 | 10315 | { ac_try='test -s conftest.$ac_objext' |
b4e70030 JB |
10316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10317 | (eval $ac_try) 2>&5 | |
10318 | ac_status=$? | |
10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10320 | (exit $ac_status); }; }; then | |
6c7a06a3 | 10321 | am_cv_proto_iconv_arg1="" |
4e8d927d | 10322 | else |
b4e70030 JB |
10323 | echo "$as_me: failed program was:" >&5 |
10324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10325 | ||
6c7a06a3 | 10326 | am_cv_proto_iconv_arg1="const" |
b4e70030 | 10327 | fi |
6c7a06a3 TT |
10328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10329 | 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);" | |
10330 | fi | |
10331 | ||
10332 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
10333 | echo "$as_me:$LINENO: result: ${ac_t:- | |
10334 | }$am_cv_proto_iconv" >&5 | |
10335 | echo "${ECHO_T}${ac_t:- | |
10336 | }$am_cv_proto_iconv" >&6 | |
10337 | ||
10338 | cat >>confdefs.h <<_ACEOF | |
10339 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
10340 | _ACEOF | |
10341 | ||
10342 | fi | |
6c7a06a3 TT |
10343 | |
10344 | ||
10345 | # On alpha-osf, it appears that libtermcap and libcurses are not compatible. | |
10346 | # There is a very specific comment in /usr/include/curses.h explaining that | |
10347 | # termcap routines built into libcurses must not be used. | |
10348 | # | |
10349 | # The symptoms we observed so far is GDB unexpectedly changing | |
10350 | # the terminal settings when tgetent is called - this is particularly | |
10351 | # visible as the output is missing carriage returns, and so rapidly | |
10352 | # becomes very hard to read. | |
10353 | # | |
10354 | # The readline configure script has already decided that libtermcap | |
10355 | # was enough for its purposes, and so decided to build readline using | |
10356 | # libtermcap. Since the TUI mode requires curses, building GDB with | |
10357 | # TUI enabled results in both libraries to be used at the same time, | |
10358 | # which is not allowed. This basically means that GDB with TUI is | |
10359 | # broken on alpha-osf. | |
10360 | ||
10361 | case $host_os in | |
10362 | alpha*-*-osf* ) | |
10363 | if "$enable_tui" = "yes"; then | |
10364 | { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5 | |
10365 | echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;} | |
10366 | { (exit 1); exit 1; }; } | |
10367 | fi | |
10368 | if "$enable_tui" = "auto"; then | |
10369 | enable_tui=no | |
10370 | fi | |
10371 | ;; | |
10372 | esac | |
10373 | ||
cb01cfba | 10374 | # For the TUI, we need enhanced curses functionality. |
bd8a8e1b | 10375 | if test x"$enable_tui" != xno; then |
cb01cfba JB |
10376 | prefer_curses=yes |
10377 | fi | |
10378 | ||
10379 | curses_found=no | |
10380 | if test x"$prefer_curses" = xyes; then | |
10381 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
10382 | # curses library because the latter might not provide all the | |
10383 | # functionality we need. However, this leads to problems on systems | |
10384 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
10385 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
10386 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
10387 | # a situation. | |
10388 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 | |
6c7a06a3 TT |
10389 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 |
10390 | if test "${ac_cv_search_waddstr+set}" = set; then | |
10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10392 | else | |
10393 | ac_func_search_save_LIBS=$LIBS | |
10394 | ac_cv_search_waddstr=no | |
10395 | cat >conftest.$ac_ext <<_ACEOF | |
10396 | /* confdefs.h. */ | |
10397 | _ACEOF | |
10398 | cat confdefs.h >>conftest.$ac_ext | |
10399 | cat >>conftest.$ac_ext <<_ACEOF | |
10400 | /* end confdefs.h. */ | |
10401 | ||
10402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10403 | #ifdef __cplusplus | |
10404 | extern "C" | |
10405 | #endif | |
10406 | /* We use char because int might match the return type of a gcc2 | |
10407 | builtin and then its argument prototype would still apply. */ | |
10408 | char waddstr (); | |
10409 | int | |
10410 | main () | |
10411 | { | |
10412 | waddstr (); | |
10413 | ; | |
10414 | return 0; | |
10415 | } | |
10416 | _ACEOF | |
10417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10419 | (eval $ac_link) 2>conftest.er1 | |
10420 | ac_status=$? | |
10421 | grep -v '^ *+' conftest.er1 >conftest.err | |
10422 | rm -f conftest.er1 | |
10423 | cat conftest.err >&5 | |
10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10425 | (exit $ac_status); } && | |
10426 | { ac_try='test -z "$ac_c_werror_flag" | |
10427 | || test ! -s conftest.err' | |
10428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10429 | (eval $ac_try) 2>&5 | |
10430 | ac_status=$? | |
10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10432 | (exit $ac_status); }; } && | |
10433 | { ac_try='test -s conftest$ac_exeext' | |
10434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10435 | (eval $ac_try) 2>&5 | |
10436 | ac_status=$? | |
10437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10438 | (exit $ac_status); }; }; then | |
10439 | ac_cv_search_waddstr="none required" | |
10440 | else | |
10441 | echo "$as_me: failed program was:" >&5 | |
10442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10443 | ||
10444 | fi | |
10445 | rm -f conftest.err conftest.$ac_objext \ | |
10446 | conftest$ac_exeext conftest.$ac_ext | |
10447 | if test "$ac_cv_search_waddstr" = no; then | |
10448 | for ac_lib in ncurses cursesX curses; do | |
10449 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10450 | cat >conftest.$ac_ext <<_ACEOF | |
10451 | /* confdefs.h. */ | |
10452 | _ACEOF | |
10453 | cat confdefs.h >>conftest.$ac_ext | |
10454 | cat >>conftest.$ac_ext <<_ACEOF | |
10455 | /* end confdefs.h. */ | |
10456 | ||
10457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10458 | #ifdef __cplusplus | |
10459 | extern "C" | |
10460 | #endif | |
10461 | /* We use char because int might match the return type of a gcc2 | |
10462 | builtin and then its argument prototype would still apply. */ | |
10463 | char waddstr (); | |
10464 | int | |
10465 | main () | |
10466 | { | |
10467 | waddstr (); | |
10468 | ; | |
10469 | return 0; | |
10470 | } | |
10471 | _ACEOF | |
10472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10474 | (eval $ac_link) 2>conftest.er1 | |
10475 | ac_status=$? | |
10476 | grep -v '^ *+' conftest.er1 >conftest.err | |
10477 | rm -f conftest.er1 | |
10478 | cat conftest.err >&5 | |
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10480 | (exit $ac_status); } && | |
10481 | { ac_try='test -z "$ac_c_werror_flag" | |
10482 | || test ! -s conftest.err' | |
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10484 | (eval $ac_try) 2>&5 | |
10485 | ac_status=$? | |
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10487 | (exit $ac_status); }; } && | |
10488 | { ac_try='test -s conftest$ac_exeext' | |
10489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10490 | (eval $ac_try) 2>&5 | |
10491 | ac_status=$? | |
10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10493 | (exit $ac_status); }; }; then | |
10494 | ac_cv_search_waddstr="-l$ac_lib" | |
10495 | break | |
10496 | else | |
10497 | echo "$as_me: failed program was:" >&5 | |
10498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10499 | ||
10500 | fi | |
10501 | rm -f conftest.err conftest.$ac_objext \ | |
10502 | conftest$ac_exeext conftest.$ac_ext | |
10503 | done | |
10504 | fi | |
10505 | LIBS=$ac_func_search_save_LIBS | |
10506 | fi | |
10507 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 | |
10508 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
10509 | if test "$ac_cv_search_waddstr" != no; then | |
10510 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
10511 | ||
10512 | fi | |
10513 | ||
10514 | ||
cb01cfba JB |
10515 | if test "$ac_cv_search_waddstr" != no; then |
10516 | curses_found=yes | |
10517 | fi | |
10518 | fi | |
10519 | ||
10520 | # Check whether we should enable the TUI, but only do so if we really | |
10521 | # can. | |
10522 | if test x"$enable_tui" != xno; then | |
10523 | if test -d $srcdir/tui; then | |
10524 | if test "$curses_found" != no; then | |
6c7a06a3 TT |
10525 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
10526 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
10527 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
10528 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
10529 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
10530 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
10531 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
10532 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
10533 | else | |
10534 | if test x"$enable_tui" = xyes; then | |
10535 | { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5 | |
10536 | echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;} | |
10537 | { (exit 1); exit 1; }; } | |
10538 | else | |
10539 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 | |
10540 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
10541 | fi | |
10542 | fi | |
10543 | fi | |
10544 | fi | |
10545 | ||
10546 | # Since GDB uses Readline, we need termcap functionality. In many | |
10547 | # cases this will be provided by the curses library, but some systems | |
10548 | # have a seperate termcap library, or no curses library at all. | |
10549 | ||
10550 | case $host_os in | |
10551 | cygwin*) | |
10552 | if test -d $srcdir/libtermcap; then | |
10553 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
10554 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
10555 | fi ;; | |
10556 | go32* | *djgpp*) | |
10557 | ac_cv_search_tgetent="none required" | |
10558 | ;; | |
10559 | *mingw32*) | |
10560 | ac_cv_search_tgetent="none required" | |
10561 | CONFIG_OBS="$CONFIG_OBS windows-termcap.o" | |
10562 | ;; | |
10563 | esac | |
10564 | ||
10565 | # These are the libraries checked by Readline. | |
10566 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
10567 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
10568 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10570 | else | |
10571 | ac_func_search_save_LIBS=$LIBS | |
10572 | ac_cv_search_tgetent=no | |
10573 | cat >conftest.$ac_ext <<_ACEOF | |
10574 | /* confdefs.h. */ | |
10575 | _ACEOF | |
10576 | cat confdefs.h >>conftest.$ac_ext | |
10577 | cat >>conftest.$ac_ext <<_ACEOF | |
10578 | /* end confdefs.h. */ | |
10579 | ||
10580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10581 | #ifdef __cplusplus | |
10582 | extern "C" | |
10583 | #endif | |
10584 | /* We use char because int might match the return type of a gcc2 | |
10585 | builtin and then its argument prototype would still apply. */ | |
10586 | char tgetent (); | |
10587 | int | |
10588 | main () | |
10589 | { | |
10590 | tgetent (); | |
10591 | ; | |
10592 | return 0; | |
10593 | } | |
10594 | _ACEOF | |
10595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10597 | (eval $ac_link) 2>conftest.er1 | |
10598 | ac_status=$? | |
10599 | grep -v '^ *+' conftest.er1 >conftest.err | |
10600 | rm -f conftest.er1 | |
10601 | cat conftest.err >&5 | |
10602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10603 | (exit $ac_status); } && | |
10604 | { ac_try='test -z "$ac_c_werror_flag" | |
10605 | || test ! -s conftest.err' | |
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10607 | (eval $ac_try) 2>&5 | |
10608 | ac_status=$? | |
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10610 | (exit $ac_status); }; } && | |
10611 | { ac_try='test -s conftest$ac_exeext' | |
10612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10613 | (eval $ac_try) 2>&5 | |
10614 | ac_status=$? | |
10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10616 | (exit $ac_status); }; }; then | |
10617 | ac_cv_search_tgetent="none required" | |
10618 | else | |
10619 | echo "$as_me: failed program was:" >&5 | |
10620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10621 | ||
10622 | fi | |
10623 | rm -f conftest.err conftest.$ac_objext \ | |
10624 | conftest$ac_exeext conftest.$ac_ext | |
10625 | if test "$ac_cv_search_tgetent" = no; then | |
10626 | for ac_lib in termcap tinfo curses ncurses; do | |
10627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10628 | cat >conftest.$ac_ext <<_ACEOF | |
10629 | /* confdefs.h. */ | |
10630 | _ACEOF | |
10631 | cat confdefs.h >>conftest.$ac_ext | |
10632 | cat >>conftest.$ac_ext <<_ACEOF | |
10633 | /* end confdefs.h. */ | |
10634 | ||
10635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10636 | #ifdef __cplusplus | |
10637 | extern "C" | |
10638 | #endif | |
10639 | /* We use char because int might match the return type of a gcc2 | |
10640 | builtin and then its argument prototype would still apply. */ | |
10641 | char tgetent (); | |
10642 | int | |
10643 | main () | |
10644 | { | |
10645 | tgetent (); | |
10646 | ; | |
10647 | return 0; | |
10648 | } | |
10649 | _ACEOF | |
10650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10652 | (eval $ac_link) 2>conftest.er1 | |
10653 | ac_status=$? | |
10654 | grep -v '^ *+' conftest.er1 >conftest.err | |
10655 | rm -f conftest.er1 | |
10656 | cat conftest.err >&5 | |
10657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10658 | (exit $ac_status); } && | |
10659 | { ac_try='test -z "$ac_c_werror_flag" | |
10660 | || test ! -s conftest.err' | |
10661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10662 | (eval $ac_try) 2>&5 | |
10663 | ac_status=$? | |
10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10665 | (exit $ac_status); }; } && | |
10666 | { ac_try='test -s conftest$ac_exeext' | |
10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10668 | (eval $ac_try) 2>&5 | |
10669 | ac_status=$? | |
10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10671 | (exit $ac_status); }; }; then | |
10672 | ac_cv_search_tgetent="-l$ac_lib" | |
10673 | break | |
10674 | else | |
10675 | echo "$as_me: failed program was:" >&5 | |
10676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10677 | ||
10678 | fi | |
10679 | rm -f conftest.err conftest.$ac_objext \ | |
10680 | conftest$ac_exeext conftest.$ac_ext | |
10681 | done | |
10682 | fi | |
10683 | LIBS=$ac_func_search_save_LIBS | |
10684 | fi | |
10685 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
10686 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
10687 | if test "$ac_cv_search_tgetent" != no; then | |
10688 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
10689 | ||
06825bd1 MK |
10690 | fi |
10691 | ||
06825bd1 | 10692 | |
bec39cab AC |
10693 | if test "$ac_cv_search_tgetent" = no; then |
10694 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
10695 | echo "$as_me: error: no termcap library found" >&2;} | |
10696 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
10697 | fi |
10698 | ||
3841debe | 10699 | |
6a30b0a5 AS |
10700 | # Check whether --with-system-readline or --without-system-readline was given. |
10701 | if test "${with_system_readline+set}" = set; then | |
10702 | withval="$with_system_readline" | |
10703 | ||
10704 | fi; | |
10705 | ||
10706 | if test "$with_system_readline" = yes; then | |
10707 | READLINE=-lreadline | |
10708 | READLINE_DEPS= | |
10709 | READLINE_CFLAGS= | |
10710 | else | |
10711 | READLINE='$(READLINE_DIR)/libreadline.a' | |
10712 | READLINE_DEPS='$(READLINE)' | |
10713 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
10714 | fi | |
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
5c39566f DJ |
10720 | # Check whether --with-expat or --without-expat was given. |
10721 | if test "${with_expat+set}" = set; then | |
10722 | withval="$with_expat" | |
10723 | ||
10724 | else | |
10725 | with_expat=auto | |
10726 | fi; | |
10727 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
10728 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
10729 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
10730 | echo "${ECHO_T}$with_expat" >&6 | |
10731 | ||
10732 | if test "${with_expat}" = no; then | |
10733 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
10734 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
10735 | HAVE_LIBEXPAT=no | |
10736 | else | |
10737 | ||
3841debe DJ |
10738 | if test "X$prefix" = "XNONE"; then |
10739 | acl_final_prefix="$ac_default_prefix" | |
10740 | else | |
10741 | acl_final_prefix="$prefix" | |
10742 | fi | |
10743 | if test "X$exec_prefix" = "XNONE"; then | |
10744 | acl_final_exec_prefix='${prefix}' | |
10745 | else | |
10746 | acl_final_exec_prefix="$exec_prefix" | |
10747 | fi | |
10748 | acl_save_prefix="$prefix" | |
10749 | prefix="$acl_final_prefix" | |
10750 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
10751 | prefix="$acl_save_prefix" | |
10752 | ||
10753 | ||
10754 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10755 | if test "${with_gnu_ld+set}" = set; then | |
10756 | withval="$with_gnu_ld" | |
10757 | test "$withval" = no || with_gnu_ld=yes | |
10758 | else | |
10759 | with_gnu_ld=no | |
10760 | fi; | |
10761 | # Prepare PATH_SEPARATOR. | |
10762 | # The user is always right. | |
10763 | if test "${PATH_SEPARATOR+set}" != set; then | |
10764 | echo "#! /bin/sh" >conf$$.sh | |
10765 | echo "exit 0" >>conf$$.sh | |
10766 | chmod +x conf$$.sh | |
10767 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10768 | PATH_SEPARATOR=';' | |
10769 | else | |
10770 | PATH_SEPARATOR=: | |
10771 | fi | |
10772 | rm -f conf$$.sh | |
10773 | fi | |
10774 | ac_prog=ld | |
10775 | if test "$GCC" = yes; then | |
10776 | # Check if gcc -print-prog-name=ld gives a path. | |
10777 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
10778 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
10779 | case $host in | |
10780 | *-*-mingw*) | |
10781 | # gcc leaves a trailing carriage return which upsets mingw | |
10782 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10783 | *) | |
10784 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10785 | esac | |
10786 | case $ac_prog in | |
10787 | # Accept absolute paths. | |
10788 | [\\/]* | [A-Za-z]:[\\/]*) | |
10789 | re_direlt='/[^/][^/]*/\.\./' | |
10790 | # Canonicalize the path of ld | |
10791 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
10792 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10793 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
10794 | done | |
10795 | test -z "$LD" && LD="$ac_prog" | |
10796 | ;; | |
10797 | "") | |
10798 | # If it fails, then pretend we aren't using GCC. | |
10799 | ac_prog=ld | |
10800 | ;; | |
10801 | *) | |
10802 | # If it is relative, then search for the first ld in PATH. | |
10803 | with_gnu_ld=unknown | |
10804 | ;; | |
10805 | esac | |
10806 | elif test "$with_gnu_ld" = yes; then | |
10807 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10808 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10809 | else | |
10810 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10811 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10812 | fi | |
10813 | if test "${acl_cv_path_LD+set}" = set; then | |
10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10815 | else | |
10816 | if test -z "$LD"; then | |
10817 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
10818 | for ac_dir in $PATH; do | |
10819 | test -z "$ac_dir" && ac_dir=. | |
10820 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10821 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
10822 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10823 | # but apparently some GNU ld's only accept -v. | |
10824 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10825 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
10826 | test "$with_gnu_ld" != no && break | |
10827 | else | |
10828 | test "$with_gnu_ld" != yes && break | |
10829 | fi | |
10830 | fi | |
10831 | done | |
10832 | IFS="$ac_save_ifs" | |
10833 | else | |
10834 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
10835 | fi | |
10836 | fi | |
10837 | ||
10838 | LD="$acl_cv_path_LD" | |
10839 | if test -n "$LD"; then | |
10840 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10841 | echo "${ECHO_T}$LD" >&6 | |
10842 | else | |
10843 | echo "$as_me:$LINENO: result: no" >&5 | |
10844 | echo "${ECHO_T}no" >&6 | |
10845 | fi | |
10846 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10847 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10848 | { (exit 1); exit 1; }; } | |
10849 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10850 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10851 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10853 | else | |
10854 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
10855 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
10856 | acl_cv_prog_gnu_ld=yes | |
10857 | else | |
10858 | acl_cv_prog_gnu_ld=no | |
10859 | fi | |
10860 | fi | |
10861 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
10862 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
10863 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
10864 | ||
10865 | ||
10866 | ||
10867 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
10868 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
10869 | if test "${acl_cv_rpath+set}" = set; then | |
10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10871 | else | |
10872 | ||
10873 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
10874 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
10875 | . ./conftest.sh | |
10876 | rm -f ./conftest.sh | |
10877 | acl_cv_rpath=done | |
10878 | ||
10879 | fi | |
10880 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
10881 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
10882 | wl="$acl_cv_wl" | |
10883 | libext="$acl_cv_libext" | |
10884 | shlibext="$acl_cv_shlibext" | |
10885 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
10886 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
10887 | hardcode_direct="$acl_cv_hardcode_direct" | |
10888 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
10889 | # Check whether --enable-rpath or --disable-rpath was given. | |
10890 | if test "${enable_rpath+set}" = set; then | |
10891 | enableval="$enable_rpath" | |
10892 | : | |
10893 | else | |
10894 | enable_rpath=yes | |
10895 | fi; | |
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | use_additional=yes | |
10906 | ||
10907 | acl_save_prefix="$prefix" | |
10908 | prefix="$acl_final_prefix" | |
10909 | acl_save_exec_prefix="$exec_prefix" | |
10910 | exec_prefix="$acl_final_exec_prefix" | |
10911 | ||
10912 | eval additional_includedir=\"$includedir\" | |
10913 | eval additional_libdir=\"$libdir\" | |
10914 | ||
10915 | exec_prefix="$acl_save_exec_prefix" | |
10916 | prefix="$acl_save_prefix" | |
10917 | ||
10918 | ||
10919 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
10920 | if test "${with_libexpat_prefix+set}" = set; then | |
10921 | withval="$with_libexpat_prefix" | |
10922 | ||
10923 | if test "X$withval" = "Xno"; then | |
10924 | use_additional=no | |
10925 | else | |
10926 | if test "X$withval" = "X"; then | |
10927 | ||
10928 | acl_save_prefix="$prefix" | |
10929 | prefix="$acl_final_prefix" | |
10930 | acl_save_exec_prefix="$exec_prefix" | |
10931 | exec_prefix="$acl_final_exec_prefix" | |
10932 | ||
10933 | eval additional_includedir=\"$includedir\" | |
10934 | eval additional_libdir=\"$libdir\" | |
10935 | ||
10936 | exec_prefix="$acl_save_exec_prefix" | |
10937 | prefix="$acl_save_prefix" | |
10938 | ||
10939 | else | |
10940 | additional_includedir="$withval/include" | |
10941 | additional_libdir="$withval/lib" | |
10942 | fi | |
10943 | fi | |
10944 | ||
10945 | fi; | |
10946 | LIBEXPAT= | |
10947 | LTLIBEXPAT= | |
10948 | INCEXPAT= | |
10949 | rpathdirs= | |
10950 | ltrpathdirs= | |
10951 | names_already_handled= | |
10952 | names_next_round='expat ' | |
10953 | while test -n "$names_next_round"; do | |
10954 | names_this_round="$names_next_round" | |
10955 | names_next_round= | |
10956 | for name in $names_this_round; do | |
10957 | already_handled= | |
10958 | for n in $names_already_handled; do | |
10959 | if test "$n" = "$name"; then | |
10960 | already_handled=yes | |
10961 | break | |
10962 | fi | |
10963 | done | |
10964 | if test -z "$already_handled"; then | |
10965 | names_already_handled="$names_already_handled $name" | |
10966 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
10967 | eval value=\"\$HAVE_LIB$uppername\" | |
10968 | if test -n "$value"; then | |
10969 | if test "$value" = yes; then | |
10970 | eval value=\"\$LIB$uppername\" | |
10971 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
10972 | eval value=\"\$LTLIB$uppername\" | |
10973 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
10974 | else | |
10975 | : | |
10976 | fi | |
10977 | else | |
10978 | found_dir= | |
10979 | found_la= | |
10980 | found_so= | |
10981 | found_a= | |
10982 | if test $use_additional = yes; then | |
10983 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
10984 | found_dir="$additional_libdir" | |
10985 | found_so="$additional_libdir/lib$name.$shlibext" | |
10986 | if test -f "$additional_libdir/lib$name.la"; then | |
10987 | found_la="$additional_libdir/lib$name.la" | |
10988 | fi | |
10989 | else | |
10990 | if test -f "$additional_libdir/lib$name.$libext"; then | |
10991 | found_dir="$additional_libdir" | |
10992 | found_a="$additional_libdir/lib$name.$libext" | |
10993 | if test -f "$additional_libdir/lib$name.la"; then | |
10994 | found_la="$additional_libdir/lib$name.la" | |
10995 | fi | |
10996 | fi | |
10997 | fi | |
10998 | fi | |
10999 | if test "X$found_dir" = "X"; then | |
11000 | for x in $LDFLAGS $LTLIBEXPAT; do | |
11001 | ||
11002 | acl_save_prefix="$prefix" | |
11003 | prefix="$acl_final_prefix" | |
11004 | acl_save_exec_prefix="$exec_prefix" | |
11005 | exec_prefix="$acl_final_exec_prefix" | |
11006 | eval x=\"$x\" | |
11007 | exec_prefix="$acl_save_exec_prefix" | |
11008 | prefix="$acl_save_prefix" | |
11009 | ||
11010 | case "$x" in | |
11011 | -L*) | |
11012 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
11013 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
11014 | found_dir="$dir" | |
11015 | found_so="$dir/lib$name.$shlibext" | |
11016 | if test -f "$dir/lib$name.la"; then | |
11017 | found_la="$dir/lib$name.la" | |
11018 | fi | |
11019 | else | |
11020 | if test -f "$dir/lib$name.$libext"; then | |
11021 | found_dir="$dir" | |
11022 | found_a="$dir/lib$name.$libext" | |
11023 | if test -f "$dir/lib$name.la"; then | |
11024 | found_la="$dir/lib$name.la" | |
11025 | fi | |
11026 | fi | |
11027 | fi | |
11028 | ;; | |
11029 | esac | |
11030 | if test "X$found_dir" != "X"; then | |
11031 | break | |
11032 | fi | |
11033 | done | |
11034 | fi | |
11035 | if test "X$found_dir" != "X"; then | |
11036 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
11037 | if test "X$found_so" != "X"; then | |
11038 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
11039 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
11040 | else | |
11041 | haveit= | |
11042 | for x in $ltrpathdirs; do | |
11043 | if test "X$x" = "X$found_dir"; then | |
11044 | haveit=yes | |
11045 | break | |
11046 | fi | |
11047 | done | |
11048 | if test -z "$haveit"; then | |
11049 | ltrpathdirs="$ltrpathdirs $found_dir" | |
11050 | fi | |
11051 | if test "$hardcode_direct" = yes; then | |
11052 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
11053 | else | |
11054 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
11055 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
11056 | haveit= | |
11057 | for x in $rpathdirs; do | |
11058 | if test "X$x" = "X$found_dir"; then | |
11059 | haveit=yes | |
11060 | break | |
11061 | fi | |
11062 | done | |
11063 | if test -z "$haveit"; then | |
11064 | rpathdirs="$rpathdirs $found_dir" | |
11065 | fi | |
11066 | else | |
11067 | haveit= | |
11068 | for x in $LDFLAGS $LIBEXPAT; do | |
11069 | ||
11070 | acl_save_prefix="$prefix" | |
11071 | prefix="$acl_final_prefix" | |
11072 | acl_save_exec_prefix="$exec_prefix" | |
11073 | exec_prefix="$acl_final_exec_prefix" | |
11074 | eval x=\"$x\" | |
11075 | exec_prefix="$acl_save_exec_prefix" | |
11076 | prefix="$acl_save_prefix" | |
11077 | ||
11078 | if test "X$x" = "X-L$found_dir"; then | |
11079 | haveit=yes | |
11080 | break | |
11081 | fi | |
11082 | done | |
11083 | if test -z "$haveit"; then | |
11084 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
11085 | fi | |
11086 | if test "$hardcode_minus_L" != no; then | |
11087 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
11088 | else | |
11089 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
11090 | fi | |
11091 | fi | |
11092 | fi | |
11093 | fi | |
11094 | else | |
11095 | if test "X$found_a" != "X"; then | |
11096 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
11097 | else | |
11098 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
11099 | fi | |
11100 | fi | |
11101 | additional_includedir= | |
11102 | case "$found_dir" in | |
11103 | */lib | */lib/) | |
11104 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
11105 | additional_includedir="$basedir/include" | |
11106 | ;; | |
11107 | esac | |
11108 | if test "X$additional_includedir" != "X"; then | |
11109 | if test "X$additional_includedir" != "X/usr/include"; then | |
11110 | haveit= | |
11111 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
11112 | if test -n "$GCC"; then | |
11113 | case $host_os in | |
11114 | linux*) haveit=yes;; | |
11115 | esac | |
11116 | fi | |
11117 | fi | |
11118 | if test -z "$haveit"; then | |
11119 | for x in $CPPFLAGS $INCEXPAT; do | |
11120 | ||
11121 | acl_save_prefix="$prefix" | |
11122 | prefix="$acl_final_prefix" | |
11123 | acl_save_exec_prefix="$exec_prefix" | |
11124 | exec_prefix="$acl_final_exec_prefix" | |
11125 | eval x=\"$x\" | |
11126 | exec_prefix="$acl_save_exec_prefix" | |
11127 | prefix="$acl_save_prefix" | |
11128 | ||
11129 | if test "X$x" = "X-I$additional_includedir"; then | |
11130 | haveit=yes | |
11131 | break | |
11132 | fi | |
11133 | done | |
11134 | if test -z "$haveit"; then | |
11135 | if test -d "$additional_includedir"; then | |
11136 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
11137 | fi | |
11138 | fi | |
11139 | fi | |
11140 | fi | |
11141 | fi | |
11142 | if test -n "$found_la"; then | |
11143 | save_libdir="$libdir" | |
11144 | case "$found_la" in | |
11145 | */* | *\\*) . "$found_la" ;; | |
11146 | *) . "./$found_la" ;; | |
11147 | esac | |
11148 | libdir="$save_libdir" | |
11149 | for dep in $dependency_libs; do | |
11150 | case "$dep" in | |
11151 | -L*) | |
11152 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
11153 | if test "X$additional_libdir" != "X/usr/lib"; then | |
11154 | haveit= | |
11155 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
11156 | if test -n "$GCC"; then | |
11157 | case $host_os in | |
11158 | linux*) haveit=yes;; | |
11159 | esac | |
11160 | fi | |
11161 | fi | |
11162 | if test -z "$haveit"; then | |
11163 | haveit= | |
11164 | for x in $LDFLAGS $LIBEXPAT; do | |
11165 | ||
11166 | acl_save_prefix="$prefix" | |
11167 | prefix="$acl_final_prefix" | |
11168 | acl_save_exec_prefix="$exec_prefix" | |
11169 | exec_prefix="$acl_final_exec_prefix" | |
11170 | eval x=\"$x\" | |
11171 | exec_prefix="$acl_save_exec_prefix" | |
11172 | prefix="$acl_save_prefix" | |
11173 | ||
11174 | if test "X$x" = "X-L$additional_libdir"; then | |
11175 | haveit=yes | |
11176 | break | |
11177 | fi | |
11178 | done | |
11179 | if test -z "$haveit"; then | |
11180 | if test -d "$additional_libdir"; then | |
11181 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
11182 | fi | |
11183 | fi | |
11184 | haveit= | |
11185 | for x in $LDFLAGS $LTLIBEXPAT; do | |
11186 | ||
11187 | acl_save_prefix="$prefix" | |
11188 | prefix="$acl_final_prefix" | |
11189 | acl_save_exec_prefix="$exec_prefix" | |
11190 | exec_prefix="$acl_final_exec_prefix" | |
11191 | eval x=\"$x\" | |
11192 | exec_prefix="$acl_save_exec_prefix" | |
11193 | prefix="$acl_save_prefix" | |
11194 | ||
11195 | if test "X$x" = "X-L$additional_libdir"; then | |
11196 | haveit=yes | |
11197 | break | |
11198 | fi | |
11199 | done | |
11200 | if test -z "$haveit"; then | |
11201 | if test -d "$additional_libdir"; then | |
11202 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
11203 | fi | |
11204 | fi | |
11205 | fi | |
11206 | fi | |
11207 | ;; | |
11208 | -R*) | |
11209 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
11210 | if test "$enable_rpath" != no; then | |
11211 | haveit= | |
11212 | for x in $rpathdirs; do | |
11213 | if test "X$x" = "X$dir"; then | |
11214 | haveit=yes | |
11215 | break | |
11216 | fi | |
11217 | done | |
11218 | if test -z "$haveit"; then | |
11219 | rpathdirs="$rpathdirs $dir" | |
11220 | fi | |
11221 | haveit= | |
11222 | for x in $ltrpathdirs; do | |
11223 | if test "X$x" = "X$dir"; then | |
11224 | haveit=yes | |
11225 | break | |
11226 | fi | |
11227 | done | |
11228 | if test -z "$haveit"; then | |
11229 | ltrpathdirs="$ltrpathdirs $dir" | |
11230 | fi | |
11231 | fi | |
11232 | ;; | |
11233 | -l*) | |
11234 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
11235 | ;; | |
11236 | *.la) | |
11237 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
11238 | ;; | |
11239 | *) | |
11240 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
11241 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
11242 | ;; | |
11243 | esac | |
11244 | done | |
11245 | fi | |
11246 | else | |
11247 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
11248 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
11249 | fi | |
11250 | fi | |
11251 | fi | |
11252 | done | |
11253 | done | |
11254 | if test "X$rpathdirs" != "X"; then | |
11255 | if test -n "$hardcode_libdir_separator"; then | |
11256 | alldirs= | |
11257 | for found_dir in $rpathdirs; do | |
11258 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
11259 | done | |
11260 | acl_save_libdir="$libdir" | |
11261 | libdir="$alldirs" | |
11262 | eval flag=\"$hardcode_libdir_flag_spec\" | |
11263 | libdir="$acl_save_libdir" | |
11264 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
11265 | else | |
11266 | for found_dir in $rpathdirs; do | |
11267 | acl_save_libdir="$libdir" | |
11268 | libdir="$found_dir" | |
11269 | eval flag=\"$hardcode_libdir_flag_spec\" | |
11270 | libdir="$acl_save_libdir" | |
11271 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
11272 | done | |
11273 | fi | |
11274 | fi | |
11275 | if test "X$ltrpathdirs" != "X"; then | |
11276 | for found_dir in $ltrpathdirs; do | |
11277 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
11278 | done | |
11279 | fi | |
11280 | ||
11281 | ||
11282 | ac_save_CPPFLAGS="$CPPFLAGS" | |
11283 | ||
11284 | for element in $INCEXPAT; do | |
11285 | haveit= | |
11286 | for x in $CPPFLAGS; do | |
11287 | ||
11288 | acl_save_prefix="$prefix" | |
11289 | prefix="$acl_final_prefix" | |
11290 | acl_save_exec_prefix="$exec_prefix" | |
11291 | exec_prefix="$acl_final_exec_prefix" | |
11292 | eval x=\"$x\" | |
11293 | exec_prefix="$acl_save_exec_prefix" | |
11294 | prefix="$acl_save_prefix" | |
11295 | ||
11296 | if test "X$x" = "X$element"; then | |
11297 | haveit=yes | |
11298 | break | |
11299 | fi | |
11300 | done | |
11301 | if test -z "$haveit"; then | |
11302 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
11303 | fi | |
11304 | done | |
11305 | ||
11306 | ||
11307 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
11308 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
11309 | if test "${ac_cv_libexpat+set}" = set; then | |
11310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11311 | else | |
11312 | ||
11313 | ac_save_LIBS="$LIBS" | |
11314 | LIBS="$LIBS $LIBEXPAT" | |
11315 | cat >conftest.$ac_ext <<_ACEOF | |
11316 | /* confdefs.h. */ | |
11317 | _ACEOF | |
11318 | cat confdefs.h >>conftest.$ac_ext | |
11319 | cat >>conftest.$ac_ext <<_ACEOF | |
11320 | /* end confdefs.h. */ | |
11321 | #include "expat.h" | |
11322 | int | |
11323 | main () | |
11324 | { | |
11325 | XML_Parser p = XML_ParserCreate (0); | |
11326 | ; | |
11327 | return 0; | |
11328 | } | |
11329 | _ACEOF | |
11330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11332 | (eval $ac_link) 2>conftest.er1 | |
11333 | ac_status=$? | |
11334 | grep -v '^ *+' conftest.er1 >conftest.err | |
11335 | rm -f conftest.er1 | |
11336 | cat conftest.err >&5 | |
11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11338 | (exit $ac_status); } && | |
11339 | { ac_try='test -z "$ac_c_werror_flag" | |
11340 | || test ! -s conftest.err' | |
11341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11342 | (eval $ac_try) 2>&5 | |
11343 | ac_status=$? | |
11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11345 | (exit $ac_status); }; } && | |
11346 | { ac_try='test -s conftest$ac_exeext' | |
11347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11348 | (eval $ac_try) 2>&5 | |
11349 | ac_status=$? | |
11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11351 | (exit $ac_status); }; }; then | |
11352 | ac_cv_libexpat=yes | |
11353 | else | |
11354 | echo "$as_me: failed program was:" >&5 | |
11355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11356 | ||
11357 | ac_cv_libexpat=no | |
11358 | fi | |
11359 | rm -f conftest.err conftest.$ac_objext \ | |
11360 | conftest$ac_exeext conftest.$ac_ext | |
11361 | LIBS="$ac_save_LIBS" | |
11362 | ||
11363 | fi | |
11364 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
11365 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
11366 | if test "$ac_cv_libexpat" = yes; then | |
11367 | HAVE_LIBEXPAT=yes | |
11368 | ||
11369 | cat >>confdefs.h <<\_ACEOF | |
11370 | #define HAVE_LIBEXPAT 1 | |
11371 | _ACEOF | |
11372 | ||
11373 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
11374 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
11375 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
11376 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
11377 | else | |
11378 | HAVE_LIBEXPAT=no | |
11379 | CPPFLAGS="$ac_save_CPPFLAGS" | |
11380 | LIBEXPAT= | |
11381 | LTLIBEXPAT= | |
11382 | fi | |
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
5c39566f DJ |
11389 | if test "$HAVE_LIBEXPAT" != yes; then |
11390 | if test "$with_expat" = yes; then | |
11391 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
11392 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
11393 | { (exit 1); exit 1; }; } | |
11394 | else | |
11395 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
11396 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
11397 | fi | |
11398 | else | |
11399 | save_LIBS=$LIBS | |
11400 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
11401 | |
11402 | for ac_func in XML_StopParser | |
11403 | do | |
11404 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11405 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11406 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11407 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11409 | else | |
11410 | cat >conftest.$ac_ext <<_ACEOF | |
11411 | /* confdefs.h. */ | |
11412 | _ACEOF | |
11413 | cat confdefs.h >>conftest.$ac_ext | |
11414 | cat >>conftest.$ac_ext <<_ACEOF | |
11415 | /* end confdefs.h. */ | |
11416 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11418 | #define $ac_func innocuous_$ac_func | |
11419 | ||
11420 | /* System header to define __stub macros and hopefully few prototypes, | |
11421 | which can conflict with char $ac_func (); below. | |
11422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11423 | <limits.h> exists even on freestanding compilers. */ | |
11424 | ||
11425 | #ifdef __STDC__ | |
11426 | # include <limits.h> | |
11427 | #else | |
11428 | # include <assert.h> | |
11429 | #endif | |
11430 | ||
11431 | #undef $ac_func | |
11432 | ||
11433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11434 | #ifdef __cplusplus | |
11435 | extern "C" | |
11436 | { | |
11437 | #endif | |
11438 | /* We use char because int might match the return type of a gcc2 | |
11439 | builtin and then its argument prototype would still apply. */ | |
11440 | char $ac_func (); | |
11441 | /* The GNU C library defines this for functions which it implements | |
11442 | to always fail with ENOSYS. Some functions are actually named | |
11443 | something starting with __ and the normal name is an alias. */ | |
11444 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11445 | choke me | |
11446 | #else | |
11447 | char (*f) () = $ac_func; | |
11448 | #endif | |
11449 | #ifdef __cplusplus | |
11450 | } | |
11451 | #endif | |
11452 | ||
11453 | int | |
11454 | main () | |
11455 | { | |
11456 | return f != $ac_func; | |
11457 | ; | |
11458 | return 0; | |
11459 | } | |
11460 | _ACEOF | |
11461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11463 | (eval $ac_link) 2>conftest.er1 | |
11464 | ac_status=$? | |
11465 | grep -v '^ *+' conftest.er1 >conftest.err | |
11466 | rm -f conftest.er1 | |
11467 | cat conftest.err >&5 | |
11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11469 | (exit $ac_status); } && | |
11470 | { ac_try='test -z "$ac_c_werror_flag" | |
11471 | || test ! -s conftest.err' | |
11472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11473 | (eval $ac_try) 2>&5 | |
11474 | ac_status=$? | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); }; } && | |
11477 | { ac_try='test -s conftest$ac_exeext' | |
11478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11479 | (eval $ac_try) 2>&5 | |
11480 | ac_status=$? | |
11481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11482 | (exit $ac_status); }; }; then | |
11483 | eval "$as_ac_var=yes" | |
11484 | else | |
11485 | echo "$as_me: failed program was:" >&5 | |
11486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11487 | ||
11488 | eval "$as_ac_var=no" | |
11489 | fi | |
11490 | rm -f conftest.err conftest.$ac_objext \ | |
11491 | conftest$ac_exeext conftest.$ac_ext | |
11492 | fi | |
11493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11494 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11495 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11496 | cat >>confdefs.h <<_ACEOF | |
11497 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11498 | _ACEOF | |
11499 | ||
11500 | fi | |
11501 | done | |
11502 | ||
5c39566f DJ |
11503 | LIBS=$save_LIBS |
11504 | fi | |
3841debe DJ |
11505 | fi |
11506 | ||
d57a3c85 TJB |
11507 | |
11508 | ||
11509 | ||
11510 | # Check whether --with-python or --without-python was given. | |
11511 | if test "${with_python+set}" = set; then | |
11512 | withval="$with_python" | |
11513 | ||
11514 | else | |
11515 | with_python=auto | |
11516 | fi; | |
11517 | echo "$as_me:$LINENO: checking whether to use python" >&5 | |
11518 | echo $ECHO_N "checking whether to use python... $ECHO_C" >&6 | |
11519 | echo "$as_me:$LINENO: result: $with_python" >&5 | |
11520 | echo "${ECHO_T}$with_python" >&6 | |
11521 | ||
11522 | if test "${with_python}" = no; then | |
11523 | { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5 | |
11524 | echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;} | |
11525 | have_libpython=no | |
11526 | else | |
11527 | case "${with_python}" in | |
11528 | yes | auto) | |
11529 | # Leave as empty, use defaults. | |
11530 | python_includes= | |
11531 | python_libs= | |
11532 | ;; | |
11533 | /*) | |
11534 | python_includes="-I${with_python}/include" | |
11535 | python_libs="-L${with_python}/lib" | |
11536 | ;; | |
11537 | *) | |
11538 | { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5 | |
11539 | echo "$as_me: error: invalid value for --with-python" >&2;} | |
11540 | { (exit 1); exit 1; }; } | |
11541 | ;; | |
11542 | esac | |
11543 | ||
11544 | save_CPPFLAGS=$CPPFLAGS | |
11545 | CPPFLAGS="$CPPFLAGS ${python_includes}" | |
11546 | save_LIBS=$LIBS | |
11547 | LIBS="$LIBS ${python_libs}" | |
11548 | have_libpython=no | |
11549 | if test "${have_libpython}" = no; then | |
11550 | ||
11551 | version=python2.6 | |
11552 | ||
11553 | ||
11554 | HAVE_LIBPYTHON2_6=no | |
11555 | echo "$as_me:$LINENO: checking for ${version}" >&5 | |
11556 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 | |
11557 | save_LIBS=$LIBS | |
11558 | LIBS="$LIBS -l${version}" | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | /* confdefs.h. */ | |
11561 | _ACEOF | |
11562 | cat confdefs.h >>conftest.$ac_ext | |
11563 | cat >>conftest.$ac_ext <<_ACEOF | |
11564 | /* end confdefs.h. */ | |
11565 | #include "${version}/Python.h" | |
11566 | int | |
11567 | main () | |
11568 | { | |
11569 | Py_Initialize (); | |
11570 | ; | |
11571 | return 0; | |
11572 | } | |
11573 | _ACEOF | |
11574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11576 | (eval $ac_link) 2>conftest.er1 | |
11577 | ac_status=$? | |
11578 | grep -v '^ *+' conftest.er1 >conftest.err | |
11579 | rm -f conftest.er1 | |
11580 | cat conftest.err >&5 | |
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11582 | (exit $ac_status); } && | |
11583 | { ac_try='test -z "$ac_c_werror_flag" | |
11584 | || test ! -s conftest.err' | |
11585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11586 | (eval $ac_try) 2>&5 | |
11587 | ac_status=$? | |
11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11589 | (exit $ac_status); }; } && | |
11590 | { ac_try='test -s conftest$ac_exeext' | |
11591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11592 | (eval $ac_try) 2>&5 | |
11593 | ac_status=$? | |
11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11595 | (exit $ac_status); }; }; then | |
11596 | HAVE_LIBPYTHON2_6=yes | |
11597 | have_libpython=yes | |
11598 | else | |
11599 | echo "$as_me: failed program was:" >&5 | |
11600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11601 | ||
11602 | LIBS=$save_LIBS | |
11603 | fi | |
11604 | rm -f conftest.err conftest.$ac_objext \ | |
11605 | conftest$ac_exeext conftest.$ac_ext | |
11606 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5 | |
11607 | echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6 | |
11608 | ||
11609 | if test "${HAVE_LIBPYTHON2_6}" = yes; then | |
11610 | ||
11611 | cat >>confdefs.h <<\_ACEOF | |
11612 | #define HAVE_LIBPYTHON2_6 1 | |
11613 | _ACEOF | |
11614 | ||
11615 | fi | |
11616 | fi | |
11617 | if test ${have_libpython} = no; then | |
11618 | ||
11619 | version=python2.5 | |
11620 | ||
11621 | ||
11622 | HAVE_LIBPYTHON2_5=no | |
11623 | echo "$as_me:$LINENO: checking for ${version}" >&5 | |
11624 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 | |
11625 | save_LIBS=$LIBS | |
11626 | LIBS="$LIBS -l${version}" | |
11627 | cat >conftest.$ac_ext <<_ACEOF | |
11628 | /* confdefs.h. */ | |
11629 | _ACEOF | |
11630 | cat confdefs.h >>conftest.$ac_ext | |
11631 | cat >>conftest.$ac_ext <<_ACEOF | |
11632 | /* end confdefs.h. */ | |
11633 | #include "${version}/Python.h" | |
11634 | int | |
11635 | main () | |
11636 | { | |
11637 | Py_Initialize (); | |
11638 | ; | |
11639 | return 0; | |
11640 | } | |
11641 | _ACEOF | |
11642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11644 | (eval $ac_link) 2>conftest.er1 | |
11645 | ac_status=$? | |
11646 | grep -v '^ *+' conftest.er1 >conftest.err | |
11647 | rm -f conftest.er1 | |
11648 | cat conftest.err >&5 | |
11649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11650 | (exit $ac_status); } && | |
11651 | { ac_try='test -z "$ac_c_werror_flag" | |
11652 | || test ! -s conftest.err' | |
11653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11654 | (eval $ac_try) 2>&5 | |
11655 | ac_status=$? | |
11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11657 | (exit $ac_status); }; } && | |
11658 | { ac_try='test -s conftest$ac_exeext' | |
11659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11660 | (eval $ac_try) 2>&5 | |
11661 | ac_status=$? | |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11663 | (exit $ac_status); }; }; then | |
11664 | HAVE_LIBPYTHON2_5=yes | |
11665 | have_libpython=yes | |
11666 | else | |
11667 | echo "$as_me: failed program was:" >&5 | |
11668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11669 | ||
11670 | LIBS=$save_LIBS | |
11671 | fi | |
11672 | rm -f conftest.err conftest.$ac_objext \ | |
11673 | conftest$ac_exeext conftest.$ac_ext | |
11674 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5 | |
11675 | echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6 | |
11676 | ||
11677 | if test "${HAVE_LIBPYTHON2_5}" = yes; then | |
11678 | ||
11679 | cat >>confdefs.h <<\_ACEOF | |
11680 | #define HAVE_LIBPYTHON2_5 1 | |
11681 | _ACEOF | |
11682 | ||
11683 | fi | |
11684 | fi | |
11685 | if test ${have_libpython} = no; then | |
11686 | ||
11687 | version=python2.4 | |
11688 | ||
11689 | ||
11690 | HAVE_LIBPYTHON2_4=no | |
11691 | echo "$as_me:$LINENO: checking for ${version}" >&5 | |
11692 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 | |
11693 | save_LIBS=$LIBS | |
11694 | LIBS="$LIBS -l${version}" | |
11695 | cat >conftest.$ac_ext <<_ACEOF | |
11696 | /* confdefs.h. */ | |
11697 | _ACEOF | |
11698 | cat confdefs.h >>conftest.$ac_ext | |
11699 | cat >>conftest.$ac_ext <<_ACEOF | |
11700 | /* end confdefs.h. */ | |
11701 | #include "${version}/Python.h" | |
11702 | int | |
11703 | main () | |
11704 | { | |
11705 | Py_Initialize (); | |
11706 | ; | |
11707 | return 0; | |
11708 | } | |
11709 | _ACEOF | |
11710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11712 | (eval $ac_link) 2>conftest.er1 | |
11713 | ac_status=$? | |
11714 | grep -v '^ *+' conftest.er1 >conftest.err | |
11715 | rm -f conftest.er1 | |
11716 | cat conftest.err >&5 | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); } && | |
11719 | { ac_try='test -z "$ac_c_werror_flag" | |
11720 | || test ! -s conftest.err' | |
11721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11722 | (eval $ac_try) 2>&5 | |
11723 | ac_status=$? | |
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11725 | (exit $ac_status); }; } && | |
11726 | { ac_try='test -s conftest$ac_exeext' | |
11727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11728 | (eval $ac_try) 2>&5 | |
11729 | ac_status=$? | |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 | (exit $ac_status); }; }; then | |
11732 | HAVE_LIBPYTHON2_4=yes | |
11733 | have_libpython=yes | |
11734 | else | |
11735 | echo "$as_me: failed program was:" >&5 | |
11736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11737 | ||
11738 | LIBS=$save_LIBS | |
11739 | fi | |
11740 | rm -f conftest.err conftest.$ac_objext \ | |
11741 | conftest$ac_exeext conftest.$ac_ext | |
11742 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5 | |
11743 | echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6 | |
11744 | ||
11745 | if test "${HAVE_LIBPYTHON2_4}" = yes; then | |
11746 | ||
11747 | cat >>confdefs.h <<\_ACEOF | |
11748 | #define HAVE_LIBPYTHON2_4 1 | |
11749 | _ACEOF | |
11750 | ||
11751 | fi | |
11752 | fi | |
11753 | if test ${have_libpython} = no; then | |
11754 | case "${with_python}" in | |
11755 | yes) | |
11756 | { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5 | |
11757 | echo "$as_me: error: python is missing or unusable" >&2;} | |
11758 | { (exit 1); exit 1; }; } | |
11759 | ;; | |
11760 | auto) | |
11761 | { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5 | |
11762 | echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;} | |
11763 | ;; | |
11764 | *) | |
11765 | { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5 | |
11766 | echo "$as_me: error: no usable python found at ${with_python}" >&2;} | |
11767 | { (exit 1); exit 1; }; } | |
11768 | ;; | |
11769 | esac | |
11770 | CPPFLAGS=$save_CPPFLAGS | |
11771 | LIBS=$save_LIBS | |
11772 | fi | |
11773 | fi | |
11774 | ||
11775 | if test "${have_libpython}" = yes; then | |
11776 | ||
11777 | cat >>confdefs.h <<\_ACEOF | |
11778 | #define HAVE_PYTHON 1 | |
11779 | _ACEOF | |
11780 | ||
11781 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" | |
11782 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" | |
11783 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" | |
11784 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)" | |
11785 | ||
11786 | # Flags needed to compile Python code (taken from python-config --cflags). | |
11787 | # We cannot call python-config directly because it will output whatever was | |
11788 | # used when compiling the Python interpreter itself, including flags which | |
11789 | # would make the python-related objects be compiled differently from the | |
11790 | # rest of GDB (e.g., -O2 and -fPIC). | |
11791 | if test "${GCC}" = yes; then | |
11792 | tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv" | |
11793 | fi | |
11794 | ||
11795 | if test "x${tentative_python_cflags}" != x; then | |
11796 | echo "$as_me:$LINENO: checking compiler flags for python code" >&5 | |
11797 | echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6 | |
11798 | for flag in ${tentative_python_cflags}; do | |
11799 | # Check that the compiler accepts it | |
11800 | saved_CFLAGS="$CFLAGS" | |
11801 | CFLAGS="$CFLAGS $flag" | |
11802 | cat >conftest.$ac_ext <<_ACEOF | |
11803 | /* confdefs.h. */ | |
11804 | _ACEOF | |
11805 | cat confdefs.h >>conftest.$ac_ext | |
11806 | cat >>conftest.$ac_ext <<_ACEOF | |
11807 | /* end confdefs.h. */ | |
11808 | ||
11809 | int | |
11810 | main () | |
11811 | { | |
11812 | ||
11813 | ; | |
11814 | return 0; | |
11815 | } | |
11816 | _ACEOF | |
11817 | rm -f conftest.$ac_objext | |
11818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11819 | (eval $ac_compile) 2>conftest.er1 | |
11820 | ac_status=$? | |
11821 | grep -v '^ *+' conftest.er1 >conftest.err | |
11822 | rm -f conftest.er1 | |
11823 | cat conftest.err >&5 | |
11824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11825 | (exit $ac_status); } && | |
11826 | { ac_try='test -z "$ac_c_werror_flag" | |
11827 | || test ! -s conftest.err' | |
11828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11829 | (eval $ac_try) 2>&5 | |
11830 | ac_status=$? | |
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11832 | (exit $ac_status); }; } && | |
11833 | { ac_try='test -s conftest.$ac_objext' | |
11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11835 | (eval $ac_try) 2>&5 | |
11836 | ac_status=$? | |
11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11838 | (exit $ac_status); }; }; then | |
11839 | PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag" | |
11840 | else | |
11841 | echo "$as_me: failed program was:" >&5 | |
11842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11843 | ||
11844 | fi | |
11845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11846 | CFLAGS="$saved_CFLAGS" | |
11847 | done | |
11848 | echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5 | |
11849 | echo "${ECHO_T}${PYTHON_CFLAGS}" >&6 | |
11850 | fi | |
11851 | else | |
a08702d6 | 11852 | # Even if Python support is not compiled in, we need to have these files |
d57a3c85 | 11853 | # included in order to recognize the GDB command "python". |
a08702d6 TJB |
11854 | CONFIG_OBS="$CONFIG_OBS python.o python-value.o" |
11855 | CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c" | |
d57a3c85 TJB |
11856 | fi |
11857 | ||
11858 | ||
bec39cab AC |
11859 | # ------------------------- # |
11860 | # Checks for header files. # | |
11861 | # ------------------------- # | |
8ee53726 | 11862 | |
0e5d83e3 | 11863 | |
bec39cab AC |
11864 | |
11865 | ||
11866 | ||
11867 | ||
11868 | ac_header_dirent=no | |
11869 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
11870 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
11871 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
11872 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
11873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11875 | else | |
11876 | cat >conftest.$ac_ext <<_ACEOF | |
11877 | /* confdefs.h. */ | |
11878 | _ACEOF | |
11879 | cat confdefs.h >>conftest.$ac_ext | |
11880 | cat >>conftest.$ac_ext <<_ACEOF | |
11881 | /* end confdefs.h. */ | |
11882 | #include <sys/types.h> | |
0e5d83e3 | 11883 | #include <$ac_hdr> |
bec39cab AC |
11884 | |
11885 | int | |
11886 | main () | |
11887 | { | |
11888 | if ((DIR *) 0) | |
11889 | return 0; | |
11890 | ; | |
11891 | return 0; | |
11892 | } | |
11893 | _ACEOF | |
11894 | rm -f conftest.$ac_objext | |
11895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11896 | (eval $ac_compile) 2>conftest.er1 | |
11897 | ac_status=$? | |
11898 | grep -v '^ *+' conftest.er1 >conftest.err | |
11899 | rm -f conftest.er1 | |
11900 | cat conftest.err >&5 | |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11902 | (exit $ac_status); } && | |
b4e70030 JB |
11903 | { ac_try='test -z "$ac_c_werror_flag" |
11904 | || test ! -s conftest.err' | |
bec39cab AC |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; } && | |
11910 | { ac_try='test -s conftest.$ac_objext' | |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; }; then | |
11916 | eval "$as_ac_Header=yes" | |
11917 | else | |
11918 | echo "$as_me: failed program was:" >&5 | |
11919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11920 | ||
b4e70030 | 11921 | eval "$as_ac_Header=no" |
bec39cab AC |
11922 | fi |
11923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11924 | fi | |
b4e70030 JB |
11925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11928 | cat >>confdefs.h <<_ACEOF | |
11929 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
11930 | _ACEOF | |
11931 | ||
11932 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 11933 | fi |
0e5d83e3 | 11934 | |
bec39cab AC |
11935 | done |
11936 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11937 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
11938 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11939 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
11940 | if test "${ac_cv_search_opendir+set}" = set; then |
11941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11942 | else | |
11943 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 11944 | ac_cv_search_opendir=no |
bec39cab AC |
11945 | cat >conftest.$ac_ext <<_ACEOF |
11946 | /* confdefs.h. */ | |
11947 | _ACEOF | |
11948 | cat confdefs.h >>conftest.$ac_ext | |
11949 | cat >>conftest.$ac_ext <<_ACEOF | |
11950 | /* end confdefs.h. */ | |
0e5d83e3 | 11951 | |
b4e70030 | 11952 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
11953 | #ifdef __cplusplus |
11954 | extern "C" | |
11955 | #endif | |
b4e70030 JB |
11956 | /* We use char because int might match the return type of a gcc2 |
11957 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
11958 | char opendir (); |
11959 | int | |
11960 | main () | |
11961 | { | |
b4e70030 | 11962 | opendir (); |
bec39cab AC |
11963 | ; |
11964 | return 0; | |
11965 | } | |
11966 | _ACEOF | |
b4e70030 | 11967 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
11968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11969 | (eval $ac_link) 2>conftest.er1 | |
11970 | ac_status=$? | |
11971 | grep -v '^ *+' conftest.er1 >conftest.err | |
11972 | rm -f conftest.er1 | |
11973 | cat conftest.err >&5 | |
11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11975 | (exit $ac_status); } && | |
b4e70030 JB |
11976 | { ac_try='test -z "$ac_c_werror_flag" |
11977 | || test ! -s conftest.err' | |
bec39cab AC |
11978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11979 | (eval $ac_try) 2>&5 | |
11980 | ac_status=$? | |
11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11982 | (exit $ac_status); }; } && | |
11983 | { ac_try='test -s conftest$ac_exeext' | |
11984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11985 | (eval $ac_try) 2>&5 | |
11986 | ac_status=$? | |
11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11988 | (exit $ac_status); }; }; then | |
b4e70030 | 11989 | ac_cv_search_opendir="none required" |
bec39cab AC |
11990 | else |
11991 | echo "$as_me: failed program was:" >&5 | |
11992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11993 | ||
11994 | fi | |
bec39cab | 11995 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
11996 | conftest$ac_exeext conftest.$ac_ext |
11997 | if test "$ac_cv_search_opendir" = no; then | |
11998 | for ac_lib in dir; do | |
11999 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12000 | cat >conftest.$ac_ext <<_ACEOF | |
12001 | /* confdefs.h. */ | |
12002 | _ACEOF | |
12003 | cat confdefs.h >>conftest.$ac_ext | |
12004 | cat >>conftest.$ac_ext <<_ACEOF | |
12005 | /* end confdefs.h. */ | |
12006 | ||
12007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12008 | #ifdef __cplusplus | |
12009 | extern "C" | |
12010 | #endif | |
12011 | /* We use char because int might match the return type of a gcc2 | |
12012 | builtin and then its argument prototype would still apply. */ | |
12013 | char opendir (); | |
12014 | int | |
12015 | main () | |
12016 | { | |
12017 | opendir (); | |
12018 | ; | |
12019 | return 0; | |
12020 | } | |
12021 | _ACEOF | |
12022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12024 | (eval $ac_link) 2>conftest.er1 | |
12025 | ac_status=$? | |
12026 | grep -v '^ *+' conftest.er1 >conftest.err | |
12027 | rm -f conftest.er1 | |
12028 | cat conftest.err >&5 | |
12029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12030 | (exit $ac_status); } && | |
12031 | { ac_try='test -z "$ac_c_werror_flag" | |
12032 | || test ! -s conftest.err' | |
12033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12034 | (eval $ac_try) 2>&5 | |
12035 | ac_status=$? | |
12036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12037 | (exit $ac_status); }; } && | |
12038 | { ac_try='test -s conftest$ac_exeext' | |
12039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12040 | (eval $ac_try) 2>&5 | |
12041 | ac_status=$? | |
12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12043 | (exit $ac_status); }; }; then | |
12044 | ac_cv_search_opendir="-l$ac_lib" | |
12045 | break | |
4e8d927d | 12046 | else |
b4e70030 JB |
12047 | echo "$as_me: failed program was:" >&5 |
12048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12049 | ||
12050 | fi | |
12051 | rm -f conftest.err conftest.$ac_objext \ | |
12052 | conftest$ac_exeext conftest.$ac_ext | |
12053 | done | |
0e5d83e3 | 12054 | fi |
bec39cab | 12055 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 12056 | fi |
b4e70030 JB |
12057 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
12058 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
12059 | if test "$ac_cv_search_opendir" != no; then | |
12060 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 12061 | |
0e5d83e3 JJ |
12062 | fi |
12063 | ||
d28f9cdf | 12064 | else |
b4e70030 JB |
12065 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
12066 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
12067 | if test "${ac_cv_search_opendir+set}" = set; then |
12068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12069 | else | |
12070 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 12071 | ac_cv_search_opendir=no |
bec39cab AC |
12072 | cat >conftest.$ac_ext <<_ACEOF |
12073 | /* confdefs.h. */ | |
12074 | _ACEOF | |
12075 | cat confdefs.h >>conftest.$ac_ext | |
12076 | cat >>conftest.$ac_ext <<_ACEOF | |
12077 | /* end confdefs.h. */ | |
d28f9cdf | 12078 | |
b4e70030 | 12079 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
12080 | #ifdef __cplusplus |
12081 | extern "C" | |
d28f9cdf | 12082 | #endif |
b4e70030 JB |
12083 | /* We use char because int might match the return type of a gcc2 |
12084 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
12085 | char opendir (); |
12086 | int | |
12087 | main () | |
12088 | { | |
b4e70030 | 12089 | opendir (); |
bec39cab AC |
12090 | ; |
12091 | return 0; | |
12092 | } | |
12093 | _ACEOF | |
b4e70030 | 12094 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
12095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12096 | (eval $ac_link) 2>conftest.er1 | |
12097 | ac_status=$? | |
12098 | grep -v '^ *+' conftest.er1 >conftest.err | |
12099 | rm -f conftest.er1 | |
12100 | cat conftest.err >&5 | |
12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12102 | (exit $ac_status); } && | |
b4e70030 JB |
12103 | { ac_try='test -z "$ac_c_werror_flag" |
12104 | || test ! -s conftest.err' | |
bec39cab AC |
12105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12106 | (eval $ac_try) 2>&5 | |
12107 | ac_status=$? | |
12108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12109 | (exit $ac_status); }; } && | |
12110 | { ac_try='test -s conftest$ac_exeext' | |
12111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12112 | (eval $ac_try) 2>&5 | |
12113 | ac_status=$? | |
12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12115 | (exit $ac_status); }; }; then | |
b4e70030 | 12116 | ac_cv_search_opendir="none required" |
d28f9cdf | 12117 | else |
bec39cab AC |
12118 | echo "$as_me: failed program was:" >&5 |
12119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12120 | ||
d28f9cdf | 12121 | fi |
bec39cab | 12122 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
12123 | conftest$ac_exeext conftest.$ac_ext |
12124 | if test "$ac_cv_search_opendir" = no; then | |
12125 | for ac_lib in x; do | |
12126 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12127 | cat >conftest.$ac_ext <<_ACEOF | |
12128 | /* confdefs.h. */ | |
12129 | _ACEOF | |
12130 | cat confdefs.h >>conftest.$ac_ext | |
12131 | cat >>conftest.$ac_ext <<_ACEOF | |
12132 | /* end confdefs.h. */ | |
12133 | ||
12134 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12135 | #ifdef __cplusplus | |
12136 | extern "C" | |
12137 | #endif | |
12138 | /* We use char because int might match the return type of a gcc2 | |
12139 | builtin and then its argument prototype would still apply. */ | |
12140 | char opendir (); | |
12141 | int | |
12142 | main () | |
12143 | { | |
12144 | opendir (); | |
12145 | ; | |
12146 | return 0; | |
12147 | } | |
12148 | _ACEOF | |
12149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12151 | (eval $ac_link) 2>conftest.er1 | |
12152 | ac_status=$? | |
12153 | grep -v '^ *+' conftest.er1 >conftest.err | |
12154 | rm -f conftest.er1 | |
12155 | cat conftest.err >&5 | |
12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12157 | (exit $ac_status); } && | |
12158 | { ac_try='test -z "$ac_c_werror_flag" | |
12159 | || test ! -s conftest.err' | |
12160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12161 | (eval $ac_try) 2>&5 | |
12162 | ac_status=$? | |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); }; } && | |
12165 | { ac_try='test -s conftest$ac_exeext' | |
12166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12167 | (eval $ac_try) 2>&5 | |
12168 | ac_status=$? | |
12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12170 | (exit $ac_status); }; }; then | |
12171 | ac_cv_search_opendir="-l$ac_lib" | |
12172 | break | |
4e8d927d | 12173 | else |
b4e70030 JB |
12174 | echo "$as_me: failed program was:" >&5 |
12175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12176 | ||
12177 | fi | |
12178 | rm -f conftest.err conftest.$ac_objext \ | |
12179 | conftest$ac_exeext conftest.$ac_ext | |
12180 | done | |
bec39cab AC |
12181 | fi |
12182 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 12183 | fi |
b4e70030 JB |
12184 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
12185 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
12186 | if test "$ac_cv_search_opendir" != no; then | |
12187 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 12188 | |
d28f9cdf DJ |
12189 | fi |
12190 | ||
bec39cab | 12191 | fi |
b0b1c2c0 | 12192 | |
b4e70030 JB |
12193 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
12194 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
12195 | if test "${ac_cv_header_stat_broken+set}" = set; then |
12196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 12197 | else |
bec39cab AC |
12198 | cat >conftest.$ac_ext <<_ACEOF |
12199 | /* confdefs.h. */ | |
12200 | _ACEOF | |
12201 | cat confdefs.h >>conftest.$ac_ext | |
12202 | cat >>conftest.$ac_ext <<_ACEOF | |
12203 | /* end confdefs.h. */ | |
12204 | #include <sys/types.h> | |
12205 | #include <sys/stat.h> | |
b0b1c2c0 | 12206 | |
b4e70030 | 12207 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
12208 | # if S_ISBLK (S_IFDIR) |
12209 | You lose. | |
12210 | # endif | |
12211 | #endif | |
b0b1c2c0 | 12212 | |
b4e70030 | 12213 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
12214 | # if S_ISBLK (S_IFCHR) |
12215 | You lose. | |
12216 | # endif | |
12217 | #endif | |
d28f9cdf | 12218 | |
b4e70030 | 12219 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
12220 | # if S_ISLNK (S_IFREG) |
12221 | You lose. | |
12222 | # endif | |
12223 | #endif | |
d28f9cdf | 12224 | |
b4e70030 | 12225 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
12226 | # if S_ISSOCK (S_IFREG) |
12227 | You lose. | |
12228 | # endif | |
12229 | #endif | |
12230 | ||
12231 | _ACEOF | |
12232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12233 | $EGREP "You lose" >/dev/null 2>&1; then | |
12234 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 12235 | else |
bec39cab | 12236 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
12237 | fi |
12238 | rm -f conftest* | |
d28f9cdf | 12239 | |
d28f9cdf | 12240 | fi |
b4e70030 JB |
12241 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
12242 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 12243 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 12244 | |
bec39cab AC |
12245 | cat >>confdefs.h <<\_ACEOF |
12246 | #define STAT_MACROS_BROKEN 1 | |
12247 | _ACEOF | |
8bb2c122 | 12248 | |
7a292a7a | 12249 | fi |
bec39cab | 12250 | |
b4e70030 JB |
12251 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
12252 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
12253 | if test "${ac_cv_header_stdc+set}" = set; then |
12254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 12255 | else |
bec39cab AC |
12256 | cat >conftest.$ac_ext <<_ACEOF |
12257 | /* confdefs.h. */ | |
12258 | _ACEOF | |
12259 | cat confdefs.h >>conftest.$ac_ext | |
12260 | cat >>conftest.$ac_ext <<_ACEOF | |
12261 | /* end confdefs.h. */ | |
12262 | #include <stdlib.h> | |
12263 | #include <stdarg.h> | |
12264 | #include <string.h> | |
12265 | #include <float.h> | |
7a292a7a | 12266 | |
bec39cab AC |
12267 | int |
12268 | main () | |
12269 | { | |
7a292a7a | 12270 | |
bec39cab AC |
12271 | ; |
12272 | return 0; | |
12273 | } | |
12274 | _ACEOF | |
12275 | rm -f conftest.$ac_objext | |
12276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12277 | (eval $ac_compile) 2>conftest.er1 | |
12278 | ac_status=$? | |
12279 | grep -v '^ *+' conftest.er1 >conftest.err | |
12280 | rm -f conftest.er1 | |
12281 | cat conftest.err >&5 | |
12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12283 | (exit $ac_status); } && | |
b4e70030 JB |
12284 | { ac_try='test -z "$ac_c_werror_flag" |
12285 | || test ! -s conftest.err' | |
bec39cab AC |
12286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12287 | (eval $ac_try) 2>&5 | |
12288 | ac_status=$? | |
12289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12290 | (exit $ac_status); }; } && | |
12291 | { ac_try='test -s conftest.$ac_objext' | |
12292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12293 | (eval $ac_try) 2>&5 | |
12294 | ac_status=$? | |
12295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12296 | (exit $ac_status); }; }; then | |
12297 | ac_cv_header_stdc=yes | |
c906108c | 12298 | else |
bec39cab AC |
12299 | echo "$as_me: failed program was:" >&5 |
12300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 12301 | |
b4e70030 | 12302 | ac_cv_header_stdc=no |
c906108c | 12303 | fi |
bec39cab | 12304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 12305 | |
bec39cab AC |
12306 | if test $ac_cv_header_stdc = yes; then |
12307 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12308 | cat >conftest.$ac_ext <<_ACEOF | |
12309 | /* confdefs.h. */ | |
12310 | _ACEOF | |
12311 | cat confdefs.h >>conftest.$ac_ext | |
12312 | cat >>conftest.$ac_ext <<_ACEOF | |
12313 | /* end confdefs.h. */ | |
12314 | #include <string.h> | |
c906108c | 12315 | |
bec39cab AC |
12316 | _ACEOF |
12317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12318 | $EGREP "memchr" >/dev/null 2>&1; then | |
12319 | : | |
8bb2c122 | 12320 | else |
bec39cab | 12321 | ac_cv_header_stdc=no |
8bb2c122 | 12322 | fi |
bec39cab AC |
12323 | rm -f conftest* |
12324 | ||
c906108c SS |
12325 | fi |
12326 | ||
bec39cab AC |
12327 | if test $ac_cv_header_stdc = yes; then |
12328 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12329 | cat >conftest.$ac_ext <<_ACEOF | |
12330 | /* confdefs.h. */ | |
12331 | _ACEOF | |
12332 | cat confdefs.h >>conftest.$ac_ext | |
12333 | cat >>conftest.$ac_ext <<_ACEOF | |
12334 | /* end confdefs.h. */ | |
12335 | #include <stdlib.h> | |
12336 | ||
12337 | _ACEOF | |
12338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12339 | $EGREP "free" >/dev/null 2>&1; then | |
12340 | : | |
c906108c | 12341 | else |
bec39cab | 12342 | ac_cv_header_stdc=no |
c906108c | 12343 | fi |
bec39cab AC |
12344 | rm -f conftest* |
12345 | ||
c906108c SS |
12346 | fi |
12347 | ||
bec39cab AC |
12348 | if test $ac_cv_header_stdc = yes; then |
12349 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12350 | if test "$cross_compiling" = yes; then | |
12351 | : | |
c906108c | 12352 | else |
bec39cab AC |
12353 | cat >conftest.$ac_ext <<_ACEOF |
12354 | /* confdefs.h. */ | |
12355 | _ACEOF | |
12356 | cat confdefs.h >>conftest.$ac_ext | |
12357 | cat >>conftest.$ac_ext <<_ACEOF | |
12358 | /* end confdefs.h. */ | |
12359 | #include <ctype.h> | |
12360 | #if ((' ' & 0x0FF) == 0x020) | |
12361 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12362 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12363 | #else | |
12364 | # define ISLOWER(c) \ | |
12365 | (('a' <= (c) && (c) <= 'i') \ | |
12366 | || ('j' <= (c) && (c) <= 'r') \ | |
12367 | || ('s' <= (c) && (c) <= 'z')) | |
12368 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12369 | #endif | |
12370 | ||
12371 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12372 | int | |
12373 | main () | |
12374 | { | |
12375 | int i; | |
12376 | for (i = 0; i < 256; i++) | |
12377 | if (XOR (islower (i), ISLOWER (i)) | |
12378 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
12379 | exit(2); |
12380 | exit (0); | |
bec39cab AC |
12381 | } |
12382 | _ACEOF | |
12383 | rm -f conftest$ac_exeext | |
12384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12385 | (eval $ac_link) 2>&5 | |
12386 | ac_status=$? | |
12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12390 | (eval $ac_try) 2>&5 | |
12391 | ac_status=$? | |
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12393 | (exit $ac_status); }; }; then | |
12394 | : | |
12395 | else | |
12396 | echo "$as_me: program exited with status $ac_status" >&5 | |
12397 | echo "$as_me: failed program was:" >&5 | |
12398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12399 | ||
12400 | ( exit $ac_status ) | |
12401 | ac_cv_header_stdc=no | |
c906108c | 12402 | fi |
b4e70030 | 12403 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 12404 | fi |
c906108c | 12405 | fi |
bec39cab | 12406 | fi |
b4e70030 JB |
12407 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
12408 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 12409 | if test $ac_cv_header_stdc = yes; then |
c906108c | 12410 | |
bec39cab AC |
12411 | cat >>confdefs.h <<\_ACEOF |
12412 | #define STDC_HEADERS 1 | |
12413 | _ACEOF | |
c906108c | 12414 | |
bec39cab | 12415 | fi |
8bb2c122 | 12416 | |
a9322a30 TT |
12417 | # elf_hp.h is for HP/UX 64-bit shared library support. |
12418 | # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h) | |
12419 | # unconditionally, so what's the point in checking these? | |
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | ||
12430 | ||
12431 | ||
12432 | ||
12433 | ||
12434 | ||
12435 | ||
12436 | ||
bec39cab | 12437 | |
a9322a30 TT |
12438 | |
12439 | ||
12440 | ||
12441 | ||
12442 | ||
12443 | ||
12444 | ||
12445 | ||
12446 | ||
12447 | ||
12448 | ||
12449 | ||
12450 | ||
12451 | ||
12452 | ||
12453 | ||
a8111142 | 12454 | |
a9322a30 TT |
12455 | |
12456 | ||
12457 | for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ | |
12458 | thread_db.h gnu/libc-version.h signal.h stddef.h \ | |
12459 | stdlib.h string.h memory.h strings.h sys/fault.h \ | |
12460 | sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ | |
12461 | sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ | |
12462 | sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ | |
12463 | sys/types.h sys/wait.h wait.h termios.h termio.h \ | |
a8111142 | 12464 | sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h |
bec39cab AC |
12465 | do |
12466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12472 | fi | |
b4e70030 JB |
12473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12474 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12475 | else |
12476 | # Is the header compilable? | |
b4e70030 JB |
12477 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12478 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12479 | cat >conftest.$ac_ext <<_ACEOF |
12480 | /* confdefs.h. */ | |
12481 | _ACEOF | |
12482 | cat confdefs.h >>conftest.$ac_ext | |
12483 | cat >>conftest.$ac_ext <<_ACEOF | |
12484 | /* end confdefs.h. */ | |
12485 | $ac_includes_default | |
12486 | #include <$ac_header> | |
12487 | _ACEOF | |
12488 | rm -f conftest.$ac_objext | |
12489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12490 | (eval $ac_compile) 2>conftest.er1 | |
12491 | ac_status=$? | |
12492 | grep -v '^ *+' conftest.er1 >conftest.err | |
12493 | rm -f conftest.er1 | |
12494 | cat conftest.err >&5 | |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); } && | |
b4e70030 JB |
12497 | { ac_try='test -z "$ac_c_werror_flag" |
12498 | || test ! -s conftest.err' | |
bec39cab AC |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12500 | (eval $ac_try) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); }; } && | |
12504 | { ac_try='test -s conftest.$ac_objext' | |
12505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12506 | (eval $ac_try) 2>&5 | |
12507 | ac_status=$? | |
12508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12509 | (exit $ac_status); }; }; then | |
12510 | ac_header_compiler=yes | |
12511 | else | |
12512 | echo "$as_me: failed program was:" >&5 | |
12513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12514 | ||
b4e70030 | 12515 | ac_header_compiler=no |
bec39cab AC |
12516 | fi |
12517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12518 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12519 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12520 | |
12521 | # Is the header present? | |
b4e70030 JB |
12522 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12523 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12524 | cat >conftest.$ac_ext <<_ACEOF |
12525 | /* confdefs.h. */ | |
12526 | _ACEOF | |
12527 | cat confdefs.h >>conftest.$ac_ext | |
12528 | cat >>conftest.$ac_ext <<_ACEOF | |
12529 | /* end confdefs.h. */ | |
12530 | #include <$ac_header> | |
12531 | _ACEOF | |
12532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12534 | ac_status=$? | |
12535 | grep -v '^ *+' conftest.er1 >conftest.err | |
12536 | rm -f conftest.er1 | |
12537 | cat conftest.err >&5 | |
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12539 | (exit $ac_status); } >/dev/null; then | |
12540 | if test -s conftest.err; then | |
12541 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12542 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12543 | else | |
12544 | ac_cpp_err= | |
12545 | fi | |
c906108c | 12546 | else |
bec39cab | 12547 | ac_cpp_err=yes |
c906108c | 12548 | fi |
bec39cab AC |
12549 | if test -z "$ac_cpp_err"; then |
12550 | ac_header_preproc=yes | |
c906108c | 12551 | else |
bec39cab AC |
12552 | echo "$as_me: failed program was:" >&5 |
12553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 12554 | |
bec39cab AC |
12555 | ac_header_preproc=no |
12556 | fi | |
12557 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
12558 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12559 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 12560 | |
bec39cab AC |
12561 | # So? What about this header? |
12562 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12563 | yes:no: ) | |
12564 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12565 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12567 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12568 | ac_header_preproc=yes | |
12569 | ;; | |
12570 | no:yes:* ) | |
12571 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12572 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12573 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12574 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12575 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12576 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12577 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12578 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12579 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12580 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12581 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12582 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12583 | ( |
12584 | cat <<\_ASBOX | |
12585 | ## ------------------------------------------ ## | |
12586 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12587 | ## ------------------------------------------ ## | |
12588 | _ASBOX | |
12589 | ) | | |
12590 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12591 | ;; |
12592 | esac | |
b4e70030 JB |
12593 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 12597 | else |
bec39cab | 12598 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 12599 | fi |
b4e70030 JB |
12600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 12602 | |
95ca63c4 | 12603 | fi |
bec39cab AC |
12604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12605 | cat >>confdefs.h <<_ACEOF | |
12606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12607 | _ACEOF | |
12608 | ||
95ca63c4 CF |
12609 | fi |
12610 | ||
bec39cab | 12611 | done |
95ca63c4 CF |
12612 | |
12613 | ||
7cb9022a | 12614 | for ac_header in link.h |
bec39cab AC |
12615 | do |
12616 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12621 | else |
7cb9022a | 12622 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12623 | /* confdefs.h. */ |
12624 | _ACEOF | |
12625 | cat confdefs.h >>conftest.$ac_ext | |
12626 | cat >>conftest.$ac_ext <<_ACEOF | |
12627 | /* end confdefs.h. */ | |
7cb9022a MK |
12628 | #if HAVE_SYS_TYPES_H |
12629 | # include <sys/types.h> | |
12630 | #endif | |
12631 | #if HAVE_NLIST_H | |
12632 | # include <nlist.h> | |
12633 | #endif | |
12634 | ||
12635 | ||
bec39cab AC |
12636 | #include <$ac_header> |
12637 | _ACEOF | |
12638 | rm -f conftest.$ac_objext | |
12639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12640 | (eval $ac_compile) 2>conftest.er1 | |
12641 | ac_status=$? | |
12642 | grep -v '^ *+' conftest.er1 >conftest.err | |
12643 | rm -f conftest.er1 | |
12644 | cat conftest.err >&5 | |
12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12646 | (exit $ac_status); } && | |
b4e70030 JB |
12647 | { ac_try='test -z "$ac_c_werror_flag" |
12648 | || test ! -s conftest.err' | |
bec39cab AC |
12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12650 | (eval $ac_try) 2>&5 | |
12651 | ac_status=$? | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); }; } && | |
12654 | { ac_try='test -s conftest.$ac_objext' | |
12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12656 | (eval $ac_try) 2>&5 | |
12657 | ac_status=$? | |
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12659 | (exit $ac_status); }; }; then | |
7cb9022a | 12660 | eval "$as_ac_Header=yes" |
bec39cab AC |
12661 | else |
12662 | echo "$as_me: failed program was:" >&5 | |
12663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12664 | ||
b4e70030 | 12665 | eval "$as_ac_Header=no" |
bec39cab AC |
12666 | fi |
12667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 12668 | fi |
b4e70030 JB |
12669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12670 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12671 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12672 | cat >>confdefs.h <<_ACEOF | |
12673 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12674 | _ACEOF | |
95ca63c4 | 12675 | |
bec39cab | 12676 | fi |
95ca63c4 | 12677 | |
bec39cab | 12678 | done |
95ca63c4 | 12679 | |
c906108c | 12680 | |
a9322a30 | 12681 | for ac_header in sys/proc.h |
bec39cab AC |
12682 | do |
12683 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a9322a30 | 12684 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
b4e70030 JB |
12685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12686 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12688 | else |
a9322a30 | 12689 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12690 | /* confdefs.h. */ |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
a9322a30 TT |
12695 | #if HAVE_SYS_PARAM_H |
12696 | # include <sys/param.h> | |
12697 | #endif | |
12698 | ||
12699 | ||
bec39cab AC |
12700 | #include <$ac_header> |
12701 | _ACEOF | |
12702 | rm -f conftest.$ac_objext | |
12703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12704 | (eval $ac_compile) 2>conftest.er1 | |
12705 | ac_status=$? | |
12706 | grep -v '^ *+' conftest.er1 >conftest.err | |
12707 | rm -f conftest.er1 | |
12708 | cat conftest.err >&5 | |
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12710 | (exit $ac_status); } && | |
b4e70030 JB |
12711 | { ac_try='test -z "$ac_c_werror_flag" |
12712 | || test ! -s conftest.err' | |
bec39cab AC |
12713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12714 | (eval $ac_try) 2>&5 | |
12715 | ac_status=$? | |
12716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12717 | (exit $ac_status); }; } && | |
12718 | { ac_try='test -s conftest.$ac_objext' | |
12719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12720 | (eval $ac_try) 2>&5 | |
12721 | ac_status=$? | |
12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12723 | (exit $ac_status); }; }; then | |
a9322a30 | 12724 | eval "$as_ac_Header=yes" |
bec39cab AC |
12725 | else |
12726 | echo "$as_me: failed program was:" >&5 | |
12727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12728 | ||
a9322a30 | 12729 | eval "$as_ac_Header=no" |
bec39cab AC |
12730 | fi |
12731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
12732 | fi |
12733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12735 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12736 | cat >>confdefs.h <<_ACEOF | |
12737 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12738 | _ACEOF | |
bec39cab | 12739 | |
a9322a30 TT |
12740 | fi |
12741 | ||
12742 | done | |
12743 | ||
12744 | ||
12745 | for ac_header in sys/user.h | |
12746 | do | |
12747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12752 | else | |
12753 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12754 | /* confdefs.h. */ |
12755 | _ACEOF | |
12756 | cat confdefs.h >>conftest.$ac_ext | |
12757 | cat >>conftest.$ac_ext <<_ACEOF | |
12758 | /* end confdefs.h. */ | |
a9322a30 TT |
12759 | #if HAVE_SYS_PARAM_H |
12760 | # include <sys/param.h> | |
12761 | #endif | |
12762 | ||
12763 | ||
bec39cab AC |
12764 | #include <$ac_header> |
12765 | _ACEOF | |
a9322a30 TT |
12766 | rm -f conftest.$ac_objext |
12767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12768 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12769 | ac_status=$? |
12770 | grep -v '^ *+' conftest.er1 >conftest.err | |
12771 | rm -f conftest.er1 | |
12772 | cat conftest.err >&5 | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 TT |
12774 | (exit $ac_status); } && |
12775 | { ac_try='test -z "$ac_c_werror_flag" | |
12776 | || test ! -s conftest.err' | |
12777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12778 | (eval $ac_try) 2>&5 | |
12779 | ac_status=$? | |
12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12781 | (exit $ac_status); }; } && | |
12782 | { ac_try='test -s conftest.$ac_objext' | |
12783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12784 | (eval $ac_try) 2>&5 | |
12785 | ac_status=$? | |
12786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12787 | (exit $ac_status); }; }; then | |
12788 | eval "$as_ac_Header=yes" | |
bec39cab AC |
12789 | else |
12790 | echo "$as_me: failed program was:" >&5 | |
12791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12792 | ||
a9322a30 | 12793 | eval "$as_ac_Header=no" |
75c6e08a | 12794 | fi |
a9322a30 TT |
12795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12796 | fi | |
12797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12800 | cat >>confdefs.h <<_ACEOF | |
12801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12802 | _ACEOF | |
bec39cab | 12803 | |
bec39cab | 12804 | fi |
bec39cab | 12805 | |
a9322a30 TT |
12806 | done |
12807 | ||
12808 | ||
12809 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash | |
12810 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to | |
12811 | # think that we don't have <curses.h> if we're using GCC. | |
12812 | case $host_os in | |
12813 | solaris2.[789]) | |
12814 | if test "$GCC" = yes; then | |
12815 | ||
12816 | cat >>confdefs.h <<\_ACEOF | |
12817 | #define _MSE_INT_H 1 | |
bec39cab | 12818 | _ACEOF |
75c6e08a | 12819 | |
a9322a30 TT |
12820 | fi ;; |
12821 | esac | |
12822 | ||
75c6e08a MK |
12823 | |
12824 | ||
12825 | ||
9a156167 | 12826 | |
a9322a30 | 12827 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h |
bec39cab AC |
12828 | do |
12829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
12830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
12834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12835 | fi | |
b4e70030 JB |
12836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12838 | else |
12839 | # Is the header compilable? | |
b4e70030 JB |
12840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
12842 | cat >conftest.$ac_ext <<_ACEOF |
12843 | /* confdefs.h. */ | |
12844 | _ACEOF | |
12845 | cat confdefs.h >>conftest.$ac_ext | |
12846 | cat >>conftest.$ac_ext <<_ACEOF | |
12847 | /* end confdefs.h. */ | |
12848 | $ac_includes_default | |
12849 | #include <$ac_header> | |
12850 | _ACEOF | |
12851 | rm -f conftest.$ac_objext | |
12852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12853 | (eval $ac_compile) 2>conftest.er1 | |
12854 | ac_status=$? | |
12855 | grep -v '^ *+' conftest.er1 >conftest.err | |
12856 | rm -f conftest.er1 | |
12857 | cat conftest.err >&5 | |
12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12859 | (exit $ac_status); } && | |
b4e70030 JB |
12860 | { ac_try='test -z "$ac_c_werror_flag" |
12861 | || test ! -s conftest.err' | |
bec39cab AC |
12862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12863 | (eval $ac_try) 2>&5 | |
12864 | ac_status=$? | |
12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12866 | (exit $ac_status); }; } && | |
12867 | { ac_try='test -s conftest.$ac_objext' | |
12868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12869 | (eval $ac_try) 2>&5 | |
12870 | ac_status=$? | |
12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12872 | (exit $ac_status); }; }; then | |
12873 | ac_header_compiler=yes | |
12874 | else | |
12875 | echo "$as_me: failed program was:" >&5 | |
12876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12877 | ||
b4e70030 | 12878 | ac_header_compiler=no |
bec39cab AC |
12879 | fi |
12880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
12881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12882 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
12883 | |
12884 | # Is the header present? | |
b4e70030 JB |
12885 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12886 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
12887 | cat >conftest.$ac_ext <<_ACEOF |
12888 | /* confdefs.h. */ | |
12889 | _ACEOF | |
12890 | cat confdefs.h >>conftest.$ac_ext | |
12891 | cat >>conftest.$ac_ext <<_ACEOF | |
12892 | /* end confdefs.h. */ | |
12893 | #include <$ac_header> | |
12894 | _ACEOF | |
12895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12897 | ac_status=$? | |
12898 | grep -v '^ *+' conftest.er1 >conftest.err | |
12899 | rm -f conftest.er1 | |
12900 | cat conftest.err >&5 | |
12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12902 | (exit $ac_status); } >/dev/null; then | |
12903 | if test -s conftest.err; then | |
12904 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12906 | else | |
12907 | ac_cpp_err= | |
12908 | fi | |
9a156167 | 12909 | else |
bec39cab | 12910 | ac_cpp_err=yes |
9a156167 | 12911 | fi |
bec39cab AC |
12912 | if test -z "$ac_cpp_err"; then |
12913 | ac_header_preproc=yes | |
12914 | else | |
12915 | echo "$as_me: failed program was:" >&5 | |
12916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 12917 | |
bec39cab | 12918 | ac_header_preproc=no |
9a156167 | 12919 | fi |
bec39cab | 12920 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
12921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12922 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 12923 | |
bec39cab AC |
12924 | # So? What about this header? |
12925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12926 | yes:no: ) | |
12927 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12928 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12930 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12931 | ac_header_preproc=yes | |
12932 | ;; | |
12933 | no:yes:* ) | |
12934 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12936 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12937 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12938 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12939 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12940 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12941 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12943 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12944 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12945 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
12946 | ( |
12947 | cat <<\_ASBOX | |
12948 | ## ------------------------------------------ ## | |
12949 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12950 | ## ------------------------------------------ ## | |
12951 | _ASBOX | |
12952 | ) | | |
12953 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
12954 | ;; |
12955 | esac | |
b4e70030 JB |
12956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 12960 | else |
bec39cab | 12961 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 12962 | fi |
b4e70030 JB |
12963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 12965 | |
bec39cab AC |
12966 | fi |
12967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12968 | cat >>confdefs.h <<_ACEOF | |
12969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12970 | _ACEOF | |
9a156167 | 12971 | |
bec39cab | 12972 | fi |
9a156167 | 12973 | |
bec39cab | 12974 | done |
9a156167 | 12975 | |
9a156167 | 12976 | |
a9322a30 | 12977 | for ac_header in term.h |
bec39cab AC |
12978 | do |
12979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a9322a30 | 12980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
b4e70030 JB |
12981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 12983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12984 | else |
a9322a30 | 12985 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12986 | /* confdefs.h. */ |
12987 | _ACEOF | |
12988 | cat confdefs.h >>conftest.$ac_ext | |
12989 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb | 12990 | /* end confdefs.h. */ |
a9322a30 TT |
12991 | #if HAVE_CURSES_H |
12992 | # include <curses.h> | |
12993 | #endif | |
12994 | ||
12995 | ||
436868fb DP |
12996 | #include <$ac_header> |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext | |
12999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13000 | (eval $ac_compile) 2>conftest.er1 | |
13001 | ac_status=$? | |
13002 | grep -v '^ *+' conftest.er1 >conftest.err | |
13003 | rm -f conftest.er1 | |
13004 | cat conftest.err >&5 | |
13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); } && | |
13007 | { ac_try='test -z "$ac_c_werror_flag" | |
13008 | || test ! -s conftest.err' | |
13009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13010 | (eval $ac_try) 2>&5 | |
13011 | ac_status=$? | |
13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13013 | (exit $ac_status); }; } && | |
13014 | { ac_try='test -s conftest.$ac_objext' | |
13015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13016 | (eval $ac_try) 2>&5 | |
13017 | ac_status=$? | |
13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13019 | (exit $ac_status); }; }; then | |
a9322a30 | 13020 | eval "$as_ac_Header=yes" |
436868fb DP |
13021 | else |
13022 | echo "$as_me: failed program was:" >&5 | |
13023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13024 | ||
a9322a30 | 13025 | eval "$as_ac_Header=no" |
436868fb DP |
13026 | fi |
13027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13028 | fi |
13029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13031 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13032 | cat >>confdefs.h <<_ACEOF | |
13033 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13034 | _ACEOF | |
436868fb | 13035 | |
a9322a30 TT |
13036 | fi |
13037 | ||
13038 | done | |
13039 | ||
13040 | ||
13041 | # ------------------------- # | |
13042 | # Checks for declarations. # | |
13043 | # ------------------------- # | |
13044 | ||
13045 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
13046 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
13047 | if test "${ac_cv_have_decl_free+set}" = set; then | |
13048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13049 | else | |
13050 | cat >conftest.$ac_ext <<_ACEOF | |
436868fb DP |
13051 | /* confdefs.h. */ |
13052 | _ACEOF | |
13053 | cat confdefs.h >>conftest.$ac_ext | |
13054 | cat >>conftest.$ac_ext <<_ACEOF | |
13055 | /* end confdefs.h. */ | |
a9322a30 TT |
13056 | $ac_includes_default |
13057 | int | |
13058 | main () | |
13059 | { | |
13060 | #ifndef free | |
13061 | char *p = (char *) free; | |
13062 | #endif | |
13063 | ||
13064 | ; | |
13065 | return 0; | |
13066 | } | |
436868fb | 13067 | _ACEOF |
a9322a30 TT |
13068 | rm -f conftest.$ac_objext |
13069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13070 | (eval $ac_compile) 2>conftest.er1 | |
436868fb DP |
13071 | ac_status=$? |
13072 | grep -v '^ *+' conftest.er1 >conftest.err | |
13073 | rm -f conftest.er1 | |
13074 | cat conftest.err >&5 | |
13075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 TT |
13076 | (exit $ac_status); } && |
13077 | { ac_try='test -z "$ac_c_werror_flag" | |
13078 | || test ! -s conftest.err' | |
13079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13080 | (eval $ac_try) 2>&5 | |
13081 | ac_status=$? | |
13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13083 | (exit $ac_status); }; } && | |
13084 | { ac_try='test -s conftest.$ac_objext' | |
13085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13086 | (eval $ac_try) 2>&5 | |
13087 | ac_status=$? | |
13088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13089 | (exit $ac_status); }; }; then | |
13090 | ac_cv_have_decl_free=yes | |
436868fb DP |
13091 | else |
13092 | echo "$as_me: failed program was:" >&5 | |
13093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13094 | ||
a9322a30 | 13095 | ac_cv_have_decl_free=no |
436868fb | 13096 | fi |
a9322a30 | 13097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
436868fb | 13098 | fi |
a9322a30 TT |
13099 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
13100 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
13101 | if test $ac_cv_have_decl_free = yes; then | |
436868fb | 13102 | |
a9322a30 TT |
13103 | cat >>confdefs.h <<_ACEOF |
13104 | #define HAVE_DECL_FREE 1 | |
436868fb DP |
13105 | _ACEOF |
13106 | ||
436868fb | 13107 | |
a9322a30 TT |
13108 | else |
13109 | cat >>confdefs.h <<_ACEOF | |
13110 | #define HAVE_DECL_FREE 0 | |
13111 | _ACEOF | |
436868fb DP |
13112 | |
13113 | ||
436868fb | 13114 | fi |
a9322a30 TT |
13115 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
13116 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
13117 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
13118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
436868fb | 13119 | else |
a9322a30 | 13120 | cat >conftest.$ac_ext <<_ACEOF |
436868fb DP |
13121 | /* confdefs.h. */ |
13122 | _ACEOF | |
13123 | cat confdefs.h >>conftest.$ac_ext | |
13124 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
13125 | /* end confdefs.h. */ |
13126 | $ac_includes_default | |
a9322a30 TT |
13127 | int |
13128 | main () | |
13129 | { | |
13130 | #ifndef malloc | |
13131 | char *p = (char *) malloc; | |
13132 | #endif | |
13133 | ||
13134 | ; | |
13135 | return 0; | |
13136 | } | |
bec39cab AC |
13137 | _ACEOF |
13138 | rm -f conftest.$ac_objext | |
13139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13140 | (eval $ac_compile) 2>conftest.er1 | |
13141 | ac_status=$? | |
13142 | grep -v '^ *+' conftest.er1 >conftest.err | |
13143 | rm -f conftest.er1 | |
13144 | cat conftest.err >&5 | |
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13146 | (exit $ac_status); } && | |
b4e70030 JB |
13147 | { ac_try='test -z "$ac_c_werror_flag" |
13148 | || test ! -s conftest.err' | |
bec39cab AC |
13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13150 | (eval $ac_try) 2>&5 | |
13151 | ac_status=$? | |
13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13153 | (exit $ac_status); }; } && | |
13154 | { ac_try='test -s conftest.$ac_objext' | |
13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13156 | (eval $ac_try) 2>&5 | |
13157 | ac_status=$? | |
13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13159 | (exit $ac_status); }; }; then | |
a9322a30 | 13160 | ac_cv_have_decl_malloc=yes |
bec39cab AC |
13161 | else |
13162 | echo "$as_me: failed program was:" >&5 | |
13163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13164 | ||
a9322a30 | 13165 | ac_cv_have_decl_malloc=no |
bec39cab AC |
13166 | fi |
13167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13168 | fi |
13169 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 | |
13170 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
13171 | if test $ac_cv_have_decl_malloc = yes; then | |
bec39cab | 13172 | |
a9322a30 TT |
13173 | cat >>confdefs.h <<_ACEOF |
13174 | #define HAVE_DECL_MALLOC 1 | |
bec39cab | 13175 | _ACEOF |
9a156167 | 13176 | |
9a156167 MK |
13177 | |
13178 | else | |
bec39cab | 13179 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13180 | #define HAVE_DECL_MALLOC 0 |
bec39cab | 13181 | _ACEOF |
9a156167 | 13182 | |
c890192f | 13183 | |
bec39cab | 13184 | fi |
a9322a30 TT |
13185 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
13186 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
13187 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
13188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13189 | else |
a9322a30 | 13190 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13191 | /* confdefs.h. */ |
13192 | _ACEOF | |
13193 | cat confdefs.h >>conftest.$ac_ext | |
13194 | cat >>conftest.$ac_ext <<_ACEOF | |
13195 | /* end confdefs.h. */ | |
13196 | $ac_includes_default | |
a9322a30 TT |
13197 | int |
13198 | main () | |
13199 | { | |
13200 | #ifndef realloc | |
13201 | char *p = (char *) realloc; | |
13202 | #endif | |
13203 | ||
13204 | ; | |
13205 | return 0; | |
13206 | } | |
bec39cab AC |
13207 | _ACEOF |
13208 | rm -f conftest.$ac_objext | |
13209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13210 | (eval $ac_compile) 2>conftest.er1 | |
13211 | ac_status=$? | |
13212 | grep -v '^ *+' conftest.er1 >conftest.err | |
13213 | rm -f conftest.er1 | |
13214 | cat conftest.err >&5 | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); } && | |
b4e70030 JB |
13217 | { ac_try='test -z "$ac_c_werror_flag" |
13218 | || test ! -s conftest.err' | |
bec39cab AC |
13219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13220 | (eval $ac_try) 2>&5 | |
13221 | ac_status=$? | |
13222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13223 | (exit $ac_status); }; } && | |
13224 | { ac_try='test -s conftest.$ac_objext' | |
13225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13226 | (eval $ac_try) 2>&5 | |
13227 | ac_status=$? | |
13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13229 | (exit $ac_status); }; }; then | |
a9322a30 | 13230 | ac_cv_have_decl_realloc=yes |
bec39cab AC |
13231 | else |
13232 | echo "$as_me: failed program was:" >&5 | |
13233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13234 | ||
a9322a30 | 13235 | ac_cv_have_decl_realloc=no |
bec39cab AC |
13236 | fi |
13237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13238 | fi |
13239 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 | |
13240 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
13241 | if test $ac_cv_have_decl_realloc = yes; then | |
bec39cab | 13242 | |
a9322a30 TT |
13243 | cat >>confdefs.h <<_ACEOF |
13244 | #define HAVE_DECL_REALLOC 1 | |
bec39cab | 13245 | _ACEOF |
bec39cab | 13246 | |
bec39cab | 13247 | |
c890192f | 13248 | else |
bec39cab | 13249 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13250 | #define HAVE_DECL_REALLOC 0 |
bec39cab | 13251 | _ACEOF |
c890192f | 13252 | |
bec39cab | 13253 | |
bec39cab | 13254 | fi |
a9322a30 TT |
13255 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
13256 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
13257 | if test "${ac_cv_have_decl_strerror+set}" = set; then | |
13258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13259 | else |
a9322a30 | 13260 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13261 | /* confdefs.h. */ |
13262 | _ACEOF | |
13263 | cat confdefs.h >>conftest.$ac_ext | |
13264 | cat >>conftest.$ac_ext <<_ACEOF | |
13265 | /* end confdefs.h. */ | |
13266 | $ac_includes_default | |
a9322a30 TT |
13267 | int |
13268 | main () | |
13269 | { | |
13270 | #ifndef strerror | |
13271 | char *p = (char *) strerror; | |
13272 | #endif | |
13273 | ||
13274 | ; | |
13275 | return 0; | |
13276 | } | |
bec39cab AC |
13277 | _ACEOF |
13278 | rm -f conftest.$ac_objext | |
13279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13280 | (eval $ac_compile) 2>conftest.er1 | |
13281 | ac_status=$? | |
13282 | grep -v '^ *+' conftest.er1 >conftest.err | |
13283 | rm -f conftest.er1 | |
13284 | cat conftest.err >&5 | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); } && | |
b4e70030 JB |
13287 | { ac_try='test -z "$ac_c_werror_flag" |
13288 | || test ! -s conftest.err' | |
bec39cab AC |
13289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13290 | (eval $ac_try) 2>&5 | |
13291 | ac_status=$? | |
13292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13293 | (exit $ac_status); }; } && | |
13294 | { ac_try='test -s conftest.$ac_objext' | |
13295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13296 | (eval $ac_try) 2>&5 | |
13297 | ac_status=$? | |
13298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13299 | (exit $ac_status); }; }; then | |
a9322a30 | 13300 | ac_cv_have_decl_strerror=yes |
bec39cab AC |
13301 | else |
13302 | echo "$as_me: failed program was:" >&5 | |
13303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13304 | ||
a9322a30 | 13305 | ac_cv_have_decl_strerror=no |
bec39cab AC |
13306 | fi |
13307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13308 | fi |
13309 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 | |
13310 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
13311 | if test $ac_cv_have_decl_strerror = yes; then | |
bec39cab | 13312 | |
a9322a30 TT |
13313 | cat >>confdefs.h <<_ACEOF |
13314 | #define HAVE_DECL_STRERROR 1 | |
bec39cab | 13315 | _ACEOF |
bec39cab | 13316 | |
bec39cab | 13317 | |
9a156167 | 13318 | else |
bec39cab | 13319 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13320 | #define HAVE_DECL_STRERROR 0 |
bec39cab | 13321 | _ACEOF |
9a156167 | 13322 | |
06825bd1 | 13323 | |
bec39cab | 13324 | fi |
a9322a30 TT |
13325 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
13326 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
13327 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13329 | else |
a9322a30 | 13330 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13331 | /* confdefs.h. */ |
13332 | _ACEOF | |
13333 | cat confdefs.h >>conftest.$ac_ext | |
13334 | cat >>conftest.$ac_ext <<_ACEOF | |
13335 | /* end confdefs.h. */ | |
13336 | $ac_includes_default | |
a9322a30 TT |
13337 | int |
13338 | main () | |
13339 | { | |
13340 | #ifndef strstr | |
13341 | char *p = (char *) strstr; | |
13342 | #endif | |
13343 | ||
13344 | ; | |
13345 | return 0; | |
13346 | } | |
bec39cab AC |
13347 | _ACEOF |
13348 | rm -f conftest.$ac_objext | |
13349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13350 | (eval $ac_compile) 2>conftest.er1 | |
13351 | ac_status=$? | |
13352 | grep -v '^ *+' conftest.er1 >conftest.err | |
13353 | rm -f conftest.er1 | |
13354 | cat conftest.err >&5 | |
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13356 | (exit $ac_status); } && | |
b4e70030 JB |
13357 | { ac_try='test -z "$ac_c_werror_flag" |
13358 | || test ! -s conftest.err' | |
bec39cab AC |
13359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13360 | (eval $ac_try) 2>&5 | |
13361 | ac_status=$? | |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13363 | (exit $ac_status); }; } && | |
13364 | { ac_try='test -s conftest.$ac_objext' | |
13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13366 | (eval $ac_try) 2>&5 | |
13367 | ac_status=$? | |
13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13369 | (exit $ac_status); }; }; then | |
a9322a30 | 13370 | ac_cv_have_decl_strstr=yes |
bec39cab AC |
13371 | else |
13372 | echo "$as_me: failed program was:" >&5 | |
13373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13374 | ||
a9322a30 | 13375 | ac_cv_have_decl_strstr=no |
bec39cab AC |
13376 | fi |
13377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13378 | fi |
13379 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 | |
13380 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
13381 | if test $ac_cv_have_decl_strstr = yes; then | |
bec39cab | 13382 | |
a9322a30 TT |
13383 | cat >>confdefs.h <<_ACEOF |
13384 | #define HAVE_DECL_STRSTR 1 | |
bec39cab | 13385 | _ACEOF |
bec39cab | 13386 | |
bec39cab | 13387 | |
bec39cab | 13388 | else |
bec39cab | 13389 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13390 | #define HAVE_DECL_STRSTR 0 |
bec39cab | 13391 | _ACEOF |
06825bd1 | 13392 | |
bec39cab | 13393 | |
bec39cab | 13394 | fi |
a9322a30 TT |
13395 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
13396 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
13397 | if test "${ac_cv_have_decl_getopt+set}" = set; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13399 | else |
a9322a30 | 13400 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13401 | /* confdefs.h. */ |
13402 | _ACEOF | |
13403 | cat confdefs.h >>conftest.$ac_ext | |
13404 | cat >>conftest.$ac_ext <<_ACEOF | |
13405 | /* end confdefs.h. */ | |
13406 | $ac_includes_default | |
a9322a30 TT |
13407 | int |
13408 | main () | |
13409 | { | |
13410 | #ifndef getopt | |
13411 | char *p = (char *) getopt; | |
13412 | #endif | |
13413 | ||
13414 | ; | |
13415 | return 0; | |
13416 | } | |
bec39cab AC |
13417 | _ACEOF |
13418 | rm -f conftest.$ac_objext | |
13419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13420 | (eval $ac_compile) 2>conftest.er1 | |
13421 | ac_status=$? | |
13422 | grep -v '^ *+' conftest.er1 >conftest.err | |
13423 | rm -f conftest.er1 | |
13424 | cat conftest.err >&5 | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13426 | (exit $ac_status); } && | |
b4e70030 JB |
13427 | { ac_try='test -z "$ac_c_werror_flag" |
13428 | || test ! -s conftest.err' | |
bec39cab AC |
13429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13430 | (eval $ac_try) 2>&5 | |
13431 | ac_status=$? | |
13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13433 | (exit $ac_status); }; } && | |
13434 | { ac_try='test -s conftest.$ac_objext' | |
13435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13436 | (eval $ac_try) 2>&5 | |
13437 | ac_status=$? | |
13438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13439 | (exit $ac_status); }; }; then | |
a9322a30 | 13440 | ac_cv_have_decl_getopt=yes |
bec39cab AC |
13441 | else |
13442 | echo "$as_me: failed program was:" >&5 | |
13443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13444 | ||
a9322a30 | 13445 | ac_cv_have_decl_getopt=no |
bec39cab AC |
13446 | fi |
13447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13448 | fi |
13449 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 | |
13450 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
13451 | if test $ac_cv_have_decl_getopt = yes; then | |
bec39cab | 13452 | |
a9322a30 TT |
13453 | cat >>confdefs.h <<_ACEOF |
13454 | #define HAVE_DECL_GETOPT 1 | |
bec39cab | 13455 | _ACEOF |
5ee754fc | 13456 | |
bec39cab | 13457 | |
5ee754fc | 13458 | else |
bec39cab | 13459 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13460 | #define HAVE_DECL_GETOPT 0 |
bec39cab | 13461 | _ACEOF |
c906108c | 13462 | |
bec39cab | 13463 | |
bec39cab | 13464 | fi |
a9322a30 TT |
13465 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
13466 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
13467 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
13468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13469 | else |
a9322a30 | 13470 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13471 | /* confdefs.h. */ |
13472 | _ACEOF | |
13473 | cat confdefs.h >>conftest.$ac_ext | |
13474 | cat >>conftest.$ac_ext <<_ACEOF | |
13475 | /* end confdefs.h. */ | |
13476 | $ac_includes_default | |
a9322a30 TT |
13477 | int |
13478 | main () | |
13479 | { | |
13480 | #ifndef snprintf | |
13481 | char *p = (char *) snprintf; | |
13482 | #endif | |
13483 | ||
13484 | ; | |
13485 | return 0; | |
13486 | } | |
bec39cab AC |
13487 | _ACEOF |
13488 | rm -f conftest.$ac_objext | |
13489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13490 | (eval $ac_compile) 2>conftest.er1 | |
13491 | ac_status=$? | |
13492 | grep -v '^ *+' conftest.er1 >conftest.err | |
13493 | rm -f conftest.er1 | |
13494 | cat conftest.err >&5 | |
13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13496 | (exit $ac_status); } && | |
b4e70030 JB |
13497 | { ac_try='test -z "$ac_c_werror_flag" |
13498 | || test ! -s conftest.err' | |
bec39cab AC |
13499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13500 | (eval $ac_try) 2>&5 | |
13501 | ac_status=$? | |
13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13503 | (exit $ac_status); }; } && | |
13504 | { ac_try='test -s conftest.$ac_objext' | |
13505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13506 | (eval $ac_try) 2>&5 | |
13507 | ac_status=$? | |
13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13509 | (exit $ac_status); }; }; then | |
a9322a30 | 13510 | ac_cv_have_decl_snprintf=yes |
bec39cab AC |
13511 | else |
13512 | echo "$as_me: failed program was:" >&5 | |
13513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13514 | ||
a9322a30 | 13515 | ac_cv_have_decl_snprintf=no |
bec39cab AC |
13516 | fi |
13517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13518 | fi |
13519 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
13520 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
13521 | if test $ac_cv_have_decl_snprintf = yes; then | |
bec39cab | 13522 | |
a9322a30 TT |
13523 | cat >>confdefs.h <<_ACEOF |
13524 | #define HAVE_DECL_SNPRINTF 1 | |
bec39cab | 13525 | _ACEOF |
c906108c SS |
13526 | |
13527 | ||
9608ab8b | 13528 | else |
bec39cab | 13529 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13530 | #define HAVE_DECL_SNPRINTF 0 |
bec39cab | 13531 | _ACEOF |
5ee754fc | 13532 | |
5ee754fc | 13533 | |
bec39cab | 13534 | fi |
a9322a30 TT |
13535 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
13536 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
13537 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13539 | else |
a9322a30 | 13540 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13541 | /* confdefs.h. */ |
13542 | _ACEOF | |
13543 | cat confdefs.h >>conftest.$ac_ext | |
13544 | cat >>conftest.$ac_ext <<_ACEOF | |
13545 | /* end confdefs.h. */ | |
13546 | $ac_includes_default | |
a9322a30 TT |
13547 | int |
13548 | main () | |
13549 | { | |
13550 | #ifndef vsnprintf | |
13551 | char *p = (char *) vsnprintf; | |
13552 | #endif | |
13553 | ||
13554 | ; | |
13555 | return 0; | |
13556 | } | |
bec39cab AC |
13557 | _ACEOF |
13558 | rm -f conftest.$ac_objext | |
13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13560 | (eval $ac_compile) 2>conftest.er1 | |
13561 | ac_status=$? | |
13562 | grep -v '^ *+' conftest.er1 >conftest.err | |
13563 | rm -f conftest.er1 | |
13564 | cat conftest.err >&5 | |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13566 | (exit $ac_status); } && | |
b4e70030 JB |
13567 | { ac_try='test -z "$ac_c_werror_flag" |
13568 | || test ! -s conftest.err' | |
bec39cab AC |
13569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13570 | (eval $ac_try) 2>&5 | |
13571 | ac_status=$? | |
13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13573 | (exit $ac_status); }; } && | |
13574 | { ac_try='test -s conftest.$ac_objext' | |
13575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13576 | (eval $ac_try) 2>&5 | |
13577 | ac_status=$? | |
13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13579 | (exit $ac_status); }; }; then | |
a9322a30 | 13580 | ac_cv_have_decl_vsnprintf=yes |
bec39cab AC |
13581 | else |
13582 | echo "$as_me: failed program was:" >&5 | |
13583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13584 | ||
a9322a30 | 13585 | ac_cv_have_decl_vsnprintf=no |
bec39cab AC |
13586 | fi |
13587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
13588 | fi |
13589 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
13590 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
13591 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
bec39cab | 13592 | |
a9322a30 TT |
13593 | cat >>confdefs.h <<_ACEOF |
13594 | #define HAVE_DECL_VSNPRINTF 1 | |
bec39cab | 13595 | _ACEOF |
5ee754fc | 13596 | |
5ee754fc | 13597 | |
5ee754fc | 13598 | else |
bec39cab | 13599 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 13600 | #define HAVE_DECL_VSNPRINTF 0 |
bec39cab | 13601 | _ACEOF |
5ee754fc | 13602 | |
a9322a30 | 13603 | |
5ee754fc MK |
13604 | fi |
13605 | ||
bec39cab AC |
13606 | |
13607 | ||
a8111142 TT |
13608 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
13609 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
13610 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13612 | else | |
13613 | cat >conftest.$ac_ext <<_ACEOF | |
13614 | /* confdefs.h. */ | |
13615 | _ACEOF | |
13616 | cat confdefs.h >>conftest.$ac_ext | |
13617 | cat >>conftest.$ac_ext <<_ACEOF | |
13618 | /* end confdefs.h. */ | |
13619 | #include <locale.h> | |
13620 | int | |
13621 | main () | |
13622 | { | |
13623 | return LC_MESSAGES | |
13624 | ; | |
13625 | return 0; | |
13626 | } | |
13627 | _ACEOF | |
13628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13630 | (eval $ac_link) 2>conftest.er1 | |
13631 | ac_status=$? | |
13632 | grep -v '^ *+' conftest.er1 >conftest.err | |
13633 | rm -f conftest.er1 | |
13634 | cat conftest.err >&5 | |
13635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13636 | (exit $ac_status); } && | |
13637 | { ac_try='test -z "$ac_c_werror_flag" | |
13638 | || test ! -s conftest.err' | |
13639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13640 | (eval $ac_try) 2>&5 | |
13641 | ac_status=$? | |
13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13643 | (exit $ac_status); }; } && | |
13644 | { ac_try='test -s conftest$ac_exeext' | |
13645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13646 | (eval $ac_try) 2>&5 | |
13647 | ac_status=$? | |
13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13649 | (exit $ac_status); }; }; then | |
13650 | am_cv_val_LC_MESSAGES=yes | |
13651 | else | |
13652 | echo "$as_me: failed program was:" >&5 | |
13653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13654 | ||
13655 | am_cv_val_LC_MESSAGES=no | |
13656 | fi | |
13657 | rm -f conftest.err conftest.$ac_objext \ | |
13658 | conftest$ac_exeext conftest.$ac_ext | |
13659 | fi | |
13660 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
13661 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
13662 | if test $am_cv_val_LC_MESSAGES = yes; then | |
13663 | ||
13664 | cat >>confdefs.h <<\_ACEOF | |
13665 | #define HAVE_LC_MESSAGES 1 | |
13666 | _ACEOF | |
13667 | ||
13668 | fi | |
13669 | ||
13670 | ||
a9322a30 TT |
13671 | # ----------------------- # |
13672 | # Checks for structures. # | |
13673 | # ----------------------- # | |
13674 | ||
13675 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
13676 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
13677 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
bec39cab | 13678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13679 | else |
a9322a30 | 13680 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13681 | /* confdefs.h. */ |
13682 | _ACEOF | |
13683 | cat confdefs.h >>conftest.$ac_ext | |
13684 | cat >>conftest.$ac_ext <<_ACEOF | |
13685 | /* end confdefs.h. */ | |
13686 | $ac_includes_default | |
a9322a30 TT |
13687 | int |
13688 | main () | |
13689 | { | |
13690 | static struct stat ac_aggr; | |
13691 | if (ac_aggr.st_blocks) | |
13692 | return 0; | |
13693 | ; | |
13694 | return 0; | |
13695 | } | |
bec39cab AC |
13696 | _ACEOF |
13697 | rm -f conftest.$ac_objext | |
13698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13699 | (eval $ac_compile) 2>conftest.er1 | |
13700 | ac_status=$? | |
13701 | grep -v '^ *+' conftest.er1 >conftest.err | |
13702 | rm -f conftest.er1 | |
13703 | cat conftest.err >&5 | |
13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13705 | (exit $ac_status); } && | |
b4e70030 JB |
13706 | { ac_try='test -z "$ac_c_werror_flag" |
13707 | || test ! -s conftest.err' | |
bec39cab AC |
13708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13709 | (eval $ac_try) 2>&5 | |
13710 | ac_status=$? | |
13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13712 | (exit $ac_status); }; } && | |
13713 | { ac_try='test -s conftest.$ac_objext' | |
13714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13715 | (eval $ac_try) 2>&5 | |
13716 | ac_status=$? | |
13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13718 | (exit $ac_status); }; }; then | |
a9322a30 | 13719 | ac_cv_member_struct_stat_st_blocks=yes |
bec39cab AC |
13720 | else |
13721 | echo "$as_me: failed program was:" >&5 | |
13722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13723 | ||
bec39cab AC |
13724 | cat >conftest.$ac_ext <<_ACEOF |
13725 | /* confdefs.h. */ | |
13726 | _ACEOF | |
13727 | cat confdefs.h >>conftest.$ac_ext | |
13728 | cat >>conftest.$ac_ext <<_ACEOF | |
13729 | /* end confdefs.h. */ | |
a9322a30 TT |
13730 | $ac_includes_default |
13731 | int | |
13732 | main () | |
13733 | { | |
13734 | static struct stat ac_aggr; | |
13735 | if (sizeof ac_aggr.st_blocks) | |
13736 | return 0; | |
13737 | ; | |
13738 | return 0; | |
13739 | } | |
bec39cab | 13740 | _ACEOF |
a9322a30 TT |
13741 | rm -f conftest.$ac_objext |
13742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13743 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13744 | ac_status=$? |
13745 | grep -v '^ *+' conftest.er1 >conftest.err | |
13746 | rm -f conftest.er1 | |
13747 | cat conftest.err >&5 | |
13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 TT |
13749 | (exit $ac_status); } && |
13750 | { ac_try='test -z "$ac_c_werror_flag" | |
13751 | || test ! -s conftest.err' | |
13752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13753 | (eval $ac_try) 2>&5 | |
13754 | ac_status=$? | |
13755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13756 | (exit $ac_status); }; } && | |
13757 | { ac_try='test -s conftest.$ac_objext' | |
13758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13759 | (eval $ac_try) 2>&5 | |
13760 | ac_status=$? | |
13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13762 | (exit $ac_status); }; }; then | |
13763 | ac_cv_member_struct_stat_st_blocks=yes | |
bec39cab AC |
13764 | else |
13765 | echo "$as_me: failed program was:" >&5 | |
13766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 13767 | |
a9322a30 | 13768 | ac_cv_member_struct_stat_st_blocks=no |
5ee754fc | 13769 | fi |
a9322a30 | 13770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5ee754fc | 13771 | fi |
a9322a30 | 13772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5ee754fc | 13773 | fi |
a9322a30 TT |
13774 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
13775 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
13776 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
5ee754fc | 13777 | |
a9322a30 TT |
13778 | cat >>confdefs.h <<_ACEOF |
13779 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
13780 | _ACEOF | |
5ee754fc | 13781 | |
5ee754fc | 13782 | |
bec39cab | 13783 | fi |
a9322a30 TT |
13784 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
13785 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
13786 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
13787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 13788 | else |
a9322a30 | 13789 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13790 | /* confdefs.h. */ |
13791 | _ACEOF | |
13792 | cat confdefs.h >>conftest.$ac_ext | |
13793 | cat >>conftest.$ac_ext <<_ACEOF | |
13794 | /* end confdefs.h. */ | |
13795 | $ac_includes_default | |
a9322a30 TT |
13796 | int |
13797 | main () | |
13798 | { | |
13799 | static struct stat ac_aggr; | |
13800 | if (ac_aggr.st_blksize) | |
13801 | return 0; | |
13802 | ; | |
13803 | return 0; | |
13804 | } | |
bec39cab AC |
13805 | _ACEOF |
13806 | rm -f conftest.$ac_objext | |
13807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13808 | (eval $ac_compile) 2>conftest.er1 | |
13809 | ac_status=$? | |
13810 | grep -v '^ *+' conftest.er1 >conftest.err | |
13811 | rm -f conftest.er1 | |
13812 | cat conftest.err >&5 | |
13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13814 | (exit $ac_status); } && | |
b4e70030 JB |
13815 | { ac_try='test -z "$ac_c_werror_flag" |
13816 | || test ! -s conftest.err' | |
bec39cab AC |
13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13818 | (eval $ac_try) 2>&5 | |
13819 | ac_status=$? | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); }; } && | |
13822 | { ac_try='test -s conftest.$ac_objext' | |
13823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13824 | (eval $ac_try) 2>&5 | |
13825 | ac_status=$? | |
13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 | (exit $ac_status); }; }; then | |
a9322a30 | 13828 | ac_cv_member_struct_stat_st_blksize=yes |
bec39cab AC |
13829 | else |
13830 | echo "$as_me: failed program was:" >&5 | |
13831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13832 | ||
7eb368b3 NR |
13833 | cat >conftest.$ac_ext <<_ACEOF |
13834 | /* confdefs.h. */ | |
13835 | _ACEOF | |
13836 | cat confdefs.h >>conftest.$ac_ext | |
13837 | cat >>conftest.$ac_ext <<_ACEOF | |
13838 | /* end confdefs.h. */ | |
13839 | $ac_includes_default | |
a9322a30 TT |
13840 | int |
13841 | main () | |
13842 | { | |
13843 | static struct stat ac_aggr; | |
13844 | if (sizeof ac_aggr.st_blksize) | |
13845 | return 0; | |
13846 | ; | |
13847 | return 0; | |
13848 | } | |
7eb368b3 NR |
13849 | _ACEOF |
13850 | rm -f conftest.$ac_objext | |
13851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13852 | (eval $ac_compile) 2>conftest.er1 | |
13853 | ac_status=$? | |
13854 | grep -v '^ *+' conftest.er1 >conftest.err | |
13855 | rm -f conftest.er1 | |
13856 | cat conftest.err >&5 | |
13857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13858 | (exit $ac_status); } && | |
13859 | { ac_try='test -z "$ac_c_werror_flag" | |
13860 | || test ! -s conftest.err' | |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; } && | |
13866 | { ac_try='test -s conftest.$ac_objext' | |
13867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13868 | (eval $ac_try) 2>&5 | |
13869 | ac_status=$? | |
13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13871 | (exit $ac_status); }; }; then | |
a9322a30 | 13872 | ac_cv_member_struct_stat_st_blksize=yes |
7eb368b3 NR |
13873 | else |
13874 | echo "$as_me: failed program was:" >&5 | |
13875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13876 | ||
a9322a30 | 13877 | ac_cv_member_struct_stat_st_blksize=no |
7eb368b3 NR |
13878 | fi |
13879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7eb368b3 | 13880 | fi |
a9322a30 | 13881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7eb368b3 | 13882 | fi |
a9322a30 TT |
13883 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
13884 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
13885 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
7eb368b3 | 13886 | |
a9322a30 TT |
13887 | cat >>confdefs.h <<_ACEOF |
13888 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
7eb368b3 NR |
13889 | _ACEOF |
13890 | ||
a9322a30 | 13891 | |
7eb368b3 NR |
13892 | fi |
13893 | ||
7eb368b3 | 13894 | |
a9322a30 TT |
13895 | # ------------------ # |
13896 | # Checks for types. # | |
13897 | # ------------------ # | |
7eb368b3 | 13898 | |
a9322a30 TT |
13899 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
13900 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
13901 | if test "${ac_cv_type_signal+set}" = set; then | |
bec39cab | 13902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13903 | else |
7cb9022a | 13904 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13905 | /* confdefs.h. */ |
13906 | _ACEOF | |
13907 | cat confdefs.h >>conftest.$ac_ext | |
13908 | cat >>conftest.$ac_ext <<_ACEOF | |
13909 | /* end confdefs.h. */ | |
a9322a30 TT |
13910 | #include <sys/types.h> |
13911 | #include <signal.h> | |
13912 | #ifdef signal | |
13913 | # undef signal | |
13914 | #endif | |
13915 | #ifdef __cplusplus | |
13916 | extern "C" void (*signal (int, void (*)(int)))(int); | |
13917 | #else | |
13918 | void (*signal ()) (); | |
7cb9022a MK |
13919 | #endif |
13920 | ||
a9322a30 TT |
13921 | int |
13922 | main () | |
13923 | { | |
13924 | int i; | |
13925 | ; | |
13926 | return 0; | |
13927 | } | |
bec39cab AC |
13928 | _ACEOF |
13929 | rm -f conftest.$ac_objext | |
13930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13931 | (eval $ac_compile) 2>conftest.er1 | |
13932 | ac_status=$? | |
13933 | grep -v '^ *+' conftest.er1 >conftest.err | |
13934 | rm -f conftest.er1 | |
13935 | cat conftest.err >&5 | |
13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13937 | (exit $ac_status); } && | |
b4e70030 JB |
13938 | { ac_try='test -z "$ac_c_werror_flag" |
13939 | || test ! -s conftest.err' | |
bec39cab AC |
13940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13941 | (eval $ac_try) 2>&5 | |
13942 | ac_status=$? | |
13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13944 | (exit $ac_status); }; } && | |
13945 | { ac_try='test -s conftest.$ac_objext' | |
13946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13947 | (eval $ac_try) 2>&5 | |
13948 | ac_status=$? | |
13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13950 | (exit $ac_status); }; }; then | |
a9322a30 | 13951 | ac_cv_type_signal=void |
bec39cab AC |
13952 | else |
13953 | echo "$as_me: failed program was:" >&5 | |
13954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13955 | ||
a9322a30 | 13956 | ac_cv_type_signal=int |
bec39cab AC |
13957 | fi |
13958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 13959 | fi |
a9322a30 TT |
13960 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
13961 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
bec39cab | 13962 | |
a9322a30 TT |
13963 | cat >>confdefs.h <<_ACEOF |
13964 | #define RETSIGTYPE $ac_cv_type_signal | |
13965 | _ACEOF | |
5ee754fc | 13966 | |
bec39cab | 13967 | |
a9322a30 TT |
13968 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
13969 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
13970 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
bec39cab | 13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13972 | else |
a9322a30 | 13973 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
13974 | /* confdefs.h. */ |
13975 | _ACEOF | |
13976 | cat confdefs.h >>conftest.$ac_ext | |
13977 | cat >>conftest.$ac_ext <<_ACEOF | |
13978 | /* end confdefs.h. */ | |
a9322a30 TT |
13979 | #include <sys/types.h> |
13980 | #include <sys/socket.h> | |
13981 | ||
13982 | ||
13983 | int | |
13984 | main () | |
13985 | { | |
13986 | if ((socklen_t *) 0) | |
13987 | return 0; | |
13988 | if (sizeof (socklen_t)) | |
13989 | return 0; | |
13990 | ; | |
13991 | return 0; | |
13992 | } | |
bec39cab AC |
13993 | _ACEOF |
13994 | rm -f conftest.$ac_objext | |
13995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13996 | (eval $ac_compile) 2>conftest.er1 | |
13997 | ac_status=$? | |
13998 | grep -v '^ *+' conftest.er1 >conftest.err | |
13999 | rm -f conftest.er1 | |
14000 | cat conftest.err >&5 | |
14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); } && | |
b4e70030 JB |
14003 | { ac_try='test -z "$ac_c_werror_flag" |
14004 | || test ! -s conftest.err' | |
bec39cab AC |
14005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14006 | (eval $ac_try) 2>&5 | |
14007 | ac_status=$? | |
14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14009 | (exit $ac_status); }; } && | |
14010 | { ac_try='test -s conftest.$ac_objext' | |
14011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14012 | (eval $ac_try) 2>&5 | |
14013 | ac_status=$? | |
14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14015 | (exit $ac_status); }; }; then | |
a9322a30 | 14016 | ac_cv_type_socklen_t=yes |
bec39cab AC |
14017 | else |
14018 | echo "$as_me: failed program was:" >&5 | |
14019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14020 | ||
a9322a30 | 14021 | ac_cv_type_socklen_t=no |
bec39cab AC |
14022 | fi |
14023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 TT |
14024 | fi |
14025 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
14026 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
14027 | if test $ac_cv_type_socklen_t = yes; then | |
bec39cab | 14028 | |
a9322a30 TT |
14029 | cat >>confdefs.h <<_ACEOF |
14030 | #define HAVE_SOCKLEN_T 1 | |
14031 | _ACEOF | |
14032 | ||
14033 | ||
14034 | fi | |
14035 | ||
14036 | ||
14037 | # ------------------------------------- # | |
14038 | # Checks for compiler characteristics. # | |
14039 | # ------------------------------------- # | |
14040 | ||
14041 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14042 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14043 | if test "${ac_cv_c_const+set}" = set; then | |
14044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14045 | else | |
14046 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14047 | /* confdefs.h. */ |
14048 | _ACEOF | |
14049 | cat confdefs.h >>conftest.$ac_ext | |
14050 | cat >>conftest.$ac_ext <<_ACEOF | |
14051 | /* end confdefs.h. */ | |
a9322a30 TT |
14052 | |
14053 | int | |
14054 | main () | |
14055 | { | |
14056 | /* FIXME: Include the comments suggested by Paul. */ | |
14057 | #ifndef __cplusplus | |
14058 | /* Ultrix mips cc rejects this. */ | |
14059 | typedef int charset[2]; | |
14060 | const charset x; | |
14061 | /* SunOS 4.1.1 cc rejects this. */ | |
14062 | char const *const *ccp; | |
14063 | char **p; | |
14064 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14065 | struct point {int x, y;}; | |
14066 | static struct point const zero = {0,0}; | |
14067 | /* AIX XL C 1.02.0.0 rejects this. | |
14068 | It does not let you subtract one const X* pointer from another in | |
14069 | an arm of an if-expression whose if-part is not a constant | |
14070 | expression */ | |
14071 | const char *g = "string"; | |
14072 | ccp = &g + (g ? g-g : 0); | |
14073 | /* HPUX 7.0 cc rejects these. */ | |
14074 | ++ccp; | |
14075 | p = (char**) ccp; | |
14076 | ccp = (char const *const *) p; | |
14077 | { /* SCO 3.2v4 cc rejects this. */ | |
14078 | char *t; | |
14079 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14080 | ||
14081 | *t++ = 0; | |
14082 | } | |
14083 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14084 | int x[] = {25, 17}; | |
14085 | const int *foo = &x[0]; | |
14086 | ++foo; | |
14087 | } | |
14088 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14089 | typedef const int *iptr; | |
14090 | iptr p = 0; | |
14091 | ++p; | |
14092 | } | |
14093 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14094 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14095 | struct s { int j; const int *ap[3]; }; | |
14096 | struct s *b; b->j = 5; | |
14097 | } | |
14098 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14099 | const int foo = 10; | |
14100 | } | |
14101 | #endif | |
14102 | ||
14103 | ; | |
14104 | return 0; | |
14105 | } | |
bec39cab | 14106 | _ACEOF |
a9322a30 TT |
14107 | rm -f conftest.$ac_objext |
14108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14109 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14110 | ac_status=$? |
14111 | grep -v '^ *+' conftest.er1 >conftest.err | |
14112 | rm -f conftest.er1 | |
14113 | cat conftest.err >&5 | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 TT |
14115 | (exit $ac_status); } && |
14116 | { ac_try='test -z "$ac_c_werror_flag" | |
14117 | || test ! -s conftest.err' | |
14118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14119 | (eval $ac_try) 2>&5 | |
14120 | ac_status=$? | |
14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14122 | (exit $ac_status); }; } && | |
14123 | { ac_try='test -s conftest.$ac_objext' | |
14124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14125 | (eval $ac_try) 2>&5 | |
14126 | ac_status=$? | |
14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14128 | (exit $ac_status); }; }; then | |
14129 | ac_cv_c_const=yes | |
5ee754fc | 14130 | else |
bec39cab AC |
14131 | echo "$as_me: failed program was:" >&5 |
14132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14133 | ||
a9322a30 | 14134 | ac_cv_c_const=no |
5ee754fc | 14135 | fi |
a9322a30 | 14136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5ee754fc | 14137 | fi |
a9322a30 TT |
14138 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14139 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14140 | if test $ac_cv_c_const = no; then | |
bec39cab | 14141 | |
a9322a30 TT |
14142 | cat >>confdefs.h <<\_ACEOF |
14143 | #define const | |
bec39cab AC |
14144 | _ACEOF |
14145 | ||
5ee754fc | 14146 | fi |
bec39cab | 14147 | |
a9322a30 TT |
14148 | echo "$as_me:$LINENO: checking for inline" >&5 |
14149 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14150 | if test "${ac_cv_c_inline+set}" = set; then | |
bec39cab | 14151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14152 | else |
a9322a30 TT |
14153 | ac_cv_c_inline=no |
14154 | for ac_kw in inline __inline__ __inline; do | |
14155 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14156 | /* confdefs.h. */ |
14157 | _ACEOF | |
14158 | cat confdefs.h >>conftest.$ac_ext | |
14159 | cat >>conftest.$ac_ext <<_ACEOF | |
14160 | /* end confdefs.h. */ | |
a9322a30 TT |
14161 | #ifndef __cplusplus |
14162 | typedef int foo_t; | |
14163 | static $ac_kw foo_t static_foo () {return 0; } | |
14164 | $ac_kw foo_t foo () {return 0; } | |
14165 | #endif | |
14166 | ||
bec39cab AC |
14167 | _ACEOF |
14168 | rm -f conftest.$ac_objext | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14170 | (eval $ac_compile) 2>conftest.er1 | |
14171 | ac_status=$? | |
14172 | grep -v '^ *+' conftest.er1 >conftest.err | |
14173 | rm -f conftest.er1 | |
14174 | cat conftest.err >&5 | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); } && | |
b4e70030 JB |
14177 | { ac_try='test -z "$ac_c_werror_flag" |
14178 | || test ! -s conftest.err' | |
bec39cab AC |
14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14180 | (eval $ac_try) 2>&5 | |
14181 | ac_status=$? | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); }; } && | |
14184 | { ac_try='test -s conftest.$ac_objext' | |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; }; then | |
a9322a30 | 14190 | ac_cv_c_inline=$ac_kw; break |
bec39cab AC |
14191 | else |
14192 | echo "$as_me: failed program was:" >&5 | |
14193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14194 | ||
bec39cab AC |
14195 | fi |
14196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a9322a30 | 14197 | done |
bec39cab | 14198 | |
5ee754fc | 14199 | fi |
a9322a30 TT |
14200 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14201 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 14202 | |
5ee754fc | 14203 | |
a9322a30 TT |
14204 | case $ac_cv_c_inline in |
14205 | inline | yes) ;; | |
14206 | *) | |
14207 | case $ac_cv_c_inline in | |
14208 | no) ac_val=;; | |
14209 | *) ac_val=$ac_cv_c_inline;; | |
14210 | esac | |
14211 | cat >>confdefs.h <<_ACEOF | |
14212 | #ifndef __cplusplus | |
14213 | #define inline $ac_val | |
14214 | #endif | |
14215 | _ACEOF | |
bec39cab AC |
14216 | ;; |
14217 | esac | |
bec39cab | 14218 | |
a9322a30 TT |
14219 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
14220 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
14221 | if test "${ac_cv_c_bigendian+set}" = set; then | |
bec39cab | 14222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14223 | else |
a9322a30 | 14224 | # See if sys/param.h defines the BYTE_ORDER macro. |
bec39cab AC |
14225 | cat >conftest.$ac_ext <<_ACEOF |
14226 | /* confdefs.h. */ | |
14227 | _ACEOF | |
14228 | cat confdefs.h >>conftest.$ac_ext | |
14229 | cat >>conftest.$ac_ext <<_ACEOF | |
14230 | /* end confdefs.h. */ | |
a9322a30 TT |
14231 | #include <sys/types.h> |
14232 | #include <sys/param.h> | |
14233 | ||
14234 | int | |
14235 | main () | |
14236 | { | |
14237 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
14238 | bogus endian macros | |
14239 | #endif | |
14240 | ||
14241 | ; | |
14242 | return 0; | |
14243 | } | |
bec39cab AC |
14244 | _ACEOF |
14245 | rm -f conftest.$ac_objext | |
14246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14247 | (eval $ac_compile) 2>conftest.er1 | |
14248 | ac_status=$? | |
14249 | grep -v '^ *+' conftest.er1 >conftest.err | |
14250 | rm -f conftest.er1 | |
14251 | cat conftest.err >&5 | |
14252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14253 | (exit $ac_status); } && | |
b4e70030 JB |
14254 | { ac_try='test -z "$ac_c_werror_flag" |
14255 | || test ! -s conftest.err' | |
bec39cab AC |
14256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14257 | (eval $ac_try) 2>&5 | |
14258 | ac_status=$? | |
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14260 | (exit $ac_status); }; } && | |
14261 | { ac_try='test -s conftest.$ac_objext' | |
14262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14263 | (eval $ac_try) 2>&5 | |
14264 | ac_status=$? | |
14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14266 | (exit $ac_status); }; }; then | |
a9322a30 | 14267 | # It does; now see whether it defined to BIG_ENDIAN or not. |
bec39cab AC |
14268 | cat >conftest.$ac_ext <<_ACEOF |
14269 | /* confdefs.h. */ | |
14270 | _ACEOF | |
14271 | cat confdefs.h >>conftest.$ac_ext | |
14272 | cat >>conftest.$ac_ext <<_ACEOF | |
14273 | /* end confdefs.h. */ | |
a9322a30 TT |
14274 | #include <sys/types.h> |
14275 | #include <sys/param.h> | |
14276 | ||
14277 | int | |
14278 | main () | |
14279 | { | |
14280 | #if BYTE_ORDER != BIG_ENDIAN | |
14281 | not big endian | |
14282 | #endif | |
14283 | ||
14284 | ; | |
14285 | return 0; | |
14286 | } | |
bec39cab | 14287 | _ACEOF |
a9322a30 TT |
14288 | rm -f conftest.$ac_objext |
14289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14290 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14291 | ac_status=$? |
14292 | grep -v '^ *+' conftest.er1 >conftest.err | |
14293 | rm -f conftest.er1 | |
14294 | cat conftest.err >&5 | |
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 TT |
14296 | (exit $ac_status); } && |
14297 | { ac_try='test -z "$ac_c_werror_flag" | |
14298 | || test ! -s conftest.err' | |
14299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14300 | (eval $ac_try) 2>&5 | |
14301 | ac_status=$? | |
14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14303 | (exit $ac_status); }; } && | |
14304 | { ac_try='test -s conftest.$ac_objext' | |
14305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14306 | (eval $ac_try) 2>&5 | |
14307 | ac_status=$? | |
14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14309 | (exit $ac_status); }; }; then | |
14310 | ac_cv_c_bigendian=yes | |
5ee754fc | 14311 | else |
bec39cab AC |
14312 | echo "$as_me: failed program was:" >&5 |
14313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14314 | ||
a9322a30 | 14315 | ac_cv_c_bigendian=no |
5ee754fc | 14316 | fi |
a9322a30 | 14317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 14318 | else |
a9322a30 TT |
14319 | echo "$as_me: failed program was:" >&5 |
14320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 14321 | |
a9322a30 TT |
14322 | # It does not; compile a test program. |
14323 | if test "$cross_compiling" = yes; then | |
14324 | # try to guess the endianness by grepping values into an object file | |
14325 | ac_cv_c_bigendian=unknown | |
14326 | cat >conftest.$ac_ext <<_ACEOF | |
14327 | /* confdefs.h. */ | |
7eb368b3 NR |
14328 | _ACEOF |
14329 | cat confdefs.h >>conftest.$ac_ext | |
14330 | cat >>conftest.$ac_ext <<_ACEOF | |
14331 | /* end confdefs.h. */ | |
a9322a30 TT |
14332 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
14333 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14334 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
14335 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14336 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14337 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
7eb368b3 NR |
14338 | int |
14339 | main () | |
14340 | { | |
a9322a30 | 14341 | _ascii (); _ebcdic (); |
7eb368b3 NR |
14342 | ; |
14343 | return 0; | |
14344 | } | |
14345 | _ACEOF | |
a9322a30 TT |
14346 | rm -f conftest.$ac_objext |
14347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14348 | (eval $ac_compile) 2>conftest.er1 | |
7eb368b3 NR |
14349 | ac_status=$? |
14350 | grep -v '^ *+' conftest.er1 >conftest.err | |
14351 | rm -f conftest.er1 | |
14352 | cat conftest.err >&5 | |
14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14354 | (exit $ac_status); } && | |
14355 | { ac_try='test -z "$ac_c_werror_flag" | |
14356 | || test ! -s conftest.err' | |
14357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14358 | (eval $ac_try) 2>&5 | |
14359 | ac_status=$? | |
14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14361 | (exit $ac_status); }; } && | |
a9322a30 | 14362 | { ac_try='test -s conftest.$ac_objext' |
7eb368b3 NR |
14363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14364 | (eval $ac_try) 2>&5 | |
14365 | ac_status=$? | |
14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14367 | (exit $ac_status); }; }; then | |
a9322a30 TT |
14368 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
14369 | ac_cv_c_bigendian=yes | |
14370 | fi | |
14371 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14372 | if test "$ac_cv_c_bigendian" = unknown; then | |
14373 | ac_cv_c_bigendian=no | |
14374 | else | |
14375 | # finding both strings is unlikely to happen, but who knows? | |
14376 | ac_cv_c_bigendian=unknown | |
14377 | fi | |
14378 | fi | |
7eb368b3 NR |
14379 | else |
14380 | echo "$as_me: failed program was:" >&5 | |
14381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14382 | ||
7eb368b3 | 14383 | fi |
a9322a30 | 14384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab AC |
14385 | else |
14386 | cat >conftest.$ac_ext <<_ACEOF | |
14387 | /* confdefs.h. */ | |
14388 | _ACEOF | |
14389 | cat confdefs.h >>conftest.$ac_ext | |
14390 | cat >>conftest.$ac_ext <<_ACEOF | |
14391 | /* end confdefs.h. */ | |
d3ea6809 MM |
14392 | int |
14393 | main () | |
14394 | { | |
a9322a30 TT |
14395 | /* Are we little or big endian? From Harbison&Steele. */ |
14396 | union | |
14397 | { | |
14398 | long l; | |
14399 | char c[sizeof (long)]; | |
14400 | } u; | |
14401 | u.l = 1; | |
14402 | exit (u.c[sizeof (long) - 1] == 1); | |
d3ea6809 MM |
14403 | } |
14404 | _ACEOF | |
a9322a30 | 14405 | rm -f conftest$ac_exeext |
d3ea6809 | 14406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a9322a30 | 14407 | (eval $ac_link) 2>&5 |
d3ea6809 MM |
14408 | ac_status=$? |
14409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 | 14410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
d3ea6809 MM |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; }; then | |
a9322a30 | 14416 | ac_cv_c_bigendian=no |
d3ea6809 | 14417 | else |
a9322a30 TT |
14418 | echo "$as_me: program exited with status $ac_status" >&5 |
14419 | echo "$as_me: failed program was:" >&5 | |
d3ea6809 MM |
14420 | sed 's/^/| /' conftest.$ac_ext >&5 |
14421 | ||
a9322a30 TT |
14422 | ( exit $ac_status ) |
14423 | ac_cv_c_bigendian=yes | |
d3ea6809 | 14424 | fi |
a9322a30 | 14425 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 14426 | fi |
d3ea6809 | 14427 | fi |
a9322a30 TT |
14428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14429 | fi | |
14430 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
14431 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
14432 | case $ac_cv_c_bigendian in | |
14433 | yes) | |
14434 | ||
14435 | cat >>confdefs.h <<\_ACEOF | |
14436 | #define WORDS_BIGENDIAN 1 | |
14437 | _ACEOF | |
14438 | ;; | |
14439 | no) | |
14440 | ;; | |
14441 | *) | |
14442 | { { echo "$as_me:$LINENO: error: unknown endianness | |
14443 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
14444 | echo "$as_me: error: unknown endianness | |
14445 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
14446 | { (exit 1); exit 1; }; } ;; | |
14447 | esac | |
d3ea6809 MM |
14448 | |
14449 | ||
a9322a30 TT |
14450 | # ------------------------------ # |
14451 | # Checks for library functions. # | |
14452 | # ------------------------------ # | |
d3ea6809 | 14453 | |
a9322a30 TT |
14454 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
14455 | # for constant arguments. Useless! | |
14456 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
14457 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
14458 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
d3ea6809 MM |
14459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14460 | else | |
14461 | cat >conftest.$ac_ext <<_ACEOF | |
14462 | /* confdefs.h. */ | |
14463 | _ACEOF | |
14464 | cat confdefs.h >>conftest.$ac_ext | |
14465 | cat >>conftest.$ac_ext <<_ACEOF | |
14466 | /* end confdefs.h. */ | |
a9322a30 | 14467 | #include <alloca.h> |
bec39cab AC |
14468 | int |
14469 | main () | |
14470 | { | |
a9322a30 | 14471 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
14472 | ; |
14473 | return 0; | |
14474 | } | |
14475 | _ACEOF | |
14476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14478 | (eval $ac_link) 2>conftest.er1 | |
14479 | ac_status=$? | |
14480 | grep -v '^ *+' conftest.er1 >conftest.err | |
14481 | rm -f conftest.er1 | |
14482 | cat conftest.err >&5 | |
14483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14484 | (exit $ac_status); } && | |
b4e70030 JB |
14485 | { ac_try='test -z "$ac_c_werror_flag" |
14486 | || test ! -s conftest.err' | |
bec39cab AC |
14487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14488 | (eval $ac_try) 2>&5 | |
14489 | ac_status=$? | |
14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14491 | (exit $ac_status); }; } && | |
14492 | { ac_try='test -s conftest$ac_exeext' | |
14493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14494 | (eval $ac_try) 2>&5 | |
14495 | ac_status=$? | |
14496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14497 | (exit $ac_status); }; }; then | |
a9322a30 | 14498 | ac_cv_working_alloca_h=yes |
bec39cab AC |
14499 | else |
14500 | echo "$as_me: failed program was:" >&5 | |
14501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14502 | ||
a9322a30 | 14503 | ac_cv_working_alloca_h=no |
bec39cab AC |
14504 | fi |
14505 | rm -f conftest.err conftest.$ac_objext \ | |
14506 | conftest$ac_exeext conftest.$ac_ext | |
14507 | fi | |
a9322a30 TT |
14508 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
14509 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
14510 | if test $ac_cv_working_alloca_h = yes; then | |
14511 | ||
14512 | cat >>confdefs.h <<\_ACEOF | |
14513 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 14514 | _ACEOF |
c906108c | 14515 | |
c906108c | 14516 | fi |
bec39cab | 14517 | |
a9322a30 TT |
14518 | echo "$as_me:$LINENO: checking for alloca" >&5 |
14519 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
14520 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
bec39cab AC |
14521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14522 | else | |
14523 | cat >conftest.$ac_ext <<_ACEOF | |
14524 | /* confdefs.h. */ | |
14525 | _ACEOF | |
14526 | cat confdefs.h >>conftest.$ac_ext | |
14527 | cat >>conftest.$ac_ext <<_ACEOF | |
14528 | /* end confdefs.h. */ | |
a9322a30 TT |
14529 | #ifdef __GNUC__ |
14530 | # define alloca __builtin_alloca | |
b4e70030 | 14531 | #else |
a9322a30 TT |
14532 | # ifdef _MSC_VER |
14533 | # include <malloc.h> | |
14534 | # define alloca _alloca | |
14535 | # else | |
14536 | # if HAVE_ALLOCA_H | |
14537 | # include <alloca.h> | |
14538 | # else | |
14539 | # ifdef _AIX | |
14540 | #pragma alloca | |
14541 | # else | |
14542 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14543 | char *alloca (); | |
14544 | # endif | |
14545 | # endif | |
14546 | # endif | |
14547 | # endif | |
c906108c | 14548 | #endif |
97bf5e38 | 14549 | |
bec39cab AC |
14550 | int |
14551 | main () | |
14552 | { | |
a9322a30 | 14553 | char *p = (char *) alloca (1); |
bec39cab AC |
14554 | ; |
14555 | return 0; | |
14556 | } | |
14557 | _ACEOF | |
14558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14560 | (eval $ac_link) 2>conftest.er1 | |
14561 | ac_status=$? | |
14562 | grep -v '^ *+' conftest.er1 >conftest.err | |
14563 | rm -f conftest.er1 | |
14564 | cat conftest.err >&5 | |
14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14566 | (exit $ac_status); } && | |
b4e70030 JB |
14567 | { ac_try='test -z "$ac_c_werror_flag" |
14568 | || test ! -s conftest.err' | |
bec39cab AC |
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14570 | (eval $ac_try) 2>&5 | |
14571 | ac_status=$? | |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14573 | (exit $ac_status); }; } && | |
14574 | { ac_try='test -s conftest$ac_exeext' | |
14575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14576 | (eval $ac_try) 2>&5 | |
14577 | ac_status=$? | |
14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14579 | (exit $ac_status); }; }; then | |
a9322a30 | 14580 | ac_cv_func_alloca_works=yes |
bec39cab AC |
14581 | else |
14582 | echo "$as_me: failed program was:" >&5 | |
14583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14584 | ||
a9322a30 | 14585 | ac_cv_func_alloca_works=no |
bec39cab AC |
14586 | fi |
14587 | rm -f conftest.err conftest.$ac_objext \ | |
14588 | conftest$ac_exeext conftest.$ac_ext | |
14589 | fi | |
a9322a30 TT |
14590 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
14591 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
14592 | ||
14593 | if test $ac_cv_func_alloca_works = yes; then | |
14594 | ||
14595 | cat >>confdefs.h <<\_ACEOF | |
14596 | #define HAVE_ALLOCA 1 | |
bec39cab | 14597 | _ACEOF |
c906108c | 14598 | |
a9322a30 TT |
14599 | else |
14600 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14601 | # that cause trouble. Some versions do not even contain alloca or | |
14602 | # contain a buggy version. If you still want to use their alloca, | |
14603 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
14604 | ||
14605 | ALLOCA=alloca.$ac_objext | |
14606 | ||
14607 | cat >>confdefs.h <<\_ACEOF | |
14608 | #define C_ALLOCA 1 | |
14609 | _ACEOF | |
c906108c | 14610 | |
bec39cab | 14611 | |
a9322a30 TT |
14612 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
14613 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
14614 | if test "${ac_cv_os_cray+set}" = set; then | |
14615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14616 | else | |
14617 | cat >conftest.$ac_ext <<_ACEOF | |
14618 | /* confdefs.h. */ | |
14619 | _ACEOF | |
14620 | cat confdefs.h >>conftest.$ac_ext | |
14621 | cat >>conftest.$ac_ext <<_ACEOF | |
14622 | /* end confdefs.h. */ | |
14623 | #if defined(CRAY) && ! defined(CRAY2) | |
14624 | webecray | |
14625 | #else | |
14626 | wenotbecray | |
14627 | #endif | |
14628 | ||
14629 | _ACEOF | |
14630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14631 | $EGREP "webecray" >/dev/null 2>&1; then | |
14632 | ac_cv_os_cray=yes | |
14633 | else | |
14634 | ac_cv_os_cray=no | |
14635 | fi | |
14636 | rm -f conftest* | |
14637 | ||
14638 | fi | |
14639 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
14640 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
14641 | if test $ac_cv_os_cray = yes; then | |
14642 | for ac_func in _getb67 GETB67 getb67; do | |
14643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
14644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
14647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14648 | else | |
14649 | cat >conftest.$ac_ext <<_ACEOF | |
14650 | /* confdefs.h. */ | |
14651 | _ACEOF | |
14652 | cat confdefs.h >>conftest.$ac_ext | |
14653 | cat >>conftest.$ac_ext <<_ACEOF | |
14654 | /* end confdefs.h. */ | |
14655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14657 | #define $ac_func innocuous_$ac_func | |
14658 | ||
97bf5e38 | 14659 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14660 | which can conflict with char $ac_func (); below. |
14661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14662 | <limits.h> exists even on freestanding compilers. */ | |
14663 | ||
14664 | #ifdef __STDC__ | |
14665 | # include <limits.h> | |
14666 | #else | |
14667 | # include <assert.h> | |
14668 | #endif | |
c906108c | 14669 | |
bec39cab | 14670 | #undef $ac_func |
97bf5e38 | 14671 | |
b4e70030 | 14672 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
14673 | #ifdef __cplusplus |
14674 | extern "C" | |
b4e70030 | 14675 | { |
bec39cab | 14676 | #endif |
b4e70030 JB |
14677 | /* We use char because int might match the return type of a gcc2 |
14678 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 14679 | char $ac_func (); |
97bf5e38 MK |
14680 | /* The GNU C library defines this for functions which it implements |
14681 | to always fail with ENOSYS. Some functions are actually named | |
14682 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 14683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 14684 | choke me |
b4e70030 JB |
14685 | #else |
14686 | char (*f) () = $ac_func; | |
14687 | #endif | |
14688 | #ifdef __cplusplus | |
14689 | } | |
c906108c | 14690 | #endif |
97bf5e38 | 14691 | |
bec39cab AC |
14692 | int |
14693 | main () | |
14694 | { | |
b4e70030 | 14695 | return f != $ac_func; |
bec39cab AC |
14696 | ; |
14697 | return 0; | |
14698 | } | |
14699 | _ACEOF | |
14700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14702 | (eval $ac_link) 2>conftest.er1 | |
14703 | ac_status=$? | |
14704 | grep -v '^ *+' conftest.er1 >conftest.err | |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); } && | |
b4e70030 JB |
14709 | { ac_try='test -z "$ac_c_werror_flag" |
14710 | || test ! -s conftest.err' | |
bec39cab AC |
14711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14712 | (eval $ac_try) 2>&5 | |
14713 | ac_status=$? | |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); }; } && | |
14716 | { ac_try='test -s conftest$ac_exeext' | |
14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14718 | (eval $ac_try) 2>&5 | |
14719 | ac_status=$? | |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 | (exit $ac_status); }; }; then | |
14722 | eval "$as_ac_var=yes" | |
14723 | else | |
14724 | echo "$as_me: failed program was:" >&5 | |
14725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14726 | ||
b4e70030 | 14727 | eval "$as_ac_var=no" |
bec39cab AC |
14728 | fi |
14729 | rm -f conftest.err conftest.$ac_objext \ | |
14730 | conftest$ac_exeext conftest.$ac_ext | |
14731 | fi | |
b4e70030 JB |
14732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
14733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab | 14734 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
a9322a30 TT |
14735 | |
14736 | cat >>confdefs.h <<_ACEOF | |
14737 | #define CRAY_STACKSEG_END $ac_func | |
bec39cab | 14738 | _ACEOF |
c906108c | 14739 | |
a9322a30 | 14740 | break |
c906108c SS |
14741 | fi |
14742 | ||
a9322a30 TT |
14743 | done |
14744 | fi | |
bec39cab | 14745 | |
a9322a30 TT |
14746 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
14747 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
14748 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
bec39cab | 14749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a9322a30 TT |
14750 | else |
14751 | if test "$cross_compiling" = yes; then | |
14752 | ac_cv_c_stack_direction=0 | |
bec39cab AC |
14753 | else |
14754 | cat >conftest.$ac_ext <<_ACEOF | |
14755 | /* confdefs.h. */ | |
14756 | _ACEOF | |
14757 | cat confdefs.h >>conftest.$ac_ext | |
14758 | cat >>conftest.$ac_ext <<_ACEOF | |
14759 | /* end confdefs.h. */ | |
a9322a30 TT |
14760 | int |
14761 | find_stack_direction () | |
b4e70030 | 14762 | { |
a9322a30 TT |
14763 | static char *addr = 0; |
14764 | auto char dummy; | |
14765 | if (addr == 0) | |
14766 | { | |
14767 | addr = &dummy; | |
14768 | return find_stack_direction (); | |
14769 | } | |
14770 | else | |
14771 | return (&dummy > addr) ? 1 : -1; | |
b4e70030 | 14772 | } |
b757528f | 14773 | |
bec39cab AC |
14774 | int |
14775 | main () | |
14776 | { | |
a9322a30 | 14777 | exit (find_stack_direction () < 0); |
bec39cab AC |
14778 | } |
14779 | _ACEOF | |
a9322a30 | 14780 | rm -f conftest$ac_exeext |
bec39cab | 14781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a9322a30 TT |
14782 | (eval $ac_link) 2>&5 |
14783 | ac_status=$? | |
14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14787 | (eval $ac_try) 2>&5 | |
14788 | ac_status=$? | |
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14790 | (exit $ac_status); }; }; then | |
14791 | ac_cv_c_stack_direction=1 | |
14792 | else | |
14793 | echo "$as_me: program exited with status $ac_status" >&5 | |
14794 | echo "$as_me: failed program was:" >&5 | |
14795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14796 | ||
14797 | ( exit $ac_status ) | |
14798 | ac_cv_c_stack_direction=-1 | |
14799 | fi | |
14800 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14801 | fi | |
14802 | fi | |
14803 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
14804 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
14805 | ||
14806 | cat >>confdefs.h <<_ACEOF | |
14807 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
14808 | _ACEOF | |
14809 | ||
14810 | ||
14811 | fi | |
14812 | ||
14813 | ||
14814 | ||
14815 | for ac_header in stdlib.h unistd.h | |
14816 | do | |
14817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14823 | fi | |
14824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14826 | else | |
14827 | # Is the header compilable? | |
14828 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14830 | cat >conftest.$ac_ext <<_ACEOF | |
14831 | /* confdefs.h. */ | |
14832 | _ACEOF | |
14833 | cat confdefs.h >>conftest.$ac_ext | |
14834 | cat >>conftest.$ac_ext <<_ACEOF | |
14835 | /* end confdefs.h. */ | |
14836 | $ac_includes_default | |
14837 | #include <$ac_header> | |
14838 | _ACEOF | |
14839 | rm -f conftest.$ac_objext | |
14840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14841 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14842 | ac_status=$? |
14843 | grep -v '^ *+' conftest.er1 >conftest.err | |
14844 | rm -f conftest.er1 | |
14845 | cat conftest.err >&5 | |
14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14847 | (exit $ac_status); } && | |
b4e70030 JB |
14848 | { ac_try='test -z "$ac_c_werror_flag" |
14849 | || test ! -s conftest.err' | |
bec39cab AC |
14850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14851 | (eval $ac_try) 2>&5 | |
14852 | ac_status=$? | |
14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14854 | (exit $ac_status); }; } && | |
a9322a30 | 14855 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14857 | (eval $ac_try) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); }; }; then | |
a9322a30 TT |
14861 | ac_header_compiler=yes |
14862 | else | |
14863 | echo "$as_me: failed program was:" >&5 | |
14864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14865 | ||
14866 | ac_header_compiler=no | |
14867 | fi | |
14868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14869 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14870 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14871 | ||
14872 | # Is the header present? | |
14873 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14874 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14875 | cat >conftest.$ac_ext <<_ACEOF | |
14876 | /* confdefs.h. */ | |
14877 | _ACEOF | |
14878 | cat confdefs.h >>conftest.$ac_ext | |
14879 | cat >>conftest.$ac_ext <<_ACEOF | |
14880 | /* end confdefs.h. */ | |
14881 | #include <$ac_header> | |
14882 | _ACEOF | |
14883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14885 | ac_status=$? | |
14886 | grep -v '^ *+' conftest.er1 >conftest.err | |
14887 | rm -f conftest.er1 | |
14888 | cat conftest.err >&5 | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); } >/dev/null; then | |
14891 | if test -s conftest.err; then | |
14892 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14893 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14894 | else | |
14895 | ac_cpp_err= | |
14896 | fi | |
14897 | else | |
14898 | ac_cpp_err=yes | |
14899 | fi | |
14900 | if test -z "$ac_cpp_err"; then | |
14901 | ac_header_preproc=yes | |
bec39cab AC |
14902 | else |
14903 | echo "$as_me: failed program was:" >&5 | |
14904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14905 | ||
a9322a30 TT |
14906 | ac_header_preproc=no |
14907 | fi | |
14908 | rm -f conftest.err conftest.$ac_ext | |
14909 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14910 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14911 | ||
14912 | # So? What about this header? | |
14913 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14914 | yes:no: ) | |
14915 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14916 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14918 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14919 | ac_header_preproc=yes | |
14920 | ;; | |
14921 | no:yes:* ) | |
14922 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14923 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14924 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14925 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14926 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14927 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14928 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14929 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14930 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14931 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14932 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14933 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14934 | ( | |
14935 | cat <<\_ASBOX | |
14936 | ## ------------------------------------------ ## | |
14937 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14938 | ## ------------------------------------------ ## | |
14939 | _ASBOX | |
14940 | ) | | |
14941 | sed "s/^/$as_me: WARNING: /" >&2 | |
14942 | ;; | |
14943 | esac | |
14944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14948 | else | |
14949 | eval "$as_ac_Header=\$ac_header_preproc" | |
bec39cab | 14950 | fi |
a9322a30 TT |
14951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
14952 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14953 | ||
bec39cab | 14954 | fi |
a9322a30 | 14955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 14956 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 14957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 14958 | _ACEOF |
b757528f | 14959 | |
b757528f | 14960 | fi |
bec39cab | 14961 | |
a9322a30 | 14962 | done |
a3828db0 | 14963 | |
83116857 | 14964 | |
a9322a30 | 14965 | for ac_func in getpagesize |
bcb3dc3d | 14966 | do |
bec39cab | 14967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
14968 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14970 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
14971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14972 | else | |
14973 | cat >conftest.$ac_ext <<_ACEOF | |
14974 | /* confdefs.h. */ | |
14975 | _ACEOF | |
14976 | cat confdefs.h >>conftest.$ac_ext | |
14977 | cat >>conftest.$ac_ext <<_ACEOF | |
14978 | /* end confdefs.h. */ | |
14979 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14981 | #define $ac_func innocuous_$ac_func | |
14982 | ||
bcb3dc3d | 14983 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14984 | which can conflict with char $ac_func (); below. |
14985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14986 | <limits.h> exists even on freestanding compilers. */ | |
14987 | ||
14988 | #ifdef __STDC__ | |
14989 | # include <limits.h> | |
14990 | #else | |
14991 | # include <assert.h> | |
14992 | #endif | |
bcb3dc3d | 14993 | |
bec39cab | 14994 | #undef $ac_func |
bcb3dc3d | 14995 | |
b4e70030 | 14996 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
14997 | #ifdef __cplusplus |
14998 | extern "C" | |
b4e70030 | 14999 | { |
bec39cab | 15000 | #endif |
b4e70030 JB |
15001 | /* We use char because int might match the return type of a gcc2 |
15002 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 15003 | char $ac_func (); |
bcb3dc3d MK |
15004 | /* The GNU C library defines this for functions which it implements |
15005 | to always fail with ENOSYS. Some functions are actually named | |
15006 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 15008 | choke me |
b4e70030 JB |
15009 | #else |
15010 | char (*f) () = $ac_func; | |
15011 | #endif | |
15012 | #ifdef __cplusplus | |
15013 | } | |
bcb3dc3d MK |
15014 | #endif |
15015 | ||
bec39cab AC |
15016 | int |
15017 | main () | |
15018 | { | |
b4e70030 | 15019 | return f != $ac_func; |
bec39cab AC |
15020 | ; |
15021 | return 0; | |
15022 | } | |
15023 | _ACEOF | |
15024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15026 | (eval $ac_link) 2>conftest.er1 | |
15027 | ac_status=$? | |
15028 | grep -v '^ *+' conftest.er1 >conftest.err | |
15029 | rm -f conftest.er1 | |
15030 | cat conftest.err >&5 | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); } && | |
b4e70030 JB |
15033 | { ac_try='test -z "$ac_c_werror_flag" |
15034 | || test ! -s conftest.err' | |
bec39cab AC |
15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15036 | (eval $ac_try) 2>&5 | |
15037 | ac_status=$? | |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 | (exit $ac_status); }; } && | |
15040 | { ac_try='test -s conftest$ac_exeext' | |
15041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15042 | (eval $ac_try) 2>&5 | |
15043 | ac_status=$? | |
15044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15045 | (exit $ac_status); }; }; then | |
15046 | eval "$as_ac_var=yes" | |
15047 | else | |
15048 | echo "$as_me: failed program was:" >&5 | |
15049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15050 | ||
b4e70030 | 15051 | eval "$as_ac_var=no" |
bec39cab AC |
15052 | fi |
15053 | rm -f conftest.err conftest.$ac_objext \ | |
15054 | conftest$ac_exeext conftest.$ac_ext | |
15055 | fi | |
b4e70030 JB |
15056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15057 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
15058 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15059 | cat >>confdefs.h <<_ACEOF | |
15060 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15061 | _ACEOF | |
bcb3dc3d | 15062 | |
bcb3dc3d MK |
15063 | fi |
15064 | done | |
15065 | ||
a9322a30 TT |
15066 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
15067 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
15068 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
bec39cab | 15069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a9322a30 TT |
15070 | else |
15071 | if test "$cross_compiling" = yes; then | |
15072 | ac_cv_func_mmap_fixed_mapped=no | |
bec39cab AC |
15073 | else |
15074 | cat >conftest.$ac_ext <<_ACEOF | |
15075 | /* confdefs.h. */ | |
15076 | _ACEOF | |
15077 | cat confdefs.h >>conftest.$ac_ext | |
15078 | cat >>conftest.$ac_ext <<_ACEOF | |
15079 | /* end confdefs.h. */ | |
a9322a30 TT |
15080 | $ac_includes_default |
15081 | /* malloc might have been renamed as rpl_malloc. */ | |
15082 | #undef malloc | |
bec39cab | 15083 | |
a9322a30 TT |
15084 | /* Thanks to Mike Haertel and Jim Avera for this test. |
15085 | Here is a matrix of mmap possibilities: | |
15086 | mmap private not fixed | |
15087 | mmap private fixed at somewhere currently unmapped | |
15088 | mmap private fixed at somewhere already mapped | |
15089 | mmap shared not fixed | |
15090 | mmap shared fixed at somewhere currently unmapped | |
15091 | mmap shared fixed at somewhere already mapped | |
15092 | For private mappings, we should verify that changes cannot be read() | |
15093 | back from the file, nor mmap's back from the file at a different | |
15094 | address. (There have been systems where private was not correctly | |
15095 | implemented like the infamous i386 svr4.0, and systems where the | |
15096 | VM page cache was not coherent with the file system buffer cache | |
15097 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
15098 | For shared mappings, we should conversely verify that changes get | |
15099 | propagated back to all the places they're supposed to be. | |
bec39cab | 15100 | |
a9322a30 TT |
15101 | Grep wants private fixed already mapped. |
15102 | The main things grep needs to know about mmap are: | |
15103 | * does it exist and is it safe to write into the mmap'd area | |
15104 | * how to use it (BSD variants) */ | |
8b9cf735 | 15105 | |
a9322a30 TT |
15106 | #include <fcntl.h> |
15107 | #include <sys/mman.h> | |
8b9cf735 | 15108 | |
a9322a30 TT |
15109 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
15110 | char *malloc (); | |
a3828db0 MK |
15111 | #endif |
15112 | ||
a9322a30 TT |
15113 | /* This mess was copied from the GNU getpagesize.h. */ |
15114 | #if !HAVE_GETPAGESIZE | |
15115 | /* Assume that all systems that can run configure have sys/param.h. */ | |
15116 | # if !HAVE_SYS_PARAM_H | |
15117 | # define HAVE_SYS_PARAM_H 1 | |
15118 | # endif | |
15119 | ||
15120 | # ifdef _SC_PAGESIZE | |
15121 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
15122 | # else /* no _SC_PAGESIZE */ | |
15123 | # if HAVE_SYS_PARAM_H | |
15124 | # include <sys/param.h> | |
15125 | # ifdef EXEC_PAGESIZE | |
15126 | # define getpagesize() EXEC_PAGESIZE | |
15127 | # else /* no EXEC_PAGESIZE */ | |
15128 | # ifdef NBPG | |
15129 | # define getpagesize() NBPG * CLSIZE | |
15130 | # ifndef CLSIZE | |
15131 | # define CLSIZE 1 | |
15132 | # endif /* no CLSIZE */ | |
15133 | # else /* no NBPG */ | |
15134 | # ifdef NBPC | |
15135 | # define getpagesize() NBPC | |
15136 | # else /* no NBPC */ | |
15137 | # ifdef PAGESIZE | |
15138 | # define getpagesize() PAGESIZE | |
15139 | # endif /* PAGESIZE */ | |
15140 | # endif /* no NBPC */ | |
15141 | # endif /* no NBPG */ | |
15142 | # endif /* no EXEC_PAGESIZE */ | |
15143 | # else /* no HAVE_SYS_PARAM_H */ | |
15144 | # define getpagesize() 8192 /* punt totally */ | |
15145 | # endif /* no HAVE_SYS_PARAM_H */ | |
15146 | # endif /* no _SC_PAGESIZE */ | |
15147 | ||
15148 | #endif /* no HAVE_GETPAGESIZE */ | |
15149 | ||
bec39cab AC |
15150 | int |
15151 | main () | |
15152 | { | |
a9322a30 TT |
15153 | char *data, *data2, *data3; |
15154 | int i, pagesize; | |
15155 | int fd; | |
15156 | ||
15157 | pagesize = getpagesize (); | |
15158 | ||
15159 | /* First, make a file with some known garbage in it. */ | |
15160 | data = (char *) malloc (pagesize); | |
15161 | if (!data) | |
15162 | exit (1); | |
15163 | for (i = 0; i < pagesize; ++i) | |
15164 | *(data + i) = rand (); | |
15165 | umask (0); | |
15166 | fd = creat ("conftest.mmap", 0600); | |
15167 | if (fd < 0) | |
15168 | exit (1); | |
15169 | if (write (fd, data, pagesize) != pagesize) | |
15170 | exit (1); | |
15171 | close (fd); | |
15172 | ||
15173 | /* Next, try to mmap the file at a fixed address which already has | |
15174 | something else allocated at it. If we can, also make sure that | |
15175 | we see the same garbage. */ | |
15176 | fd = open ("conftest.mmap", O_RDWR); | |
15177 | if (fd < 0) | |
15178 | exit (1); | |
15179 | data2 = (char *) malloc (2 * pagesize); | |
15180 | if (!data2) | |
15181 | exit (1); | |
15182 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
15183 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
15184 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
15185 | exit (1); | |
15186 | for (i = 0; i < pagesize; ++i) | |
15187 | if (*(data + i) != *(data2 + i)) | |
15188 | exit (1); | |
15189 | ||
15190 | /* Finally, make sure that changes to the mapped area do not | |
15191 | percolate back to the file as seen by read(). (This is a bug on | |
15192 | some variants of i386 svr4.0.) */ | |
15193 | for (i = 0; i < pagesize; ++i) | |
15194 | *(data2 + i) = *(data2 + i) + 1; | |
15195 | data3 = (char *) malloc (pagesize); | |
15196 | if (!data3) | |
15197 | exit (1); | |
15198 | if (read (fd, data3, pagesize) != pagesize) | |
15199 | exit (1); | |
15200 | for (i = 0; i < pagesize; ++i) | |
15201 | if (*(data + i) != *(data3 + i)) | |
15202 | exit (1); | |
15203 | close (fd); | |
15204 | exit (0); | |
bec39cab AC |
15205 | } |
15206 | _ACEOF | |
a9322a30 | 15207 | rm -f conftest$ac_exeext |
a3828db0 | 15208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a9322a30 | 15209 | (eval $ac_link) 2>&5 |
bec39cab AC |
15210 | ac_status=$? |
15211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a9322a30 | 15212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
15213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15214 | (eval $ac_try) 2>&5 | |
15215 | ac_status=$? | |
15216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15217 | (exit $ac_status); }; }; then | |
a9322a30 | 15218 | ac_cv_func_mmap_fixed_mapped=yes |
086ec9eb | 15219 | else |
a9322a30 TT |
15220 | echo "$as_me: program exited with status $ac_status" >&5 |
15221 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
15222 | sed 's/^/| /' conftest.$ac_ext >&5 |
15223 | ||
a9322a30 TT |
15224 | ( exit $ac_status ) |
15225 | ac_cv_func_mmap_fixed_mapped=no | |
a3828db0 | 15226 | fi |
a9322a30 | 15227 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 | 15228 | fi |
a9322a30 TT |
15229 | fi |
15230 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
15231 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
15232 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
15233 | ||
15234 | cat >>confdefs.h <<\_ACEOF | |
15235 | #define HAVE_MMAP 1 | |
a3828db0 MK |
15236 | _ACEOF |
15237 | ||
086ec9eb | 15238 | fi |
a9322a30 | 15239 | rm -f conftest.mmap |
a3828db0 | 15240 | |
a9322a30 TT |
15241 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
15242 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
15243 | if test "${ac_cv_type_pid_t+set}" = set; then | |
a3828db0 MK |
15244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15245 | else | |
15246 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
15247 | /* confdefs.h. */ |
15248 | _ACEOF | |
15249 | cat confdefs.h >>conftest.$ac_ext | |
15250 | cat >>conftest.$ac_ext <<_ACEOF | |
15251 | /* end confdefs.h. */ | |
a9322a30 | 15252 | $ac_includes_default |
bec39cab AC |
15253 | int |
15254 | main () | |
15255 | { | |
a9322a30 TT |
15256 | if ((pid_t *) 0) |
15257 | return 0; | |
15258 | if (sizeof (pid_t)) | |
15259 | return 0; | |
bec39cab AC |
15260 | ; |
15261 | return 0; | |
15262 | } | |
15263 | _ACEOF | |
a9322a30 TT |
15264 | rm -f conftest.$ac_objext |
15265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15266 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15267 | ac_status=$? |
15268 | grep -v '^ *+' conftest.er1 >conftest.err | |
15269 | rm -f conftest.er1 | |
15270 | cat conftest.err >&5 | |
15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15272 | (exit $ac_status); } && | |
b4e70030 JB |
15273 | { ac_try='test -z "$ac_c_werror_flag" |
15274 | || test ! -s conftest.err' | |
bec39cab AC |
15275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15276 | (eval $ac_try) 2>&5 | |
15277 | ac_status=$? | |
15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15279 | (exit $ac_status); }; } && | |
a9322a30 | 15280 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15282 | (eval $ac_try) 2>&5 | |
15283 | ac_status=$? | |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); }; }; then | |
a9322a30 | 15286 | ac_cv_type_pid_t=yes |
086ec9eb | 15287 | else |
bec39cab AC |
15288 | echo "$as_me: failed program was:" >&5 |
15289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15290 | ||
a9322a30 | 15291 | ac_cv_type_pid_t=no |
086ec9eb | 15292 | fi |
a9322a30 | 15293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb | 15294 | fi |
a9322a30 TT |
15295 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
15296 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
15297 | if test $ac_cv_type_pid_t = yes; then | |
15298 | : | |
15299 | else | |
15300 | ||
15301 | cat >>confdefs.h <<_ACEOF | |
15302 | #define pid_t int | |
bec39cab | 15303 | _ACEOF |
086ec9eb MK |
15304 | |
15305 | fi | |
15306 | ||
a3828db0 | 15307 | |
a9322a30 TT |
15308 | |
15309 | for ac_header in unistd.h vfork.h | |
a3828db0 | 15310 | do |
a9322a30 TT |
15311 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15313 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15315 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a9322a30 TT |
15317 | fi |
15318 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15319 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 15320 | else |
a9322a30 TT |
15321 | # Is the header compilable? |
15322 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15323 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15324 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
15325 | /* confdefs.h. */ |
15326 | _ACEOF | |
15327 | cat confdefs.h >>conftest.$ac_ext | |
15328 | cat >>conftest.$ac_ext <<_ACEOF | |
15329 | /* end confdefs.h. */ | |
a9322a30 TT |
15330 | $ac_includes_default |
15331 | #include <$ac_header> | |
bec39cab | 15332 | _ACEOF |
a9322a30 TT |
15333 | rm -f conftest.$ac_objext |
15334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15335 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab | 15336 | ac_status=$? |
a3828db0 MK |
15337 | grep -v '^ *+' conftest.er1 >conftest.err |
15338 | rm -f conftest.er1 | |
15339 | cat conftest.err >&5 | |
bec39cab | 15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 15341 | (exit $ac_status); } && |
b4e70030 JB |
15342 | { ac_try='test -z "$ac_c_werror_flag" |
15343 | || test ! -s conftest.err' | |
a3828db0 MK |
15344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15345 | (eval $ac_try) 2>&5 | |
15346 | ac_status=$? | |
15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15348 | (exit $ac_status); }; } && | |
a9322a30 | 15349 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15351 | (eval $ac_try) 2>&5 | |
15352 | ac_status=$? | |
15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15354 | (exit $ac_status); }; }; then | |
a9322a30 | 15355 | ac_header_compiler=yes |
c906108c | 15356 | else |
a3828db0 | 15357 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
15358 | sed 's/^/| /' conftest.$ac_ext >&5 |
15359 | ||
a9322a30 | 15360 | ac_header_compiler=no |
97bf5e38 | 15361 | fi |
a9322a30 TT |
15362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15363 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15364 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15365 | ||
15366 | # Is the header present? | |
15367 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15368 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15369 | cat >conftest.$ac_ext <<_ACEOF | |
15370 | /* confdefs.h. */ | |
15371 | _ACEOF | |
15372 | cat confdefs.h >>conftest.$ac_ext | |
15373 | cat >>conftest.$ac_ext <<_ACEOF | |
15374 | /* end confdefs.h. */ | |
15375 | #include <$ac_header> | |
15376 | _ACEOF | |
15377 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15378 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15379 | ac_status=$? | |
15380 | grep -v '^ *+' conftest.er1 >conftest.err | |
15381 | rm -f conftest.er1 | |
15382 | cat conftest.err >&5 | |
15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15384 | (exit $ac_status); } >/dev/null; then | |
15385 | if test -s conftest.err; then | |
15386 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15387 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15388 | else | |
15389 | ac_cpp_err= | |
15390 | fi | |
15391 | else | |
15392 | ac_cpp_err=yes | |
a3828db0 | 15393 | fi |
a9322a30 TT |
15394 | if test -z "$ac_cpp_err"; then |
15395 | ac_header_preproc=yes | |
15396 | else | |
15397 | echo "$as_me: failed program was:" >&5 | |
15398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15399 | ||
15400 | ac_header_preproc=no | |
15401 | fi | |
15402 | rm -f conftest.err conftest.$ac_ext | |
15403 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15404 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15405 | ||
15406 | # So? What about this header? | |
15407 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15408 | yes:no: ) | |
15409 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15410 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15412 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15413 | ac_header_preproc=yes | |
15414 | ;; | |
15415 | no:yes:* ) | |
15416 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15417 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15418 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15419 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15420 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15421 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15422 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15423 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15425 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15426 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15427 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15428 | ( | |
15429 | cat <<\_ASBOX | |
15430 | ## ------------------------------------------ ## | |
15431 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15432 | ## ------------------------------------------ ## | |
15433 | _ASBOX | |
15434 | ) | | |
15435 | sed "s/^/$as_me: WARNING: /" >&2 | |
15436 | ;; | |
15437 | esac | |
15438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15442 | else | |
15443 | eval "$as_ac_Header=\$ac_header_preproc" | |
15444 | fi | |
15445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15446 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15447 | ||
15448 | fi | |
15449 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
a3828db0 | 15450 | cat >>confdefs.h <<_ACEOF |
a9322a30 | 15451 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 15452 | _ACEOF |
c906108c SS |
15453 | |
15454 | fi | |
a9322a30 | 15455 | |
a3828db0 | 15456 | done |
c906108c | 15457 | |
a3828db0 | 15458 | |
a9322a30 TT |
15459 | |
15460 | for ac_func in fork vfork | |
a3828db0 MK |
15461 | do |
15462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15463 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15465 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 15466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 15467 | else |
bec39cab AC |
15468 | cat >conftest.$ac_ext <<_ACEOF |
15469 | /* confdefs.h. */ | |
15470 | _ACEOF | |
15471 | cat confdefs.h >>conftest.$ac_ext | |
15472 | cat >>conftest.$ac_ext <<_ACEOF | |
15473 | /* end confdefs.h. */ | |
a3828db0 MK |
15474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15476 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 15477 | |
a3828db0 MK |
15478 | /* System header to define __stub macros and hopefully few prototypes, |
15479 | which can conflict with char $ac_func (); below. | |
15480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15481 | <limits.h> exists even on freestanding compilers. */ | |
15482 | ||
15483 | #ifdef __STDC__ | |
15484 | # include <limits.h> | |
15485 | #else | |
15486 | # include <assert.h> | |
15487 | #endif | |
15488 | ||
15489 | #undef $ac_func | |
15490 | ||
b4e70030 | 15491 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15492 | #ifdef __cplusplus |
15493 | extern "C" | |
b4e70030 | 15494 | { |
a3828db0 | 15495 | #endif |
b4e70030 JB |
15496 | /* We use char because int might match the return type of a gcc2 |
15497 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15498 | char $ac_func (); |
15499 | /* The GNU C library defines this for functions which it implements | |
15500 | to always fail with ENOSYS. Some functions are actually named | |
15501 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15502 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15503 | choke me |
b4e70030 JB |
15504 | #else |
15505 | char (*f) () = $ac_func; | |
15506 | #endif | |
15507 | #ifdef __cplusplus | |
15508 | } | |
a3828db0 | 15509 | #endif |
97bf5e38 | 15510 | |
bec39cab AC |
15511 | int |
15512 | main () | |
15513 | { | |
b4e70030 | 15514 | return f != $ac_func; |
bec39cab AC |
15515 | ; |
15516 | return 0; | |
15517 | } | |
15518 | _ACEOF | |
a3828db0 MK |
15519 | rm -f conftest.$ac_objext conftest$ac_exeext |
15520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15521 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15522 | ac_status=$? |
15523 | grep -v '^ *+' conftest.er1 >conftest.err | |
15524 | rm -f conftest.er1 | |
15525 | cat conftest.err >&5 | |
15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15527 | (exit $ac_status); } && | |
b4e70030 JB |
15528 | { ac_try='test -z "$ac_c_werror_flag" |
15529 | || test ! -s conftest.err' | |
bec39cab AC |
15530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15531 | (eval $ac_try) 2>&5 | |
15532 | ac_status=$? | |
15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15534 | (exit $ac_status); }; } && | |
a3828db0 | 15535 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15537 | (eval $ac_try) 2>&5 | |
15538 | ac_status=$? | |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15540 | (exit $ac_status); }; }; then | |
a3828db0 | 15541 | eval "$as_ac_var=yes" |
b83266a0 | 15542 | else |
bec39cab AC |
15543 | echo "$as_me: failed program was:" >&5 |
15544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15545 | ||
b4e70030 | 15546 | eval "$as_ac_var=no" |
b83266a0 | 15547 | fi |
a3828db0 MK |
15548 | rm -f conftest.err conftest.$ac_objext \ |
15549 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 15550 | fi |
b4e70030 JB |
15551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15552 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15554 | cat >>confdefs.h <<_ACEOF | |
15555 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 15556 | _ACEOF |
b83266a0 | 15557 | |
97bf5e38 | 15558 | fi |
a3828db0 | 15559 | done |
b83266a0 | 15560 | |
a9322a30 TT |
15561 | if test "x$ac_cv_func_fork" = xyes; then |
15562 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
15563 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
15564 | if test "${ac_cv_func_fork_works+set}" = set; then | |
15565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15566 | else | |
15567 | if test "$cross_compiling" = yes; then | |
15568 | ac_cv_func_fork_works=cross | |
15569 | else | |
15570 | cat >conftest.$ac_ext <<_ACEOF | |
15571 | /* By Ruediger Kuhlmann. */ | |
15572 | #include <sys/types.h> | |
15573 | #if HAVE_UNISTD_H | |
15574 | # include <unistd.h> | |
15575 | #endif | |
15576 | /* Some systems only have a dummy stub for fork() */ | |
15577 | int main () | |
15578 | { | |
15579 | if (fork() < 0) | |
15580 | exit (1); | |
15581 | exit (0); | |
15582 | } | |
15583 | _ACEOF | |
15584 | rm -f conftest$ac_exeext | |
15585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15586 | (eval $ac_link) 2>&5 | |
15587 | ac_status=$? | |
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; }; then | |
15595 | ac_cv_func_fork_works=yes | |
15596 | else | |
15597 | echo "$as_me: program exited with status $ac_status" >&5 | |
15598 | echo "$as_me: failed program was:" >&5 | |
15599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15600 | ||
15601 | ( exit $ac_status ) | |
15602 | ac_cv_func_fork_works=no | |
15603 | fi | |
15604 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15605 | fi | |
15606 | fi | |
15607 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
15608 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
15609 | ||
15610 | else | |
15611 | ac_cv_func_fork_works=$ac_cv_func_fork | |
15612 | fi | |
15613 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15614 | case $host in | |
15615 | *-*-amigaos* | *-*-msdosdjgpp*) | |
15616 | # Override, as these systems have only a dummy fork() stub | |
15617 | ac_cv_func_fork_works=no | |
15618 | ;; | |
15619 | *) | |
15620 | ac_cv_func_fork_works=yes | |
15621 | ;; | |
15622 | esac | |
15623 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
15624 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
15625 | fi | |
15626 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15627 | if test "x$ac_cv_func_vfork" = xyes; then | |
15628 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
15629 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
15630 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
15631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15632 | else | |
15633 | if test "$cross_compiling" = yes; then | |
15634 | ac_cv_func_vfork_works=cross | |
15635 | else | |
15636 | cat >conftest.$ac_ext <<_ACEOF | |
15637 | /* confdefs.h. */ | |
15638 | _ACEOF | |
15639 | cat confdefs.h >>conftest.$ac_ext | |
15640 | cat >>conftest.$ac_ext <<_ACEOF | |
15641 | /* end confdefs.h. */ | |
15642 | /* Thanks to Paul Eggert for this test. */ | |
15643 | #include <stdio.h> | |
15644 | #include <stdlib.h> | |
15645 | #include <sys/types.h> | |
15646 | #include <sys/stat.h> | |
15647 | #include <sys/wait.h> | |
15648 | #if HAVE_UNISTD_H | |
15649 | # include <unistd.h> | |
15650 | #endif | |
15651 | #if HAVE_VFORK_H | |
15652 | # include <vfork.h> | |
15653 | #endif | |
15654 | /* On some sparc systems, changes by the child to local and incoming | |
15655 | argument registers are propagated back to the parent. The compiler | |
15656 | is told about this with #include <vfork.h>, but some compilers | |
15657 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
15658 | static variable whose address is put into a register that is | |
15659 | clobbered by the vfork. */ | |
15660 | static void | |
15661 | #ifdef __cplusplus | |
15662 | sparc_address_test (int arg) | |
15663 | # else | |
15664 | sparc_address_test (arg) int arg; | |
15665 | #endif | |
15666 | { | |
15667 | static pid_t child; | |
15668 | if (!child) { | |
15669 | child = vfork (); | |
15670 | if (child < 0) { | |
15671 | perror ("vfork"); | |
15672 | _exit(2); | |
15673 | } | |
15674 | if (!child) { | |
15675 | arg = getpid(); | |
15676 | write(-1, "", 0); | |
15677 | _exit (arg); | |
15678 | } | |
15679 | } | |
15680 | } | |
15681 | ||
15682 | int | |
15683 | main () | |
15684 | { | |
15685 | pid_t parent = getpid (); | |
15686 | pid_t child; | |
15687 | ||
15688 | sparc_address_test (0); | |
15689 | ||
15690 | child = vfork (); | |
15691 | ||
15692 | if (child == 0) { | |
15693 | /* Here is another test for sparc vfork register problems. This | |
15694 | test uses lots of local variables, at least as many local | |
15695 | variables as main has allocated so far including compiler | |
15696 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
15697 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
15698 | reuse the register of parent for one of the local variables, | |
15699 | since it will think that parent can't possibly be used any more | |
15700 | in this routine. Assigning to the local variable will thus | |
15701 | munge parent in the parent process. */ | |
15702 | pid_t | |
15703 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
15704 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
15705 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
15706 | use the same hardware register for all 8 local variables. */ | |
15707 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
15708 | || p != p5 || p != p6 || p != p7) | |
15709 | _exit(1); | |
15710 | ||
15711 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
15712 | from child file descriptors. If the child closes a descriptor | |
15713 | before it execs or exits, this munges the parent's descriptor | |
15714 | as well. Test for this by closing stdout in the child. */ | |
15715 | _exit(close(fileno(stdout)) != 0); | |
15716 | } else { | |
15717 | int status; | |
15718 | struct stat st; | |
15719 | ||
15720 | while (wait(&status) != child) | |
15721 | ; | |
15722 | exit( | |
15723 | /* Was there some problem with vforking? */ | |
15724 | child < 0 | |
15725 | ||
15726 | /* Did the child fail? (This shouldn't happen.) */ | |
15727 | || status | |
15728 | ||
15729 | /* Did the vfork/compiler bug occur? */ | |
15730 | || parent != getpid() | |
15731 | ||
15732 | /* Did the file descriptor bug occur? */ | |
15733 | || fstat(fileno(stdout), &st) != 0 | |
15734 | ); | |
15735 | } | |
15736 | } | |
15737 | _ACEOF | |
15738 | rm -f conftest$ac_exeext | |
15739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15740 | (eval $ac_link) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15745 | (eval $ac_try) 2>&5 | |
15746 | ac_status=$? | |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15748 | (exit $ac_status); }; }; then | |
15749 | ac_cv_func_vfork_works=yes | |
15750 | else | |
15751 | echo "$as_me: program exited with status $ac_status" >&5 | |
15752 | echo "$as_me: failed program was:" >&5 | |
15753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15754 | ||
15755 | ( exit $ac_status ) | |
15756 | ac_cv_func_vfork_works=no | |
15757 | fi | |
15758 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15759 | fi | |
15760 | fi | |
15761 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
15762 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
15763 | ||
15764 | fi; | |
15765 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15766 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15767 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
15768 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
15769 | fi | |
15770 | ||
15771 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
15772 | ||
15773 | cat >>confdefs.h <<\_ACEOF | |
15774 | #define HAVE_WORKING_VFORK 1 | |
15775 | _ACEOF | |
15776 | ||
15777 | else | |
15778 | ||
15779 | cat >>confdefs.h <<\_ACEOF | |
15780 | #define vfork fork | |
15781 | _ACEOF | |
15782 | ||
15783 | fi | |
15784 | if test "x$ac_cv_func_fork_works" = xyes; then | |
15785 | ||
15786 | cat >>confdefs.h <<\_ACEOF | |
15787 | #define HAVE_WORKING_FORK 1 | |
15788 | _ACEOF | |
15789 | ||
15790 | fi | |
15791 | ||
15792 | ||
15793 | ||
15794 | ||
15795 | ||
15796 | ||
15797 | ||
15798 | ||
15799 | ||
15800 | ||
15801 | ||
15802 | ||
15803 | ||
15804 | ||
15805 | ||
15806 | ||
15807 | ||
15808 | ||
a3828db0 | 15809 | |
fc3b640d | 15810 | |
732f6a93 | 15811 | |
6c7a06a3 | 15812 | |
a8111142 | 15813 | |
a9322a30 TT |
15814 | for ac_func in canonicalize_file_name realpath getrusage getuid \ |
15815 | getgid poll pread64 sbrk setpgid setpgrp setsid \ | |
15816 | sigaction sigprocmask sigsetmask socketpair syscall \ | |
732f6a93 | 15817 | ttrace wborder setlocale iconvlist libiconvlist btowc |
a3828db0 MK |
15818 | do |
15819 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15820 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15821 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15822 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
15823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15824 | else | |
15825 | cat >conftest.$ac_ext <<_ACEOF | |
15826 | /* confdefs.h. */ | |
15827 | _ACEOF | |
15828 | cat confdefs.h >>conftest.$ac_ext | |
15829 | cat >>conftest.$ac_ext <<_ACEOF | |
15830 | /* end confdefs.h. */ | |
a3828db0 MK |
15831 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15833 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 15834 | |
a3828db0 MK |
15835 | /* System header to define __stub macros and hopefully few prototypes, |
15836 | which can conflict with char $ac_func (); below. | |
15837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15838 | <limits.h> exists even on freestanding compilers. */ | |
15839 | ||
15840 | #ifdef __STDC__ | |
15841 | # include <limits.h> | |
15842 | #else | |
15843 | # include <assert.h> | |
15844 | #endif | |
15845 | ||
15846 | #undef $ac_func | |
15847 | ||
b4e70030 | 15848 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15849 | #ifdef __cplusplus |
15850 | extern "C" | |
b4e70030 | 15851 | { |
a3828db0 | 15852 | #endif |
b4e70030 JB |
15853 | /* We use char because int might match the return type of a gcc2 |
15854 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15855 | char $ac_func (); |
15856 | /* The GNU C library defines this for functions which it implements | |
15857 | to always fail with ENOSYS. Some functions are actually named | |
15858 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15860 | choke me |
b4e70030 JB |
15861 | #else |
15862 | char (*f) () = $ac_func; | |
15863 | #endif | |
15864 | #ifdef __cplusplus | |
15865 | } | |
a3828db0 | 15866 | #endif |
97bf5e38 | 15867 | |
bec39cab AC |
15868 | int |
15869 | main () | |
15870 | { | |
6c7a06a3 TT |
15871 | return f != $ac_func; |
15872 | ; | |
15873 | return 0; | |
15874 | } | |
15875 | _ACEOF | |
15876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15878 | (eval $ac_link) 2>conftest.er1 | |
15879 | ac_status=$? | |
15880 | grep -v '^ *+' conftest.er1 >conftest.err | |
15881 | rm -f conftest.er1 | |
15882 | cat conftest.err >&5 | |
15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15884 | (exit $ac_status); } && | |
15885 | { ac_try='test -z "$ac_c_werror_flag" | |
15886 | || test ! -s conftest.err' | |
15887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15888 | (eval $ac_try) 2>&5 | |
15889 | ac_status=$? | |
15890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15891 | (exit $ac_status); }; } && | |
15892 | { ac_try='test -s conftest$ac_exeext' | |
15893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15894 | (eval $ac_try) 2>&5 | |
15895 | ac_status=$? | |
15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15897 | (exit $ac_status); }; }; then | |
15898 | eval "$as_ac_var=yes" | |
15899 | else | |
15900 | echo "$as_me: failed program was:" >&5 | |
15901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15902 | ||
15903 | eval "$as_ac_var=no" | |
15904 | fi | |
15905 | rm -f conftest.err conftest.$ac_objext \ | |
15906 | conftest$ac_exeext conftest.$ac_ext | |
15907 | fi | |
15908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15911 | cat >>confdefs.h <<_ACEOF | |
15912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15913 | _ACEOF | |
15914 | ||
15915 | fi | |
15916 | done | |
15917 | ||
15918 | ||
15919 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
15920 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 | |
15921 | if test "${am_cv_langinfo_codeset+set}" = set; then | |
15922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15923 | else | |
15924 | cat >conftest.$ac_ext <<_ACEOF | |
15925 | /* confdefs.h. */ | |
15926 | _ACEOF | |
15927 | cat confdefs.h >>conftest.$ac_ext | |
15928 | cat >>conftest.$ac_ext <<_ACEOF | |
15929 | /* end confdefs.h. */ | |
15930 | #include <langinfo.h> | |
15931 | int | |
15932 | main () | |
15933 | { | |
15934 | char* cs = nl_langinfo(CODESET); | |
bec39cab AC |
15935 | ; |
15936 | return 0; | |
15937 | } | |
15938 | _ACEOF | |
a3828db0 MK |
15939 | rm -f conftest.$ac_objext conftest$ac_exeext |
15940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15941 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15942 | ac_status=$? |
15943 | grep -v '^ *+' conftest.er1 >conftest.err | |
15944 | rm -f conftest.er1 | |
15945 | cat conftest.err >&5 | |
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15947 | (exit $ac_status); } && | |
b4e70030 JB |
15948 | { ac_try='test -z "$ac_c_werror_flag" |
15949 | || test ! -s conftest.err' | |
bec39cab AC |
15950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15951 | (eval $ac_try) 2>&5 | |
15952 | ac_status=$? | |
15953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15954 | (exit $ac_status); }; } && | |
a3828db0 | 15955 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15957 | (eval $ac_try) 2>&5 | |
15958 | ac_status=$? | |
15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15960 | (exit $ac_status); }; }; then | |
6c7a06a3 | 15961 | am_cv_langinfo_codeset=yes |
a4db0f07 | 15962 | else |
bec39cab AC |
15963 | echo "$as_me: failed program was:" >&5 |
15964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15965 | ||
6c7a06a3 | 15966 | am_cv_langinfo_codeset=no |
a4db0f07 | 15967 | fi |
a3828db0 MK |
15968 | rm -f conftest.err conftest.$ac_objext \ |
15969 | conftest$ac_exeext conftest.$ac_ext | |
6c7a06a3 | 15970 | |
a4db0f07 | 15971 | fi |
6c7a06a3 TT |
15972 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
15973 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 | |
15974 | if test $am_cv_langinfo_codeset = yes; then | |
15975 | ||
15976 | cat >>confdefs.h <<\_ACEOF | |
15977 | #define HAVE_LANGINFO_CODESET 1 | |
bec39cab | 15978 | _ACEOF |
a4db0f07 | 15979 | |
6c7a06a3 | 15980 | fi |
c906108c | 15981 | |
06825bd1 | 15982 | |
a3828db0 MK |
15983 | # Check the return and argument types of ptrace. No canned test for |
15984 | # this, so roll our own. | |
15985 | gdb_ptrace_headers=' | |
15986 | #if HAVE_SYS_TYPES_H | |
15987 | # include <sys/types.h> | |
15988 | #endif | |
15989 | #if HAVE_SYS_PTRACE_H | |
15990 | # include <sys/ptrace.h> | |
15991 | #endif | |
15992 | #if HAVE_UNISTD_H | |
15993 | # include <unistd.h> | |
15994 | #endif | |
15995 | ' | |
15996 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
15997 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
15998 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 15999 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
16000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16001 | else | |
16002 | cat >conftest.$ac_ext <<_ACEOF | |
16003 | /* confdefs.h. */ | |
16004 | _ACEOF | |
16005 | cat confdefs.h >>conftest.$ac_ext | |
16006 | cat >>conftest.$ac_ext <<_ACEOF | |
16007 | /* end confdefs.h. */ | |
a3828db0 MK |
16008 | $gdb_ptrace_headers |
16009 | ||
bec39cab AC |
16010 | int |
16011 | main () | |
16012 | { | |
a3828db0 MK |
16013 | #ifndef ptrace |
16014 | char *p = (char *) ptrace; | |
06825bd1 | 16015 | #endif |
a3828db0 | 16016 | |
bec39cab AC |
16017 | ; |
16018 | return 0; | |
16019 | } | |
16020 | _ACEOF | |
16021 | rm -f conftest.$ac_objext | |
16022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16023 | (eval $ac_compile) 2>conftest.er1 | |
16024 | ac_status=$? | |
16025 | grep -v '^ *+' conftest.er1 >conftest.err | |
16026 | rm -f conftest.er1 | |
16027 | cat conftest.err >&5 | |
16028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16029 | (exit $ac_status); } && | |
b4e70030 JB |
16030 | { ac_try='test -z "$ac_c_werror_flag" |
16031 | || test ! -s conftest.err' | |
bec39cab AC |
16032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16033 | (eval $ac_try) 2>&5 | |
16034 | ac_status=$? | |
16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16036 | (exit $ac_status); }; } && | |
16037 | { ac_try='test -s conftest.$ac_objext' | |
16038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16039 | (eval $ac_try) 2>&5 | |
16040 | ac_status=$? | |
16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16042 | (exit $ac_status); }; }; then | |
a3828db0 | 16043 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 16044 | else |
bec39cab AC |
16045 | echo "$as_me: failed program was:" >&5 |
16046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16047 | ||
b4e70030 | 16048 | ac_cv_have_decl_ptrace=no |
06825bd1 | 16049 | fi |
bec39cab | 16050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 16051 | fi |
b4e70030 JB |
16052 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
16053 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 16054 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 16055 | |
a3828db0 MK |
16056 | cat >>confdefs.h <<_ACEOF |
16057 | #define HAVE_DECL_PTRACE 1 | |
16058 | _ACEOF | |
bec39cab | 16059 | |
bec39cab | 16060 | |
a3828db0 MK |
16061 | else |
16062 | cat >>confdefs.h <<_ACEOF | |
16063 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 16064 | _ACEOF |
06825bd1 | 16065 | |
a3828db0 MK |
16066 | |
16067 | : ${gdb_cv_func_ptrace_ret='int'} | |
16068 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16069 | ||
06825bd1 MK |
16070 | fi |
16071 | ||
a3828db0 | 16072 | |
064ef605 DJ |
16073 | # Check return type. Varargs (used on GNU/Linux) conflict with the |
16074 | # empty argument list, so check for that explicitly. | |
b4e70030 JB |
16075 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
16076 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 16077 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
16078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16079 | else | |
16080 | cat >conftest.$ac_ext <<_ACEOF | |
16081 | /* confdefs.h. */ | |
16082 | _ACEOF | |
16083 | cat confdefs.h >>conftest.$ac_ext | |
16084 | cat >>conftest.$ac_ext <<_ACEOF | |
16085 | /* end confdefs.h. */ | |
a3828db0 | 16086 | $gdb_ptrace_headers |
bec39cab AC |
16087 | int |
16088 | main () | |
16089 | { | |
064ef605 DJ |
16090 | extern long ptrace (enum __ptrace_request, ...); |
16091 | ; | |
16092 | return 0; | |
16093 | } | |
16094 | _ACEOF | |
16095 | rm -f conftest.$ac_objext | |
16096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16097 | (eval $ac_compile) 2>conftest.er1 | |
16098 | ac_status=$? | |
16099 | grep -v '^ *+' conftest.er1 >conftest.err | |
16100 | rm -f conftest.er1 | |
16101 | cat conftest.err >&5 | |
16102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16103 | (exit $ac_status); } && | |
16104 | { ac_try='test -z "$ac_c_werror_flag" | |
16105 | || test ! -s conftest.err' | |
16106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16107 | (eval $ac_try) 2>&5 | |
16108 | ac_status=$? | |
16109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16110 | (exit $ac_status); }; } && | |
16111 | { ac_try='test -s conftest.$ac_objext' | |
16112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16113 | (eval $ac_try) 2>&5 | |
16114 | ac_status=$? | |
16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16116 | (exit $ac_status); }; }; then | |
16117 | gdb_cv_func_ptrace_ret='long' | |
16118 | else | |
16119 | echo "$as_me: failed program was:" >&5 | |
16120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16121 | ||
16122 | cat >conftest.$ac_ext <<_ACEOF | |
16123 | /* confdefs.h. */ | |
16124 | _ACEOF | |
16125 | cat confdefs.h >>conftest.$ac_ext | |
16126 | cat >>conftest.$ac_ext <<_ACEOF | |
16127 | /* end confdefs.h. */ | |
16128 | $gdb_ptrace_headers | |
16129 | int | |
16130 | main () | |
16131 | { | |
a3828db0 | 16132 | extern int ptrace (); |
bec39cab AC |
16133 | ; |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
16137 | rm -f conftest.$ac_objext | |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16139 | (eval $ac_compile) 2>conftest.er1 | |
16140 | ac_status=$? | |
16141 | grep -v '^ *+' conftest.er1 >conftest.err | |
16142 | rm -f conftest.er1 | |
16143 | cat conftest.err >&5 | |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); } && | |
b4e70030 JB |
16146 | { ac_try='test -z "$ac_c_werror_flag" |
16147 | || test ! -s conftest.err' | |
bec39cab AC |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; } && | |
16153 | { ac_try='test -s conftest.$ac_objext' | |
16154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16155 | (eval $ac_try) 2>&5 | |
16156 | ac_status=$? | |
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; }; then | |
a3828db0 | 16159 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 16160 | else |
bec39cab AC |
16161 | echo "$as_me: failed program was:" >&5 |
16162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16163 | ||
b4e70030 | 16164 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 16165 | fi |
bec39cab | 16166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 16167 | fi |
064ef605 DJ |
16168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16169 | fi | |
b4e70030 JB |
16170 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
16171 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 16172 | |
a3828db0 MK |
16173 | cat >>confdefs.h <<_ACEOF |
16174 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 16175 | _ACEOF |
70f9f479 | 16176 | |
a3828db0 | 16177 | # Check argument types. |
b4e70030 JB |
16178 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
16179 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 16180 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
16181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16182 | else | |
a3828db0 | 16183 | |
064ef605 DJ |
16184 | cat >conftest.$ac_ext <<_ACEOF |
16185 | /* confdefs.h. */ | |
16186 | _ACEOF | |
16187 | cat confdefs.h >>conftest.$ac_ext | |
16188 | cat >>conftest.$ac_ext <<_ACEOF | |
16189 | /* end confdefs.h. */ | |
16190 | $gdb_ptrace_headers | |
16191 | int | |
16192 | main () | |
16193 | { | |
16194 | extern long ptrace (enum __ptrace_request, ...); | |
16195 | ; | |
16196 | return 0; | |
16197 | } | |
16198 | _ACEOF | |
16199 | rm -f conftest.$ac_objext | |
16200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16201 | (eval $ac_compile) 2>conftest.er1 | |
16202 | ac_status=$? | |
16203 | grep -v '^ *+' conftest.er1 >conftest.err | |
16204 | rm -f conftest.er1 | |
16205 | cat conftest.err >&5 | |
16206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16207 | (exit $ac_status); } && | |
16208 | { ac_try='test -z "$ac_c_werror_flag" | |
16209 | || test ! -s conftest.err' | |
16210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16211 | (eval $ac_try) 2>&5 | |
16212 | ac_status=$? | |
16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16214 | (exit $ac_status); }; } && | |
16215 | { ac_try='test -s conftest.$ac_objext' | |
16216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16217 | (eval $ac_try) 2>&5 | |
16218 | ac_status=$? | |
16219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16220 | (exit $ac_status); }; }; then | |
16221 | gdb_cv_func_ptrace_args='int,int,long,long' | |
16222 | else | |
16223 | echo "$as_me: failed program was:" >&5 | |
16224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16225 | ||
16226 | ||
a3828db0 MK |
16227 | for gdb_arg1 in 'int' 'long'; do |
16228 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
5ed10e6e | 16229 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
a3828db0 MK |
16230 | for gdb_arg4 in 'int' 'long'; do |
16231 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16232 | /* confdefs.h. */ |
16233 | _ACEOF | |
16234 | cat confdefs.h >>conftest.$ac_ext | |
16235 | cat >>conftest.$ac_ext <<_ACEOF | |
16236 | /* end confdefs.h. */ | |
a3828db0 | 16237 | $gdb_ptrace_headers |
bec39cab AC |
16238 | int |
16239 | main () | |
16240 | { | |
a3828db0 MK |
16241 | |
16242 | extern $gdb_cv_func_ptrace_ret | |
16243 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
16244 | ||
bec39cab AC |
16245 | ; |
16246 | return 0; | |
16247 | } | |
16248 | _ACEOF | |
16249 | rm -f conftest.$ac_objext | |
16250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16251 | (eval $ac_compile) 2>conftest.er1 | |
16252 | ac_status=$? | |
16253 | grep -v '^ *+' conftest.er1 >conftest.err | |
16254 | rm -f conftest.er1 | |
16255 | cat conftest.err >&5 | |
16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16257 | (exit $ac_status); } && | |
b4e70030 JB |
16258 | { ac_try='test -z "$ac_c_werror_flag" |
16259 | || test ! -s conftest.err' | |
bec39cab AC |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; } && | |
16265 | { ac_try='test -s conftest.$ac_objext' | |
16266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16267 | (eval $ac_try) 2>&5 | |
16268 | ac_status=$? | |
16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16270 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16271 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
16272 | break 4; | |
5c7f2947 | 16273 | else |
bec39cab AC |
16274 | echo "$as_me: failed program was:" >&5 |
16275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16276 | ||
5c7f2947 | 16277 | fi |
bec39cab | 16278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16279 | for gdb_arg5 in 'int *' 'int' 'long'; do |
16280 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16281 | /* confdefs.h. */ |
16282 | _ACEOF | |
16283 | cat confdefs.h >>conftest.$ac_ext | |
16284 | cat >>conftest.$ac_ext <<_ACEOF | |
16285 | /* end confdefs.h. */ | |
a3828db0 | 16286 | $gdb_ptrace_headers |
bec39cab AC |
16287 | int |
16288 | main () | |
16289 | { | |
a3828db0 MK |
16290 | |
16291 | extern $gdb_cv_func_ptrace_ret | |
16292 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
16293 | ||
bec39cab AC |
16294 | ; |
16295 | return 0; | |
16296 | } | |
16297 | _ACEOF | |
16298 | rm -f conftest.$ac_objext | |
16299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16300 | (eval $ac_compile) 2>conftest.er1 | |
16301 | ac_status=$? | |
16302 | grep -v '^ *+' conftest.er1 >conftest.err | |
16303 | rm -f conftest.er1 | |
16304 | cat conftest.err >&5 | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); } && | |
b4e70030 JB |
16307 | { ac_try='test -z "$ac_c_werror_flag" |
16308 | || test ! -s conftest.err' | |
bec39cab AC |
16309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16310 | (eval $ac_try) 2>&5 | |
16311 | ac_status=$? | |
16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16313 | (exit $ac_status); }; } && | |
16314 | { ac_try='test -s conftest.$ac_objext' | |
16315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16316 | (eval $ac_try) 2>&5 | |
16317 | ac_status=$? | |
16318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16319 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16320 | |
16321 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
16322 | break 5; | |
78434e59 | 16323 | else |
bec39cab AC |
16324 | echo "$as_me: failed program was:" >&5 |
16325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16326 | ||
78434e59 | 16327 | fi |
bec39cab | 16328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16329 | done |
16330 | done | |
16331 | done | |
16332 | done | |
16333 | done | |
16334 | # Provide a safe default value. | |
16335 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16336 | ||
064ef605 DJ |
16337 | fi |
16338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
78434e59 | 16339 | fi |
b4e70030 JB |
16340 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
16341 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
16342 | ac_save_IFS=$IFS; IFS=',' |
16343 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
16344 | IFS=$ac_save_IFS | |
16345 | shift | |
bec39cab | 16346 | |
a3828db0 MK |
16347 | cat >>confdefs.h <<_ACEOF |
16348 | #define PTRACE_TYPE_ARG3 $3 | |
16349 | _ACEOF | |
16350 | ||
16351 | if test -n "$5"; then | |
16352 | ||
16353 | cat >>confdefs.h <<_ACEOF | |
16354 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 16355 | _ACEOF |
78434e59 MK |
16356 | |
16357 | fi | |
16358 | ||
a3828db0 | 16359 | if test "$cross_compiling" = no; then |
b4e70030 JB |
16360 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16361 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 16362 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 16363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16364 | else |
16365 | if test "$cross_compiling" = yes; then | |
16366 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
16367 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
16368 | { (exit 1); exit 1; }; } | |
bec39cab AC |
16369 | else |
16370 | cat >conftest.$ac_ext <<_ACEOF | |
16371 | /* confdefs.h. */ | |
16372 | _ACEOF | |
16373 | cat confdefs.h >>conftest.$ac_ext | |
16374 | cat >>conftest.$ac_ext <<_ACEOF | |
16375 | /* end confdefs.h. */ | |
b4e70030 JB |
16376 | #if HAVE_UNISTD_H |
16377 | # include <unistd.h> | |
16378 | #endif | |
16379 | ||
bec39cab AC |
16380 | int |
16381 | main () | |
16382 | { | |
a3828db0 MK |
16383 | /* If this system has a BSD-style setpgrp which takes arguments, |
16384 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
16385 | exit successfully. */ | |
b4e70030 | 16386 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
16387 | ; |
16388 | return 0; | |
16389 | } | |
16390 | _ACEOF | |
a3828db0 MK |
16391 | rm -f conftest$ac_exeext |
16392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16393 | (eval $ac_link) 2>&5 | |
bec39cab AC |
16394 | ac_status=$? |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16396 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16398 | (eval $ac_try) 2>&5 | |
16399 | ac_status=$? | |
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16401 | (exit $ac_status); }; }; then | |
a3828db0 | 16402 | ac_cv_func_setpgrp_void=no |
c906108c | 16403 | else |
a3828db0 MK |
16404 | echo "$as_me: program exited with status $ac_status" >&5 |
16405 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
16406 | sed 's/^/| /' conftest.$ac_ext >&5 |
16407 | ||
a3828db0 MK |
16408 | ( exit $ac_status ) |
16409 | ac_cv_func_setpgrp_void=yes | |
c906108c | 16410 | fi |
b4e70030 | 16411 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 16412 | fi |
a3828db0 | 16413 | fi |
b4e70030 JB |
16414 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16415 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
16416 | if test $ac_cv_func_setpgrp_void = yes; then |
16417 | ||
16418 | cat >>confdefs.h <<\_ACEOF | |
16419 | #define SETPGRP_VOID 1 | |
bec39cab | 16420 | _ACEOF |
97bf5e38 MK |
16421 | |
16422 | fi | |
a3828db0 MK |
16423 | |
16424 | else | |
b4e70030 JB |
16425 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16426 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 16427 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 16428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16429 | else |
bec39cab AC |
16430 | cat >conftest.$ac_ext <<_ACEOF |
16431 | /* confdefs.h. */ | |
16432 | _ACEOF | |
16433 | cat confdefs.h >>conftest.$ac_ext | |
16434 | cat >>conftest.$ac_ext <<_ACEOF | |
16435 | /* end confdefs.h. */ | |
a3828db0 MK |
16436 | |
16437 | #include <unistd.h> | |
16438 | ||
bec39cab AC |
16439 | int |
16440 | main () | |
16441 | { | |
a3828db0 MK |
16442 | |
16443 | if (setpgrp(1,1) == -1) | |
16444 | exit (0); | |
16445 | else | |
16446 | exit (1); | |
16447 | ||
bec39cab AC |
16448 | ; |
16449 | return 0; | |
16450 | } | |
16451 | _ACEOF | |
16452 | rm -f conftest.$ac_objext | |
16453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16454 | (eval $ac_compile) 2>conftest.er1 | |
16455 | ac_status=$? | |
16456 | grep -v '^ *+' conftest.er1 >conftest.err | |
16457 | rm -f conftest.er1 | |
16458 | cat conftest.err >&5 | |
16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16460 | (exit $ac_status); } && | |
b4e70030 JB |
16461 | { ac_try='test -z "$ac_c_werror_flag" |
16462 | || test ! -s conftest.err' | |
bec39cab AC |
16463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16464 | (eval $ac_try) 2>&5 | |
16465 | ac_status=$? | |
16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16467 | (exit $ac_status); }; } && | |
16468 | { ac_try='test -s conftest.$ac_objext' | |
16469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16470 | (eval $ac_try) 2>&5 | |
16471 | ac_status=$? | |
16472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16473 | (exit $ac_status); }; }; then | |
a3828db0 | 16474 | ac_cv_func_setpgrp_void=no |
c906108c | 16475 | else |
bec39cab AC |
16476 | echo "$as_me: failed program was:" >&5 |
16477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16478 | ||
b4e70030 | 16479 | ac_cv_func_setpgrp_void=yes |
c906108c | 16480 | fi |
bec39cab | 16481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16482 | fi |
b4e70030 JB |
16483 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16484 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 16485 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 16486 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 16487 | #define SETPGRP_VOID 1 |
bec39cab | 16488 | _ACEOF |
c3f6f71d | 16489 | |
a3828db0 | 16490 | fi |
c906108c SS |
16491 | fi |
16492 | ||
a3828db0 MK |
16493 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
16494 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
16495 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
16496 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 16497 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
16498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16499 | else | |
16500 | cat >conftest.$ac_ext <<_ACEOF | |
16501 | /* confdefs.h. */ | |
16502 | _ACEOF | |
16503 | cat confdefs.h >>conftest.$ac_ext | |
16504 | cat >>conftest.$ac_ext <<_ACEOF | |
16505 | /* end confdefs.h. */ | |
a3828db0 MK |
16506 | |
16507 | #include <setjmp.h> | |
16508 | ||
bec39cab AC |
16509 | int |
16510 | main () | |
16511 | { | |
a3828db0 | 16512 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
16513 | ; |
16514 | return 0; | |
16515 | } | |
16516 | _ACEOF | |
16517 | rm -f conftest.$ac_objext | |
16518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16519 | (eval $ac_compile) 2>conftest.er1 | |
16520 | ac_status=$? | |
16521 | grep -v '^ *+' conftest.er1 >conftest.err | |
16522 | rm -f conftest.er1 | |
16523 | cat conftest.err >&5 | |
16524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16525 | (exit $ac_status); } && | |
b4e70030 JB |
16526 | { ac_try='test -z "$ac_c_werror_flag" |
16527 | || test ! -s conftest.err' | |
bec39cab AC |
16528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16529 | (eval $ac_try) 2>&5 | |
16530 | ac_status=$? | |
16531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16532 | (exit $ac_status); }; } && | |
16533 | { ac_try='test -s conftest.$ac_objext' | |
16534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16535 | (eval $ac_try) 2>&5 | |
16536 | ac_status=$? | |
16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16538 | (exit $ac_status); }; }; then | |
a3828db0 | 16539 | gdb_cv_func_sigsetjmp=yes |
c906108c | 16540 | else |
bec39cab AC |
16541 | echo "$as_me: failed program was:" >&5 |
16542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16543 | ||
b4e70030 | 16544 | gdb_cv_func_sigsetjmp=no |
c906108c | 16545 | fi |
bec39cab | 16546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16547 | fi |
b4e70030 JB |
16548 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
16549 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 16550 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 16551 | |
a3828db0 MK |
16552 | cat >>confdefs.h <<\_ACEOF |
16553 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 16554 | _ACEOF |
c906108c | 16555 | |
97bf5e38 | 16556 | fi |
c906108c | 16557 | |
a3828db0 MK |
16558 | # Assume we'll default to using the included libiberty regex. |
16559 | gdb_use_included_regex=yes | |
16560 | ||
16561 | # However, if the system regex is GNU regex, then default to *not* | |
16562 | # using the included regex. | |
b4e70030 JB |
16563 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
16564 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 16565 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
16566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16567 | else | |
16568 | cat >conftest.$ac_ext <<_ACEOF | |
16569 | /* confdefs.h. */ | |
16570 | _ACEOF | |
16571 | cat confdefs.h >>conftest.$ac_ext | |
16572 | cat >>conftest.$ac_ext <<_ACEOF | |
16573 | /* end confdefs.h. */ | |
a3828db0 | 16574 | #include <gnu-versions.h> |
bec39cab AC |
16575 | int |
16576 | main () | |
16577 | { | |
a3828db0 MK |
16578 | #define REGEX_INTERFACE_VERSION 1 |
16579 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
16580 | # error "Version mismatch" | |
16581 | #endif | |
bec39cab AC |
16582 | ; |
16583 | return 0; | |
16584 | } | |
16585 | _ACEOF | |
16586 | rm -f conftest.$ac_objext | |
16587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16588 | (eval $ac_compile) 2>conftest.er1 | |
16589 | ac_status=$? | |
16590 | grep -v '^ *+' conftest.er1 >conftest.err | |
16591 | rm -f conftest.er1 | |
16592 | cat conftest.err >&5 | |
16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16594 | (exit $ac_status); } && | |
b4e70030 JB |
16595 | { ac_try='test -z "$ac_c_werror_flag" |
16596 | || test ! -s conftest.err' | |
bec39cab AC |
16597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16598 | (eval $ac_try) 2>&5 | |
16599 | ac_status=$? | |
16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16601 | (exit $ac_status); }; } && | |
16602 | { ac_try='test -s conftest.$ac_objext' | |
16603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16604 | (eval $ac_try) 2>&5 | |
16605 | ac_status=$? | |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16607 | (exit $ac_status); }; }; then | |
a3828db0 | 16608 | gdb_cv_have_gnu_regex=yes |
c906108c | 16609 | else |
bec39cab AC |
16610 | echo "$as_me: failed program was:" >&5 |
16611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16612 | ||
b4e70030 | 16613 | gdb_cv_have_gnu_regex=no |
c906108c | 16614 | fi |
bec39cab | 16615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16616 | fi |
b4e70030 JB |
16617 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
16618 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
16619 | if test $gdb_cv_have_gnu_regex = yes; then |
16620 | gdb_use_included_regex=no | |
16621 | fi | |
c906108c | 16622 | |
a3828db0 | 16623 | |
b4e70030 | 16624 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 16625 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
16626 | withval="$with_included_regex" |
16627 | gdb_with_regex=$withval | |
a3828db0 MK |
16628 | else |
16629 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 16630 | fi; |
a3828db0 MK |
16631 | if test "$gdb_with_regex" = yes; then |
16632 | ||
16633 | cat >>confdefs.h <<\_ACEOF | |
16634 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 16635 | _ACEOF |
c906108c | 16636 | |
97bf5e38 | 16637 | fi |
c906108c | 16638 | |
5c45e068 | 16639 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
16640 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
16641 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 16642 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
16643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16644 | else | |
16645 | cat >conftest.$ac_ext <<_ACEOF | |
16646 | /* confdefs.h. */ | |
16647 | _ACEOF | |
16648 | cat confdefs.h >>conftest.$ac_ext | |
16649 | cat >>conftest.$ac_ext <<_ACEOF | |
16650 | /* end confdefs.h. */ | |
a3828db0 MK |
16651 | #include <sys/param.h> |
16652 | #include <sys/proc.h> | |
5c45e068 MK |
16653 | |
16654 | ||
bec39cab AC |
16655 | int |
16656 | main () | |
16657 | { | |
5c45e068 MK |
16658 | static struct thread ac_aggr; |
16659 | if (ac_aggr.td_pcb) | |
16660 | return 0; | |
bec39cab AC |
16661 | ; |
16662 | return 0; | |
16663 | } | |
16664 | _ACEOF | |
16665 | rm -f conftest.$ac_objext | |
16666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16667 | (eval $ac_compile) 2>conftest.er1 | |
16668 | ac_status=$? | |
16669 | grep -v '^ *+' conftest.er1 >conftest.err | |
16670 | rm -f conftest.er1 | |
16671 | cat conftest.err >&5 | |
16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16673 | (exit $ac_status); } && | |
b4e70030 JB |
16674 | { ac_try='test -z "$ac_c_werror_flag" |
16675 | || test ! -s conftest.err' | |
bec39cab AC |
16676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16677 | (eval $ac_try) 2>&5 | |
16678 | ac_status=$? | |
16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16680 | (exit $ac_status); }; } && | |
16681 | { ac_try='test -s conftest.$ac_objext' | |
16682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16683 | (eval $ac_try) 2>&5 | |
16684 | ac_status=$? | |
16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16686 | (exit $ac_status); }; }; then | |
5c45e068 | 16687 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 16688 | else |
bec39cab AC |
16689 | echo "$as_me: failed program was:" >&5 |
16690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16691 | ||
b4e70030 | 16692 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
16693 | /* confdefs.h. */ |
16694 | _ACEOF | |
16695 | cat confdefs.h >>conftest.$ac_ext | |
16696 | cat >>conftest.$ac_ext <<_ACEOF | |
16697 | /* end confdefs.h. */ | |
16698 | #include <sys/param.h> | |
16699 | #include <sys/proc.h> | |
16700 | ||
16701 | ||
16702 | int | |
16703 | main () | |
16704 | { | |
16705 | static struct thread ac_aggr; | |
16706 | if (sizeof ac_aggr.td_pcb) | |
16707 | return 0; | |
16708 | ; | |
16709 | return 0; | |
16710 | } | |
16711 | _ACEOF | |
16712 | rm -f conftest.$ac_objext | |
16713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16714 | (eval $ac_compile) 2>conftest.er1 | |
16715 | ac_status=$? | |
16716 | grep -v '^ *+' conftest.er1 >conftest.err | |
16717 | rm -f conftest.er1 | |
16718 | cat conftest.err >&5 | |
16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16720 | (exit $ac_status); } && | |
b4e70030 JB |
16721 | { ac_try='test -z "$ac_c_werror_flag" |
16722 | || test ! -s conftest.err' | |
5c45e068 MK |
16723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16724 | (eval $ac_try) 2>&5 | |
16725 | ac_status=$? | |
16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16727 | (exit $ac_status); }; } && | |
16728 | { ac_try='test -s conftest.$ac_objext' | |
16729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16730 | (eval $ac_try) 2>&5 | |
16731 | ac_status=$? | |
16732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16733 | (exit $ac_status); }; }; then | |
16734 | ac_cv_member_struct_thread_td_pcb=yes | |
16735 | else | |
16736 | echo "$as_me: failed program was:" >&5 | |
16737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16738 | ||
b4e70030 | 16739 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
16740 | fi |
16741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 16742 | fi |
bec39cab | 16743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16744 | fi |
b4e70030 JB |
16745 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
16746 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 16747 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 16748 | |
5c45e068 | 16749 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 16750 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 16751 | _ACEOF |
c906108c | 16752 | |
5c45e068 | 16753 | |
97bf5e38 | 16754 | fi |
c906108c | 16755 | |
5c45e068 | 16756 | |
a3828db0 | 16757 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
16758 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
16759 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 16760 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
16761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16762 | else | |
16763 | cat >conftest.$ac_ext <<_ACEOF | |
16764 | /* confdefs.h. */ | |
16765 | _ACEOF | |
16766 | cat confdefs.h >>conftest.$ac_ext | |
16767 | cat >>conftest.$ac_ext <<_ACEOF | |
16768 | /* end confdefs.h. */ | |
a3828db0 MK |
16769 | #include <sys/param.h> |
16770 | #include <sys/lwp.h> | |
bec39cab AC |
16771 | int |
16772 | main () | |
16773 | { | |
a3828db0 | 16774 | struct lwp l; |
bec39cab AC |
16775 | ; |
16776 | return 0; | |
16777 | } | |
16778 | _ACEOF | |
16779 | rm -f conftest.$ac_objext | |
16780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16781 | (eval $ac_compile) 2>conftest.er1 | |
16782 | ac_status=$? | |
16783 | grep -v '^ *+' conftest.er1 >conftest.err | |
16784 | rm -f conftest.er1 | |
16785 | cat conftest.err >&5 | |
16786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16787 | (exit $ac_status); } && | |
b4e70030 JB |
16788 | { ac_try='test -z "$ac_c_werror_flag" |
16789 | || test ! -s conftest.err' | |
bec39cab AC |
16790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16791 | (eval $ac_try) 2>&5 | |
16792 | ac_status=$? | |
16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16794 | (exit $ac_status); }; } && | |
16795 | { ac_try='test -s conftest.$ac_objext' | |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; }; then | |
a3828db0 | 16801 | gdb_cv_struct_lwp=yes |
c906108c | 16802 | else |
bec39cab AC |
16803 | echo "$as_me: failed program was:" >&5 |
16804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16805 | ||
b4e70030 | 16806 | gdb_cv_struct_lwp=no |
c906108c | 16807 | fi |
bec39cab | 16808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16809 | fi |
b4e70030 JB |
16810 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
16811 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 16812 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 16813 | |
a3828db0 MK |
16814 | cat >>confdefs.h <<\_ACEOF |
16815 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 16816 | _ACEOF |
c906108c | 16817 | |
97bf5e38 | 16818 | fi |
c906108c | 16819 | |
a3828db0 | 16820 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
16821 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
16822 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 16823 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16825 | else | |
16826 | cat >conftest.$ac_ext <<_ACEOF | |
16827 | /* confdefs.h. */ | |
16828 | _ACEOF | |
16829 | cat confdefs.h >>conftest.$ac_ext | |
16830 | cat >>conftest.$ac_ext <<_ACEOF | |
16831 | /* end confdefs.h. */ | |
a3828db0 MK |
16832 | #include <sys/types.h> |
16833 | #include <machine/reg.h> | |
bec39cab AC |
16834 | int |
16835 | main () | |
16836 | { | |
a3828db0 | 16837 | struct reg r; |
bec39cab AC |
16838 | ; |
16839 | return 0; | |
16840 | } | |
16841 | _ACEOF | |
16842 | rm -f conftest.$ac_objext | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16844 | (eval $ac_compile) 2>conftest.er1 | |
16845 | ac_status=$? | |
16846 | grep -v '^ *+' conftest.er1 >conftest.err | |
16847 | rm -f conftest.er1 | |
16848 | cat conftest.err >&5 | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); } && | |
b4e70030 JB |
16851 | { ac_try='test -z "$ac_c_werror_flag" |
16852 | || test ! -s conftest.err' | |
bec39cab AC |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; } && | |
16858 | { ac_try='test -s conftest.$ac_objext' | |
16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16860 | (eval $ac_try) 2>&5 | |
16861 | ac_status=$? | |
16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16863 | (exit $ac_status); }; }; then | |
a3828db0 | 16864 | gdb_cv_struct_reg=yes |
27ca5dad | 16865 | else |
bec39cab AC |
16866 | echo "$as_me: failed program was:" >&5 |
16867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16868 | ||
b4e70030 | 16869 | gdb_cv_struct_reg=no |
27ca5dad | 16870 | fi |
bec39cab | 16871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 16872 | fi |
b4e70030 JB |
16873 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
16874 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 16875 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
16876 | |
16877 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 16878 | #define HAVE_STRUCT_REG 1 |
bec39cab | 16879 | _ACEOF |
27ca5dad MC |
16880 | |
16881 | fi | |
97bf5e38 | 16882 | |
a3828db0 MK |
16883 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
16884 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
16885 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
16886 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 16887 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 16888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 16889 | else |
bec39cab AC |
16890 | cat >conftest.$ac_ext <<_ACEOF |
16891 | /* confdefs.h. */ | |
16892 | _ACEOF | |
16893 | cat confdefs.h >>conftest.$ac_ext | |
16894 | cat >>conftest.$ac_ext <<_ACEOF | |
16895 | /* end confdefs.h. */ | |
a3828db0 | 16896 | #include <machine/reg.h> |
5c45e068 MK |
16897 | |
16898 | int | |
16899 | main () | |
16900 | { | |
16901 | static struct reg ac_aggr; | |
16902 | if (ac_aggr.r_fs) | |
16903 | return 0; | |
16904 | ; | |
16905 | return 0; | |
16906 | } | |
16907 | _ACEOF | |
16908 | rm -f conftest.$ac_objext | |
16909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16910 | (eval $ac_compile) 2>conftest.er1 | |
16911 | ac_status=$? | |
16912 | grep -v '^ *+' conftest.er1 >conftest.err | |
16913 | rm -f conftest.er1 | |
16914 | cat conftest.err >&5 | |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16916 | (exit $ac_status); } && | |
b4e70030 JB |
16917 | { ac_try='test -z "$ac_c_werror_flag" |
16918 | || test ! -s conftest.err' | |
5c45e068 MK |
16919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; } && | |
16924 | { ac_try='test -s conftest.$ac_objext' | |
16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16926 | (eval $ac_try) 2>&5 | |
16927 | ac_status=$? | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; }; then | |
16930 | ac_cv_member_struct_reg_r_fs=yes | |
16931 | else | |
16932 | echo "$as_me: failed program was:" >&5 | |
16933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16934 | ||
b4e70030 | 16935 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
16936 | /* confdefs.h. */ |
16937 | _ACEOF | |
16938 | cat confdefs.h >>conftest.$ac_ext | |
16939 | cat >>conftest.$ac_ext <<_ACEOF | |
16940 | /* end confdefs.h. */ | |
16941 | #include <machine/reg.h> | |
16942 | ||
bec39cab AC |
16943 | int |
16944 | main () | |
16945 | { | |
5c45e068 MK |
16946 | static struct reg ac_aggr; |
16947 | if (sizeof ac_aggr.r_fs) | |
16948 | return 0; | |
bec39cab AC |
16949 | ; |
16950 | return 0; | |
16951 | } | |
16952 | _ACEOF | |
16953 | rm -f conftest.$ac_objext | |
16954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16955 | (eval $ac_compile) 2>conftest.er1 | |
16956 | ac_status=$? | |
16957 | grep -v '^ *+' conftest.er1 >conftest.err | |
16958 | rm -f conftest.er1 | |
16959 | cat conftest.err >&5 | |
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16961 | (exit $ac_status); } && | |
b4e70030 JB |
16962 | { ac_try='test -z "$ac_c_werror_flag" |
16963 | || test ! -s conftest.err' | |
bec39cab AC |
16964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16965 | (eval $ac_try) 2>&5 | |
16966 | ac_status=$? | |
16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16968 | (exit $ac_status); }; } && | |
16969 | { ac_try='test -s conftest.$ac_objext' | |
16970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16971 | (eval $ac_try) 2>&5 | |
16972 | ac_status=$? | |
16973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16974 | (exit $ac_status); }; }; then | |
5c45e068 | 16975 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 16976 | else |
bec39cab AC |
16977 | echo "$as_me: failed program was:" >&5 |
16978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16979 | ||
b4e70030 | 16980 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 16981 | fi |
bec39cab | 16982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 16983 | fi |
5c45e068 MK |
16984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16985 | fi | |
b4e70030 JB |
16986 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
16987 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
16988 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
16989 | ||
16990 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 16991 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 16992 | _ACEOF |
3862412b | 16993 | |
5c45e068 | 16994 | |
97bf5e38 | 16995 | fi |
b4e70030 JB |
16996 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
16997 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 16998 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 16999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17000 | else |
bec39cab AC |
17001 | cat >conftest.$ac_ext <<_ACEOF |
17002 | /* confdefs.h. */ | |
17003 | _ACEOF | |
17004 | cat confdefs.h >>conftest.$ac_ext | |
17005 | cat >>conftest.$ac_ext <<_ACEOF | |
17006 | /* end confdefs.h. */ | |
a3828db0 | 17007 | #include <machine/reg.h> |
5c45e068 | 17008 | |
bec39cab AC |
17009 | int |
17010 | main () | |
17011 | { | |
5c45e068 MK |
17012 | static struct reg ac_aggr; |
17013 | if (ac_aggr.r_gs) | |
17014 | return 0; | |
bec39cab AC |
17015 | ; |
17016 | return 0; | |
17017 | } | |
17018 | _ACEOF | |
17019 | rm -f conftest.$ac_objext | |
17020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17021 | (eval $ac_compile) 2>conftest.er1 | |
17022 | ac_status=$? | |
17023 | grep -v '^ *+' conftest.er1 >conftest.err | |
17024 | rm -f conftest.er1 | |
17025 | cat conftest.err >&5 | |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17027 | (exit $ac_status); } && | |
b4e70030 JB |
17028 | { ac_try='test -z "$ac_c_werror_flag" |
17029 | || test ! -s conftest.err' | |
bec39cab AC |
17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17031 | (eval $ac_try) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); }; } && | |
17035 | { ac_try='test -s conftest.$ac_objext' | |
17036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17037 | (eval $ac_try) 2>&5 | |
17038 | ac_status=$? | |
17039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17040 | (exit $ac_status); }; }; then | |
5c45e068 | 17041 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 17042 | else |
bec39cab AC |
17043 | echo "$as_me: failed program was:" >&5 |
17044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17045 | ||
b4e70030 | 17046 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
17047 | /* confdefs.h. */ |
17048 | _ACEOF | |
17049 | cat confdefs.h >>conftest.$ac_ext | |
17050 | cat >>conftest.$ac_ext <<_ACEOF | |
17051 | /* end confdefs.h. */ | |
17052 | #include <machine/reg.h> | |
17053 | ||
17054 | int | |
17055 | main () | |
17056 | { | |
17057 | static struct reg ac_aggr; | |
17058 | if (sizeof ac_aggr.r_gs) | |
17059 | return 0; | |
17060 | ; | |
17061 | return 0; | |
17062 | } | |
17063 | _ACEOF | |
17064 | rm -f conftest.$ac_objext | |
17065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17066 | (eval $ac_compile) 2>conftest.er1 | |
17067 | ac_status=$? | |
17068 | grep -v '^ *+' conftest.er1 >conftest.err | |
17069 | rm -f conftest.er1 | |
17070 | cat conftest.err >&5 | |
17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17072 | (exit $ac_status); } && | |
b4e70030 JB |
17073 | { ac_try='test -z "$ac_c_werror_flag" |
17074 | || test ! -s conftest.err' | |
5c45e068 MK |
17075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17076 | (eval $ac_try) 2>&5 | |
17077 | ac_status=$? | |
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17079 | (exit $ac_status); }; } && | |
17080 | { ac_try='test -s conftest.$ac_objext' | |
17081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17082 | (eval $ac_try) 2>&5 | |
17083 | ac_status=$? | |
17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17085 | (exit $ac_status); }; }; then | |
17086 | ac_cv_member_struct_reg_r_gs=yes | |
17087 | else | |
17088 | echo "$as_me: failed program was:" >&5 | |
17089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17090 | ||
b4e70030 | 17091 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 17092 | fi |
bec39cab | 17093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 17094 | fi |
5c45e068 MK |
17095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17096 | fi | |
b4e70030 JB |
17097 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
17098 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
17099 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
17100 | ||
17101 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 17102 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 17103 | _ACEOF |
3862412b | 17104 | |
5c45e068 | 17105 | |
97bf5e38 | 17106 | fi |
3862412b | 17107 | |
5c45e068 | 17108 | |
a3828db0 | 17109 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
17110 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
17111 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 17112 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 17113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17114 | else |
bec39cab AC |
17115 | cat >conftest.$ac_ext <<_ACEOF |
17116 | /* confdefs.h. */ | |
17117 | _ACEOF | |
17118 | cat confdefs.h >>conftest.$ac_ext | |
17119 | cat >>conftest.$ac_ext <<_ACEOF | |
17120 | /* end confdefs.h. */ | |
a3828db0 | 17121 | #include <sys/ptrace.h> |
bec39cab AC |
17122 | int |
17123 | main () | |
17124 | { | |
a3828db0 | 17125 | PTRACE_GETREGS; |
bec39cab AC |
17126 | ; |
17127 | return 0; | |
17128 | } | |
17129 | _ACEOF | |
17130 | rm -f conftest.$ac_objext | |
17131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17132 | (eval $ac_compile) 2>conftest.er1 | |
17133 | ac_status=$? | |
17134 | grep -v '^ *+' conftest.er1 >conftest.err | |
17135 | rm -f conftest.er1 | |
17136 | cat conftest.err >&5 | |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17138 | (exit $ac_status); } && | |
b4e70030 JB |
17139 | { ac_try='test -z "$ac_c_werror_flag" |
17140 | || test ! -s conftest.err' | |
bec39cab AC |
17141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17142 | (eval $ac_try) 2>&5 | |
17143 | ac_status=$? | |
17144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17145 | (exit $ac_status); }; } && | |
17146 | { ac_try='test -s conftest.$ac_objext' | |
17147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17148 | (eval $ac_try) 2>&5 | |
17149 | ac_status=$? | |
17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17151 | (exit $ac_status); }; }; then | |
a3828db0 | 17152 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 17153 | else |
bec39cab AC |
17154 | echo "$as_me: failed program was:" >&5 |
17155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17156 | ||
b4e70030 | 17157 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 17158 | fi |
bec39cab | 17159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17160 | fi |
17161 | ||
b4e70030 JB |
17162 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
17163 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 17164 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
17165 | |
17166 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17167 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 17168 | _ACEOF |
451928c5 | 17169 | |
97bf5e38 | 17170 | fi |
451928c5 | 17171 | |
a3828db0 | 17172 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
17173 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
17174 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 17175 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 17176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17177 | else |
bec39cab AC |
17178 | cat >conftest.$ac_ext <<_ACEOF |
17179 | /* confdefs.h. */ | |
17180 | _ACEOF | |
17181 | cat confdefs.h >>conftest.$ac_ext | |
17182 | cat >>conftest.$ac_ext <<_ACEOF | |
17183 | /* end confdefs.h. */ | |
a3828db0 | 17184 | #include <sys/ptrace.h> |
bec39cab AC |
17185 | int |
17186 | main () | |
17187 | { | |
a3828db0 | 17188 | PTRACE_GETFPXREGS; |
bec39cab AC |
17189 | ; |
17190 | return 0; | |
17191 | } | |
17192 | _ACEOF | |
17193 | rm -f conftest.$ac_objext | |
17194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17195 | (eval $ac_compile) 2>conftest.er1 | |
17196 | ac_status=$? | |
17197 | grep -v '^ *+' conftest.er1 >conftest.err | |
17198 | rm -f conftest.er1 | |
17199 | cat conftest.err >&5 | |
17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17201 | (exit $ac_status); } && | |
b4e70030 JB |
17202 | { ac_try='test -z "$ac_c_werror_flag" |
17203 | || test ! -s conftest.err' | |
bec39cab AC |
17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17205 | (eval $ac_try) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); }; } && | |
17209 | { ac_try='test -s conftest.$ac_objext' | |
17210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17211 | (eval $ac_try) 2>&5 | |
17212 | ac_status=$? | |
17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17214 | (exit $ac_status); }; }; then | |
a3828db0 | 17215 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 17216 | else |
bec39cab AC |
17217 | echo "$as_me: failed program was:" >&5 |
17218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17219 | ||
b4e70030 | 17220 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 17221 | fi |
bec39cab | 17222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17223 | fi |
17224 | ||
b4e70030 JB |
17225 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
17226 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 17227 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
17228 | |
17229 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17230 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 17231 | _ACEOF |
451928c5 | 17232 | |
97bf5e38 | 17233 | fi |
451928c5 | 17234 | |
a3828db0 | 17235 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
17236 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
17237 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 17238 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 17239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17240 | else |
bec39cab AC |
17241 | cat >conftest.$ac_ext <<_ACEOF |
17242 | /* confdefs.h. */ | |
17243 | _ACEOF | |
17244 | cat confdefs.h >>conftest.$ac_ext | |
17245 | cat >>conftest.$ac_ext <<_ACEOF | |
17246 | /* end confdefs.h. */ | |
a3828db0 MK |
17247 | #include <sys/types.h> |
17248 | #include <sys/ptrace.h> | |
bec39cab AC |
17249 | int |
17250 | main () | |
17251 | { | |
a3828db0 | 17252 | PT_GETDBREGS; |
bec39cab AC |
17253 | ; |
17254 | return 0; | |
17255 | } | |
17256 | _ACEOF | |
17257 | rm -f conftest.$ac_objext | |
17258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17259 | (eval $ac_compile) 2>conftest.er1 | |
17260 | ac_status=$? | |
17261 | grep -v '^ *+' conftest.er1 >conftest.err | |
17262 | rm -f conftest.er1 | |
17263 | cat conftest.err >&5 | |
17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17265 | (exit $ac_status); } && | |
b4e70030 JB |
17266 | { ac_try='test -z "$ac_c_werror_flag" |
17267 | || test ! -s conftest.err' | |
bec39cab AC |
17268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17269 | (eval $ac_try) 2>&5 | |
17270 | ac_status=$? | |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17272 | (exit $ac_status); }; } && | |
17273 | { ac_try='test -s conftest.$ac_objext' | |
17274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17275 | (eval $ac_try) 2>&5 | |
17276 | ac_status=$? | |
17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17278 | (exit $ac_status); }; }; then | |
a3828db0 | 17279 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 17280 | else |
bec39cab AC |
17281 | echo "$as_me: failed program was:" >&5 |
17282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17283 | ||
b4e70030 | 17284 | gdb_cv_have_pt_getdbregs=no |
3862412b | 17285 | fi |
bec39cab | 17286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17287 | fi |
17288 | ||
b4e70030 JB |
17289 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
17290 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 17291 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
17292 | |
17293 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17294 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 17295 | _ACEOF |
3862412b | 17296 | |
97bf5e38 | 17297 | fi |
3862412b | 17298 | |
a3828db0 | 17299 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
17300 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
17301 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 17302 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17304 | else |
bec39cab AC |
17305 | cat >conftest.$ac_ext <<_ACEOF |
17306 | /* confdefs.h. */ | |
17307 | _ACEOF | |
17308 | cat confdefs.h >>conftest.$ac_ext | |
17309 | cat >>conftest.$ac_ext <<_ACEOF | |
17310 | /* end confdefs.h. */ | |
a3828db0 MK |
17311 | #include <sys/types.h> |
17312 | #include <sys/ptrace.h> | |
bec39cab AC |
17313 | int |
17314 | main () | |
17315 | { | |
a3828db0 | 17316 | PT_GETXMMREGS; |
bec39cab AC |
17317 | ; |
17318 | return 0; | |
17319 | } | |
17320 | _ACEOF | |
17321 | rm -f conftest.$ac_objext | |
17322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17323 | (eval $ac_compile) 2>conftest.er1 | |
17324 | ac_status=$? | |
17325 | grep -v '^ *+' conftest.er1 >conftest.err | |
17326 | rm -f conftest.er1 | |
17327 | cat conftest.err >&5 | |
17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17329 | (exit $ac_status); } && | |
b4e70030 JB |
17330 | { ac_try='test -z "$ac_c_werror_flag" |
17331 | || test ! -s conftest.err' | |
bec39cab AC |
17332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17333 | (eval $ac_try) 2>&5 | |
17334 | ac_status=$? | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17336 | (exit $ac_status); }; } && | |
17337 | { ac_try='test -s conftest.$ac_objext' | |
17338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17339 | (eval $ac_try) 2>&5 | |
17340 | ac_status=$? | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); }; }; then | |
a3828db0 | 17343 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 17344 | else |
bec39cab AC |
17345 | echo "$as_me: failed program was:" >&5 |
17346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17347 | ||
b4e70030 | 17348 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 17349 | fi |
bec39cab | 17350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17351 | fi |
17352 | ||
b4e70030 JB |
17353 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
17354 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 17355 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
17356 | |
17357 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17358 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 17359 | _ACEOF |
3862412b | 17360 | |
97bf5e38 | 17361 | fi |
3862412b | 17362 | |
eb368090 | 17363 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
17364 | |
17365 | if test "${target}" = "${host}"; then | |
17366 | case "${host}" in | |
97bf5e38 | 17367 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
17368 | |
17369 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17370 | #define NEW_PROC_API 1 |
bec39cab | 17371 | _ACEOF |
97bf5e38 MK |
17372 | |
17373 | ;; | |
c162e8c9 | 17374 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
60ca704f SE |
17375 | |
17376 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17377 | #define NEW_PROC_API 1 |
bec39cab | 17378 | _ACEOF |
c960c18f AC |
17379 | |
17380 | ;; | |
17381 | mips-sgi-irix5*) | |
17382 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
17383 | |
17384 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 17385 | #define _KMEMUSER 1 |
bec39cab | 17386 | _ACEOF |
97bf5e38 MK |
17387 | |
17388 | ;; | |
17389 | esac | |
17390 | fi | |
17391 | ||
17392 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
17393 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
17394 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17395 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
17396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17397 | else | |
17398 | cat >conftest.$ac_ext <<_ACEOF | |
17399 | /* confdefs.h. */ | |
17400 | _ACEOF | |
17401 | cat confdefs.h >>conftest.$ac_ext | |
17402 | cat >>conftest.$ac_ext <<_ACEOF | |
17403 | /* end confdefs.h. */ | |
596c9d4b KB |
17404 | |
17405 | #define _SYSCALL32 | |
17406 | #include <sys/procfs.h> | |
bec39cab AC |
17407 | int |
17408 | main () | |
17409 | { | |
97bf5e38 | 17410 | pstatus_t avar |
bec39cab AC |
17411 | ; |
17412 | return 0; | |
17413 | } | |
17414 | _ACEOF | |
17415 | rm -f conftest.$ac_objext | |
17416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17417 | (eval $ac_compile) 2>conftest.er1 | |
17418 | ac_status=$? | |
17419 | grep -v '^ *+' conftest.er1 >conftest.err | |
17420 | rm -f conftest.er1 | |
17421 | cat conftest.err >&5 | |
17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17423 | (exit $ac_status); } && | |
b4e70030 JB |
17424 | { ac_try='test -z "$ac_c_werror_flag" |
17425 | || test ! -s conftest.err' | |
bec39cab AC |
17426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17427 | (eval $ac_try) 2>&5 | |
17428 | ac_status=$? | |
17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17430 | (exit $ac_status); }; } && | |
17431 | { ac_try='test -s conftest.$ac_objext' | |
17432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17433 | (eval $ac_try) 2>&5 | |
17434 | ac_status=$? | |
17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17436 | (exit $ac_status); }; }; then | |
97bf5e38 | 17437 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 17438 | else |
bec39cab AC |
17439 | echo "$as_me: failed program was:" >&5 |
17440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17441 | ||
b4e70030 | 17442 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 17443 | |
596c9d4b | 17444 | fi |
bec39cab | 17445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17446 | fi |
17447 | ||
97bf5e38 | 17448 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
17449 | |
17450 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17451 | #define HAVE_PSTATUS_T 1 |
bec39cab | 17452 | _ACEOF |
596c9d4b KB |
17453 | |
17454 | fi | |
b4e70030 JB |
17455 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
17456 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 17457 | |
b4e70030 JB |
17458 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
17459 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17460 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
17461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17462 | else |
bec39cab AC |
17463 | cat >conftest.$ac_ext <<_ACEOF |
17464 | /* confdefs.h. */ | |
17465 | _ACEOF | |
17466 | cat confdefs.h >>conftest.$ac_ext | |
17467 | cat >>conftest.$ac_ext <<_ACEOF | |
17468 | /* end confdefs.h. */ | |
596c9d4b KB |
17469 | |
17470 | #define _SYSCALL32 | |
17471 | #include <sys/procfs.h> | |
bec39cab AC |
17472 | int |
17473 | main () | |
17474 | { | |
97bf5e38 | 17475 | prrun_t avar |
bec39cab AC |
17476 | ; |
17477 | return 0; | |
17478 | } | |
17479 | _ACEOF | |
17480 | rm -f conftest.$ac_objext | |
17481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17482 | (eval $ac_compile) 2>conftest.er1 | |
17483 | ac_status=$? | |
17484 | grep -v '^ *+' conftest.er1 >conftest.err | |
17485 | rm -f conftest.er1 | |
17486 | cat conftest.err >&5 | |
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17488 | (exit $ac_status); } && | |
b4e70030 JB |
17489 | { ac_try='test -z "$ac_c_werror_flag" |
17490 | || test ! -s conftest.err' | |
bec39cab AC |
17491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17492 | (eval $ac_try) 2>&5 | |
17493 | ac_status=$? | |
17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17495 | (exit $ac_status); }; } && | |
17496 | { ac_try='test -s conftest.$ac_objext' | |
17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17498 | (eval $ac_try) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); }; }; then | |
97bf5e38 | 17502 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 17503 | else |
bec39cab AC |
17504 | echo "$as_me: failed program was:" >&5 |
17505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17506 | ||
b4e70030 | 17507 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 17508 | |
596c9d4b | 17509 | fi |
bec39cab | 17510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17511 | fi |
17512 | ||
97bf5e38 | 17513 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
17514 | |
17515 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17516 | #define HAVE_PRRUN_T 1 |
bec39cab | 17517 | _ACEOF |
596c9d4b KB |
17518 | |
17519 | fi | |
b4e70030 JB |
17520 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
17521 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 17522 | |
b4e70030 JB |
17523 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
17524 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17525 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17527 | else |
bec39cab AC |
17528 | cat >conftest.$ac_ext <<_ACEOF |
17529 | /* confdefs.h. */ | |
17530 | _ACEOF | |
17531 | cat confdefs.h >>conftest.$ac_ext | |
17532 | cat >>conftest.$ac_ext <<_ACEOF | |
17533 | /* end confdefs.h. */ | |
596c9d4b KB |
17534 | |
17535 | #define _SYSCALL32 | |
17536 | #include <sys/procfs.h> | |
bec39cab AC |
17537 | int |
17538 | main () | |
17539 | { | |
97bf5e38 | 17540 | gregset_t avar |
bec39cab AC |
17541 | ; |
17542 | return 0; | |
17543 | } | |
17544 | _ACEOF | |
17545 | rm -f conftest.$ac_objext | |
17546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17547 | (eval $ac_compile) 2>conftest.er1 | |
17548 | ac_status=$? | |
17549 | grep -v '^ *+' conftest.er1 >conftest.err | |
17550 | rm -f conftest.er1 | |
17551 | cat conftest.err >&5 | |
17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17553 | (exit $ac_status); } && | |
b4e70030 JB |
17554 | { ac_try='test -z "$ac_c_werror_flag" |
17555 | || test ! -s conftest.err' | |
bec39cab AC |
17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17557 | (eval $ac_try) 2>&5 | |
17558 | ac_status=$? | |
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17560 | (exit $ac_status); }; } && | |
17561 | { ac_try='test -s conftest.$ac_objext' | |
17562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17563 | (eval $ac_try) 2>&5 | |
17564 | ac_status=$? | |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17566 | (exit $ac_status); }; }; then | |
97bf5e38 | 17567 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 17568 | else |
bec39cab AC |
17569 | echo "$as_me: failed program was:" >&5 |
17570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17571 | ||
b4e70030 | 17572 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 17573 | |
596c9d4b | 17574 | fi |
bec39cab | 17575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17576 | fi |
17577 | ||
97bf5e38 | 17578 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
17579 | |
17580 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17581 | #define HAVE_GREGSET_T 1 |
bec39cab | 17582 | _ACEOF |
596c9d4b KB |
17583 | |
17584 | fi | |
b4e70030 JB |
17585 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
17586 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 17587 | |
b4e70030 JB |
17588 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
17589 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17590 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
17591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 17592 | else |
bec39cab AC |
17593 | cat >conftest.$ac_ext <<_ACEOF |
17594 | /* confdefs.h. */ | |
17595 | _ACEOF | |
17596 | cat confdefs.h >>conftest.$ac_ext | |
17597 | cat >>conftest.$ac_ext <<_ACEOF | |
17598 | /* end confdefs.h. */ | |
97bf5e38 MK |
17599 | |
17600 | #define _SYSCALL32 | |
d84dd0c5 | 17601 | #include <sys/procfs.h> |
bec39cab AC |
17602 | int |
17603 | main () | |
17604 | { | |
97bf5e38 | 17605 | fpregset_t avar |
bec39cab AC |
17606 | ; |
17607 | return 0; | |
17608 | } | |
17609 | _ACEOF | |
17610 | rm -f conftest.$ac_objext | |
17611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17612 | (eval $ac_compile) 2>conftest.er1 | |
17613 | ac_status=$? | |
17614 | grep -v '^ *+' conftest.er1 >conftest.err | |
17615 | rm -f conftest.er1 | |
17616 | cat conftest.err >&5 | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); } && | |
b4e70030 JB |
17619 | { ac_try='test -z "$ac_c_werror_flag" |
17620 | || test ! -s conftest.err' | |
bec39cab AC |
17621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17622 | (eval $ac_try) 2>&5 | |
17623 | ac_status=$? | |
17624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17625 | (exit $ac_status); }; } && | |
17626 | { ac_try='test -s conftest.$ac_objext' | |
17627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17628 | (eval $ac_try) 2>&5 | |
17629 | ac_status=$? | |
17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17631 | (exit $ac_status); }; }; then | |
97bf5e38 | 17632 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 17633 | else |
bec39cab AC |
17634 | echo "$as_me: failed program was:" >&5 |
17635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17636 | ||
b4e70030 | 17637 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 17638 | |
d84dd0c5 | 17639 | fi |
bec39cab | 17640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
17641 | fi |
17642 | ||
97bf5e38 | 17643 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
17644 | |
17645 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17646 | #define HAVE_FPREGSET_T 1 |
bec39cab | 17647 | _ACEOF |
d84dd0c5 | 17648 | |
97bf5e38 | 17649 | fi |
b4e70030 JB |
17650 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
17651 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 17652 | |
b4e70030 JB |
17653 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
17654 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17655 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
17656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 17657 | else |
bec39cab AC |
17658 | cat >conftest.$ac_ext <<_ACEOF |
17659 | /* confdefs.h. */ | |
17660 | _ACEOF | |
17661 | cat confdefs.h >>conftest.$ac_ext | |
17662 | cat >>conftest.$ac_ext <<_ACEOF | |
17663 | /* end confdefs.h. */ | |
c906108c | 17664 | |
97bf5e38 MK |
17665 | #define _SYSCALL32 |
17666 | #include <sys/procfs.h> | |
bec39cab AC |
17667 | int |
17668 | main () | |
17669 | { | |
97bf5e38 | 17670 | prgregset_t avar |
bec39cab AC |
17671 | ; |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17677 | (eval $ac_compile) 2>conftest.er1 | |
17678 | ac_status=$? | |
17679 | grep -v '^ *+' conftest.er1 >conftest.err | |
17680 | rm -f conftest.er1 | |
17681 | cat conftest.err >&5 | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); } && | |
b4e70030 JB |
17684 | { ac_try='test -z "$ac_c_werror_flag" |
17685 | || test ! -s conftest.err' | |
bec39cab AC |
17686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17687 | (eval $ac_try) 2>&5 | |
17688 | ac_status=$? | |
17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17690 | (exit $ac_status); }; } && | |
17691 | { ac_try='test -s conftest.$ac_objext' | |
17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17693 | (eval $ac_try) 2>&5 | |
17694 | ac_status=$? | |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); }; }; then | |
97bf5e38 | 17697 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 17698 | else |
bec39cab AC |
17699 | echo "$as_me: failed program was:" >&5 |
17700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17701 | ||
b4e70030 | 17702 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 17703 | |
c906108c | 17704 | fi |
bec39cab | 17705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
17706 | fi |
17707 | ||
97bf5e38 | 17708 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
17709 | |
17710 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17711 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 17712 | _ACEOF |
c906108c | 17713 | |
97bf5e38 | 17714 | fi |
b4e70030 JB |
17715 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
17716 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 17717 | |
b4e70030 JB |
17718 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
17719 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17720 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
17721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17722 | else |
bec39cab AC |
17723 | cat >conftest.$ac_ext <<_ACEOF |
17724 | /* confdefs.h. */ | |
17725 | _ACEOF | |
17726 | cat confdefs.h >>conftest.$ac_ext | |
17727 | cat >>conftest.$ac_ext <<_ACEOF | |
17728 | /* end confdefs.h. */ | |
97bf5e38 MK |
17729 | |
17730 | #define _SYSCALL32 | |
17731 | #include <sys/procfs.h> | |
bec39cab AC |
17732 | int |
17733 | main () | |
17734 | { | |
97bf5e38 | 17735 | prfpregset_t avar |
bec39cab AC |
17736 | ; |
17737 | return 0; | |
17738 | } | |
17739 | _ACEOF | |
17740 | rm -f conftest.$ac_objext | |
17741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17742 | (eval $ac_compile) 2>conftest.er1 | |
17743 | ac_status=$? | |
17744 | grep -v '^ *+' conftest.er1 >conftest.err | |
17745 | rm -f conftest.er1 | |
17746 | cat conftest.err >&5 | |
17747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17748 | (exit $ac_status); } && | |
b4e70030 JB |
17749 | { ac_try='test -z "$ac_c_werror_flag" |
17750 | || test ! -s conftest.err' | |
bec39cab AC |
17751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17752 | (eval $ac_try) 2>&5 | |
17753 | ac_status=$? | |
17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17755 | (exit $ac_status); }; } && | |
17756 | { ac_try='test -s conftest.$ac_objext' | |
17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17758 | (eval $ac_try) 2>&5 | |
17759 | ac_status=$? | |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; }; then | |
97bf5e38 | 17762 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 17763 | else |
bec39cab AC |
17764 | echo "$as_me: failed program was:" >&5 |
17765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17766 | ||
b4e70030 | 17767 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 17768 | |
d45fe813 | 17769 | fi |
bec39cab | 17770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17771 | fi |
17772 | ||
97bf5e38 | 17773 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
17774 | |
17775 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17776 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 17777 | _ACEOF |
d45fe813 | 17778 | |
97bf5e38 | 17779 | fi |
b4e70030 JB |
17780 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
17781 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 17782 | |
b4e70030 JB |
17783 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
17784 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17785 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
17786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17787 | else |
bec39cab AC |
17788 | cat >conftest.$ac_ext <<_ACEOF |
17789 | /* confdefs.h. */ | |
17790 | _ACEOF | |
17791 | cat confdefs.h >>conftest.$ac_ext | |
17792 | cat >>conftest.$ac_ext <<_ACEOF | |
17793 | /* end confdefs.h. */ | |
97bf5e38 MK |
17794 | |
17795 | #define _SYSCALL32 | |
17796 | #include <sys/procfs.h> | |
bec39cab AC |
17797 | int |
17798 | main () | |
17799 | { | |
97bf5e38 | 17800 | prgregset32_t avar |
bec39cab AC |
17801 | ; |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
17806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17807 | (eval $ac_compile) 2>conftest.er1 | |
17808 | ac_status=$? | |
17809 | grep -v '^ *+' conftest.er1 >conftest.err | |
17810 | rm -f conftest.er1 | |
17811 | cat conftest.err >&5 | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 | (exit $ac_status); } && | |
b4e70030 JB |
17814 | { ac_try='test -z "$ac_c_werror_flag" |
17815 | || test ! -s conftest.err' | |
bec39cab AC |
17816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17817 | (eval $ac_try) 2>&5 | |
17818 | ac_status=$? | |
17819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17820 | (exit $ac_status); }; } && | |
17821 | { ac_try='test -s conftest.$ac_objext' | |
17822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17823 | (eval $ac_try) 2>&5 | |
17824 | ac_status=$? | |
17825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17826 | (exit $ac_status); }; }; then | |
97bf5e38 | 17827 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 17828 | else |
bec39cab AC |
17829 | echo "$as_me: failed program was:" >&5 |
17830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17831 | ||
b4e70030 | 17832 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 17833 | |
d45fe813 | 17834 | fi |
bec39cab | 17835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17836 | fi |
17837 | ||
97bf5e38 | 17838 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
17839 | |
17840 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17841 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 17842 | _ACEOF |
d45fe813 | 17843 | |
97bf5e38 | 17844 | fi |
b4e70030 JB |
17845 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
17846 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 17847 | |
b4e70030 JB |
17848 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
17849 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17850 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
17851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17852 | else |
bec39cab AC |
17853 | cat >conftest.$ac_ext <<_ACEOF |
17854 | /* confdefs.h. */ | |
17855 | _ACEOF | |
17856 | cat confdefs.h >>conftest.$ac_ext | |
17857 | cat >>conftest.$ac_ext <<_ACEOF | |
17858 | /* end confdefs.h. */ | |
97bf5e38 MK |
17859 | |
17860 | #define _SYSCALL32 | |
17861 | #include <sys/procfs.h> | |
bec39cab AC |
17862 | int |
17863 | main () | |
17864 | { | |
97bf5e38 | 17865 | prfpregset32_t avar |
bec39cab AC |
17866 | ; |
17867 | return 0; | |
17868 | } | |
17869 | _ACEOF | |
17870 | rm -f conftest.$ac_objext | |
17871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17872 | (eval $ac_compile) 2>conftest.er1 | |
17873 | ac_status=$? | |
17874 | grep -v '^ *+' conftest.er1 >conftest.err | |
17875 | rm -f conftest.er1 | |
17876 | cat conftest.err >&5 | |
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17878 | (exit $ac_status); } && | |
b4e70030 JB |
17879 | { ac_try='test -z "$ac_c_werror_flag" |
17880 | || test ! -s conftest.err' | |
bec39cab AC |
17881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17882 | (eval $ac_try) 2>&5 | |
17883 | ac_status=$? | |
17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17885 | (exit $ac_status); }; } && | |
17886 | { ac_try='test -s conftest.$ac_objext' | |
17887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17888 | (eval $ac_try) 2>&5 | |
17889 | ac_status=$? | |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17891 | (exit $ac_status); }; }; then | |
97bf5e38 | 17892 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 17893 | else |
bec39cab AC |
17894 | echo "$as_me: failed program was:" >&5 |
17895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17896 | ||
b4e70030 | 17897 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 17898 | |
d45fe813 | 17899 | fi |
bec39cab | 17900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17901 | fi |
17902 | ||
97bf5e38 | 17903 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
17904 | |
17905 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17906 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 17907 | _ACEOF |
d45fe813 | 17908 | |
97bf5e38 | 17909 | fi |
b4e70030 JB |
17910 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
17911 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 17912 | |
b4e70030 JB |
17913 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
17914 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17915 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
17916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17917 | else |
bec39cab AC |
17918 | cat >conftest.$ac_ext <<_ACEOF |
17919 | /* confdefs.h. */ | |
17920 | _ACEOF | |
17921 | cat confdefs.h >>conftest.$ac_ext | |
17922 | cat >>conftest.$ac_ext <<_ACEOF | |
17923 | /* end confdefs.h. */ | |
97bf5e38 | 17924 | |
d45fe813 | 17925 | #define _SYSCALL32 |
97bf5e38 | 17926 | #include <sys/procfs.h> |
bec39cab AC |
17927 | int |
17928 | main () | |
17929 | { | |
97bf5e38 | 17930 | lwpid_t avar |
bec39cab AC |
17931 | ; |
17932 | return 0; | |
17933 | } | |
17934 | _ACEOF | |
17935 | rm -f conftest.$ac_objext | |
17936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17937 | (eval $ac_compile) 2>conftest.er1 | |
17938 | ac_status=$? | |
17939 | grep -v '^ *+' conftest.er1 >conftest.err | |
17940 | rm -f conftest.er1 | |
17941 | cat conftest.err >&5 | |
17942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17943 | (exit $ac_status); } && | |
b4e70030 JB |
17944 | { ac_try='test -z "$ac_c_werror_flag" |
17945 | || test ! -s conftest.err' | |
bec39cab AC |
17946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17947 | (eval $ac_try) 2>&5 | |
17948 | ac_status=$? | |
17949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17950 | (exit $ac_status); }; } && | |
17951 | { ac_try='test -s conftest.$ac_objext' | |
17952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); }; }; then | |
97bf5e38 | 17957 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 17958 | else |
bec39cab AC |
17959 | echo "$as_me: failed program was:" >&5 |
17960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17961 | ||
b4e70030 | 17962 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 17963 | |
d45fe813 | 17964 | fi |
bec39cab | 17965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17966 | fi |
17967 | ||
97bf5e38 | 17968 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
17969 | |
17970 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17971 | #define HAVE_LWPID_T 1 |
bec39cab | 17972 | _ACEOF |
d45fe813 | 17973 | |
97bf5e38 | 17974 | fi |
b4e70030 JB |
17975 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
17976 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 17977 | |
b4e70030 JB |
17978 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
17979 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
17980 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
17981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 17982 | else |
bec39cab AC |
17983 | cat >conftest.$ac_ext <<_ACEOF |
17984 | /* confdefs.h. */ | |
17985 | _ACEOF | |
17986 | cat confdefs.h >>conftest.$ac_ext | |
17987 | cat >>conftest.$ac_ext <<_ACEOF | |
17988 | /* end confdefs.h. */ | |
c906108c | 17989 | |
97bf5e38 MK |
17990 | #define _SYSCALL32 |
17991 | #include <sys/procfs.h> | |
bec39cab AC |
17992 | int |
17993 | main () | |
17994 | { | |
97bf5e38 | 17995 | psaddr_t avar |
bec39cab AC |
17996 | ; |
17997 | return 0; | |
17998 | } | |
17999 | _ACEOF | |
18000 | rm -f conftest.$ac_objext | |
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18002 | (eval $ac_compile) 2>conftest.er1 | |
18003 | ac_status=$? | |
18004 | grep -v '^ *+' conftest.er1 >conftest.err | |
18005 | rm -f conftest.er1 | |
18006 | cat conftest.err >&5 | |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18008 | (exit $ac_status); } && | |
b4e70030 JB |
18009 | { ac_try='test -z "$ac_c_werror_flag" |
18010 | || test ! -s conftest.err' | |
bec39cab AC |
18011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18012 | (eval $ac_try) 2>&5 | |
18013 | ac_status=$? | |
18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18015 | (exit $ac_status); }; } && | |
18016 | { ac_try='test -s conftest.$ac_objext' | |
18017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18018 | (eval $ac_try) 2>&5 | |
18019 | ac_status=$? | |
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18021 | (exit $ac_status); }; }; then | |
97bf5e38 | 18022 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 18023 | else |
bec39cab AC |
18024 | echo "$as_me: failed program was:" >&5 |
18025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18026 | ||
b4e70030 | 18027 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 18028 | |
c906108c | 18029 | fi |
bec39cab | 18030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18031 | fi |
18032 | ||
97bf5e38 | 18033 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
18034 | |
18035 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18036 | #define HAVE_PSADDR_T 1 |
bec39cab | 18037 | _ACEOF |
c906108c | 18038 | |
97bf5e38 | 18039 | fi |
b4e70030 JB |
18040 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
18041 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 18042 | |
b4e70030 JB |
18043 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
18044 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18045 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
18046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18047 | else |
bec39cab AC |
18048 | cat >conftest.$ac_ext <<_ACEOF |
18049 | /* confdefs.h. */ | |
18050 | _ACEOF | |
18051 | cat confdefs.h >>conftest.$ac_ext | |
18052 | cat >>conftest.$ac_ext <<_ACEOF | |
18053 | /* end confdefs.h. */ | |
c906108c | 18054 | |
97bf5e38 MK |
18055 | #define _SYSCALL32 |
18056 | #include <sys/procfs.h> | |
bec39cab AC |
18057 | int |
18058 | main () | |
18059 | { | |
97bf5e38 | 18060 | prsysent_t avar |
bec39cab AC |
18061 | ; |
18062 | return 0; | |
18063 | } | |
18064 | _ACEOF | |
18065 | rm -f conftest.$ac_objext | |
18066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18067 | (eval $ac_compile) 2>conftest.er1 | |
18068 | ac_status=$? | |
18069 | grep -v '^ *+' conftest.er1 >conftest.err | |
18070 | rm -f conftest.er1 | |
18071 | cat conftest.err >&5 | |
18072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18073 | (exit $ac_status); } && | |
b4e70030 JB |
18074 | { ac_try='test -z "$ac_c_werror_flag" |
18075 | || test ! -s conftest.err' | |
bec39cab AC |
18076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18077 | (eval $ac_try) 2>&5 | |
18078 | ac_status=$? | |
18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18080 | (exit $ac_status); }; } && | |
18081 | { ac_try='test -s conftest.$ac_objext' | |
18082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18083 | (eval $ac_try) 2>&5 | |
18084 | ac_status=$? | |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18086 | (exit $ac_status); }; }; then | |
97bf5e38 | 18087 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 18088 | else |
bec39cab AC |
18089 | echo "$as_me: failed program was:" >&5 |
18090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18091 | ||
b4e70030 | 18092 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 18093 | |
c906108c | 18094 | fi |
bec39cab | 18095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18096 | fi |
18097 | ||
97bf5e38 | 18098 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
18099 | |
18100 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18101 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 18102 | _ACEOF |
c906108c | 18103 | |
97bf5e38 | 18104 | fi |
b4e70030 JB |
18105 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
18106 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 18107 | |
b4e70030 JB |
18108 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
18109 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18110 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
18111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18112 | else |
bec39cab AC |
18113 | cat >conftest.$ac_ext <<_ACEOF |
18114 | /* confdefs.h. */ | |
18115 | _ACEOF | |
18116 | cat confdefs.h >>conftest.$ac_ext | |
18117 | cat >>conftest.$ac_ext <<_ACEOF | |
18118 | /* end confdefs.h. */ | |
c906108c | 18119 | |
97bf5e38 MK |
18120 | #define _SYSCALL32 |
18121 | #include <sys/procfs.h> | |
bec39cab AC |
18122 | int |
18123 | main () | |
18124 | { | |
97bf5e38 | 18125 | pr_sigset_t avar |
bec39cab AC |
18126 | ; |
18127 | return 0; | |
18128 | } | |
18129 | _ACEOF | |
18130 | rm -f conftest.$ac_objext | |
18131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18132 | (eval $ac_compile) 2>conftest.er1 | |
18133 | ac_status=$? | |
18134 | grep -v '^ *+' conftest.er1 >conftest.err | |
18135 | rm -f conftest.er1 | |
18136 | cat conftest.err >&5 | |
18137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18138 | (exit $ac_status); } && | |
b4e70030 JB |
18139 | { ac_try='test -z "$ac_c_werror_flag" |
18140 | || test ! -s conftest.err' | |
bec39cab AC |
18141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18142 | (eval $ac_try) 2>&5 | |
18143 | ac_status=$? | |
18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18145 | (exit $ac_status); }; } && | |
18146 | { ac_try='test -s conftest.$ac_objext' | |
18147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18148 | (eval $ac_try) 2>&5 | |
18149 | ac_status=$? | |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18151 | (exit $ac_status); }; }; then | |
97bf5e38 | 18152 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 18153 | else |
bec39cab AC |
18154 | echo "$as_me: failed program was:" >&5 |
18155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18156 | ||
b4e70030 | 18157 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 18158 | |
c906108c | 18159 | fi |
bec39cab | 18160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18161 | fi |
18162 | ||
97bf5e38 | 18163 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
18164 | |
18165 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18166 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 18167 | _ACEOF |
c906108c | 18168 | |
97bf5e38 | 18169 | fi |
b4e70030 JB |
18170 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
18171 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 18172 | |
b4e70030 JB |
18173 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
18174 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18175 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
18176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18177 | else |
bec39cab AC |
18178 | cat >conftest.$ac_ext <<_ACEOF |
18179 | /* confdefs.h. */ | |
18180 | _ACEOF | |
18181 | cat confdefs.h >>conftest.$ac_ext | |
18182 | cat >>conftest.$ac_ext <<_ACEOF | |
18183 | /* end confdefs.h. */ | |
c906108c | 18184 | |
97bf5e38 MK |
18185 | #define _SYSCALL32 |
18186 | #include <sys/procfs.h> | |
bec39cab AC |
18187 | int |
18188 | main () | |
18189 | { | |
97bf5e38 | 18190 | pr_sigaction64_t avar |
bec39cab AC |
18191 | ; |
18192 | return 0; | |
18193 | } | |
18194 | _ACEOF | |
18195 | rm -f conftest.$ac_objext | |
18196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18197 | (eval $ac_compile) 2>conftest.er1 | |
18198 | ac_status=$? | |
18199 | grep -v '^ *+' conftest.er1 >conftest.err | |
18200 | rm -f conftest.er1 | |
18201 | cat conftest.err >&5 | |
18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18203 | (exit $ac_status); } && | |
b4e70030 JB |
18204 | { ac_try='test -z "$ac_c_werror_flag" |
18205 | || test ! -s conftest.err' | |
bec39cab AC |
18206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18207 | (eval $ac_try) 2>&5 | |
18208 | ac_status=$? | |
18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18210 | (exit $ac_status); }; } && | |
18211 | { ac_try='test -s conftest.$ac_objext' | |
18212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18213 | (eval $ac_try) 2>&5 | |
18214 | ac_status=$? | |
18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18216 | (exit $ac_status); }; }; then | |
97bf5e38 | 18217 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 18218 | else |
bec39cab AC |
18219 | echo "$as_me: failed program was:" >&5 |
18220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18221 | ||
b4e70030 | 18222 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 18223 | |
c906108c | 18224 | fi |
bec39cab | 18225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18226 | fi |
18227 | ||
97bf5e38 | 18228 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
18229 | |
18230 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18231 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 18232 | _ACEOF |
c906108c | 18233 | |
97bf5e38 | 18234 | fi |
b4e70030 JB |
18235 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
18236 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 18237 | |
b4e70030 JB |
18238 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
18239 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18240 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
18241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18242 | else |
bec39cab AC |
18243 | cat >conftest.$ac_ext <<_ACEOF |
18244 | /* confdefs.h. */ | |
18245 | _ACEOF | |
18246 | cat confdefs.h >>conftest.$ac_ext | |
18247 | cat >>conftest.$ac_ext <<_ACEOF | |
18248 | /* end confdefs.h. */ | |
97bf5e38 MK |
18249 | |
18250 | #define _SYSCALL32 | |
18251 | #include <sys/procfs.h> | |
bec39cab AC |
18252 | int |
18253 | main () | |
18254 | { | |
97bf5e38 | 18255 | pr_siginfo64_t avar |
bec39cab AC |
18256 | ; |
18257 | return 0; | |
18258 | } | |
18259 | _ACEOF | |
18260 | rm -f conftest.$ac_objext | |
18261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18262 | (eval $ac_compile) 2>conftest.er1 | |
18263 | ac_status=$? | |
18264 | grep -v '^ *+' conftest.er1 >conftest.err | |
18265 | rm -f conftest.er1 | |
18266 | cat conftest.err >&5 | |
18267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18268 | (exit $ac_status); } && | |
b4e70030 JB |
18269 | { ac_try='test -z "$ac_c_werror_flag" |
18270 | || test ! -s conftest.err' | |
bec39cab AC |
18271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18272 | (eval $ac_try) 2>&5 | |
18273 | ac_status=$? | |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18275 | (exit $ac_status); }; } && | |
18276 | { ac_try='test -s conftest.$ac_objext' | |
18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18278 | (eval $ac_try) 2>&5 | |
18279 | ac_status=$? | |
18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18281 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18282 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
18283 | else | |
bec39cab AC |
18284 | echo "$as_me: failed program was:" >&5 |
18285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18286 | ||
b4e70030 | 18287 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 18288 | |
97bf5e38 | 18289 | fi |
bec39cab | 18290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18291 | fi |
c906108c | 18292 | |
97bf5e38 | 18293 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
18294 | |
18295 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18296 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 18297 | _ACEOF |
c906108c | 18298 | |
97bf5e38 | 18299 | fi |
b4e70030 JB |
18300 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
18301 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
18302 | |
18303 | ||
97bf5e38 MK |
18304 | |
18305 | ||
18306 | ||
97bf5e38 | 18307 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
18308 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
18309 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
18310 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
18311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
18312 | else |
18313 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 18314 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 18315 | else |
bec39cab AC |
18316 | cat >conftest.$ac_ext <<_ACEOF |
18317 | /* confdefs.h. */ | |
18318 | _ACEOF | |
18319 | cat confdefs.h >>conftest.$ac_ext | |
18320 | cat >>conftest.$ac_ext <<_ACEOF | |
18321 | /* end confdefs.h. */ | |
97bf5e38 MK |
18322 | #include <sys/procfs.h> |
18323 | int main () | |
18324 | { | |
18325 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
18326 | return 1; | |
18327 | return 0; | |
18328 | } | |
bec39cab AC |
18329 | _ACEOF |
18330 | rm -f conftest$ac_exeext | |
18331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18332 | (eval $ac_link) 2>&5 | |
18333 | ac_status=$? | |
18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18337 | (eval $ac_try) 2>&5 | |
18338 | ac_status=$? | |
18339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18340 | (exit $ac_status); }; }; then | |
97bf5e38 | 18341 | gdb_cv_prfpregset_t_broken=no |
c906108c | 18342 | else |
bec39cab AC |
18343 | echo "$as_me: program exited with status $ac_status" >&5 |
18344 | echo "$as_me: failed program was:" >&5 | |
18345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18346 | ||
18347 | ( exit $ac_status ) | |
18348 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 18349 | fi |
b4e70030 | 18350 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18351 | fi |
c906108c SS |
18352 | fi |
18353 | ||
b4e70030 JB |
18354 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
18355 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 18356 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
18357 | |
18358 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18359 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 18360 | _ACEOF |
c906108c | 18361 | |
97bf5e38 MK |
18362 | fi |
18363 | fi | |
c906108c | 18364 | |
bec39cab | 18365 | |
b4e70030 JB |
18366 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
18367 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
18368 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
18369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18370 | else |
bec39cab AC |
18371 | cat >conftest.$ac_ext <<_ACEOF |
18372 | /* confdefs.h. */ | |
18373 | _ACEOF | |
18374 | cat confdefs.h >>conftest.$ac_ext | |
18375 | cat >>conftest.$ac_ext <<_ACEOF | |
18376 | /* end confdefs.h. */ | |
97bf5e38 MK |
18377 | #include <unistd.h> |
18378 | #include <sys/types.h> | |
18379 | #include <sys/procfs.h> | |
18380 | ||
bec39cab AC |
18381 | int |
18382 | main () | |
18383 | { | |
97bf5e38 MK |
18384 | |
18385 | int dummy;; | |
18386 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
18387 | |
18388 | ; | |
18389 | return 0; | |
18390 | } | |
18391 | _ACEOF | |
18392 | rm -f conftest.$ac_objext | |
18393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18394 | (eval $ac_compile) 2>conftest.er1 | |
18395 | ac_status=$? | |
18396 | grep -v '^ *+' conftest.er1 >conftest.err | |
18397 | rm -f conftest.er1 | |
18398 | cat conftest.err >&5 | |
18399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18400 | (exit $ac_status); } && | |
b4e70030 JB |
18401 | { ac_try='test -z "$ac_c_werror_flag" |
18402 | || test ! -s conftest.err' | |
bec39cab AC |
18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18404 | (eval $ac_try) 2>&5 | |
18405 | ac_status=$? | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); }; } && | |
18408 | { ac_try='test -s conftest.$ac_objext' | |
18409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18410 | (eval $ac_try) 2>&5 | |
18411 | ac_status=$? | |
18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18413 | (exit $ac_status); }; }; then | |
97bf5e38 | 18414 | gdb_cv_have_procfs_piocset=yes |
c906108c | 18415 | else |
bec39cab AC |
18416 | echo "$as_me: failed program was:" >&5 |
18417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18418 | ||
b4e70030 | 18419 | gdb_cv_have_procfs_piocset=no |
c906108c | 18420 | fi |
bec39cab | 18421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18422 | fi |
97bf5e38 | 18423 | |
b4e70030 JB |
18424 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
18425 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 18426 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
18427 | |
18428 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18429 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 18430 | _ACEOF |
97bf5e38 MK |
18431 | |
18432 | fi | |
c906108c | 18433 | fi |
c906108c | 18434 | |
97bf5e38 | 18435 | if test ${host} = ${target} ; then |
bec39cab | 18436 | |
b4e70030 JB |
18437 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
18438 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
18439 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
18440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18441 | else | |
18442 | cat >conftest.$ac_ext <<_ACEOF | |
18443 | /* confdefs.h. */ | |
18444 | _ACEOF | |
18445 | cat confdefs.h >>conftest.$ac_ext | |
18446 | cat >>conftest.$ac_ext <<_ACEOF | |
18447 | /* end confdefs.h. */ | |
97bf5e38 | 18448 | #include <link.h> |
bec39cab AC |
18449 | int |
18450 | main () | |
18451 | { | |
97bf5e38 | 18452 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
18453 | ; |
18454 | return 0; | |
18455 | } | |
18456 | _ACEOF | |
18457 | rm -f conftest.$ac_objext | |
18458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18459 | (eval $ac_compile) 2>conftest.er1 | |
18460 | ac_status=$? | |
18461 | grep -v '^ *+' conftest.er1 >conftest.err | |
18462 | rm -f conftest.er1 | |
18463 | cat conftest.err >&5 | |
18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18465 | (exit $ac_status); } && | |
b4e70030 JB |
18466 | { ac_try='test -z "$ac_c_werror_flag" |
18467 | || test ! -s conftest.err' | |
bec39cab AC |
18468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18469 | (eval $ac_try) 2>&5 | |
18470 | ac_status=$? | |
18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18472 | (exit $ac_status); }; } && | |
18473 | { ac_try='test -s conftest.$ac_objext' | |
18474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18475 | (eval $ac_try) 2>&5 | |
18476 | ac_status=$? | |
18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18478 | (exit $ac_status); }; }; then | |
97bf5e38 | 18479 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 18480 | else |
bec39cab AC |
18481 | echo "$as_me: failed program was:" >&5 |
18482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18483 | ||
b4e70030 | 18484 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 18485 | fi |
bec39cab | 18486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18487 | fi |
18488 | ||
b4e70030 JB |
18489 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
18490 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 18491 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
18492 | |
18493 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18494 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 18495 | _ACEOF |
97bf5e38 MK |
18496 | |
18497 | fi | |
18498 | ||
bec39cab | 18499 | |
b4e70030 JB |
18500 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
18501 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
18502 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
18503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18504 | else |
bec39cab AC |
18505 | cat >conftest.$ac_ext <<_ACEOF |
18506 | /* confdefs.h. */ | |
18507 | _ACEOF | |
18508 | cat confdefs.h >>conftest.$ac_ext | |
18509 | cat >>conftest.$ac_ext <<_ACEOF | |
18510 | /* end confdefs.h. */ | |
97bf5e38 MK |
18511 | #include <sys/types.h> |
18512 | #include <link.h> | |
bec39cab AC |
18513 | int |
18514 | main () | |
18515 | { | |
97bf5e38 | 18516 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
18517 | ; |
18518 | return 0; | |
18519 | } | |
18520 | _ACEOF | |
18521 | rm -f conftest.$ac_objext | |
18522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18523 | (eval $ac_compile) 2>conftest.er1 | |
18524 | ac_status=$? | |
18525 | grep -v '^ *+' conftest.er1 >conftest.err | |
18526 | rm -f conftest.er1 | |
18527 | cat conftest.err >&5 | |
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18529 | (exit $ac_status); } && | |
b4e70030 JB |
18530 | { ac_try='test -z "$ac_c_werror_flag" |
18531 | || test ! -s conftest.err' | |
bec39cab AC |
18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18533 | (eval $ac_try) 2>&5 | |
18534 | ac_status=$? | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); }; } && | |
18537 | { ac_try='test -s conftest.$ac_objext' | |
18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18539 | (eval $ac_try) 2>&5 | |
18540 | ac_status=$? | |
18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18542 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18543 | gdb_cv_have_struct_link_map_with_lm_members=yes |
18544 | else | |
bec39cab AC |
18545 | echo "$as_me: failed program was:" >&5 |
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18547 | ||
b4e70030 | 18548 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 18549 | fi |
bec39cab | 18550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18551 | fi |
c906108c | 18552 | |
b4e70030 JB |
18553 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
18554 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 18555 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
18556 | |
18557 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18558 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 18559 | _ACEOF |
97bf5e38 MK |
18560 | |
18561 | fi | |
18562 | ||
bec39cab | 18563 | |
b4e70030 JB |
18564 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
18565 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
18566 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
18567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18568 | else |
bec39cab AC |
18569 | cat >conftest.$ac_ext <<_ACEOF |
18570 | /* confdefs.h. */ | |
18571 | _ACEOF | |
18572 | cat confdefs.h >>conftest.$ac_ext | |
18573 | cat >>conftest.$ac_ext <<_ACEOF | |
18574 | /* end confdefs.h. */ | |
97bf5e38 MK |
18575 | #include <sys/types.h> |
18576 | #ifdef HAVE_NLIST_H | |
18577 | #include <nlist.h> | |
18578 | #endif | |
18579 | #include <link.h> | |
bec39cab AC |
18580 | int |
18581 | main () | |
18582 | { | |
97bf5e38 | 18583 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
18584 | ; |
18585 | return 0; | |
18586 | } | |
18587 | _ACEOF | |
18588 | rm -f conftest.$ac_objext | |
18589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18590 | (eval $ac_compile) 2>conftest.er1 | |
18591 | ac_status=$? | |
18592 | grep -v '^ *+' conftest.er1 >conftest.err | |
18593 | rm -f conftest.er1 | |
18594 | cat conftest.err >&5 | |
18595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18596 | (exit $ac_status); } && | |
b4e70030 JB |
18597 | { ac_try='test -z "$ac_c_werror_flag" |
18598 | || test ! -s conftest.err' | |
bec39cab AC |
18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18600 | (eval $ac_try) 2>&5 | |
18601 | ac_status=$? | |
18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18603 | (exit $ac_status); }; } && | |
18604 | { ac_try='test -s conftest.$ac_objext' | |
18605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18606 | (eval $ac_try) 2>&5 | |
18607 | ac_status=$? | |
18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18609 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18610 | gdb_cv_have_struct_so_map_with_som_members=yes |
18611 | else | |
bec39cab AC |
18612 | echo "$as_me: failed program was:" >&5 |
18613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18614 | ||
b4e70030 | 18615 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 18616 | fi |
bec39cab | 18617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18618 | fi |
c906108c | 18619 | |
b4e70030 JB |
18620 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
18621 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 18622 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
18623 | |
18624 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18625 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 18626 | _ACEOF |
c906108c | 18627 | |
97bf5e38 | 18628 | fi |
c906108c | 18629 | |
bec39cab | 18630 | |
b4e70030 JB |
18631 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
18632 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
18633 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
18634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18635 | else |
bec39cab AC |
18636 | cat >conftest.$ac_ext <<_ACEOF |
18637 | /* confdefs.h. */ | |
18638 | _ACEOF | |
18639 | cat confdefs.h >>conftest.$ac_ext | |
18640 | cat >>conftest.$ac_ext <<_ACEOF | |
18641 | /* end confdefs.h. */ | |
97bf5e38 MK |
18642 | #define _SYSCALL32 |
18643 | #include <sys/link.h> | |
bec39cab AC |
18644 | int |
18645 | main () | |
18646 | { | |
97bf5e38 | 18647 | struct link_map32 l; |
bec39cab AC |
18648 | ; |
18649 | return 0; | |
18650 | } | |
18651 | _ACEOF | |
18652 | rm -f conftest.$ac_objext | |
18653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18654 | (eval $ac_compile) 2>conftest.er1 | |
18655 | ac_status=$? | |
18656 | grep -v '^ *+' conftest.er1 >conftest.err | |
18657 | rm -f conftest.er1 | |
18658 | cat conftest.err >&5 | |
18659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18660 | (exit $ac_status); } && | |
b4e70030 JB |
18661 | { ac_try='test -z "$ac_c_werror_flag" |
18662 | || test ! -s conftest.err' | |
bec39cab AC |
18663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18664 | (eval $ac_try) 2>&5 | |
18665 | ac_status=$? | |
18666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18667 | (exit $ac_status); }; } && | |
18668 | { ac_try='test -s conftest.$ac_objext' | |
18669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18670 | (eval $ac_try) 2>&5 | |
18671 | ac_status=$? | |
18672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18673 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18674 | gdb_cv_have_struct_link_map32=yes |
18675 | else | |
bec39cab AC |
18676 | echo "$as_me: failed program was:" >&5 |
18677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18678 | ||
b4e70030 | 18679 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 18680 | fi |
bec39cab | 18681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18682 | fi |
c906108c | 18683 | |
b4e70030 JB |
18684 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
18685 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 18686 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
18687 | |
18688 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18689 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 18690 | _ACEOF |
c906108c | 18691 | |
60ca704f SE |
18692 | |
18693 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18694 | #define _SYSCALL32 1 |
bec39cab | 18695 | _ACEOF |
c906108c | 18696 | |
97bf5e38 MK |
18697 | fi |
18698 | fi | |
c906108c | 18699 | |
bc8bcb4b | 18700 | # Check if the compiler supports the `long long' type. |
c906108c | 18701 | |
b4e70030 JB |
18702 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
18703 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
18704 | if test "${gdb_cv_c_long_long+set}" = set; then |
18705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18706 | else |
bec39cab AC |
18707 | cat >conftest.$ac_ext <<_ACEOF |
18708 | /* confdefs.h. */ | |
18709 | _ACEOF | |
18710 | cat confdefs.h >>conftest.$ac_ext | |
18711 | cat >>conftest.$ac_ext <<_ACEOF | |
18712 | /* end confdefs.h. */ | |
bc8bcb4b | 18713 | extern long long foo; |
bec39cab AC |
18714 | int |
18715 | main () | |
18716 | { | |
bc8bcb4b | 18717 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
18718 | ; |
18719 | return 0; | |
18720 | } | |
18721 | _ACEOF | |
18722 | rm -f conftest.$ac_objext | |
18723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18724 | (eval $ac_compile) 2>conftest.er1 | |
18725 | ac_status=$? | |
18726 | grep -v '^ *+' conftest.er1 >conftest.err | |
18727 | rm -f conftest.er1 | |
18728 | cat conftest.err >&5 | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); } && | |
b4e70030 JB |
18731 | { ac_try='test -z "$ac_c_werror_flag" |
18732 | || test ! -s conftest.err' | |
bec39cab AC |
18733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18734 | (eval $ac_try) 2>&5 | |
18735 | ac_status=$? | |
18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18737 | (exit $ac_status); }; } && | |
18738 | { ac_try='test -s conftest.$ac_objext' | |
18739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18740 | (eval $ac_try) 2>&5 | |
18741 | ac_status=$? | |
18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18743 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18744 | gdb_cv_c_long_long=yes |
18745 | else | |
bec39cab AC |
18746 | echo "$as_me: failed program was:" >&5 |
18747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18748 | ||
b4e70030 | 18749 | gdb_cv_c_long_long=no |
97bf5e38 | 18750 | fi |
bec39cab | 18751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18752 | fi |
b4e70030 JB |
18753 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
18754 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 18755 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
18756 | |
18757 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18758 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 18759 | _ACEOF |
97bf5e38 MK |
18760 | |
18761 | fi | |
18762 | ||
bc8bcb4b | 18763 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 18764 | |
b4e70030 JB |
18765 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
18766 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
18767 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
18768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
18769 | else |
18770 | if test "$cross_compiling" = yes; then | |
18771 | gdb_cv_printf_has_long_long=no | |
18772 | else | |
bec39cab AC |
18773 | cat >conftest.$ac_ext <<_ACEOF |
18774 | /* confdefs.h. */ | |
18775 | _ACEOF | |
18776 | cat confdefs.h >>conftest.$ac_ext | |
18777 | cat >>conftest.$ac_ext <<_ACEOF | |
18778 | /* end confdefs.h. */ | |
bc8bcb4b MK |
18779 | $ac_includes_default |
18780 | int | |
18781 | main () | |
18782 | { | |
18783 | char buf[32]; | |
97bf5e38 MK |
18784 | long long l = 0; |
18785 | l = (l << 16) + 0x0123; | |
18786 | l = (l << 16) + 0x4567; | |
18787 | l = (l << 16) + 0x89ab; | |
18788 | l = (l << 16) + 0xcdef; | |
18789 | sprintf (buf, "0x%016llx", l); | |
18790 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
18791 | ; |
18792 | return 0; | |
c906108c | 18793 | } |
bec39cab AC |
18794 | _ACEOF |
18795 | rm -f conftest$ac_exeext | |
18796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18797 | (eval $ac_link) 2>&5 | |
18798 | ac_status=$? | |
18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18802 | (eval $ac_try) 2>&5 | |
18803 | ac_status=$? | |
18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18805 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18806 | gdb_cv_printf_has_long_long=yes |
18807 | else | |
bec39cab AC |
18808 | echo "$as_me: program exited with status $ac_status" >&5 |
18809 | echo "$as_me: failed program was:" >&5 | |
18810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18811 | ||
18812 | ( exit $ac_status ) | |
18813 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 18814 | fi |
b4e70030 | 18815 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18816 | fi |
97bf5e38 | 18817 | fi |
b4e70030 JB |
18818 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
18819 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 18820 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
18821 | |
18822 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18823 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 18824 | _ACEOF |
97bf5e38 MK |
18825 | |
18826 | fi | |
97bf5e38 | 18827 | |
1a619819 LM |
18828 | # Check if the compiler and runtime support printing decfloats. |
18829 | ||
18830 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 | |
18831 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 | |
18832 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then | |
18833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18834 | else | |
18835 | if test "$cross_compiling" = yes; then | |
18836 | gdb_cv_printf_has_decfloat=no | |
18837 | else | |
18838 | cat >conftest.$ac_ext <<_ACEOF | |
18839 | /* confdefs.h. */ | |
18840 | _ACEOF | |
18841 | cat confdefs.h >>conftest.$ac_ext | |
18842 | cat >>conftest.$ac_ext <<_ACEOF | |
18843 | /* end confdefs.h. */ | |
18844 | $ac_includes_default | |
18845 | int | |
18846 | main () | |
18847 | { | |
18848 | char buf[64]; | |
18849 | _Decimal32 d32 = 1.2345df; | |
18850 | _Decimal64 d64 = 1.2345dd; | |
18851 | _Decimal128 d128 = 1.2345dl; | |
18852 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); | |
18853 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); | |
18854 | ; | |
18855 | return 0; | |
18856 | } | |
18857 | _ACEOF | |
18858 | rm -f conftest$ac_exeext | |
18859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18860 | (eval $ac_link) 2>&5 | |
18861 | ac_status=$? | |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18865 | (eval $ac_try) 2>&5 | |
18866 | ac_status=$? | |
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18868 | (exit $ac_status); }; }; then | |
18869 | gdb_cv_printf_has_decfloat=yes | |
18870 | else | |
18871 | echo "$as_me: program exited with status $ac_status" >&5 | |
18872 | echo "$as_me: failed program was:" >&5 | |
18873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18874 | ||
18875 | ( exit $ac_status ) | |
18876 | gdb_cv_printf_has_decfloat=no | |
18877 | fi | |
18878 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18879 | fi | |
18880 | fi | |
18881 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 | |
18882 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 | |
18883 | if test $gdb_cv_printf_has_decfloat = yes; then | |
18884 | ||
18885 | cat >>confdefs.h <<\_ACEOF | |
18886 | #define PRINTF_HAS_DECFLOAT 1 | |
18887 | _ACEOF | |
18888 | ||
18889 | fi | |
18890 | ||
bc8bcb4b MK |
18891 | # Check if the compiler supports the `long double' type. We can't use |
18892 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
18893 | # constants defined in <float.h> that fail on some systems, | |
18894 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 18895 | |
b4e70030 JB |
18896 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
18897 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 18898 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 18899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18900 | else |
bec39cab AC |
18901 | cat >conftest.$ac_ext <<_ACEOF |
18902 | /* confdefs.h. */ | |
18903 | _ACEOF | |
18904 | cat confdefs.h >>conftest.$ac_ext | |
18905 | cat >>conftest.$ac_ext <<_ACEOF | |
18906 | /* end confdefs.h. */ | |
97bf5e38 | 18907 | long double foo; |
bec39cab AC |
18908 | _ACEOF |
18909 | rm -f conftest.$ac_objext | |
18910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18911 | (eval $ac_compile) 2>conftest.er1 | |
18912 | ac_status=$? | |
18913 | grep -v '^ *+' conftest.er1 >conftest.err | |
18914 | rm -f conftest.er1 | |
18915 | cat conftest.err >&5 | |
18916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 | (exit $ac_status); } && | |
b4e70030 JB |
18918 | { ac_try='test -z "$ac_c_werror_flag" |
18919 | || test ! -s conftest.err' | |
bec39cab AC |
18920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18921 | (eval $ac_try) 2>&5 | |
18922 | ac_status=$? | |
18923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18924 | (exit $ac_status); }; } && | |
18925 | { ac_try='test -s conftest.$ac_objext' | |
18926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18927 | (eval $ac_try) 2>&5 | |
18928 | ac_status=$? | |
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18930 | (exit $ac_status); }; }; then | |
bc8bcb4b | 18931 | gdb_cv_c_long_double=yes |
97bf5e38 | 18932 | else |
bec39cab AC |
18933 | echo "$as_me: failed program was:" >&5 |
18934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18935 | ||
b4e70030 | 18936 | gdb_cv_c_long_double=no |
97bf5e38 | 18937 | fi |
bec39cab | 18938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18939 | fi |
b4e70030 JB |
18940 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
18941 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 18942 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 18943 | |
bc8bcb4b | 18944 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18945 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 18946 | _ACEOF |
97bf5e38 MK |
18947 | |
18948 | fi | |
18949 | ||
bc8bcb4b | 18950 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 18951 | |
b4e70030 JB |
18952 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
18953 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
18954 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
18955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
18956 | else |
18957 | if test "$cross_compiling" = yes; then | |
18958 | gdb_cv_printf_has_long_double=no | |
18959 | else | |
bec39cab AC |
18960 | cat >conftest.$ac_ext <<_ACEOF |
18961 | /* confdefs.h. */ | |
18962 | _ACEOF | |
18963 | cat confdefs.h >>conftest.$ac_ext | |
18964 | cat >>conftest.$ac_ext <<_ACEOF | |
18965 | /* end confdefs.h. */ | |
bc8bcb4b MK |
18966 | $ac_includes_default |
18967 | int | |
18968 | main () | |
18969 | { | |
18970 | char buf[16]; | |
97bf5e38 MK |
18971 | long double f = 3.141592653; |
18972 | sprintf (buf, "%Lg", f); | |
18973 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
18974 | ; |
18975 | return 0; | |
97bf5e38 | 18976 | } |
bec39cab AC |
18977 | _ACEOF |
18978 | rm -f conftest$ac_exeext | |
18979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18980 | (eval $ac_link) 2>&5 | |
18981 | ac_status=$? | |
18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18985 | (eval $ac_try) 2>&5 | |
18986 | ac_status=$? | |
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18988 | (exit $ac_status); }; }; then | |
97bf5e38 | 18989 | gdb_cv_printf_has_long_double=yes |
c906108c | 18990 | else |
bec39cab AC |
18991 | echo "$as_me: program exited with status $ac_status" >&5 |
18992 | echo "$as_me: failed program was:" >&5 | |
18993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18994 | ||
18995 | ( exit $ac_status ) | |
18996 | gdb_cv_printf_has_long_double=no | |
c906108c | 18997 | fi |
b4e70030 | 18998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18999 | fi |
c906108c | 19000 | fi |
b4e70030 JB |
19001 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
19002 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 19003 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
19004 | |
19005 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19006 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 19007 | _ACEOF |
97bf5e38 MK |
19008 | |
19009 | fi | |
97bf5e38 | 19010 | |
bc8bcb4b | 19011 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 19012 | |
b4e70030 JB |
19013 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
19014 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
19015 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
19016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19017 | else |
19018 | if test "$cross_compiling" = yes; then | |
19019 | gdb_cv_scanf_has_long_double=no | |
19020 | else | |
bec39cab AC |
19021 | cat >conftest.$ac_ext <<_ACEOF |
19022 | /* confdefs.h. */ | |
19023 | _ACEOF | |
19024 | cat confdefs.h >>conftest.$ac_ext | |
19025 | cat >>conftest.$ac_ext <<_ACEOF | |
19026 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19027 | #include <stdio.h> |
19028 | int | |
19029 | main () | |
19030 | { | |
19031 | char *buf = "3.141592653"; | |
97bf5e38 MK |
19032 | long double f = 0; |
19033 | sscanf (buf, "%Lg", &f); | |
19034 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
19035 | ; |
19036 | return 0; | |
97bf5e38 | 19037 | } |
bec39cab AC |
19038 | _ACEOF |
19039 | rm -f conftest$ac_exeext | |
19040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19041 | (eval $ac_link) 2>&5 | |
19042 | ac_status=$? | |
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19044 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19046 | (eval $ac_try) 2>&5 | |
19047 | ac_status=$? | |
19048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19049 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19050 | gdb_cv_scanf_has_long_double=yes |
19051 | else | |
bec39cab AC |
19052 | echo "$as_me: program exited with status $ac_status" >&5 |
19053 | echo "$as_me: failed program was:" >&5 | |
19054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19055 | ||
19056 | ( exit $ac_status ) | |
19057 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 19058 | fi |
b4e70030 | 19059 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19060 | fi |
c906108c | 19061 | fi |
b4e70030 JB |
19062 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
19063 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 19064 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
19065 | |
19066 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19067 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 19068 | _ACEOF |
97bf5e38 MK |
19069 | |
19070 | fi | |
c906108c | 19071 | |
438013df AO |
19072 | case ${host_os} in |
19073 | aix*) | |
b4e70030 JB |
19074 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
19075 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
19076 | if test "${gdb_cv_bigtoc+set}" = set; then |
19077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 19078 | else |
bec39cab | 19079 | |
438013df AO |
19080 | SAVE_LDFLAGS=$LDFLAGS |
19081 | ||
19082 | case $GCC in | |
19083 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
19084 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
19085 | esac | |
19086 | ||
19087 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
19088 | cat >conftest.$ac_ext <<_ACEOF |
19089 | /* confdefs.h. */ | |
19090 | _ACEOF | |
19091 | cat confdefs.h >>conftest.$ac_ext | |
19092 | cat >>conftest.$ac_ext <<_ACEOF | |
19093 | /* end confdefs.h. */ | |
438013df | 19094 | |
bec39cab AC |
19095 | int |
19096 | main () | |
19097 | { | |
438013df | 19098 | int i; |
bec39cab AC |
19099 | ; |
19100 | return 0; | |
19101 | } | |
19102 | _ACEOF | |
19103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19105 | (eval $ac_link) 2>conftest.er1 | |
19106 | ac_status=$? | |
19107 | grep -v '^ *+' conftest.er1 >conftest.err | |
19108 | rm -f conftest.er1 | |
19109 | cat conftest.err >&5 | |
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19111 | (exit $ac_status); } && | |
b4e70030 JB |
19112 | { ac_try='test -z "$ac_c_werror_flag" |
19113 | || test ! -s conftest.err' | |
bec39cab AC |
19114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19115 | (eval $ac_try) 2>&5 | |
19116 | ac_status=$? | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); }; } && | |
19119 | { ac_try='test -s conftest$ac_exeext' | |
19120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19121 | (eval $ac_try) 2>&5 | |
19122 | ac_status=$? | |
19123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19124 | (exit $ac_status); }; }; then | |
438013df AO |
19125 | : |
19126 | else | |
bec39cab AC |
19127 | echo "$as_me: failed program was:" >&5 |
19128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19129 | ||
b4e70030 | 19130 | gdb_cv_bigtoc= |
438013df | 19131 | fi |
bec39cab AC |
19132 | rm -f conftest.err conftest.$ac_objext \ |
19133 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 19134 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 19135 | |
bec39cab | 19136 | fi |
b4e70030 JB |
19137 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
19138 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
19139 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
19140 | ;; | |
19141 | esac | |
19142 | ||
c906108c SS |
19143 | |
19144 | ||
19145 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
19146 | case ${host_os} in | |
19147 | hpux*) | |
b4e70030 JB |
19148 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
19149 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
19150 | if test -f /usr/include/dce/cma_config.h ; then |
19151 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
19152 | echo "$as_me:$LINENO: result: yes" >&5 |
19153 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19154 | |
19155 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19156 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 19157 | _ACEOF |
c906108c | 19158 | |
3483b318 | 19159 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
19160 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
19161 | else | |
b4e70030 JB |
19162 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
19163 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
19164 | fi |
19165 | else | |
b4e70030 JB |
19166 | echo "$as_me:$LINENO: result: no" >&5 |
19167 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19168 | fi |
19169 | ;; | |
19170 | solaris*) | |
d92419e5 JB |
19171 | # See if thread_db library is around for Solaris thread debugging. |
19172 | # Note that we must explicitly test for version 1 of the library | |
19173 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
19174 | # the same API. | |
b4e70030 JB |
19175 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
19176 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 19177 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
19178 | echo "$as_me:$LINENO: result: yes" >&5 |
19179 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19180 | |
19181 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19182 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 19183 | _ACEOF |
c906108c | 19184 | |
3483b318 | 19185 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 19186 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 19187 | |
b4e70030 JB |
19188 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
19189 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
19190 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
19191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19192 | else |
bec39cab | 19193 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 19194 | LIBS="-ldl $LIBS" |
bec39cab AC |
19195 | cat >conftest.$ac_ext <<_ACEOF |
19196 | /* confdefs.h. */ | |
19197 | _ACEOF | |
19198 | cat confdefs.h >>conftest.$ac_ext | |
19199 | cat >>conftest.$ac_ext <<_ACEOF | |
19200 | /* end confdefs.h. */ | |
19201 | ||
b4e70030 | 19202 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19203 | #ifdef __cplusplus |
19204 | extern "C" | |
19205 | #endif | |
b4e70030 JB |
19206 | /* We use char because int might match the return type of a gcc2 |
19207 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
19208 | char dlopen (); |
19209 | int | |
19210 | main () | |
19211 | { | |
b4e70030 | 19212 | dlopen (); |
bec39cab AC |
19213 | ; |
19214 | return 0; | |
19215 | } | |
19216 | _ACEOF | |
19217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19219 | (eval $ac_link) 2>conftest.er1 | |
19220 | ac_status=$? | |
19221 | grep -v '^ *+' conftest.er1 >conftest.err | |
19222 | rm -f conftest.er1 | |
19223 | cat conftest.err >&5 | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); } && | |
b4e70030 JB |
19226 | { ac_try='test -z "$ac_c_werror_flag" |
19227 | || test ! -s conftest.err' | |
bec39cab AC |
19228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19229 | (eval $ac_try) 2>&5 | |
19230 | ac_status=$? | |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19232 | (exit $ac_status); }; } && | |
19233 | { ac_try='test -s conftest$ac_exeext' | |
19234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19235 | (eval $ac_try) 2>&5 | |
19236 | ac_status=$? | |
19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19238 | (exit $ac_status); }; }; then | |
19239 | ac_cv_lib_dl_dlopen=yes | |
19240 | else | |
19241 | echo "$as_me: failed program was:" >&5 | |
19242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19243 | ||
b4e70030 | 19244 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
19245 | fi |
19246 | rm -f conftest.err conftest.$ac_objext \ | |
19247 | conftest$ac_exeext conftest.$ac_ext | |
19248 | LIBS=$ac_check_lib_save_LIBS | |
19249 | fi | |
b4e70030 JB |
19250 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
19251 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
19252 | if test $ac_cv_lib_dl_dlopen = yes; then |
19253 | cat >>confdefs.h <<_ACEOF | |
19254 | #define HAVE_LIBDL 1 | |
19255 | _ACEOF | |
c906108c SS |
19256 | |
19257 | LIBS="-ldl $LIBS" | |
19258 | ||
c906108c SS |
19259 | fi |
19260 | ||
19261 | if test "$GCC" = "yes" ; then | |
19262 | # The GNU linker requires the -export-dynamic option to make | |
19263 | # all symbols visible in the dynamic symbol table. | |
19264 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
19265 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
19266 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 19267 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
19268 | cat >conftest.$ac_ext <<_ACEOF |
19269 | /* confdefs.h. */ | |
19270 | _ACEOF | |
19271 | cat confdefs.h >>conftest.$ac_ext | |
19272 | cat >>conftest.$ac_ext <<_ACEOF | |
19273 | /* end confdefs.h. */ | |
c906108c | 19274 | |
bec39cab AC |
19275 | int |
19276 | main () | |
19277 | { | |
c906108c | 19278 | int i; |
bec39cab AC |
19279 | ; |
19280 | return 0; | |
19281 | } | |
19282 | _ACEOF | |
19283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19285 | (eval $ac_link) 2>conftest.er1 | |
19286 | ac_status=$? | |
19287 | grep -v '^ *+' conftest.er1 >conftest.err | |
19288 | rm -f conftest.er1 | |
19289 | cat conftest.err >&5 | |
19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19291 | (exit $ac_status); } && | |
b4e70030 JB |
19292 | { ac_try='test -z "$ac_c_werror_flag" |
19293 | || test ! -s conftest.err' | |
bec39cab AC |
19294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19295 | (eval $ac_try) 2>&5 | |
19296 | ac_status=$? | |
19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19298 | (exit $ac_status); }; } && | |
19299 | { ac_try='test -s conftest$ac_exeext' | |
19300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19301 | (eval $ac_try) 2>&5 | |
19302 | ac_status=$? | |
19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19304 | (exit $ac_status); }; }; then | |
c906108c SS |
19305 | found=yes |
19306 | else | |
bec39cab AC |
19307 | echo "$as_me: failed program was:" >&5 |
19308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19309 | ||
b4e70030 | 19310 | found=no |
c906108c | 19311 | fi |
bec39cab AC |
19312 | rm -f conftest.err conftest.$ac_objext \ |
19313 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 19314 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
19315 | echo "$as_me:$LINENO: result: $found" >&5 |
19316 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
19317 | if test $found = yes; then |
19318 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
19319 | fi | |
19320 | fi | |
19321 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
19322 | # at one point. | |
b4e70030 JB |
19323 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
19324 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
19325 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
19326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19327 | else |
bec39cab AC |
19328 | |
19329 | cat >conftest.$ac_ext <<_ACEOF | |
19330 | /* confdefs.h. */ | |
19331 | _ACEOF | |
19332 | cat confdefs.h >>conftest.$ac_ext | |
19333 | cat >>conftest.$ac_ext <<_ACEOF | |
19334 | /* end confdefs.h. */ | |
c906108c SS |
19335 | |
19336 | #include <proc_service.h> | |
19337 | ps_err_e ps_pdwrite | |
19338 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 19339 | |
bec39cab AC |
19340 | int |
19341 | main () | |
19342 | { | |
19343 | ||
19344 | ; | |
19345 | return 0; | |
19346 | } | |
19347 | _ACEOF | |
19348 | rm -f conftest.$ac_objext | |
19349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19350 | (eval $ac_compile) 2>conftest.er1 | |
19351 | ac_status=$? | |
19352 | grep -v '^ *+' conftest.er1 >conftest.err | |
19353 | rm -f conftest.er1 | |
19354 | cat conftest.err >&5 | |
19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19356 | (exit $ac_status); } && | |
b4e70030 JB |
19357 | { ac_try='test -z "$ac_c_werror_flag" |
19358 | || test ! -s conftest.err' | |
bec39cab AC |
19359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19360 | (eval $ac_try) 2>&5 | |
19361 | ac_status=$? | |
19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19363 | (exit $ac_status); }; } && | |
19364 | { ac_try='test -s conftest.$ac_objext' | |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; }; then | |
c906108c SS |
19370 | gdb_cv_proc_service_is_old=no |
19371 | else | |
bec39cab AC |
19372 | echo "$as_me: failed program was:" >&5 |
19373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19374 | ||
b4e70030 | 19375 | gdb_cv_proc_service_is_old=yes |
c906108c | 19376 | fi |
bec39cab AC |
19377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19378 | ||
c906108c SS |
19379 | fi |
19380 | ||
b4e70030 JB |
19381 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
19382 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 19383 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
19384 | |
19385 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19386 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 19387 | _ACEOF |
c906108c SS |
19388 | |
19389 | fi | |
19390 | else | |
b4e70030 JB |
19391 | echo "$as_me:$LINENO: result: no" >&5 |
19392 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19393 | fi |
19394 | ;; | |
d92419e5 | 19395 | aix*) |
b4e70030 JB |
19396 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
19397 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
19398 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
19399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19400 | else | |
19401 | cat >conftest.$ac_ext <<_ACEOF | |
19402 | /* confdefs.h. */ | |
19403 | _ACEOF | |
19404 | cat confdefs.h >>conftest.$ac_ext | |
19405 | cat >>conftest.$ac_ext <<_ACEOF | |
19406 | /* end confdefs.h. */ | |
d92419e5 | 19407 | #include <sys/pthdebug.h> |
bec39cab AC |
19408 | int |
19409 | main () | |
19410 | { | |
d92419e5 JB |
19411 | #ifndef PTHDB_VERSION_3 |
19412 | #error | |
19413 | #endif | |
bec39cab AC |
19414 | ; |
19415 | return 0; | |
19416 | } | |
19417 | _ACEOF | |
19418 | rm -f conftest.$ac_objext | |
19419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19420 | (eval $ac_compile) 2>conftest.er1 | |
19421 | ac_status=$? | |
19422 | grep -v '^ *+' conftest.er1 >conftest.err | |
19423 | rm -f conftest.er1 | |
19424 | cat conftest.err >&5 | |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19426 | (exit $ac_status); } && | |
b4e70030 JB |
19427 | { ac_try='test -z "$ac_c_werror_flag" |
19428 | || test ! -s conftest.err' | |
bec39cab AC |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest.$ac_objext' | |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
d92419e5 JB |
19440 | gdb_cv_have_aix_thread_debug=yes |
19441 | else | |
bec39cab AC |
19442 | echo "$as_me: failed program was:" >&5 |
19443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19444 | ||
b4e70030 | 19445 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 19446 | fi |
bec39cab | 19447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
19448 | fi |
19449 | ||
b4e70030 JB |
19450 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
19451 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
19452 | if test $gdb_cv_have_aix_thread_debug = yes; then |
19453 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 19454 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
19455 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
19456 | fi | |
19457 | ;; | |
c906108c | 19458 | esac |
bec39cab | 19459 | |
c906108c SS |
19460 | fi |
19461 | ||
3f47be5c | 19462 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
19463 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
19464 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
19465 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
19466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19467 | else | |
19468 | cat >conftest.$ac_ext <<_ACEOF | |
19469 | /* confdefs.h. */ | |
19470 | _ACEOF | |
19471 | cat confdefs.h >>conftest.$ac_ext | |
19472 | cat >>conftest.$ac_ext <<_ACEOF | |
19473 | /* end confdefs.h. */ | |
3f47be5c | 19474 | #include <thread_db.h> |
bec39cab AC |
19475 | int |
19476 | main () | |
19477 | { | |
3f47be5c | 19478 | int i = TD_NOTALLOC; |
bec39cab AC |
19479 | ; |
19480 | return 0; | |
19481 | } | |
19482 | _ACEOF | |
19483 | rm -f conftest.$ac_objext | |
19484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19485 | (eval $ac_compile) 2>conftest.er1 | |
19486 | ac_status=$? | |
19487 | grep -v '^ *+' conftest.er1 >conftest.err | |
19488 | rm -f conftest.er1 | |
19489 | cat conftest.err >&5 | |
19490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19491 | (exit $ac_status); } && | |
b4e70030 JB |
19492 | { ac_try='test -z "$ac_c_werror_flag" |
19493 | || test ! -s conftest.err' | |
bec39cab AC |
19494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19495 | (eval $ac_try) 2>&5 | |
19496 | ac_status=$? | |
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19498 | (exit $ac_status); }; } && | |
19499 | { ac_try='test -s conftest.$ac_objext' | |
19500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19501 | (eval $ac_try) 2>&5 | |
19502 | ac_status=$? | |
19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19504 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
19505 | gdb_cv_thread_db_h_has_td_notalloc=yes |
19506 | else | |
bec39cab AC |
19507 | echo "$as_me: failed program was:" >&5 |
19508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19509 | ||
b4e70030 | 19510 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 19511 | |
3f47be5c | 19512 | fi |
bec39cab | 19513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 19514 | |
bec39cab | 19515 | fi |
b4e70030 JB |
19516 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
19517 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
19518 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
19519 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
19520 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
19521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19522 | else | |
19523 | cat >conftest.$ac_ext <<_ACEOF | |
19524 | /* confdefs.h. */ | |
19525 | _ACEOF | |
19526 | cat confdefs.h >>conftest.$ac_ext | |
19527 | cat >>conftest.$ac_ext <<_ACEOF | |
19528 | /* end confdefs.h. */ | |
19529 | #include <thread_db.h> | |
19530 | int | |
19531 | main () | |
19532 | { | |
19533 | int i = TD_VERSION; | |
19534 | ; | |
19535 | return 0; | |
19536 | } | |
19537 | _ACEOF | |
19538 | rm -f conftest.$ac_objext | |
19539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19540 | (eval $ac_compile) 2>conftest.er1 | |
19541 | ac_status=$? | |
19542 | grep -v '^ *+' conftest.er1 >conftest.err | |
19543 | rm -f conftest.er1 | |
19544 | cat conftest.err >&5 | |
19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19546 | (exit $ac_status); } && | |
19547 | { ac_try='test -z "$ac_c_werror_flag" | |
19548 | || test ! -s conftest.err' | |
19549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19550 | (eval $ac_try) 2>&5 | |
19551 | ac_status=$? | |
19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19553 | (exit $ac_status); }; } && | |
19554 | { ac_try='test -s conftest.$ac_objext' | |
19555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19556 | (eval $ac_try) 2>&5 | |
19557 | ac_status=$? | |
19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19559 | (exit $ac_status); }; }; then | |
19560 | gdb_cv_thread_db_h_has_td_version=yes | |
19561 | else | |
19562 | echo "$as_me: failed program was:" >&5 | |
19563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19564 | ||
19565 | gdb_cv_thread_db_h_has_td_version=no | |
19566 | ||
19567 | fi | |
19568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19569 | ||
19570 | fi | |
19571 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
19572 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
19573 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
19574 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
19575 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
19576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19577 | else | |
19578 | cat >conftest.$ac_ext <<_ACEOF | |
19579 | /* confdefs.h. */ | |
19580 | _ACEOF | |
19581 | cat confdefs.h >>conftest.$ac_ext | |
19582 | cat >>conftest.$ac_ext <<_ACEOF | |
19583 | /* end confdefs.h. */ | |
19584 | #include <thread_db.h> | |
19585 | int | |
19586 | main () | |
19587 | { | |
19588 | int i = TD_NOTLS; | |
19589 | ; | |
19590 | return 0; | |
19591 | } | |
19592 | _ACEOF | |
19593 | rm -f conftest.$ac_objext | |
19594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19595 | (eval $ac_compile) 2>conftest.er1 | |
19596 | ac_status=$? | |
19597 | grep -v '^ *+' conftest.er1 >conftest.err | |
19598 | rm -f conftest.er1 | |
19599 | cat conftest.err >&5 | |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19601 | (exit $ac_status); } && | |
19602 | { ac_try='test -z "$ac_c_werror_flag" | |
19603 | || test ! -s conftest.err' | |
19604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19605 | (eval $ac_try) 2>&5 | |
19606 | ac_status=$? | |
19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19608 | (exit $ac_status); }; } && | |
19609 | { ac_try='test -s conftest.$ac_objext' | |
19610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19611 | (eval $ac_try) 2>&5 | |
19612 | ac_status=$? | |
19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19614 | (exit $ac_status); }; }; then | |
19615 | gdb_cv_thread_db_h_has_td_notls=yes | |
19616 | else | |
19617 | echo "$as_me: failed program was:" >&5 | |
19618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19619 | ||
19620 | gdb_cv_thread_db_h_has_td_notls=no | |
19621 | ||
19622 | fi | |
19623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19624 | ||
19625 | fi | |
19626 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
19627 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
19628 | fi |
19629 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
19630 | |
19631 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 19632 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 19633 | _ACEOF |
3f47be5c | 19634 | |
59f80f10 DJ |
19635 | fi |
19636 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
19637 | ||
19638 | cat >>confdefs.h <<\_ACEOF | |
19639 | #define THREAD_DB_HAS_TD_VERSION 1 | |
19640 | _ACEOF | |
19641 | ||
19642 | fi | |
19643 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
19644 | ||
19645 | cat >>confdefs.h <<\_ACEOF | |
19646 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
19647 | _ACEOF | |
19648 | ||
3f47be5c EZ |
19649 | fi |
19650 | ||
b757528f | 19651 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
19652 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
19653 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
19654 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
19655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19656 | else | |
19657 | cat >conftest.$ac_ext <<_ACEOF | |
19658 | /* confdefs.h. */ | |
19659 | _ACEOF | |
19660 | cat confdefs.h >>conftest.$ac_ext | |
19661 | cat >>conftest.$ac_ext <<_ACEOF | |
19662 | /* end confdefs.h. */ | |
b757528f | 19663 | #include <sys/syscall.h> |
bec39cab AC |
19664 | int |
19665 | main () | |
19666 | { | |
b757528f | 19667 | int i = __NR_tkill; |
bec39cab AC |
19668 | ; |
19669 | return 0; | |
19670 | } | |
19671 | _ACEOF | |
19672 | rm -f conftest.$ac_objext | |
19673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19674 | (eval $ac_compile) 2>conftest.er1 | |
19675 | ac_status=$? | |
19676 | grep -v '^ *+' conftest.er1 >conftest.err | |
19677 | rm -f conftest.er1 | |
19678 | cat conftest.err >&5 | |
19679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19680 | (exit $ac_status); } && | |
b4e70030 JB |
19681 | { ac_try='test -z "$ac_c_werror_flag" |
19682 | || test ! -s conftest.err' | |
bec39cab AC |
19683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19684 | (eval $ac_try) 2>&5 | |
19685 | ac_status=$? | |
19686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19687 | (exit $ac_status); }; } && | |
19688 | { ac_try='test -s conftest.$ac_objext' | |
19689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19690 | (eval $ac_try) 2>&5 | |
19691 | ac_status=$? | |
19692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19693 | (exit $ac_status); }; }; then | |
b757528f JJ |
19694 | gdb_cv_sys_syscall_h_has_tkill=yes |
19695 | else | |
bec39cab AC |
19696 | echo "$as_me: failed program was:" >&5 |
19697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19698 | ||
b4e70030 | 19699 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 19700 | |
b757528f | 19701 | fi |
bec39cab | 19702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 19703 | |
bec39cab | 19704 | fi |
b4e70030 JB |
19705 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
19706 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
19707 | fi |
19708 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
19709 | |
19710 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 19711 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 19712 | _ACEOF |
b757528f JJ |
19713 | |
19714 | fi | |
19715 | ||
10568435 JK |
19716 | echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5 |
19717 | echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6 | |
19718 | if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then | |
19719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19720 | else | |
19721 | cat >conftest.$ac_ext <<_ACEOF | |
19722 | /* confdefs.h. */ | |
19723 | _ACEOF | |
19724 | cat confdefs.h >>conftest.$ac_ext | |
19725 | cat >>conftest.$ac_ext <<_ACEOF | |
19726 | /* end confdefs.h. */ | |
19727 | #include <sys/personality.h> | |
19728 | ||
19729 | int | |
19730 | main () | |
19731 | { | |
19732 | #ifndef ADDR_NO_RANDOMIZE | |
19733 | char *p = (char *) ADDR_NO_RANDOMIZE; | |
19734 | #endif | |
19735 | ||
19736 | ; | |
19737 | return 0; | |
19738 | } | |
19739 | _ACEOF | |
19740 | rm -f conftest.$ac_objext | |
19741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19742 | (eval $ac_compile) 2>conftest.er1 | |
19743 | ac_status=$? | |
19744 | grep -v '^ *+' conftest.er1 >conftest.err | |
19745 | rm -f conftest.er1 | |
19746 | cat conftest.err >&5 | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); } && | |
19749 | { ac_try='test -z "$ac_c_werror_flag" | |
19750 | || test ! -s conftest.err' | |
19751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19752 | (eval $ac_try) 2>&5 | |
19753 | ac_status=$? | |
19754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19755 | (exit $ac_status); }; } && | |
19756 | { ac_try='test -s conftest.$ac_objext' | |
19757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19758 | (eval $ac_try) 2>&5 | |
19759 | ac_status=$? | |
19760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19761 | (exit $ac_status); }; }; then | |
19762 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes | |
19763 | else | |
19764 | echo "$as_me: failed program was:" >&5 | |
19765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19766 | ||
19767 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=no | |
19768 | fi | |
19769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19770 | fi | |
19771 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5 | |
19772 | echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6 | |
19773 | if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then | |
19774 | ||
19775 | cat >>confdefs.h <<_ACEOF | |
19776 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 1 | |
19777 | _ACEOF | |
19778 | ||
19779 | ||
19780 | else | |
19781 | cat >>confdefs.h <<_ACEOF | |
19782 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 0 | |
19783 | _ACEOF | |
19784 | ||
19785 | ||
19786 | fi | |
19787 | ||
19788 | ||
19789 | ||
19790 | if test "$cross_compiling" = yes; then | |
19791 | cat >conftest.$ac_ext <<_ACEOF | |
19792 | /* confdefs.h. */ | |
19793 | _ACEOF | |
19794 | cat confdefs.h >>conftest.$ac_ext | |
19795 | cat >>conftest.$ac_ext <<_ACEOF | |
19796 | /* end confdefs.h. */ | |
19797 | #include <sys/personality.h> | |
19798 | int | |
19799 | main () | |
19800 | { | |
19801 | ||
19802 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
19803 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
19804 | # endif | |
19805 | /* Test the flag could be set and stays set. */ | |
19806 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
19807 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
19808 | return 1 | |
19809 | ; | |
19810 | return 0; | |
19811 | } | |
19812 | _ACEOF | |
19813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19815 | (eval $ac_link) 2>conftest.er1 | |
19816 | ac_status=$? | |
19817 | grep -v '^ *+' conftest.er1 >conftest.err | |
19818 | rm -f conftest.er1 | |
19819 | cat conftest.err >&5 | |
19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19821 | (exit $ac_status); } && | |
19822 | { ac_try='test -z "$ac_c_werror_flag" | |
19823 | || test ! -s conftest.err' | |
19824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19825 | (eval $ac_try) 2>&5 | |
19826 | ac_status=$? | |
19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19828 | (exit $ac_status); }; } && | |
19829 | { ac_try='test -s conftest$ac_exeext' | |
19830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19831 | (eval $ac_try) 2>&5 | |
19832 | ac_status=$? | |
19833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19834 | (exit $ac_status); }; }; then | |
19835 | have_personality=true | |
19836 | else | |
19837 | echo "$as_me: failed program was:" >&5 | |
19838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19839 | ||
19840 | have_personality=false | |
19841 | fi | |
19842 | rm -f conftest.err conftest.$ac_objext \ | |
19843 | conftest$ac_exeext conftest.$ac_ext | |
19844 | else | |
19845 | cat >conftest.$ac_ext <<_ACEOF | |
19846 | /* confdefs.h. */ | |
19847 | _ACEOF | |
19848 | cat confdefs.h >>conftest.$ac_ext | |
19849 | cat >>conftest.$ac_ext <<_ACEOF | |
19850 | /* end confdefs.h. */ | |
19851 | #include <sys/personality.h> | |
19852 | int | |
19853 | main () | |
19854 | { | |
19855 | ||
19856 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
19857 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
19858 | # endif | |
19859 | /* Test the flag could be set and stays set. */ | |
19860 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
19861 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
19862 | return 1 | |
19863 | ; | |
19864 | return 0; | |
19865 | } | |
19866 | _ACEOF | |
19867 | rm -f conftest$ac_exeext | |
19868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19869 | (eval $ac_link) 2>&5 | |
19870 | ac_status=$? | |
19871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19872 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19874 | (eval $ac_try) 2>&5 | |
19875 | ac_status=$? | |
19876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19877 | (exit $ac_status); }; }; then | |
19878 | have_personality=true | |
19879 | else | |
19880 | echo "$as_me: program exited with status $ac_status" >&5 | |
19881 | echo "$as_me: failed program was:" >&5 | |
19882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19883 | ||
19884 | ( exit $ac_status ) | |
19885 | have_personality=false | |
19886 | fi | |
19887 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19888 | fi | |
19889 | if $have_personality | |
19890 | then | |
19891 | ||
19892 | cat >>confdefs.h <<\_ACEOF | |
19893 | #define HAVE_PERSONALITY 1 | |
19894 | _ACEOF | |
19895 | ||
19896 | fi | |
19897 | ||
fb40c209 | 19898 | |
bec39cab | 19899 | |
b4e70030 | 19900 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 19901 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
19902 | withval="$with_sysroot" |
19903 | ||
030292b7 | 19904 | case ${with_sysroot} in |
715d1656 | 19905 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
19906 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
19907 | esac | |
19908 | ||
19909 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
19910 | ||
07abfebf RS |
19911 | if test "x$prefix" = xNONE; then |
19912 | test_prefix=/usr/local | |
19913 | else | |
19914 | test_prefix=$prefix | |
19915 | fi | |
aa28a74e | 19916 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 19917 | test_exec_prefix=$test_prefix |
030292b7 | 19918 | else |
07abfebf | 19919 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
19920 | fi |
19921 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 19922 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
19923 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
19924 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 19925 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
19926 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
19927 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
19928 | ;; | |
19929 | esac | |
19930 | ||
19931 | else | |
bec39cab | 19932 | |
030292b7 DJ |
19933 | TARGET_SYSTEM_ROOT= |
19934 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
19935 | ||
b4e70030 | 19936 | fi; |
030292b7 DJ |
19937 | |
19938 | ||
19939 | ||
16e7150e JG |
19940 | system_gdbinit= |
19941 | ||
19942 | # Check whether --with-system-gdbinit or --without-system-gdbinit was given. | |
19943 | if test "${with_system_gdbinit+set}" = set; then | |
19944 | withval="$with_system_gdbinit" | |
19945 | system_gdbinit=${withval} | |
19946 | fi; | |
19947 | ||
19948 | ||
19949 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
19950 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19951 | ac_define_dir=`eval echo $system_gdbinit` | |
19952 | ac_define_dir=`eval echo $ac_define_dir` | |
19953 | ||
19954 | cat >>confdefs.h <<_ACEOF | |
19955 | #define SYSTEM_GDBINIT "$ac_define_dir" | |
19956 | _ACEOF | |
19957 | ||
19958 | ||
19959 | ||
19960 | if test "x$prefix" = xNONE; then | |
19961 | test_prefix=$ac_default_prefix | |
19962 | else | |
19963 | test_prefix=$prefix | |
19964 | fi | |
19965 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then | |
19966 | test_exec_prefix=$test_prefix | |
19967 | else | |
19968 | test_exec_prefix=$exec_prefix | |
19969 | fi | |
19970 | case ${system_gdbinit} in | |
19971 | "${test_prefix}"|"${test_prefix}/"*|\ | |
19972 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
19973 | '${prefix}'|'${prefix}/'*|\ | |
19974 | '${exec_prefix}'|'${exec_prefix}/'*) | |
19975 | ||
19976 | cat >>confdefs.h <<\_ACEOF | |
19977 | #define SYSTEM_GDBINIT_RELOCATABLE 1 | |
19978 | _ACEOF | |
19979 | ||
19980 | ;; | |
19981 | esac | |
19982 | ||
b4e70030 | 19983 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 19984 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
19985 | enableval="$enable_werror" |
19986 | case "${enableval}" in | |
094a342e MK |
19987 | yes | y) ERROR_ON_WARNING="yes" ;; |
19988 | no | n) ERROR_ON_WARNING="no" ;; | |
19989 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
19990 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
19991 | { (exit 1); exit 1; }; } ;; | |
19992 | esac | |
b4e70030 | 19993 | fi; |
094a342e MK |
19994 | |
19995 | # Enable -Werror by default when using gcc | |
19996 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
19997 | ERROR_ON_WARNING=yes | |
19998 | fi | |
19999 | ||
20000 | WERROR_CFLAGS="" | |
20001 | if test "${ERROR_ON_WARNING}" = yes ; then | |
20002 | WERROR_CFLAGS="-Werror" | |
20003 | fi | |
20004 | ||
aa79a185 DJ |
20005 | # The entries after -Wno-pointer-sign are disabled warnings which may |
20006 | # be enabled in the future, which can not currently be used to build | |
20007 | # GDB. | |
20008 | # NOTE: If you change this list, remember to update | |
3b851bce | 20009 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
20010 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
20011 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 20012 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 20013 | |
3526781e DJ |
20014 | # Enable -Wno-format by default when using gcc on mingw since many |
20015 | # GCC versions complain about %I64. | |
20016 | case "${host}" in | |
20017 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
20018 | esac | |
20019 | ||
b4e70030 | 20020 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 20021 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
20022 | enableval="$enable_build_warnings" |
20023 | case "${enableval}" in | |
c906108c SS |
20024 | yes) ;; |
20025 | no) build_warnings="-w";; | |
20026 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20027 | build_warnings="${build_warnings} ${t}";; | |
20028 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20029 | build_warnings="${t} ${build_warnings}";; | |
20030 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20031 | esac | |
d4f3574e | 20032 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 20033 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 20034 | fi |
b4e70030 | 20035 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 20036 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
20037 | enableval="$enable_gdb_build_warnings" |
20038 | case "${enableval}" in | |
3b851bce AC |
20039 | yes) ;; |
20040 | no) build_warnings="-w";; | |
20041 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20042 | build_warnings="${build_warnings} ${t}";; | |
20043 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20044 | build_warnings="${t} ${build_warnings}";; | |
20045 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20046 | esac | |
20047 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
20048 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
20049 | fi | |
b4e70030 | 20050 | fi; WARN_CFLAGS="" |
c906108c SS |
20051 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
20052 | then | |
b4e70030 JB |
20053 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
20054 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
20055 | # Separate out the -Werror flag as some files just cannot be |
20056 | # compiled with it enabled. | |
20057 | for w in ${build_warnings}; do | |
20058 | case $w in | |
20059 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
20060 | *) # Check that GCC accepts it | |
4536bbc6 AC |
20061 | saved_CFLAGS="$CFLAGS" |
20062 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
20063 | cat >conftest.$ac_ext <<_ACEOF |
20064 | /* confdefs.h. */ | |
20065 | _ACEOF | |
20066 | cat confdefs.h >>conftest.$ac_ext | |
20067 | cat >>conftest.$ac_ext <<_ACEOF | |
20068 | /* end confdefs.h. */ | |
4536bbc6 | 20069 | |
bec39cab AC |
20070 | int |
20071 | main () | |
20072 | { | |
4536bbc6 | 20073 | |
bec39cab AC |
20074 | ; |
20075 | return 0; | |
20076 | } | |
20077 | _ACEOF | |
20078 | rm -f conftest.$ac_objext | |
20079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20080 | (eval $ac_compile) 2>conftest.er1 | |
20081 | ac_status=$? | |
20082 | grep -v '^ *+' conftest.er1 >conftest.err | |
20083 | rm -f conftest.er1 | |
20084 | cat conftest.err >&5 | |
20085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20086 | (exit $ac_status); } && | |
b4e70030 JB |
20087 | { ac_try='test -z "$ac_c_werror_flag" |
20088 | || test ! -s conftest.err' | |
bec39cab AC |
20089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20090 | (eval $ac_try) 2>&5 | |
20091 | ac_status=$? | |
20092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20093 | (exit $ac_status); }; } && | |
20094 | { ac_try='test -s conftest.$ac_objext' | |
20095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20096 | (eval $ac_try) 2>&5 | |
20097 | ac_status=$? | |
20098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20099 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
20100 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
20101 | else | |
bec39cab AC |
20102 | echo "$as_me: failed program was:" >&5 |
20103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20104 | ||
4536bbc6 | 20105 | fi |
bec39cab | 20106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 20107 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
20108 | esac |
20109 | done | |
aa79a185 DJ |
20110 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
20111 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
20112 | fi |
20113 | ||
20114 | ||
104c1213 | 20115 | |
7a292a7a | 20116 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
20117 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
20118 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
20119 | if test "${gdb_cv_os_cygwin+set}" = set; then |
20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20121 | else | |
20122 | cat >conftest.$ac_ext <<_ACEOF | |
20123 | /* confdefs.h. */ | |
20124 | _ACEOF | |
20125 | cat confdefs.h >>conftest.$ac_ext | |
20126 | cat >>conftest.$ac_ext <<_ACEOF | |
20127 | /* end confdefs.h. */ | |
7a292a7a SS |
20128 | |
20129 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
20130 | lose | |
20131 | #endif | |
bec39cab | 20132 | _ACEOF |
7a292a7a | 20133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 20134 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
20135 | gdb_cv_os_cygwin=yes |
20136 | else | |
7a292a7a SS |
20137 | gdb_cv_os_cygwin=no |
20138 | fi | |
20139 | rm -f conftest* | |
20140 | ||
20141 | fi | |
b4e70030 JB |
20142 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
20143 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 20144 | |
aff38e61 | 20145 | |
3eb25fda | 20146 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 20147 | case ${host} in |
95cbc983 AC |
20148 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
20149 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 20150 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
20151 | esac |
20152 | ||
20153 | ||
cd0fc7c3 SS |
20154 | # libreadline needs libuser32.a in a cygwin environment |
20155 | WIN32LIBS= | |
20156 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
20157 | WIN32LIBS="-luser32" |
20158 | case "${target}" in | |
20159 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
20160 | ;; | |
20161 | esac | |
cd0fc7c3 | 20162 | fi |
c906108c | 20163 | |
b4505029 MM |
20164 | # The ser-tcp.c module requires sockets. |
20165 | case ${host} in | |
20166 | *mingw32*) | |
20167 | ||
20168 | cat >>confdefs.h <<\_ACEOF | |
20169 | #define USE_WIN32API 1 | |
20170 | _ACEOF | |
20171 | ||
20172 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
20173 | ;; | |
20174 | esac | |
20175 | ||
7a292a7a | 20176 | |
31d99776 DJ |
20177 | # Add ELF support to GDB, but only if BFD includes ELF support. |
20178 | OLD_CFLAGS=$CFLAGS | |
20179 | OLD_LDFLAGS=$LDFLAGS | |
20180 | OLD_LIBS=$LIBS | |
cab58a69 | 20181 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 | 20182 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
7b3200f9 | 20183 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
0f72fb1c | 20184 | LIBS="-lbfd -liberty $intl $LIBS" |
31d99776 DJ |
20185 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
20186 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
20187 | if test "${gdb_cv_var_elf+set}" = set; then | |
20188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20189 | else | |
20190 | cat >conftest.$ac_ext <<_ACEOF | |
20191 | /* confdefs.h. */ | |
20192 | _ACEOF | |
20193 | cat confdefs.h >>conftest.$ac_ext | |
20194 | cat >>conftest.$ac_ext <<_ACEOF | |
20195 | /* end confdefs.h. */ | |
20196 | #include <stdlib.h> | |
20197 | #include "bfd.h" | |
20198 | #include "elf-bfd.h" | |
20199 | ||
20200 | int | |
20201 | main () | |
20202 | { | |
20203 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
20204 | ; | |
20205 | return 0; | |
20206 | } | |
20207 | _ACEOF | |
20208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20210 | (eval $ac_link) 2>conftest.er1 | |
20211 | ac_status=$? | |
20212 | grep -v '^ *+' conftest.er1 >conftest.err | |
20213 | rm -f conftest.er1 | |
20214 | cat conftest.err >&5 | |
20215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20216 | (exit $ac_status); } && | |
20217 | { ac_try='test -z "$ac_c_werror_flag" | |
20218 | || test ! -s conftest.err' | |
20219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20220 | (eval $ac_try) 2>&5 | |
20221 | ac_status=$? | |
20222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20223 | (exit $ac_status); }; } && | |
20224 | { ac_try='test -s conftest$ac_exeext' | |
20225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20226 | (eval $ac_try) 2>&5 | |
20227 | ac_status=$? | |
20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20229 | (exit $ac_status); }; }; then | |
20230 | gdb_cv_var_elf=yes | |
20231 | else | |
20232 | echo "$as_me: failed program was:" >&5 | |
20233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20234 | ||
20235 | gdb_cv_var_elf=no | |
20236 | fi | |
20237 | rm -f conftest.err conftest.$ac_objext \ | |
20238 | conftest$ac_exeext conftest.$ac_ext | |
20239 | fi | |
20240 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
20241 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
20242 | if test $gdb_cv_var_elf = yes; then | |
20243 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
20244 | ||
20245 | cat >>confdefs.h <<\_ACEOF | |
20246 | #define HAVE_ELF 1 | |
20247 | _ACEOF | |
20248 | ||
20249 | fi | |
20250 | CFLAGS=$OLD_CFLAGS | |
20251 | LDFLAGS=$OLD_LDFLAGS | |
20252 | LIBS=$OLD_LIBS | |
20253 | ||
121ce6e5 DJ |
20254 | # Add any host-specific objects to GDB. |
20255 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
20256 | ||
3fc11d3e JM |
20257 | LIBGUI="../libgui/src/libgui.a" |
20258 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
20259 | ||
20260 | ||
7a292a7a | 20261 | |
3fc11d3e JM |
20262 | WIN32LDAPP= |
20263 | ||
20264 | ||
20265 | ||
d91670b9 | 20266 | case "${host}" in |
686a5eed | 20267 | *-*-cygwin* | *-*-mingw* ) |
d91670b9 CV |
20268 | configdir="win" |
20269 | ;; | |
20270 | *) | |
20271 | configdir="unix" | |
20272 | ;; | |
20273 | esac | |
3fc11d3e JM |
20274 | |
20275 | GDBTKLIBS= | |
20276 | if test "${enable_gdbtk}" = "yes"; then | |
20277 | ||
d1c3b63a KS |
20278 | # Gdbtk must have an absolute path to srcdir in order to run |
20279 | # properly when not installed. | |
20280 | here=`pwd` | |
20281 | cd ${srcdir} | |
20282 | GDBTK_SRC_DIR=`pwd` | |
20283 | cd $here | |
20284 | ||
bec39cab | 20285 | |
5062cc19 KS |
20286 | # |
20287 | # Ok, lets find the tcl configuration | |
20288 | # First, look for one uninstalled. | |
20289 | # the alternative search directory is invoked by --with-tcl | |
20290 | # | |
3fc11d3e | 20291 | |
5062cc19 KS |
20292 | if test x"${no_tcl}" = x ; then |
20293 | # we reset no_tcl in case something fails here | |
20294 | no_tcl=true | |
bec39cab | 20295 | |
5062cc19 KS |
20296 | # Check whether --with-tcl or --without-tcl was given. |
20297 | if test "${with_tcl+set}" = set; then | |
20298 | withval="$with_tcl" | |
b4e70030 JB |
20299 | with_tclconfig=${withval} |
20300 | fi; | |
5062cc19 | 20301 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
b4e70030 | 20302 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
5062cc19 | 20303 | if test "${ac_cv_c_tclconfig+set}" = set; then |
bec39cab | 20304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3fc11d3e | 20305 | else |
bec39cab | 20306 | |
3fc11d3e | 20307 | |
5062cc19 KS |
20308 | # First check to see if --with-tcl was specified. |
20309 | case "${host}" in | |
20310 | *-*-cygwin*) platDir="win" ;; | |
20311 | *) platDir="unix" ;; | |
20312 | esac | |
20313 | if test x"${with_tclconfig}" != x ; then | |
20314 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
20315 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
20316 | else | |
20317 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 | |
bec39cab AC |
20318 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
20319 | { (exit 1); exit 1; }; } | |
5062cc19 KS |
20320 | fi |
20321 | fi | |
20322 | ||
20323 | # then check for a private Tcl installation | |
20324 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20325 | for i in \ | |
20326 | ../tcl \ | |
20327 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20328 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ | |
20329 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ | |
20330 | ../../tcl \ | |
20331 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20332 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ | |
20333 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ | |
20334 | ../../../tcl \ | |
20335 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20336 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ | |
20337 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
20338 | if test -f "$i/$platDir/tclConfig.sh" ; then | |
20339 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
20340 | break | |
20341 | fi | |
20342 | done | |
20343 | fi | |
20344 | ||
20345 | # on Darwin, check in Framework installation locations | |
20346 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then | |
20347 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
20348 | `ls -d /Library/Frameworks 2>/dev/null` \ | |
20349 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
20350 | `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
20351 | ; do | |
20352 | if test -f "$i/Tcl.framework/tclConfig.sh" ; then | |
20353 | ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` | |
20354 | break | |
20355 | fi | |
20356 | done | |
20357 | fi | |
20358 | ||
20359 | # check in a few common install locations | |
20360 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20361 | for i in `ls -d ${libdir} 2>/dev/null` \ | |
20362 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
20363 | `ls -d ${prefix}/lib 2>/dev/null` \ | |
20364 | `ls -d /usr/local/lib 2>/dev/null` \ | |
20365 | `ls -d /usr/contrib/lib 2>/dev/null` \ | |
20366 | `ls -d /usr/lib 2>/dev/null` \ | |
20367 | ; do | |
20368 | if test -f "$i/tclConfig.sh" ; then | |
20369 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
20370 | break | |
20371 | fi | |
20372 | done | |
20373 | fi | |
3fc11d3e | 20374 | |
5062cc19 KS |
20375 | # check in a few other private locations |
20376 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20377 | for i in \ | |
20378 | ${srcdir}/../tcl \ | |
20379 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20380 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ | |
20381 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do | |
20382 | if test -f "$i/$platDir/tclConfig.sh" ; then | |
20383 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` | |
20384 | break | |
20385 | fi | |
20386 | done | |
20387 | fi | |
bec39cab | 20388 | |
3fc11d3e JM |
20389 | fi |
20390 | ||
5062cc19 KS |
20391 | |
20392 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20393 | TCL_BIN_DIR="# no Tcl configs found" | |
20394 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 | |
bec39cab | 20395 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
5062cc19 KS |
20396 | else |
20397 | no_tcl= | |
20398 | TCL_BIN_DIR=${ac_cv_c_tclconfig} | |
20399 | echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
20400 | echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 | |
20401 | fi | |
20402 | fi | |
3fc11d3e | 20403 | |
bec39cab | 20404 | |
85541719 DE |
20405 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
20406 | # point to doing Tcl. | |
bec39cab | 20407 | |
5062cc19 KS |
20408 | # |
20409 | # Ok, lets find the tk configuration | |
20410 | # First, look for one uninstalled. | |
20411 | # the alternative search directory is invoked by --with-tk | |
20412 | # | |
3fc11d3e | 20413 | |
5062cc19 KS |
20414 | if test x"${no_tk}" = x ; then |
20415 | # we reset no_tk in case something fails here | |
20416 | no_tk=true | |
bec39cab | 20417 | |
5062cc19 KS |
20418 | # Check whether --with-tk or --without-tk was given. |
20419 | if test "${with_tk+set}" = set; then | |
20420 | withval="$with_tk" | |
20421 | with_tkconfig=${withval} | |
b4e70030 | 20422 | fi; |
5062cc19 KS |
20423 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
20424 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
20425 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
bec39cab AC |
20426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20427 | else | |
3fc11d3e JM |
20428 | |
20429 | ||
5062cc19 KS |
20430 | # First check to see if --with-tkconfig was specified. |
20431 | if test x"${with_tkconfig}" != x ; then | |
20432 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
20433 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
20434 | else | |
20435 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 | |
20436 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
bec39cab | 20437 | { (exit 1); exit 1; }; } |
5062cc19 KS |
20438 | fi |
20439 | fi | |
3fc11d3e | 20440 | |
5062cc19 KS |
20441 | # then check for a private Tk library |
20442 | case "${host}" in | |
20443 | *-*-cygwin*) platDir="win" ;; | |
20444 | *) platDir="unix" ;; | |
20445 | esac | |
20446 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20447 | for i in \ | |
20448 | ../tk \ | |
20449 | `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20450 | `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ | |
20451 | `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ | |
20452 | ../../tk \ | |
20453 | `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20454 | `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ | |
20455 | `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ | |
20456 | ../../../tk \ | |
20457 | `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20458 | `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ | |
20459 | `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do | |
20460 | if test -f "$i/$platDir/tkConfig.sh" ; then | |
20461 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
20462 | break | |
20463 | fi | |
20464 | done | |
20465 | fi | |
20466 | ||
20467 | # on Darwin, check in Framework installation locations | |
20468 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then | |
20469 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ | |
20470 | `ls -d /Library/Frameworks 2>/dev/null` \ | |
20471 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ | |
20472 | `ls -d /System/Library/Frameworks 2>/dev/null` \ | |
20473 | ; do | |
20474 | if test -f "$i/Tk.framework/tkConfig.sh" ; then | |
20475 | ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` | |
20476 | break | |
20477 | fi | |
20478 | done | |
20479 | fi | |
20480 | ||
20481 | # check in a few common install locations | |
20482 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20483 | for i in `ls -d ${libdir} 2>/dev/null` \ | |
20484 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ | |
20485 | `ls -d ${prefix}/lib 2>/dev/null` \ | |
20486 | `ls -d /usr/local/lib 2>/dev/null` \ | |
20487 | `ls -d /usr/contrib/lib 2>/dev/null` \ | |
20488 | `ls -d /usr/lib 2>/dev/null` \ | |
20489 | ; do | |
20490 | if test -f "$i/tkConfig.sh" ; then | |
20491 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
20492 | break | |
20493 | fi | |
20494 | done | |
20495 | fi | |
20496 | # check in a few other private locations | |
20497 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20498 | for i in \ | |
20499 | ${srcdir}/../tk \ | |
20500 | `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ | |
20501 | `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ | |
20502 | `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do | |
20503 | if test -f "$i/$platDir/tkConfig.sh" ; then | |
20504 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` | |
20505 | break | |
20506 | fi | |
20507 | done | |
20508 | fi | |
3fc11d3e | 20509 | |
3fc11d3e JM |
20510 | fi |
20511 | ||
20512 | ||
5062cc19 KS |
20513 | if test x"${ac_cv_c_tkconfig}" = x ; then |
20514 | TK_BIN_DIR="# no Tk configs found" | |
20515 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 | |
20516 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
5062cc19 KS |
20517 | else |
20518 | no_tk= | |
20519 | TK_BIN_DIR=${ac_cv_c_tkconfig} | |
20520 | echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 | |
20521 | echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6 | |
20522 | fi | |
3fc11d3e | 20523 | fi |
dd2504ab | 20524 | |
dd2504ab | 20525 | |
85541719 DE |
20526 | if test -z "${no_tcl}" -a -z "${no_tk}"; then |
20527 | ||
20528 | echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
20529 | echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 | |
20530 | ||
20531 | if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then | |
20532 | echo "$as_me:$LINENO: result: loading" >&5 | |
20533 | echo "${ECHO_T}loading" >&6 | |
20534 | . ${TCL_BIN_DIR}/tclConfig.sh | |
20535 | else | |
20536 | echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 | |
20537 | echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 | |
20538 | fi | |
20539 | ||
20540 | # eval is required to do the TCL_DBGX substitution | |
20541 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" | |
20542 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" | |
20543 | ||
20544 | # If the TCL_BIN_DIR is the build directory (not the install directory), | |
20545 | # then set the common variable name to the value of the build variables. | |
20546 | # For example, the variable TCL_LIB_SPEC will be set to the value | |
20547 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC | |
20548 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an | |
20549 | # installed and uninstalled version of Tcl. | |
20550 | if test -f "${TCL_BIN_DIR}/Makefile" ; then | |
20551 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} | |
20552 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} | |
20553 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} | |
20554 | elif test "`uname -s`" = "Darwin"; then | |
20555 | # If Tcl was built as a framework, attempt to use the libraries | |
20556 | # from the framework at the given location so that linking works | |
20557 | # against Tcl.framework installed in an arbitary location. | |
20558 | case ${TCL_DEFS} in | |
20559 | *TCL_FRAMEWORK*) | |
20560 | if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then | |
20561 | for i in "`cd ${TCL_BIN_DIR}; pwd`" \ | |
20562 | "`cd ${TCL_BIN_DIR}/../..; pwd`"; do | |
20563 | if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then | |
20564 | TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" | |
20565 | break | |
20566 | fi | |
20567 | done | |
20568 | fi | |
20569 | if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then | |
20570 | TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" | |
20571 | TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" | |
20572 | fi | |
20573 | ;; | |
20574 | esac | |
20575 | fi | |
20576 | ||
20577 | # eval is required to do the TCL_DBGX substitution | |
20578 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" | |
20579 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" | |
20580 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" | |
20581 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" | |
20582 | ||
20583 | ||
20584 | ||
20585 | ||
20586 | ||
20587 | ||
20588 | ||
20589 | ||
20590 | ||
20591 | ||
20592 | ||
20593 | ||
20594 | ||
20595 | ||
20596 | ||
20597 | # Check for in-tree tcl | |
20598 | here=`pwd` | |
20599 | cd ${srcdir}/.. | |
20600 | topdir=`pwd` | |
20601 | cd ${here} | |
20602 | ||
20603 | intree="no" | |
20604 | if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then | |
20605 | intree="yes" | |
20606 | fi | |
20607 | ||
20608 | # Find Tcl private headers | |
20609 | if test x"${intree}" = xno; then | |
20610 | ||
20611 | echo "$as_me:$LINENO: checking for Tcl private headers" >&5 | |
20612 | echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6 | |
20613 | private_dir="" | |
20614 | dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//` | |
20615 | if test -f ${dir}/tclInt.h ; then | |
20616 | private_dir=${dir} | |
20617 | fi | |
20618 | ||
20619 | if test x"${private_dir}" = x; then | |
20620 | { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5 | |
20621 | echo "$as_me: error: could not find private Tcl headers" >&2;} | |
20622 | { (exit 1); exit 1; }; } | |
20623 | else | |
20624 | TCL_PRIVATE_INCLUDE="-I${private_dir}" | |
20625 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 | |
20626 | echo "${ECHO_T}${private_dir}" >&6 | |
20627 | fi | |
20628 | ||
20629 | TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}" | |
20630 | TCL_LIBRARY="${TCL_LIB_SPEC}" | |
20631 | TCL_DEPS="" | |
20632 | else | |
20633 | # If building tcl in the same src tree, private headers | |
20634 | # are not needed, but we need to be sure to use the right | |
20635 | # headers library | |
20636 | TCL_INCLUDE="-I${TCL_SRC_DIR}/generic" | |
20637 | TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}" | |
20638 | TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}" | |
20639 | fi | |
20640 | ||
20641 | ||
20642 | ||
20643 | ||
20644 | ||
5062cc19 KS |
20645 | echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 |
20646 | echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6 | |
dd2504ab | 20647 | |
5062cc19 KS |
20648 | if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then |
20649 | echo "$as_me:$LINENO: result: loading" >&5 | |
20650 | echo "${ECHO_T}loading" >&6 | |
20651 | . ${TK_BIN_DIR}/tkConfig.sh | |
3fc11d3e | 20652 | else |
5062cc19 KS |
20653 | echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 |
20654 | echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6 | |
3fc11d3e | 20655 | fi |
bec39cab | 20656 | |
5062cc19 KS |
20657 | # eval is required to do the TK_DBGX substitution |
20658 | eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" | |
20659 | eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" | |
20660 | ||
20661 | # If the TK_BIN_DIR is the build directory (not the install directory), | |
20662 | # then set the common variable name to the value of the build variables. | |
20663 | # For example, the variable TK_LIB_SPEC will be set to the value | |
20664 | # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC | |
20665 | # instead of TK_BUILD_LIB_SPEC since it will work with both an | |
20666 | # installed and uninstalled version of Tcl. | |
85541719 | 20667 | if test -f "${TK_BIN_DIR}/Makefile" ; then |
5062cc19 KS |
20668 | TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} |
20669 | TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} | |
20670 | TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} | |
20671 | elif test "`uname -s`" = "Darwin"; then | |
20672 | # If Tk was built as a framework, attempt to use the libraries | |
20673 | # from the framework at the given location so that linking works | |
20674 | # against Tk.framework installed in an arbitary location. | |
20675 | case ${TK_DEFS} in | |
20676 | *TK_FRAMEWORK*) | |
85541719 | 20677 | if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then |
5062cc19 KS |
20678 | for i in "`cd ${TK_BIN_DIR}; pwd`" \ |
20679 | "`cd ${TK_BIN_DIR}/../..; pwd`"; do | |
20680 | if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then | |
20681 | TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" | |
20682 | break | |
20683 | fi | |
20684 | done | |
20685 | fi | |
85541719 | 20686 | if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then |
5062cc19 KS |
20687 | TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" |
20688 | TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" | |
20689 | fi | |
20690 | ;; | |
20691 | esac | |
3fc11d3e JM |
20692 | fi |
20693 | ||
5062cc19 KS |
20694 | # eval is required to do the TK_DBGX substitution |
20695 | eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" | |
20696 | eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" | |
20697 | eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" | |
20698 | eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" | |
3fc11d3e | 20699 | |
3fc11d3e JM |
20700 | |
20701 | ||
bec39cab AC |
20702 | |
20703 | ||
20704 | ||
20705 | ||
20706 | ||
20707 | ||
20708 | ||
3fc11d3e | 20709 | |
3fc11d3e | 20710 | |
bec39cab | 20711 | |
bec39cab | 20712 | |
85541719 DE |
20713 | # Check for in-tree Tk |
20714 | intree="no" | |
20715 | if test "${TK_SRC_DIR}" = "${topdir}/tk"; then | |
20716 | intree="yes" | |
20717 | fi | |
3fc11d3e | 20718 | |
85541719 DE |
20719 | # Find Tk private headers |
20720 | if test x"${intree}" = xno; then | |
3fc11d3e | 20721 | |
5062cc19 KS |
20722 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
20723 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
20724 | private_dir="" | |
20725 | dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//` | |
20726 | if test -f ${dir}/tkInt.h; then | |
20727 | private_dir=${dir} | |
3fc11d3e | 20728 | fi |
bec39cab | 20729 | |
5062cc19 KS |
20730 | if test x"${private_dir}" = x; then |
20731 | { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5 | |
20732 | echo "$as_me: error: could not find Tk private headers" >&2;} | |
20733 | { (exit 1); exit 1; }; } | |
3fc11d3e | 20734 | else |
5062cc19 KS |
20735 | TK_PRIVATE_INCLUDE="-I${private_dir}" |
20736 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 | |
20737 | echo "${ECHO_T}${private_dir}" >&6 | |
3fc11d3e | 20738 | fi |
3fc11d3e | 20739 | |
85541719 DE |
20740 | TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}" |
20741 | TK_LIBRARY=${TK_LIB_SPEC} | |
20742 | TK_DEPS="" | |
20743 | else | |
20744 | TK_INCLUDE="-I${TK_SRC_DIR}/generic" | |
20745 | TK_LIBRARY="${TK_BUILD_LIB_SPEC}" | |
20746 | TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}" | |
20747 | fi | |
3fc11d3e JM |
20748 | |
20749 | ||
3fc11d3e JM |
20750 | |
20751 | ||
3fc11d3e | 20752 | |
85541719 | 20753 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e | 20754 | |
85541719 DE |
20755 | # Include some libraries that Tcl and Tk want. |
20756 | TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' | |
20757 | # Yes, the ordering seems wrong here. But it isn't. | |
20758 | # TK_LIBS is the list of libraries that need to be linked | |
20759 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
20760 | # were in LIBS then any link tests after this point would | |
20761 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
20762 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 | 20763 | |
85541719 DE |
20764 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
20765 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
20766 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
20767 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" | |
20768 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
20769 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
20770 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e | 20771 | |
85541719 DE |
20772 | if test x$gdb_cv_os_cygwin = xyes; then |
20773 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
20774 | WIN32LDAPP="-Wl,--subsystem,console" | |
20775 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
3fc11d3e | 20776 | fi |
ffc6a242 | 20777 | |
b4e70030 JB |
20778 | |
20779 | ||
20780 | subdirs="$subdirs gdbtk" | |
3ace7edb | 20781 | |
85541719 | 20782 | fi |
3fc11d3e JM |
20783 | fi |
20784 | ||
20785 | ||
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | ||
20791 | ||
b4e70030 JB |
20792 | echo "$as_me:$LINENO: checking for X" >&5 |
20793 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 20794 | |
c906108c | 20795 | |
b4e70030 | 20796 | # Check whether --with-x or --without-x was given. |
c906108c | 20797 | if test "${with_x+set}" = set; then |
b4e70030 | 20798 | withval="$with_x" |
c906108c | 20799 | |
b4e70030 | 20800 | fi; |
c906108c SS |
20801 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
20802 | if test "x$with_x" = xno; then | |
20803 | # The user explicitly disabled X. | |
20804 | have_x=disabled | |
20805 | else | |
20806 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20807 | # Both variables are already set. | |
20808 | have_x=yes | |
20809 | else | |
bec39cab AC |
20810 | if test "${ac_cv_have_x+set}" = set; then |
20811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20812 | else |
20813 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 20814 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 20815 | rm -fr conftest.dir |
bec39cab AC |
20816 | if mkdir conftest.dir; then |
20817 | cd conftest.dir | |
c906108c | 20818 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 20819 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
20820 | acfindx: |
20821 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 20822 | _ACEOF |
b4e70030 | 20823 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
20824 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
20825 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20826 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20827 | for ac_extension in a so sl; do | |
20828 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
20829 | test -f $ac_im_libdir/libX11.$ac_extension; then |
20830 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
20831 | fi |
20832 | done | |
20833 | # Screen out bogus values from the imake configuration. They are | |
20834 | # bogus both because they are the default anyway, and because | |
20835 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 20836 | case $ac_im_incroot in |
b4e70030 | 20837 | /usr/include) ;; |
bec39cab | 20838 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 20839 | esac |
bec39cab | 20840 | case $ac_im_usrlibdir in |
c906108c | 20841 | /usr/lib | /lib) ;; |
bec39cab | 20842 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
20843 | esac |
20844 | fi | |
20845 | cd .. | |
b4e70030 | 20846 | rm -fr conftest.dir |
c906108c SS |
20847 | fi |
20848 | ||
bec39cab AC |
20849 | # Standard set of common directories for X headers. |
20850 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
20851 | ac_x_header_dirs=' | |
20852 | /usr/X11/include | |
20853 | /usr/X11R6/include | |
20854 | /usr/X11R5/include | |
20855 | /usr/X11R4/include | |
20856 | ||
20857 | /usr/include/X11 | |
20858 | /usr/include/X11R6 | |
20859 | /usr/include/X11R5 | |
20860 | /usr/include/X11R4 | |
20861 | ||
20862 | /usr/local/X11/include | |
20863 | /usr/local/X11R6/include | |
20864 | /usr/local/X11R5/include | |
20865 | /usr/local/X11R4/include | |
20866 | ||
20867 | /usr/local/include/X11 | |
20868 | /usr/local/include/X11R6 | |
20869 | /usr/local/include/X11R5 | |
20870 | /usr/local/include/X11R4 | |
20871 | ||
20872 | /usr/X386/include | |
20873 | /usr/x386/include | |
20874 | /usr/XFree86/include/X11 | |
20875 | ||
20876 | /usr/include | |
20877 | /usr/local/include | |
20878 | /usr/unsupported/include | |
20879 | /usr/athena/include | |
20880 | /usr/local/x11r5/include | |
20881 | /usr/lpp/Xamples/include | |
20882 | ||
20883 | /usr/openwin/include | |
20884 | /usr/openwin/share/include' | |
20885 | ||
20886 | if test "$ac_x_includes" = no; then | |
59f80f10 | 20887 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 20888 | # First, try using that file with no special directory specified. |
bec39cab AC |
20889 | cat >conftest.$ac_ext <<_ACEOF |
20890 | /* confdefs.h. */ | |
20891 | _ACEOF | |
20892 | cat confdefs.h >>conftest.$ac_ext | |
20893 | cat >>conftest.$ac_ext <<_ACEOF | |
20894 | /* end confdefs.h. */ | |
59f80f10 | 20895 | #include <X11/Intrinsic.h> |
bec39cab AC |
20896 | _ACEOF |
20897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20899 | ac_status=$? | |
20900 | grep -v '^ *+' conftest.er1 >conftest.err | |
20901 | rm -f conftest.er1 | |
20902 | cat conftest.err >&5 | |
20903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20904 | (exit $ac_status); } >/dev/null; then | |
20905 | if test -s conftest.err; then | |
20906 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20908 | else | |
20909 | ac_cpp_err= | |
20910 | fi | |
20911 | else | |
20912 | ac_cpp_err=yes | |
20913 | fi | |
20914 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
20915 | # We can compile using X headers with no special include directory. |
20916 | ac_x_includes= | |
20917 | else | |
bec39cab AC |
20918 | echo "$as_me: failed program was:" >&5 |
20919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20920 | ||
20921 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 20922 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
20923 | ac_x_includes=$ac_dir |
20924 | break | |
20925 | fi | |
20926 | done | |
c906108c | 20927 | fi |
bec39cab AC |
20928 | rm -f conftest.err conftest.$ac_ext |
20929 | fi # $ac_x_includes = no | |
c906108c | 20930 | |
bec39cab | 20931 | if test "$ac_x_libraries" = no; then |
c906108c | 20932 | # Check for the libraries. |
c906108c SS |
20933 | # See if we find them without any special options. |
20934 | # Don't add to $LIBS permanently. | |
bec39cab | 20935 | ac_save_LIBS=$LIBS |
4e8d927d | 20936 | LIBS="-lXt $LIBS" |
bec39cab AC |
20937 | cat >conftest.$ac_ext <<_ACEOF |
20938 | /* confdefs.h. */ | |
20939 | _ACEOF | |
20940 | cat confdefs.h >>conftest.$ac_ext | |
20941 | cat >>conftest.$ac_ext <<_ACEOF | |
20942 | /* end confdefs.h. */ | |
59f80f10 | 20943 | #include <X11/Intrinsic.h> |
bec39cab AC |
20944 | int |
20945 | main () | |
20946 | { | |
59f80f10 | 20947 | XtMalloc (0) |
bec39cab AC |
20948 | ; |
20949 | return 0; | |
20950 | } | |
20951 | _ACEOF | |
20952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20954 | (eval $ac_link) 2>conftest.er1 | |
20955 | ac_status=$? | |
20956 | grep -v '^ *+' conftest.er1 >conftest.err | |
20957 | rm -f conftest.er1 | |
20958 | cat conftest.err >&5 | |
20959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20960 | (exit $ac_status); } && | |
b4e70030 JB |
20961 | { ac_try='test -z "$ac_c_werror_flag" |
20962 | || test ! -s conftest.err' | |
bec39cab AC |
20963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20964 | (eval $ac_try) 2>&5 | |
20965 | ac_status=$? | |
20966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20967 | (exit $ac_status); }; } && | |
20968 | { ac_try='test -s conftest$ac_exeext' | |
20969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20970 | (eval $ac_try) 2>&5 | |
20971 | ac_status=$? | |
20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20973 | (exit $ac_status); }; }; then | |
20974 | LIBS=$ac_save_LIBS | |
c906108c SS |
20975 | # We can link X programs with no special library path. |
20976 | ac_x_libraries= | |
20977 | else | |
bec39cab AC |
20978 | echo "$as_me: failed program was:" >&5 |
20979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20980 | ||
b4e70030 | 20981 | LIBS=$ac_save_LIBS |
bec39cab | 20982 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 20983 | do |
bec39cab | 20984 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 20985 | for ac_extension in a so sl; do |
b4e70030 | 20986 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
20987 | ac_x_libraries=$ac_dir |
20988 | break 2 | |
20989 | fi | |
20990 | done | |
20991 | done | |
20992 | fi | |
bec39cab AC |
20993 | rm -f conftest.err conftest.$ac_objext \ |
20994 | conftest$ac_exeext conftest.$ac_ext | |
20995 | fi # $ac_x_libraries = no | |
c906108c | 20996 | |
bec39cab | 20997 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
20998 | # Didn't find X anywhere. Cache the known absence of X. |
20999 | ac_cv_have_x="have_x=no" | |
21000 | else | |
21001 | # Record where we found X for the cache. | |
21002 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 21003 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
21004 | fi |
21005 | fi | |
bec39cab | 21006 | |
c906108c SS |
21007 | fi |
21008 | eval "$ac_cv_have_x" | |
21009 | fi # $with_x != no | |
21010 | ||
21011 | if test "$have_x" != yes; then | |
b4e70030 JB |
21012 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21013 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
21014 | no_x=yes |
21015 | else | |
21016 | # If each of the values was on the command line, it overrides each guess. | |
21017 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21018 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21019 | # Update the cache value to reflect the command line values. | |
21020 | ac_cv_have_x="have_x=yes \ | |
21021 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
21022 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21023 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
21024 | fi |
21025 | ||
21026 | ||
bec39cab | 21027 | # Unlike the sim directory, whether a simulator is linked is controlled by |
9b624dbe | 21028 | # presence of a gdb_sim definition in the target configure.tgt entry. |
7a292a7a SS |
21029 | # This code just checks for a few cases where we'd like to ignore those |
21030 | # definitions, even when they're present in the '.mt' file. These cases | |
21031 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 21032 | # not part of the source tree. |
7a292a7a | 21033 | # |
b4e70030 | 21034 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 21035 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
21036 | enableval="$enable_sim" |
21037 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
21038 | echo "enableval = ${enableval}"; |
21039 | case "${enableval}" in | |
21040 | yes) ignore_sim=false ;; | |
21041 | no) ignore_sim=true ;; | |
21042 | *) ignore_sim=false ;; | |
21043 | esac | |
21044 | else | |
21045 | ignore_sim=false | |
b4e70030 | 21046 | fi; |
7a292a7a SS |
21047 | |
21048 | if test ! -d "${srcdir}/../sim"; then | |
21049 | ignore_sim=true | |
21050 | fi | |
21051 | ||
9b624dbe UW |
21052 | SIM= |
21053 | SIM_OBS= | |
21054 | if test "${ignore_sim}" = "false"; then | |
21055 | if test x"${gdb_sim}" != x ; then | |
21056 | SIM="${gdb_sim}" | |
21057 | SIM_OBS="remote-sim.o" | |
60ca704f SE |
21058 | |
21059 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 21060 | #define WITH_SIM 1 |
bec39cab | 21061 | _ACEOF |
7a292a7a | 21062 | |
9b624dbe | 21063 | fi |
7a292a7a SS |
21064 | fi |
21065 | ||
21066 | ||
21067 | ||
c906108c SS |
21068 | |
21069 | ||
21070 | ||
21071 | ||
21072 | ||
21073 | ||
dfcd3bfb | 21074 | |
e56ac5c3 AC |
21075 | |
21076 | ||
b3a90332 AC |
21077 | |
21078 | ||
c35f4ffc | 21079 | # List of host floatformats. |
bec39cab AC |
21080 | |
21081 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21082 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 21083 | _ACEOF |
c35f4ffc | 21084 | |
bec39cab AC |
21085 | |
21086 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21087 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
21088 | _ACEOF |
21089 | ||
c35f4ffc | 21090 | |
bec39cab | 21091 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 21092 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 21093 | _ACEOF |
c35f4ffc AC |
21094 | |
21095 | ||
c906108c SS |
21096 | # target_subdir is used by the testsuite to find the target libraries. |
21097 | target_subdir= | |
21098 | if test "${host}" != "${target}"; then | |
21099 | target_subdir="${target_alias}/" | |
21100 | fi | |
21101 | ||
21102 | ||
21103 | frags= | |
771b4502 | 21104 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
21105 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
21106 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
21107 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
21108 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
21109 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
21110 | fi |
21111 | frags="$frags $host_makefile_frag" | |
21112 | else | |
21113 | host_makefile_frag=/dev/null | |
c906108c | 21114 | fi |
c906108c | 21115 | |
c906108c SS |
21116 | |
21117 | ||
21118 | ||
771b4502 | 21119 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
21120 | # We pick this up from the host configuration file (.mh) because we |
21121 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
21122 | nativefile=`sed -n ' |
21123 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21124 | ' ${host_makefile_frag}` | |
c906108c SS |
21125 | fi |
21126 | ||
21127 | ||
b00a8037 | 21128 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
21129 | |
21130 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 21131 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 21132 | _ACEOF |
b00a8037 DJ |
21133 | |
21134 | fi | |
21135 | ||
8dcde887 | 21136 | # Enable multi-ice-gdb-server. |
b4e70030 | 21137 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 21138 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
21139 | enableval="$enable_multi_ice" |
21140 | case $enableval in | |
8dcde887 MK |
21141 | yes | no) |
21142 | ;; | |
bec39cab AC |
21143 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
21144 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
21145 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 21146 | esac |
b4e70030 | 21147 | fi; |
4e8d927d | 21148 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
21149 | |
21150 | ||
21151 | subdirs="$subdirs multi-ice" | |
3ace7edb | 21152 | |
a85f51e7 DJ |
21153 | fi |
21154 | ||
a13e2c95 UW |
21155 | # We only build gdbserver automatically in a native configuration. |
21156 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
21157 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
21158 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 21159 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
21160 | echo "$as_me:$LINENO: result: yes" >&5 |
21161 | echo "${ECHO_T}yes" >&6 | |
21162 | ||
21163 | ||
21164 | subdirs="$subdirs gdbserver" | |
3ace7edb | 21165 | |
8dcde887 | 21166 | else |
b4e70030 JB |
21167 | echo "$as_me:$LINENO: result: no" >&5 |
21168 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
21169 | fi |
21170 | fi | |
21171 | ||
db985757 | 21172 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
2c0fc042 | 21173 | # to an empty version. |
c906108c SS |
21174 | |
21175 | files= | |
21176 | links= | |
5a2402b8 | 21177 | |
c906108c SS |
21178 | rm -f nm.h |
21179 | if test "${nativefile}" != ""; then | |
0f475e27 AC |
21180 | case "${nativefile}" in |
21181 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
21182 | * ) GDB_NM_FILE="${nativefile}" | |
21183 | esac | |
5a2402b8 AC |
21184 | files="${files} ${GDB_NM_FILE}" |
21185 | links="${links} nm.h" | |
60ca704f SE |
21186 | |
21187 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21188 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 21189 | _ACEOF |
5a2402b8 | 21190 | |
c906108c | 21191 | fi |
5a2402b8 AC |
21192 | |
21193 | ||
bec39cab AC |
21194 | ac_sources="$files" |
21195 | ac_dests="$links" | |
21196 | while test -n "$ac_sources"; do | |
21197 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
21198 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
21199 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
21200 | done | |
b4e70030 | 21201 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
21202 | |
21203 | ||
c906108c SS |
21204 | |
21205 | ||
c906108c | 21206 | |
bec39cab | 21207 | cat >>confdefs.h <<\_ACEOF |
6c7a06a3 | 21208 | #define GDB_DEFAULT_HOST_CHARSET "UTF-8" |
bec39cab AC |
21209 | _ACEOF |
21210 | ||
bec39cab | 21211 | |
26e251b6 JM |
21212 | # Flags needed to enable html installing and building |
21213 | ||
21214 | # Check whether --with-datarootdir or --without-datarootdir was given. | |
21215 | if test "${with_datarootdir+set}" = set; then | |
21216 | withval="$with_datarootdir" | |
21217 | datarootdir="\${prefix}/${withval}" | |
21218 | else | |
21219 | datarootdir="\${prefix}/share" | |
21220 | fi; | |
21221 | ||
21222 | ||
21223 | # Check whether --with-docdir or --without-docdir was given. | |
21224 | if test "${with_docdir+set}" = set; then | |
21225 | withval="$with_docdir" | |
21226 | docdir="\${prefix}/${withval}" | |
21227 | else | |
21228 | docdir="\${datarootdir}/doc" | |
21229 | fi; | |
21230 | ||
21231 | ||
21232 | # Check whether --with-pdfdir or --without-pdfdir was given. | |
21233 | if test "${with_pdfdir+set}" = set; then | |
21234 | withval="$with_pdfdir" | |
21235 | pdfdir="\${prefix}/${withval}" | |
21236 | else | |
21237 | pdfdir="\${docdir}" | |
21238 | fi; | |
21239 | ||
21240 | ||
21241 | # Check whether --with-htmldir or --without-htmldir was given. | |
21242 | if test "${with_htmldir+set}" = set; then | |
21243 | withval="$with_htmldir" | |
21244 | htmldir="\${prefix}/${withval}" | |
21245 | else | |
21246 | htmldir="\${docdir}" | |
21247 | fi; | |
21248 | ||
89a34d1b JM |
21249 | |
21250 | ||
21251 | ||
21252 | ||
21253 | ||
e28b3332 | 21254 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile" |
b4e70030 | 21255 | ac_config_commands="$ac_config_commands default" |
bec39cab AC |
21256 | cat >confcache <<\_ACEOF |
21257 | # This file is a shell script that caches the results of configure | |
21258 | # tests run on this system so they can be shared between configure | |
21259 | # scripts and configure runs, see configure's option --config-cache. | |
21260 | # It is not useful on other systems. If it contains results you don't | |
21261 | # want to keep, you may remove or edit it. | |
21262 | # | |
21263 | # config.status only pays attention to the cache file if you give it | |
21264 | # the --recheck option to rerun configure. | |
21265 | # | |
21266 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21267 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21268 | # following values. | |
21269 | ||
21270 | _ACEOF | |
21271 | ||
21272 | # The following way of writing the cache mishandles newlines in values, | |
21273 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 21274 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
21275 | # Ultrix sh set writes to stderr and can't be redirected directly, |
21276 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 21277 | { |
bec39cab | 21278 | (set) 2>&1 | |
b4e70030 JB |
21279 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
21280 | *ac_space=\ *) | |
bec39cab AC |
21281 | # `set' does not quote correctly, so add quotes (double-quote |
21282 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21283 | sed -n \ | |
21284 | "s/'/'\\\\''/g; | |
21285 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 21286 | ;; |
bec39cab AC |
21287 | *) |
21288 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
21289 | sed -n \ |
21290 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 21291 | ;; |
b4e70030 JB |
21292 | esac; |
21293 | } | | |
bec39cab AC |
21294 | sed ' |
21295 | t clear | |
b4e70030 | 21296 | : clear |
bec39cab AC |
21297 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
21298 | t end | |
b4e70030 JB |
21299 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
21300 | : end' >>confcache | |
bec39cab AC |
21301 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
21302 | if test -w $cache_file; then | |
b4e70030 | 21303 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
21304 | cat confcache >$cache_file |
21305 | else | |
b4e70030 | 21306 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
21307 | fi |
21308 | fi | |
21309 | rm -f confcache | |
21310 | ||
21311 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21312 | # Let make expand exec_prefix. | |
21313 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21314 | ||
b4e70030 JB |
21315 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
21316 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21317 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21318 | # (actually we leave an empty line to preserve line numbers). | |
21319 | if test "x$srcdir" = x.; then | |
21320 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21321 | s/:*\$(srcdir):*/:/; | |
21322 | s/:*\${srcdir}:*/:/; | |
21323 | s/:*@srcdir@:*/:/; | |
21324 | s/^\([^=]*=[ ]*\):*/\1/; | |
21325 | s/:*$//; | |
21326 | s/^[^=]*=[ ]*$//; | |
21327 | }' | |
21328 | fi | |
21329 | ||
bec39cab AC |
21330 | DEFS=-DHAVE_CONFIG_H |
21331 | ||
21332 | ac_libobjs= | |
21333 | ac_ltlibobjs= | |
21334 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21335 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
21336 | ac_i=`echo "$ac_i" | |
21337 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21338 | # 2. Add them. | |
21339 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21340 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
21341 | done |
21342 | LIBOBJS=$ac_libobjs | |
21343 | ||
21344 | LTLIBOBJS=$ac_ltlibobjs | |
21345 | ||
21346 | ||
85981d60 AC |
21347 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
21348 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21349 | Usually this means the macro was only invoked conditionally." >&5 | |
21350 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21351 | Usually this means the macro was only invoked conditionally." >&2;} | |
21352 | { (exit 1); exit 1; }; } | |
21353 | fi | |
a417dc56 RW |
21354 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
21355 | { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined. | |
21356 | Usually this means the macro was only invoked conditionally." >&5 | |
21357 | echo "$as_me: error: conditional \"GMAKE\" was never defined. | |
21358 | Usually this means the macro was only invoked conditionally." >&2;} | |
21359 | { (exit 1); exit 1; }; } | |
21360 | fi | |
783e057b DJ |
21361 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
21362 | { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
21363 | Usually this means the macro was only invoked conditionally." >&5 | |
21364 | echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. | |
21365 | Usually this means the macro was only invoked conditionally." >&2;} | |
21366 | { (exit 1); exit 1; }; } | |
21367 | fi | |
21368 | ||
21369 | gl_libobjs= | |
21370 | gl_ltlibobjs= | |
21371 | if test -n "$gl_LIBOBJS"; then | |
21372 | # Remove the extension. | |
21373 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
21374 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
21375 | gl_libobjs="$gl_libobjs $i.$ac_objext" | |
21376 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
21377 | done | |
21378 | fi | |
21379 | gl_LIBOBJS=$gl_libobjs | |
21380 | ||
21381 | gl_LTLIBOBJS=$gl_ltlibobjs | |
21382 | ||
21383 | ||
21384 | ||
21385 | gltests_libobjs= | |
21386 | gltests_ltlibobjs= | |
21387 | if test -n "$gltests_LIBOBJS"; then | |
21388 | # Remove the extension. | |
21389 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
21390 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do | |
21391 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
21392 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
21393 | done | |
21394 | fi | |
21395 | gltests_LIBOBJS=$gltests_libobjs | |
21396 | ||
21397 | gltests_LTLIBOBJS=$gltests_ltlibobjs | |
21398 | ||
21399 | ||
e28b3332 DJ |
21400 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
21401 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
21402 | Usually this means the macro was only invoked conditionally." >&5 | |
21403 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
21404 | Usually this means the macro was only invoked conditionally." >&2;} | |
21405 | { (exit 1); exit 1; }; } | |
21406 | fi | |
21407 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21408 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
21409 | Usually this means the macro was only invoked conditionally." >&5 | |
21410 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
21411 | Usually this means the macro was only invoked conditionally." >&2;} | |
21412 | { (exit 1); exit 1; }; } | |
21413 | fi | |
bec39cab AC |
21414 | |
21415 | : ${CONFIG_STATUS=./config.status} | |
21416 | ac_clean_files_save=$ac_clean_files | |
21417 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21418 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21419 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21420 | cat >$CONFIG_STATUS <<_ACEOF | |
21421 | #! $SHELL | |
21422 | # Generated by $as_me. | |
21423 | # Run this file to recreate the current configuration. | |
21424 | # Compiler output produced by configure, useful for debugging | |
21425 | # configure, is in config.log if it exists. | |
21426 | ||
21427 | debug=false | |
21428 | ac_cs_recheck=false | |
21429 | ac_cs_silent=false | |
21430 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21431 | _ACEOF | |
21432 | ||
21433 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21434 | ## --------------------- ## | |
21435 | ## M4sh Initialization. ## | |
21436 | ## --------------------- ## | |
21437 | ||
21438 | # Be Bourne compatible | |
21439 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21440 | emulate sh | |
21441 | NULLCMD=: | |
21442 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21443 | # is contrary to our usage. Disable this feature. | |
21444 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
21445 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21446 | set -o posix | |
bec39cab AC |
21447 | fi |
21448 | DUALCASE=1; export DUALCASE # for MKS sh | |
21449 | ||
21450 | # Support unset when possible. | |
21451 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21452 | as_unset=unset | |
21453 | else | |
21454 | as_unset=false | |
21455 | fi | |
21456 | ||
21457 | ||
21458 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 21459 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
21460 | PS1='$ ' |
21461 | PS2='> ' | |
21462 | PS4='+ ' | |
21463 | ||
21464 | # NLS nuisances. | |
21465 | for as_var in \ | |
21466 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21467 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21468 | LC_TELEPHONE LC_TIME | |
21469 | do | |
21470 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21471 | eval $as_var=C; export $as_var | |
21472 | else | |
b4e70030 | 21473 | $as_unset $as_var |
bec39cab AC |
21474 | fi |
21475 | done | |
21476 | ||
21477 | # Required to use basename. | |
b4e70030 | 21478 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
21479 | as_expr=expr |
21480 | else | |
21481 | as_expr=false | |
21482 | fi | |
21483 | ||
b4e70030 | 21484 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
21485 | as_basename=basename |
21486 | else | |
21487 | as_basename=false | |
21488 | fi | |
21489 | ||
21490 | ||
21491 | # Name of the executable. | |
b4e70030 | 21492 | as_me=`$as_basename "$0" || |
bec39cab AC |
21493 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
21494 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
21495 | X"$0" : 'X\(/\)$' \| \ |
21496 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 21497 | echo X/"$0" | |
b4e70030 JB |
21498 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
21499 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21500 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21501 | s/.*/./; q'` | |
bec39cab | 21502 | |
b4e70030 JB |
21503 | |
21504 | # PATH needs CR, and LINENO needs CR and PATH. | |
21505 | # Avoid depending upon Character Ranges. | |
21506 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21507 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21508 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21509 | as_cr_digits='0123456789' | |
21510 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21511 | ||
21512 | # The user is always right. | |
21513 | if test "${PATH_SEPARATOR+set}" != set; then | |
21514 | echo "#! /bin/sh" >conf$$.sh | |
21515 | echo "exit 0" >>conf$$.sh | |
21516 | chmod +x conf$$.sh | |
21517 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21518 | PATH_SEPARATOR=';' | |
21519 | else | |
21520 | PATH_SEPARATOR=: | |
21521 | fi | |
21522 | rm -f conf$$.sh | |
21523 | fi | |
bec39cab AC |
21524 | |
21525 | ||
b4e70030 JB |
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" || { | |
21531 | # Find who we are. Look in the path if we contain no path at all | |
21532 | # relative or not. | |
21533 | case $0 in | |
21534 | *[\\/]* ) as_myself=$0 ;; | |
21535 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21536 | for as_dir in $PATH | |
21537 | do | |
21538 | IFS=$as_save_IFS | |
21539 | test -z "$as_dir" && as_dir=. | |
21540 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21541 | done | |
bec39cab | 21542 | |
b4e70030 JB |
21543 | ;; |
21544 | esac | |
21545 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21546 | # in which case we are not to be found in the path. | |
21547 | if test "x$as_myself" = x; then | |
21548 | as_myself=$0 | |
21549 | fi | |
21550 | if test ! -f "$as_myself"; then | |
21551 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21552 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21553 | { (exit 1); exit 1; }; } | |
21554 | fi | |
21555 | case $CONFIG_SHELL in | |
21556 | '') | |
21557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21558 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21559 | do | |
21560 | IFS=$as_save_IFS | |
21561 | test -z "$as_dir" && as_dir=. | |
21562 | for as_base in sh bash ksh sh5; do | |
21563 | case $as_dir in | |
21564 | /*) | |
21565 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
21566 | as_lineno_1=$LINENO |
21567 | as_lineno_2=$LINENO | |
b4e70030 | 21568 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 21569 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
21570 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
21571 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21572 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21573 | CONFIG_SHELL=$as_dir/$as_base | |
21574 | export CONFIG_SHELL | |
21575 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21576 | fi;; | |
21577 | esac | |
21578 | done | |
21579 | done | |
21580 | ;; | |
21581 | esac | |
bec39cab AC |
21582 | |
21583 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21584 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
21585 | # line-number line before each line; the second 'sed' does the real |
21586 | # work. The second script uses 'N' to pair each line-number line | |
21587 | # with the numbered line, and appends trailing '-' during | |
21588 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 21589 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
21590 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
21591 | sed '=' <$as_myself | | |
bec39cab AC |
21592 | sed ' |
21593 | N | |
b4e70030 JB |
21594 | s,$,-, |
21595 | : loop | |
21596 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 21597 | t loop |
b4e70030 JB |
21598 | s,-$,, |
21599 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 21600 | ' >$as_me.lineno && |
b4e70030 JB |
21601 | chmod +x $as_me.lineno || |
21602 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21603 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
21604 | { (exit 1); exit 1; }; } |
21605 | ||
21606 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21607 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
21608 | # original and so on. Autoconf is especially sensible to this). |
21609 | . ./$as_me.lineno | |
bec39cab AC |
21610 | # Exit status is that of the last command. |
21611 | exit | |
21612 | } | |
21613 | ||
21614 | ||
b4e70030 JB |
21615 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
21616 | *c*,-n*) ECHO_N= ECHO_C=' | |
21617 | ' ECHO_T=' ' ;; | |
21618 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21619 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
21620 | esac |
21621 | ||
b4e70030 | 21622 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
21623 | as_expr=expr |
21624 | else | |
21625 | as_expr=false | |
21626 | fi | |
21627 | ||
21628 | rm -f conf$$ conf$$.exe conf$$.file | |
21629 | echo >conf$$.file | |
21630 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
21631 | # We could just check for DJGPP; but this test a) works b) is more generic |
21632 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21633 | if test -f conf$$.exe; then | |
21634 | # Don't use ln at all; we don't have any links | |
bec39cab | 21635 | as_ln_s='cp -p' |
b4e70030 JB |
21636 | else |
21637 | as_ln_s='ln -s' | |
21638 | fi | |
bec39cab AC |
21639 | elif ln conf$$.file conf$$ 2>/dev/null; then |
21640 | as_ln_s=ln | |
21641 | else | |
21642 | as_ln_s='cp -p' | |
21643 | fi | |
b4e70030 | 21644 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
21645 | |
21646 | if mkdir -p . 2>/dev/null; then | |
21647 | as_mkdir_p=: | |
21648 | else | |
21649 | test -d ./-p && rmdir ./-p | |
21650 | as_mkdir_p=false | |
21651 | fi | |
21652 | ||
b4e70030 | 21653 | as_executable_p="test -f" |
bec39cab AC |
21654 | |
21655 | # Sed expression to map a string onto a valid CPP name. | |
21656 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21657 | ||
21658 | # Sed expression to map a string onto a valid variable name. | |
21659 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21660 | ||
21661 | ||
b4e70030 JB |
21662 | # IFS |
21663 | # We need space, tab and new line, in precisely that order. | |
21664 | as_nl=' | |
21665 | ' | |
21666 | IFS=" $as_nl" | |
21667 | ||
21668 | # CDPATH. | |
21669 | $as_unset CDPATH | |
21670 | ||
bec39cab AC |
21671 | exec 6>&1 |
21672 | ||
b4e70030 | 21673 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 21674 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
21675 | # values after options handling. Logging --version etc. is OK. |
21676 | exec 5>>config.log | |
21677 | { | |
21678 | echo | |
21679 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21680 | ## Running $as_me. ## | |
21681 | _ASBOX | |
21682 | } >&5 | |
21683 | cat >&5 <<_CSEOF | |
21684 | ||
bec39cab | 21685 | This file was extended by $as_me, which was |
b4e70030 | 21686 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
21687 | |
21688 | CONFIG_FILES = $CONFIG_FILES | |
21689 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21690 | CONFIG_LINKS = $CONFIG_LINKS | |
21691 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21692 | $ $0 $@ | |
21693 | ||
b4e70030 JB |
21694 | _CSEOF |
21695 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21696 | echo >&5 | |
bec39cab AC |
21697 | _ACEOF |
21698 | ||
21699 | # Files that config.status was made for. | |
b4e70030 JB |
21700 | if test -n "$ac_config_files"; then |
21701 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21702 | fi | |
234b45d4 | 21703 | |
b4e70030 JB |
21704 | if test -n "$ac_config_headers"; then |
21705 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21706 | fi | |
21707 | ||
21708 | if test -n "$ac_config_links"; then | |
21709 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21710 | fi | |
21711 | ||
21712 | if test -n "$ac_config_commands"; then | |
21713 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21714 | fi | |
234b45d4 | 21715 | |
bec39cab | 21716 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 21717 | |
bec39cab AC |
21718 | ac_cs_usage="\ |
21719 | \`$as_me' instantiates files from templates according to the | |
21720 | current configuration. | |
234b45d4 | 21721 | |
bec39cab | 21722 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 21723 | |
bec39cab AC |
21724 | -h, --help print this help, then exit |
21725 | -V, --version print version number, then exit | |
21726 | -q, --quiet do not print progress messages | |
21727 | -d, --debug don't remove temporary files | |
21728 | --recheck update $as_me by reconfiguring in the same conditions | |
21729 | --file=FILE[:TEMPLATE] | |
21730 | instantiate the configuration file FILE | |
21731 | --header=FILE[:TEMPLATE] | |
21732 | instantiate the configuration header FILE | |
234b45d4 | 21733 | |
bec39cab AC |
21734 | Configuration files: |
21735 | $config_files | |
234b45d4 | 21736 | |
bec39cab AC |
21737 | Configuration headers: |
21738 | $config_headers | |
234b45d4 | 21739 | |
bec39cab AC |
21740 | Configuration links: |
21741 | $config_links | |
234b45d4 | 21742 | |
bec39cab AC |
21743 | Configuration commands: |
21744 | $config_commands | |
21745 | ||
21746 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 21747 | _ACEOF |
b4e70030 | 21748 | |
bec39cab AC |
21749 | cat >>$CONFIG_STATUS <<_ACEOF |
21750 | ac_cs_version="\\ | |
21751 | config.status | |
b4e70030 | 21752 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
21753 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
21754 | ||
b4e70030 | 21755 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
21756 | This config.status script is free software; the Free Software Foundation |
21757 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
21758 | srcdir=$srcdir |
21759 | INSTALL="$INSTALL" | |
bec39cab AC |
21760 | _ACEOF |
21761 | ||
21762 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21763 | # If no file are specified by the user, then we need to provide default | |
21764 | # value. By we need to know if files were specified by the user. | |
21765 | ac_need_defaults=: | |
21766 | while test $# != 0 | |
21767 | do | |
21768 | case $1 in | |
21769 | --*=*) | |
b4e70030 JB |
21770 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
21771 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 21772 | ac_shift=: |
c906108c | 21773 | ;; |
b4e70030 | 21774 | -*) |
bec39cab AC |
21775 | ac_option=$1 |
21776 | ac_optarg=$2 | |
21777 | ac_shift=shift | |
c906108c | 21778 | ;; |
b4e70030 JB |
21779 | *) # This is not an option, so the user has probably given explicit |
21780 | # arguments. | |
21781 | ac_option=$1 | |
21782 | ac_need_defaults=false;; | |
bec39cab | 21783 | esac |
c906108c | 21784 | |
bec39cab AC |
21785 | case $ac_option in |
21786 | # Handling of the options. | |
b4e70030 JB |
21787 | _ACEOF |
21788 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
21789 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
21790 | ac_cs_recheck=: ;; | |
b4e70030 JB |
21791 | --version | --vers* | -V ) |
21792 | echo "$ac_cs_version"; exit 0 ;; | |
21793 | --he | --h) | |
21794 | # Conflict between --help and --header | |
21795 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
21796 | Try \`$0 --help' for more information." >&5 | |
21797 | echo "$as_me: error: ambiguous option: $1 | |
21798 | Try \`$0 --help' for more information." >&2;} | |
21799 | { (exit 1); exit 1; }; };; | |
21800 | --help | --hel | -h ) | |
21801 | echo "$ac_cs_usage"; exit 0 ;; | |
21802 | --debug | --d* | -d ) | |
bec39cab AC |
21803 | debug=: ;; |
21804 | --file | --fil | --fi | --f ) | |
21805 | $ac_shift | |
21806 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21807 | ac_need_defaults=false;; | |
21808 | --header | --heade | --head | --hea ) | |
21809 | $ac_shift | |
21810 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21811 | ac_need_defaults=false;; | |
21812 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21813 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21814 | ac_cs_silent=: ;; | |
c906108c | 21815 | |
bec39cab | 21816 | # This is an error. |
b4e70030 JB |
21817 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
21818 | Try \`$0 --help' for more information." >&5 | |
21819 | echo "$as_me: error: unrecognized option: $1 | |
21820 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 21821 | { (exit 1); exit 1; }; } ;; |
c906108c | 21822 | |
b4e70030 | 21823 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 21824 | |
bec39cab AC |
21825 | esac |
21826 | shift | |
21827 | done | |
c906108c | 21828 | |
bec39cab | 21829 | ac_configure_extra_args= |
c906108c | 21830 | |
bec39cab AC |
21831 | if $ac_cs_silent; then |
21832 | exec 6>/dev/null | |
21833 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21834 | fi | |
c906108c | 21835 | |
bec39cab AC |
21836 | _ACEOF |
21837 | cat >>$CONFIG_STATUS <<_ACEOF | |
21838 | if \$ac_cs_recheck; then | |
b4e70030 JB |
21839 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
21840 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
21841 | fi |
21842 | ||
21843 | _ACEOF | |
21844 | ||
21845 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 21846 | # |
b4e70030 | 21847 | # INIT-COMMANDS section. |
c906108c | 21848 | # |
c906108c | 21849 | |
a417dc56 | 21850 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
e28b3332 | 21851 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
b4e70030 | 21852 | |
bec39cab AC |
21853 | _ACEOF |
21854 | ||
4e8d927d | 21855 | |
b4e70030 JB |
21856 | |
21857 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 21858 | for ac_config_target in $ac_config_targets |
c906108c | 21859 | do |
b4e70030 JB |
21860 | case "$ac_config_target" in |
21861 | # Handling of arguments. | |
21862 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21863 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
e28b3332 | 21864 | "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; |
b4e70030 | 21865 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
a417dc56 | 21866 | "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
e28b3332 | 21867 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
b4e70030 JB |
21868 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
21869 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
21870 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
21871 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21872 | { (exit 1); exit 1; }; };; | |
c906108c SS |
21873 | esac |
21874 | done | |
21875 | ||
bec39cab AC |
21876 | # If the user did not use the arguments to specify the items to instantiate, |
21877 | # then the envvar interface is used. Set only those that are not. | |
21878 | # We use the long form for the default assignment because of an extremely | |
21879 | # bizarre bug on SunOS 4.1.3. | |
21880 | if $ac_need_defaults; then | |
21881 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21882 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21883 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
21884 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21885 | fi | |
21886 | ||
b4e70030 JB |
21887 | # Have a temporary directory for convenience. Make it in the build tree |
21888 | # simply because there is no reason to put it here, and in addition, | |
21889 | # creating and moving files from /tmp can sometimes cause problems. | |
21890 | # Create a temporary directory, and hook for its removal unless debugging. | |
21891 | $debug || | |
21892 | { | |
21893 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21894 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21895 | } | |
4e8d927d | 21896 | |
b4e70030 | 21897 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 21898 | |
b4e70030 JB |
21899 | { |
21900 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
21901 | test -n "$tmp" && test -d "$tmp" | |
21902 | } || | |
21903 | { | |
21904 | tmp=./confstat$$-$RANDOM | |
21905 | (umask 077 && mkdir $tmp) | |
21906 | } || | |
21907 | { | |
21908 | echo "$me: cannot create a temporary directory in ." >&2 | |
21909 | { (exit 1); exit 1; } | |
21910 | } | |
4e8d927d | 21911 | |
b4e70030 | 21912 | _ACEOF |
4e8d927d | 21913 | |
b4e70030 | 21914 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 21915 | |
b4e70030 JB |
21916 | # |
21917 | # CONFIG_FILES section. | |
21918 | # | |
4e8d927d | 21919 | |
b4e70030 JB |
21920 | # No need to generate the scripts if there are no CONFIG_FILES. |
21921 | # This happens for instance when ./config.status config.h | |
21922 | if test -n "\$CONFIG_FILES"; then | |
21923 | # Protect against being on the right side of a sed subst in config.status. | |
21924 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21925 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21926 | s,@SHELL@,$SHELL,;t t | |
21927 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
21928 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21929 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21930 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21931 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21932 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
21933 | s,@exec_prefix@,$exec_prefix,;t t | |
21934 | s,@prefix@,$prefix,;t t | |
21935 | s,@program_transform_name@,$program_transform_name,;t t | |
21936 | s,@bindir@,$bindir,;t t | |
21937 | s,@sbindir@,$sbindir,;t t | |
21938 | s,@libexecdir@,$libexecdir,;t t | |
21939 | s,@datadir@,$datadir,;t t | |
21940 | s,@sysconfdir@,$sysconfdir,;t t | |
21941 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21942 | s,@localstatedir@,$localstatedir,;t t | |
21943 | s,@libdir@,$libdir,;t t | |
21944 | s,@includedir@,$includedir,;t t | |
21945 | s,@oldincludedir@,$oldincludedir,;t t | |
21946 | s,@infodir@,$infodir,;t t | |
21947 | s,@mandir@,$mandir,;t t | |
21948 | s,@build_alias@,$build_alias,;t t | |
21949 | s,@host_alias@,$host_alias,;t t | |
21950 | s,@target_alias@,$target_alias,;t t | |
21951 | s,@DEFS@,$DEFS,;t t | |
21952 | s,@ECHO_C@,$ECHO_C,;t t | |
21953 | s,@ECHO_N@,$ECHO_N,;t t | |
21954 | s,@ECHO_T@,$ECHO_T,;t t | |
21955 | s,@LIBS@,$LIBS,;t t | |
21956 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
21957 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
21958 | s,@MAINT@,$MAINT,;t t | |
21959 | s,@CC@,$CC,;t t | |
21960 | s,@CFLAGS@,$CFLAGS,;t t | |
21961 | s,@LDFLAGS@,$LDFLAGS,;t t | |
21962 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
21963 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
21964 | s,@EXEEXT@,$EXEEXT,;t t | |
21965 | s,@OBJEXT@,$OBJEXT,;t t | |
21966 | s,@CPP@,$CPP,;t t | |
21967 | s,@EGREP@,$EGREP,;t t | |
783e057b DJ |
21968 | s,@RANLIB@,$RANLIB,;t t |
21969 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
21970 | s,@build@,$build,;t t |
21971 | s,@build_cpu@,$build_cpu,;t t | |
21972 | s,@build_vendor@,$build_vendor,;t t | |
21973 | s,@build_os@,$build_os,;t t | |
21974 | s,@host@,$host,;t t | |
21975 | s,@host_cpu@,$host_cpu,;t t | |
21976 | s,@host_vendor@,$host_vendor,;t t | |
21977 | s,@host_os@,$host_os,;t t | |
21978 | s,@target@,$target,;t t | |
21979 | s,@target_cpu@,$target_cpu,;t t | |
21980 | s,@target_vendor@,$target_vendor,;t t | |
21981 | s,@target_os@,$target_os,;t t | |
a417dc56 RW |
21982 | s,@am__leading_dot@,$am__leading_dot,;t t |
21983 | s,@DEPDIR@,$DEPDIR,;t t | |
21984 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
21985 | s,@MAKE@,$MAKE,;t t | |
21986 | s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t | |
21987 | s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t | |
21988 | s,@SET_MAKE@,$SET_MAKE,;t t | |
b4e70030 | 21989 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
21990 | s,@LIBINTL@,$LIBINTL,;t t |
21991 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
21992 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 21993 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
21994 | s,@GMSGFMT@,$GMSGFMT,;t t |
21995 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 21996 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 21997 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 21998 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
21999 | s,@GENCAT@,$GENCAT,;t t |
22000 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 | 22001 | s,@localedir@,$localedir,;t t |
783e057b DJ |
22002 | s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t |
22003 | s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t | |
22004 | s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t | |
22005 | s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t | |
22006 | s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t | |
22007 | s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t | |
22008 | s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t | |
22009 | s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t | |
22010 | s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t | |
22011 | s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t | |
22012 | s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t | |
22013 | s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t | |
22014 | s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t | |
22015 | s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t | |
22016 | s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t | |
22017 | s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t | |
22018 | s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t | |
22019 | s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t | |
22020 | s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t | |
22021 | s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t | |
22022 | s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t | |
22023 | s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t | |
22024 | s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t | |
22025 | s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t | |
22026 | s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t | |
22027 | s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t | |
22028 | s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t | |
22029 | s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t | |
22030 | s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t | |
22031 | s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t | |
22032 | s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t | |
22033 | s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t | |
22034 | s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t | |
22035 | s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t | |
22036 | s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t | |
22037 | s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t | |
22038 | s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t | |
22039 | s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t | |
22040 | s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t | |
22041 | s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t | |
22042 | s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t | |
22043 | s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t | |
22044 | s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t | |
22045 | s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t | |
22046 | s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t | |
22047 | s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t | |
22048 | s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t | |
22049 | s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t | |
22050 | s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t | |
22051 | s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t | |
22052 | s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t | |
22053 | s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t | |
22054 | s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t | |
22055 | s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t | |
22056 | s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t | |
22057 | s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t | |
22058 | s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t | |
22059 | s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t | |
22060 | s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t | |
22061 | s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t | |
22062 | s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t | |
22063 | s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t | |
22064 | s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t | |
22065 | s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t | |
22066 | s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t | |
22067 | s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t | |
22068 | s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t | |
22069 | s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t | |
22070 | s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t | |
22071 | s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t | |
22072 | s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t | |
22073 | s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t | |
22074 | s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t | |
22075 | s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t | |
22076 | s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t | |
22077 | s,@STDINT_H@,$STDINT_H,;t t | |
22078 | s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t | |
22079 | s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t | |
22080 | s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t | |
22081 | s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t | |
22082 | s,@WCHAR_H@,$WCHAR_H,;t t | |
22083 | s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t | |
22084 | s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t | |
22085 | s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t | |
22086 | s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t | |
d5af19ba | 22087 | s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t |
b4e70030 | 22088 | s,@PACKAGE@,$PACKAGE,;t t |
b4e70030 JB |
22089 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
22090 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22091 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
e28b3332 | 22092 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
d57a3c85 | 22093 | s,@PYTHON2_4@,$PYTHON2_4,;t t |
e28b3332 DJ |
22094 | s,@ACLOCAL@,$ACLOCAL,;t t |
22095 | s,@AUTOCONF@,$AUTOCONF,;t t | |
22096 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
22097 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
22098 | s,@MAKEINFO@,$MAKEINFO,;t t | |
22099 | s,@install_sh@,$install_sh,;t t | |
22100 | s,@STRIP@,$STRIP,;t t | |
22101 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
22102 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
22103 | s,@mkdir_p@,$mkdir_p,;t t | |
22104 | s,@AWK@,$AWK,;t t | |
e28b3332 DJ |
22105 | s,@AMTAR@,$AMTAR,;t t |
22106 | s,@am__tar@,$am__tar,;t t | |
22107 | s,@am__untar@,$am__untar,;t t | |
e28b3332 DJ |
22108 | s,@am__include@,$am__include,;t t |
22109 | s,@am__quote@,$am__quote,;t t | |
22110 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
22111 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
22112 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
e28b3332 DJ |
22113 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
22114 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
22115 | s,@subdirs@,$subdirs,;t t | |
22116 | s,@TARGET_OBS@,$TARGET_OBS,;t t | |
c16158bc JM |
22117 | s,@PKGVERSION@,$PKGVERSION,;t t |
22118 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t | |
22119 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
b4e70030 JB |
22120 | s,@LN_S@,$LN_S,;t t |
22121 | s,@YACC@,$YACC,;t t | |
22122 | s,@AR@,$AR,;t t | |
22123 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22124 | s,@DLLTOOL@,$DLLTOOL,;t t | |
22125 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
22126 | s,@WINDRES@,$WINDRES,;t t | |
22127 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
22128 | s,@MIG@,$MIG,;t t | |
22129 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
22130 | s,@READLINE@,$READLINE,;t t |
22131 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
22132 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
22133 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
22134 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
22135 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
d57a3c85 | 22136 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
20e95c23 | 22137 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
22138 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
22139 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
22140 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
22141 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
22142 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
22143 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
22144 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
22145 | s,@LIBGUI@,$LIBGUI,;t t | |
22146 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
22147 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
22148 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
5062cc19 KS |
22149 | s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t |
22150 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t | |
22151 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t | |
22152 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t | |
22153 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t | |
b4e70030 | 22154 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
5062cc19 KS |
22155 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
22156 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t | |
22157 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t | |
22158 | s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t | |
22159 | s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t | |
22160 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
b4e70030 | 22161 | s,@TK_VERSION@,$TK_VERSION,;t t |
5062cc19 KS |
22162 | s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t |
22163 | s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t | |
22164 | s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t | |
22165 | s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t | |
b4e70030 | 22166 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
5062cc19 KS |
22167 | s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t |
22168 | s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t | |
22169 | s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t | |
22170 | s,@TK_INCLUDE@,$TK_INCLUDE,;t t | |
22171 | s,@TK_LIBRARY@,$TK_LIBRARY,;t t | |
22172 | s,@TK_DEPS@,$TK_DEPS,;t t | |
22173 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
b4e70030 JB |
22174 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
22175 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
22176 | s,@X_LIBS@,$X_LIBS,;t t | |
b4e70030 JB |
22177 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
22178 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
22179 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
9b624dbe UW |
22180 | s,@SIM@,$SIM,;t t |
22181 | s,@SIM_OBS@,$SIM_OBS,;t t | |
b4e70030 JB |
22182 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
22183 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
22184 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
22185 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
22186 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
22187 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
22188 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
22189 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
22190 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
22191 | s,@target_subdir@,$target_subdir,;t t | |
22192 | s,@frags@,$frags,;t t | |
cfd53605 | 22193 | s,@GDB_NM_FILE@,$GDB_NM_FILE,;t t |
89a34d1b JM |
22194 | s,@datarootdir@,$datarootdir,;t t |
22195 | s,@docdir@,$docdir,;t t | |
22196 | s,@htmldir@,$htmldir,;t t | |
22197 | s,@pdfdir@,$pdfdir,;t t | |
b4e70030 JB |
22198 | s,@LIBOBJS@,$LIBOBJS,;t t |
22199 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
783e057b DJ |
22200 | s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t |
22201 | s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t | |
22202 | s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t | |
22203 | s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t | |
b4e70030 JB |
22204 | /@host_makefile_frag@/r $host_makefile_frag |
22205 | s,@host_makefile_frag@,,;t t | |
b4e70030 JB |
22206 | CEOF |
22207 | ||
22208 | _ACEOF | |
22209 | ||
22210 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22211 | # Split the substitutions into bite-sized pieces for seds with | |
22212 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22213 | ac_max_sed_lines=48 | |
22214 | ac_sed_frag=1 # Number of current file. | |
22215 | ac_beg=1 # First line for current file. | |
22216 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22217 | ac_more_lines=: | |
22218 | ac_sed_cmds= | |
22219 | while $ac_more_lines; do | |
22220 | if test $ac_beg -gt 1; then | |
22221 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22222 | else | |
22223 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 22224 | fi |
b4e70030 JB |
22225 | if test ! -s $tmp/subs.frag; then |
22226 | ac_more_lines=false | |
22227 | else | |
22228 | # The purpose of the label and of the branching condition is to | |
22229 | # speed up the sed processing (if there are no `@' at all, there | |
22230 | # is no need to browse any of the substitutions). | |
22231 | # These are the two extra sed commands mentioned above. | |
22232 | (echo ':t | |
22233 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22234 | if test -z "$ac_sed_cmds"; then | |
22235 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22236 | else | |
22237 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22238 | fi | |
22239 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22240 | ac_beg=$ac_end | |
22241 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22242 | fi | |
22243 | done | |
22244 | if test -z "$ac_sed_cmds"; then | |
22245 | ac_sed_cmds=cat | |
22246 | fi | |
22247 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 22248 | |
b4e70030 JB |
22249 | _ACEOF |
22250 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22251 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
22252 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22253 | case $ac_file in | |
22254 | - | *:- | *:-:* ) # input from stdin | |
22255 | cat >$tmp/stdin | |
22256 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22257 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22258 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22259 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22260 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22261 | esac |
22262 | ||
b4e70030 JB |
22263 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
22264 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
22265 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22266 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22267 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
22268 | X"$ac_file" : 'X\(/\)' \| \ |
22269 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 22270 | echo X"$ac_file" | |
b4e70030 JB |
22271 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
22272 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22273 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22274 | /^X\(\/\).*/{ s//\1/; q; } | |
22275 | s/.*/./; q'` | |
22276 | { if $as_mkdir_p; then | |
22277 | mkdir -p "$ac_dir" | |
22278 | else | |
22279 | as_dir="$ac_dir" | |
bec39cab | 22280 | as_dirs= |
b4e70030 JB |
22281 | while test ! -d "$as_dir"; do |
22282 | as_dirs="$as_dir $as_dirs" | |
22283 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
22284 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
22285 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22286 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
22287 | X"$as_dir" : 'X\(/\)' \| \ |
22288 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 22289 | echo X"$as_dir" | |
b4e70030 JB |
22290 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
22291 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22292 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22293 | /^X\(\/\).*/{ s//\1/; q; } | |
22294 | s/.*/./; q'` | |
bec39cab | 22295 | done |
b4e70030 JB |
22296 | test ! -n "$as_dirs" || mkdir $as_dirs |
22297 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22298 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 22299 | { (exit 1); exit 1; }; }; } |
b4e70030 | 22300 | |
bec39cab AC |
22301 | ac_builddir=. |
22302 | ||
b4e70030 | 22303 | if test "$ac_dir" != .; then |
bec39cab | 22304 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
22305 | # A "../" for each directory in $ac_dir_suffix. |
22306 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22307 | else | |
22308 | ac_dir_suffix= ac_top_builddir= | |
22309 | fi | |
bec39cab AC |
22310 | |
22311 | case $srcdir in | |
b4e70030 | 22312 | .) # No --srcdir option. We are building in place. |
bec39cab | 22313 | ac_srcdir=. |
b4e70030 JB |
22314 | if test -z "$ac_top_builddir"; then |
22315 | ac_top_srcdir=. | |
22316 | else | |
22317 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22318 | fi ;; | |
22319 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 22320 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
22321 | ac_top_srcdir=$srcdir ;; |
22322 | *) # Relative path. | |
22323 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22324 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
22325 | esac |
22326 | ||
b4e70030 JB |
22327 | # Do not use `cd foo && pwd` to compute absolute paths, because |
22328 | # the directories may not exist. | |
22329 | case `pwd` in | |
22330 | .) ac_abs_builddir="$ac_dir";; | |
22331 | *) | |
22332 | case "$ac_dir" in | |
22333 | .) ac_abs_builddir=`pwd`;; | |
22334 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22335 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22336 | esac;; | |
22337 | esac | |
22338 | case $ac_abs_builddir in | |
22339 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22340 | *) | |
22341 | case ${ac_top_builddir}. in | |
22342 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22343 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22344 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22345 | esac;; | |
22346 | esac | |
22347 | case $ac_abs_builddir in | |
22348 | .) ac_abs_srcdir=$ac_srcdir;; | |
22349 | *) | |
22350 | case $ac_srcdir in | |
22351 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22352 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22353 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22354 | esac;; | |
22355 | esac | |
22356 | case $ac_abs_builddir in | |
22357 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22358 | *) | |
22359 | case $ac_top_srcdir in | |
22360 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22361 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22362 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22363 | esac;; | |
22364 | esac | |
c906108c | 22365 | |
c906108c | 22366 | |
bec39cab AC |
22367 | case $INSTALL in |
22368 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 22369 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 22370 | esac |
121ce6e5 | 22371 | |
b4e70030 JB |
22372 | if test x"$ac_file" != x-; then |
22373 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22374 | echo "$as_me: creating $ac_file" >&6;} | |
22375 | rm -f "$ac_file" | |
22376 | fi | |
22377 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22378 | # use $as_me), people would be surprised to read: | |
22379 | # /* config.h. Generated by config.status. */ | |
22380 | if test x"$ac_file" = x-; then | |
22381 | configure_input= | |
22382 | else | |
22383 | configure_input="$ac_file. " | |
22384 | fi | |
22385 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22386 | sed 's,.*/,,'` by configure." | |
22387 | ||
22388 | # First look for the input files in the build tree, otherwise in the | |
22389 | # src tree. | |
22390 | ac_file_inputs=`IFS=: | |
22391 | for f in $ac_file_in; do | |
22392 | case $f in | |
22393 | -) echo $tmp/stdin ;; | |
22394 | [\\/$]*) | |
22395 | # Absolute (can't be DOS-style, as IFS=:) | |
22396 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22397 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22398 | { (exit 1); exit 1; }; } | |
22399 | echo "$f";; | |
22400 | *) # Relative | |
22401 | if test -f "$f"; then | |
22402 | # Build tree | |
22403 | echo "$f" | |
22404 | elif test -f "$srcdir/$f"; then | |
22405 | # Source tree | |
22406 | echo "$srcdir/$f" | |
22407 | else | |
22408 | # /dev/null tree | |
22409 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22410 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22411 | { (exit 1); exit 1; }; } | |
22412 | fi;; | |
22413 | esac | |
22414 | done` || { (exit 1); exit 1; } | |
4e8d927d | 22415 | _ACEOF |
bec39cab AC |
22416 | cat >>$CONFIG_STATUS <<_ACEOF |
22417 | sed "$ac_vpsub | |
22418 | $extrasub | |
22419 | _ACEOF | |
22420 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22421 | :t | |
22422 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
22423 | s,@configure_input@,$configure_input,;t t |
22424 | s,@srcdir@,$ac_srcdir,;t t | |
22425 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22426 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
22427 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22428 | s,@builddir@,$ac_builddir,;t t | |
22429 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22430 | s,@top_builddir@,$ac_top_builddir,;t t | |
22431 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22432 | s,@INSTALL@,$ac_INSTALL,;t t | |
22433 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22434 | rm -f $tmp/stdin | |
22435 | if test x"$ac_file" != x-; then | |
22436 | mv $tmp/out $ac_file | |
22437 | else | |
22438 | cat $tmp/out | |
22439 | rm -f $tmp/out | |
22440 | fi | |
22441 | ||
22442 | done | |
22443 | _ACEOF | |
22444 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22445 | ||
22446 | # | |
22447 | # CONFIG_HEADER section. | |
22448 | # | |
22449 | ||
22450 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22451 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22452 | # | |
22453 | # ac_d sets the value in "#define NAME VALUE" lines. | |
22454 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
22455 | ac_dB='[ ].*$,\1#\2' | |
22456 | ac_dC=' ' | |
22457 | ac_dD=',;t' | |
22458 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22459 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22460 | ac_uB='$,\1#\2define\3' | |
22461 | ac_uC=' ' | |
22462 | ac_uD=',;t' | |
22463 | ||
22464 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
22465 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 22466 | case $ac_file in |
b4e70030 JB |
22467 | - | *:- | *:-:* ) # input from stdin |
22468 | cat >$tmp/stdin | |
22469 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22470 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22471 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22472 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22473 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 22474 | esac |
b4e70030 JB |
22475 | |
22476 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22477 | echo "$as_me: creating $ac_file" >&6;} | |
22478 | ||
22479 | # First look for the input files in the build tree, otherwise in the | |
22480 | # src tree. | |
22481 | ac_file_inputs=`IFS=: | |
22482 | for f in $ac_file_in; do | |
22483 | case $f in | |
22484 | -) echo $tmp/stdin ;; | |
22485 | [\\/$]*) | |
22486 | # Absolute (can't be DOS-style, as IFS=:) | |
22487 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22488 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22489 | { (exit 1); exit 1; }; } | |
22490 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
22491 | echo "$f";; | |
22492 | *) # Relative | |
22493 | if test -f "$f"; then | |
22494 | # Build tree | |
22495 | echo "$f" | |
22496 | elif test -f "$srcdir/$f"; then | |
22497 | # Source tree | |
22498 | echo "$srcdir/$f" | |
22499 | else | |
22500 | # /dev/null tree | |
22501 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22502 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22503 | { (exit 1); exit 1; }; } | |
22504 | fi;; | |
22505 | esac | |
22506 | done` || { (exit 1); exit 1; } | |
22507 | # Remove the trailing spaces. | |
22508 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
22509 | ||
22510 | _ACEOF | |
22511 | ||
22512 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22513 | # `conftest.undefs', that substitutes the proper values into | |
22514 | # config.h.in to produce config.h. The first handles `#define' | |
22515 | # templates, and the second `#undef' templates. | |
22516 | # And first: Protect against being on the right side of a sed subst in | |
22517 | # config.status. Protect against being in an unquoted here document | |
22518 | # in config.status. | |
22519 | rm -f conftest.defines conftest.undefs | |
22520 | # Using a here document instead of a string reduces the quoting nightmare. | |
22521 | # Putting comments in sed scripts is not portable. | |
22522 | # | |
22523 | # `end' is used to avoid that the second main sed command (meant for | |
22524 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22525 | # See the Autoconf documentation for `clear'. | |
22526 | cat >confdef2sed.sed <<\_ACEOF | |
22527 | s/[\\&,]/\\&/g | |
22528 | s,[\\$`],\\&,g | |
22529 | t clear | |
22530 | : clear | |
22531 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
22532 | t end | |
22533 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
22534 | : end | |
22535 | _ACEOF | |
22536 | # If some macros were called several times there might be several times | |
22537 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22538 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22539 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22540 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22541 | rm -f confdef2sed.sed | |
22542 | ||
22543 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
22544 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
22545 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
22546 | cat >>conftest.undefs <<\_ACEOF |
22547 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
22548 | _ACEOF | |
22549 | ||
22550 | # Break up conftest.defines because some shells have a limit on the size | |
22551 | # of here documents, and old seds have small limits too (100 cmds). | |
22552 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
22553 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
22554 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
22555 | echo ' :' >>$CONFIG_STATUS | |
22556 | rm -f conftest.tail | |
22557 | while grep . conftest.defines >/dev/null | |
bec39cab | 22558 | do |
b4e70030 JB |
22559 | # Write a limited-size here document to $tmp/defines.sed. |
22560 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22561 | # Speed up: don't consider the non `#define' lines. | |
22562 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
22563 | # Work around the forget-to-reset-the-flag bug. | |
22564 | echo 't clr' >>$CONFIG_STATUS | |
22565 | echo ': clr' >>$CONFIG_STATUS | |
22566 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 22567 | echo 'CEOF |
b4e70030 JB |
22568 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
22569 | rm -f $tmp/in | |
22570 | mv $tmp/out $tmp/in | |
22571 | ' >>$CONFIG_STATUS | |
22572 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
22573 | rm -f conftest.defines |
22574 | mv conftest.tail conftest.defines | |
22575 | done | |
b4e70030 JB |
22576 | rm -f conftest.defines |
22577 | echo ' fi # grep' >>$CONFIG_STATUS | |
22578 | echo >>$CONFIG_STATUS | |
22579 | ||
22580 | # Break up conftest.undefs because some shells have a limit on the size | |
22581 | # of here documents, and old seds have small limits too (100 cmds). | |
22582 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
22583 | rm -f conftest.tail | |
22584 | while grep . conftest.undefs >/dev/null | |
22585 | do | |
22586 | # Write a limited-size here document to $tmp/undefs.sed. | |
22587 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22588 | # Speed up: don't consider the non `#undef' | |
22589 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22590 | # Work around the forget-to-reset-the-flag bug. | |
22591 | echo 't clr' >>$CONFIG_STATUS | |
22592 | echo ': clr' >>$CONFIG_STATUS | |
22593 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
22594 | echo 'CEOF | |
22595 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
22596 | rm -f $tmp/in | |
22597 | mv $tmp/out $tmp/in | |
22598 | ' >>$CONFIG_STATUS | |
22599 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22600 | rm -f conftest.undefs | |
22601 | mv conftest.tail conftest.undefs | |
22602 | done | |
22603 | rm -f conftest.undefs | |
bec39cab AC |
22604 | |
22605 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
22606 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22607 | # use $as_me), people would be surprised to read: | |
22608 | # /* config.h. Generated by config.status. */ | |
22609 | if test x"$ac_file" = x-; then | |
22610 | echo "/* Generated by configure. */" >$tmp/config.h | |
22611 | else | |
22612 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22613 | fi | |
22614 | cat $tmp/in >>$tmp/config.h | |
22615 | rm -f $tmp/in | |
bec39cab | 22616 | if test x"$ac_file" != x-; then |
b4e70030 | 22617 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
22618 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
22619 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22620 | else | |
b4e70030 JB |
22621 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
22622 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22623 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22624 | X"$ac_file" : 'X\(//\)$' \| \ | |
22625 | X"$ac_file" : 'X\(/\)' \| \ | |
22626 | . : '\(.\)' 2>/dev/null || | |
22627 | echo X"$ac_file" | | |
22628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22629 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22630 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22631 | /^X\(\/\).*/{ s//\1/; q; } | |
22632 | s/.*/./; q'` | |
22633 | { if $as_mkdir_p; then | |
22634 | mkdir -p "$ac_dir" | |
22635 | else | |
22636 | as_dir="$ac_dir" | |
22637 | as_dirs= | |
22638 | while test ! -d "$as_dir"; do | |
22639 | as_dirs="$as_dir $as_dirs" | |
22640 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22641 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22642 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22643 | X"$as_dir" : 'X\(//\)$' \| \ | |
22644 | X"$as_dir" : 'X\(/\)' \| \ | |
22645 | . : '\(.\)' 2>/dev/null || | |
22646 | echo X"$as_dir" | | |
22647 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22648 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22649 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22650 | /^X\(\/\).*/{ s//\1/; q; } | |
22651 | s/.*/./; q'` | |
22652 | done | |
22653 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22654 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22655 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22656 | { (exit 1); exit 1; }; }; } | |
22657 | ||
bec39cab | 22658 | rm -f $ac_file |
b4e70030 | 22659 | mv $tmp/config.h $ac_file |
bec39cab AC |
22660 | fi |
22661 | else | |
b4e70030 JB |
22662 | cat $tmp/config.h |
22663 | rm -f $tmp/config.h | |
bec39cab | 22664 | fi |
e28b3332 DJ |
22665 | # Compute $ac_file's index in $config_headers. |
22666 | _am_stamp_count=1 | |
22667 | for _am_header in $config_headers :; do | |
22668 | case $_am_header in | |
22669 | $ac_file | $ac_file:* ) | |
22670 | break ;; | |
22671 | * ) | |
22672 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22673 | esac | |
22674 | done | |
22675 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22676 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22677 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22678 | X$ac_file : 'X\(//\)$' \| \ | |
22679 | X$ac_file : 'X\(/\)' \| \ | |
22680 | . : '\(.\)' 2>/dev/null || | |
22681 | echo X$ac_file | | |
22682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22683 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22684 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22685 | /^X\(\/\).*/{ s//\1/; q; } | |
22686 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
b4e70030 JB |
22687 | done |
22688 | _ACEOF | |
22689 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22690 | ||
22691 | # | |
22692 | # CONFIG_LINKS section. | |
22693 | # | |
22694 | ||
22695 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
22696 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22697 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 22698 | |
b4e70030 JB |
22699 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
22700 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
22701 | |
22702 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
22703 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
22704 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
22705 | { (exit 1); exit 1; }; } | |
c906108c | 22706 | fi |
b4e70030 JB |
22707 | rm -f $ac_dest |
22708 | ||
22709 | # Make relative symlinks. | |
22710 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22711 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22712 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22713 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22714 | X"$ac_dest" : 'X\(/\)' \| \ | |
22715 | . : '\(.\)' 2>/dev/null || | |
22716 | echo X"$ac_dest" | | |
22717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22720 | /^X\(\/\).*/{ s//\1/; q; } | |
22721 | s/.*/./; q'` | |
22722 | { if $as_mkdir_p; then | |
22723 | mkdir -p "$ac_dest_dir" | |
22724 | else | |
22725 | as_dir="$ac_dest_dir" | |
22726 | as_dirs= | |
22727 | while test ! -d "$as_dir"; do | |
22728 | as_dirs="$as_dir $as_dirs" | |
22729 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22730 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22731 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22732 | X"$as_dir" : 'X\(//\)$' \| \ | |
22733 | X"$as_dir" : 'X\(/\)' \| \ | |
22734 | . : '\(.\)' 2>/dev/null || | |
22735 | echo X"$as_dir" | | |
22736 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22737 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22738 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22739 | /^X\(\/\).*/{ s//\1/; q; } | |
22740 | s/.*/./; q'` | |
22741 | done | |
22742 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22743 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
22744 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
22745 | { (exit 1); exit 1; }; }; } | |
22746 | ||
22747 | ac_builddir=. | |
22748 | ||
22749 | if test "$ac_dest_dir" != .; then | |
22750 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
22751 | # A "../" for each directory in $ac_dir_suffix. | |
22752 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22753 | else | |
22754 | ac_dir_suffix= ac_top_builddir= | |
22755 | fi | |
22756 | ||
22757 | case $srcdir in | |
22758 | .) # No --srcdir option. We are building in place. | |
22759 | ac_srcdir=. | |
22760 | if test -z "$ac_top_builddir"; then | |
22761 | ac_top_srcdir=. | |
22762 | else | |
22763 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22764 | fi ;; | |
22765 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22766 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22767 | ac_top_srcdir=$srcdir ;; | |
22768 | *) # Relative path. | |
22769 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22770 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22771 | esac | |
22772 | ||
22773 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22774 | # the directories may not exist. | |
22775 | case `pwd` in | |
22776 | .) ac_abs_builddir="$ac_dest_dir";; | |
22777 | *) | |
22778 | case "$ac_dest_dir" in | |
22779 | .) ac_abs_builddir=`pwd`;; | |
22780 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
22781 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
22782 | esac;; | |
22783 | esac | |
22784 | case $ac_abs_builddir in | |
22785 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22786 | *) | |
22787 | case ${ac_top_builddir}. in | |
22788 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22789 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22790 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22791 | esac;; | |
22792 | esac | |
22793 | case $ac_abs_builddir in | |
22794 | .) ac_abs_srcdir=$ac_srcdir;; | |
22795 | *) | |
22796 | case $ac_srcdir in | |
22797 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22798 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22799 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22800 | esac;; | |
22801 | esac | |
22802 | case $ac_abs_builddir in | |
22803 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22804 | *) | |
22805 | case $ac_top_srcdir in | |
22806 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22807 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22808 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22809 | esac;; | |
22810 | esac | |
22811 | ||
bec39cab AC |
22812 | |
22813 | case $srcdir in | |
22814 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 22815 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 22816 | esac |
b4e70030 JB |
22817 | |
22818 | # Try a symlink, then a hard link, then a copy. | |
22819 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
22820 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
22821 | cp -p $srcdir/$ac_source $ac_dest || | |
22822 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
22823 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 22824 | { (exit 1); exit 1; }; } |
b4e70030 JB |
22825 | done |
22826 | _ACEOF | |
22827 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22828 | ||
22829 | # | |
22830 | # CONFIG_COMMANDS section. | |
22831 | # | |
22832 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22833 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22834 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22835 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22836 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22837 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22838 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22839 | X"$ac_dest" : 'X\(/\)' \| \ | |
22840 | . : '\(.\)' 2>/dev/null || | |
22841 | echo X"$ac_dest" | | |
22842 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22843 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22844 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22845 | /^X\(\/\).*/{ s//\1/; q; } | |
22846 | s/.*/./; q'` | |
22847 | { if $as_mkdir_p; then | |
22848 | mkdir -p "$ac_dir" | |
22849 | else | |
22850 | as_dir="$ac_dir" | |
22851 | as_dirs= | |
22852 | while test ! -d "$as_dir"; do | |
22853 | as_dirs="$as_dir $as_dirs" | |
22854 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22855 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22856 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22857 | X"$as_dir" : 'X\(//\)$' \| \ | |
22858 | X"$as_dir" : 'X\(/\)' \| \ | |
22859 | . : '\(.\)' 2>/dev/null || | |
22860 | echo X"$as_dir" | | |
22861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22863 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22864 | /^X\(\/\).*/{ s//\1/; q; } | |
22865 | s/.*/./; q'` | |
22866 | done | |
22867 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22868 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22869 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22870 | { (exit 1); exit 1; }; }; } | |
22871 | ||
22872 | ac_builddir=. | |
22873 | ||
22874 | if test "$ac_dir" != .; then | |
22875 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22876 | # A "../" for each directory in $ac_dir_suffix. | |
22877 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22878 | else | |
22879 | ac_dir_suffix= ac_top_builddir= | |
22880 | fi | |
22881 | ||
22882 | case $srcdir in | |
22883 | .) # No --srcdir option. We are building in place. | |
22884 | ac_srcdir=. | |
22885 | if test -z "$ac_top_builddir"; then | |
22886 | ac_top_srcdir=. | |
22887 | else | |
22888 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22889 | fi ;; | |
22890 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22891 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22892 | ac_top_srcdir=$srcdir ;; | |
22893 | *) # Relative path. | |
22894 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22895 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22896 | esac | |
22897 | ||
22898 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22899 | # the directories may not exist. | |
22900 | case `pwd` in | |
22901 | .) ac_abs_builddir="$ac_dir";; | |
22902 | *) | |
22903 | case "$ac_dir" in | |
22904 | .) ac_abs_builddir=`pwd`;; | |
22905 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22906 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22907 | esac;; | |
22908 | esac | |
22909 | case $ac_abs_builddir in | |
22910 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22911 | *) | |
22912 | case ${ac_top_builddir}. in | |
22913 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22914 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22915 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22916 | esac;; | |
22917 | esac | |
22918 | case $ac_abs_builddir in | |
22919 | .) ac_abs_srcdir=$ac_srcdir;; | |
22920 | *) | |
22921 | case $ac_srcdir in | |
22922 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22923 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22924 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22925 | esac;; | |
22926 | esac | |
22927 | case $ac_abs_builddir in | |
22928 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22929 | *) | |
22930 | case $ac_top_srcdir in | |
22931 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22932 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22933 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22934 | esac;; | |
22935 | esac | |
bec39cab | 22936 | |
bec39cab | 22937 | |
b4e70030 JB |
22938 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
22939 | echo "$as_me: executing $ac_dest commands" >&6;} | |
22940 | case $ac_dest in | |
a417dc56 | 22941 | depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
e28b3332 DJ |
22942 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
22943 | # Strip MF so we end up with the name of the file. | |
22944 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22945 | # Check whether this is an Automake generated Makefile or not. | |
22946 | # We used to match only the files named `Makefile.in', but | |
22947 | # some people rename them; so instead we look at the file content. | |
22948 | # Grep'ing the first line is not enough: some people post-process | |
22949 | # each Makefile.in and add a new line on top of each file to say so. | |
22950 | # So let's grep whole file. | |
22951 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
22952 | dirpart=`(dirname "$mf") 2>/dev/null || | |
22953 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22954 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22955 | X"$mf" : 'X\(//\)$' \| \ | |
22956 | X"$mf" : 'X\(/\)' \| \ | |
22957 | . : '\(.\)' 2>/dev/null || | |
22958 | echo X"$mf" | | |
22959 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22960 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22961 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22962 | /^X\(\/\).*/{ s//\1/; q; } | |
22963 | s/.*/./; q'` | |
22964 | else | |
22965 | continue | |
22966 | fi | |
22967 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22968 | # from the Makefile without running `make'. | |
22969 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22970 | test -z "$DEPDIR" && continue | |
22971 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22972 | test -z "am__include" && continue | |
22973 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22974 | # When using ansi2knr, U may be empty or an underscore; expand it | |
22975 | U=`sed -n 's/^U = //p' < "$mf"` | |
22976 | # Find all dependency output files, they are included files with | |
22977 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22978 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22979 | # expansion. | |
22980 | for file in `sed -n " | |
22981 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22982 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
22983 | # Make sure the directory exists. | |
22984 | test -f "$dirpart/$file" && continue | |
22985 | fdir=`(dirname "$file") 2>/dev/null || | |
22986 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22987 | X"$file" : 'X\(//\)[^/]' \| \ | |
22988 | X"$file" : 'X\(//\)$' \| \ | |
22989 | X"$file" : 'X\(/\)' \| \ | |
22990 | . : '\(.\)' 2>/dev/null || | |
22991 | echo X"$file" | | |
22992 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22993 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22994 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22995 | /^X\(\/\).*/{ s//\1/; q; } | |
22996 | s/.*/./; q'` | |
22997 | { if $as_mkdir_p; then | |
22998 | mkdir -p $dirpart/$fdir | |
22999 | else | |
23000 | as_dir=$dirpart/$fdir | |
23001 | as_dirs= | |
23002 | while test ! -d "$as_dir"; do | |
23003 | as_dirs="$as_dir $as_dirs" | |
23004 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23005 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23006 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23007 | X"$as_dir" : 'X\(//\)$' \| \ | |
23008 | X"$as_dir" : 'X\(/\)' \| \ | |
23009 | . : '\(.\)' 2>/dev/null || | |
23010 | echo X"$as_dir" | | |
23011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23012 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23013 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23014 | /^X\(\/\).*/{ s//\1/; q; } | |
23015 | s/.*/./; q'` | |
23016 | done | |
23017 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23018 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
23019 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
23020 | { (exit 1); exit 1; }; }; } | |
23021 | ||
23022 | # echo "creating $dirpart/$file" | |
23023 | echo '# dummy' > "$dirpart/$file" | |
23024 | done | |
23025 | done | |
4e8d927d | 23026 | ;; |
b4e70030 | 23027 | default ) |
c906108c SS |
23028 | case x$CONFIG_HEADERS in |
23029 | xconfig.h:config.in) | |
23030 | echo > stamp-h ;; | |
23031 | esac | |
bec39cab AC |
23032 | ;; |
23033 | esac | |
b4e70030 JB |
23034 | done |
23035 | _ACEOF | |
c906108c | 23036 | |
b4e70030 | 23037 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
23038 | |
23039 | { (exit 0); exit 0; } | |
23040 | _ACEOF | |
c906108c | 23041 | chmod +x $CONFIG_STATUS |
bec39cab AC |
23042 | ac_clean_files=$ac_clean_files_save |
23043 | ||
23044 | ||
23045 | # configure is writing to config.log, and then calls config.status. | |
23046 | # config.status does its own redirection, appending to config.log. | |
23047 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23048 | # by configure, so config.status won't be able to write to it; its | |
23049 | # output is simply discarded. So we exec the FD to /dev/null, | |
23050 | # effectively closing config.log, so it can be properly (re)opened and | |
23051 | # appended to by config.status. When coming back to configure, we | |
23052 | # need to make the FD available again. | |
23053 | if test "$no_create" != yes; then | |
23054 | ac_cs_success=: | |
23055 | ac_config_status_args= | |
23056 | test "$silent" = yes && | |
23057 | ac_config_status_args="$ac_config_status_args --quiet" | |
23058 | exec 5>/dev/null | |
23059 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23060 | exec 5>>config.log | |
23061 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23062 | # would make configure fail if this is the last instruction. | |
23063 | $ac_cs_success || { (exit 1); exit 1; } | |
23064 | fi | |
c906108c | 23065 | |
bec39cab | 23066 | # |
fdc59709 | 23067 | # CONFIG_SUBDIRS section, as fixed in confsubdir.m4. |
bec39cab | 23068 | # |
c906108c SS |
23069 | if test "$no_recursion" != yes; then |
23070 | ||
23071 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23072 | ac_sub_configure_args= | |
23073 | ac_prev= | |
fdc59709 PB |
23074 | eval "set x $ac_configure_args" |
23075 | shift | |
23076 | for ac_arg | |
23077 | do | |
c906108c SS |
23078 | if test -n "$ac_prev"; then |
23079 | ac_prev= | |
23080 | continue | |
23081 | fi | |
bec39cab | 23082 | case $ac_arg in |
c906108c SS |
23083 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23084 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23085 | ac_prev=cache_file ;; | |
23086 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
23087 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
23088 | | --c=*) | |
23089 | ;; | |
23090 | --config-cache | -C) | |
c906108c SS |
23091 | ;; |
23092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23093 | ac_prev=srcdir ;; | |
23094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23095 | ;; | |
bec39cab AC |
23096 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
23097 | ac_prev=prefix ;; | |
23098 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23099 | ;; | |
fdc59709 PB |
23100 | *) |
23101 | case $ac_arg in | |
23102 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
23103 | esac | |
23104 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
c906108c SS |
23105 | esac |
23106 | done | |
23107 | ||
bec39cab AC |
23108 | # Always prepend --prefix to ensure using the same prefix |
23109 | # in subdir configurations. | |
fdc59709 PB |
23110 | ac_arg="--prefix=$prefix" |
23111 | case $ac_arg in | |
23112 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
23113 | esac | |
23114 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | |
bec39cab | 23115 | |
b4e70030 | 23116 | ac_popdir=`pwd` |
bec39cab | 23117 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
23118 | |
23119 | # Do not complain, so a configure script can configure whichever | |
23120 | # parts of a large source tree are present. | |
fdc59709 | 23121 | test -d "$srcdir/$ac_dir" || continue |
c906108c | 23122 | |
b4e70030 JB |
23123 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
23124 | echo "$as_me: configuring in $ac_dir" >&6;} | |
23125 | { if $as_mkdir_p; then | |
23126 | mkdir -p "$ac_dir" | |
23127 | else | |
23128 | as_dir="$ac_dir" | |
bec39cab | 23129 | as_dirs= |
b4e70030 JB |
23130 | while test ! -d "$as_dir"; do |
23131 | as_dirs="$as_dir $as_dirs" | |
23132 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
23133 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
23134 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23135 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23136 | X"$as_dir" : 'X\(/\)' \| \ |
23137 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23138 | echo X"$as_dir" | |
b4e70030 JB |
23139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
23140 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23141 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23142 | /^X\(\/\).*/{ s//\1/; q; } | |
23143 | s/.*/./; q'` | |
bec39cab | 23144 | done |
b4e70030 JB |
23145 | test ! -n "$as_dirs" || mkdir $as_dirs |
23146 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23147 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 23148 | { (exit 1); exit 1; }; }; } |
b4e70030 | 23149 | |
bec39cab AC |
23150 | ac_builddir=. |
23151 | ||
b4e70030 | 23152 | if test "$ac_dir" != .; then |
bec39cab | 23153 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
23154 | # A "../" for each directory in $ac_dir_suffix. |
23155 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23156 | else | |
23157 | ac_dir_suffix= ac_top_builddir= | |
23158 | fi | |
bec39cab AC |
23159 | |
23160 | case $srcdir in | |
b4e70030 | 23161 | .) # No --srcdir option. We are building in place. |
bec39cab | 23162 | ac_srcdir=. |
b4e70030 JB |
23163 | if test -z "$ac_top_builddir"; then |
23164 | ac_top_srcdir=. | |
23165 | else | |
23166 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23167 | fi ;; | |
23168 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 23169 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
23170 | ac_top_srcdir=$srcdir ;; |
23171 | *) # Relative path. | |
23172 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23173 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23174 | esac | |
23175 | ||
23176 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23177 | # the directories may not exist. | |
23178 | case `pwd` in | |
23179 | .) ac_abs_builddir="$ac_dir";; | |
23180 | *) | |
23181 | case "$ac_dir" in | |
23182 | .) ac_abs_builddir=`pwd`;; | |
23183 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23184 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23185 | esac;; | |
23186 | esac | |
23187 | case $ac_abs_builddir in | |
23188 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23189 | *) | |
23190 | case ${ac_top_builddir}. in | |
23191 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23192 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23193 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23194 | esac;; | |
23195 | esac | |
23196 | case $ac_abs_builddir in | |
23197 | .) ac_abs_srcdir=$ac_srcdir;; | |
23198 | *) | |
23199 | case $ac_srcdir in | |
23200 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23201 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23202 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23203 | esac;; | |
23204 | esac | |
23205 | case $ac_abs_builddir in | |
23206 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23207 | *) | |
23208 | case $ac_top_srcdir in | |
23209 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23210 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23211 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23212 | esac;; | |
bec39cab | 23213 | esac |
c906108c | 23214 | |
c906108c | 23215 | |
fdc59709 | 23216 | cd "$ac_dir" |
c906108c SS |
23217 | |
23218 | # Check for guested configure; otherwise get Cygnus style configure. | |
fdc59709 PB |
23219 | if test -f "$ac_srcdir/configure.gnu"; then |
23220 | ac_sub_configure=$ac_srcdir/configure.gnu | |
23221 | elif test -f "$ac_srcdir/configure"; then | |
23222 | ac_sub_configure=$ac_srcdir/configure | |
23223 | elif test -f "$ac_srcdir/configure.in"; then | |
23224 | # This should be Cygnus configure. | |
23225 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 23226 | else |
bec39cab AC |
23227 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
23228 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
23229 | ac_sub_configure= |
23230 | fi | |
23231 | ||
23232 | # The recursion is here. | |
23233 | if test -n "$ac_sub_configure"; then | |
c906108c | 23234 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
23235 | case $cache_file in |
23236 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
23237 | *) # Relative path. |
23238 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 23239 | esac |
c906108c | 23240 | |
fdc59709 PB |
23241 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
23242 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 23243 | # The eval makes quoting arguments work. |
fdc59709 PB |
23244 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
23245 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
bec39cab AC |
23246 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
23247 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23248 | { (exit 1); exit 1; }; } | |
c906108c SS |
23249 | fi |
23250 | ||
fdc59709 | 23251 | cd "$ac_popdir" |
c906108c SS |
23252 | done |
23253 | fi | |
23254 | ||
23255 | ||
23256 | exit 0 |