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