Commit | Line | Data |
---|---|---|
d6e9fb05 | 1 | #! /bin/sh |
d6e9fb05 | 2 | # Guess values for system-dependent variables and create Makefiles. |
dae5f5cf | 3 | # Generated by GNU Autoconf 2.59. |
d6e9fb05 | 4 | # |
dae5f5cf | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
d6e9fb05 JK |
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+"$@"}'='"$@"' | |
dae5f5cf DJ |
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. | |
dae5f5cf | 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 | |
dae5f5cf | 47 | $as_unset $as_var |
bec39cab AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
dae5f5cf | 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 | ||
dae5f5cf | 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. | |
dae5f5cf | 66 | as_me=`$as_basename "$0" || |
bec39cab AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
dae5f5cf DJ |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 71 | echo X/"$0" | |
dae5f5cf DJ |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
bec39cab | 76 | |
b80864fb | 77 | |
dae5f5cf DJ |
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 | |
b80864fb | 85 | |
dae5f5cf DJ |
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 | |
b80864fb DJ |
97 | fi |
98 | ||
b80864fb | 99 | |
dae5f5cf DJ |
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 | |
b80864fb | 116 | |
dae5f5cf DJ |
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 |
dae5f5cf | 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=. | |
dae5f5cf DJ |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
bec39cab | 137 | /*) |
dae5f5cf | 138 | if ("$as_dir/$as_base" -c ' |
b80864fb DJ |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
dae5f5cf | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
b80864fb | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dae5f5cf DJ |
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 | |
dae5f5cf DJ |
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 |
dae5f5cf DJ |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
bec39cab AC |
165 | sed ' |
166 | N | |
dae5f5cf DJ |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 170 | t loop |
dae5f5cf DJ |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 173 | ' >$as_me.lineno && |
dae5f5cf | 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 | |
dae5f5cf DJ |
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 | ||
dae5f5cf DJ |
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 | ||
dae5f5cf | 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 | |
dae5f5cf DJ |
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' |
dae5f5cf DJ |
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 | |
dae5f5cf | 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 | |
d6e9fb05 | 224 | |
dae5f5cf | 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 | ||
dae5f5cf DJ |
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 AC |
242 | |
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
dae5f5cf DJ |
249 | exec 6>&1 |
250 | ||
bec39cab AC |
251 | # |
252 | # Initializations. | |
253 | # | |
d6e9fb05 | 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 | ||
dae5f5cf DJ |
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="server.c" | |
e28b3332 | 275 | ac_config_libobj_dir=../gnulib |
bec39cab AC |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
dae5f5cf DJ |
304 | #else |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
bec39cab AC |
308 | #endif |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
312 | ||
c16158bc | 313 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS' |
bec39cab | 314 | ac_subst_files='' |
ec56be1b | 315 | ac_pwd=`pwd` |
d6e9fb05 JK |
316 | |
317 | # Initialize some variables set by options. | |
bec39cab AC |
318 | ac_init_help= |
319 | ac_init_version=false | |
d6e9fb05 JK |
320 | # The variables have the same names as the options, with |
321 | # dashes changed to underlines. | |
bec39cab | 322 | cache_file=/dev/null |
d6e9fb05 | 323 | exec_prefix=NONE |
d6e9fb05 | 324 | no_create= |
d6e9fb05 JK |
325 | no_recursion= |
326 | prefix=NONE | |
327 | program_prefix=NONE | |
328 | program_suffix=NONE | |
329 | program_transform_name=s,x,x, | |
330 | silent= | |
331 | site= | |
332 | srcdir= | |
d6e9fb05 JK |
333 | verbose= |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
bec39cab AC |
336 | |
337 | # Installation directory options. | |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 | # and all the variables that are supposed to be based on exec_prefix | |
340 | # by default will actually change. | |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
d6e9fb05 JK |
342 | bindir='${exec_prefix}/bin' |
343 | sbindir='${exec_prefix}/sbin' | |
344 | libexecdir='${exec_prefix}/libexec' | |
dae5f5cf | 345 | datadir='${prefix}/share' |
d6e9fb05 JK |
346 | sysconfdir='${prefix}/etc' |
347 | sharedstatedir='${prefix}/com' | |
348 | localstatedir='${prefix}/var' | |
dae5f5cf | 349 | libdir='${exec_prefix}/lib' |
d6e9fb05 JK |
350 | includedir='${prefix}/include' |
351 | oldincludedir='/usr/include' | |
dae5f5cf DJ |
352 | infodir='${prefix}/info' |
353 | mandir='${prefix}/man' | |
d6e9fb05 | 354 | |
d6e9fb05 JK |
355 | ac_prev= |
356 | for ac_option | |
357 | do | |
d6e9fb05 JK |
358 | # If the previous option needs an argument, assign it. |
359 | if test -n "$ac_prev"; then | |
dae5f5cf | 360 | eval "$ac_prev=\$ac_option" |
d6e9fb05 JK |
361 | ac_prev= |
362 | continue | |
363 | fi | |
364 | ||
dae5f5cf | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
d6e9fb05 JK |
366 | |
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
dae5f5cf | 369 | case $ac_option in |
d6e9fb05 JK |
370 | |
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 374 | bindir=$ac_optarg ;; |
d6e9fb05 JK |
375 | |
376 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 377 | ac_prev=build_alias ;; |
d6e9fb05 | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 379 | build_alias=$ac_optarg ;; |
d6e9fb05 JK |
380 | |
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
386 | cache_file=$ac_optarg ;; |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
d6e9fb05 | 390 | |
dae5f5cf | 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
d6e9fb05 | 392 | ac_prev=datadir ;; |
dae5f5cf DJ |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
394 | | --da=*) | |
bec39cab | 395 | datadir=$ac_optarg ;; |
d6e9fb05 JK |
396 | |
397 | -disable-* | --disable-*) | |
bec39cab | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d6e9fb05 | 399 | # Reject names that are not valid shell variable names. |
bec39cab AC |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 | { (exit 1); exit 1; }; } | |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
dae5f5cf | 404 | eval "enable_$ac_feature=no" ;; |
d6e9fb05 JK |
405 | |
406 | -enable-* | --enable-*) | |
bec39cab | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d6e9fb05 | 408 | # Reject names that are not valid shell variable names. |
bec39cab AC |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 | { (exit 1); exit 1; }; } | |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
dae5f5cf DJ |
413 | case $ac_option in |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
415 | *) ac_optarg=yes ;; | |
416 | esac | |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
d6e9fb05 JK |
418 | |
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | | --exec | --exe | --ex) | |
422 | ac_prev=exec_prefix ;; | |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 426 | exec_prefix=$ac_optarg ;; |
d6e9fb05 JK |
427 | |
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
bec39cab AC |
432 | -help | --help | --hel | --he | -h) |
433 | ac_init_help=long ;; | |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 | ac_init_help=recursive ;; | |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 | ac_init_help=short ;; | |
d6e9fb05 JK |
438 | |
439 | -host | --host | --hos | --ho) | |
bec39cab | 440 | ac_prev=host_alias ;; |
d6e9fb05 | 441 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 442 | host_alias=$ac_optarg ;; |
d6e9fb05 JK |
443 | |
444 | -includedir | --includedir | --includedi | --included | --include \ | |
445 | | --includ | --inclu | --incl | --inc) | |
446 | ac_prev=includedir ;; | |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 449 | includedir=$ac_optarg ;; |
d6e9fb05 JK |
450 | |
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 454 | infodir=$ac_optarg ;; |
d6e9fb05 JK |
455 | |
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 459 | libdir=$ac_optarg ;; |
d6e9fb05 JK |
460 | |
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | | --libexe | --libex | --libe) | |
463 | ac_prev=libexecdir ;; | |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 466 | libexecdir=$ac_optarg ;; |
d6e9fb05 JK |
467 | |
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
dae5f5cf DJ |
469 | | --localstate | --localstat | --localsta | --localst \ |
470 | | --locals | --local | --loca | --loc | --lo) | |
d6e9fb05 JK |
471 | ac_prev=localstatedir ;; |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dae5f5cf DJ |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 475 | localstatedir=$ac_optarg ;; |
d6e9fb05 JK |
476 | |
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 480 | mandir=$ac_optarg ;; |
d6e9fb05 JK |
481 | |
482 | -nfp | --nfp | --nf) | |
483 | # Obsolete; use --without-fp. | |
484 | with_fp=no ;; | |
485 | ||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 487 | | --no-cr | --no-c | -n) |
d6e9fb05 JK |
488 | no_create=yes ;; |
489 | ||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 | no_recursion=yes ;; | |
493 | ||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | | --oldin | --oldi | --old | --ol | --o) | |
497 | ac_prev=oldincludedir ;; | |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 501 | oldincludedir=$ac_optarg ;; |
d6e9fb05 JK |
502 | |
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 506 | prefix=$ac_optarg ;; |
d6e9fb05 JK |
507 | |
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | | --program-pre | --program-pr | --program-p) | |
510 | ac_prev=program_prefix ;; | |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 513 | program_prefix=$ac_optarg ;; |
d6e9fb05 JK |
514 | |
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | | --program-suf | --program-su | --program-s) | |
517 | ac_prev=program_suffix ;; | |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 520 | program_suffix=$ac_optarg ;; |
d6e9fb05 JK |
521 | |
522 | -program-transform-name | --program-transform-name \ | |
523 | | --program-transform-nam | --program-transform-na \ | |
524 | | --program-transform-n | --program-transform- \ | |
525 | | --program-transform | --program-transfor \ | |
526 | | --program-transfo | --program-transf \ | |
527 | | --program-trans | --program-tran \ | |
528 | | --progr-tra | --program-tr | --program-t) | |
529 | ac_prev=program_transform_name ;; | |
530 | -program-transform-name=* | --program-transform-name=* \ | |
531 | | --program-transform-nam=* | --program-transform-na=* \ | |
532 | | --program-transform-n=* | --program-transform-=* \ | |
533 | | --program-transform=* | --program-transfor=* \ | |
534 | | --program-transfo=* | --program-transf=* \ | |
535 | | --program-trans=* | --program-tran=* \ | |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 537 | program_transform_name=$ac_optarg ;; |
d6e9fb05 JK |
538 | |
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | | -silent | --silent | --silen | --sile | --sil) | |
541 | silent=yes ;; | |
542 | ||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 | ac_prev=sbindir ;; | |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | | --sbi=* | --sb=*) | |
bec39cab | 547 | sbindir=$ac_optarg ;; |
d6e9fb05 JK |
548 | |
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | | --sha | --sh) | |
553 | ac_prev=sharedstatedir ;; | |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | | --sha=* | --sh=*) | |
bec39cab | 558 | sharedstatedir=$ac_optarg ;; |
d6e9fb05 JK |
559 | |
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
bec39cab | 563 | site=$ac_optarg ;; |
434c4c77 | 564 | |
d6e9fb05 JK |
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 568 | srcdir=$ac_optarg ;; |
d6e9fb05 JK |
569 | |
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | | --syscon | --sysco | --sysc | --sys | --sy) | |
572 | ac_prev=sysconfdir ;; | |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 575 | sysconfdir=$ac_optarg ;; |
d6e9fb05 JK |
576 | |
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 578 | ac_prev=target_alias ;; |
d6e9fb05 | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 580 | target_alias=$ac_optarg ;; |
d6e9fb05 JK |
581 | |
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
bec39cab AC |
585 | -version | --version | --versio | --versi | --vers | -V) |
586 | ac_init_version=: ;; | |
d6e9fb05 JK |
587 | |
588 | -with-* | --with-*) | |
bec39cab | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d6e9fb05 | 590 | # Reject names that are not valid shell variable names. |
bec39cab AC |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 | { (exit 1); exit 1; }; } | |
d6e9fb05 | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
dae5f5cf DJ |
595 | case $ac_option in |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
597 | *) ac_optarg=yes ;; | |
598 | esac | |
599 | eval "with_$ac_package='$ac_optarg'" ;; | |
d6e9fb05 JK |
600 | |
601 | -without-* | --without-*) | |
bec39cab | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d6e9fb05 | 603 | # Reject names that are not valid shell variable names. |
bec39cab AC |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 | { (exit 1); exit 1; }; } | |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
dae5f5cf | 608 | eval "with_$ac_package=no" ;; |
d6e9fb05 JK |
609 | |
610 | --x) | |
611 | # Obsolete; use --with-x. | |
612 | with_x=yes ;; | |
613 | ||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | | --x-incl | --x-inc | --x-in | --x-i) | |
616 | ac_prev=x_includes ;; | |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 619 | x_includes=$ac_optarg ;; |
d6e9fb05 JK |
620 | |
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 | ac_prev=x_libraries ;; | |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 626 | x_libraries=$ac_optarg ;; |
d6e9fb05 | 627 | |
bec39cab AC |
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
d6e9fb05 JK |
631 | ;; |
632 | ||
bec39cab AC |
633 | *=*) |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 | # Reject names that are not valid shell variable names. | |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 | { (exit 1); exit 1; }; } | |
dae5f5cf DJ |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
640 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
641 | export $ac_envvar ;; |
642 | ||
d6e9fb05 | 643 | *) |
bec39cab AC |
644 | # FIXME: should be removed in autoconf 3.0. |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
d6e9fb05 JK |
649 | ;; |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
bec39cab AC |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 | { (exit 1); exit 1; }; } | |
d6e9fb05 | 658 | fi |
d6e9fb05 | 659 | |
dae5f5cf DJ |
660 | # Be sure to have absolute paths. |
661 | for ac_var in exec_prefix prefix | |
d6e9fb05 | 662 | do |
dae5f5cf | 663 | eval ac_val=$`echo $ac_var` |
bec39cab | 664 | case $ac_val in |
dae5f5cf DJ |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 | { (exit 1); exit 1; }; };; | |
668 | esac | |
669 | done | |
670 | ||
671 | # Be sure to have absolute paths. | |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
673 | localstatedir libdir includedir oldincludedir infodir mandir | |
674 | do | |
675 | eval ac_val=$`echo $ac_var` | |
676 | case $ac_val in | |
677 | [\\/$]* | ?:[\\/]* ) ;; | |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 | { (exit 1); exit 1; }; };; | |
d6e9fb05 JK |
680 | esac |
681 | done | |
682 | ||
bec39cab AC |
683 | # There might be people who depend on the old broken behavior: `$host' |
684 | # used to hold the argument of --host etc. | |
685 | # FIXME: To remove some day. | |
686 | build=$build_alias | |
687 | host=$host_alias | |
688 | target=$target_alias | |
689 | ||
690 | # FIXME: To remove some day. | |
691 | if test "x$host_alias" != x; then | |
692 | if test "x$build_alias" = x; then | |
693 | cross_compiling=maybe | |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 | elif test "x$build_alias" != "x$host_alias"; then | |
697 | cross_compiling=yes | |
698 | fi | |
699 | fi | |
d6e9fb05 | 700 | |
bec39cab AC |
701 | ac_tool_prefix= |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
d6e9fb05 | 705 | |
d6e9fb05 JK |
706 | |
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
dae5f5cf DJ |
710 | # Try the directory containing this script, then its parent. |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
713 | X"$0" : 'X\(//\)[^/]' \| \ | |
714 | X"$0" : 'X\(//\)$' \| \ | |
dae5f5cf DJ |
715 | X"$0" : 'X\(/\)' \| \ |
716 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 717 | echo X"$0" | |
dae5f5cf DJ |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 | /^X\(\/\/\)$/{ s//\1/; q; } | |
721 | /^X\(\/\).*/{ s//\1/; q; } | |
722 | s/.*/./; q'` | |
d6e9fb05 | 723 | srcdir=$ac_confdir |
dae5f5cf | 724 | if test ! -r $srcdir/$ac_unique_file; then |
d6e9fb05 JK |
725 | srcdir=.. |
726 | fi | |
727 | else | |
728 | ac_srcdir_defaulted=no | |
729 | fi | |
dae5f5cf DJ |
730 | if test ! -r $srcdir/$ac_unique_file; then |
731 | if test "$ac_srcdir_defaulted" = yes; then | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | else | |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 736 | { (exit 1); exit 1; }; } |
dae5f5cf | 737 | fi |
d6e9fb05 | 738 | fi |
dae5f5cf DJ |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 741 | { (exit 1); exit 1; }; } |
dae5f5cf DJ |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
743 | ac_env_build_alias_set=${build_alias+set} | |
744 | ac_env_build_alias_value=$build_alias | |
745 | ac_cv_env_build_alias_set=${build_alias+set} | |
746 | ac_cv_env_build_alias_value=$build_alias | |
747 | ac_env_host_alias_set=${host_alias+set} | |
748 | ac_env_host_alias_value=$host_alias | |
749 | ac_cv_env_host_alias_set=${host_alias+set} | |
750 | ac_cv_env_host_alias_value=$host_alias | |
751 | ac_env_target_alias_set=${target_alias+set} | |
752 | ac_env_target_alias_value=$target_alias | |
753 | ac_cv_env_target_alias_set=${target_alias+set} | |
754 | ac_cv_env_target_alias_value=$target_alias | |
755 | ac_env_CC_set=${CC+set} | |
756 | ac_env_CC_value=$CC | |
757 | ac_cv_env_CC_set=${CC+set} | |
758 | ac_cv_env_CC_value=$CC | |
759 | ac_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_env_CFLAGS_value=$CFLAGS | |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_cv_env_CFLAGS_value=$CFLAGS | |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_env_CPP_set=${CPP+set} | |
772 | ac_env_CPP_value=$CPP | |
773 | ac_cv_env_CPP_set=${CPP+set} | |
774 | ac_cv_env_CPP_value=$CPP | |
d6e9fb05 | 775 | |
bec39cab AC |
776 | # |
777 | # Report the --help message. | |
778 | # | |
779 | if test "$ac_init_help" = "long"; then | |
780 | # Omit some internal or obsolete options to make the list less imposing. | |
781 | # This message is too long to be a string in the A/UX 3.1 sh. | |
782 | cat <<_ACEOF | |
783 | \`configure' configures this package to adapt to many kinds of systems. | |
784 | ||
785 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
786 | ||
787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
788 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
789 | ||
790 | Defaults for the options are specified in brackets. | |
791 | ||
792 | Configuration: | |
793 | -h, --help display this help and exit | |
794 | --help=short display options specific to this package | |
795 | --help=recursive display the short help of all the included packages | |
796 | -V, --version display version information and exit | |
797 | -q, --quiet, --silent do not print \`checking...' messages | |
798 | --cache-file=FILE cache test results in FILE [disabled] | |
799 | -C, --config-cache alias for \`--cache-file=config.cache' | |
800 | -n, --no-create do not create output files | |
801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
802 | ||
dae5f5cf DJ |
803 | _ACEOF |
804 | ||
805 | cat <<_ACEOF | |
bec39cab AC |
806 | Installation directories: |
807 | --prefix=PREFIX install architecture-independent files in PREFIX | |
808 | [$ac_default_prefix] | |
809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
810 | [PREFIX] | |
811 | ||
812 | By default, \`make install' will install all the files in | |
813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
815 | for instance \`--prefix=\$HOME'. | |
816 | ||
817 | For better control, use the options below. | |
818 | ||
819 | Fine tuning of the installation directories: | |
820 | --bindir=DIR user executables [EPREFIX/bin] | |
821 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
822 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
dae5f5cf | 823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
827 | --libdir=DIR object code libraries [EPREFIX/lib] | |
828 | --includedir=DIR C header files [PREFIX/include] | |
829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
dae5f5cf DJ |
830 | --infodir=DIR info documentation [PREFIX/info] |
831 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
832 | _ACEOF |
833 | ||
834 | cat <<\_ACEOF | |
835 | ||
dcdb98d2 DJ |
836 | Program names: |
837 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
838 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
839 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
840 | ||
bec39cab AC |
841 | System types: |
842 | --build=BUILD configure for building on BUILD [guessed] | |
843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
844 | --target=TARGET configure for building compilers for TARGET [HOST] | |
845 | _ACEOF | |
846 | fi | |
847 | ||
848 | if test -n "$ac_init_help"; then | |
849 | ||
850 | cat <<\_ACEOF | |
851 | ||
c16158bc JM |
852 | Optional Packages: |
853 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
854 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
855 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
856 | --with-bugurl=URL Direct users to URL to report a bug | |
857 | ||
bec39cab AC |
858 | Some influential environment variables: |
859 | CC C compiler command | |
860 | CFLAGS C compiler flags | |
861 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
862 | nonstandard directory <lib dir> | |
dae5f5cf DJ |
863 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
864 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
865 | CPP C preprocessor |
866 | ||
867 | Use these variables to override the choices made by `configure' or to help | |
868 | it to find libraries and programs with nonstandard names/locations. | |
869 | ||
870 | _ACEOF | |
871 | fi | |
872 | ||
873 | if test "$ac_init_help" = "recursive"; then | |
874 | # If there are subdirs, report their specific --help. | |
dae5f5cf | 875 | ac_popdir=`pwd` |
bec39cab | 876 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dae5f5cf | 877 | test -d $ac_dir || continue |
bec39cab AC |
878 | ac_builddir=. |
879 | ||
dae5f5cf | 880 | if test "$ac_dir" != .; then |
bec39cab | 881 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dae5f5cf DJ |
882 | # A "../" for each directory in $ac_dir_suffix. |
883 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
884 | else | |
885 | ac_dir_suffix= ac_top_builddir= | |
886 | fi | |
bec39cab AC |
887 | |
888 | case $srcdir in | |
dae5f5cf | 889 | .) # No --srcdir option. We are building in place. |
bec39cab | 890 | ac_srcdir=. |
dae5f5cf DJ |
891 | if test -z "$ac_top_builddir"; then |
892 | ac_top_srcdir=. | |
893 | else | |
894 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
895 | fi ;; | |
896 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 897 | ac_srcdir=$srcdir$ac_dir_suffix; |
dae5f5cf DJ |
898 | ac_top_srcdir=$srcdir ;; |
899 | *) # Relative path. | |
900 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
901 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
902 | esac | |
903 | ||
904 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
905 | # the directories may not exist. | |
906 | case `pwd` in | |
907 | .) ac_abs_builddir="$ac_dir";; | |
908 | *) | |
909 | case "$ac_dir" in | |
910 | .) ac_abs_builddir=`pwd`;; | |
911 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
912 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
913 | esac;; | |
914 | esac | |
915 | case $ac_abs_builddir in | |
916 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
917 | *) | |
918 | case ${ac_top_builddir}. in | |
919 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
920 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
921 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
922 | esac;; | |
923 | esac | |
924 | case $ac_abs_builddir in | |
925 | .) ac_abs_srcdir=$ac_srcdir;; | |
926 | *) | |
927 | case $ac_srcdir in | |
928 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
930 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
935 | *) | |
936 | case $ac_top_srcdir in | |
937 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
939 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
940 | esac;; | |
bec39cab | 941 | esac |
dae5f5cf DJ |
942 | |
943 | cd $ac_dir | |
944 | # Check for guested configure; otherwise get Cygnus style configure. | |
945 | if test -f $ac_srcdir/configure.gnu; then | |
946 | echo | |
947 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
948 | elif test -f $ac_srcdir/configure; then | |
949 | echo | |
950 | $SHELL $ac_srcdir/configure --help=recursive | |
951 | elif test -f $ac_srcdir/configure.ac || | |
952 | test -f $ac_srcdir/configure.in; then | |
953 | echo | |
954 | $ac_configure --help | |
434c4c77 | 955 | else |
bec39cab | 956 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dae5f5cf DJ |
957 | fi |
958 | cd $ac_popdir | |
bec39cab AC |
959 | done |
960 | fi | |
961 | ||
dae5f5cf | 962 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
963 | if $ac_init_version; then |
964 | cat <<\_ACEOF | |
965 | ||
dae5f5cf | 966 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
967 | This configure script is free software; the Free Software Foundation |
968 | gives unlimited permission to copy, distribute and modify it. | |
969 | _ACEOF | |
dae5f5cf | 970 | exit 0 |
bec39cab | 971 | fi |
dae5f5cf DJ |
972 | exec 5>config.log |
973 | cat >&5 <<_ACEOF | |
bec39cab AC |
974 | This file contains any messages produced by compilers while |
975 | running configure, to aid debugging if configure makes a mistake. | |
976 | ||
977 | It was created by $as_me, which was | |
dae5f5cf | 978 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
979 | |
980 | $ $0 $@ | |
981 | ||
982 | _ACEOF | |
983 | { | |
984 | cat <<_ASUNAME | |
985 | ## --------- ## | |
986 | ## Platform. ## | |
987 | ## --------- ## | |
988 | ||
989 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
990 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
991 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
992 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
993 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
994 | ||
995 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
996 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
997 | ||
998 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
999 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1000 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dae5f5cf | 1001 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1002 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1003 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1004 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1005 | ||
1006 | _ASUNAME | |
1007 | ||
1008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1009 | for as_dir in $PATH | |
1010 | do | |
1011 | IFS=$as_save_IFS | |
1012 | test -z "$as_dir" && as_dir=. | |
1013 | echo "PATH: $as_dir" | |
1014 | done | |
1015 | ||
1016 | } >&5 | |
1017 | ||
1018 | cat >&5 <<_ACEOF | |
1019 | ||
1020 | ||
1021 | ## ----------- ## | |
1022 | ## Core tests. ## | |
1023 | ## ----------- ## | |
1024 | ||
1025 | _ACEOF | |
1026 | ||
1027 | ||
1028 | # Keep a trace of the command line. | |
1029 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1030 | # Strip out --silent because we don't want to record it for future runs. | |
1031 | # Also quote any args containing shell meta-characters. | |
1032 | # Make two passes to allow for proper duplicate-argument suppression. | |
1033 | ac_configure_args= | |
1034 | ac_configure_args0= | |
1035 | ac_configure_args1= | |
dae5f5cf | 1036 | ac_sep= |
bec39cab AC |
1037 | ac_must_keep_next=false |
1038 | for ac_pass in 1 2 | |
1039 | do | |
1040 | for ac_arg | |
1041 | do | |
1042 | case $ac_arg in | |
1043 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1044 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1045 | | -silent | --silent | --silen | --sile | --sil) | |
1046 | continue ;; | |
dae5f5cf | 1047 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1048 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1049 | esac | |
1050 | case $ac_pass in | |
1051 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1052 | 2) | |
1053 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1054 | if test $ac_must_keep_next = true; then | |
1055 | ac_must_keep_next=false # Got value, back to normal. | |
1056 | else | |
1057 | case $ac_arg in | |
1058 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1059 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1060 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1061 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1062 | case "$ac_configure_args0 " in | |
1063 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1064 | esac | |
1065 | ;; | |
1066 | -* ) ac_must_keep_next=true ;; | |
1067 | esac | |
1068 | fi | |
dae5f5cf DJ |
1069 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1070 | # Get rid of the leading space. | |
1071 | ac_sep=" " | |
bec39cab AC |
1072 | ;; |
1073 | esac | |
1074 | done | |
1075 | done | |
1076 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1077 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1078 | ||
1079 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1080 | # config.log. We remove comments because anyway the quotes in there | |
1081 | # would cause problems or look ugly. | |
dae5f5cf DJ |
1082 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1083 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1084 | trap 'exit_status=$? |
1085 | # Save into config.log some information that might help in debugging. | |
1086 | { | |
1087 | echo | |
1088 | ||
1089 | cat <<\_ASBOX | |
1090 | ## ---------------- ## | |
1091 | ## Cache variables. ## | |
1092 | ## ---------------- ## | |
1093 | _ASBOX | |
1094 | echo | |
1095 | # The following way of writing the cache mishandles newlines in values, | |
dae5f5cf | 1096 | { |
bec39cab | 1097 | (set) 2>&1 | |
dae5f5cf DJ |
1098 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1099 | *ac_space=\ *) | |
bec39cab | 1100 | sed -n \ |
dae5f5cf DJ |
1101 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1102 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1103 | ;; | |
bec39cab | 1104 | *) |
dae5f5cf DJ |
1105 | sed -n \ |
1106 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1107 | ;; |
dae5f5cf DJ |
1108 | esac; |
1109 | } | |
bec39cab AC |
1110 | echo |
1111 | ||
1112 | cat <<\_ASBOX | |
1113 | ## ----------------- ## | |
1114 | ## Output variables. ## | |
1115 | ## ----------------- ## | |
1116 | _ASBOX | |
1117 | echo | |
1118 | for ac_var in $ac_subst_vars | |
1119 | do | |
dae5f5cf DJ |
1120 | eval ac_val=$`echo $ac_var` |
1121 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1122 | done | sort |
1123 | echo | |
1124 | ||
1125 | if test -n "$ac_subst_files"; then | |
1126 | cat <<\_ASBOX | |
dae5f5cf DJ |
1127 | ## ------------- ## |
1128 | ## Output files. ## | |
1129 | ## ------------- ## | |
bec39cab AC |
1130 | _ASBOX |
1131 | echo | |
1132 | for ac_var in $ac_subst_files | |
1133 | do | |
dae5f5cf DJ |
1134 | eval ac_val=$`echo $ac_var` |
1135 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1136 | done | sort |
1137 | echo | |
434c4c77 | 1138 | fi |
bec39cab AC |
1139 | |
1140 | if test -s confdefs.h; then | |
1141 | cat <<\_ASBOX | |
1142 | ## ----------- ## | |
1143 | ## confdefs.h. ## | |
1144 | ## ----------- ## | |
1145 | _ASBOX | |
1146 | echo | |
dae5f5cf | 1147 | sed "/^$/d" confdefs.h | sort |
bec39cab AC |
1148 | echo |
1149 | fi | |
1150 | test "$ac_signal" != 0 && | |
1151 | echo "$as_me: caught signal $ac_signal" | |
1152 | echo "$as_me: exit $exit_status" | |
1153 | } >&5 | |
dae5f5cf DJ |
1154 | rm -f core *.core && |
1155 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1156 | exit $exit_status |
dae5f5cf | 1157 | ' 0 |
bec39cab AC |
1158 | for ac_signal in 1 2 13 15; do |
1159 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1160 | done | |
1161 | ac_signal=0 | |
1162 | ||
1163 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dae5f5cf DJ |
1164 | rm -rf conftest* confdefs.h |
1165 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1166 | echo >confdefs.h | |
bec39cab AC |
1167 | |
1168 | # Predefined preprocessor variables. | |
1169 | ||
1170 | cat >>confdefs.h <<_ACEOF | |
1171 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1172 | _ACEOF | |
1173 | ||
1174 | ||
1175 | cat >>confdefs.h <<_ACEOF | |
1176 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1177 | _ACEOF | |
1178 | ||
1179 | ||
1180 | cat >>confdefs.h <<_ACEOF | |
1181 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1182 | _ACEOF | |
1183 | ||
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | # Let the site file select an alternate cache file if it wants to. | |
1196 | # Prefer explicitly selected file to automatically selected ones. | |
dae5f5cf DJ |
1197 | if test -z "$CONFIG_SITE"; then |
1198 | if test "x$prefix" != xNONE; then | |
1199 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1200 | else | |
1201 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1202 | fi | |
d6e9fb05 | 1203 | fi |
dae5f5cf | 1204 | for ac_site_file in $CONFIG_SITE; do |
d6e9fb05 | 1205 | if test -r "$ac_site_file"; then |
bec39cab AC |
1206 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1207 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1208 | sed 's/^/| /' "$ac_site_file" >&5 | |
d6e9fb05 JK |
1209 | . "$ac_site_file" |
1210 | fi | |
1211 | done | |
1212 | ||
1213 | if test -r "$cache_file"; then | |
bec39cab AC |
1214 | # Some versions of bash will fail to source /dev/null (special |
1215 | # files actually), so we avoid doing that. | |
1216 | if test -f "$cache_file"; then | |
1217 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1218 | echo "$as_me: loading cache $cache_file" >&6;} | |
1219 | case $cache_file in | |
dae5f5cf DJ |
1220 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1221 | *) . ./$cache_file;; | |
bec39cab AC |
1222 | esac |
1223 | fi | |
d6e9fb05 | 1224 | else |
bec39cab AC |
1225 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1226 | echo "$as_me: creating cache $cache_file" >&6;} | |
1227 | >$cache_file | |
d6e9fb05 JK |
1228 | fi |
1229 | ||
bec39cab AC |
1230 | # Check that the precious variables saved in the cache have kept the same |
1231 | # value. | |
1232 | ac_cache_corrupted=false | |
dae5f5cf DJ |
1233 | for ac_var in `(set) 2>&1 | |
1234 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1235 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1236 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dae5f5cf DJ |
1237 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1238 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1239 | case $ac_old_set,$ac_new_set in |
1240 | set,) | |
1241 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1242 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1243 | ac_cache_corrupted=: ;; | |
1244 | ,set) | |
1245 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1246 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1247 | ac_cache_corrupted=: ;; | |
1248 | ,);; | |
1249 | *) | |
1250 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
fdc59709 PB |
1251 | # differences in whitespace do not lead to failure. |
1252 | ac_old_val_w=`echo x $ac_old_val` | |
1253 | ac_new_val_w=`echo x $ac_new_val` | |
1254 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
bec39cab | 1256 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
fdc59709 PB |
1257 | ac_cache_corrupted=: |
1258 | else | |
1259 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1260 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1261 | eval $ac_var=\$ac_old_val | |
1262 | fi | |
1263 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1264 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1265 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1266 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
1267 | fi;; |
1268 | esac | |
1269 | # Pass precious variables to config.status. | |
1270 | if test "$ac_new_set" = set; then | |
1271 | case $ac_new_val in | |
dae5f5cf DJ |
1272 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1273 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1274 | *) ac_arg=$ac_var=$ac_new_val ;; |
1275 | esac | |
1276 | case " $ac_configure_args " in | |
1277 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1278 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1279 | esac | |
d6e9fb05 | 1280 | fi |
bec39cab AC |
1281 | done |
1282 | if $ac_cache_corrupted; then | |
ec56be1b PA |
1283 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1284 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1285 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1286 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1287 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1288 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1289 | { (exit 1); exit 1; }; } | |
d6e9fb05 JK |
1290 | fi |
1291 | ||
dae5f5cf DJ |
1292 | ac_ext=c |
1293 | ac_cpp='$CPP $CPPFLAGS' | |
1294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1297 | ||
d6e9fb05 | 1298 | |
84563040 | 1299 | |
bec39cab AC |
1300 | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
ec56be1b PA |
1314 | |
1315 | ||
1316 | ||
bec39cab AC |
1317 | |
1318 | ||
dae5f5cf | 1319 | ac_config_headers="$ac_config_headers config.h:config.in" |
bec39cab AC |
1320 | |
1321 | ||
e28b3332 | 1322 | |
bec39cab AC |
1323 | ac_ext=c |
1324 | ac_cpp='$CPP $CPPFLAGS' | |
1325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1328 | if test -n "$ac_tool_prefix"; then | |
1329 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1330 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dae5f5cf DJ |
1331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1333 | if test "${ac_cv_prog_CC+set}" = set; then |
1334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 DJ |
1335 | else |
1336 | if test -n "$CC"; then | |
1337 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1338 | else | |
bec39cab AC |
1339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1340 | for as_dir in $PATH | |
1341 | do | |
1342 | IFS=$as_save_IFS | |
1343 | test -z "$as_dir" && as_dir=. | |
1344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1346 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1348 | break 2 | |
1349 | fi | |
1350 | done | |
1351 | done | |
1352 | ||
84563040 DJ |
1353 | fi |
1354 | fi | |
bec39cab | 1355 | CC=$ac_cv_prog_CC |
84563040 | 1356 | if test -n "$CC"; then |
dae5f5cf DJ |
1357 | echo "$as_me:$LINENO: result: $CC" >&5 |
1358 | echo "${ECHO_T}$CC" >&6 | |
84563040 | 1359 | else |
dae5f5cf DJ |
1360 | echo "$as_me:$LINENO: result: no" >&5 |
1361 | echo "${ECHO_T}no" >&6 | |
84563040 DJ |
1362 | fi |
1363 | ||
bec39cab AC |
1364 | fi |
1365 | if test -z "$ac_cv_prog_CC"; then | |
1366 | ac_ct_CC=$CC | |
1367 | # Extract the first word of "gcc", so it can be a program name with args. | |
1368 | set dummy gcc; ac_word=$2 | |
dae5f5cf DJ |
1369 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1371 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 | 1373 | else |
bec39cab AC |
1374 | if test -n "$ac_ct_CC"; then |
1375 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
84563040 | 1376 | else |
bec39cab AC |
1377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1378 | for as_dir in $PATH | |
1379 | do | |
1380 | IFS=$as_save_IFS | |
1381 | test -z "$as_dir" && as_dir=. | |
1382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1384 | ac_cv_prog_ac_ct_CC="gcc" |
1385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1386 | break 2 | |
1387 | fi | |
1388 | done | |
1389 | done | |
1390 | ||
1391 | fi | |
1392 | fi | |
1393 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1394 | if test -n "$ac_ct_CC"; then | |
dae5f5cf DJ |
1395 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1396 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1397 | else |
dae5f5cf DJ |
1398 | echo "$as_me:$LINENO: result: no" >&5 |
1399 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1400 | fi |
1401 | ||
dae5f5cf | 1402 | CC=$ac_ct_CC |
bec39cab AC |
1403 | else |
1404 | CC="$ac_cv_prog_CC" | |
1405 | fi | |
1406 | ||
1407 | if test -z "$CC"; then | |
dae5f5cf DJ |
1408 | if test -n "$ac_tool_prefix"; then |
1409 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1410 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dae5f5cf DJ |
1411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1413 | if test "${ac_cv_prog_CC+set}" = set; then |
1414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1415 | else | |
1416 | if test -n "$CC"; then | |
1417 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1418 | else | |
1419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1420 | for as_dir in $PATH | |
1421 | do | |
1422 | IFS=$as_save_IFS | |
1423 | test -z "$as_dir" && as_dir=. | |
1424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1426 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1428 | break 2 | |
1429 | fi | |
1430 | done | |
1431 | done | |
1432 | ||
1433 | fi | |
1434 | fi | |
1435 | CC=$ac_cv_prog_CC | |
1436 | if test -n "$CC"; then | |
dae5f5cf DJ |
1437 | echo "$as_me:$LINENO: result: $CC" >&5 |
1438 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1439 | else |
dae5f5cf DJ |
1440 | echo "$as_me:$LINENO: result: no" >&5 |
1441 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1442 | fi |
1443 | ||
dae5f5cf DJ |
1444 | fi |
1445 | if test -z "$ac_cv_prog_CC"; then | |
1446 | ac_ct_CC=$CC | |
1447 | # Extract the first word of "cc", so it can be a program name with args. | |
1448 | set dummy cc; ac_word=$2 | |
1449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1451 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1453 | else | |
1454 | if test -n "$ac_ct_CC"; then | |
1455 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1456 | else | |
1457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1458 | for as_dir in $PATH | |
1459 | do | |
1460 | IFS=$as_save_IFS | |
1461 | test -z "$as_dir" && as_dir=. | |
1462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1464 | ac_cv_prog_ac_ct_CC="cc" | |
1465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1466 | break 2 | |
b80864fb | 1467 | fi |
dae5f5cf DJ |
1468 | done |
1469 | done | |
1470 | ||
1471 | fi | |
1472 | fi | |
1473 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1474 | if test -n "$ac_ct_CC"; then | |
1475 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1476 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1477 | else | |
1478 | echo "$as_me:$LINENO: result: no" >&5 | |
1479 | echo "${ECHO_T}no" >&6 | |
1480 | fi | |
1481 | ||
1482 | CC=$ac_ct_CC | |
1483 | else | |
1484 | CC="$ac_cv_prog_CC" | |
1485 | fi | |
1486 | ||
bec39cab AC |
1487 | fi |
1488 | if test -z "$CC"; then | |
1489 | # Extract the first word of "cc", so it can be a program name with args. | |
1490 | set dummy cc; ac_word=$2 | |
dae5f5cf DJ |
1491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1493 | if test "${ac_cv_prog_CC+set}" = set; then |
1494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1495 | else | |
1496 | if test -n "$CC"; then | |
1497 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1498 | else | |
1499 | ac_prog_rejected=no | |
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1501 | for as_dir in $PATH | |
1502 | do | |
1503 | IFS=$as_save_IFS | |
1504 | test -z "$as_dir" && as_dir=. | |
1505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1507 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1508 | ac_prog_rejected=yes | |
1509 | continue | |
1510 | fi | |
1511 | ac_cv_prog_CC="cc" | |
1512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1513 | break 2 | |
1514 | fi | |
1515 | done | |
1516 | done | |
1517 | ||
84563040 DJ |
1518 | if test $ac_prog_rejected = yes; then |
1519 | # We found a bogon in the path, so make sure we never use it. | |
1520 | set dummy $ac_cv_prog_CC | |
1521 | shift | |
bec39cab | 1522 | if test $# != 0; then |
84563040 DJ |
1523 | # We chose a different compiler from the bogus one. |
1524 | # However, it has the same basename, so the bogon will be chosen | |
1525 | # first if we set CC to just the basename; use the full file name. | |
1526 | shift | |
bec39cab | 1527 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
84563040 DJ |
1528 | fi |
1529 | fi | |
1530 | fi | |
1531 | fi | |
bec39cab | 1532 | CC=$ac_cv_prog_CC |
84563040 | 1533 | if test -n "$CC"; then |
dae5f5cf DJ |
1534 | echo "$as_me:$LINENO: result: $CC" >&5 |
1535 | echo "${ECHO_T}$CC" >&6 | |
84563040 | 1536 | else |
dae5f5cf DJ |
1537 | echo "$as_me:$LINENO: result: no" >&5 |
1538 | echo "${ECHO_T}no" >&6 | |
84563040 DJ |
1539 | fi |
1540 | ||
bec39cab AC |
1541 | fi |
1542 | if test -z "$CC"; then | |
1543 | if test -n "$ac_tool_prefix"; then | |
dae5f5cf | 1544 | for ac_prog in cl |
bec39cab AC |
1545 | do |
1546 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1547 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
dae5f5cf DJ |
1548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1550 | if test "${ac_cv_prog_CC+set}" = set; then |
1551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 DJ |
1552 | else |
1553 | if test -n "$CC"; then | |
1554 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1555 | else | |
bec39cab AC |
1556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1557 | for as_dir in $PATH | |
1558 | do | |
1559 | IFS=$as_save_IFS | |
1560 | test -z "$as_dir" && as_dir=. | |
1561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1563 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1565 | break 2 | |
1566 | fi | |
1567 | done | |
1568 | done | |
1569 | ||
84563040 DJ |
1570 | fi |
1571 | fi | |
bec39cab | 1572 | CC=$ac_cv_prog_CC |
84563040 | 1573 | if test -n "$CC"; then |
dae5f5cf DJ |
1574 | echo "$as_me:$LINENO: result: $CC" >&5 |
1575 | echo "${ECHO_T}$CC" >&6 | |
84563040 | 1576 | else |
dae5f5cf DJ |
1577 | echo "$as_me:$LINENO: result: no" >&5 |
1578 | echo "${ECHO_T}no" >&6 | |
84563040 | 1579 | fi |
bec39cab AC |
1580 | |
1581 | test -n "$CC" && break | |
1582 | done | |
1583 | fi | |
1584 | if test -z "$CC"; then | |
1585 | ac_ct_CC=$CC | |
dae5f5cf | 1586 | for ac_prog in cl |
bec39cab AC |
1587 | do |
1588 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1589 | set dummy $ac_prog; ac_word=$2 | |
dae5f5cf DJ |
1590 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1592 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
1595 | if test -n "$ac_ct_CC"; then | |
1596 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1597 | else | |
1598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1599 | for as_dir in $PATH | |
1600 | do | |
1601 | IFS=$as_save_IFS | |
1602 | test -z "$as_dir" && as_dir=. | |
1603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 1604 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1605 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1606 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1607 | break 2 | |
84563040 | 1608 | fi |
bec39cab AC |
1609 | done |
1610 | done | |
1611 | ||
1612 | fi | |
1613 | fi | |
1614 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1615 | if test -n "$ac_ct_CC"; then | |
dae5f5cf DJ |
1616 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1617 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1618 | else |
dae5f5cf DJ |
1619 | echo "$as_me:$LINENO: result: no" >&5 |
1620 | echo "${ECHO_T}no" >&6 | |
84563040 DJ |
1621 | fi |
1622 | ||
bec39cab AC |
1623 | test -n "$ac_ct_CC" && break |
1624 | done | |
84563040 | 1625 | |
dae5f5cf | 1626 | CC=$ac_ct_CC |
bec39cab AC |
1627 | fi |
1628 | ||
1629 | fi | |
1630 | ||
1631 | ||
ec56be1b PA |
1632 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1633 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1634 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
bec39cab AC |
1635 | See \`config.log' for more details." >&5 |
1636 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1637 | See \`config.log' for more details." >&2;} | |
ec56be1b | 1638 | { (exit 1); exit 1; }; }; } |
bec39cab AC |
1639 | |
1640 | # Provide some information about the compiler. | |
dae5f5cf DJ |
1641 | echo "$as_me:$LINENO:" \ |
1642 | "checking for C compiler version" >&5 | |
bec39cab | 1643 | ac_compiler=`set X $ac_compile; echo $2` |
dae5f5cf DJ |
1644 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1645 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1646 | ac_status=$? |
1647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1648 | (exit $ac_status); } | |
dae5f5cf DJ |
1649 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1650 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1651 | ac_status=$? |
1652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1653 | (exit $ac_status); } | |
dae5f5cf DJ |
1654 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1655 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1656 | ac_status=$? |
1657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1658 | (exit $ac_status); } | |
1659 | ||
1660 | cat >conftest.$ac_ext <<_ACEOF | |
1661 | /* confdefs.h. */ | |
1662 | _ACEOF | |
1663 | cat confdefs.h >>conftest.$ac_ext | |
1664 | cat >>conftest.$ac_ext <<_ACEOF | |
1665 | /* end confdefs.h. */ | |
1666 | ||
1667 | int | |
1668 | main () | |
1669 | { | |
1670 | ||
1671 | ; | |
1672 | return 0; | |
1673 | } | |
1674 | _ACEOF | |
1675 | ac_clean_files_save=$ac_clean_files | |
1676 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1677 | # Try to create an executable without -o first, disregard a.out. | |
1678 | # It will help us diagnose broken compilers, and finding out an intuition | |
1679 | # of exeext. | |
dae5f5cf DJ |
1680 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1681 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab | 1682 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dae5f5cf DJ |
1683 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1684 | (eval $ac_link_default) 2>&5 | |
bec39cab AC |
1685 | ac_status=$? |
1686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1687 | (exit $ac_status); }; then | |
dae5f5cf DJ |
1688 | # Find the output, starting from the most likely. This scheme is |
1689 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1690 | # resort. | |
1691 | ||
1692 | # Be careful to initialize this variable, since it used to be cached. | |
1693 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1694 | ac_cv_exeext= | |
1695 | # b.out is created by i960 compilers. | |
1696 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1697 | do |
1698 | test -f "$ac_file" || continue | |
1699 | case $ac_file in | |
dae5f5cf DJ |
1700 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1701 | ;; | |
1702 | conftest.$ac_ext ) | |
1703 | # This is the source file. | |
bec39cab AC |
1704 | ;; |
1705 | [ab].out ) | |
1706 | # We found the default executable, but exeext='' is most | |
1707 | # certainly right. | |
1708 | break;; | |
1709 | *.* ) | |
dae5f5cf DJ |
1710 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1711 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1712 | # but it would be cool to find out if it's true. Does anybody | |
1713 | # maintain Libtool? --akim. | |
1714 | export ac_cv_exeext | |
bec39cab AC |
1715 | break;; |
1716 | * ) | |
1717 | break;; | |
1718 | esac | |
1719 | done | |
1720 | else | |
1721 | echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
ec56be1b PA |
1724 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1725 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1726 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1727 | See \`config.log' for more details." >&5 | |
1728 | echo "$as_me: error: C compiler cannot create executables | |
1729 | See \`config.log' for more details." >&2;} | |
ec56be1b | 1730 | { (exit 77); exit 77; }; }; } |
bec39cab AC |
1731 | fi |
1732 | ||
1733 | ac_exeext=$ac_cv_exeext | |
dae5f5cf DJ |
1734 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
1735 | echo "${ECHO_T}$ac_file" >&6 | |
bec39cab | 1736 | |
dae5f5cf | 1737 | # Check the compiler produces executables we can run. If not, either |
bec39cab | 1738 | # the compiler is broken, or we cross compile. |
dae5f5cf DJ |
1739 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1740 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1741 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1742 | # If not cross compiling, check that we can run a simple program. | |
1743 | if test "$cross_compiling" != yes; then | |
1744 | if { ac_try='./$ac_file' | |
dae5f5cf DJ |
1745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1746 | (eval $ac_try) 2>&5 | |
bec39cab AC |
1747 | ac_status=$? |
1748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1749 | (exit $ac_status); }; }; then | |
1750 | cross_compiling=no | |
84563040 | 1751 | else |
bec39cab AC |
1752 | if test "$cross_compiling" = maybe; then |
1753 | cross_compiling=yes | |
1754 | else | |
ec56be1b PA |
1755 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1756 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1757 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
bec39cab AC |
1758 | If you meant to cross compile, use \`--host'. |
1759 | See \`config.log' for more details." >&5 | |
1760 | echo "$as_me: error: cannot run C compiled programs. | |
1761 | If you meant to cross compile, use \`--host'. | |
1762 | See \`config.log' for more details." >&2;} | |
ec56be1b | 1763 | { (exit 1); exit 1; }; }; } |
bec39cab | 1764 | fi |
84563040 | 1765 | fi |
84563040 | 1766 | fi |
dae5f5cf DJ |
1767 | echo "$as_me:$LINENO: result: yes" >&5 |
1768 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
1769 | |
1770 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1771 | ac_clean_files=$ac_clean_files_save | |
dae5f5cf | 1772 | # Check the compiler produces executables we can run. If not, either |
bec39cab | 1773 | # the compiler is broken, or we cross compile. |
dae5f5cf DJ |
1774 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1775 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1776 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1777 | echo "${ECHO_T}$cross_compiling" >&6 | |
1778 | ||
1779 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1780 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1782 | (eval $ac_link) 2>&5 | |
bec39cab AC |
1783 | ac_status=$? |
1784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1785 | (exit $ac_status); }; then | |
1786 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1787 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1788 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1789 | # `rm'. | |
1790 | for ac_file in conftest.exe conftest conftest.*; do | |
1791 | test -f "$ac_file" || continue | |
1792 | case $ac_file in | |
dae5f5cf | 1793 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
bec39cab | 1794 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
dae5f5cf | 1795 | export ac_cv_exeext |
bec39cab AC |
1796 | break;; |
1797 | * ) break;; | |
1798 | esac | |
1799 | done | |
84563040 | 1800 | else |
ec56be1b PA |
1801 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1802 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1803 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
bec39cab AC |
1804 | See \`config.log' for more details." >&5 |
1805 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1806 | See \`config.log' for more details." >&2;} | |
ec56be1b | 1807 | { (exit 1); exit 1; }; }; } |
84563040 | 1808 | fi |
bec39cab AC |
1809 | |
1810 | rm -f conftest$ac_cv_exeext | |
dae5f5cf DJ |
1811 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1812 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
bec39cab AC |
1813 | |
1814 | rm -f conftest.$ac_ext | |
1815 | EXEEXT=$ac_cv_exeext | |
1816 | ac_exeext=$EXEEXT | |
dae5f5cf DJ |
1817 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1818 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1819 | if test "${ac_cv_objext+set}" = set; then |
1820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1821 | else | |
1822 | cat >conftest.$ac_ext <<_ACEOF | |
1823 | /* confdefs.h. */ | |
1824 | _ACEOF | |
1825 | cat confdefs.h >>conftest.$ac_ext | |
1826 | cat >>conftest.$ac_ext <<_ACEOF | |
1827 | /* end confdefs.h. */ | |
1828 | ||
1829 | int | |
1830 | main () | |
1831 | { | |
1832 | ||
1833 | ; | |
1834 | return 0; | |
1835 | } | |
1836 | _ACEOF | |
1837 | rm -f conftest.o conftest.obj | |
dae5f5cf DJ |
1838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1839 | (eval $ac_compile) 2>&5 | |
bec39cab AC |
1840 | ac_status=$? |
1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1842 | (exit $ac_status); }; then | |
dae5f5cf | 1843 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1844 | case $ac_file in |
dae5f5cf | 1845 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1846 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1847 | break;; | |
1848 | esac | |
1849 | done | |
1850 | else | |
1851 | echo "$as_me: failed program was:" >&5 | |
1852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1853 | ||
ec56be1b PA |
1854 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1855 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
bec39cab AC |
1856 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1857 | See \`config.log' for more details." >&5 | |
1858 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1859 | See \`config.log' for more details." >&2;} | |
ec56be1b | 1860 | { (exit 1); exit 1; }; }; } |
84563040 DJ |
1861 | fi |
1862 | ||
bec39cab AC |
1863 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1864 | fi | |
dae5f5cf DJ |
1865 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1866 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1867 | OBJEXT=$ac_cv_objext |
1868 | ac_objext=$OBJEXT | |
dae5f5cf DJ |
1869 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1870 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1871 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1873 | else | |
1874 | cat >conftest.$ac_ext <<_ACEOF | |
1875 | /* confdefs.h. */ | |
1876 | _ACEOF | |
1877 | cat confdefs.h >>conftest.$ac_ext | |
1878 | cat >>conftest.$ac_ext <<_ACEOF | |
1879 | /* end confdefs.h. */ | |
1880 | ||
1881 | int | |
1882 | main () | |
1883 | { | |
1884 | #ifndef __GNUC__ | |
1885 | choke me | |
1886 | #endif | |
84563040 | 1887 | |
bec39cab AC |
1888 | ; |
1889 | return 0; | |
1890 | } | |
1891 | _ACEOF | |
1892 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
1893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1894 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
1895 | ac_status=$? |
1896 | grep -v '^ *+' conftest.er1 >conftest.err | |
1897 | rm -f conftest.er1 | |
1898 | cat conftest.err >&5 | |
1899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1900 | (exit $ac_status); } && | |
dae5f5cf DJ |
1901 | { ac_try='test -z "$ac_c_werror_flag" |
1902 | || test ! -s conftest.err' | |
1903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1904 | (eval $ac_try) 2>&5 | |
bec39cab AC |
1905 | ac_status=$? |
1906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1907 | (exit $ac_status); }; } && | |
1908 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
1909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1910 | (eval $ac_try) 2>&5 | |
bec39cab AC |
1911 | ac_status=$? |
1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1913 | (exit $ac_status); }; }; then | |
1914 | ac_compiler_gnu=yes | |
84563040 | 1915 | else |
bec39cab AC |
1916 | echo "$as_me: failed program was:" >&5 |
1917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1918 | ||
dae5f5cf | 1919 | ac_compiler_gnu=no |
84563040 | 1920 | fi |
dae5f5cf | 1921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 1922 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
84563040 | 1923 | |
bec39cab | 1924 | fi |
dae5f5cf DJ |
1925 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1926 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1927 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1928 | ac_test_CFLAGS=${CFLAGS+set} | |
1929 | ac_save_CFLAGS=$CFLAGS | |
dae5f5cf DJ |
1930 | CFLAGS="-g" |
1931 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1932 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1933 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 | 1935 | else |
dae5f5cf | 1936 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1937 | /* confdefs.h. */ |
1938 | _ACEOF | |
1939 | cat confdefs.h >>conftest.$ac_ext | |
1940 | cat >>conftest.$ac_ext <<_ACEOF | |
1941 | /* end confdefs.h. */ | |
1942 | ||
1943 | int | |
1944 | main () | |
1945 | { | |
1946 | ||
1947 | ; | |
1948 | return 0; | |
1949 | } | |
1950 | _ACEOF | |
1951 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
1952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1953 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
1954 | ac_status=$? |
1955 | grep -v '^ *+' conftest.er1 >conftest.err | |
1956 | rm -f conftest.er1 | |
1957 | cat conftest.err >&5 | |
1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1959 | (exit $ac_status); } && | |
dae5f5cf DJ |
1960 | { ac_try='test -z "$ac_c_werror_flag" |
1961 | || test ! -s conftest.err' | |
1962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1963 | (eval $ac_try) 2>&5 | |
bec39cab AC |
1964 | ac_status=$? |
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1966 | (exit $ac_status); }; } && | |
1967 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
1968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1969 | (eval $ac_try) 2>&5 | |
bec39cab AC |
1970 | ac_status=$? |
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1972 | (exit $ac_status); }; }; then | |
84563040 DJ |
1973 | ac_cv_prog_cc_g=yes |
1974 | else | |
bec39cab AC |
1975 | echo "$as_me: failed program was:" >&5 |
1976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
84563040 | 1977 | |
dae5f5cf | 1978 | ac_cv_prog_cc_g=no |
84563040 | 1979 | fi |
dae5f5cf | 1980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 1981 | fi |
dae5f5cf DJ |
1982 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
1983 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
84563040 | 1984 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 1985 | CFLAGS=$ac_save_CFLAGS |
84563040 DJ |
1986 | elif test $ac_cv_prog_cc_g = yes; then |
1987 | if test "$GCC" = yes; then | |
1988 | CFLAGS="-g -O2" | |
1989 | else | |
1990 | CFLAGS="-g" | |
1991 | fi | |
1992 | else | |
1993 | if test "$GCC" = yes; then | |
1994 | CFLAGS="-O2" | |
1995 | else | |
1996 | CFLAGS= | |
1997 | fi | |
1998 | fi | |
dae5f5cf DJ |
1999 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2000 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2001 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2003 | else | |
dae5f5cf | 2004 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2005 | ac_save_CC=$CC |
2006 | cat >conftest.$ac_ext <<_ACEOF | |
2007 | /* confdefs.h. */ | |
2008 | _ACEOF | |
2009 | cat confdefs.h >>conftest.$ac_ext | |
2010 | cat >>conftest.$ac_ext <<_ACEOF | |
2011 | /* end confdefs.h. */ | |
2012 | #include <stdarg.h> | |
2013 | #include <stdio.h> | |
2014 | #include <sys/types.h> | |
2015 | #include <sys/stat.h> | |
2016 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2017 | struct buf { int x; }; | |
2018 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2019 | static char *e (p, i) | |
2020 | char **p; | |
2021 | int i; | |
2022 | { | |
2023 | return p[i]; | |
2024 | } | |
2025 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2026 | { | |
2027 | char *s; | |
2028 | va_list v; | |
2029 | va_start (v,p); | |
2030 | s = g (p, va_arg (v,int)); | |
2031 | va_end (v); | |
2032 | return s; | |
2033 | } | |
2034 | ||
2035 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2036 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2037 | These don't provoke an error unfortunately, instead are silently treated | |
dae5f5cf | 2038 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2039 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2040 | array size at least. It's necessary to write '\x00'==0 to get something | |
dae5f5cf | 2041 | that's true only with -std1. */ |
bec39cab AC |
2042 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2043 | ||
2044 | int test (int i, double x); | |
2045 | struct s1 {int (*f) (int a);}; | |
2046 | struct s2 {int (*f) (double a);}; | |
2047 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2048 | int argc; | |
2049 | char **argv; | |
2050 | int | |
2051 | main () | |
2052 | { | |
2053 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2054 | ; | |
2055 | return 0; | |
2056 | } | |
2057 | _ACEOF | |
dae5f5cf DJ |
2058 | # Don't try gcc -ansi; that turns off useful extensions and |
2059 | # breaks some systems' header files. | |
2060 | # AIX -qlanglvl=ansi | |
2061 | # Ultrix and OSF/1 -std1 | |
2062 | # HP-UX 10.20 and later -Ae | |
2063 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2064 | # SVR4 -Xc -D__EXTENSIONS__ | |
2065 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2066 | do |
2067 | CC="$ac_save_CC $ac_arg" | |
2068 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
2069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2070 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
2071 | ac_status=$? |
2072 | grep -v '^ *+' conftest.er1 >conftest.err | |
2073 | rm -f conftest.er1 | |
2074 | cat conftest.err >&5 | |
2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2076 | (exit $ac_status); } && | |
dae5f5cf DJ |
2077 | { ac_try='test -z "$ac_c_werror_flag" |
2078 | || test ! -s conftest.err' | |
2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2080 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2081 | ac_status=$? |
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2083 | (exit $ac_status); }; } && | |
2084 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2086 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2087 | ac_status=$? |
2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2089 | (exit $ac_status); }; }; then | |
dae5f5cf DJ |
2090 | ac_cv_prog_cc_stdc=$ac_arg |
2091 | break | |
bec39cab AC |
2092 | else |
2093 | echo "$as_me: failed program was:" >&5 | |
2094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2095 | ||
2096 | fi | |
dae5f5cf | 2097 | rm -f conftest.err conftest.$ac_objext |
bec39cab | 2098 | done |
dae5f5cf | 2099 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab AC |
2100 | CC=$ac_save_CC |
2101 | ||
2102 | fi | |
dae5f5cf DJ |
2103 | |
2104 | case "x$ac_cv_prog_cc_stdc" in | |
2105 | x|xno) | |
2106 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2107 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2108 | *) |
dae5f5cf DJ |
2109 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2110 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2111 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
bec39cab AC |
2112 | esac |
2113 | ||
dae5f5cf DJ |
2114 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2115 | # in C++ we need to declare it. In case someone uses the same compiler | |
2116 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2117 | # the declaration of exit, since it's the most demanding environment. | |
2118 | cat >conftest.$ac_ext <<_ACEOF | |
2119 | #ifndef __cplusplus | |
2120 | choke me | |
2121 | #endif | |
2122 | _ACEOF | |
2123 | rm -f conftest.$ac_objext | |
2124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2125 | (eval $ac_compile) 2>conftest.er1 | |
2126 | ac_status=$? | |
2127 | grep -v '^ *+' conftest.er1 >conftest.err | |
2128 | rm -f conftest.er1 | |
2129 | cat conftest.err >&5 | |
2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2131 | (exit $ac_status); } && | |
2132 | { ac_try='test -z "$ac_c_werror_flag" | |
2133 | || test ! -s conftest.err' | |
2134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2135 | (eval $ac_try) 2>&5 | |
2136 | ac_status=$? | |
2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2138 | (exit $ac_status); }; } && | |
2139 | { ac_try='test -s conftest.$ac_objext' | |
2140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2141 | (eval $ac_try) 2>&5 | |
2142 | ac_status=$? | |
2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2144 | (exit $ac_status); }; }; then | |
2145 | for ac_declaration in \ | |
2146 | '' \ | |
2147 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2148 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2149 | 'extern "C" void exit (int) throw ();' \ | |
2150 | 'extern "C" void exit (int);' \ | |
2151 | 'void exit (int);' | |
2152 | do | |
2153 | cat >conftest.$ac_ext <<_ACEOF | |
2154 | /* confdefs.h. */ | |
2155 | _ACEOF | |
2156 | cat confdefs.h >>conftest.$ac_ext | |
2157 | cat >>conftest.$ac_ext <<_ACEOF | |
2158 | /* end confdefs.h. */ | |
2159 | $ac_declaration | |
2160 | #include <stdlib.h> | |
2161 | int | |
2162 | main () | |
2163 | { | |
2164 | exit (42); | |
2165 | ; | |
2166 | return 0; | |
2167 | } | |
2168 | _ACEOF | |
2169 | rm -f conftest.$ac_objext | |
2170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2171 | (eval $ac_compile) 2>conftest.er1 | |
2172 | ac_status=$? | |
2173 | grep -v '^ *+' conftest.er1 >conftest.err | |
2174 | rm -f conftest.er1 | |
2175 | cat conftest.err >&5 | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); } && | |
2178 | { ac_try='test -z "$ac_c_werror_flag" | |
2179 | || test ! -s conftest.err' | |
2180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2181 | (eval $ac_try) 2>&5 | |
2182 | ac_status=$? | |
2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2184 | (exit $ac_status); }; } && | |
2185 | { ac_try='test -s conftest.$ac_objext' | |
2186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2187 | (eval $ac_try) 2>&5 | |
2188 | ac_status=$? | |
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2190 | (exit $ac_status); }; }; then | |
2191 | : | |
2192 | else | |
2193 | echo "$as_me: failed program was:" >&5 | |
2194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 2195 | |
dae5f5cf DJ |
2196 | continue |
2197 | fi | |
2198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2199 | cat >conftest.$ac_ext <<_ACEOF | |
2200 | /* confdefs.h. */ | |
2201 | _ACEOF | |
2202 | cat confdefs.h >>conftest.$ac_ext | |
2203 | cat >>conftest.$ac_ext <<_ACEOF | |
2204 | /* end confdefs.h. */ | |
2205 | $ac_declaration | |
2206 | int | |
2207 | main () | |
2208 | { | |
2209 | exit (42); | |
2210 | ; | |
2211 | return 0; | |
2212 | } | |
2213 | _ACEOF | |
2214 | rm -f conftest.$ac_objext | |
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2216 | (eval $ac_compile) 2>conftest.er1 | |
2217 | ac_status=$? | |
2218 | grep -v '^ *+' conftest.er1 >conftest.err | |
2219 | rm -f conftest.er1 | |
2220 | cat conftest.err >&5 | |
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2222 | (exit $ac_status); } && | |
2223 | { ac_try='test -z "$ac_c_werror_flag" | |
2224 | || test ! -s conftest.err' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; } && | |
2230 | { ac_try='test -s conftest.$ac_objext' | |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; }; then | |
2236 | break | |
2237 | else | |
2238 | echo "$as_me: failed program was:" >&5 | |
2239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2240 | ||
2241 | fi | |
2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2243 | done | |
2244 | rm -f conftest* | |
2245 | if test -n "$ac_declaration"; then | |
2246 | echo '#ifdef __cplusplus' >>confdefs.h | |
2247 | echo $ac_declaration >>confdefs.h | |
2248 | echo '#endif' >>confdefs.h | |
2249 | fi | |
2250 | ||
2251 | else | |
2252 | echo "$as_me: failed program was:" >&5 | |
2253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2254 | ||
2255 | fi | |
2256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2257 | ac_ext=c | |
bec39cab AC |
2258 | ac_cpp='$CPP $CPPFLAGS' |
2259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
84563040 DJ |
2262 | |
2263 | ||
fd462a61 DJ |
2264 | cat >>confdefs.h <<\_ACEOF |
2265 | #define _GNU_SOURCE 1 | |
2266 | _ACEOF | |
2267 | ||
2268 | ||
2269 | ||
d6e9fb05 | 2270 | ac_aux_dir= |
dae5f5cf DJ |
2271 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2272 | if test -f $ac_dir/install-sh; then | |
d6e9fb05 JK |
2273 | ac_aux_dir=$ac_dir |
2274 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2275 | break | |
dae5f5cf | 2276 | elif test -f $ac_dir/install.sh; then |
d6e9fb05 JK |
2277 | ac_aux_dir=$ac_dir |
2278 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2279 | break | |
dae5f5cf | 2280 | elif test -f $ac_dir/shtool; then |
bec39cab AC |
2281 | ac_aux_dir=$ac_dir |
2282 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2283 | break | |
d6e9fb05 JK |
2284 | fi |
2285 | done | |
2286 | if test -z "$ac_aux_dir"; then | |
dae5f5cf DJ |
2287 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
2288 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
bec39cab | 2289 | { (exit 1); exit 1; }; } |
d6e9fb05 | 2290 | fi |
dae5f5cf DJ |
2291 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2292 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2293 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
d6e9fb05 JK |
2294 | |
2295 | # Make sure we can run config.sub. | |
dae5f5cf DJ |
2296 | $ac_config_sub sun4 >/dev/null 2>&1 || |
2297 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2298 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
bec39cab AC |
2299 | { (exit 1); exit 1; }; } |
2300 | ||
dae5f5cf DJ |
2301 | echo "$as_me:$LINENO: checking build system type" >&5 |
2302 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2303 | if test "${ac_cv_build+set}" = set; then |
2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2305 | else | |
dae5f5cf DJ |
2306 | ac_cv_build_alias=$build_alias |
2307 | test -z "$ac_cv_build_alias" && | |
2308 | ac_cv_build_alias=`$ac_config_guess` | |
2309 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2310 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2311 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2312 | { (exit 1); exit 1; }; } | |
dae5f5cf DJ |
2313 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2314 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2315 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab | 2316 | { (exit 1); exit 1; }; } |
d6e9fb05 | 2317 | |
bec39cab | 2318 | fi |
dae5f5cf DJ |
2319 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2320 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2321 | build=$ac_cv_build |
dae5f5cf DJ |
2322 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2323 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2324 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2325 | ||
2326 | ||
2327 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2328 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2329 | if test "${ac_cv_host+set}" = set; then |
2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2331 | else | |
dae5f5cf DJ |
2332 | ac_cv_host_alias=$host_alias |
2333 | test -z "$ac_cv_host_alias" && | |
2334 | ac_cv_host_alias=$ac_cv_build_alias | |
2335 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2336 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2337 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab | 2338 | { (exit 1); exit 1; }; } |
d6e9fb05 | 2339 | |
bec39cab | 2340 | fi |
dae5f5cf DJ |
2341 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2342 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2343 | host=$ac_cv_host |
dae5f5cf DJ |
2344 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2345 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2346 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2347 | ||
2348 | ||
2349 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2350 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2351 | if test "${ac_cv_target+set}" = set; then |
2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2353 | else | |
dae5f5cf DJ |
2354 | ac_cv_target_alias=$target_alias |
2355 | test "x$ac_cv_target_alias" = "x" && | |
2356 | ac_cv_target_alias=$ac_cv_host_alias | |
2357 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2358 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2359 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab | 2360 | { (exit 1); exit 1; }; } |
d6e9fb05 | 2361 | |
bec39cab | 2362 | fi |
dae5f5cf DJ |
2363 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2364 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2365 | target=$ac_cv_target |
dae5f5cf DJ |
2366 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2367 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2368 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
d6e9fb05 | 2369 | |
d6e9fb05 | 2370 | |
bec39cab AC |
2371 | # The aliases save the names the user supplied, while $host etc. |
2372 | # will get canonicalized. | |
2373 | test -n "$target_alias" && | |
d6e9fb05 JK |
2374 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2375 | NONENONEs,x,x, && | |
2376 | program_prefix=${target_alias}- | |
2377 | ||
2378 | # Find a good install program. We prefer a C program (faster), | |
2379 | # so one script is as good as another. But avoid the broken or | |
2380 | # incompatible versions: | |
2381 | # SysV /etc/install, /usr/sbin/install | |
2382 | # SunOS /usr/etc/install | |
2383 | # IRIX /sbin/install | |
2384 | # AIX /bin/install | |
bec39cab | 2385 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e4f78295 | 2386 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
d6e9fb05 JK |
2387 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2388 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
bec39cab | 2389 | # OS/2's system install, which has a completely different semantic |
d6e9fb05 | 2390 | # ./install, which can be erroneously created by make from ./install.sh. |
dae5f5cf DJ |
2391 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2392 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
d6e9fb05 | 2393 | if test -z "$INSTALL"; then |
bec39cab AC |
2394 | if test "${ac_cv_path_install+set}" = set; then |
2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2396 | else | |
2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2398 | for as_dir in $PATH | |
2399 | do | |
2400 | IFS=$as_save_IFS | |
2401 | test -z "$as_dir" && as_dir=. | |
2402 | # Account for people who put trailing slashes in PATH elements. | |
2403 | case $as_dir/ in | |
2404 | ./ | .// | /cC/* | \ | |
2405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2406 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2407 | /usr/ucb/* ) ;; | |
2408 | *) | |
2409 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2410 | # Don't use installbsd from OSF since it installs stuff as root | |
2411 | # by default. | |
2412 | for ac_prog in ginstall scoinst install; do | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dae5f5cf | 2414 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d6e9fb05 | 2415 | if test $ac_prog = install && |
bec39cab | 2416 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
d6e9fb05 | 2417 | # AIX install. It has an incompatible calling convention. |
d6e9fb05 | 2418 | : |
bec39cab AC |
2419 | elif test $ac_prog = install && |
2420 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2421 | # program-specific install script used by HP pwplus--don't use. | |
2422 | : | |
d6e9fb05 | 2423 | else |
bec39cab AC |
2424 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2425 | break 3 | |
d6e9fb05 JK |
2426 | fi |
2427 | fi | |
2428 | done | |
bec39cab AC |
2429 | done |
2430 | ;; | |
2431 | esac | |
2432 | done | |
2433 | ||
d6e9fb05 JK |
2434 | |
2435 | fi | |
2436 | if test "${ac_cv_path_install+set}" = set; then | |
bec39cab | 2437 | INSTALL=$ac_cv_path_install |
d6e9fb05 | 2438 | else |
dae5f5cf DJ |
2439 | # As a last resort, use the slow shell script. We don't cache a |
2440 | # path for INSTALL within a source directory, because that will | |
d6e9fb05 | 2441 | # break other packages using the cache if that directory is |
dae5f5cf | 2442 | # removed, or if the path is relative. |
bec39cab | 2443 | INSTALL=$ac_install_sh |
d6e9fb05 JK |
2444 | fi |
2445 | fi | |
dae5f5cf DJ |
2446 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2447 | echo "${ECHO_T}$INSTALL" >&6 | |
d6e9fb05 JK |
2448 | |
2449 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2450 | # It thinks the first close brace ends the variable substitution. | |
2451 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2452 | ||
bec39cab | 2453 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e4f78295 | 2454 | |
d6e9fb05 JK |
2455 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2456 | ||
2457 | ||
dcdb98d2 | 2458 | test "$program_prefix" != NONE && |
dae5f5cf | 2459 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
dcdb98d2 DJ |
2460 | # Use a double $ so make ignores it. |
2461 | test "$program_suffix" != NONE && | |
dae5f5cf | 2462 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
dcdb98d2 DJ |
2463 | # Double any \ or $. echo might interpret backslashes. |
2464 | # By default was `s,x,x', remove it if useless. | |
2465 | cat <<\_ACEOF >conftest.sed | |
2466 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2467 | _ACEOF | |
2468 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
dae5f5cf | 2469 | rm conftest.sed |
dcdb98d2 DJ |
2470 | |
2471 | ||
bec39cab AC |
2472 | |
2473 | ac_ext=c | |
2474 | ac_cpp='$CPP $CPPFLAGS' | |
2475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dae5f5cf DJ |
2478 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2479 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
84563040 DJ |
2480 | # On Suns, sometimes $CPP names a directory. |
2481 | if test -n "$CPP" && test -d "$CPP"; then | |
2482 | CPP= | |
2483 | fi | |
2484 | if test -z "$CPP"; then | |
bec39cab AC |
2485 | if test "${ac_cv_prog_CPP+set}" = set; then |
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 | 2487 | else |
bec39cab AC |
2488 | # Double quotes because CPP needs to be expanded |
2489 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2490 | do | |
2491 | ac_preproc_ok=false | |
2492 | for ac_c_preproc_warn_flag in '' yes | |
2493 | do | |
2494 | # Use a header file that comes with gcc, so configuring glibc | |
2495 | # with a fresh cross-compiler works. | |
2496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2497 | # <limits.h> exists even on freestanding compilers. | |
84563040 | 2498 | # On the NeXT, cc -E runs the code through the compiler's parser, |
bec39cab AC |
2499 | # not just through cpp. "Syntax error" is here to catch this case. |
2500 | cat >conftest.$ac_ext <<_ACEOF | |
2501 | /* confdefs.h. */ | |
2502 | _ACEOF | |
2503 | cat confdefs.h >>conftest.$ac_ext | |
2504 | cat >>conftest.$ac_ext <<_ACEOF | |
2505 | /* end confdefs.h. */ | |
2506 | #ifdef __STDC__ | |
2507 | # include <limits.h> | |
2508 | #else | |
2509 | # include <assert.h> | |
2510 | #endif | |
2511 | Syntax error | |
2512 | _ACEOF | |
dae5f5cf DJ |
2513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
bec39cab AC |
2515 | ac_status=$? |
2516 | grep -v '^ *+' conftest.er1 >conftest.err | |
2517 | rm -f conftest.er1 | |
2518 | cat conftest.err >&5 | |
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2520 | (exit $ac_status); } >/dev/null; then | |
2521 | if test -s conftest.err; then | |
2522 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2524 | else | |
2525 | ac_cpp_err= | |
2526 | fi | |
84563040 | 2527 | else |
bec39cab AC |
2528 | ac_cpp_err=yes |
2529 | fi | |
2530 | if test -z "$ac_cpp_err"; then | |
84563040 DJ |
2531 | : |
2532 | else | |
bec39cab AC |
2533 | echo "$as_me: failed program was:" >&5 |
2534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2535 | ||
2536 | # Broken: fails on valid input. | |
2537 | continue | |
2538 | fi | |
2539 | rm -f conftest.err conftest.$ac_ext | |
2540 | ||
dae5f5cf | 2541 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2542 | # can be detected and how. |
2543 | cat >conftest.$ac_ext <<_ACEOF | |
2544 | /* confdefs.h. */ | |
2545 | _ACEOF | |
2546 | cat confdefs.h >>conftest.$ac_ext | |
2547 | cat >>conftest.$ac_ext <<_ACEOF | |
2548 | /* end confdefs.h. */ | |
2549 | #include <ac_nonexistent.h> | |
2550 | _ACEOF | |
dae5f5cf DJ |
2551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
bec39cab AC |
2553 | ac_status=$? |
2554 | grep -v '^ *+' conftest.er1 >conftest.err | |
2555 | rm -f conftest.er1 | |
2556 | cat conftest.err >&5 | |
2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2558 | (exit $ac_status); } >/dev/null; then | |
2559 | if test -s conftest.err; then | |
2560 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2562 | else | |
2563 | ac_cpp_err= | |
2564 | fi | |
2565 | else | |
2566 | ac_cpp_err=yes | |
2567 | fi | |
2568 | if test -z "$ac_cpp_err"; then | |
2569 | # Broken: success on invalid input. | |
2570 | continue | |
2571 | else | |
2572 | echo "$as_me: failed program was:" >&5 | |
2573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2574 | ||
2575 | # Passes both tests. | |
2576 | ac_preproc_ok=: | |
2577 | break | |
2578 | fi | |
2579 | rm -f conftest.err conftest.$ac_ext | |
2580 | ||
2581 | done | |
2582 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2583 | rm -f conftest.err conftest.$ac_ext | |
2584 | if $ac_preproc_ok; then | |
2585 | break | |
2586 | fi | |
2587 | ||
2588 | done | |
2589 | ac_cv_prog_CPP=$CPP | |
2590 | ||
2591 | fi | |
2592 | CPP=$ac_cv_prog_CPP | |
2593 | else | |
2594 | ac_cv_prog_CPP=$CPP | |
2595 | fi | |
dae5f5cf DJ |
2596 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2597 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2598 | ac_preproc_ok=false |
2599 | for ac_c_preproc_warn_flag in '' yes | |
2600 | do | |
2601 | # Use a header file that comes with gcc, so configuring glibc | |
2602 | # with a fresh cross-compiler works. | |
2603 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2604 | # <limits.h> exists even on freestanding compilers. | |
2605 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2606 | # not just through cpp. "Syntax error" is here to catch this case. | |
2607 | cat >conftest.$ac_ext <<_ACEOF | |
2608 | /* confdefs.h. */ | |
2609 | _ACEOF | |
2610 | cat confdefs.h >>conftest.$ac_ext | |
2611 | cat >>conftest.$ac_ext <<_ACEOF | |
2612 | /* end confdefs.h. */ | |
2613 | #ifdef __STDC__ | |
2614 | # include <limits.h> | |
2615 | #else | |
2616 | # include <assert.h> | |
2617 | #endif | |
2618 | Syntax error | |
2619 | _ACEOF | |
dae5f5cf DJ |
2620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
bec39cab AC |
2622 | ac_status=$? |
2623 | grep -v '^ *+' conftest.er1 >conftest.err | |
2624 | rm -f conftest.er1 | |
2625 | cat conftest.err >&5 | |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2627 | (exit $ac_status); } >/dev/null; then | |
2628 | if test -s conftest.err; then | |
2629 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2631 | else | |
2632 | ac_cpp_err= | |
2633 | fi | |
2634 | else | |
2635 | ac_cpp_err=yes | |
2636 | fi | |
2637 | if test -z "$ac_cpp_err"; then | |
84563040 DJ |
2638 | : |
2639 | else | |
bec39cab AC |
2640 | echo "$as_me: failed program was:" >&5 |
2641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2642 | ||
2643 | # Broken: fails on valid input. | |
2644 | continue | |
84563040 | 2645 | fi |
bec39cab AC |
2646 | rm -f conftest.err conftest.$ac_ext |
2647 | ||
dae5f5cf | 2648 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2649 | # can be detected and how. |
2650 | cat >conftest.$ac_ext <<_ACEOF | |
2651 | /* confdefs.h. */ | |
2652 | _ACEOF | |
2653 | cat confdefs.h >>conftest.$ac_ext | |
2654 | cat >>conftest.$ac_ext <<_ACEOF | |
2655 | /* end confdefs.h. */ | |
2656 | #include <ac_nonexistent.h> | |
2657 | _ACEOF | |
dae5f5cf DJ |
2658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2659 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
bec39cab AC |
2660 | ac_status=$? |
2661 | grep -v '^ *+' conftest.er1 >conftest.err | |
2662 | rm -f conftest.er1 | |
2663 | cat conftest.err >&5 | |
2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2665 | (exit $ac_status); } >/dev/null; then | |
2666 | if test -s conftest.err; then | |
2667 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2668 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2669 | else | |
2670 | ac_cpp_err= | |
2671 | fi | |
2672 | else | |
2673 | ac_cpp_err=yes | |
84563040 | 2674 | fi |
bec39cab AC |
2675 | if test -z "$ac_cpp_err"; then |
2676 | # Broken: success on invalid input. | |
2677 | continue | |
2678 | else | |
2679 | echo "$as_me: failed program was:" >&5 | |
2680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2681 | ||
2682 | # Passes both tests. | |
2683 | ac_preproc_ok=: | |
2684 | break | |
84563040 | 2685 | fi |
bec39cab AC |
2686 | rm -f conftest.err conftest.$ac_ext |
2687 | ||
2688 | done | |
2689 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2690 | rm -f conftest.err conftest.$ac_ext | |
2691 | if $ac_preproc_ok; then | |
2692 | : | |
2693 | else | |
ec56be1b PA |
2694 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2695 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2696 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
bec39cab AC |
2697 | See \`config.log' for more details." >&5 |
2698 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2699 | See \`config.log' for more details." >&2;} | |
ec56be1b | 2700 | { (exit 1); exit 1; }; }; } |
84563040 | 2701 | fi |
bec39cab AC |
2702 | |
2703 | ac_ext=c | |
2704 | ac_cpp='$CPP $CPPFLAGS' | |
2705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2708 | ||
2709 | ||
dae5f5cf DJ |
2710 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2711 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2712 | if test "${ac_cv_prog_egrep+set}" = set; then | |
bec39cab | 2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
84563040 | 2714 | else |
dae5f5cf DJ |
2715 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2716 | then ac_cv_prog_egrep='grep -E' | |
2717 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2718 | fi |
b80864fb | 2719 | fi |
dae5f5cf DJ |
2720 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2721 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2722 | EGREP=$ac_cv_prog_egrep | |
b80864fb DJ |
2723 | |
2724 | ||
dae5f5cf DJ |
2725 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2726 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
2727 | if test "${ac_cv_header_stdc+set}" = set; then |
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
84563040 | 2729 | else |
bec39cab AC |
2730 | cat >conftest.$ac_ext <<_ACEOF |
2731 | /* confdefs.h. */ | |
2732 | _ACEOF | |
2733 | cat confdefs.h >>conftest.$ac_ext | |
2734 | cat >>conftest.$ac_ext <<_ACEOF | |
2735 | /* end confdefs.h. */ | |
84563040 DJ |
2736 | #include <stdlib.h> |
2737 | #include <stdarg.h> | |
2738 | #include <string.h> | |
2739 | #include <float.h> | |
bec39cab AC |
2740 | |
2741 | int | |
2742 | main () | |
2743 | { | |
2744 | ||
2745 | ; | |
2746 | return 0; | |
2747 | } | |
2748 | _ACEOF | |
2749 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
2750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2751 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
2752 | ac_status=$? |
2753 | grep -v '^ *+' conftest.er1 >conftest.err | |
2754 | rm -f conftest.er1 | |
2755 | cat conftest.err >&5 | |
2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2757 | (exit $ac_status); } && | |
dae5f5cf DJ |
2758 | { ac_try='test -z "$ac_c_werror_flag" |
2759 | || test ! -s conftest.err' | |
2760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2761 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2762 | ac_status=$? |
2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2764 | (exit $ac_status); }; } && | |
2765 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
2766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2767 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2768 | ac_status=$? |
2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2770 | (exit $ac_status); }; }; then | |
84563040 DJ |
2771 | ac_cv_header_stdc=yes |
2772 | else | |
bec39cab AC |
2773 | echo "$as_me: failed program was:" >&5 |
2774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2775 | ||
dae5f5cf | 2776 | ac_cv_header_stdc=no |
84563040 | 2777 | fi |
dae5f5cf | 2778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
84563040 DJ |
2779 | |
2780 | if test $ac_cv_header_stdc = yes; then | |
2781 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
bec39cab AC |
2782 | cat >conftest.$ac_ext <<_ACEOF |
2783 | /* confdefs.h. */ | |
2784 | _ACEOF | |
2785 | cat confdefs.h >>conftest.$ac_ext | |
2786 | cat >>conftest.$ac_ext <<_ACEOF | |
2787 | /* end confdefs.h. */ | |
84563040 | 2788 | #include <string.h> |
bec39cab AC |
2789 | |
2790 | _ACEOF | |
84563040 | 2791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2792 | $EGREP "memchr" >/dev/null 2>&1; then |
84563040 DJ |
2793 | : |
2794 | else | |
84563040 DJ |
2795 | ac_cv_header_stdc=no |
2796 | fi | |
2797 | rm -f conftest* | |
2798 | ||
2799 | fi | |
2800 | ||
2801 | if test $ac_cv_header_stdc = yes; then | |
2802 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
bec39cab AC |
2803 | cat >conftest.$ac_ext <<_ACEOF |
2804 | /* confdefs.h. */ | |
2805 | _ACEOF | |
2806 | cat confdefs.h >>conftest.$ac_ext | |
2807 | cat >>conftest.$ac_ext <<_ACEOF | |
2808 | /* end confdefs.h. */ | |
84563040 | 2809 | #include <stdlib.h> |
bec39cab AC |
2810 | |
2811 | _ACEOF | |
84563040 | 2812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2813 | $EGREP "free" >/dev/null 2>&1; then |
84563040 DJ |
2814 | : |
2815 | else | |
84563040 DJ |
2816 | ac_cv_header_stdc=no |
2817 | fi | |
2818 | rm -f conftest* | |
2819 | ||
2820 | fi | |
bec39cab AC |
2821 | |
2822 | if test $ac_cv_header_stdc = yes; then | |
2823 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2824 | if test "$cross_compiling" = yes; then | |
2825 | : | |
2826 | else | |
2827 | cat >conftest.$ac_ext <<_ACEOF | |
2828 | /* confdefs.h. */ | |
2829 | _ACEOF | |
2830 | cat confdefs.h >>conftest.$ac_ext | |
2831 | cat >>conftest.$ac_ext <<_ACEOF | |
2832 | /* end confdefs.h. */ | |
2833 | #include <ctype.h> | |
2834 | #if ((' ' & 0x0FF) == 0x020) | |
2835 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2836 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2837 | #else | |
2838 | # define ISLOWER(c) \ | |
2839 | (('a' <= (c) && (c) <= 'i') \ | |
2840 | || ('j' <= (c) && (c) <= 'r') \ | |
2841 | || ('s' <= (c) && (c) <= 'z')) | |
2842 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2843 | #endif | |
2844 | ||
2845 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2846 | int | |
2847 | main () | |
2848 | { | |
2849 | int i; | |
2850 | for (i = 0; i < 256; i++) | |
2851 | if (XOR (islower (i), ISLOWER (i)) | |
2852 | || toupper (i) != TOUPPER (i)) | |
dae5f5cf DJ |
2853 | exit(2); |
2854 | exit (0); | |
bec39cab AC |
2855 | } |
2856 | _ACEOF | |
2857 | rm -f conftest$ac_exeext | |
dae5f5cf DJ |
2858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2859 | (eval $ac_link) 2>&5 | |
bec39cab AC |
2860 | ac_status=$? |
2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
dae5f5cf DJ |
2863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2864 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2865 | ac_status=$? |
2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2867 | (exit $ac_status); }; }; then | |
2868 | : | |
2869 | else | |
2870 | echo "$as_me: program exited with status $ac_status" >&5 | |
2871 | echo "$as_me: failed program was:" >&5 | |
2872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2873 | ||
2874 | ( exit $ac_status ) | |
2875 | ac_cv_header_stdc=no | |
2876 | fi | |
dae5f5cf | 2877 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab AC |
2878 | fi |
2879 | fi | |
2880 | fi | |
dae5f5cf DJ |
2881 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
2882 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab AC |
2883 | if test $ac_cv_header_stdc = yes; then |
2884 | ||
2885 | cat >>confdefs.h <<\_ACEOF | |
2886 | #define STDC_HEADERS 1 | |
2887 | _ACEOF | |
2888 | ||
2889 | fi | |
2890 | ||
2891 | ||
2892 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2893 | ||
2894 | ||
2895 | ||
2896 | ||
2897 | ||
2898 | ||
2899 | ||
2900 | ||
2901 | ||
2902 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2903 | inttypes.h stdint.h unistd.h | |
2904 | do | |
2905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
dae5f5cf DJ |
2906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
2907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2910 | else | |
2911 | cat >conftest.$ac_ext <<_ACEOF | |
2912 | /* confdefs.h. */ | |
2913 | _ACEOF | |
2914 | cat confdefs.h >>conftest.$ac_ext | |
2915 | cat >>conftest.$ac_ext <<_ACEOF | |
2916 | /* end confdefs.h. */ | |
2917 | $ac_includes_default | |
2918 | ||
2919 | #include <$ac_header> | |
2920 | _ACEOF | |
2921 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
2922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2923 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
2924 | ac_status=$? |
2925 | grep -v '^ *+' conftest.er1 >conftest.err | |
2926 | rm -f conftest.er1 | |
2927 | cat conftest.err >&5 | |
2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2929 | (exit $ac_status); } && | |
dae5f5cf DJ |
2930 | { ac_try='test -z "$ac_c_werror_flag" |
2931 | || test ! -s conftest.err' | |
2932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2933 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2934 | ac_status=$? |
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2936 | (exit $ac_status); }; } && | |
2937 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
2938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2939 | (eval $ac_try) 2>&5 | |
bec39cab AC |
2940 | ac_status=$? |
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2942 | (exit $ac_status); }; }; then | |
2943 | eval "$as_ac_Header=yes" | |
2944 | else | |
2945 | echo "$as_me: failed program was:" >&5 | |
2946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2947 | ||
dae5f5cf | 2948 | eval "$as_ac_Header=no" |
bec39cab | 2949 | fi |
dae5f5cf | 2950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 2951 | fi |
dae5f5cf DJ |
2952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
2954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
2955 | cat >>confdefs.h <<_ACEOF | |
2956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2957 | _ACEOF | |
2958 | ||
2959 | fi | |
2960 | ||
2961 | done | |
2962 | ||
2963 | ||
2964 | ||
2965 | ||
2966 | ||
2967 | ||
2968 | ||
2969 | ||
2970 | ||
2971 | ||
2972 | ||
2973 | ||
2974 | ||
b80864fb DJ |
2975 | |
2976 | ||
2977 | ||
2978 | ||
2979 | ||
2980 | ||
2981 | ||
68070c10 PA |
2982 | |
2983 | ||
2984 | ||
2985 | ||
2986 | ||
1b3f6016 | 2987 | for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h |
bec39cab AC |
2988 | do |
2989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
dae5f5cf DJ |
2990 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
2991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
2994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2995 | fi | |
dae5f5cf DJ |
2996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
84563040 | 2998 | else |
bec39cab | 2999 | # Is the header compilable? |
dae5f5cf DJ |
3000 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3002 | cat >conftest.$ac_ext <<_ACEOF |
3003 | /* confdefs.h. */ | |
3004 | _ACEOF | |
3005 | cat confdefs.h >>conftest.$ac_ext | |
3006 | cat >>conftest.$ac_ext <<_ACEOF | |
3007 | /* end confdefs.h. */ | |
3008 | $ac_includes_default | |
3009 | #include <$ac_header> | |
3010 | _ACEOF | |
3011 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3013 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
3014 | ac_status=$? |
3015 | grep -v '^ *+' conftest.er1 >conftest.err | |
3016 | rm -f conftest.er1 | |
3017 | cat conftest.err >&5 | |
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3019 | (exit $ac_status); } && | |
dae5f5cf DJ |
3020 | { ac_try='test -z "$ac_c_werror_flag" |
3021 | || test ! -s conftest.err' | |
3022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3023 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3024 | ac_status=$? |
3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3026 | (exit $ac_status); }; } && | |
3027 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
3028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3029 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3030 | ac_status=$? |
3031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3032 | (exit $ac_status); }; }; then | |
3033 | ac_header_compiler=yes | |
84563040 | 3034 | else |
bec39cab AC |
3035 | echo "$as_me: failed program was:" >&5 |
3036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3037 | ||
dae5f5cf | 3038 | ac_header_compiler=no |
84563040 | 3039 | fi |
dae5f5cf DJ |
3040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3041 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3042 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3043 | |
3044 | # Is the header present? | |
dae5f5cf DJ |
3045 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3047 | cat >conftest.$ac_ext <<_ACEOF |
3048 | /* confdefs.h. */ | |
3049 | _ACEOF | |
3050 | cat confdefs.h >>conftest.$ac_ext | |
3051 | cat >>conftest.$ac_ext <<_ACEOF | |
3052 | /* end confdefs.h. */ | |
3053 | #include <$ac_header> | |
3054 | _ACEOF | |
dae5f5cf DJ |
3055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
bec39cab AC |
3057 | ac_status=$? |
3058 | grep -v '^ *+' conftest.er1 >conftest.err | |
3059 | rm -f conftest.er1 | |
3060 | cat conftest.err >&5 | |
3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3062 | (exit $ac_status); } >/dev/null; then | |
3063 | if test -s conftest.err; then | |
3064 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3066 | else | |
3067 | ac_cpp_err= | |
3068 | fi | |
3069 | else | |
3070 | ac_cpp_err=yes | |
84563040 | 3071 | fi |
bec39cab AC |
3072 | if test -z "$ac_cpp_err"; then |
3073 | ac_header_preproc=yes | |
3074 | else | |
3075 | echo "$as_me: failed program was:" >&5 | |
3076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
84563040 | 3077 | |
bec39cab | 3078 | ac_header_preproc=no |
84563040 | 3079 | fi |
bec39cab | 3080 | rm -f conftest.err conftest.$ac_ext |
dae5f5cf DJ |
3081 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3082 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3083 | |
3084 | # So? What about this header? | |
3085 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3086 | yes:no: ) | |
3087 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3088 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3089 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3090 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3091 | ac_header_preproc=yes | |
3092 | ;; | |
3093 | no:yes:* ) | |
3094 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3095 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3096 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3097 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3098 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3099 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3100 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3101 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3103 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3104 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3105 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
dae5f5cf DJ |
3106 | ( |
3107 | cat <<\_ASBOX | |
3108 | ## ------------------------------------------ ## | |
3109 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3110 | ## ------------------------------------------ ## | |
3111 | _ASBOX | |
3112 | ) | | |
3113 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3114 | ;; |
3115 | esac | |
dae5f5cf DJ |
3116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3120 | else | |
3121 | eval "$as_ac_Header=\$ac_header_preproc" | |
84563040 | 3122 | fi |
dae5f5cf DJ |
3123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
84563040 DJ |
3125 | |
3126 | fi | |
bec39cab AC |
3127 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3128 | cat >>confdefs.h <<_ACEOF | |
3129 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3130 | _ACEOF | |
84563040 | 3131 | |
84563040 | 3132 | fi |
bec39cab | 3133 | |
84563040 DJ |
3134 | done |
3135 | ||
3136 | ||
4e799345 DJ |
3137 | |
3138 | ||
3139 | for ac_func in pread pwrite pread64 | |
fd462a61 DJ |
3140 | do |
3141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3144 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3146 | else | |
3147 | cat >conftest.$ac_ext <<_ACEOF | |
3148 | /* confdefs.h. */ | |
3149 | _ACEOF | |
3150 | cat confdefs.h >>conftest.$ac_ext | |
3151 | cat >>conftest.$ac_ext <<_ACEOF | |
3152 | /* end confdefs.h. */ | |
3153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3155 | #define $ac_func innocuous_$ac_func | |
3156 | ||
3157 | /* System header to define __stub macros and hopefully few prototypes, | |
3158 | which can conflict with char $ac_func (); below. | |
3159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3160 | <limits.h> exists even on freestanding compilers. */ | |
3161 | ||
3162 | #ifdef __STDC__ | |
3163 | # include <limits.h> | |
3164 | #else | |
3165 | # include <assert.h> | |
3166 | #endif | |
3167 | ||
3168 | #undef $ac_func | |
3169 | ||
3170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3171 | #ifdef __cplusplus | |
3172 | extern "C" | |
3173 | { | |
3174 | #endif | |
3175 | /* We use char because int might match the return type of a gcc2 | |
3176 | builtin and then its argument prototype would still apply. */ | |
3177 | char $ac_func (); | |
3178 | /* The GNU C library defines this for functions which it implements | |
3179 | to always fail with ENOSYS. Some functions are actually named | |
3180 | something starting with __ and the normal name is an alias. */ | |
3181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3182 | choke me | |
3183 | #else | |
3184 | char (*f) () = $ac_func; | |
3185 | #endif | |
3186 | #ifdef __cplusplus | |
3187 | } | |
3188 | #endif | |
3189 | ||
3190 | int | |
3191 | main () | |
3192 | { | |
3193 | return f != $ac_func; | |
3194 | ; | |
3195 | return 0; | |
3196 | } | |
3197 | _ACEOF | |
3198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3200 | (eval $ac_link) 2>conftest.er1 | |
3201 | ac_status=$? | |
3202 | grep -v '^ *+' conftest.er1 >conftest.err | |
3203 | rm -f conftest.er1 | |
3204 | cat conftest.err >&5 | |
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 | (exit $ac_status); } && | |
3207 | { ac_try='test -z "$ac_c_werror_flag" | |
3208 | || test ! -s conftest.err' | |
3209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3210 | (eval $ac_try) 2>&5 | |
3211 | ac_status=$? | |
3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3213 | (exit $ac_status); }; } && | |
3214 | { ac_try='test -s conftest$ac_exeext' | |
3215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3216 | (eval $ac_try) 2>&5 | |
3217 | ac_status=$? | |
3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3219 | (exit $ac_status); }; }; then | |
3220 | eval "$as_ac_var=yes" | |
3221 | else | |
3222 | echo "$as_me: failed program was:" >&5 | |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3224 | ||
3225 | eval "$as_ac_var=no" | |
3226 | fi | |
3227 | rm -f conftest.err conftest.$ac_objext \ | |
3228 | conftest$ac_exeext conftest.$ac_ext | |
3229 | fi | |
3230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3231 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3232 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3233 | cat >>confdefs.h <<_ACEOF | |
3234 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3235 | _ACEOF | |
3236 | ||
3237 | fi | |
3238 | done | |
3239 | ||
3240 | ||
e28b3332 DJ |
3241 | for ac_func in memmem |
3242 | do | |
3243 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3244 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3245 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3246 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3248 | else | |
3249 | cat >conftest.$ac_ext <<_ACEOF | |
3250 | /* confdefs.h. */ | |
3251 | _ACEOF | |
3252 | cat confdefs.h >>conftest.$ac_ext | |
3253 | cat >>conftest.$ac_ext <<_ACEOF | |
3254 | /* end confdefs.h. */ | |
3255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3257 | #define $ac_func innocuous_$ac_func | |
3258 | ||
3259 | /* System header to define __stub macros and hopefully few prototypes, | |
3260 | which can conflict with char $ac_func (); below. | |
3261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3262 | <limits.h> exists even on freestanding compilers. */ | |
3263 | ||
3264 | #ifdef __STDC__ | |
3265 | # include <limits.h> | |
3266 | #else | |
3267 | # include <assert.h> | |
3268 | #endif | |
3269 | ||
3270 | #undef $ac_func | |
3271 | ||
3272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3273 | #ifdef __cplusplus | |
3274 | extern "C" | |
3275 | { | |
3276 | #endif | |
3277 | /* We use char because int might match the return type of a gcc2 | |
3278 | builtin and then its argument prototype would still apply. */ | |
3279 | char $ac_func (); | |
3280 | /* The GNU C library defines this for functions which it implements | |
3281 | to always fail with ENOSYS. Some functions are actually named | |
3282 | something starting with __ and the normal name is an alias. */ | |
3283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3284 | choke me | |
3285 | #else | |
3286 | char (*f) () = $ac_func; | |
3287 | #endif | |
3288 | #ifdef __cplusplus | |
3289 | } | |
3290 | #endif | |
3291 | ||
3292 | int | |
3293 | main () | |
3294 | { | |
3295 | return f != $ac_func; | |
3296 | ; | |
3297 | return 0; | |
3298 | } | |
3299 | _ACEOF | |
3300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3302 | (eval $ac_link) 2>conftest.er1 | |
3303 | ac_status=$? | |
3304 | grep -v '^ *+' conftest.er1 >conftest.err | |
3305 | rm -f conftest.er1 | |
3306 | cat conftest.err >&5 | |
3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3308 | (exit $ac_status); } && | |
3309 | { ac_try='test -z "$ac_c_werror_flag" | |
3310 | || test ! -s conftest.err' | |
3311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3312 | (eval $ac_try) 2>&5 | |
3313 | ac_status=$? | |
3314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3315 | (exit $ac_status); }; } && | |
3316 | { ac_try='test -s conftest$ac_exeext' | |
3317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3318 | (eval $ac_try) 2>&5 | |
3319 | ac_status=$? | |
3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3321 | (exit $ac_status); }; }; then | |
3322 | eval "$as_ac_var=yes" | |
3323 | else | |
3324 | echo "$as_me: failed program was:" >&5 | |
3325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3326 | ||
3327 | eval "$as_ac_var=no" | |
3328 | fi | |
3329 | rm -f conftest.err conftest.$ac_objext \ | |
3330 | conftest$ac_exeext conftest.$ac_ext | |
3331 | fi | |
3332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3335 | cat >>confdefs.h <<_ACEOF | |
3336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3337 | _ACEOF | |
3338 | ||
3339 | else | |
3340 | case $LIBOBJS in | |
3341 | "$ac_func.$ac_objext" | \ | |
3342 | *" $ac_func.$ac_objext" | \ | |
3343 | "$ac_func.$ac_objext "* | \ | |
3344 | *" $ac_func.$ac_objext "* ) ;; | |
3345 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; | |
3346 | esac | |
3347 | ||
3348 | fi | |
3349 | done | |
3350 | ||
3351 | ||
3352 | ||
68070c10 PA |
3353 | have_errno=no |
3354 | echo "$as_me:$LINENO: checking for errno" >&5 | |
3355 | echo $ECHO_N "checking for errno... $ECHO_C" >&6 | |
3356 | cat >conftest.$ac_ext <<_ACEOF | |
3357 | /* confdefs.h. */ | |
3358 | _ACEOF | |
3359 | cat confdefs.h >>conftest.$ac_ext | |
3360 | cat >>conftest.$ac_ext <<_ACEOF | |
3361 | /* end confdefs.h. */ | |
3362 | ||
3363 | #if HAVE_ERRNO_H | |
3364 | #include <errno.h> | |
3365 | #endif | |
3366 | int | |
3367 | main () | |
3368 | { | |
3369 | static int x; x = errno; | |
3370 | ; | |
3371 | return 0; | |
3372 | } | |
3373 | _ACEOF | |
3374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3376 | (eval $ac_link) 2>conftest.er1 | |
3377 | ac_status=$? | |
3378 | grep -v '^ *+' conftest.er1 >conftest.err | |
3379 | rm -f conftest.er1 | |
3380 | cat conftest.err >&5 | |
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3382 | (exit $ac_status); } && | |
3383 | { ac_try='test -z "$ac_c_werror_flag" | |
3384 | || test ! -s conftest.err' | |
3385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3386 | (eval $ac_try) 2>&5 | |
3387 | ac_status=$? | |
3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3389 | (exit $ac_status); }; } && | |
3390 | { ac_try='test -s conftest$ac_exeext' | |
3391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3392 | (eval $ac_try) 2>&5 | |
3393 | ac_status=$? | |
3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3395 | (exit $ac_status); }; }; then | |
3396 | echo "$as_me:$LINENO: result: yes - in errno.h" >&5 | |
3397 | echo "${ECHO_T}yes - in errno.h" >&6; | |
3398 | cat >>confdefs.h <<\_ACEOF | |
3399 | #define HAVE_ERRNO 1 | |
3400 | _ACEOF | |
3401 | have_errno=yes | |
3402 | else | |
3403 | echo "$as_me: failed program was:" >&5 | |
3404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3405 | ||
3406 | fi | |
3407 | rm -f conftest.err conftest.$ac_objext \ | |
3408 | conftest$ac_exeext conftest.$ac_ext | |
3409 | if test $have_errno = no; then | |
3410 | cat >conftest.$ac_ext <<_ACEOF | |
3411 | /* confdefs.h. */ | |
3412 | _ACEOF | |
3413 | cat confdefs.h >>conftest.$ac_ext | |
3414 | cat >>conftest.$ac_ext <<_ACEOF | |
3415 | /* end confdefs.h. */ | |
3416 | ||
3417 | #if HAVE_ERRNO_H | |
3418 | #include <errno.h> | |
3419 | #endif | |
3420 | int | |
3421 | main () | |
3422 | { | |
3423 | extern int errno; static int x; x = errno; | |
3424 | ; | |
3425 | return 0; | |
3426 | } | |
3427 | _ACEOF | |
3428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3430 | (eval $ac_link) 2>conftest.er1 | |
3431 | ac_status=$? | |
3432 | grep -v '^ *+' conftest.er1 >conftest.err | |
3433 | rm -f conftest.er1 | |
3434 | cat conftest.err >&5 | |
3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3436 | (exit $ac_status); } && | |
3437 | { ac_try='test -z "$ac_c_werror_flag" | |
3438 | || test ! -s conftest.err' | |
3439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3440 | (eval $ac_try) 2>&5 | |
3441 | ac_status=$? | |
3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3443 | (exit $ac_status); }; } && | |
3444 | { ac_try='test -s conftest$ac_exeext' | |
3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3446 | (eval $ac_try) 2>&5 | |
3447 | ac_status=$? | |
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | (exit $ac_status); }; }; then | |
3450 | echo "$as_me:$LINENO: result: yes - must define" >&5 | |
3451 | echo "${ECHO_T}yes - must define" >&6; | |
3452 | cat >>confdefs.h <<\_ACEOF | |
3453 | #define HAVE_ERRNO 1 | |
3454 | _ACEOF | |
3455 | ||
3456 | cat >>confdefs.h <<\_ACEOF | |
3457 | #define MUST_DEFINE_ERRNO 1 | |
3458 | _ACEOF | |
3459 | ||
3460 | else | |
3461 | echo "$as_me: failed program was:" >&5 | |
3462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3463 | ||
3464 | echo "$as_me:$LINENO: result: no" >&5 | |
3465 | echo "${ECHO_T}no" >&6 | |
3466 | fi | |
3467 | rm -f conftest.err conftest.$ac_objext \ | |
3468 | conftest$ac_exeext conftest.$ac_ext | |
3469 | fi | |
3470 | ||
dae5f5cf DJ |
3471 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
3472 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
e122f1f5 | 3473 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
bec39cab | 3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
43d5792c | 3475 | else |
bec39cab AC |
3476 | cat >conftest.$ac_ext <<_ACEOF |
3477 | /* confdefs.h. */ | |
3478 | _ACEOF | |
3479 | cat confdefs.h >>conftest.$ac_ext | |
3480 | cat >>conftest.$ac_ext <<_ACEOF | |
3481 | /* end confdefs.h. */ | |
e122f1f5 | 3482 | $ac_includes_default |
bec39cab AC |
3483 | int |
3484 | main () | |
3485 | { | |
e122f1f5 SE |
3486 | #ifndef strerror |
3487 | char *p = (char *) strerror; | |
3488 | #endif | |
3489 | ||
bec39cab AC |
3490 | ; |
3491 | return 0; | |
3492 | } | |
3493 | _ACEOF | |
3494 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3496 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
3497 | ac_status=$? |
3498 | grep -v '^ *+' conftest.er1 >conftest.err | |
3499 | rm -f conftest.er1 | |
3500 | cat conftest.err >&5 | |
3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3502 | (exit $ac_status); } && | |
dae5f5cf DJ |
3503 | { ac_try='test -z "$ac_c_werror_flag" |
3504 | || test ! -s conftest.err' | |
3505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3506 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3507 | ac_status=$? |
3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3509 | (exit $ac_status); }; } && | |
3510 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
3511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3512 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3513 | ac_status=$? |
3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3515 | (exit $ac_status); }; }; then | |
e122f1f5 | 3516 | ac_cv_have_decl_strerror=yes |
43d5792c | 3517 | else |
bec39cab AC |
3518 | echo "$as_me: failed program was:" >&5 |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3520 | ||
dae5f5cf | 3521 | ac_cv_have_decl_strerror=no |
43d5792c | 3522 | fi |
dae5f5cf | 3523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43d5792c | 3524 | fi |
dae5f5cf DJ |
3525 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
3526 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
e122f1f5 | 3527 | if test $ac_cv_have_decl_strerror = yes; then |
43d5792c | 3528 | |
e122f1f5 SE |
3529 | cat >>confdefs.h <<_ACEOF |
3530 | #define HAVE_DECL_STRERROR 1 | |
3531 | _ACEOF | |
bec39cab | 3532 | |
e122f1f5 SE |
3533 | |
3534 | else | |
3535 | cat >>confdefs.h <<_ACEOF | |
3536 | #define HAVE_DECL_STRERROR 0 | |
bec39cab | 3537 | _ACEOF |
43d5792c | 3538 | |
e122f1f5 | 3539 | |
68070c10 PA |
3540 | fi |
3541 | echo "$as_me:$LINENO: checking whether perror is declared" >&5 | |
3542 | echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6 | |
3543 | if test "${ac_cv_have_decl_perror+set}" = set; then | |
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3545 | else | |
3546 | cat >conftest.$ac_ext <<_ACEOF | |
3547 | /* confdefs.h. */ | |
3548 | _ACEOF | |
3549 | cat confdefs.h >>conftest.$ac_ext | |
3550 | cat >>conftest.$ac_ext <<_ACEOF | |
3551 | /* end confdefs.h. */ | |
3552 | $ac_includes_default | |
3553 | int | |
3554 | main () | |
3555 | { | |
3556 | #ifndef perror | |
3557 | char *p = (char *) perror; | |
3558 | #endif | |
3559 | ||
3560 | ; | |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
3564 | rm -f conftest.$ac_objext | |
3565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3566 | (eval $ac_compile) 2>conftest.er1 | |
3567 | ac_status=$? | |
3568 | grep -v '^ *+' conftest.er1 >conftest.err | |
3569 | rm -f conftest.er1 | |
3570 | cat conftest.err >&5 | |
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3572 | (exit $ac_status); } && | |
3573 | { ac_try='test -z "$ac_c_werror_flag" | |
3574 | || test ! -s conftest.err' | |
3575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3576 | (eval $ac_try) 2>&5 | |
3577 | ac_status=$? | |
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3579 | (exit $ac_status); }; } && | |
3580 | { ac_try='test -s conftest.$ac_objext' | |
3581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3582 | (eval $ac_try) 2>&5 | |
3583 | ac_status=$? | |
3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3585 | (exit $ac_status); }; }; then | |
3586 | ac_cv_have_decl_perror=yes | |
3587 | else | |
3588 | echo "$as_me: failed program was:" >&5 | |
3589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3590 | ||
3591 | ac_cv_have_decl_perror=no | |
3592 | fi | |
3593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3594 | fi | |
3595 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5 | |
3596 | echo "${ECHO_T}$ac_cv_have_decl_perror" >&6 | |
3597 | if test $ac_cv_have_decl_perror = yes; then | |
3598 | ||
3599 | cat >>confdefs.h <<_ACEOF | |
3600 | #define HAVE_DECL_PERROR 1 | |
3601 | _ACEOF | |
3602 | ||
3603 | ||
3604 | else | |
3605 | cat >>confdefs.h <<_ACEOF | |
3606 | #define HAVE_DECL_PERROR 0 | |
3607 | _ACEOF | |
3608 | ||
3609 | ||
ec56be1b PA |
3610 | fi |
3611 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 | |
3612 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 | |
3613 | if test "${ac_cv_have_decl_memmem+set}" = set; then | |
3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3615 | else | |
3616 | cat >conftest.$ac_ext <<_ACEOF | |
3617 | /* confdefs.h. */ | |
3618 | _ACEOF | |
3619 | cat confdefs.h >>conftest.$ac_ext | |
3620 | cat >>conftest.$ac_ext <<_ACEOF | |
3621 | /* end confdefs.h. */ | |
3622 | $ac_includes_default | |
3623 | int | |
3624 | main () | |
3625 | { | |
3626 | #ifndef memmem | |
3627 | char *p = (char *) memmem; | |
3628 | #endif | |
3629 | ||
3630 | ; | |
3631 | return 0; | |
3632 | } | |
3633 | _ACEOF | |
3634 | rm -f conftest.$ac_objext | |
3635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3636 | (eval $ac_compile) 2>conftest.er1 | |
3637 | ac_status=$? | |
3638 | grep -v '^ *+' conftest.er1 >conftest.err | |
3639 | rm -f conftest.er1 | |
3640 | cat conftest.err >&5 | |
3641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3642 | (exit $ac_status); } && | |
3643 | { ac_try='test -z "$ac_c_werror_flag" | |
3644 | || test ! -s conftest.err' | |
3645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3646 | (eval $ac_try) 2>&5 | |
3647 | ac_status=$? | |
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3649 | (exit $ac_status); }; } && | |
3650 | { ac_try='test -s conftest.$ac_objext' | |
3651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3652 | (eval $ac_try) 2>&5 | |
3653 | ac_status=$? | |
3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3655 | (exit $ac_status); }; }; then | |
3656 | ac_cv_have_decl_memmem=yes | |
3657 | else | |
3658 | echo "$as_me: failed program was:" >&5 | |
3659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3660 | ||
3661 | ac_cv_have_decl_memmem=no | |
3662 | fi | |
3663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3664 | fi | |
3665 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 | |
3666 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 | |
3667 | if test $ac_cv_have_decl_memmem = yes; then | |
3668 | ||
3669 | cat >>confdefs.h <<_ACEOF | |
3670 | #define HAVE_DECL_MEMMEM 1 | |
3671 | _ACEOF | |
3672 | ||
3673 | ||
3674 | else | |
3675 | cat >>confdefs.h <<_ACEOF | |
3676 | #define HAVE_DECL_MEMMEM 0 | |
3677 | _ACEOF | |
3678 | ||
3679 | ||
43d5792c DJ |
3680 | fi |
3681 | ||
3682 | ||
e122f1f5 | 3683 | |
dae5f5cf DJ |
3684 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
3685 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
f450004a DJ |
3686 | if test "${ac_cv_type_socklen_t+set}" = set; then |
3687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3688 | else | |
3689 | cat >conftest.$ac_ext <<_ACEOF | |
3690 | /* confdefs.h. */ | |
3691 | _ACEOF | |
3692 | cat confdefs.h >>conftest.$ac_ext | |
3693 | cat >>conftest.$ac_ext <<_ACEOF | |
3694 | /* end confdefs.h. */ | |
ccbd4912 | 3695 | #include <sys/types.h> |
f450004a DJ |
3696 | #include <sys/socket.h> |
3697 | ||
ccbd4912 | 3698 | |
f450004a DJ |
3699 | int |
3700 | main () | |
3701 | { | |
dae5f5cf | 3702 | if ((socklen_t *) 0) |
f450004a | 3703 | return 0; |
dae5f5cf | 3704 | if (sizeof (socklen_t)) |
f450004a DJ |
3705 | return 0; |
3706 | ; | |
3707 | return 0; | |
3708 | } | |
3709 | _ACEOF | |
3710 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3712 | (eval $ac_compile) 2>conftest.er1 | |
f450004a DJ |
3713 | ac_status=$? |
3714 | grep -v '^ *+' conftest.er1 >conftest.err | |
3715 | rm -f conftest.er1 | |
3716 | cat conftest.err >&5 | |
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3718 | (exit $ac_status); } && | |
dae5f5cf DJ |
3719 | { ac_try='test -z "$ac_c_werror_flag" |
3720 | || test ! -s conftest.err' | |
3721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3722 | (eval $ac_try) 2>&5 | |
f450004a DJ |
3723 | ac_status=$? |
3724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3725 | (exit $ac_status); }; } && | |
3726 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
3727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3728 | (eval $ac_try) 2>&5 | |
f450004a DJ |
3729 | ac_status=$? |
3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3731 | (exit $ac_status); }; }; then | |
3732 | ac_cv_type_socklen_t=yes | |
3733 | else | |
3734 | echo "$as_me: failed program was:" >&5 | |
3735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3736 | ||
dae5f5cf | 3737 | ac_cv_type_socklen_t=no |
f450004a | 3738 | fi |
dae5f5cf | 3739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f450004a | 3740 | fi |
dae5f5cf DJ |
3741 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
3742 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
f450004a DJ |
3743 | if test $ac_cv_type_socklen_t = yes; then |
3744 | ||
ccbd4912 | 3745 | cat >>confdefs.h <<_ACEOF |
f450004a DJ |
3746 | #define HAVE_SOCKLEN_T 1 |
3747 | _ACEOF | |
3748 | ||
f450004a | 3749 | |
ccbd4912 | 3750 | fi |
f450004a | 3751 | |
fb1e4ffc | 3752 | |
c16158bc JM |
3753 | |
3754 | ||
3755 | # Check whether --with-pkgversion or --without-pkgversion was given. | |
3756 | if test "${with_pkgversion+set}" = set; then | |
3757 | withval="$with_pkgversion" | |
3758 | case "$withval" in | |
3759 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
3760 | echo "$as_me: error: package version not specified" >&2;} | |
3761 | { (exit 1); exit 1; }; } ;; | |
3762 | no) PKGVERSION= ;; | |
3763 | *) PKGVERSION="($withval) " ;; | |
3764 | esac | |
3765 | else | |
3766 | PKGVERSION="(GDB) " | |
3767 | ||
3768 | fi; | |
3769 | ||
3770 | ||
3771 | ||
3772 | ||
3773 | # Check whether --with-bugurl or --without-bugurl was given. | |
3774 | if test "${with_bugurl+set}" = set; then | |
3775 | withval="$with_bugurl" | |
3776 | case "$withval" in | |
3777 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
3778 | echo "$as_me: error: bug URL not specified" >&2;} | |
3779 | { (exit 1); exit 1; }; } ;; | |
3780 | no) BUGURL= | |
3781 | ;; | |
3782 | *) BUGURL="$withval" | |
3783 | ;; | |
3784 | esac | |
3785 | else | |
3786 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
3787 | ||
3788 | fi; | |
3789 | case ${BUGURL} in | |
3790 | "") | |
3791 | REPORT_BUGS_TO= | |
3792 | REPORT_BUGS_TEXI= | |
3793 | ;; | |
3794 | *) | |
3795 | REPORT_BUGS_TO="<$BUGURL>" | |
3796 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
3797 | ;; | |
3798 | esac; | |
3799 | ||
3800 | ||
3801 | ||
3802 | ||
3803 | cat >>confdefs.h <<_ACEOF | |
3804 | #define PKGVERSION "$PKGVERSION" | |
3805 | _ACEOF | |
3806 | ||
3807 | ||
3808 | cat >>confdefs.h <<_ACEOF | |
3809 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
3810 | _ACEOF | |
3811 | ||
3812 | ||
7ea81414 | 3813 | . ${srcdir}/configure.srv |
d6e9fb05 | 3814 | |
68070c10 PA |
3815 | if test "${srv_mingwce}" = "yes"; then |
3816 | LIBS="$LIBS -lws2" | |
3817 | elif test "${srv_mingw}" = "yes"; then | |
b80864fb | 3818 | LIBS="$LIBS -lwsock32" |
ac8c974e AR |
3819 | elif test "${srv_qnx}" = "yes"; then |
3820 | LIBS="$LIBS -lsocket" | |
68070c10 PA |
3821 | fi |
3822 | ||
3823 | if test "${srv_mingw}" = "yes"; then | |
b80864fb DJ |
3824 | |
3825 | cat >>confdefs.h <<\_ACEOF | |
3826 | #define USE_WIN32API 1 | |
3827 | _ACEOF | |
3828 | ||
3829 | fi | |
3830 | ||
58caa3dc | 3831 | if test "${srv_linux_usrregs}" = "yes"; then |
f450004a DJ |
3832 | |
3833 | cat >>confdefs.h <<\_ACEOF | |
58caa3dc | 3834 | #define HAVE_LINUX_USRREGS 1 |
bec39cab | 3835 | _ACEOF |
58caa3dc DJ |
3836 | |
3837 | fi | |
3838 | ||
3839 | if test "${srv_linux_regsets}" = "yes"; then | |
e9d25b98 DJ |
3840 | |
3841 | cat >>confdefs.h <<\_ACEOF | |
3842 | #define HAVE_LINUX_REGSETS 1 | |
3843 | _ACEOF | |
3844 | ||
3845 | ||
dae5f5cf DJ |
3846 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
3847 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
bec39cab AC |
3848 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then |
3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3850 | else | |
3851 | cat >conftest.$ac_ext <<_ACEOF | |
3852 | /* confdefs.h. */ | |
3853 | _ACEOF | |
3854 | cat confdefs.h >>conftest.$ac_ext | |
3855 | cat >>conftest.$ac_ext <<_ACEOF | |
3856 | /* end confdefs.h. */ | |
58caa3dc | 3857 | #include <sys/ptrace.h> |
bec39cab AC |
3858 | int |
3859 | main () | |
3860 | { | |
58caa3dc | 3861 | PTRACE_GETREGS; |
bec39cab AC |
3862 | ; |
3863 | return 0; | |
3864 | } | |
3865 | _ACEOF | |
3866 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3868 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
3869 | ac_status=$? |
3870 | grep -v '^ *+' conftest.er1 >conftest.err | |
3871 | rm -f conftest.er1 | |
3872 | cat conftest.err >&5 | |
3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3874 | (exit $ac_status); } && | |
dae5f5cf DJ |
3875 | { ac_try='test -z "$ac_c_werror_flag" |
3876 | || test ! -s conftest.err' | |
3877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3878 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3879 | ac_status=$? |
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3881 | (exit $ac_status); }; } && | |
3882 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
3883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3884 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3885 | ac_status=$? |
3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3887 | (exit $ac_status); }; }; then | |
58caa3dc DJ |
3888 | gdbsrv_cv_have_ptrace_getregs=yes |
3889 | else | |
bec39cab AC |
3890 | echo "$as_me: failed program was:" >&5 |
3891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3892 | ||
dae5f5cf | 3893 | gdbsrv_cv_have_ptrace_getregs=no |
58caa3dc | 3894 | fi |
dae5f5cf | 3895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
3896 | fi |
3897 | ||
dae5f5cf DJ |
3898 | echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
3899 | echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6 | |
58caa3dc | 3900 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
f450004a DJ |
3901 | |
3902 | cat >>confdefs.h <<\_ACEOF | |
e9d25b98 | 3903 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 3904 | _ACEOF |
58caa3dc DJ |
3905 | |
3906 | fi | |
3907 | ||
dae5f5cf DJ |
3908 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
3909 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
bec39cab AC |
3910 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then |
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
58caa3dc | 3912 | else |
bec39cab AC |
3913 | cat >conftest.$ac_ext <<_ACEOF |
3914 | /* confdefs.h. */ | |
3915 | _ACEOF | |
3916 | cat confdefs.h >>conftest.$ac_ext | |
3917 | cat >>conftest.$ac_ext <<_ACEOF | |
3918 | /* end confdefs.h. */ | |
58caa3dc | 3919 | #include <sys/ptrace.h> |
bec39cab AC |
3920 | int |
3921 | main () | |
3922 | { | |
58caa3dc | 3923 | PTRACE_GETFPXREGS; |
bec39cab AC |
3924 | ; |
3925 | return 0; | |
3926 | } | |
3927 | _ACEOF | |
3928 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3930 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
3931 | ac_status=$? |
3932 | grep -v '^ *+' conftest.er1 >conftest.err | |
3933 | rm -f conftest.er1 | |
3934 | cat conftest.err >&5 | |
3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3936 | (exit $ac_status); } && | |
dae5f5cf DJ |
3937 | { ac_try='test -z "$ac_c_werror_flag" |
3938 | || test ! -s conftest.err' | |
3939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3940 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3941 | ac_status=$? |
3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3943 | (exit $ac_status); }; } && | |
3944 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
3945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3946 | (eval $ac_try) 2>&5 | |
bec39cab AC |
3947 | ac_status=$? |
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3949 | (exit $ac_status); }; }; then | |
58caa3dc DJ |
3950 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
3951 | else | |
bec39cab AC |
3952 | echo "$as_me: failed program was:" >&5 |
3953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3954 | ||
dae5f5cf | 3955 | gdbsrv_cv_have_ptrace_getfpxregs=no |
58caa3dc | 3956 | fi |
dae5f5cf | 3957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
3958 | fi |
3959 | ||
dae5f5cf DJ |
3960 | echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
3961 | echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6 | |
58caa3dc | 3962 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
f450004a DJ |
3963 | |
3964 | cat >>confdefs.h <<\_ACEOF | |
58caa3dc | 3965 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 3966 | _ACEOF |
58caa3dc DJ |
3967 | |
3968 | fi | |
3969 | fi | |
3970 | ||
0d62e5e8 | 3971 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
dae5f5cf DJ |
3972 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
3973 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
3974 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d62e5e8 | 3976 | else |
bec39cab AC |
3977 | cat >conftest.$ac_ext <<_ACEOF |
3978 | /* confdefs.h. */ | |
3979 | _ACEOF | |
3980 | cat confdefs.h >>conftest.$ac_ext | |
3981 | cat >>conftest.$ac_ext <<_ACEOF | |
3982 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
3983 | |
3984 | #define _SYSCALL32 | |
3985 | #include <sys/procfs.h> | |
bec39cab AC |
3986 | int |
3987 | main () | |
3988 | { | |
0d62e5e8 | 3989 | lwpid_t avar |
bec39cab AC |
3990 | ; |
3991 | return 0; | |
3992 | } | |
3993 | _ACEOF | |
3994 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
3995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3996 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
3997 | ac_status=$? |
3998 | grep -v '^ *+' conftest.er1 >conftest.err | |
3999 | rm -f conftest.er1 | |
4000 | cat conftest.err >&5 | |
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4002 | (exit $ac_status); } && | |
dae5f5cf DJ |
4003 | { ac_try='test -z "$ac_c_werror_flag" |
4004 | || test ! -s conftest.err' | |
4005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4006 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4007 | ac_status=$? |
4008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4009 | (exit $ac_status); }; } && | |
4010 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
4011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4012 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4013 | ac_status=$? |
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4016 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
4017 | else | |
bec39cab AC |
4018 | echo "$as_me: failed program was:" >&5 |
4019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4020 | ||
dae5f5cf | 4021 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 4022 | |
0d62e5e8 | 4023 | fi |
dae5f5cf | 4024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
4025 | fi |
4026 | ||
4027 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then | |
bec39cab AC |
4028 | |
4029 | cat >>confdefs.h <<\_ACEOF | |
0d62e5e8 | 4030 | #define HAVE_LWPID_T 1 |
bec39cab | 4031 | _ACEOF |
0d62e5e8 DJ |
4032 | |
4033 | fi | |
dae5f5cf DJ |
4034 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
4035 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
0d62e5e8 | 4036 | |
dae5f5cf DJ |
4037 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
4038 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
4039 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d62e5e8 | 4041 | else |
bec39cab AC |
4042 | cat >conftest.$ac_ext <<_ACEOF |
4043 | /* confdefs.h. */ | |
4044 | _ACEOF | |
4045 | cat confdefs.h >>conftest.$ac_ext | |
4046 | cat >>conftest.$ac_ext <<_ACEOF | |
4047 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
4048 | |
4049 | #define _SYSCALL32 | |
4050 | #include <sys/procfs.h> | |
bec39cab AC |
4051 | int |
4052 | main () | |
4053 | { | |
0d62e5e8 | 4054 | psaddr_t avar |
bec39cab AC |
4055 | ; |
4056 | return 0; | |
4057 | } | |
4058 | _ACEOF | |
4059 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
4060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4061 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
4062 | ac_status=$? |
4063 | grep -v '^ *+' conftest.er1 >conftest.err | |
4064 | rm -f conftest.er1 | |
4065 | cat conftest.err >&5 | |
4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4067 | (exit $ac_status); } && | |
dae5f5cf DJ |
4068 | { ac_try='test -z "$ac_c_werror_flag" |
4069 | || test ! -s conftest.err' | |
4070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4071 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4072 | ac_status=$? |
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4074 | (exit $ac_status); }; } && | |
4075 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
4076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4077 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4078 | ac_status=$? |
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4080 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4081 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
4082 | else | |
bec39cab AC |
4083 | echo "$as_me: failed program was:" >&5 |
4084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4085 | ||
dae5f5cf | 4086 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 4087 | |
0d62e5e8 | 4088 | fi |
dae5f5cf | 4089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
4090 | fi |
4091 | ||
4092 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then | |
bec39cab AC |
4093 | |
4094 | cat >>confdefs.h <<\_ACEOF | |
0d62e5e8 | 4095 | #define HAVE_PSADDR_T 1 |
bec39cab | 4096 | _ACEOF |
0d62e5e8 DJ |
4097 | |
4098 | fi | |
dae5f5cf DJ |
4099 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
4100 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
0d62e5e8 | 4101 | |
dae5f5cf DJ |
4102 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
4103 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
4104 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d62e5e8 | 4106 | else |
bec39cab AC |
4107 | cat >conftest.$ac_ext <<_ACEOF |
4108 | /* confdefs.h. */ | |
4109 | _ACEOF | |
4110 | cat confdefs.h >>conftest.$ac_ext | |
4111 | cat >>conftest.$ac_ext <<_ACEOF | |
4112 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
4113 | |
4114 | #define _SYSCALL32 | |
4115 | #include <sys/procfs.h> | |
bec39cab AC |
4116 | int |
4117 | main () | |
4118 | { | |
0d62e5e8 | 4119 | prgregset_t avar |
bec39cab AC |
4120 | ; |
4121 | return 0; | |
4122 | } | |
4123 | _ACEOF | |
4124 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
4125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4126 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
4127 | ac_status=$? |
4128 | grep -v '^ *+' conftest.er1 >conftest.err | |
4129 | rm -f conftest.er1 | |
4130 | cat conftest.err >&5 | |
4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4132 | (exit $ac_status); } && | |
dae5f5cf DJ |
4133 | { ac_try='test -z "$ac_c_werror_flag" |
4134 | || test ! -s conftest.err' | |
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4136 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4137 | ac_status=$? |
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4139 | (exit $ac_status); }; } && | |
4140 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
4141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4142 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4143 | ac_status=$? |
4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4145 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4146 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
4147 | else | |
bec39cab AC |
4148 | echo "$as_me: failed program was:" >&5 |
4149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4150 | ||
dae5f5cf | 4151 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 4152 | |
0d62e5e8 | 4153 | fi |
dae5f5cf | 4154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
4155 | fi |
4156 | ||
4157 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then | |
bec39cab AC |
4158 | |
4159 | cat >>confdefs.h <<\_ACEOF | |
0d62e5e8 | 4160 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 4161 | _ACEOF |
0d62e5e8 DJ |
4162 | |
4163 | fi | |
dae5f5cf DJ |
4164 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
4165 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
0d62e5e8 | 4166 | |
dae5f5cf DJ |
4167 | echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5 |
4168 | echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
4169 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then |
4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d62e5e8 | 4171 | else |
bec39cab AC |
4172 | cat >conftest.$ac_ext <<_ACEOF |
4173 | /* confdefs.h. */ | |
4174 | _ACEOF | |
4175 | cat confdefs.h >>conftest.$ac_ext | |
4176 | cat >>conftest.$ac_ext <<_ACEOF | |
4177 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
4178 | |
4179 | #define _SYSCALL32 | |
4180 | #include <sys/procfs.h> | |
bec39cab AC |
4181 | int |
4182 | main () | |
4183 | { | |
0d62e5e8 | 4184 | elf_fpregset_t avar |
bec39cab AC |
4185 | ; |
4186 | return 0; | |
4187 | } | |
4188 | _ACEOF | |
4189 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
4190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4191 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
4192 | ac_status=$? |
4193 | grep -v '^ *+' conftest.er1 >conftest.err | |
4194 | rm -f conftest.er1 | |
4195 | cat conftest.err >&5 | |
4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4197 | (exit $ac_status); } && | |
dae5f5cf DJ |
4198 | { ac_try='test -z "$ac_c_werror_flag" |
4199 | || test ! -s conftest.err' | |
4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4201 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4202 | ac_status=$? |
4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4204 | (exit $ac_status); }; } && | |
4205 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
4206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4207 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4208 | ac_status=$? |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4210 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4211 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
4212 | else | |
bec39cab AC |
4213 | echo "$as_me: failed program was:" >&5 |
4214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4215 | ||
dae5f5cf | 4216 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
bec39cab | 4217 | |
0d62e5e8 | 4218 | fi |
dae5f5cf | 4219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
4220 | fi |
4221 | ||
4222 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then | |
bec39cab AC |
4223 | |
4224 | cat >>confdefs.h <<\_ACEOF | |
0d62e5e8 | 4225 | #define HAVE_ELF_FPREGSET_T 1 |
bec39cab | 4226 | _ACEOF |
0d62e5e8 DJ |
4227 | |
4228 | fi | |
dae5f5cf DJ |
4229 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
4230 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6 | |
0d62e5e8 DJ |
4231 | |
4232 | fi | |
4233 | ||
4234 | srv_thread_depfiles= | |
4235 | srv_libs= | |
4236 | USE_THREAD_DB= | |
4237 | ||
4238 | if test "$srv_linux_thread_db" = "yes"; then | |
dae5f5cf DJ |
4239 | echo "$as_me:$LINENO: checking for libthread_db" >&5 |
4240 | echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6 | |
bec39cab AC |
4241 | if test "${srv_cv_thread_db+set}" = set; then |
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d62e5e8 DJ |
4243 | else |
4244 | old_LIBS="$LIBS" | |
4245 | LIBS="$LIBS -lthread_db" | |
bec39cab AC |
4246 | cat >conftest.$ac_ext <<_ACEOF |
4247 | /* confdefs.h. */ | |
4248 | _ACEOF | |
4249 | cat confdefs.h >>conftest.$ac_ext | |
4250 | cat >>conftest.$ac_ext <<_ACEOF | |
4251 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
4252 | void ps_pglobal_lookup() {} |
4253 | void ps_pdread() {} | |
4254 | void ps_pdwrite() {} | |
4255 | void ps_lgetregs() {} | |
4256 | void ps_lsetregs() {} | |
4257 | void ps_lgetfpregs() {} | |
4258 | void ps_lsetfpregs() {} | |
434c4c77 | 4259 | void ps_get_thread_area() {} |
0d62e5e8 | 4260 | void ps_getpid() {} |
bec39cab AC |
4261 | int |
4262 | main () | |
4263 | { | |
0d62e5e8 | 4264 | td_ta_new(); |
bec39cab AC |
4265 | ; |
4266 | return 0; | |
4267 | } | |
4268 | _ACEOF | |
4269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dae5f5cf DJ |
4270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4271 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
4272 | ac_status=$? |
4273 | grep -v '^ *+' conftest.er1 >conftest.err | |
4274 | rm -f conftest.er1 | |
4275 | cat conftest.err >&5 | |
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4277 | (exit $ac_status); } && | |
dae5f5cf DJ |
4278 | { ac_try='test -z "$ac_c_werror_flag" |
4279 | || test ! -s conftest.err' | |
4280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4281 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4282 | ac_status=$? |
4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4284 | (exit $ac_status); }; } && | |
4285 | { ac_try='test -s conftest$ac_exeext' | |
dae5f5cf DJ |
4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4287 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4288 | ac_status=$? |
4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4290 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4291 | srv_cv_thread_db="-lthread_db" |
4292 | else | |
bec39cab AC |
4293 | echo "$as_me: failed program was:" >&5 |
4294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4295 | ||
dae5f5cf | 4296 | srv_cv_thread_db=no |
0d62e5e8 DJ |
4297 | |
4298 | if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then | |
4299 | thread_db="/lib/libthread_db.so.1" | |
4300 | else | |
4301 | thread_db='$prefix/lib/libthread_db.so.1' | |
4302 | fi | |
4303 | LIBS="$old_LIBS `eval echo "$thread_db"`" | |
bec39cab AC |
4304 | cat >conftest.$ac_ext <<_ACEOF |
4305 | /* confdefs.h. */ | |
4306 | _ACEOF | |
4307 | cat confdefs.h >>conftest.$ac_ext | |
4308 | cat >>conftest.$ac_ext <<_ACEOF | |
4309 | /* end confdefs.h. */ | |
0d62e5e8 DJ |
4310 | void ps_pglobal_lookup() {} |
4311 | void ps_pdread() {} | |
4312 | void ps_pdwrite() {} | |
4313 | void ps_lgetregs() {} | |
4314 | void ps_lsetregs() {} | |
4315 | void ps_lgetfpregs() {} | |
4316 | void ps_lsetfpregs() {} | |
434c4c77 | 4317 | void ps_get_thread_area() {} |
0d62e5e8 | 4318 | void ps_getpid() {} |
bec39cab AC |
4319 | int |
4320 | main () | |
4321 | { | |
0d62e5e8 | 4322 | td_ta_new(); |
bec39cab AC |
4323 | ; |
4324 | return 0; | |
4325 | } | |
4326 | _ACEOF | |
4327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dae5f5cf DJ |
4328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4329 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
4330 | ac_status=$? |
4331 | grep -v '^ *+' conftest.er1 >conftest.err | |
4332 | rm -f conftest.er1 | |
4333 | cat conftest.err >&5 | |
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4335 | (exit $ac_status); } && | |
dae5f5cf DJ |
4336 | { ac_try='test -z "$ac_c_werror_flag" |
4337 | || test ! -s conftest.err' | |
4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4339 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4340 | ac_status=$? |
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4342 | (exit $ac_status); }; } && | |
4343 | { ac_try='test -s conftest$ac_exeext' | |
dae5f5cf DJ |
4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4345 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4346 | ac_status=$? |
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4348 | (exit $ac_status); }; }; then | |
0d62e5e8 DJ |
4349 | srv_cv_thread_db="$thread_db" |
4350 | else | |
bec39cab AC |
4351 | echo "$as_me: failed program was:" >&5 |
4352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4353 | ||
dae5f5cf | 4354 | srv_cv_thread_db=no |
0d62e5e8 | 4355 | fi |
dae5f5cf | 4356 | rm -f conftest.err conftest.$ac_objext \ |
bec39cab | 4357 | conftest$ac_exeext conftest.$ac_ext |
0d62e5e8 | 4358 | |
bec39cab | 4359 | fi |
dae5f5cf | 4360 | rm -f conftest.err conftest.$ac_objext \ |
3db0444b | 4361 | conftest$ac_exeext conftest.$ac_ext |
434c4c77 | 4362 | LIBS="$old_LIBS" |
0d62e5e8 DJ |
4363 | |
4364 | fi | |
dae5f5cf DJ |
4365 | echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5 |
4366 | echo "${ECHO_T}$srv_cv_thread_db" >&6 | |
0d62e5e8 | 4367 | if test "$srv_cv_thread_db" = no; then |
bec39cab AC |
4368 | { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5 |
4369 | echo "$as_me: WARNING: Could not find libthread_db." >&2;} | |
4370 | { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5 | |
4371 | echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;} | |
0d62e5e8 DJ |
4372 | srv_linux_thread_db=no |
4373 | else | |
4374 | srv_libs="$srv_cv_thread_db" | |
dae5f5cf DJ |
4375 | echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5 |
4376 | echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6 | |
4377 | if test "${srv_cv_tls_get_addr+set}" = set; then | |
4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4379 | else | |
4380 | old_LIBS="$LIBS" | |
4381 | LIBS="$LIBS $srv_cv_thread_db" | |
4382 | cat >conftest.$ac_ext <<_ACEOF | |
4383 | /* confdefs.h. */ | |
4384 | _ACEOF | |
4385 | cat confdefs.h >>conftest.$ac_ext | |
4386 | cat >>conftest.$ac_ext <<_ACEOF | |
4387 | /* end confdefs.h. */ | |
4388 | void ps_pglobal_lookup() {} | |
4389 | void ps_pdread() {} | |
4390 | void ps_pdwrite() {} | |
4391 | void ps_lgetregs() {} | |
4392 | void ps_lsetregs() {} | |
4393 | void ps_lgetfpregs() {} | |
4394 | void ps_lsetfpregs() {} | |
4395 | void ps_get_thread_area() {} | |
4396 | void ps_getpid() {} | |
4397 | int | |
4398 | main () | |
4399 | { | |
4400 | td_thr_tls_get_addr(); | |
4401 | ; | |
4402 | return 0; | |
4403 | } | |
4404 | _ACEOF | |
4405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4407 | (eval $ac_link) 2>conftest.er1 | |
4408 | ac_status=$? | |
4409 | grep -v '^ *+' conftest.er1 >conftest.err | |
4410 | rm -f conftest.er1 | |
4411 | cat conftest.err >&5 | |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4413 | (exit $ac_status); } && | |
4414 | { ac_try='test -z "$ac_c_werror_flag" | |
4415 | || test ! -s conftest.err' | |
4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4417 | (eval $ac_try) 2>&5 | |
4418 | ac_status=$? | |
4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4420 | (exit $ac_status); }; } && | |
4421 | { ac_try='test -s conftest$ac_exeext' | |
4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4423 | (eval $ac_try) 2>&5 | |
4424 | ac_status=$? | |
4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4426 | (exit $ac_status); }; }; then | |
4427 | srv_cv_tls_get_addr=yes | |
4428 | else | |
4429 | echo "$as_me: failed program was:" >&5 | |
4430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4431 | ||
4432 | srv_cv_tls_get_addr=no | |
4433 | fi | |
4434 | rm -f conftest.err conftest.$ac_objext \ | |
4435 | conftest$ac_exeext conftest.$ac_ext | |
4436 | LIBS="$old_LIBS" | |
4437 | ||
4438 | fi | |
4439 | echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5 | |
4440 | echo "${ECHO_T}$srv_cv_tls_get_addr" >&6 | |
0d62e5e8 | 4441 | fi |
f6de3c42 DJ |
4442 | old_LDFLAGS="$LDFLAGS" |
4443 | LDFLAGS="$LDFLAGS -rdynamic" | |
bec39cab AC |
4444 | cat >conftest.$ac_ext <<_ACEOF |
4445 | /* confdefs.h. */ | |
4446 | _ACEOF | |
4447 | cat confdefs.h >>conftest.$ac_ext | |
4448 | cat >>conftest.$ac_ext <<_ACEOF | |
4449 | /* end confdefs.h. */ | |
4450 | ||
4451 | int | |
4452 | main () | |
4453 | { | |
4454 | ||
4455 | ; | |
4456 | return 0; | |
4457 | } | |
4458 | _ACEOF | |
4459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dae5f5cf DJ |
4460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4461 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
4462 | ac_status=$? |
4463 | grep -v '^ *+' conftest.er1 >conftest.err | |
4464 | rm -f conftest.er1 | |
4465 | cat conftest.err >&5 | |
4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4467 | (exit $ac_status); } && | |
dae5f5cf DJ |
4468 | { ac_try='test -z "$ac_c_werror_flag" |
4469 | || test ! -s conftest.err' | |
4470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4471 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4472 | ac_status=$? |
4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4474 | (exit $ac_status); }; } && | |
4475 | { ac_try='test -s conftest$ac_exeext' | |
dae5f5cf DJ |
4476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4477 | (eval $ac_try) 2>&5 | |
bec39cab AC |
4478 | ac_status=$? |
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4480 | (exit $ac_status); }; }; then | |
f6de3c42 DJ |
4481 | RDYNAMIC=-rdynamic |
4482 | else | |
bec39cab AC |
4483 | echo "$as_me: failed program was:" >&5 |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4485 | ||
dae5f5cf | 4486 | RDYNAMIC= |
f6de3c42 | 4487 | fi |
dae5f5cf | 4488 | rm -f conftest.err conftest.$ac_objext \ |
bec39cab AC |
4489 | conftest$ac_exeext conftest.$ac_ext |
4490 | ||
f6de3c42 | 4491 | LDFLAGS="$old_LDFLAGS" |
0d62e5e8 DJ |
4492 | fi |
4493 | ||
4494 | if test "$srv_linux_thread_db" = "yes"; then | |
4495 | srv_thread_depfiles="thread-db.o proc-service.o" | |
4496 | USE_THREAD_DB="-DUSE_THREAD_DB" | |
dae5f5cf DJ |
4497 | echo "$as_me:$LINENO: checking for TD_VERSION" >&5 |
4498 | echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6 | |
3db0444b DJ |
4499 | if test "${gdbsrv_cv_have_td_version+set}" = set; then |
4500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4501 | else | |
4502 | cat >conftest.$ac_ext <<_ACEOF | |
4503 | /* confdefs.h. */ | |
4504 | _ACEOF | |
4505 | cat confdefs.h >>conftest.$ac_ext | |
4506 | cat >>conftest.$ac_ext <<_ACEOF | |
4507 | /* end confdefs.h. */ | |
4508 | #include <thread_db.h> | |
4509 | int | |
4510 | main () | |
4511 | { | |
4512 | TD_VERSION; | |
4513 | ; | |
4514 | return 0; | |
4515 | } | |
4516 | _ACEOF | |
4517 | rm -f conftest.$ac_objext | |
dae5f5cf DJ |
4518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4519 | (eval $ac_compile) 2>conftest.er1 | |
3db0444b DJ |
4520 | ac_status=$? |
4521 | grep -v '^ *+' conftest.er1 >conftest.err | |
4522 | rm -f conftest.er1 | |
4523 | cat conftest.err >&5 | |
4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4525 | (exit $ac_status); } && | |
dae5f5cf DJ |
4526 | { ac_try='test -z "$ac_c_werror_flag" |
4527 | || test ! -s conftest.err' | |
4528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4529 | (eval $ac_try) 2>&5 | |
3db0444b DJ |
4530 | ac_status=$? |
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4532 | (exit $ac_status); }; } && | |
4533 | { ac_try='test -s conftest.$ac_objext' | |
dae5f5cf DJ |
4534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4535 | (eval $ac_try) 2>&5 | |
3db0444b DJ |
4536 | ac_status=$? |
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4538 | (exit $ac_status); }; }; then | |
4539 | gdbsrv_cv_have_td_version=yes | |
4540 | else | |
4541 | echo "$as_me: failed program was:" >&5 | |
4542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4543 | ||
dae5f5cf | 4544 | gdbsrv_cv_have_td_version=no |
3db0444b | 4545 | fi |
dae5f5cf | 4546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3db0444b | 4547 | fi |
dae5f5cf DJ |
4548 | echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5 |
4549 | echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6 | |
3db0444b DJ |
4550 | if test $gdbsrv_cv_have_td_version = yes; then |
4551 | ||
4552 | cat >>confdefs.h <<\_ACEOF | |
4553 | #define HAVE_TD_VERSION 1 | |
dae5f5cf DJ |
4554 | _ACEOF |
4555 | ||
4556 | fi | |
4557 | ||
cb7283db | 4558 | if test "$srv_cv_tls_get_addr" = yes; then |
dae5f5cf DJ |
4559 | |
4560 | cat >>confdefs.h <<\_ACEOF | |
4561 | #define HAVE_TD_THR_TLS_GET_ADDR 1 | |
3db0444b DJ |
4562 | _ACEOF |
4563 | ||
4564 | fi | |
0d62e5e8 DJ |
4565 | fi |
4566 | ||
9b4b61c8 | 4567 | if test "$srv_xmlfiles" != ""; then |
fb1e4ffc DJ |
4568 | srv_xmlbuiltin="xml-builtin.o" |
4569 | ||
4570 | cat >>confdefs.h <<\_ACEOF | |
4571 | #define USE_XML 1 | |
4572 | _ACEOF | |
4573 | ||
4574 | ||
4575 | tmp_xmlfiles=$srv_xmlfiles | |
9b4b61c8 | 4576 | srv_xmlfiles="" |
fb1e4ffc DJ |
4577 | for f in $tmp_xmlfiles; do |
4578 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" | |
4579 | done | |
4580 | fi | |
4581 | ||
59a016f0 | 4582 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles" |
0d62e5e8 DJ |
4583 | GDBSERVER_LIBS="$srv_libs" |
4584 | ||
4585 | ||
d6e9fb05 JK |
4586 | |
4587 | ||
4588 | ||
fb1e4ffc DJ |
4589 | |
4590 | ||
dae5f5cf DJ |
4591 | ac_config_files="$ac_config_files Makefile" |
4592 | ac_config_commands="$ac_config_commands default" | |
bec39cab | 4593 | cat >confcache <<\_ACEOF |
d6e9fb05 JK |
4594 | # This file is a shell script that caches the results of configure |
4595 | # tests run on this system so they can be shared between configure | |
bec39cab AC |
4596 | # scripts and configure runs, see configure's option --config-cache. |
4597 | # It is not useful on other systems. If it contains results you don't | |
4598 | # want to keep, you may remove or edit it. | |
d6e9fb05 | 4599 | # |
bec39cab AC |
4600 | # config.status only pays attention to the cache file if you give it |
4601 | # the --recheck option to rerun configure. | |
d6e9fb05 | 4602 | # |
bec39cab AC |
4603 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4604 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4605 | # following values. | |
4606 | ||
4607 | _ACEOF | |
4608 | ||
d6e9fb05 JK |
4609 | # The following way of writing the cache mishandles newlines in values, |
4610 | # but we know of no workaround that is simple, portable, and efficient. | |
dae5f5cf | 4611 | # So, don't put newlines in cache variables' values. |
d6e9fb05 JK |
4612 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4613 | # and sets the high bit in the cache file unless we assign to the vars. | |
dae5f5cf | 4614 | { |
bec39cab | 4615 | (set) 2>&1 | |
dae5f5cf DJ |
4616 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
4617 | *ac_space=\ *) | |
bec39cab AC |
4618 | # `set' does not quote correctly, so add quotes (double-quote |
4619 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4620 | sed -n \ | |
4621 | "s/'/'\\\\''/g; | |
4622 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
dae5f5cf | 4623 | ;; |
bec39cab AC |
4624 | *) |
4625 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
dae5f5cf DJ |
4626 | sed -n \ |
4627 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 4628 | ;; |
dae5f5cf DJ |
4629 | esac; |
4630 | } | | |
bec39cab AC |
4631 | sed ' |
4632 | t clear | |
dae5f5cf | 4633 | : clear |
bec39cab AC |
4634 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4635 | t end | |
dae5f5cf DJ |
4636 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4637 | : end' >>confcache | |
4638 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4639 | if test -w $cache_file; then | |
4640 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
bec39cab | 4641 | cat confcache >$cache_file |
d6e9fb05 | 4642 | else |
dae5f5cf | 4643 | echo "not updating unwritable cache $cache_file" |
d6e9fb05 JK |
4644 | fi |
4645 | fi | |
4646 | rm -f confcache | |
4647 | ||
d6e9fb05 JK |
4648 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4649 | # Let make expand exec_prefix. | |
4650 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4651 | ||
dae5f5cf DJ |
4652 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
4653 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4654 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4655 | # (actually we leave an empty line to preserve line numbers). | |
4656 | if test "x$srcdir" = x.; then | |
4657 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4658 | s/:*\$(srcdir):*/:/; | |
4659 | s/:*\${srcdir}:*/:/; | |
4660 | s/:*@srcdir@:*/:/; | |
4661 | s/^\([^=]*=[ ]*\):*/\1/; | |
4662 | s/:*$//; | |
4663 | s/^[^=]*=[ ]*$//; | |
4664 | }' | |
4665 | fi | |
4666 | ||
84563040 | 4667 | DEFS=-DHAVE_CONFIG_H |
d6e9fb05 | 4668 | |
bec39cab AC |
4669 | ac_libobjs= |
4670 | ac_ltlibobjs= | |
4671 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4672 | # 1. Remove the extension, and $U if already installed. | |
dae5f5cf DJ |
4673 | ac_i=`echo "$ac_i" | |
4674 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
4675 | # 2. Add them. | |
4676 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
4677 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
4678 | done |
4679 | LIBOBJS=$ac_libobjs | |
d6e9fb05 | 4680 | |
bec39cab AC |
4681 | LTLIBOBJS=$ac_ltlibobjs |
4682 | ||
4683 | ||
4684 | ||
4685 | : ${CONFIG_STATUS=./config.status} | |
4686 | ac_clean_files_save=$ac_clean_files | |
4687 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4688 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
4689 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4690 | cat >$CONFIG_STATUS <<_ACEOF | |
4691 | #! $SHELL | |
4692 | # Generated by $as_me. | |
d6e9fb05 | 4693 | # Run this file to recreate the current configuration. |
d6e9fb05 | 4694 | # Compiler output produced by configure, useful for debugging |
bec39cab AC |
4695 | # configure, is in config.log if it exists. |
4696 | ||
4697 | debug=false | |
4698 | ac_cs_recheck=false | |
4699 | ac_cs_silent=false | |
4700 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4701 | _ACEOF | |
4702 | ||
4703 | cat >>$CONFIG_STATUS <<\_ACEOF | |
4704 | ## --------------------- ## | |
4705 | ## M4sh Initialization. ## | |
4706 | ## --------------------- ## | |
4707 | ||
4708 | # Be Bourne compatible | |
4709 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
4710 | emulate sh | |
4711 | NULLCMD=: | |
4712 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
4713 | # is contrary to our usage. Disable this feature. | |
4714 | alias -g '${1+"$@"}'='"$@"' | |
dae5f5cf DJ |
4715 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
4716 | set -o posix | |
bec39cab AC |
4717 | fi |
4718 | DUALCASE=1; export DUALCASE # for MKS sh | |
d6e9fb05 | 4719 | |
bec39cab AC |
4720 | # Support unset when possible. |
4721 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4722 | as_unset=unset | |
4723 | else | |
4724 | as_unset=false | |
4725 | fi | |
4726 | ||
4727 | ||
b80864fb | 4728 | # Work around bugs in pre-3.0 UWIN ksh. |
dae5f5cf | 4729 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
4730 | PS1='$ ' |
4731 | PS2='> ' | |
4732 | PS4='+ ' | |
4733 | ||
4734 | # NLS nuisances. | |
4735 | for as_var in \ | |
4736 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
4737 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
4738 | LC_TELEPHONE LC_TIME | |
d6e9fb05 | 4739 | do |
bec39cab AC |
4740 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
4741 | eval $as_var=C; export $as_var | |
4742 | else | |
dae5f5cf | 4743 | $as_unset $as_var |
bec39cab | 4744 | fi |
d6e9fb05 JK |
4745 | done |
4746 | ||
bec39cab | 4747 | # Required to use basename. |
dae5f5cf | 4748 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
4749 | as_expr=expr |
4750 | else | |
4751 | as_expr=false | |
4752 | fi | |
d6e9fb05 | 4753 | |
dae5f5cf | 4754 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
4755 | as_basename=basename |
4756 | else | |
4757 | as_basename=false | |
4758 | fi | |
d6e9fb05 | 4759 | |
d6e9fb05 | 4760 | |
bec39cab | 4761 | # Name of the executable. |
dae5f5cf | 4762 | as_me=`$as_basename "$0" || |
bec39cab AC |
4763 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4764 | X"$0" : 'X\(//\)$' \| \ | |
dae5f5cf DJ |
4765 | X"$0" : 'X\(/\)$' \| \ |
4766 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 4767 | echo X/"$0" | |
dae5f5cf DJ |
4768 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
4769 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
4770 | /^X\/\(\/\).*/{ s//\1/; q; } | |
4771 | s/.*/./; q'` | |
bec39cab | 4772 | |
bec39cab | 4773 | |
dae5f5cf DJ |
4774 | # PATH needs CR, and LINENO needs CR and PATH. |
4775 | # Avoid depending upon Character Ranges. | |
4776 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4777 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4778 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4779 | as_cr_digits='0123456789' | |
4780 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4781 | ||
4782 | # The user is always right. | |
4783 | if test "${PATH_SEPARATOR+set}" != set; then | |
4784 | echo "#! /bin/sh" >conf$$.sh | |
4785 | echo "exit 0" >>conf$$.sh | |
4786 | chmod +x conf$$.sh | |
4787 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4788 | PATH_SEPARATOR=';' | |
4789 | else | |
4790 | PATH_SEPARATOR=: | |
4791 | fi | |
4792 | rm -f conf$$.sh | |
4793 | fi | |
bec39cab AC |
4794 | |
4795 | ||
4796 | as_lineno_1=$LINENO | |
4797 | as_lineno_2=$LINENO | |
dae5f5cf DJ |
4798 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4799 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
4800 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
4801 | # Find who we are. Look in the path if we contain no path at all | |
4802 | # relative or not. | |
4803 | case $0 in | |
4804 | *[\\/]* ) as_myself=$0 ;; | |
4805 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4806 | for as_dir in $PATH | |
4807 | do | |
4808 | IFS=$as_save_IFS | |
4809 | test -z "$as_dir" && as_dir=. | |
4810 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4811 | done | |
4812 | ||
4813 | ;; | |
4814 | esac | |
4815 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4816 | # in which case we are not to be found in the path. | |
4817 | if test "x$as_myself" = x; then | |
4818 | as_myself=$0 | |
4819 | fi | |
4820 | if test ! -f "$as_myself"; then | |
4821 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
4822 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
4823 | { (exit 1); exit 1; }; } | |
4824 | fi | |
4825 | case $CONFIG_SHELL in | |
4826 | '') | |
4827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4828 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
4829 | do | |
4830 | IFS=$as_save_IFS | |
4831 | test -z "$as_dir" && as_dir=. | |
4832 | for as_base in sh bash ksh sh5; do | |
4833 | case $as_dir in | |
4834 | /*) | |
4835 | if ("$as_dir/$as_base" -c ' | |
4836 | as_lineno_1=$LINENO | |
4837 | as_lineno_2=$LINENO | |
4838 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
bec39cab | 4839 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dae5f5cf DJ |
4840 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
4841 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
4842 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
4843 | CONFIG_SHELL=$as_dir/$as_base | |
4844 | export CONFIG_SHELL | |
4845 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
4846 | fi;; | |
4847 | esac | |
4848 | done | |
4849 | done | |
4850 | ;; | |
4851 | esac | |
bec39cab AC |
4852 | |
4853 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
4854 | # uniformly replaced by the line number. The first 'sed' inserts a | |
dae5f5cf DJ |
4855 | # line-number line before each line; the second 'sed' does the real |
4856 | # work. The second script uses 'N' to pair each line-number line | |
4857 | # with the numbered line, and appends trailing '-' during | |
4858 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 4859 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dae5f5cf DJ |
4860 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
4861 | sed '=' <$as_myself | | |
bec39cab AC |
4862 | sed ' |
4863 | N | |
dae5f5cf DJ |
4864 | s,$,-, |
4865 | : loop | |
4866 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 4867 | t loop |
dae5f5cf DJ |
4868 | s,-$,, |
4869 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 4870 | ' >$as_me.lineno && |
dae5f5cf DJ |
4871 | chmod +x $as_me.lineno || |
4872 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
4873 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
4874 | { (exit 1); exit 1; }; } |
4875 | ||
4876 | # Don't try to exec as it changes $[0], causing all sort of problems | |
4877 | # (the dirname of $[0] is not the place where we might find the | |
dae5f5cf DJ |
4878 | # original and so on. Autoconf is especially sensible to this). |
4879 | . ./$as_me.lineno | |
bec39cab AC |
4880 | # Exit status is that of the last command. |
4881 | exit | |
4882 | } | |
4883 | ||
4884 | ||
dae5f5cf DJ |
4885 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
4886 | *c*,-n*) ECHO_N= ECHO_C=' | |
4887 | ' ECHO_T=' ' ;; | |
4888 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
4889 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
4890 | esac |
4891 | ||
dae5f5cf | 4892 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
4893 | as_expr=expr |
4894 | else | |
4895 | as_expr=false | |
4896 | fi | |
4897 | ||
4898 | rm -f conf$$ conf$$.exe conf$$.file | |
4899 | echo >conf$$.file | |
4900 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf DJ |
4901 | # We could just check for DJGPP; but this test a) works b) is more generic |
4902 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
4903 | if test -f conf$$.exe; then | |
4904 | # Don't use ln at all; we don't have any links | |
bec39cab | 4905 | as_ln_s='cp -p' |
dae5f5cf DJ |
4906 | else |
4907 | as_ln_s='ln -s' | |
4908 | fi | |
bec39cab AC |
4909 | elif ln conf$$.file conf$$ 2>/dev/null; then |
4910 | as_ln_s=ln | |
4911 | else | |
4912 | as_ln_s='cp -p' | |
4913 | fi | |
dae5f5cf | 4914 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
4915 | |
4916 | if mkdir -p . 2>/dev/null; then | |
4917 | as_mkdir_p=: | |
4918 | else | |
4919 | test -d ./-p && rmdir ./-p | |
4920 | as_mkdir_p=false | |
4921 | fi | |
4922 | ||
dae5f5cf | 4923 | as_executable_p="test -f" |
bec39cab AC |
4924 | |
4925 | # Sed expression to map a string onto a valid CPP name. | |
4926 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4927 | ||
4928 | # Sed expression to map a string onto a valid variable name. | |
4929 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4930 | ||
4931 | ||
dae5f5cf DJ |
4932 | # IFS |
4933 | # We need space, tab and new line, in precisely that order. | |
4934 | as_nl=' | |
4935 | ' | |
4936 | IFS=" $as_nl" | |
4937 | ||
4938 | # CDPATH. | |
4939 | $as_unset CDPATH | |
4940 | ||
bec39cab AC |
4941 | exec 6>&1 |
4942 | ||
dae5f5cf | 4943 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 4944 | # report actual input values of CONFIG_FILES etc. instead of their |
dae5f5cf DJ |
4945 | # values after options handling. Logging --version etc. is OK. |
4946 | exec 5>>config.log | |
4947 | { | |
4948 | echo | |
4949 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4950 | ## Running $as_me. ## | |
4951 | _ASBOX | |
4952 | } >&5 | |
4953 | cat >&5 <<_CSEOF | |
4954 | ||
bec39cab | 4955 | This file was extended by $as_me, which was |
dae5f5cf | 4956 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
4957 | |
4958 | CONFIG_FILES = $CONFIG_FILES | |
4959 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4960 | CONFIG_LINKS = $CONFIG_LINKS | |
4961 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4962 | $ $0 $@ | |
4963 | ||
dae5f5cf DJ |
4964 | _CSEOF |
4965 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
4966 | echo >&5 | |
bec39cab AC |
4967 | _ACEOF |
4968 | ||
4969 | # Files that config.status was made for. | |
dae5f5cf DJ |
4970 | if test -n "$ac_config_files"; then |
4971 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
4972 | fi | |
bec39cab | 4973 | |
dae5f5cf DJ |
4974 | if test -n "$ac_config_headers"; then |
4975 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
4976 | fi | |
4977 | ||
4978 | if test -n "$ac_config_links"; then | |
4979 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
4980 | fi | |
4981 | ||
4982 | if test -n "$ac_config_commands"; then | |
4983 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
4984 | fi | |
bec39cab AC |
4985 | |
4986 | cat >>$CONFIG_STATUS <<\_ACEOF | |
dae5f5cf | 4987 | |
bec39cab AC |
4988 | ac_cs_usage="\ |
4989 | \`$as_me' instantiates files from templates according to the | |
4990 | current configuration. | |
4991 | ||
4992 | Usage: $0 [OPTIONS] [FILE]... | |
4993 | ||
4994 | -h, --help print this help, then exit | |
4995 | -V, --version print version number, then exit | |
4996 | -q, --quiet do not print progress messages | |
4997 | -d, --debug don't remove temporary files | |
4998 | --recheck update $as_me by reconfiguring in the same conditions | |
4999 | --file=FILE[:TEMPLATE] | |
5000 | instantiate the configuration file FILE | |
5001 | --header=FILE[:TEMPLATE] | |
5002 | instantiate the configuration header FILE | |
5003 | ||
5004 | Configuration files: | |
5005 | $config_files | |
5006 | ||
5007 | Configuration headers: | |
5008 | $config_headers | |
5009 | ||
5010 | Configuration commands: | |
5011 | $config_commands | |
5012 | ||
5013 | Report bugs to <bug-autoconf@gnu.org>." | |
b80864fb | 5014 | _ACEOF |
dae5f5cf | 5015 | |
bec39cab AC |
5016 | cat >>$CONFIG_STATUS <<_ACEOF |
5017 | ac_cs_version="\\ | |
5018 | config.status | |
dae5f5cf DJ |
5019 | configured by $0, generated by GNU Autoconf 2.59, |
5020 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
bec39cab | 5021 | |
dae5f5cf | 5022 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
5023 | This config.status script is free software; the Free Software Foundation |
5024 | gives unlimited permission to copy, distribute and modify it." | |
dae5f5cf DJ |
5025 | srcdir=$srcdir |
5026 | INSTALL="$INSTALL" | |
bec39cab AC |
5027 | _ACEOF |
5028 | ||
5029 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5030 | # If no file are specified by the user, then we need to provide default | |
5031 | # value. By we need to know if files were specified by the user. | |
5032 | ac_need_defaults=: | |
5033 | while test $# != 0 | |
5034 | do | |
5035 | case $1 in | |
5036 | --*=*) | |
dae5f5cf DJ |
5037 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
5038 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab AC |
5039 | ac_shift=: |
5040 | ;; | |
dae5f5cf | 5041 | -*) |
bec39cab AC |
5042 | ac_option=$1 |
5043 | ac_optarg=$2 | |
5044 | ac_shift=shift | |
5045 | ;; | |
dae5f5cf DJ |
5046 | *) # This is not an option, so the user has probably given explicit |
5047 | # arguments. | |
5048 | ac_option=$1 | |
5049 | ac_need_defaults=false;; | |
bec39cab AC |
5050 | esac |
5051 | ||
5052 | case $ac_option in | |
5053 | # Handling of the options. | |
dae5f5cf DJ |
5054 | _ACEOF |
5055 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
5056 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5057 | ac_cs_recheck=: ;; | |
dae5f5cf DJ |
5058 | --version | --vers* | -V ) |
5059 | echo "$ac_cs_version"; exit 0 ;; | |
5060 | --he | --h) | |
5061 | # Conflict between --help and --header | |
5062 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
5063 | Try \`$0 --help' for more information." >&5 | |
5064 | echo "$as_me: error: ambiguous option: $1 | |
5065 | Try \`$0 --help' for more information." >&2;} | |
5066 | { (exit 1); exit 1; }; };; | |
5067 | --help | --hel | -h ) | |
5068 | echo "$ac_cs_usage"; exit 0 ;; | |
5069 | --debug | --d* | -d ) | |
bec39cab AC |
5070 | debug=: ;; |
5071 | --file | --fil | --fi | --f ) | |
5072 | $ac_shift | |
5073 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
5074 | ac_need_defaults=false;; | |
5075 | --header | --heade | --head | --hea ) | |
5076 | $ac_shift | |
5077 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
5078 | ac_need_defaults=false;; | |
5079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5080 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5081 | ac_cs_silent=: ;; | |
5082 | ||
5083 | # This is an error. | |
dae5f5cf DJ |
5084 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
5085 | Try \`$0 --help' for more information." >&5 | |
5086 | echo "$as_me: error: unrecognized option: $1 | |
5087 | Try \`$0 --help' for more information." >&2;} | |
bec39cab AC |
5088 | { (exit 1); exit 1; }; } ;; |
5089 | ||
dae5f5cf | 5090 | *) ac_config_targets="$ac_config_targets $1" ;; |
bec39cab AC |
5091 | |
5092 | esac | |
5093 | shift | |
d6e9fb05 | 5094 | done |
bec39cab AC |
5095 | |
5096 | ac_configure_extra_args= | |
5097 | ||
5098 | if $ac_cs_silent; then | |
5099 | exec 6>/dev/null | |
5100 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d6e9fb05 | 5101 | fi |
d6e9fb05 | 5102 | |
bec39cab AC |
5103 | _ACEOF |
5104 | cat >>$CONFIG_STATUS <<_ACEOF | |
5105 | if \$ac_cs_recheck; then | |
dae5f5cf DJ |
5106 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
5107 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab | 5108 | fi |
d6e9fb05 | 5109 | |
bec39cab AC |
5110 | _ACEOF |
5111 | ||
bec39cab | 5112 | |
b80864fb | 5113 | |
dae5f5cf DJ |
5114 | |
5115 | ||
5116 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
5117 | for ac_config_target in $ac_config_targets |
5118 | do | |
dae5f5cf DJ |
5119 | case "$ac_config_target" in |
5120 | # Handling of arguments. | |
5121 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5122 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
5123 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
5124 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
5125 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5126 | { (exit 1); exit 1; }; };; | |
d6e9fb05 | 5127 | esac |
bec39cab AC |
5128 | done |
5129 | ||
5130 | # If the user did not use the arguments to specify the items to instantiate, | |
5131 | # then the envvar interface is used. Set only those that are not. | |
5132 | # We use the long form for the default assignment because of an extremely | |
5133 | # bizarre bug on SunOS 4.1.3. | |
5134 | if $ac_need_defaults; then | |
5135 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5136 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
5137 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
5138 | fi | |
d6e9fb05 | 5139 | |
bec39cab | 5140 | # Have a temporary directory for convenience. Make it in the build tree |
dae5f5cf | 5141 | # simply because there is no reason to put it here, and in addition, |
bec39cab | 5142 | # creating and moving files from /tmp can sometimes cause problems. |
dae5f5cf | 5143 | # Create a temporary directory, and hook for its removal unless debugging. |
bec39cab AC |
5144 | $debug || |
5145 | { | |
dae5f5cf | 5146 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
bec39cab AC |
5147 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
5148 | } | |
dae5f5cf | 5149 | |
bec39cab AC |
5150 | # Create a (secure) tmp directory for tmp files. |
5151 | ||
5152 | { | |
dae5f5cf | 5153 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
bec39cab AC |
5154 | test -n "$tmp" && test -d "$tmp" |
5155 | } || | |
5156 | { | |
dae5f5cf DJ |
5157 | tmp=./confstat$$-$RANDOM |
5158 | (umask 077 && mkdir $tmp) | |
bec39cab AC |
5159 | } || |
5160 | { | |
5161 | echo "$me: cannot create a temporary directory in ." >&2 | |
5162 | { (exit 1); exit 1; } | |
5163 | } | |
5164 | ||
dae5f5cf DJ |
5165 | _ACEOF |
5166 | ||
5167 | cat >>$CONFIG_STATUS <<_ACEOF | |
5168 | ||
bec39cab | 5169 | # |
dae5f5cf | 5170 | # CONFIG_FILES section. |
bec39cab AC |
5171 | # |
5172 | ||
5173 | # No need to generate the scripts if there are no CONFIG_FILES. | |
5174 | # This happens for instance when ./config.status config.h | |
dae5f5cf DJ |
5175 | if test -n "\$CONFIG_FILES"; then |
5176 | # Protect against being on the right side of a sed subst in config.status. | |
5177 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
5178 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
5179 | s,@SHELL@,$SHELL,;t t | |
5180 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
5181 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
5182 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
5183 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
5184 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
5185 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
5186 | s,@exec_prefix@,$exec_prefix,;t t | |
5187 | s,@prefix@,$prefix,;t t | |
5188 | s,@program_transform_name@,$program_transform_name,;t t | |
5189 | s,@bindir@,$bindir,;t t | |
5190 | s,@sbindir@,$sbindir,;t t | |
5191 | s,@libexecdir@,$libexecdir,;t t | |
5192 | s,@datadir@,$datadir,;t t | |
5193 | s,@sysconfdir@,$sysconfdir,;t t | |
5194 | s,@sharedstatedir@,$sharedstatedir,;t t | |
5195 | s,@localstatedir@,$localstatedir,;t t | |
5196 | s,@libdir@,$libdir,;t t | |
5197 | s,@includedir@,$includedir,;t t | |
5198 | s,@oldincludedir@,$oldincludedir,;t t | |
5199 | s,@infodir@,$infodir,;t t | |
5200 | s,@mandir@,$mandir,;t t | |
5201 | s,@build_alias@,$build_alias,;t t | |
5202 | s,@host_alias@,$host_alias,;t t | |
5203 | s,@target_alias@,$target_alias,;t t | |
5204 | s,@DEFS@,$DEFS,;t t | |
5205 | s,@ECHO_C@,$ECHO_C,;t t | |
5206 | s,@ECHO_N@,$ECHO_N,;t t | |
5207 | s,@ECHO_T@,$ECHO_T,;t t | |
5208 | s,@LIBS@,$LIBS,;t t | |
5209 | s,@CC@,$CC,;t t | |
5210 | s,@CFLAGS@,$CFLAGS,;t t | |
5211 | s,@LDFLAGS@,$LDFLAGS,;t t | |
5212 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
5213 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
5214 | s,@EXEEXT@,$EXEEXT,;t t | |
5215 | s,@OBJEXT@,$OBJEXT,;t t | |
5216 | s,@build@,$build,;t t | |
5217 | s,@build_cpu@,$build_cpu,;t t | |
5218 | s,@build_vendor@,$build_vendor,;t t | |
5219 | s,@build_os@,$build_os,;t t | |
5220 | s,@host@,$host,;t t | |
5221 | s,@host_cpu@,$host_cpu,;t t | |
5222 | s,@host_vendor@,$host_vendor,;t t | |
5223 | s,@host_os@,$host_os,;t t | |
5224 | s,@target@,$target,;t t | |
5225 | s,@target_cpu@,$target_cpu,;t t | |
5226 | s,@target_vendor@,$target_vendor,;t t | |
5227 | s,@target_os@,$target_os,;t t | |
5228 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
5229 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
5230 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
5231 | s,@CPP@,$CPP,;t t | |
5232 | s,@EGREP@,$EGREP,;t t | |
e28b3332 | 5233 | s,@LIBOBJS@,$LIBOBJS,;t t |
c16158bc JM |
5234 | s,@PKGVERSION@,$PKGVERSION,;t t |
5235 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t | |
5236 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
dae5f5cf DJ |
5237 | s,@RDYNAMIC@,$RDYNAMIC,;t t |
5238 | s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t | |
5239 | s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t | |
5240 | s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t | |
fb1e4ffc DJ |
5241 | s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t |
5242 | s,@srv_xmlfiles@,$srv_xmlfiles,;t t | |
dae5f5cf DJ |
5243 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5244 | CEOF | |
bec39cab | 5245 | |
b80864fb DJ |
5246 | _ACEOF |
5247 | ||
dae5f5cf DJ |
5248 | cat >>$CONFIG_STATUS <<\_ACEOF |
5249 | # Split the substitutions into bite-sized pieces for seds with | |
5250 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5251 | ac_max_sed_lines=48 | |
5252 | ac_sed_frag=1 # Number of current file. | |
5253 | ac_beg=1 # First line for current file. | |
5254 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
5255 | ac_more_lines=: | |
5256 | ac_sed_cmds= | |
5257 | while $ac_more_lines; do | |
5258 | if test $ac_beg -gt 1; then | |
5259 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5260 | else | |
5261 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5262 | fi | |
5263 | if test ! -s $tmp/subs.frag; then | |
5264 | ac_more_lines=false | |
5265 | else | |
5266 | # The purpose of the label and of the branching condition is to | |
5267 | # speed up the sed processing (if there are no `@' at all, there | |
5268 | # is no need to browse any of the substitutions). | |
5269 | # These are the two extra sed commands mentioned above. | |
5270 | (echo ':t | |
5271 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
5272 | if test -z "$ac_sed_cmds"; then | |
5273 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
5274 | else | |
5275 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
5276 | fi | |
5277 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
5278 | ac_beg=$ac_end | |
5279 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
5280 | fi | |
5281 | done | |
5282 | if test -z "$ac_sed_cmds"; then | |
5283 | ac_sed_cmds=cat | |
d6e9fb05 | 5284 | fi |
dae5f5cf | 5285 | fi # test -n "$CONFIG_FILES" |
d6e9fb05 | 5286 | |
bec39cab AC |
5287 | _ACEOF |
5288 | cat >>$CONFIG_STATUS <<\_ACEOF | |
dae5f5cf DJ |
5289 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
5290 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5291 | case $ac_file in | |
5292 | - | *:- | *:-:* ) # input from stdin | |
5293 | cat >$tmp/stdin | |
5294 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5295 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5296 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5297 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5298 | * ) ac_file_in=$ac_file.in ;; | |
d6e9fb05 JK |
5299 | esac |
5300 | ||
dae5f5cf DJ |
5301 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5302 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
5303 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5304 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5305 | X"$ac_file" : 'X\(//\)$' \| \ | |
dae5f5cf DJ |
5306 | X"$ac_file" : 'X\(/\)' \| \ |
5307 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 5308 | echo X"$ac_file" | |
dae5f5cf DJ |
5309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5310 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5311 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5312 | /^X\(\/\).*/{ s//\1/; q; } | |
5313 | s/.*/./; q'` | |
5314 | { if $as_mkdir_p; then | |
5315 | mkdir -p "$ac_dir" | |
5316 | else | |
5317 | as_dir="$ac_dir" | |
bec39cab | 5318 | as_dirs= |
dae5f5cf DJ |
5319 | while test ! -d "$as_dir"; do |
5320 | as_dirs="$as_dir $as_dirs" | |
5321 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
5322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5323 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5324 | X"$as_dir" : 'X\(//\)$' \| \ | |
dae5f5cf DJ |
5325 | X"$as_dir" : 'X\(/\)' \| \ |
5326 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 5327 | echo X"$as_dir" | |
dae5f5cf DJ |
5328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5329 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5330 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5331 | /^X\(\/\).*/{ s//\1/; q; } | |
5332 | s/.*/./; q'` | |
bec39cab | 5333 | done |
dae5f5cf DJ |
5334 | test ! -n "$as_dirs" || mkdir $as_dirs |
5335 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
5336 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 5337 | { (exit 1); exit 1; }; }; } |
dae5f5cf | 5338 | |
bec39cab AC |
5339 | ac_builddir=. |
5340 | ||
dae5f5cf | 5341 | if test "$ac_dir" != .; then |
bec39cab | 5342 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dae5f5cf DJ |
5343 | # A "../" for each directory in $ac_dir_suffix. |
5344 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
5345 | else | |
5346 | ac_dir_suffix= ac_top_builddir= | |
5347 | fi | |
bec39cab AC |
5348 | |
5349 | case $srcdir in | |
dae5f5cf | 5350 | .) # No --srcdir option. We are building in place. |
bec39cab | 5351 | ac_srcdir=. |
dae5f5cf DJ |
5352 | if test -z "$ac_top_builddir"; then |
5353 | ac_top_srcdir=. | |
5354 | else | |
5355 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
5356 | fi ;; | |
5357 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 5358 | ac_srcdir=$srcdir$ac_dir_suffix; |
dae5f5cf DJ |
5359 | ac_top_srcdir=$srcdir ;; |
5360 | *) # Relative path. | |
5361 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
5362 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
5363 | esac |
5364 | ||
dae5f5cf DJ |
5365 | # Do not use `cd foo && pwd` to compute absolute paths, because |
5366 | # the directories may not exist. | |
5367 | case `pwd` in | |
5368 | .) ac_abs_builddir="$ac_dir";; | |
5369 | *) | |
5370 | case "$ac_dir" in | |
5371 | .) ac_abs_builddir=`pwd`;; | |
5372 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
5373 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
5374 | esac;; | |
5375 | esac | |
5376 | case $ac_abs_builddir in | |
5377 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
5378 | *) | |
5379 | case ${ac_top_builddir}. in | |
5380 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
5381 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
5382 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
5383 | esac;; | |
5384 | esac | |
5385 | case $ac_abs_builddir in | |
5386 | .) ac_abs_srcdir=$ac_srcdir;; | |
5387 | *) | |
5388 | case $ac_srcdir in | |
5389 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
5390 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
5391 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
5392 | esac;; | |
5393 | esac | |
5394 | case $ac_abs_builddir in | |
5395 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
5396 | *) | |
5397 | case $ac_top_srcdir in | |
5398 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
5399 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
5400 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
5401 | esac;; | |
5402 | esac | |
bec39cab | 5403 | |
d6e9fb05 | 5404 | |
bec39cab AC |
5405 | case $INSTALL in |
5406 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
dae5f5cf | 5407 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
d6e9fb05 | 5408 | esac |
3db0444b | 5409 | |
dae5f5cf DJ |
5410 | if test x"$ac_file" != x-; then |
5411 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
5412 | echo "$as_me: creating $ac_file" >&6;} | |
5413 | rm -f "$ac_file" | |
5414 | fi | |
5415 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5416 | # use $as_me), people would be surprised to read: | |
5417 | # /* config.h. Generated by config.status. */ | |
5418 | if test x"$ac_file" = x-; then | |
5419 | configure_input= | |
5420 | else | |
5421 | configure_input="$ac_file. " | |
5422 | fi | |
5423 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
5424 | sed 's,.*/,,'` by configure." | |
5425 | ||
5426 | # First look for the input files in the build tree, otherwise in the | |
5427 | # src tree. | |
5428 | ac_file_inputs=`IFS=: | |
5429 | for f in $ac_file_in; do | |
5430 | case $f in | |
5431 | -) echo $tmp/stdin ;; | |
5432 | [\\/$]*) | |
5433 | # Absolute (can't be DOS-style, as IFS=:) | |
5434 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5435 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5436 | { (exit 1); exit 1; }; } | |
5437 | echo "$f";; | |
5438 | *) # Relative | |
5439 | if test -f "$f"; then | |
5440 | # Build tree | |
5441 | echo "$f" | |
5442 | elif test -f "$srcdir/$f"; then | |
5443 | # Source tree | |
5444 | echo "$srcdir/$f" | |
5445 | else | |
5446 | # /dev/null tree | |
5447 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5448 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5449 | { (exit 1); exit 1; }; } | |
5450 | fi;; | |
5451 | esac | |
5452 | done` || { (exit 1); exit 1; } | |
bec39cab AC |
5453 | _ACEOF |
5454 | cat >>$CONFIG_STATUS <<_ACEOF | |
5455 | sed "$ac_vpsub | |
5456 | $extrasub | |
5457 | _ACEOF | |
5458 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5459 | :t | |
5460 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
dae5f5cf DJ |
5461 | s,@configure_input@,$configure_input,;t t |
5462 | s,@srcdir@,$ac_srcdir,;t t | |
5463 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
5464 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
5465 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
5466 | s,@builddir@,$ac_builddir,;t t | |
5467 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
5468 | s,@top_builddir@,$ac_top_builddir,;t t | |
5469 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
5470 | s,@INSTALL@,$ac_INSTALL,;t t | |
5471 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
5472 | rm -f $tmp/stdin | |
5473 | if test x"$ac_file" != x-; then | |
5474 | mv $tmp/out $ac_file | |
5475 | else | |
5476 | cat $tmp/out | |
5477 | rm -f $tmp/out | |
5478 | fi | |
5479 | ||
5480 | done | |
5481 | _ACEOF | |
5482 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5483 | ||
5484 | # | |
5485 | # CONFIG_HEADER section. | |
5486 | # | |
5487 | ||
5488 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
5489 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5490 | # | |
5491 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5492 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5493 | ac_dB='[ ].*$,\1#\2' | |
5494 | ac_dC=' ' | |
5495 | ac_dD=',;t' | |
5496 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5497 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5498 | ac_uB='$,\1#\2define\3' | |
5499 | ac_uC=' ' | |
5500 | ac_uD=',;t' | |
5501 | ||
5502 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
5503 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 5504 | case $ac_file in |
dae5f5cf DJ |
5505 | - | *:- | *:-:* ) # input from stdin |
5506 | cat >$tmp/stdin | |
5507 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5508 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5509 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5510 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5511 | * ) ac_file_in=$ac_file.in ;; | |
84563040 | 5512 | esac |
dae5f5cf DJ |
5513 | |
5514 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
5515 | echo "$as_me: creating $ac_file" >&6;} | |
5516 | ||
5517 | # First look for the input files in the build tree, otherwise in the | |
5518 | # src tree. | |
5519 | ac_file_inputs=`IFS=: | |
5520 | for f in $ac_file_in; do | |
5521 | case $f in | |
5522 | -) echo $tmp/stdin ;; | |
5523 | [\\/$]*) | |
5524 | # Absolute (can't be DOS-style, as IFS=:) | |
5525 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5526 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5527 | { (exit 1); exit 1; }; } | |
5528 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
5529 | echo "$f";; | |
5530 | *) # Relative | |
5531 | if test -f "$f"; then | |
5532 | # Build tree | |
5533 | echo "$f" | |
5534 | elif test -f "$srcdir/$f"; then | |
5535 | # Source tree | |
5536 | echo "$srcdir/$f" | |
5537 | else | |
5538 | # /dev/null tree | |
5539 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5540 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5541 | { (exit 1); exit 1; }; } | |
5542 | fi;; | |
5543 | esac | |
5544 | done` || { (exit 1); exit 1; } | |
5545 | # Remove the trailing spaces. | |
5546 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
5547 | ||
bec39cab AC |
5548 | _ACEOF |
5549 | ||
dae5f5cf DJ |
5550 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
5551 | # `conftest.undefs', that substitutes the proper values into | |
5552 | # config.h.in to produce config.h. The first handles `#define' | |
5553 | # templates, and the second `#undef' templates. | |
5554 | # And first: Protect against being on the right side of a sed subst in | |
5555 | # config.status. Protect against being in an unquoted here document | |
5556 | # in config.status. | |
5557 | rm -f conftest.defines conftest.undefs | |
5558 | # Using a here document instead of a string reduces the quoting nightmare. | |
5559 | # Putting comments in sed scripts is not portable. | |
5560 | # | |
5561 | # `end' is used to avoid that the second main sed command (meant for | |
5562 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
5563 | # See the Autoconf documentation for `clear'. | |
5564 | cat >confdef2sed.sed <<\_ACEOF | |
5565 | s/[\\&,]/\\&/g | |
5566 | s,[\\$`],\\&,g | |
5567 | t clear | |
5568 | : clear | |
5569 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
5570 | t end | |
5571 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
5572 | : end | |
5573 | _ACEOF | |
5574 | # If some macros were called several times there might be several times | |
5575 | # the same #defines, which is useless. Nevertheless, we may not want to | |
5576 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
5577 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
5578 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
5579 | rm -f confdef2sed.sed | |
5580 | ||
5581 | # This sed command replaces #undef with comments. This is necessary, for | |
84563040 DJ |
5582 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
5583 | # on some systems where configure will not decide to define it. | |
dae5f5cf DJ |
5584 | cat >>conftest.undefs <<\_ACEOF |
5585 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
b80864fb | 5586 | _ACEOF |
dae5f5cf DJ |
5587 | |
5588 | # Break up conftest.defines because some shells have a limit on the size | |
5589 | # of here documents, and old seds have small limits too (100 cmds). | |
5590 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
5591 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
5592 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
5593 | echo ' :' >>$CONFIG_STATUS | |
5594 | rm -f conftest.tail | |
5595 | while grep . conftest.defines >/dev/null | |
5596 | do | |
5597 | # Write a limited-size here document to $tmp/defines.sed. | |
5598 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
5599 | # Speed up: don't consider the non `#define' lines. | |
5600 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
5601 | # Work around the forget-to-reset-the-flag bug. | |
5602 | echo 't clr' >>$CONFIG_STATUS | |
5603 | echo ': clr' >>$CONFIG_STATUS | |
5604 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 5605 | echo 'CEOF |
dae5f5cf DJ |
5606 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
5607 | rm -f $tmp/in | |
5608 | mv $tmp/out $tmp/in | |
5609 | ' >>$CONFIG_STATUS | |
5610 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
5611 | rm -f conftest.defines |
5612 | mv conftest.tail conftest.defines | |
5613 | done | |
dae5f5cf DJ |
5614 | rm -f conftest.defines |
5615 | echo ' fi # grep' >>$CONFIG_STATUS | |
5616 | echo >>$CONFIG_STATUS | |
5617 | ||
5618 | # Break up conftest.undefs because some shells have a limit on the size | |
5619 | # of here documents, and old seds have small limits too (100 cmds). | |
5620 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
5621 | rm -f conftest.tail | |
5622 | while grep . conftest.undefs >/dev/null | |
5623 | do | |
5624 | # Write a limited-size here document to $tmp/undefs.sed. | |
5625 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
5626 | # Speed up: don't consider the non `#undef' | |
5627 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
5628 | # Work around the forget-to-reset-the-flag bug. | |
5629 | echo 't clr' >>$CONFIG_STATUS | |
5630 | echo ': clr' >>$CONFIG_STATUS | |
5631 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
5632 | echo 'CEOF | |
5633 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
5634 | rm -f $tmp/in | |
5635 | mv $tmp/out $tmp/in | |
5636 | ' >>$CONFIG_STATUS | |
5637 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
5638 | rm -f conftest.undefs | |
5639 | mv conftest.tail conftest.undefs | |
5640 | done | |
5641 | rm -f conftest.undefs | |
bec39cab AC |
5642 | |
5643 | cat >>$CONFIG_STATUS <<\_ACEOF | |
dae5f5cf DJ |
5644 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
5645 | # use $as_me), people would be surprised to read: | |
5646 | # /* config.h. Generated by config.status. */ | |
5647 | if test x"$ac_file" = x-; then | |
5648 | echo "/* Generated by configure. */" >$tmp/config.h | |
5649 | else | |
5650 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
5651 | fi | |
5652 | cat $tmp/in >>$tmp/config.h | |
5653 | rm -f $tmp/in | |
bec39cab | 5654 | if test x"$ac_file" != x-; then |
dae5f5cf | 5655 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
5656 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
5657 | echo "$as_me: $ac_file is unchanged" >&6;} | |
5658 | else | |
dae5f5cf DJ |
5659 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5660 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5661 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5662 | X"$ac_file" : 'X\(//\)$' \| \ | |
5663 | X"$ac_file" : 'X\(/\)' \| \ | |
5664 | . : '\(.\)' 2>/dev/null || | |
5665 | echo X"$ac_file" | | |
5666 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5667 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5668 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5669 | /^X\(\/\).*/{ s//\1/; q; } | |
5670 | s/.*/./; q'` | |
5671 | { if $as_mkdir_p; then | |
5672 | mkdir -p "$ac_dir" | |
5673 | else | |
5674 | as_dir="$ac_dir" | |
5675 | as_dirs= | |
5676 | while test ! -d "$as_dir"; do | |
5677 | as_dirs="$as_dir $as_dirs" | |
5678 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
5679 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5680 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5681 | X"$as_dir" : 'X\(//\)$' \| \ | |
5682 | X"$as_dir" : 'X\(/\)' \| \ | |
5683 | . : '\(.\)' 2>/dev/null || | |
5684 | echo X"$as_dir" | | |
5685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5686 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5687 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5688 | /^X\(\/\).*/{ s//\1/; q; } | |
5689 | s/.*/./; q'` | |
5690 | done | |
5691 | test ! -n "$as_dirs" || mkdir $as_dirs | |
5692 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
5693 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
5694 | { (exit 1); exit 1; }; }; } | |
5695 | ||
bec39cab | 5696 | rm -f $ac_file |
dae5f5cf | 5697 | mv $tmp/config.h $ac_file |
84563040 | 5698 | fi |
bec39cab | 5699 | else |
dae5f5cf DJ |
5700 | cat $tmp/config.h |
5701 | rm -f $tmp/config.h | |
d6e9fb05 | 5702 | fi |
dae5f5cf DJ |
5703 | done |
5704 | _ACEOF | |
5705 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 5706 | |
dae5f5cf DJ |
5707 | # |
5708 | # CONFIG_COMMANDS section. | |
5709 | # | |
5710 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
5711 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
5712 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5713 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
5714 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5715 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
5716 | X"$ac_dest" : 'X\(//\)$' \| \ | |
5717 | X"$ac_dest" : 'X\(/\)' \| \ | |
5718 | . : '\(.\)' 2>/dev/null || | |
5719 | echo X"$ac_dest" | | |
5720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5723 | /^X\(\/\).*/{ s//\1/; q; } | |
5724 | s/.*/./; q'` | |
5725 | { if $as_mkdir_p; then | |
5726 | mkdir -p "$ac_dir" | |
5727 | else | |
5728 | as_dir="$ac_dir" | |
5729 | as_dirs= | |
5730 | while test ! -d "$as_dir"; do | |
5731 | as_dirs="$as_dir $as_dirs" | |
5732 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
5733 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5734 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5735 | X"$as_dir" : 'X\(//\)$' \| \ | |
5736 | X"$as_dir" : 'X\(/\)' \| \ | |
5737 | . : '\(.\)' 2>/dev/null || | |
5738 | echo X"$as_dir" | | |
5739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5740 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5741 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5742 | /^X\(\/\).*/{ s//\1/; q; } | |
5743 | s/.*/./; q'` | |
5744 | done | |
5745 | test ! -n "$as_dirs" || mkdir $as_dirs | |
5746 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
5747 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
5748 | { (exit 1); exit 1; }; }; } | |
84563040 | 5749 | |
dae5f5cf | 5750 | ac_builddir=. |
d6e9fb05 | 5751 | |
dae5f5cf DJ |
5752 | if test "$ac_dir" != .; then |
5753 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
5754 | # A "../" for each directory in $ac_dir_suffix. | |
5755 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
5756 | else | |
5757 | ac_dir_suffix= ac_top_builddir= | |
5758 | fi | |
5759 | ||
5760 | case $srcdir in | |
5761 | .) # No --srcdir option. We are building in place. | |
5762 | ac_srcdir=. | |
5763 | if test -z "$ac_top_builddir"; then | |
5764 | ac_top_srcdir=. | |
5765 | else | |
5766 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
5767 | fi ;; | |
5768 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
5769 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5770 | ac_top_srcdir=$srcdir ;; | |
5771 | *) # Relative path. | |
5772 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
5773 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
5774 | esac | |
5775 | ||
5776 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
5777 | # the directories may not exist. | |
5778 | case `pwd` in | |
5779 | .) ac_abs_builddir="$ac_dir";; | |
5780 | *) | |
5781 | case "$ac_dir" in | |
5782 | .) ac_abs_builddir=`pwd`;; | |
5783 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
5784 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
5785 | esac;; | |
5786 | esac | |
5787 | case $ac_abs_builddir in | |
5788 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
5789 | *) | |
5790 | case ${ac_top_builddir}. in | |
5791 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
5792 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
5793 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
5794 | esac;; | |
5795 | esac | |
5796 | case $ac_abs_builddir in | |
5797 | .) ac_abs_srcdir=$ac_srcdir;; | |
5798 | *) | |
5799 | case $ac_srcdir in | |
5800 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
5801 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
5802 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
5803 | esac;; | |
5804 | esac | |
5805 | case $ac_abs_builddir in | |
5806 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
5807 | *) | |
5808 | case $ac_top_srcdir in | |
5809 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
5810 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
5811 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
5812 | esac;; | |
5813 | esac | |
5814 | ||
5815 | ||
5816 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
5817 | echo "$as_me: executing $ac_dest commands" >&6;} | |
5818 | case $ac_dest in | |
5819 | default ) case x$CONFIG_HEADERS in | |
c3a3ccc7 DJ |
5820 | xconfig.h:config.in) |
5821 | echo > stamp-h ;; | |
5822 | esac | |
bec39cab AC |
5823 | ;; |
5824 | esac | |
dae5f5cf DJ |
5825 | done |
5826 | _ACEOF | |
d6e9fb05 | 5827 | |
dae5f5cf | 5828 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
5829 | |
5830 | { (exit 0); exit 0; } | |
5831 | _ACEOF | |
d6e9fb05 | 5832 | chmod +x $CONFIG_STATUS |
bec39cab AC |
5833 | ac_clean_files=$ac_clean_files_save |
5834 | ||
5835 | ||
5836 | # configure is writing to config.log, and then calls config.status. | |
5837 | # config.status does its own redirection, appending to config.log. | |
5838 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5839 | # by configure, so config.status won't be able to write to it; its | |
5840 | # output is simply discarded. So we exec the FD to /dev/null, | |
5841 | # effectively closing config.log, so it can be properly (re)opened and | |
5842 | # appended to by config.status. When coming back to configure, we | |
5843 | # need to make the FD available again. | |
5844 | if test "$no_create" != yes; then | |
5845 | ac_cs_success=: | |
5846 | ac_config_status_args= | |
5847 | test "$silent" = yes && | |
5848 | ac_config_status_args="$ac_config_status_args --quiet" | |
5849 | exec 5>/dev/null | |
5850 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5851 | exec 5>>config.log | |
5852 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5853 | # would make configure fail if this is the last instruction. | |
5854 | $ac_cs_success || { (exit 1); exit 1; } | |
5855 | fi | |
d6e9fb05 | 5856 |