Commit | Line | Data |
---|---|---|
d6e9fb05 | 1 | #! /bin/sh |
d6e9fb05 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
d6e9fb05 JK |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bec39cab | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bec39cab | 31 | fi |
bec39cab | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
bec39cab | 50 | else |
81ecdfbb RW |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bec39cab AC |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bec39cab AC |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bec39cab | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bec39cab | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bec39cab | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
bec39cab | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bec39cab | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bec39cab | 410 | |
dae5f5cf DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b80864fb | 417 | |
bec39cab | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bec39cab | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bec39cab | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bec39cab | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bec39cab AC |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bec39cab AC |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bec39cab AC |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
dae5f5cf | 483 | fi |
bec39cab AC |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bec39cab AC |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
d6e9fb05 | 496 | |
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bec39cab AC |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bec39cab AC |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bec39cab AC |
534 | # |
535 | # Initializations. | |
536 | # | |
d6e9fb05 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
bec39cab | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bec39cab AC |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
dae5f5cf | 545 | |
bec39cab AC |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
bec39cab AC |
553 | |
554 | ac_unique_file="server.c" | |
555 | # Factoring default headers for most tests. | |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
bec39cab AC |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
bec39cab AC |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
bec39cab AC |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
bec39cab AC |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bec39cab AC |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
bec39cab AC |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
bec39cab | 582 | # include <inttypes.h> |
bec39cab | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
bec39cab AC |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
c9a1864a YQ |
591 | gl_header_list= |
592 | gl_func_list= | |
593 | ac_subst_vars='am__EXEEXT_FALSE | |
594 | am__EXEEXT_TRUE | |
595 | gltests_LTLIBOBJS | |
596 | gltests_LIBOBJS | |
597 | gl_LTLIBOBJS | |
598 | gl_LIBOBJS | |
599 | LTLIBOBJS | |
600 | GNULIB_STDINT_H | |
601 | am__fastdepCC_FALSE | |
602 | am__fastdepCC_TRUE | |
603 | CCDEPMODE | |
604 | AMDEPBACKSLASH | |
605 | AMDEP_FALSE | |
606 | AMDEP_TRUE | |
607 | am__quote | |
608 | am__include | |
609 | DEPDIR | |
610 | am__untar | |
611 | am__tar | |
612 | AMTAR | |
613 | am__leading_dot | |
614 | SET_MAKE | |
615 | AWK | |
616 | mkdir_p | |
617 | MKDIR_P | |
618 | INSTALL_STRIP_PROGRAM | |
619 | STRIP | |
620 | install_sh | |
621 | MAKEINFO | |
622 | AUTOHEADER | |
623 | AUTOMAKE | |
624 | AUTOCONF | |
625 | ACLOCAL | |
626 | VERSION | |
627 | PACKAGE | |
628 | CYGPATH_W | |
629 | am__isrc | |
630 | LIBGNU_LTLIBDEPS | |
631 | LIBGNU_LIBDEPS | |
632 | gltests_WITNESS | |
633 | HAVE_WINT_T | |
634 | HAVE_WCHAR_H | |
635 | NEXT_AS_FIRST_DIRECTIVE_WCHAR_H | |
636 | NEXT_WCHAR_H | |
637 | REPLACE_WCWIDTH | |
638 | REPLACE_WCSNRTOMBS | |
639 | REPLACE_WCSRTOMBS | |
640 | REPLACE_WCRTOMB | |
641 | REPLACE_MBSNRTOWCS | |
642 | REPLACE_MBSRTOWCS | |
643 | REPLACE_MBRLEN | |
644 | REPLACE_MBRTOWC | |
645 | REPLACE_MBSINIT | |
646 | REPLACE_WCTOB | |
647 | REPLACE_BTOWC | |
648 | REPLACE_MBSTATE_T | |
649 | HAVE_DECL_WCWIDTH | |
650 | HAVE_DECL_WCTOB | |
651 | HAVE_WCSNRTOMBS | |
652 | HAVE_WCSRTOMBS | |
653 | HAVE_WCRTOMB | |
654 | HAVE_MBSNRTOWCS | |
655 | HAVE_MBSRTOWCS | |
656 | HAVE_MBRLEN | |
657 | HAVE_MBRTOWC | |
658 | HAVE_MBSINIT | |
659 | HAVE_BTOWC | |
660 | GNULIB_WCWIDTH | |
661 | GNULIB_WCSNRTOMBS | |
662 | GNULIB_WCSRTOMBS | |
663 | GNULIB_WCRTOMB | |
664 | GNULIB_MBSNRTOWCS | |
665 | GNULIB_MBSRTOWCS | |
666 | GNULIB_MBRLEN | |
667 | GNULIB_MBRTOWC | |
668 | GNULIB_MBSINIT | |
669 | GNULIB_WCTOB | |
670 | GNULIB_BTOWC | |
671 | NEXT_AS_FIRST_DIRECTIVE_STRING_H | |
672 | NEXT_STRING_H | |
673 | STDINT_H | |
674 | WINT_T_SUFFIX | |
675 | WCHAR_T_SUFFIX | |
676 | SIG_ATOMIC_T_SUFFIX | |
677 | SIZE_T_SUFFIX | |
678 | PTRDIFF_T_SUFFIX | |
679 | HAVE_SIGNED_WINT_T | |
680 | HAVE_SIGNED_WCHAR_T | |
681 | HAVE_SIGNED_SIG_ATOMIC_T | |
682 | BITSIZEOF_WINT_T | |
683 | BITSIZEOF_WCHAR_T | |
684 | BITSIZEOF_SIG_ATOMIC_T | |
685 | BITSIZEOF_SIZE_T | |
686 | BITSIZEOF_PTRDIFF_T | |
687 | HAVE_SYS_BITYPES_H | |
688 | HAVE_SYS_INTTYPES_H | |
689 | HAVE_STDINT_H | |
690 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H | |
691 | NEXT_STDINT_H | |
692 | HAVE_SYS_TYPES_H | |
693 | HAVE_INTTYPES_H | |
694 | HAVE_UNSIGNED_LONG_LONG_INT | |
695 | HAVE_LONG_LONG_INT | |
696 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H | |
697 | NEXT_STDDEF_H | |
698 | PRAGMA_SYSTEM_HEADER | |
699 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE | |
700 | INCLUDE_NEXT | |
701 | STDDEF_H | |
702 | HAVE_WCHAR_T | |
703 | REPLACE_NULL | |
704 | APPLE_UNIVERSAL_BUILD | |
705 | UNDEFINE_STRTOK_R | |
706 | REPLACE_STRTOK_R | |
707 | REPLACE_STRSIGNAL | |
708 | REPLACE_STRNLEN | |
709 | REPLACE_STRNDUP | |
710 | REPLACE_STRNCAT | |
711 | REPLACE_STRERROR | |
712 | REPLACE_STRCASESTR | |
713 | REPLACE_STRSTR | |
714 | REPLACE_STRDUP | |
715 | REPLACE_STPNCPY | |
716 | REPLACE_MEMMEM | |
717 | REPLACE_MEMCHR | |
718 | HAVE_STRVERSCMP | |
719 | HAVE_DECL_STRSIGNAL | |
720 | HAVE_DECL_STRTOK_R | |
721 | HAVE_STRCASESTR | |
722 | HAVE_STRSEP | |
723 | HAVE_STRPBRK | |
724 | HAVE_DECL_STRNLEN | |
725 | HAVE_DECL_STRNDUP | |
726 | HAVE_DECL_STRDUP | |
727 | HAVE_STRCHRNUL | |
728 | HAVE_STPNCPY | |
729 | HAVE_STPCPY | |
730 | HAVE_RAWMEMCHR | |
731 | HAVE_DECL_MEMRCHR | |
732 | HAVE_MEMPCPY | |
733 | HAVE_DECL_MEMMEM | |
734 | HAVE_MEMCHR | |
735 | HAVE_MBSLEN | |
736 | GNULIB_STRVERSCMP | |
737 | GNULIB_STRSIGNAL | |
738 | GNULIB_STRERROR | |
739 | GNULIB_MBSTOK_R | |
740 | GNULIB_MBSSEP | |
741 | GNULIB_MBSSPN | |
742 | GNULIB_MBSPBRK | |
743 | GNULIB_MBSCSPN | |
744 | GNULIB_MBSCASESTR | |
745 | GNULIB_MBSPCASECMP | |
746 | GNULIB_MBSNCASECMP | |
747 | GNULIB_MBSCASECMP | |
748 | GNULIB_MBSSTR | |
749 | GNULIB_MBSRCHR | |
750 | GNULIB_MBSCHR | |
751 | GNULIB_MBSNLEN | |
752 | GNULIB_MBSLEN | |
753 | GNULIB_STRTOK_R | |
754 | GNULIB_STRCASESTR | |
755 | GNULIB_STRSTR | |
756 | GNULIB_STRSEP | |
757 | GNULIB_STRPBRK | |
758 | GNULIB_STRNLEN | |
759 | GNULIB_STRNDUP | |
760 | GNULIB_STRNCAT | |
761 | GNULIB_STRDUP | |
762 | GNULIB_STRCHRNUL | |
763 | GNULIB_STPNCPY | |
764 | GNULIB_STPCPY | |
765 | GNULIB_RAWMEMCHR | |
766 | GNULIB_MEMRCHR | |
767 | GNULIB_MEMPCPY | |
768 | GNULIB_MEMMEM | |
769 | GNULIB_MEMCHR | |
770 | GL_COND_LIBTOOL_FALSE | |
771 | GL_COND_LIBTOOL_TRUE | |
fa593d66 PA |
772 | extra_libraries |
773 | IPA_DEPFILES | |
81ecdfbb RW |
774 | srv_xmlfiles |
775 | srv_xmlbuiltin | |
776 | USE_THREAD_DB | |
777 | GDBSERVER_LIBS | |
778 | GDBSERVER_DEPFILES | |
779 | RDYNAMIC | |
780 | REPORT_BUGS_TEXI | |
781 | REPORT_BUGS_TO | |
782 | PKGVERSION | |
d4596a3d PA |
783 | WERROR_CFLAGS |
784 | WARN_CFLAGS | |
0fb4aa4b PA |
785 | ustinc |
786 | ustlibs | |
81ecdfbb | 787 | LIBOBJS |
c9a1864a | 788 | MAKE |
a1723c35 | 789 | ALLOCA |
81ecdfbb RW |
790 | INSTALL_DATA |
791 | INSTALL_SCRIPT | |
792 | INSTALL_PROGRAM | |
793 | target_os | |
794 | target_vendor | |
795 | target_cpu | |
796 | target | |
c9a1864a YQ |
797 | EGREP |
798 | GREP | |
799 | CPP | |
81ecdfbb RW |
800 | host_os |
801 | host_vendor | |
802 | host_cpu | |
803 | host | |
804 | build_os | |
805 | build_vendor | |
806 | build_cpu | |
807 | build | |
c9a1864a | 808 | RANLIB |
81ecdfbb RW |
809 | OBJEXT |
810 | EXEEXT | |
811 | ac_ct_CC | |
812 | CPPFLAGS | |
813 | LDFLAGS | |
814 | CFLAGS | |
815 | CC | |
c9a1864a YQ |
816 | MAINT |
817 | MAINTAINER_MODE_FALSE | |
818 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
819 | target_alias |
820 | host_alias | |
821 | build_alias | |
822 | LIBS | |
823 | ECHO_T | |
824 | ECHO_N | |
825 | ECHO_C | |
826 | DEFS | |
827 | mandir | |
828 | localedir | |
829 | libdir | |
830 | psdir | |
831 | pdfdir | |
832 | dvidir | |
833 | htmldir | |
834 | infodir | |
835 | docdir | |
836 | oldincludedir | |
837 | includedir | |
838 | localstatedir | |
839 | sharedstatedir | |
840 | sysconfdir | |
841 | datadir | |
842 | datarootdir | |
843 | libexecdir | |
844 | sbindir | |
845 | bindir | |
846 | program_transform_name | |
847 | prefix | |
848 | exec_prefix | |
849 | PACKAGE_URL | |
850 | PACKAGE_BUGREPORT | |
851 | PACKAGE_STRING | |
852 | PACKAGE_VERSION | |
853 | PACKAGE_TARNAME | |
854 | PACKAGE_NAME | |
855 | PATH_SEPARATOR | |
856 | SHELL' | |
bec39cab | 857 | ac_subst_files='' |
81ecdfbb RW |
858 | ac_user_opts=' |
859 | enable_option_checking | |
c9a1864a | 860 | enable_maintainer_mode |
0fb4aa4b PA |
861 | with_ust |
862 | with_ust_include | |
863 | with_ust_lib | |
d4596a3d | 864 | enable_werror |
81ecdfbb RW |
865 | with_pkgversion |
866 | with_bugurl | |
96f15937 | 867 | with_libthread_db |
c2a66c29 | 868 | enable_inprocess_agent |
c9a1864a | 869 | enable_dependency_tracking |
81ecdfbb RW |
870 | ' |
871 | ac_precious_vars='build_alias | |
872 | host_alias | |
873 | target_alias | |
874 | CC | |
875 | CFLAGS | |
876 | LDFLAGS | |
877 | LIBS | |
878 | CPPFLAGS | |
879 | CPP' | |
880 | ||
d6e9fb05 JK |
881 | |
882 | # Initialize some variables set by options. | |
bec39cab AC |
883 | ac_init_help= |
884 | ac_init_version=false | |
81ecdfbb RW |
885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | |
d6e9fb05 JK |
887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | |
bec39cab | 889 | cache_file=/dev/null |
d6e9fb05 | 890 | exec_prefix=NONE |
d6e9fb05 | 891 | no_create= |
d6e9fb05 JK |
892 | no_recursion= |
893 | prefix=NONE | |
894 | program_prefix=NONE | |
895 | program_suffix=NONE | |
896 | program_transform_name=s,x,x, | |
897 | silent= | |
898 | site= | |
899 | srcdir= | |
d6e9fb05 JK |
900 | verbose= |
901 | x_includes=NONE | |
902 | x_libraries=NONE | |
bec39cab AC |
903 | |
904 | # Installation directory options. | |
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
906 | # and all the variables that are supposed to be based on exec_prefix | |
907 | # by default will actually change. | |
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 909 | # (The list follows the same order as the GNU Coding Standards.) |
d6e9fb05 JK |
910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | |
912 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | |
d6e9fb05 JK |
915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | |
917 | localstatedir='${prefix}/var' | |
d6e9fb05 JK |
918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | |
81ecdfbb RW |
920 | docdir='${datarootdir}/doc/${PACKAGE}' |
921 | infodir='${datarootdir}/info' | |
922 | htmldir='${docdir}' | |
923 | dvidir='${docdir}' | |
924 | pdfdir='${docdir}' | |
925 | psdir='${docdir}' | |
926 | libdir='${exec_prefix}/lib' | |
927 | localedir='${datarootdir}/locale' | |
928 | mandir='${datarootdir}/man' | |
d6e9fb05 | 929 | |
d6e9fb05 | 930 | ac_prev= |
81ecdfbb | 931 | ac_dashdash= |
d6e9fb05 JK |
932 | for ac_option |
933 | do | |
d6e9fb05 JK |
934 | # If the previous option needs an argument, assign it. |
935 | if test -n "$ac_prev"; then | |
81ecdfbb | 936 | eval $ac_prev=\$ac_option |
d6e9fb05 JK |
937 | ac_prev= |
938 | continue | |
939 | fi | |
940 | ||
81ecdfbb RW |
941 | case $ac_option in |
942 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
943 | *) ac_optarg=yes ;; | |
944 | esac | |
d6e9fb05 JK |
945 | |
946 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
947 | ||
81ecdfbb RW |
948 | case $ac_dashdash$ac_option in |
949 | --) | |
950 | ac_dashdash=yes ;; | |
d6e9fb05 JK |
951 | |
952 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
953 | ac_prev=bindir ;; | |
954 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 955 | bindir=$ac_optarg ;; |
d6e9fb05 JK |
956 | |
957 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 958 | ac_prev=build_alias ;; |
d6e9fb05 | 959 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 960 | build_alias=$ac_optarg ;; |
d6e9fb05 JK |
961 | |
962 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
963 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
964 | ac_prev=cache_file ;; | |
965 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
966 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
967 | cache_file=$ac_optarg ;; |
968 | ||
969 | --config-cache | -C) | |
970 | cache_file=config.cache ;; | |
d6e9fb05 | 971 | |
81ecdfbb | 972 | -datadir | --datadir | --datadi | --datad) |
d6e9fb05 | 973 | ac_prev=datadir ;; |
81ecdfbb | 974 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bec39cab | 975 | datadir=$ac_optarg ;; |
d6e9fb05 | 976 | |
81ecdfbb RW |
977 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
978 | | --dataroo | --dataro | --datar) | |
979 | ac_prev=datarootdir ;; | |
980 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
981 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
982 | datarootdir=$ac_optarg ;; | |
983 | ||
d6e9fb05 | 984 | -disable-* | --disable-*) |
81ecdfbb | 985 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d6e9fb05 | 986 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
987 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
988 | as_fn_error "invalid feature name: $ac_useropt" | |
989 | ac_useropt_orig=$ac_useropt | |
990 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
991 | case $ac_user_opts in | |
992 | *" | |
993 | "enable_$ac_useropt" | |
994 | "*) ;; | |
995 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
996 | ac_unrecognized_sep=', ';; | |
997 | esac | |
998 | eval enable_$ac_useropt=no ;; | |
999 | ||
1000 | -docdir | --docdir | --docdi | --doc | --do) | |
1001 | ac_prev=docdir ;; | |
1002 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1003 | docdir=$ac_optarg ;; | |
1004 | ||
1005 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1006 | ac_prev=dvidir ;; | |
1007 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1008 | dvidir=$ac_optarg ;; | |
d6e9fb05 JK |
1009 | |
1010 | -enable-* | --enable-*) | |
81ecdfbb | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d6e9fb05 | 1012 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1014 | as_fn_error "invalid feature name: $ac_useropt" | |
1015 | ac_useropt_orig=$ac_useropt | |
1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1017 | case $ac_user_opts in | |
1018 | *" | |
1019 | "enable_$ac_useropt" | |
1020 | "*) ;; | |
1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1022 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 1023 | esac |
81ecdfbb | 1024 | eval enable_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
1025 | |
1026 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1027 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1028 | | --exec | --exe | --ex) | |
1029 | ac_prev=exec_prefix ;; | |
1030 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1031 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1032 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 1033 | exec_prefix=$ac_optarg ;; |
d6e9fb05 JK |
1034 | |
1035 | -gas | --gas | --ga | --g) | |
1036 | # Obsolete; use --with-gas. | |
1037 | with_gas=yes ;; | |
1038 | ||
bec39cab AC |
1039 | -help | --help | --hel | --he | -h) |
1040 | ac_init_help=long ;; | |
1041 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1042 | ac_init_help=recursive ;; | |
1043 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1044 | ac_init_help=short ;; | |
d6e9fb05 JK |
1045 | |
1046 | -host | --host | --hos | --ho) | |
bec39cab | 1047 | ac_prev=host_alias ;; |
d6e9fb05 | 1048 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 1049 | host_alias=$ac_optarg ;; |
d6e9fb05 | 1050 | |
81ecdfbb RW |
1051 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1052 | ac_prev=htmldir ;; | |
1053 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1054 | | --ht=*) | |
1055 | htmldir=$ac_optarg ;; | |
1056 | ||
d6e9fb05 JK |
1057 | -includedir | --includedir | --includedi | --included | --include \ |
1058 | | --includ | --inclu | --incl | --inc) | |
1059 | ac_prev=includedir ;; | |
1060 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1061 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 1062 | includedir=$ac_optarg ;; |
d6e9fb05 JK |
1063 | |
1064 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1065 | ac_prev=infodir ;; | |
1066 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 1067 | infodir=$ac_optarg ;; |
d6e9fb05 JK |
1068 | |
1069 | -libdir | --libdir | --libdi | --libd) | |
1070 | ac_prev=libdir ;; | |
1071 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 1072 | libdir=$ac_optarg ;; |
d6e9fb05 JK |
1073 | |
1074 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1075 | | --libexe | --libex | --libe) | |
1076 | ac_prev=libexecdir ;; | |
1077 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1078 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 1079 | libexecdir=$ac_optarg ;; |
d6e9fb05 | 1080 | |
81ecdfbb RW |
1081 | -localedir | --localedir | --localedi | --localed | --locale) |
1082 | ac_prev=localedir ;; | |
1083 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1084 | localedir=$ac_optarg ;; | |
1085 | ||
d6e9fb05 | 1086 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1087 | | --localstate | --localstat | --localsta | --localst | --locals) |
d6e9fb05 JK |
1088 | ac_prev=localstatedir ;; |
1089 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1090 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bec39cab | 1091 | localstatedir=$ac_optarg ;; |
d6e9fb05 JK |
1092 | |
1093 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1094 | ac_prev=mandir ;; | |
1095 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 1096 | mandir=$ac_optarg ;; |
d6e9fb05 JK |
1097 | |
1098 | -nfp | --nfp | --nf) | |
1099 | # Obsolete; use --without-fp. | |
1100 | with_fp=no ;; | |
1101 | ||
1102 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 1103 | | --no-cr | --no-c | -n) |
d6e9fb05 JK |
1104 | no_create=yes ;; |
1105 | ||
1106 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1107 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1108 | no_recursion=yes ;; | |
1109 | ||
1110 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1111 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1112 | | --oldin | --oldi | --old | --ol | --o) | |
1113 | ac_prev=oldincludedir ;; | |
1114 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1115 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1116 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 1117 | oldincludedir=$ac_optarg ;; |
d6e9fb05 JK |
1118 | |
1119 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1120 | ac_prev=prefix ;; | |
1121 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 1122 | prefix=$ac_optarg ;; |
d6e9fb05 JK |
1123 | |
1124 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1125 | | --program-pre | --program-pr | --program-p) | |
1126 | ac_prev=program_prefix ;; | |
1127 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1128 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 1129 | program_prefix=$ac_optarg ;; |
d6e9fb05 JK |
1130 | |
1131 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1132 | | --program-suf | --program-su | --program-s) | |
1133 | ac_prev=program_suffix ;; | |
1134 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1135 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 1136 | program_suffix=$ac_optarg ;; |
d6e9fb05 JK |
1137 | |
1138 | -program-transform-name | --program-transform-name \ | |
1139 | | --program-transform-nam | --program-transform-na \ | |
1140 | | --program-transform-n | --program-transform- \ | |
1141 | | --program-transform | --program-transfor \ | |
1142 | | --program-transfo | --program-transf \ | |
1143 | | --program-trans | --program-tran \ | |
1144 | | --progr-tra | --program-tr | --program-t) | |
1145 | ac_prev=program_transform_name ;; | |
1146 | -program-transform-name=* | --program-transform-name=* \ | |
1147 | | --program-transform-nam=* | --program-transform-na=* \ | |
1148 | | --program-transform-n=* | --program-transform-=* \ | |
1149 | | --program-transform=* | --program-transfor=* \ | |
1150 | | --program-transfo=* | --program-transf=* \ | |
1151 | | --program-trans=* | --program-tran=* \ | |
1152 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 1153 | program_transform_name=$ac_optarg ;; |
d6e9fb05 | 1154 | |
81ecdfbb RW |
1155 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1156 | ac_prev=pdfdir ;; | |
1157 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1158 | pdfdir=$ac_optarg ;; | |
1159 | ||
1160 | -psdir | --psdir | --psdi | --psd | --ps) | |
1161 | ac_prev=psdir ;; | |
1162 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1163 | psdir=$ac_optarg ;; | |
1164 | ||
d6e9fb05 JK |
1165 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1166 | | -silent | --silent | --silen | --sile | --sil) | |
1167 | silent=yes ;; | |
1168 | ||
1169 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1170 | ac_prev=sbindir ;; | |
1171 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1172 | | --sbi=* | --sb=*) | |
bec39cab | 1173 | sbindir=$ac_optarg ;; |
d6e9fb05 JK |
1174 | |
1175 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1176 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1177 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1178 | | --sha | --sh) | |
1179 | ac_prev=sharedstatedir ;; | |
1180 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1181 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1182 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1183 | | --sha=* | --sh=*) | |
bec39cab | 1184 | sharedstatedir=$ac_optarg ;; |
d6e9fb05 JK |
1185 | |
1186 | -site | --site | --sit) | |
1187 | ac_prev=site ;; | |
1188 | -site=* | --site=* | --sit=*) | |
bec39cab | 1189 | site=$ac_optarg ;; |
434c4c77 | 1190 | |
d6e9fb05 JK |
1191 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1192 | ac_prev=srcdir ;; | |
1193 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 1194 | srcdir=$ac_optarg ;; |
d6e9fb05 JK |
1195 | |
1196 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1197 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1198 | ac_prev=sysconfdir ;; | |
1199 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1200 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 1201 | sysconfdir=$ac_optarg ;; |
d6e9fb05 JK |
1202 | |
1203 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 1204 | ac_prev=target_alias ;; |
d6e9fb05 | 1205 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 1206 | target_alias=$ac_optarg ;; |
d6e9fb05 JK |
1207 | |
1208 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1209 | verbose=yes ;; | |
1210 | ||
bec39cab AC |
1211 | -version | --version | --versio | --versi | --vers | -V) |
1212 | ac_init_version=: ;; | |
d6e9fb05 JK |
1213 | |
1214 | -with-* | --with-*) | |
81ecdfbb | 1215 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d6e9fb05 | 1216 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1217 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1218 | as_fn_error "invalid package name: $ac_useropt" | |
1219 | ac_useropt_orig=$ac_useropt | |
1220 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1221 | case $ac_user_opts in | |
1222 | *" | |
1223 | "with_$ac_useropt" | |
1224 | "*) ;; | |
1225 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1226 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 1227 | esac |
81ecdfbb | 1228 | eval with_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
1229 | |
1230 | -without-* | --without-*) | |
81ecdfbb | 1231 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d6e9fb05 | 1232 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1233 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1234 | as_fn_error "invalid package name: $ac_useropt" | |
1235 | ac_useropt_orig=$ac_useropt | |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=no ;; | |
d6e9fb05 JK |
1245 | |
1246 | --x) | |
1247 | # Obsolete; use --with-x. | |
1248 | with_x=yes ;; | |
1249 | ||
1250 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1251 | | --x-incl | --x-inc | --x-in | --x-i) | |
1252 | ac_prev=x_includes ;; | |
1253 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1254 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 1255 | x_includes=$ac_optarg ;; |
d6e9fb05 JK |
1256 | |
1257 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1258 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1259 | ac_prev=x_libraries ;; | |
1260 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1261 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 1262 | x_libraries=$ac_optarg ;; |
d6e9fb05 | 1263 | |
81ecdfbb RW |
1264 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1265 | Try \`$0 --help' for more information." | |
d6e9fb05 JK |
1266 | ;; |
1267 | ||
bec39cab AC |
1268 | *=*) |
1269 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1270 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1271 | case $ac_envvar in #( |
1272 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1273 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1274 | esac | |
1275 | eval $ac_envvar=\$ac_optarg | |
bec39cab AC |
1276 | export $ac_envvar ;; |
1277 | ||
d6e9fb05 | 1278 | *) |
bec39cab | 1279 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1280 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bec39cab | 1281 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1282 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bec39cab | 1283 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
d6e9fb05 JK |
1284 | ;; |
1285 | ||
1286 | esac | |
1287 | done | |
1288 | ||
1289 | if test -n "$ac_prev"; then | |
bec39cab | 1290 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1291 | as_fn_error "missing argument to $ac_option" |
d6e9fb05 | 1292 | fi |
d6e9fb05 | 1293 | |
81ecdfbb RW |
1294 | if test -n "$ac_unrecognized_opts"; then |
1295 | case $enable_option_checking in | |
1296 | no) ;; | |
1297 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1298 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
dae5f5cf | 1299 | esac |
81ecdfbb | 1300 | fi |
dae5f5cf | 1301 | |
81ecdfbb RW |
1302 | # Check all directory arguments for consistency. |
1303 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1304 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1305 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1306 | libdir localedir mandir | |
dae5f5cf | 1307 | do |
81ecdfbb RW |
1308 | eval ac_val=\$$ac_var |
1309 | # Remove trailing slashes. | |
1310 | case $ac_val in | |
1311 | */ ) | |
1312 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1313 | eval $ac_var=\$ac_val;; | |
1314 | esac | |
1315 | # Be sure to have absolute directory names. | |
dae5f5cf | 1316 | case $ac_val in |
81ecdfbb RW |
1317 | [\\/$]* | ?:[\\/]* ) continue;; |
1318 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d6e9fb05 | 1319 | esac |
81ecdfbb | 1320 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
d6e9fb05 JK |
1321 | done |
1322 | ||
bec39cab AC |
1323 | # There might be people who depend on the old broken behavior: `$host' |
1324 | # used to hold the argument of --host etc. | |
1325 | # FIXME: To remove some day. | |
1326 | build=$build_alias | |
1327 | host=$host_alias | |
1328 | target=$target_alias | |
1329 | ||
1330 | # FIXME: To remove some day. | |
1331 | if test "x$host_alias" != x; then | |
1332 | if test "x$build_alias" = x; then | |
1333 | cross_compiling=maybe | |
81ecdfbb | 1334 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bec39cab AC |
1335 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1336 | elif test "x$build_alias" != "x$host_alias"; then | |
1337 | cross_compiling=yes | |
1338 | fi | |
1339 | fi | |
d6e9fb05 | 1340 | |
bec39cab AC |
1341 | ac_tool_prefix= |
1342 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1343 | ||
1344 | test "$silent" = yes && exec 6>/dev/null | |
d6e9fb05 | 1345 | |
d6e9fb05 | 1346 | |
81ecdfbb RW |
1347 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1348 | ac_ls_di=`ls -di .` && | |
1349 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1350 | as_fn_error "working directory cannot be determined" | |
1351 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1352 | as_fn_error "pwd does not report name of working directory" | |
1353 | ||
1354 | ||
d6e9fb05 JK |
1355 | # Find the source files, if location was not specified. |
1356 | if test -z "$srcdir"; then | |
1357 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1358 | # Try the directory containing this script, then the parent directory. |
1359 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1360 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1361 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1362 | X"$as_myself" : 'X\(//\)$' \| \ | |
1363 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1364 | $as_echo X"$as_myself" | | |
1365 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\/\)[^/].*/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\/\)$/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | /^X\(\/\).*/{ | |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | s/.*/./; q'` | |
d6e9fb05 | 1382 | srcdir=$ac_confdir |
81ecdfbb | 1383 | if test ! -r "$srcdir/$ac_unique_file"; then |
d6e9fb05 JK |
1384 | srcdir=.. |
1385 | fi | |
1386 | else | |
1387 | ac_srcdir_defaulted=no | |
1388 | fi | |
81ecdfbb RW |
1389 | if test ! -r "$srcdir/$ac_unique_file"; then |
1390 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1391 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1392 | fi | |
1393 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1394 | ac_abs_confdir=`( | |
1395 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1396 | pwd)` | |
1397 | # When building in place, set srcdir=. | |
1398 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1399 | srcdir=. | |
1400 | fi | |
1401 | # Remove unnecessary trailing slashes from srcdir. | |
1402 | # Double slashes in file names in object file debugging info | |
1403 | # mess up M-x gdb in Emacs. | |
1404 | case $srcdir in | |
1405 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1406 | esac | |
1407 | for ac_var in $ac_precious_vars; do | |
1408 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1409 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1410 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1411 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1412 | done | |
d6e9fb05 | 1413 | |
bec39cab AC |
1414 | # |
1415 | # Report the --help message. | |
1416 | # | |
1417 | if test "$ac_init_help" = "long"; then | |
1418 | # Omit some internal or obsolete options to make the list less imposing. | |
1419 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1420 | cat <<_ACEOF | |
1421 | \`configure' configures this package to adapt to many kinds of systems. | |
1422 | ||
1423 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1424 | ||
1425 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1426 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1427 | ||
1428 | Defaults for the options are specified in brackets. | |
1429 | ||
1430 | Configuration: | |
1431 | -h, --help display this help and exit | |
1432 | --help=short display options specific to this package | |
1433 | --help=recursive display the short help of all the included packages | |
1434 | -V, --version display version information and exit | |
1435 | -q, --quiet, --silent do not print \`checking...' messages | |
1436 | --cache-file=FILE cache test results in FILE [disabled] | |
1437 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1438 | -n, --no-create do not create output files | |
1439 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1440 | ||
bec39cab AC |
1441 | Installation directories: |
1442 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1443 | [$ac_default_prefix] |
bec39cab | 1444 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1445 | [PREFIX] |
bec39cab AC |
1446 | |
1447 | By default, \`make install' will install all the files in | |
1448 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1449 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1450 | for instance \`--prefix=\$HOME'. | |
1451 | ||
1452 | For better control, use the options below. | |
1453 | ||
1454 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1455 | --bindir=DIR user executables [EPREFIX/bin] |
1456 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1457 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1458 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1459 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1460 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1461 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1462 | --includedir=DIR C header files [PREFIX/include] | |
1463 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1464 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1465 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1466 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1467 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1468 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1469 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1470 | --htmldir=DIR html documentation [DOCDIR] | |
1471 | --dvidir=DIR dvi documentation [DOCDIR] | |
1472 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1473 | --psdir=DIR ps documentation [DOCDIR] | |
bec39cab AC |
1474 | _ACEOF |
1475 | ||
1476 | cat <<\_ACEOF | |
1477 | ||
dcdb98d2 DJ |
1478 | Program names: |
1479 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1480 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1481 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1482 | ||
bec39cab AC |
1483 | System types: |
1484 | --build=BUILD configure for building on BUILD [guessed] | |
1485 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1486 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1487 | _ACEOF | |
1488 | fi | |
1489 | ||
1490 | if test -n "$ac_init_help"; then | |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
d4596a3d PA |
1494 | Optional Features: |
1495 | --disable-option-checking ignore unrecognized --enable/--with options | |
1496 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1497 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c9a1864a YQ |
1498 | --enable-maintainer-mode enable make rules and dependencies not useful |
1499 | (and sometimes confusing) to the casual installer | |
d4596a3d | 1500 | --enable-werror treat compile warnings as errors |
c2a66c29 NS |
1501 | --enable-inprocess-agent |
1502 | inprocess agent | |
c9a1864a YQ |
1503 | --disable-dependency-tracking speeds up one-time build |
1504 | --enable-dependency-tracking do not reject slow dependency extractors | |
d4596a3d | 1505 | |
c16158bc JM |
1506 | Optional Packages: |
1507 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1508 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
0fb4aa4b PA |
1509 | --with-ust=PATH Specify prefix directory for the installed UST package |
1510 | Equivalent to --with-ust-include=PATH/include | |
1511 | plus --with-ust-lib=PATH/lib | |
1512 | --with-ust-include=PATH Specify directory for installed UST include files | |
1513 | --with-ust-lib=PATH Specify the directory for the installed UST library | |
c16158bc JM |
1514 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
1515 | --with-bugurl=URL Direct users to URL to report a bug | |
96f15937 PP |
1516 | --with-libthread-db=PATH |
1517 | use given libthread_db directly | |
c16158bc | 1518 | |
bec39cab AC |
1519 | Some influential environment variables: |
1520 | CC C compiler command | |
1521 | CFLAGS C compiler flags | |
1522 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1523 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1524 | LIBS libraries to pass to the linker, e.g. -l<library> |
1525 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1526 | you have headers in a nonstandard directory <include dir> | |
bec39cab AC |
1527 | CPP C preprocessor |
1528 | ||
1529 | Use these variables to override the choices made by `configure' or to help | |
1530 | it to find libraries and programs with nonstandard names/locations. | |
1531 | ||
81ecdfbb | 1532 | Report bugs to the package provider. |
bec39cab | 1533 | _ACEOF |
81ecdfbb | 1534 | ac_status=$? |
bec39cab AC |
1535 | fi |
1536 | ||
1537 | if test "$ac_init_help" = "recursive"; then | |
1538 | # If there are subdirs, report their specific --help. | |
bec39cab | 1539 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1540 | test -d "$ac_dir" || |
1541 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1542 | continue | |
bec39cab AC |
1543 | ac_builddir=. |
1544 | ||
81ecdfbb RW |
1545 | case "$ac_dir" in |
1546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1547 | *) | |
1548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1549 | # A ".." for each directory in $ac_dir_suffix. | |
1550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1551 | case $ac_top_builddir_sub in | |
1552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1554 | esac ;; | |
1555 | esac | |
1556 | ac_abs_top_builddir=$ac_pwd | |
1557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1558 | # for backward compatibility: | |
1559 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
1560 | |
1561 | case $srcdir in | |
81ecdfbb | 1562 | .) # We are building in place. |
bec39cab | 1563 | ac_srcdir=. |
81ecdfbb RW |
1564 | ac_top_srcdir=$ac_top_builddir_sub |
1565 | ac_abs_top_srcdir=$ac_pwd ;; | |
1566 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 1567 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1568 | ac_top_srcdir=$srcdir |
1569 | ac_abs_top_srcdir=$srcdir ;; | |
1570 | *) # Relative name. | |
1571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1572 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dae5f5cf | 1574 | esac |
81ecdfbb RW |
1575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1576 | ||
1577 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1578 | # Check for guested configure. | |
1579 | if test -f "$ac_srcdir/configure.gnu"; then | |
1580 | echo && | |
1581 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1582 | elif test -f "$ac_srcdir/configure"; then | |
1583 | echo && | |
1584 | $SHELL "$ac_srcdir/configure" --help=recursive | |
434c4c77 | 1585 | else |
81ecdfbb RW |
1586 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1587 | fi || ac_status=$? | |
1588 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bec39cab AC |
1589 | done |
1590 | fi | |
1591 | ||
81ecdfbb | 1592 | test -n "$ac_init_help" && exit $ac_status |
bec39cab AC |
1593 | if $ac_init_version; then |
1594 | cat <<\_ACEOF | |
81ecdfbb RW |
1595 | configure |
1596 | generated by GNU Autoconf 2.64 | |
bec39cab | 1597 | |
81ecdfbb | 1598 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
1599 | This configure script is free software; the Free Software Foundation |
1600 | gives unlimited permission to copy, distribute and modify it. | |
1601 | _ACEOF | |
81ecdfbb | 1602 | exit |
bec39cab | 1603 | fi |
bec39cab | 1604 | |
81ecdfbb RW |
1605 | ## ------------------------ ## |
1606 | ## Autoconf initialization. ## | |
1607 | ## ------------------------ ## | |
bec39cab | 1608 | |
81ecdfbb RW |
1609 | # ac_fn_c_try_compile LINENO |
1610 | # -------------------------- | |
1611 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1612 | ac_fn_c_try_compile () | |
bec39cab | 1613 | { |
81ecdfbb RW |
1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1615 | rm -f conftest.$ac_objext | |
1616 | if { { ac_try="$ac_compile" | |
1617 | case "(($ac_try" in | |
1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1619 | *) ac_try_echo=$ac_try;; | |
1620 | esac | |
1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1622 | $as_echo "$ac_try_echo"; } >&5 | |
1623 | (eval "$ac_compile") 2>conftest.err | |
1624 | ac_status=$? | |
1625 | if test -s conftest.err; then | |
1626 | grep -v '^ *+' conftest.err >conftest.er1 | |
1627 | cat conftest.er1 >&5 | |
1628 | mv -f conftest.er1 conftest.err | |
1629 | fi | |
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1631 | test $ac_status = 0; } && { | |
1632 | test -z "$ac_c_werror_flag" || | |
1633 | test ! -s conftest.err | |
1634 | } && test -s conftest.$ac_objext; then : | |
1635 | ac_retval=0 | |
1636 | else | |
1637 | $as_echo "$as_me: failed program was:" >&5 | |
1638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1639 | |
81ecdfbb RW |
1640 | ac_retval=1 |
1641 | fi | |
1642 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1643 | return $ac_retval | |
bec39cab | 1644 | |
81ecdfbb | 1645 | } # ac_fn_c_try_compile |
bec39cab | 1646 | |
81ecdfbb RW |
1647 | # ac_fn_c_try_cpp LINENO |
1648 | # ---------------------- | |
1649 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1650 | ac_fn_c_try_cpp () | |
1651 | { | |
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1654 | case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1661 | ac_status=$? | |
1662 | if test -s conftest.err; then | |
1663 | grep -v '^ *+' conftest.err >conftest.er1 | |
1664 | cat conftest.er1 >&5 | |
1665 | mv -f conftest.er1 conftest.err | |
1666 | fi | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; } >/dev/null && { | |
1669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1670 | test ! -s conftest.err | |
1671 | }; then : | |
1672 | ac_retval=0 | |
1673 | else | |
1674 | $as_echo "$as_me: failed program was:" >&5 | |
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1676 | |
81ecdfbb RW |
1677 | ac_retval=1 |
1678 | fi | |
1679 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1680 | return $ac_retval | |
bec39cab | 1681 | |
81ecdfbb RW |
1682 | } # ac_fn_c_try_cpp |
1683 | ||
1684 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1685 | # ------------------------------------------------------- | |
1686 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1687 | # the include files in INCLUDES and setting the cache variable VAR | |
1688 | # accordingly. | |
1689 | ac_fn_c_check_header_mongrel () | |
1690 | { | |
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1694 | $as_echo_n "checking for $2... " >&6; } | |
1695 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1696 | $as_echo_n "(cached) " >&6 | |
1697 | fi | |
1698 | eval ac_res=\$$3 | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1700 | $as_echo "$ac_res" >&6; } | |
1701 | else | |
1702 | # Is the header compilable? | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1704 | $as_echo_n "checking $2 usability... " >&6; } | |
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1706 | /* end confdefs.h. */ | |
1707 | $4 | |
1708 | #include <$2> | |
1709 | _ACEOF | |
1710 | if ac_fn_c_try_compile "$LINENO"; then : | |
1711 | ac_header_compiler=yes | |
1712 | else | |
1713 | ac_header_compiler=no | |
1714 | fi | |
1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1717 | $as_echo "$ac_header_compiler" >&6; } | |
1718 | ||
1719 | # Is the header present? | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1721 | $as_echo_n "checking $2 presence... " >&6; } | |
1722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1723 | /* end confdefs.h. */ | |
1724 | #include <$2> | |
1725 | _ACEOF | |
1726 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1727 | ac_header_preproc=yes | |
1728 | else | |
1729 | ac_header_preproc=no | |
1730 | fi | |
1731 | rm -f conftest.err conftest.$ac_ext | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1733 | $as_echo "$ac_header_preproc" >&6; } | |
1734 | ||
1735 | # So? What about this header? | |
1736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1737 | yes:no: ) | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1739 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1741 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1742 | ;; | |
1743 | no:yes:* ) | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1745 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1747 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1749 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1751 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1753 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1754 | ;; | |
1755 | esac | |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1757 | $as_echo_n "checking for $2... " >&6; } | |
1758 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1759 | $as_echo_n "(cached) " >&6 | |
1760 | else | |
1761 | eval "$3=\$ac_header_compiler" | |
1762 | fi | |
1763 | eval ac_res=\$$3 | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1765 | $as_echo "$ac_res" >&6; } | |
1766 | fi | |
1767 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1768 | ||
1769 | } # ac_fn_c_check_header_mongrel | |
1770 | ||
1771 | # ac_fn_c_try_run LINENO | |
1772 | # ---------------------- | |
1773 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1774 | # that executables *can* be run. | |
1775 | ac_fn_c_try_run () | |
1776 | { | |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 | if { { ac_try="$ac_link" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_link") 2>&5 | |
1786 | ac_status=$? | |
1787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1788 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1789 | { { case "(($ac_try" in | |
1790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1791 | *) ac_try_echo=$ac_try;; | |
1792 | esac | |
1793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1794 | $as_echo "$ac_try_echo"; } >&5 | |
1795 | (eval "$ac_try") 2>&5 | |
1796 | ac_status=$? | |
1797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1798 | test $ac_status = 0; }; }; then : | |
1799 | ac_retval=0 | |
1800 | else | |
1801 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1802 | $as_echo "$as_me: failed program was:" >&5 | |
1803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1804 | ||
1805 | ac_retval=$ac_status | |
1806 | fi | |
1807 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1809 | return $ac_retval | |
1810 | ||
1811 | } # ac_fn_c_try_run | |
1812 | ||
1813 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1814 | # ------------------------------------------------------- | |
1815 | # Tests whether HEADER exists and can be compiled using the include files in | |
1816 | # INCLUDES, setting the cache variable VAR accordingly. | |
1817 | ac_fn_c_check_header_compile () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1821 | $as_echo_n "checking for $2... " >&6; } | |
1822 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1823 | $as_echo_n "(cached) " >&6 | |
1824 | else | |
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1826 | /* end confdefs.h. */ | |
1827 | $4 | |
1828 | #include <$2> | |
1829 | _ACEOF | |
1830 | if ac_fn_c_try_compile "$LINENO"; then : | |
1831 | eval "$3=yes" | |
1832 | else | |
1833 | eval "$3=no" | |
1834 | fi | |
1835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1836 | fi | |
1837 | eval ac_res=\$$3 | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1839 | $as_echo "$ac_res" >&6; } | |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1841 | ||
1842 | } # ac_fn_c_check_header_compile | |
1843 | ||
1844 | # ac_fn_c_try_link LINENO | |
1845 | # ----------------------- | |
1846 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1847 | ac_fn_c_try_link () | |
1848 | { | |
1849 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1851 | if { { ac_try="$ac_link" | |
1852 | case "(($ac_try" in | |
1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1854 | *) ac_try_echo=$ac_try;; | |
1855 | esac | |
1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1857 | $as_echo "$ac_try_echo"; } >&5 | |
1858 | (eval "$ac_link") 2>conftest.err | |
1859 | ac_status=$? | |
1860 | if test -s conftest.err; then | |
1861 | grep -v '^ *+' conftest.err >conftest.er1 | |
1862 | cat conftest.er1 >&5 | |
1863 | mv -f conftest.er1 conftest.err | |
1864 | fi | |
1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1866 | test $ac_status = 0; } && { | |
1867 | test -z "$ac_c_werror_flag" || | |
1868 | test ! -s conftest.err | |
1869 | } && test -s conftest$ac_exeext && { | |
1870 | test "$cross_compiling" = yes || | |
1871 | $as_test_x conftest$ac_exeext | |
1872 | }; then : | |
1873 | ac_retval=0 | |
1874 | else | |
1875 | $as_echo "$as_me: failed program was:" >&5 | |
1876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1877 | ||
1878 | ac_retval=1 | |
1879 | fi | |
1880 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1881 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1882 | # interfere with the next link command; also delete a directory that is | |
1883 | # left behind by Apple's compiler. We do this before executing the actions. | |
1884 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1885 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1886 | return $ac_retval | |
1887 | ||
1888 | } # ac_fn_c_try_link | |
1889 | ||
1890 | # ac_fn_c_check_func LINENO FUNC VAR | |
1891 | # ---------------------------------- | |
1892 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1893 | ac_fn_c_check_func () | |
1894 | { | |
1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1897 | $as_echo_n "checking for $2... " >&6; } | |
1898 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1899 | $as_echo_n "(cached) " >&6 | |
1900 | else | |
1901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1902 | /* end confdefs.h. */ | |
1903 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1905 | #define $2 innocuous_$2 | |
1906 | ||
1907 | /* System header to define __stub macros and hopefully few prototypes, | |
1908 | which can conflict with char $2 (); below. | |
1909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1910 | <limits.h> exists even on freestanding compilers. */ | |
1911 | ||
1912 | #ifdef __STDC__ | |
1913 | # include <limits.h> | |
1914 | #else | |
1915 | # include <assert.h> | |
1916 | #endif | |
1917 | ||
1918 | #undef $2 | |
1919 | ||
1920 | /* Override any GCC internal prototype to avoid an error. | |
1921 | Use char because int might match the return type of a GCC | |
1922 | builtin and then its argument prototype would still apply. */ | |
1923 | #ifdef __cplusplus | |
1924 | extern "C" | |
1925 | #endif | |
1926 | char $2 (); | |
1927 | /* The GNU C library defines this for functions which it implements | |
1928 | to always fail with ENOSYS. Some functions are actually named | |
1929 | something starting with __ and the normal name is an alias. */ | |
1930 | #if defined __stub_$2 || defined __stub___$2 | |
1931 | choke me | |
1932 | #endif | |
1933 | ||
1934 | int | |
1935 | main () | |
1936 | { | |
1937 | return $2 (); | |
1938 | ; | |
1939 | return 0; | |
1940 | } | |
1941 | _ACEOF | |
1942 | if ac_fn_c_try_link "$LINENO"; then : | |
1943 | eval "$3=yes" | |
1944 | else | |
1945 | eval "$3=no" | |
1946 | fi | |
1947 | rm -f core conftest.err conftest.$ac_objext \ | |
1948 | conftest$ac_exeext conftest.$ac_ext | |
1949 | fi | |
1950 | eval ac_res=\$$3 | |
1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1952 | $as_echo "$ac_res" >&6; } | |
1953 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1954 | ||
1955 | } # ac_fn_c_check_func | |
1956 | ||
1957 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1958 | # ------------------------------------ | |
1959 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1960 | ac_fn_c_check_decl () | |
1961 | { | |
1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
0fb4aa4b PA |
1963 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1964 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1966 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1967 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1968 | $as_echo_n "(cached) " >&6 | |
1969 | else | |
1970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1971 | /* end confdefs.h. */ | |
1972 | $4 | |
1973 | int | |
1974 | main () | |
1975 | { | |
0fb4aa4b PA |
1976 | #ifndef $as_decl_name |
1977 | #ifdef __cplusplus | |
1978 | (void) $as_decl_use; | |
1979 | #else | |
1980 | (void) $as_decl_name; | |
1981 | #endif | |
81ecdfbb RW |
1982 | #endif |
1983 | ||
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | if ac_fn_c_try_compile "$LINENO"; then : | |
1989 | eval "$3=yes" | |
1990 | else | |
1991 | eval "$3=no" | |
1992 | fi | |
1993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1994 | fi | |
1995 | eval ac_res=\$$3 | |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1997 | $as_echo "$ac_res" >&6; } | |
1998 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1999 | ||
2000 | } # ac_fn_c_check_decl | |
2001 | ||
2002 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2003 | # ------------------------------------------- | |
2004 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2005 | # variable VAR accordingly. | |
2006 | ac_fn_c_check_type () | |
2007 | { | |
2008 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2010 | $as_echo_n "checking for $2... " >&6; } | |
2011 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2012 | $as_echo_n "(cached) " >&6 | |
2013 | else | |
2014 | eval "$3=no" | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | $4 | |
2018 | int | |
2019 | main () | |
2020 | { | |
2021 | if (sizeof ($2)) | |
2022 | return 0; | |
2023 | ; | |
2024 | return 0; | |
2025 | } | |
2026 | _ACEOF | |
2027 | if ac_fn_c_try_compile "$LINENO"; then : | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2029 | /* end confdefs.h. */ | |
2030 | $4 | |
2031 | int | |
2032 | main () | |
2033 | { | |
2034 | if (sizeof (($2))) | |
2035 | return 0; | |
2036 | ; | |
2037 | return 0; | |
2038 | } | |
2039 | _ACEOF | |
2040 | if ac_fn_c_try_compile "$LINENO"; then : | |
2041 | ||
2042 | else | |
2043 | eval "$3=yes" | |
2044 | fi | |
2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2046 | fi | |
2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2048 | fi | |
2049 | eval ac_res=\$$3 | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2051 | $as_echo "$ac_res" >&6; } | |
2052 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2053 | ||
2054 | } # ac_fn_c_check_type | |
c9a1864a YQ |
2055 | |
2056 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2057 | # -------------------------------------------- | |
2058 | # Tries to find the compile-time value of EXPR in a program that includes | |
2059 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2060 | # computed | |
2061 | ac_fn_c_compute_int () | |
2062 | { | |
2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2064 | if test "$cross_compiling" = yes; then | |
2065 | # Depending upon the size, compute the lo and hi bounds. | |
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 | /* end confdefs.h. */ | |
2068 | $4 | |
2069 | int | |
2070 | main () | |
2071 | { | |
2072 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2073 | test_array [0] = 0 | |
2074 | ||
2075 | ; | |
2076 | return 0; | |
2077 | } | |
2078 | _ACEOF | |
2079 | if ac_fn_c_try_compile "$LINENO"; then : | |
2080 | ac_lo=0 ac_mid=0 | |
2081 | while :; do | |
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2083 | /* end confdefs.h. */ | |
2084 | $4 | |
2085 | int | |
2086 | main () | |
2087 | { | |
2088 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2089 | test_array [0] = 0 | |
2090 | ||
2091 | ; | |
2092 | return 0; | |
2093 | } | |
2094 | _ACEOF | |
2095 | if ac_fn_c_try_compile "$LINENO"; then : | |
2096 | ac_hi=$ac_mid; break | |
2097 | else | |
2098 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2099 | if test $ac_lo -le $ac_mid; then | |
2100 | ac_lo= ac_hi= | |
2101 | break | |
2102 | fi | |
2103 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2104 | fi | |
2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2106 | done | |
2107 | else | |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2109 | /* end confdefs.h. */ | |
2110 | $4 | |
2111 | int | |
2112 | main () | |
2113 | { | |
2114 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2115 | test_array [0] = 0 | |
2116 | ||
2117 | ; | |
2118 | return 0; | |
2119 | } | |
2120 | _ACEOF | |
2121 | if ac_fn_c_try_compile "$LINENO"; then : | |
2122 | ac_hi=-1 ac_mid=-1 | |
2123 | while :; do | |
2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2125 | /* end confdefs.h. */ | |
2126 | $4 | |
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2131 | test_array [0] = 0 | |
2132 | ||
2133 | ; | |
2134 | return 0; | |
2135 | } | |
2136 | _ACEOF | |
2137 | if ac_fn_c_try_compile "$LINENO"; then : | |
2138 | ac_lo=$ac_mid; break | |
2139 | else | |
2140 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2141 | if test $ac_mid -le $ac_hi; then | |
2142 | ac_lo= ac_hi= | |
2143 | break | |
2144 | fi | |
2145 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2146 | fi | |
2147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2148 | done | |
2149 | else | |
2150 | ac_lo= ac_hi= | |
2151 | fi | |
2152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 | fi | |
2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2155 | # Binary search between lo and hi bounds. | |
2156 | while test "x$ac_lo" != "x$ac_hi"; do | |
2157 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2159 | /* end confdefs.h. */ | |
2160 | $4 | |
2161 | int | |
2162 | main () | |
2163 | { | |
2164 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2165 | test_array [0] = 0 | |
2166 | ||
2167 | ; | |
2168 | return 0; | |
2169 | } | |
2170 | _ACEOF | |
2171 | if ac_fn_c_try_compile "$LINENO"; then : | |
2172 | ac_hi=$ac_mid | |
2173 | else | |
2174 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2175 | fi | |
2176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2177 | done | |
2178 | case $ac_lo in #(( | |
2179 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2180 | '') ac_retval=1 ;; | |
2181 | esac | |
2182 | else | |
2183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2184 | /* end confdefs.h. */ | |
2185 | $4 | |
2186 | static long int longval () { return $2; } | |
2187 | static unsigned long int ulongval () { return $2; } | |
2188 | #include <stdio.h> | |
2189 | #include <stdlib.h> | |
2190 | int | |
2191 | main () | |
2192 | { | |
2193 | ||
2194 | FILE *f = fopen ("conftest.val", "w"); | |
2195 | if (! f) | |
2196 | return 1; | |
2197 | if (($2) < 0) | |
2198 | { | |
2199 | long int i = longval (); | |
2200 | if (i != ($2)) | |
2201 | return 1; | |
2202 | fprintf (f, "%ld", i); | |
2203 | } | |
2204 | else | |
2205 | { | |
2206 | unsigned long int i = ulongval (); | |
2207 | if (i != ($2)) | |
2208 | return 1; | |
2209 | fprintf (f, "%lu", i); | |
2210 | } | |
2211 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2212 | on some platforms. */ | |
2213 | return ferror (f) || fclose (f) != 0; | |
2214 | ||
2215 | ; | |
2216 | return 0; | |
2217 | } | |
2218 | _ACEOF | |
2219 | if ac_fn_c_try_run "$LINENO"; then : | |
2220 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2221 | else | |
2222 | ac_retval=1 | |
2223 | fi | |
2224 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2225 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2226 | rm -f conftest.val | |
2227 | ||
2228 | fi | |
2229 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2230 | return $ac_retval | |
2231 | ||
2232 | } # ac_fn_c_compute_int | |
81ecdfbb RW |
2233 | cat >config.log <<_ACEOF |
2234 | This file contains any messages produced by compilers while | |
2235 | running configure, to aid debugging if configure makes a mistake. | |
2236 | ||
2237 | It was created by $as_me, which was | |
2238 | generated by GNU Autoconf 2.64. Invocation command line was | |
2239 | ||
2240 | $ $0 $@ | |
2241 | ||
2242 | _ACEOF | |
2243 | exec 5>>config.log | |
2244 | { | |
2245 | cat <<_ASUNAME | |
2246 | ## --------- ## | |
2247 | ## Platform. ## | |
2248 | ## --------- ## | |
2249 | ||
2250 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2251 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2252 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2253 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2254 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2255 | ||
2256 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2257 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2258 | ||
2259 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2260 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2261 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2262 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2263 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2264 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2265 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2266 | ||
2267 | _ASUNAME | |
2268 | ||
2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2270 | for as_dir in $PATH | |
2271 | do | |
2272 | IFS=$as_save_IFS | |
2273 | test -z "$as_dir" && as_dir=. | |
2274 | $as_echo "PATH: $as_dir" | |
2275 | done | |
2276 | IFS=$as_save_IFS | |
2277 | ||
2278 | } >&5 | |
2279 | ||
2280 | cat >&5 <<_ACEOF | |
2281 | ||
2282 | ||
2283 | ## ----------- ## | |
2284 | ## Core tests. ## | |
2285 | ## ----------- ## | |
bec39cab AC |
2286 | |
2287 | _ACEOF | |
2288 | ||
2289 | ||
2290 | # Keep a trace of the command line. | |
2291 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2292 | # Strip out --silent because we don't want to record it for future runs. | |
2293 | # Also quote any args containing shell meta-characters. | |
2294 | # Make two passes to allow for proper duplicate-argument suppression. | |
2295 | ac_configure_args= | |
2296 | ac_configure_args0= | |
2297 | ac_configure_args1= | |
bec39cab AC |
2298 | ac_must_keep_next=false |
2299 | for ac_pass in 1 2 | |
2300 | do | |
2301 | for ac_arg | |
2302 | do | |
2303 | case $ac_arg in | |
2304 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2306 | | -silent | --silent | --silen | --sile | --sil) | |
2307 | continue ;; | |
81ecdfbb RW |
2308 | *\'*) |
2309 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
2310 | esac |
2311 | case $ac_pass in | |
81ecdfbb | 2312 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bec39cab | 2313 | 2) |
81ecdfbb | 2314 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bec39cab AC |
2315 | if test $ac_must_keep_next = true; then |
2316 | ac_must_keep_next=false # Got value, back to normal. | |
2317 | else | |
2318 | case $ac_arg in | |
2319 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2320 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2321 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2322 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2323 | case "$ac_configure_args0 " in | |
2324 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2325 | esac | |
2326 | ;; | |
2327 | -* ) ac_must_keep_next=true ;; | |
2328 | esac | |
2329 | fi | |
81ecdfbb | 2330 | as_fn_append ac_configure_args " '$ac_arg'" |
bec39cab AC |
2331 | ;; |
2332 | esac | |
2333 | done | |
2334 | done | |
81ecdfbb RW |
2335 | { ac_configure_args0=; unset ac_configure_args0;} |
2336 | { ac_configure_args1=; unset ac_configure_args1;} | |
bec39cab AC |
2337 | |
2338 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2339 | # config.log. We remove comments because anyway the quotes in there | |
2340 | # would cause problems or look ugly. | |
81ecdfbb RW |
2341 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2342 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bec39cab AC |
2343 | trap 'exit_status=$? |
2344 | # Save into config.log some information that might help in debugging. | |
2345 | { | |
2346 | echo | |
2347 | ||
2348 | cat <<\_ASBOX | |
2349 | ## ---------------- ## | |
2350 | ## Cache variables. ## | |
2351 | ## ---------------- ## | |
2352 | _ASBOX | |
2353 | echo | |
2354 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2355 | ( |
2356 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2357 | eval ac_val=\$$ac_var | |
2358 | case $ac_val in #( | |
2359 | *${as_nl}*) | |
2360 | case $ac_var in #( | |
2361 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2362 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2363 | esac | |
2364 | case $ac_var in #( | |
2365 | _ | IFS | as_nl) ;; #( | |
2366 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2367 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2368 | esac ;; | |
2369 | esac | |
2370 | done | |
bec39cab | 2371 | (set) 2>&1 | |
81ecdfbb RW |
2372 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2373 | *${as_nl}ac_space=\ *) | |
bec39cab | 2374 | sed -n \ |
81ecdfbb RW |
2375 | "s/'\''/'\''\\\\'\'''\''/g; |
2376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2377 | ;; #( | |
bec39cab | 2378 | *) |
81ecdfbb | 2379 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 2380 | ;; |
81ecdfbb RW |
2381 | esac | |
2382 | sort | |
2383 | ) | |
bec39cab AC |
2384 | echo |
2385 | ||
2386 | cat <<\_ASBOX | |
2387 | ## ----------------- ## | |
2388 | ## Output variables. ## | |
2389 | ## ----------------- ## | |
2390 | _ASBOX | |
2391 | echo | |
2392 | for ac_var in $ac_subst_vars | |
2393 | do | |
81ecdfbb RW |
2394 | eval ac_val=\$$ac_var |
2395 | case $ac_val in | |
2396 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2397 | esac | |
2398 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2399 | done | sort |
2400 | echo | |
2401 | ||
2402 | if test -n "$ac_subst_files"; then | |
2403 | cat <<\_ASBOX | |
81ecdfbb RW |
2404 | ## ------------------- ## |
2405 | ## File substitutions. ## | |
2406 | ## ------------------- ## | |
bec39cab AC |
2407 | _ASBOX |
2408 | echo | |
2409 | for ac_var in $ac_subst_files | |
2410 | do | |
81ecdfbb RW |
2411 | eval ac_val=\$$ac_var |
2412 | case $ac_val in | |
2413 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2414 | esac | |
2415 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2416 | done | sort |
2417 | echo | |
434c4c77 | 2418 | fi |
bec39cab AC |
2419 | |
2420 | if test -s confdefs.h; then | |
2421 | cat <<\_ASBOX | |
2422 | ## ----------- ## | |
2423 | ## confdefs.h. ## | |
2424 | ## ----------- ## | |
2425 | _ASBOX | |
2426 | echo | |
81ecdfbb | 2427 | cat confdefs.h |
bec39cab AC |
2428 | echo |
2429 | fi | |
2430 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2431 | $as_echo "$as_me: caught signal $ac_signal" |
2432 | $as_echo "$as_me: exit $exit_status" | |
bec39cab | 2433 | } >&5 |
81ecdfbb RW |
2434 | rm -f core *.core core.conftest.* && |
2435 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 2436 | exit $exit_status |
81ecdfbb | 2437 | ' 0 |
bec39cab | 2438 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2439 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bec39cab AC |
2440 | done |
2441 | ac_signal=0 | |
2442 | ||
2443 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2444 | rm -f -r conftest* confdefs.h |
2445 | ||
2446 | $as_echo "/* confdefs.h */" > confdefs.h | |
bec39cab AC |
2447 | |
2448 | # Predefined preprocessor variables. | |
2449 | ||
2450 | cat >>confdefs.h <<_ACEOF | |
2451 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2452 | _ACEOF | |
2453 | ||
bec39cab AC |
2454 | cat >>confdefs.h <<_ACEOF |
2455 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2456 | _ACEOF | |
2457 | ||
bec39cab AC |
2458 | cat >>confdefs.h <<_ACEOF |
2459 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2460 | _ACEOF | |
2461 | ||
bec39cab AC |
2462 | cat >>confdefs.h <<_ACEOF |
2463 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2464 | _ACEOF | |
2465 | ||
bec39cab AC |
2466 | cat >>confdefs.h <<_ACEOF |
2467 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2468 | _ACEOF | |
2469 | ||
81ecdfbb RW |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_URL "$PACKAGE_URL" | |
2472 | _ACEOF | |
2473 | ||
bec39cab AC |
2474 | |
2475 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2476 | # Prefer an explicitly selected file to automatically selected ones. |
2477 | ac_site_file1=NONE | |
2478 | ac_site_file2=NONE | |
2479 | if test -n "$CONFIG_SITE"; then | |
2480 | ac_site_file1=$CONFIG_SITE | |
2481 | elif test "x$prefix" != xNONE; then | |
2482 | ac_site_file1=$prefix/share/config.site | |
2483 | ac_site_file2=$prefix/etc/config.site | |
2484 | else | |
2485 | ac_site_file1=$ac_default_prefix/share/config.site | |
2486 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d6e9fb05 | 2487 | fi |
81ecdfbb RW |
2488 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2489 | do | |
2490 | test "x$ac_site_file" = xNONE && continue | |
d6e9fb05 | 2491 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2493 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bec39cab | 2494 | sed 's/^/| /' "$ac_site_file" >&5 |
d6e9fb05 JK |
2495 | . "$ac_site_file" |
2496 | fi | |
2497 | done | |
2498 | ||
2499 | if test -r "$cache_file"; then | |
bec39cab AC |
2500 | # Some versions of bash will fail to source /dev/null (special |
2501 | # files actually), so we avoid doing that. | |
2502 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2504 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bec39cab | 2505 | case $cache_file in |
81ecdfbb RW |
2506 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2507 | *) . "./$cache_file";; | |
bec39cab AC |
2508 | esac |
2509 | fi | |
d6e9fb05 | 2510 | else |
81ecdfbb RW |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2512 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bec39cab | 2513 | >$cache_file |
d6e9fb05 JK |
2514 | fi |
2515 | ||
c9a1864a YQ |
2516 | gl_header_list="$gl_header_list sys/mman.h" |
2517 | gl_func_list="$gl_func_list mprotect" | |
2518 | gl_func_list="$gl_func_list memchr" | |
2519 | gl_header_list="$gl_header_list stddef.h" | |
2520 | gl_header_list="$gl_header_list stdint.h" | |
2521 | gl_header_list="$gl_header_list wchar.h" | |
2522 | gl_header_list="$gl_header_list string.h" | |
bec39cab AC |
2523 | # Check that the precious variables saved in the cache have kept the same |
2524 | # value. | |
2525 | ac_cache_corrupted=false | |
81ecdfbb | 2526 | for ac_var in $ac_precious_vars; do |
bec39cab AC |
2527 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2528 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2529 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2530 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bec39cab AC |
2531 | case $ac_old_set,$ac_new_set in |
2532 | set,) | |
81ecdfbb RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2534 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bec39cab AC |
2535 | ac_cache_corrupted=: ;; |
2536 | ,set) | |
81ecdfbb RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2538 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bec39cab AC |
2539 | ac_cache_corrupted=: ;; |
2540 | ,);; | |
2541 | *) | |
2542 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2543 | # differences in whitespace do not lead to failure. |
2544 | ac_old_val_w=`echo x $ac_old_val` | |
2545 | ac_new_val_w=`echo x $ac_new_val` | |
2546 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2548 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2549 | ac_cache_corrupted=: | |
2550 | else | |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2552 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2553 | eval $ac_var=\$ac_old_val | |
2554 | fi | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2556 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2558 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
2559 | fi;; |
2560 | esac | |
2561 | # Pass precious variables to config.status. | |
2562 | if test "$ac_new_set" = set; then | |
2563 | case $ac_new_val in | |
81ecdfbb | 2564 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bec39cab AC |
2565 | *) ac_arg=$ac_var=$ac_new_val ;; |
2566 | esac | |
2567 | case " $ac_configure_args " in | |
2568 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2569 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bec39cab | 2570 | esac |
d6e9fb05 | 2571 | fi |
bec39cab AC |
2572 | done |
2573 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2577 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2578 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
d6e9fb05 | 2579 | fi |
81ecdfbb RW |
2580 | ## -------------------- ## |
2581 | ## Main body of script. ## | |
2582 | ## -------------------- ## | |
d6e9fb05 | 2583 | |
dae5f5cf DJ |
2584 | ac_ext=c |
2585 | ac_cpp='$CPP $CPPFLAGS' | |
2586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2589 | ||
d6e9fb05 | 2590 | |
84563040 | 2591 | |
bec39cab AC |
2592 | |
2593 | ||
81ecdfbb | 2594 | ac_config_headers="$ac_config_headers config.h:config.in" |
bec39cab AC |
2595 | |
2596 | ||
e28b3332 | 2597 | |
c9a1864a YQ |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2599 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2600 | # Check whether --enable-maintainer-mode was given. | |
2601 | if test "${enable_maintainer_mode+set}" = set; then : | |
2602 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2603 | else | |
2604 | USE_MAINTAINER_MODE=no | |
2605 | fi | |
2606 | ||
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2608 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2609 | if test $USE_MAINTAINER_MODE = yes; then | |
2610 | MAINTAINER_MODE_TRUE= | |
2611 | MAINTAINER_MODE_FALSE='#' | |
2612 | else | |
2613 | MAINTAINER_MODE_TRUE='#' | |
2614 | MAINTAINER_MODE_FALSE= | |
2615 | fi | |
2616 | ||
2617 | MAINT=$MAINTAINER_MODE_TRUE | |
2618 | ||
2619 | ||
2620 | ||
bec39cab AC |
2621 | ac_ext=c |
2622 | ac_cpp='$CPP $CPPFLAGS' | |
2623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2626 | if test -n "$ac_tool_prefix"; then | |
2627 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2628 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2630 | $as_echo_n "checking for $ac_word... " >&6; } | |
2631 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2632 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2633 | else |
2634 | if test -n "$CC"; then | |
2635 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2636 | else | |
bec39cab AC |
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2638 | for as_dir in $PATH | |
2639 | do | |
2640 | IFS=$as_save_IFS | |
2641 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2642 | for ac_exec_ext in '' $ac_executable_extensions; do |
2643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2644 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2646 | break 2 |
2647 | fi | |
2648 | done | |
81ecdfbb RW |
2649 | done |
2650 | IFS=$as_save_IFS | |
bec39cab | 2651 | |
84563040 DJ |
2652 | fi |
2653 | fi | |
bec39cab | 2654 | CC=$ac_cv_prog_CC |
84563040 | 2655 | if test -n "$CC"; then |
81ecdfbb RW |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2657 | $as_echo "$CC" >&6; } | |
84563040 | 2658 | else |
81ecdfbb RW |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2660 | $as_echo "no" >&6; } | |
84563040 DJ |
2661 | fi |
2662 | ||
81ecdfbb | 2663 | |
bec39cab AC |
2664 | fi |
2665 | if test -z "$ac_cv_prog_CC"; then | |
2666 | ac_ct_CC=$CC | |
2667 | # Extract the first word of "gcc", so it can be a program name with args. | |
2668 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2670 | $as_echo_n "checking for $ac_word... " >&6; } | |
2671 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2672 | $as_echo_n "(cached) " >&6 | |
84563040 | 2673 | else |
bec39cab AC |
2674 | if test -n "$ac_ct_CC"; then |
2675 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
84563040 | 2676 | else |
bec39cab AC |
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2678 | for as_dir in $PATH | |
2679 | do | |
2680 | IFS=$as_save_IFS | |
2681 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2682 | for ac_exec_ext in '' $ac_executable_extensions; do |
2683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2684 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2686 | break 2 |
2687 | fi | |
2688 | done | |
81ecdfbb RW |
2689 | done |
2690 | IFS=$as_save_IFS | |
bec39cab AC |
2691 | |
2692 | fi | |
2693 | fi | |
2694 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2695 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2697 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2698 | else |
81ecdfbb RW |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2700 | $as_echo "no" >&6; } | |
bec39cab AC |
2701 | fi |
2702 | ||
81ecdfbb RW |
2703 | if test "x$ac_ct_CC" = x; then |
2704 | CC="" | |
2705 | else | |
2706 | case $cross_compiling:$ac_tool_warned in | |
2707 | yes:) | |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2710 | ac_tool_warned=yes ;; | |
2711 | esac | |
2712 | CC=$ac_ct_CC | |
2713 | fi | |
bec39cab AC |
2714 | else |
2715 | CC="$ac_cv_prog_CC" | |
2716 | fi | |
2717 | ||
2718 | if test -z "$CC"; then | |
81ecdfbb RW |
2719 | if test -n "$ac_tool_prefix"; then |
2720 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 2721 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2723 | $as_echo_n "checking for $ac_word... " >&6; } | |
2724 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2725 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2726 | else |
2727 | if test -n "$CC"; then | |
2728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2729 | else | |
2730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2731 | for as_dir in $PATH | |
2732 | do | |
2733 | IFS=$as_save_IFS | |
2734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2735 | for ac_exec_ext in '' $ac_executable_extensions; do |
2736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2737 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2739 | break 2 |
2740 | fi | |
2741 | done | |
81ecdfbb RW |
2742 | done |
2743 | IFS=$as_save_IFS | |
bec39cab AC |
2744 | |
2745 | fi | |
2746 | fi | |
2747 | CC=$ac_cv_prog_CC | |
2748 | if test -n "$CC"; then | |
81ecdfbb RW |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2750 | $as_echo "$CC" >&6; } | |
bec39cab | 2751 | else |
81ecdfbb RW |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2753 | $as_echo "no" >&6; } | |
bec39cab AC |
2754 | fi |
2755 | ||
81ecdfbb RW |
2756 | |
2757 | fi | |
dae5f5cf | 2758 | fi |
81ecdfbb | 2759 | if test -z "$CC"; then |
dae5f5cf DJ |
2760 | # Extract the first word of "cc", so it can be a program name with args. |
2761 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2763 | $as_echo_n "checking for $ac_word... " >&6; } | |
2764 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2765 | $as_echo_n "(cached) " >&6 | |
dae5f5cf | 2766 | else |
81ecdfbb RW |
2767 | if test -n "$CC"; then |
2768 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dae5f5cf | 2769 | else |
81ecdfbb | 2770 | ac_prog_rejected=no |
dae5f5cf DJ |
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2772 | for as_dir in $PATH | |
2773 | do | |
2774 | IFS=$as_save_IFS | |
2775 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2776 | for ac_exec_ext in '' $ac_executable_extensions; do |
2777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2778 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2779 | ac_prog_rejected=yes | |
2780 | continue | |
2781 | fi | |
2782 | ac_cv_prog_CC="cc" | |
2783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
dae5f5cf | 2784 | break 2 |
b80864fb | 2785 | fi |
dae5f5cf | 2786 | done |
81ecdfbb RW |
2787 | done |
2788 | IFS=$as_save_IFS | |
bec39cab | 2789 | |
84563040 DJ |
2790 | if test $ac_prog_rejected = yes; then |
2791 | # We found a bogon in the path, so make sure we never use it. | |
2792 | set dummy $ac_cv_prog_CC | |
2793 | shift | |
bec39cab | 2794 | if test $# != 0; then |
84563040 DJ |
2795 | # We chose a different compiler from the bogus one. |
2796 | # However, it has the same basename, so the bogon will be chosen | |
2797 | # first if we set CC to just the basename; use the full file name. | |
2798 | shift | |
bec39cab | 2799 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
84563040 DJ |
2800 | fi |
2801 | fi | |
2802 | fi | |
2803 | fi | |
bec39cab | 2804 | CC=$ac_cv_prog_CC |
84563040 | 2805 | if test -n "$CC"; then |
81ecdfbb RW |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2807 | $as_echo "$CC" >&6; } | |
84563040 | 2808 | else |
81ecdfbb RW |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2810 | $as_echo "no" >&6; } | |
84563040 DJ |
2811 | fi |
2812 | ||
81ecdfbb | 2813 | |
bec39cab AC |
2814 | fi |
2815 | if test -z "$CC"; then | |
2816 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2817 | for ac_prog in cl.exe |
bec39cab AC |
2818 | do |
2819 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2820 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2822 | $as_echo_n "checking for $ac_word... " >&6; } | |
2823 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2824 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2825 | else |
2826 | if test -n "$CC"; then | |
2827 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2828 | else | |
bec39cab AC |
2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2830 | for as_dir in $PATH | |
2831 | do | |
2832 | IFS=$as_save_IFS | |
2833 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2834 | for ac_exec_ext in '' $ac_executable_extensions; do |
2835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2836 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2838 | break 2 |
2839 | fi | |
2840 | done | |
81ecdfbb RW |
2841 | done |
2842 | IFS=$as_save_IFS | |
bec39cab | 2843 | |
84563040 DJ |
2844 | fi |
2845 | fi | |
bec39cab | 2846 | CC=$ac_cv_prog_CC |
84563040 | 2847 | if test -n "$CC"; then |
81ecdfbb RW |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2849 | $as_echo "$CC" >&6; } | |
84563040 | 2850 | else |
81ecdfbb RW |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2852 | $as_echo "no" >&6; } | |
84563040 | 2853 | fi |
bec39cab | 2854 | |
81ecdfbb | 2855 | |
bec39cab AC |
2856 | test -n "$CC" && break |
2857 | done | |
2858 | fi | |
2859 | if test -z "$CC"; then | |
2860 | ac_ct_CC=$CC | |
81ecdfbb | 2861 | for ac_prog in cl.exe |
bec39cab AC |
2862 | do |
2863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2864 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2866 | $as_echo_n "checking for $ac_word... " >&6; } | |
2867 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2868 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2869 | else |
2870 | if test -n "$ac_ct_CC"; then | |
2871 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2872 | else | |
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2874 | for as_dir in $PATH | |
2875 | do | |
2876 | IFS=$as_save_IFS | |
2877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2878 | for ac_exec_ext in '' $ac_executable_extensions; do |
2879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2880 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab | 2882 | break 2 |
84563040 | 2883 | fi |
bec39cab | 2884 | done |
81ecdfbb RW |
2885 | done |
2886 | IFS=$as_save_IFS | |
bec39cab AC |
2887 | |
2888 | fi | |
2889 | fi | |
2890 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2891 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2893 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2894 | else |
81ecdfbb RW |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2896 | $as_echo "no" >&6; } | |
84563040 DJ |
2897 | fi |
2898 | ||
81ecdfbb | 2899 | |
bec39cab AC |
2900 | test -n "$ac_ct_CC" && break |
2901 | done | |
84563040 | 2902 | |
81ecdfbb RW |
2903 | if test "x$ac_ct_CC" = x; then |
2904 | CC="" | |
2905 | else | |
2906 | case $cross_compiling:$ac_tool_warned in | |
2907 | yes:) | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2910 | ac_tool_warned=yes ;; | |
2911 | esac | |
2912 | CC=$ac_ct_CC | |
2913 | fi | |
bec39cab AC |
2914 | fi |
2915 | ||
2916 | fi | |
2917 | ||
2918 | ||
81ecdfbb RW |
2919 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2920 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2921 | as_fn_error "no acceptable C compiler found in \$PATH | |
2922 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
2923 | |
2924 | # Provide some information about the compiler. | |
81ecdfbb RW |
2925 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2926 | set X $ac_compile | |
2927 | ac_compiler=$2 | |
2928 | for ac_option in --version -v -V -qversion; do | |
2929 | { { ac_try="$ac_compiler $ac_option >&5" | |
2930 | case "(($ac_try" in | |
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2932 | *) ac_try_echo=$ac_try;; | |
2933 | esac | |
2934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2935 | $as_echo "$ac_try_echo"; } >&5 | |
2936 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
bec39cab | 2937 | ac_status=$? |
81ecdfbb RW |
2938 | if test -s conftest.err; then |
2939 | sed '10a\ | |
2940 | ... rest of stderr output deleted ... | |
2941 | 10q' conftest.err >conftest.er1 | |
2942 | cat conftest.er1 >&5 | |
2943 | rm -f conftest.er1 conftest.err | |
2944 | fi | |
2945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2946 | test $ac_status = 0; } | |
2947 | done | |
bec39cab | 2948 | |
81ecdfbb | 2949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2950 | /* end confdefs.h. */ |
2951 | ||
2952 | int | |
2953 | main () | |
2954 | { | |
2955 | ||
2956 | ; | |
2957 | return 0; | |
2958 | } | |
2959 | _ACEOF | |
2960 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2961 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
bec39cab AC |
2962 | # Try to create an executable without -o first, disregard a.out. |
2963 | # It will help us diagnose broken compilers, and finding out an intuition | |
2964 | # of exeext. | |
81ecdfbb RW |
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2966 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2967 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2968 | ||
2969 | # The possible output files: | |
2970 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2971 | ||
2972 | ac_rmfiles= | |
2973 | for ac_file in $ac_files | |
2974 | do | |
2975 | case $ac_file in | |
2976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2977 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2978 | esac | |
2979 | done | |
2980 | rm -f $ac_rmfiles | |
2981 | ||
2982 | if { { ac_try="$ac_link_default" | |
2983 | case "(($ac_try" in | |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2985 | *) ac_try_echo=$ac_try;; | |
2986 | esac | |
2987 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2988 | $as_echo "$ac_try_echo"; } >&5 | |
2989 | (eval "$ac_link_default") 2>&5 | |
bec39cab | 2990 | ac_status=$? |
81ecdfbb RW |
2991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2992 | test $ac_status = 0; }; then : | |
2993 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2994 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2995 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2996 | # so that the user can short-circuit this test for compilers unknown to | |
2997 | # Autoconf. | |
2998 | for ac_file in $ac_files '' | |
bec39cab AC |
2999 | do |
3000 | test -f "$ac_file" || continue | |
3001 | case $ac_file in | |
81ecdfbb | 3002 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bec39cab AC |
3003 | ;; |
3004 | [ab].out ) | |
3005 | # We found the default executable, but exeext='' is most | |
3006 | # certainly right. | |
3007 | break;; | |
3008 | *.* ) | |
81ecdfbb RW |
3009 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3010 | then :; else | |
3011 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3012 | fi | |
3013 | # We set ac_cv_exeext here because the later test for it is not | |
3014 | # safe: cross compilers may not add the suffix if given an `-o' | |
3015 | # argument, so we may need to know it at that point already. | |
3016 | # Even if this section looks crufty: it has the advantage of | |
3017 | # actually working. | |
bec39cab AC |
3018 | break;; |
3019 | * ) | |
3020 | break;; | |
3021 | esac | |
3022 | done | |
81ecdfbb RW |
3023 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3024 | ||
bec39cab | 3025 | else |
81ecdfbb RW |
3026 | ac_file='' |
3027 | fi | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3029 | $as_echo "$ac_file" >&6; } | |
3030 | if test -z "$ac_file"; then : | |
3031 | $as_echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
3032 | sed 's/^/| /' conftest.$ac_ext >&5 |
3033 | ||
81ecdfbb RW |
3034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3036 | { as_fn_set_status 77 | |
3037 | as_fn_error "C compiler cannot create executables | |
3038 | See \`config.log' for more details." "$LINENO" 5; }; } | |
bec39cab | 3039 | fi |
bec39cab | 3040 | ac_exeext=$ac_cv_exeext |
bec39cab | 3041 | |
81ecdfbb | 3042 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 3043 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3045 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bec39cab AC |
3046 | # If not cross compiling, check that we can run a simple program. |
3047 | if test "$cross_compiling" != yes; then | |
3048 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3049 | { { case "(($ac_try" in |
3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3051 | *) ac_try_echo=$ac_try;; | |
3052 | esac | |
3053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3054 | $as_echo "$ac_try_echo"; } >&5 | |
3055 | (eval "$ac_try") 2>&5 | |
bec39cab | 3056 | ac_status=$? |
81ecdfbb RW |
3057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3058 | test $ac_status = 0; }; }; then | |
bec39cab | 3059 | cross_compiling=no |
84563040 | 3060 | else |
bec39cab AC |
3061 | if test "$cross_compiling" = maybe; then |
3062 | cross_compiling=yes | |
3063 | else | |
81ecdfbb RW |
3064 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3066 | as_fn_error "cannot run C compiled programs. | |
bec39cab | 3067 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3068 | See \`config.log' for more details." "$LINENO" 5; } |
bec39cab | 3069 | fi |
84563040 | 3070 | fi |
84563040 | 3071 | fi |
81ecdfbb RW |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3073 | $as_echo "yes" >&6; } | |
bec39cab | 3074 | |
81ecdfbb | 3075 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
bec39cab | 3076 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3077 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 3078 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3080 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3082 | $as_echo "$cross_compiling" >&6; } | |
3083 | ||
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3085 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3086 | if { { ac_try="$ac_link" | |
3087 | case "(($ac_try" in | |
3088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3089 | *) ac_try_echo=$ac_try;; | |
3090 | esac | |
3091 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3092 | $as_echo "$ac_try_echo"; } >&5 | |
3093 | (eval "$ac_link") 2>&5 | |
bec39cab | 3094 | ac_status=$? |
81ecdfbb RW |
3095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3096 | test $ac_status = 0; }; then : | |
bec39cab AC |
3097 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3098 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3099 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3100 | # `rm'. | |
3101 | for ac_file in conftest.exe conftest conftest.*; do | |
3102 | test -f "$ac_file" || continue | |
3103 | case $ac_file in | |
81ecdfbb | 3104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bec39cab | 3105 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bec39cab AC |
3106 | break;; |
3107 | * ) break;; | |
3108 | esac | |
3109 | done | |
84563040 | 3110 | else |
81ecdfbb RW |
3111 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3113 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3114 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 3115 | fi |
bec39cab | 3116 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3118 | $as_echo "$ac_cv_exeext" >&6; } | |
bec39cab AC |
3119 | |
3120 | rm -f conftest.$ac_ext | |
3121 | EXEEXT=$ac_cv_exeext | |
3122 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3124 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3125 | if test "${ac_cv_objext+set}" = set; then : | |
3126 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3127 | else |
81ecdfbb | 3128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3129 | /* end confdefs.h. */ |
3130 | ||
3131 | int | |
3132 | main () | |
3133 | { | |
3134 | ||
3135 | ; | |
3136 | return 0; | |
3137 | } | |
3138 | _ACEOF | |
3139 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3140 | if { { ac_try="$ac_compile" |
3141 | case "(($ac_try" in | |
3142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3143 | *) ac_try_echo=$ac_try;; | |
3144 | esac | |
3145 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3146 | $as_echo "$ac_try_echo"; } >&5 | |
3147 | (eval "$ac_compile") 2>&5 | |
bec39cab | 3148 | ac_status=$? |
81ecdfbb RW |
3149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3150 | test $ac_status = 0; }; then : | |
3151 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3152 | test -f "$ac_file" || continue; | |
bec39cab | 3153 | case $ac_file in |
81ecdfbb | 3154 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bec39cab AC |
3155 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3156 | break;; | |
3157 | esac | |
3158 | done | |
3159 | else | |
81ecdfbb | 3160 | $as_echo "$as_me: failed program was:" >&5 |
bec39cab AC |
3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
3162 | ||
81ecdfbb RW |
3163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3165 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3166 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 3167 | fi |
bec39cab AC |
3168 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3169 | fi | |
81ecdfbb RW |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3171 | $as_echo "$ac_cv_objext" >&6; } | |
bec39cab AC |
3172 | OBJEXT=$ac_cv_objext |
3173 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3175 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3176 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3177 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3178 | else |
81ecdfbb | 3179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3180 | /* end confdefs.h. */ |
3181 | ||
3182 | int | |
3183 | main () | |
3184 | { | |
3185 | #ifndef __GNUC__ | |
3186 | choke me | |
3187 | #endif | |
84563040 | 3188 | |
bec39cab AC |
3189 | ; |
3190 | return 0; | |
3191 | } | |
3192 | _ACEOF | |
81ecdfbb | 3193 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab | 3194 | ac_compiler_gnu=yes |
84563040 | 3195 | else |
81ecdfbb | 3196 | ac_compiler_gnu=no |
84563040 | 3197 | fi |
81ecdfbb | 3198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 3199 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
84563040 | 3200 | |
bec39cab | 3201 | fi |
81ecdfbb RW |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3203 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3204 | if test $ac_compiler_gnu = yes; then | |
3205 | GCC=yes | |
3206 | else | |
3207 | GCC= | |
3208 | fi | |
bec39cab AC |
3209 | ac_test_CFLAGS=${CFLAGS+set} |
3210 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3212 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3213 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3214 | $as_echo_n "(cached) " >&6 | |
3215 | else | |
3216 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3217 | ac_c_werror_flag=yes | |
3218 | ac_cv_prog_cc_g=no | |
3219 | CFLAGS="-g" | |
3220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab AC |
3221 | /* end confdefs.h. */ |
3222 | ||
3223 | int | |
3224 | main () | |
3225 | { | |
3226 | ||
3227 | ; | |
3228 | return 0; | |
3229 | } | |
3230 | _ACEOF | |
81ecdfbb | 3231 | if ac_fn_c_try_compile "$LINENO"; then : |
84563040 DJ |
3232 | ac_cv_prog_cc_g=yes |
3233 | else | |
81ecdfbb RW |
3234 | CFLAGS="" |
3235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3236 | /* end confdefs.h. */ | |
3237 | ||
3238 | int | |
3239 | main () | |
3240 | { | |
3241 | ||
3242 | ; | |
3243 | return 0; | |
3244 | } | |
3245 | _ACEOF | |
3246 | if ac_fn_c_try_compile "$LINENO"; then : | |
3247 | ||
3248 | else | |
3249 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3250 | CFLAGS="-g" | |
3251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3252 | /* end confdefs.h. */ | |
3253 | ||
3254 | int | |
3255 | main () | |
3256 | { | |
84563040 | 3257 | |
81ecdfbb RW |
3258 | ; |
3259 | return 0; | |
3260 | } | |
3261 | _ACEOF | |
3262 | if ac_fn_c_try_compile "$LINENO"; then : | |
3263 | ac_cv_prog_cc_g=yes | |
3264 | fi | |
3265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84563040 | 3266 | fi |
81ecdfbb | 3267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 3268 | fi |
81ecdfbb RW |
3269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3270 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3271 | fi | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3273 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
84563040 | 3274 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 3275 | CFLAGS=$ac_save_CFLAGS |
84563040 DJ |
3276 | elif test $ac_cv_prog_cc_g = yes; then |
3277 | if test "$GCC" = yes; then | |
3278 | CFLAGS="-g -O2" | |
3279 | else | |
3280 | CFLAGS="-g" | |
3281 | fi | |
3282 | else | |
3283 | if test "$GCC" = yes; then | |
3284 | CFLAGS="-O2" | |
3285 | else | |
3286 | CFLAGS= | |
3287 | fi | |
3288 | fi | |
81ecdfbb RW |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3290 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3291 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3292 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3293 | else |
81ecdfbb | 3294 | ac_cv_prog_cc_c89=no |
bec39cab | 3295 | ac_save_CC=$CC |
81ecdfbb | 3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3297 | /* end confdefs.h. */ |
3298 | #include <stdarg.h> | |
3299 | #include <stdio.h> | |
3300 | #include <sys/types.h> | |
3301 | #include <sys/stat.h> | |
3302 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3303 | struct buf { int x; }; | |
3304 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3305 | static char *e (p, i) | |
3306 | char **p; | |
3307 | int i; | |
3308 | { | |
3309 | return p[i]; | |
3310 | } | |
3311 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3312 | { | |
3313 | char *s; | |
3314 | va_list v; | |
3315 | va_start (v,p); | |
3316 | s = g (p, va_arg (v,int)); | |
3317 | va_end (v); | |
3318 | return s; | |
3319 | } | |
3320 | ||
3321 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3322 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3323 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3324 | as 'x'. The following induces an error, until -std is added to get |
bec39cab AC |
3325 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3326 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3327 | that's true only with -std. */ |
bec39cab AC |
3328 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3329 | ||
81ecdfbb RW |
3330 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3331 | inside strings and character constants. */ | |
3332 | #define FOO(x) 'x' | |
3333 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3334 | ||
bec39cab AC |
3335 | int test (int i, double x); |
3336 | struct s1 {int (*f) (int a);}; | |
3337 | struct s2 {int (*f) (double a);}; | |
3338 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3339 | int argc; | |
3340 | char **argv; | |
3341 | int | |
3342 | main () | |
3343 | { | |
3344 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3345 | ; | |
3346 | return 0; | |
3347 | } | |
3348 | _ACEOF | |
81ecdfbb RW |
3349 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3350 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
3351 | do |
3352 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3353 | if ac_fn_c_try_compile "$LINENO"; then : |
3354 | ac_cv_prog_cc_c89=$ac_arg | |
bec39cab | 3355 | fi |
81ecdfbb RW |
3356 | rm -f core conftest.err conftest.$ac_objext |
3357 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bec39cab | 3358 | done |
81ecdfbb | 3359 | rm -f conftest.$ac_ext |
bec39cab AC |
3360 | CC=$ac_save_CC |
3361 | ||
3362 | fi | |
81ecdfbb RW |
3363 | # AC_CACHE_VAL |
3364 | case "x$ac_cv_prog_cc_c89" in | |
3365 | x) | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3367 | $as_echo "none needed" >&6; } ;; | |
3368 | xno) | |
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3370 | $as_echo "unsupported" >&6; } ;; | |
bec39cab | 3371 | *) |
81ecdfbb RW |
3372 | CC="$CC $ac_cv_prog_cc_c89" |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3374 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bec39cab | 3375 | esac |
81ecdfbb | 3376 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bec39cab | 3377 | |
dae5f5cf DJ |
3378 | fi |
3379 | ||
dae5f5cf | 3380 | ac_ext=c |
bec39cab AC |
3381 | ac_cpp='$CPP $CPPFLAGS' |
3382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
84563040 | 3385 | |
c9a1864a YQ |
3386 | if test -n "$ac_tool_prefix"; then |
3387 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3388 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3390 | $as_echo_n "checking for $ac_word... " >&6; } | |
3391 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
81ecdfbb RW |
3392 | $as_echo_n "(cached) " >&6 |
3393 | else | |
c9a1864a YQ |
3394 | if test -n "$RANLIB"; then |
3395 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3396 | else | |
3397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3398 | for as_dir in $PATH | |
81ecdfbb | 3399 | do |
c9a1864a YQ |
3400 | IFS=$as_save_IFS |
3401 | test -z "$as_dir" && as_dir=. | |
3402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3404 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3406 | break 2 | |
3407 | fi | |
3408 | done | |
3409 | done | |
3410 | IFS=$as_save_IFS | |
fd462a61 | 3411 | |
81ecdfbb | 3412 | fi |
81ecdfbb | 3413 | fi |
c9a1864a YQ |
3414 | RANLIB=$ac_cv_prog_RANLIB |
3415 | if test -n "$RANLIB"; then | |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3417 | $as_echo "$RANLIB" >&6; } | |
3418 | else | |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3420 | $as_echo "no" >&6; } | |
d6e9fb05 | 3421 | fi |
dae5f5cf DJ |
3422 | |
3423 | ||
81ecdfbb | 3424 | fi |
c9a1864a YQ |
3425 | if test -z "$ac_cv_prog_RANLIB"; then |
3426 | ac_ct_RANLIB=$RANLIB | |
3427 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3428 | set dummy ranlib; ac_word=$2 | |
3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3430 | $as_echo_n "checking for $ac_word... " >&6; } | |
3431 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
3432 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3433 | else |
c9a1864a YQ |
3434 | if test -n "$ac_ct_RANLIB"; then |
3435 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3436 | else | |
3437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3438 | for as_dir in $PATH | |
81ecdfbb | 3439 | do |
c9a1864a YQ |
3440 | IFS=$as_save_IFS |
3441 | test -z "$as_dir" && as_dir=. | |
3442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3444 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3446 | break 2 | |
3447 | fi | |
3448 | done | |
3449 | done | |
3450 | IFS=$as_save_IFS | |
dae5f5cf | 3451 | |
c9a1864a YQ |
3452 | fi |
3453 | fi | |
3454 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3455 | if test -n "$ac_ct_RANLIB"; then | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3457 | $as_echo "$ac_ct_RANLIB" >&6; } | |
bec39cab | 3458 | else |
c9a1864a YQ |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3460 | $as_echo "no" >&6; } | |
bec39cab | 3461 | fi |
d6e9fb05 | 3462 | |
c9a1864a YQ |
3463 | if test "x$ac_ct_RANLIB" = x; then |
3464 | RANLIB=":" | |
3465 | else | |
3466 | case $cross_compiling:$ac_tool_warned in | |
3467 | yes:) | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3469 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3470 | ac_tool_warned=yes ;; | |
3471 | esac | |
3472 | RANLIB=$ac_ct_RANLIB | |
3473 | fi | |
3474 | else | |
3475 | RANLIB="$ac_cv_prog_RANLIB" | |
3476 | fi | |
3477 | ||
3478 | ac_aux_dir= | |
3479 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3480 | for ac_t in install-sh install.sh shtool; do | |
3481 | if test -f "$ac_dir/$ac_t"; then | |
3482 | ac_aux_dir=$ac_dir | |
3483 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
3484 | break 2 | |
3485 | fi | |
3486 | done | |
3487 | done | |
3488 | if test -z "$ac_aux_dir"; then | |
3489 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3490 | fi | |
3491 | ||
3492 | # These three variables are undocumented and unsupported, | |
3493 | # and are intended to be withdrawn in a future Autoconf release. | |
3494 | # They can cause serious problems if a builder's source tree is in a directory | |
3495 | # whose full name contains unusual characters. | |
3496 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3497 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3498 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3499 | ||
3500 | ||
3501 | # Make sure we can run config.sub. | |
3502 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3503 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3504 | ||
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3506 | $as_echo_n "checking build system type... " >&6; } | |
3507 | if test "${ac_cv_build+set}" = set; then : | |
3508 | $as_echo_n "(cached) " >&6 | |
3509 | else | |
3510 | ac_build_alias=$build_alias | |
3511 | test "x$ac_build_alias" = x && | |
3512 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3513 | test "x$ac_build_alias" = x && | |
3514 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3515 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3516 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3517 | ||
3518 | fi | |
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3520 | $as_echo "$ac_cv_build" >&6; } | |
3521 | case $ac_cv_build in | |
3522 | *-*-*) ;; | |
3523 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3524 | esac | |
3525 | build=$ac_cv_build | |
3526 | ac_save_IFS=$IFS; IFS='-' | |
3527 | set x $ac_cv_build | |
3528 | shift | |
3529 | build_cpu=$1 | |
3530 | build_vendor=$2 | |
3531 | shift; shift | |
3532 | # Remember, the first character of IFS is used to create $*, | |
3533 | # except with old shells: | |
3534 | build_os=$* | |
3535 | IFS=$ac_save_IFS | |
3536 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3537 | ||
3538 | ||
3539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3540 | $as_echo_n "checking host system type... " >&6; } | |
3541 | if test "${ac_cv_host+set}" = set; then : | |
3542 | $as_echo_n "(cached) " >&6 | |
3543 | else | |
3544 | if test "x$host_alias" = x; then | |
3545 | ac_cv_host=$ac_cv_build | |
3546 | else | |
3547 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3548 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3549 | fi | |
3550 | ||
3551 | fi | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3553 | $as_echo "$ac_cv_host" >&6; } | |
3554 | case $ac_cv_host in | |
3555 | *-*-*) ;; | |
3556 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3557 | esac | |
3558 | host=$ac_cv_host | |
3559 | ac_save_IFS=$IFS; IFS='-' | |
3560 | set x $ac_cv_host | |
3561 | shift | |
3562 | host_cpu=$1 | |
3563 | host_vendor=$2 | |
3564 | shift; shift | |
3565 | # Remember, the first character of IFS is used to create $*, | |
3566 | # except with old shells: | |
3567 | host_os=$* | |
3568 | IFS=$ac_save_IFS | |
3569 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3570 | ||
3571 | ||
3572 | ||
3573 | ac_ext=c | |
3574 | ac_cpp='$CPP $CPPFLAGS' | |
3575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3579 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3580 | # On Suns, sometimes $CPP names a directory. | |
3581 | if test -n "$CPP" && test -d "$CPP"; then | |
3582 | CPP= | |
3583 | fi | |
3584 | if test -z "$CPP"; then | |
3585 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3586 | $as_echo_n "(cached) " >&6 | |
3587 | else | |
3588 | # Double quotes because CPP needs to be expanded | |
3589 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3590 | do | |
3591 | ac_preproc_ok=false | |
3592 | for ac_c_preproc_warn_flag in '' yes | |
3593 | do | |
3594 | # Use a header file that comes with gcc, so configuring glibc | |
3595 | # with a fresh cross-compiler works. | |
3596 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3597 | # <limits.h> exists even on freestanding compilers. | |
3598 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3599 | # not just through cpp. "Syntax error" is here to catch this case. | |
3600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3601 | /* end confdefs.h. */ | |
3602 | #ifdef __STDC__ | |
3603 | # include <limits.h> | |
3604 | #else | |
3605 | # include <assert.h> | |
3606 | #endif | |
3607 | Syntax error | |
3608 | _ACEOF | |
3609 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3610 | ||
3611 | else | |
3612 | # Broken: fails on valid input. | |
3613 | continue | |
3614 | fi | |
3615 | rm -f conftest.err conftest.$ac_ext | |
3616 | ||
3617 | # OK, works on sane cases. Now check whether nonexistent headers | |
3618 | # can be detected and how. | |
3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3620 | /* end confdefs.h. */ | |
3621 | #include <ac_nonexistent.h> | |
3622 | _ACEOF | |
3623 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3624 | # Broken: success on invalid input. | |
3625 | continue | |
3626 | else | |
3627 | # Passes both tests. | |
3628 | ac_preproc_ok=: | |
3629 | break | |
3630 | fi | |
3631 | rm -f conftest.err conftest.$ac_ext | |
3632 | ||
3633 | done | |
3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3635 | rm -f conftest.err conftest.$ac_ext | |
3636 | if $ac_preproc_ok; then : | |
3637 | break | |
3638 | fi | |
3639 | ||
3640 | done | |
3641 | ac_cv_prog_CPP=$CPP | |
3642 | ||
3643 | fi | |
3644 | CPP=$ac_cv_prog_CPP | |
3645 | else | |
3646 | ac_cv_prog_CPP=$CPP | |
3647 | fi | |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3649 | $as_echo "$CPP" >&6; } | |
3650 | ac_preproc_ok=false | |
3651 | for ac_c_preproc_warn_flag in '' yes | |
3652 | do | |
3653 | # Use a header file that comes with gcc, so configuring glibc | |
3654 | # with a fresh cross-compiler works. | |
3655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3656 | # <limits.h> exists even on freestanding compilers. | |
3657 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3658 | # not just through cpp. "Syntax error" is here to catch this case. | |
3659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3660 | /* end confdefs.h. */ | |
3661 | #ifdef __STDC__ | |
3662 | # include <limits.h> | |
3663 | #else | |
3664 | # include <assert.h> | |
3665 | #endif | |
3666 | Syntax error | |
3667 | _ACEOF | |
3668 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3669 | ||
3670 | else | |
3671 | # Broken: fails on valid input. | |
3672 | continue | |
3673 | fi | |
3674 | rm -f conftest.err conftest.$ac_ext | |
3675 | ||
3676 | # OK, works on sane cases. Now check whether nonexistent headers | |
3677 | # can be detected and how. | |
81ecdfbb | 3678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3679 | /* end confdefs.h. */ |
3680 | #include <ac_nonexistent.h> | |
3681 | _ACEOF | |
81ecdfbb | 3682 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab AC |
3683 | # Broken: success on invalid input. |
3684 | continue | |
3685 | else | |
bec39cab AC |
3686 | # Passes both tests. |
3687 | ac_preproc_ok=: | |
3688 | break | |
3689 | fi | |
3690 | rm -f conftest.err conftest.$ac_ext | |
3691 | ||
3692 | done | |
3693 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3694 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3695 | if $ac_preproc_ok; then : |
3696 | ||
3697 | else | |
3698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3700 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3701 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
3702 | fi |
3703 | ||
81ecdfbb RW |
3704 | ac_ext=c |
3705 | ac_cpp='$CPP $CPPFLAGS' | |
3706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bec39cab | 3709 | |
81ecdfbb RW |
3710 | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3712 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3713 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3714 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3715 | else |
81ecdfbb RW |
3716 | if test -z "$GREP"; then |
3717 | ac_path_GREP_found=false | |
3718 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3720 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
bec39cab | 3721 | do |
81ecdfbb RW |
3722 | IFS=$as_save_IFS |
3723 | test -z "$as_dir" && as_dir=. | |
3724 | for ac_prog in grep ggrep; do | |
3725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3726 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3727 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3728 | # Check for GNU ac_path_GREP and select it if it is found. | |
3729 | # Check for GNU $ac_path_GREP | |
3730 | case `"$ac_path_GREP" --version 2>&1` in | |
3731 | *GNU*) | |
3732 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3733 | *) | |
3734 | ac_count=0 | |
3735 | $as_echo_n 0123456789 >"conftest.in" | |
3736 | while : | |
3737 | do | |
3738 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3739 | mv "conftest.tmp" "conftest.in" | |
3740 | cp "conftest.in" "conftest.nl" | |
3741 | $as_echo 'GREP' >> "conftest.nl" | |
3742 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3743 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3744 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3745 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3746 | # Best one so far, save it but keep looking for a better one | |
3747 | ac_cv_path_GREP="$ac_path_GREP" | |
3748 | ac_path_GREP_max=$ac_count | |
3749 | fi | |
3750 | # 10*(2^10) chars as input seems more than enough | |
3751 | test $ac_count -gt 10 && break | |
3752 | done | |
3753 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3754 | esac | |
3755 | ||
3756 | $ac_path_GREP_found && break 3 | |
3757 | done | |
3758 | done | |
3759 | done | |
3760 | IFS=$as_save_IFS | |
3761 | if test -z "$ac_cv_path_GREP"; then | |
3762 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
bec39cab AC |
3763 | fi |
3764 | else | |
81ecdfbb | 3765 | ac_cv_path_GREP=$GREP |
bec39cab | 3766 | fi |
bec39cab | 3767 | |
84563040 | 3768 | fi |
81ecdfbb RW |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3770 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3771 | GREP="$ac_cv_path_GREP" | |
bec39cab | 3772 | |
bec39cab | 3773 | |
81ecdfbb RW |
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3775 | $as_echo_n "checking for egrep... " >&6; } | |
3776 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3777 | $as_echo_n "(cached) " >&6 | |
3778 | else | |
3779 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3780 | then ac_cv_path_EGREP="$GREP -E" | |
3781 | else | |
3782 | if test -z "$EGREP"; then | |
3783 | ac_path_EGREP_found=false | |
3784 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3786 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3787 | do | |
3788 | IFS=$as_save_IFS | |
3789 | test -z "$as_dir" && as_dir=. | |
3790 | for ac_prog in egrep; do | |
3791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3792 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3793 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3794 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3795 | # Check for GNU $ac_path_EGREP | |
3796 | case `"$ac_path_EGREP" --version 2>&1` in | |
3797 | *GNU*) | |
3798 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3799 | *) | |
3800 | ac_count=0 | |
3801 | $as_echo_n 0123456789 >"conftest.in" | |
3802 | while : | |
3803 | do | |
3804 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3805 | mv "conftest.tmp" "conftest.in" | |
3806 | cp "conftest.in" "conftest.nl" | |
3807 | $as_echo 'EGREP' >> "conftest.nl" | |
3808 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3809 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3810 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3811 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3812 | # Best one so far, save it but keep looking for a better one | |
3813 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3814 | ac_path_EGREP_max=$ac_count | |
3815 | fi | |
3816 | # 10*(2^10) chars as input seems more than enough | |
3817 | test $ac_count -gt 10 && break | |
3818 | done | |
3819 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3820 | esac | |
bec39cab | 3821 | |
81ecdfbb RW |
3822 | $ac_path_EGREP_found && break 3 |
3823 | done | |
3824 | done | |
3825 | done | |
3826 | IFS=$as_save_IFS | |
3827 | if test -z "$ac_cv_path_EGREP"; then | |
3828 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3829 | fi | |
bec39cab | 3830 | else |
81ecdfbb | 3831 | ac_cv_path_EGREP=$EGREP |
84563040 | 3832 | fi |
bec39cab | 3833 | |
81ecdfbb | 3834 | fi |
b80864fb | 3835 | fi |
81ecdfbb RW |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3837 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3838 | EGREP="$ac_cv_path_EGREP" | |
b80864fb DJ |
3839 | |
3840 | ||
81ecdfbb RW |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3842 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3843 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3844 | $as_echo_n "(cached) " >&6 | |
84563040 | 3845 | else |
81ecdfbb | 3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 3847 | /* end confdefs.h. */ |
84563040 DJ |
3848 | #include <stdlib.h> |
3849 | #include <stdarg.h> | |
3850 | #include <string.h> | |
3851 | #include <float.h> | |
bec39cab AC |
3852 | |
3853 | int | |
3854 | main () | |
3855 | { | |
3856 | ||
3857 | ; | |
3858 | return 0; | |
3859 | } | |
3860 | _ACEOF | |
81ecdfbb | 3861 | if ac_fn_c_try_compile "$LINENO"; then : |
84563040 DJ |
3862 | ac_cv_header_stdc=yes |
3863 | else | |
81ecdfbb | 3864 | ac_cv_header_stdc=no |
84563040 | 3865 | fi |
81ecdfbb | 3866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
84563040 DJ |
3867 | |
3868 | if test $ac_cv_header_stdc = yes; then | |
3869 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 3871 | /* end confdefs.h. */ |
84563040 | 3872 | #include <string.h> |
bec39cab AC |
3873 | |
3874 | _ACEOF | |
84563040 | 3875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3876 | $EGREP "memchr" >/dev/null 2>&1; then : |
3877 | ||
84563040 | 3878 | else |
84563040 DJ |
3879 | ac_cv_header_stdc=no |
3880 | fi | |
3881 | rm -f conftest* | |
3882 | ||
3883 | fi | |
3884 | ||
3885 | if test $ac_cv_header_stdc = yes; then | |
3886 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 3888 | /* end confdefs.h. */ |
84563040 | 3889 | #include <stdlib.h> |
bec39cab AC |
3890 | |
3891 | _ACEOF | |
84563040 | 3892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3893 | $EGREP "free" >/dev/null 2>&1; then : |
3894 | ||
84563040 | 3895 | else |
84563040 DJ |
3896 | ac_cv_header_stdc=no |
3897 | fi | |
3898 | rm -f conftest* | |
3899 | ||
3900 | fi | |
bec39cab AC |
3901 | |
3902 | if test $ac_cv_header_stdc = yes; then | |
3903 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3904 | if test "$cross_compiling" = yes; then : |
bec39cab AC |
3905 | : |
3906 | else | |
81ecdfbb | 3907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3908 | /* end confdefs.h. */ |
3909 | #include <ctype.h> | |
81ecdfbb | 3910 | #include <stdlib.h> |
bec39cab AC |
3911 | #if ((' ' & 0x0FF) == 0x020) |
3912 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3913 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3914 | #else | |
3915 | # define ISLOWER(c) \ | |
3916 | (('a' <= (c) && (c) <= 'i') \ | |
3917 | || ('j' <= (c) && (c) <= 'r') \ | |
3918 | || ('s' <= (c) && (c) <= 'z')) | |
3919 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3920 | #endif | |
3921 | ||
3922 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3923 | int | |
3924 | main () | |
3925 | { | |
3926 | int i; | |
3927 | for (i = 0; i < 256; i++) | |
3928 | if (XOR (islower (i), ISLOWER (i)) | |
3929 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
3930 | return 2; |
3931 | return 0; | |
bec39cab AC |
3932 | } |
3933 | _ACEOF | |
81ecdfbb | 3934 | if ac_fn_c_try_run "$LINENO"; then : |
bec39cab | 3935 | |
81ecdfbb RW |
3936 | else |
3937 | ac_cv_header_stdc=no | |
bec39cab | 3938 | fi |
81ecdfbb RW |
3939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3940 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3941 | fi | |
3942 | ||
bec39cab AC |
3943 | fi |
3944 | fi | |
81ecdfbb RW |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3946 | $as_echo "$ac_cv_header_stdc" >&6; } | |
bec39cab AC |
3947 | if test $ac_cv_header_stdc = yes; then |
3948 | ||
81ecdfbb | 3949 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bec39cab AC |
3950 | |
3951 | fi | |
3952 | ||
bec39cab | 3953 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
bec39cab AC |
3954 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3955 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
3956 | do : |
3957 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3958 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3959 | " | |
3960 | eval as_val=\$$as_ac_Header | |
3961 | if test "x$as_val" = x""yes; then : | |
bec39cab | 3962 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 3963 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab AC |
3964 | _ACEOF |
3965 | ||
3966 | fi | |
3967 | ||
3968 | done | |
3969 | ||
3970 | ||
3971 | ||
c9a1864a YQ |
3972 | |
3973 | ||
81ecdfbb RW |
3974 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3975 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3976 | MINIX=yes | |
3977 | else | |
3978 | MINIX= | |
3979 | fi | |
bec39cab AC |
3980 | |
3981 | ||
81ecdfbb | 3982 | if test "$MINIX" = yes; then |
bec39cab | 3983 | |
81ecdfbb | 3984 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
bec39cab AC |
3985 | |
3986 | ||
81ecdfbb | 3987 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
bec39cab AC |
3988 | |
3989 | ||
81ecdfbb | 3990 | $as_echo "#define _MINIX 1" >>confdefs.h |
bec39cab | 3991 | |
81ecdfbb | 3992 | fi |
bec39cab | 3993 | |
c9a1864a YQ |
3994 | case "$host_os" in |
3995 | hpux*) | |
3996 | ||
3997 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h | |
3998 | ||
3999 | ;; | |
4000 | esac | |
4001 | ||
bec39cab | 4002 | |
81ecdfbb RW |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4004 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4005 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4006 | $as_echo_n "(cached) " >&6 | |
4007 | else | |
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4009 | /* end confdefs.h. */ | |
b80864fb | 4010 | |
c9a1864a YQ |
4011 | # define __EXTENSIONS__ 1 |
4012 | $ac_includes_default | |
81ecdfbb RW |
4013 | int |
4014 | main () | |
4015 | { | |
b80864fb | 4016 | |
81ecdfbb RW |
4017 | ; |
4018 | return 0; | |
4019 | } | |
4020 | _ACEOF | |
4021 | if ac_fn_c_try_compile "$LINENO"; then : | |
4022 | ac_cv_safe_to_define___extensions__=yes | |
4023 | else | |
4024 | ac_cv_safe_to_define___extensions__=no | |
4025 | fi | |
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4027 | fi | |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4029 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4030 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4031 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
b80864fb | 4032 | |
81ecdfbb | 4033 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
b80864fb | 4034 | |
81ecdfbb | 4035 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
b80864fb | 4036 | |
81ecdfbb | 4037 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
b80864fb | 4038 | |
81ecdfbb | 4039 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
b80864fb | 4040 | |
68070c10 PA |
4041 | |
4042 | ||
4043 | ||
4044 | ||
4045 | ||
bec39cab | 4046 | |
bec39cab | 4047 | |
c9a1864a YQ |
4048 | |
4049 | ||
4050 | # Code from module arg-nonnull: | |
4051 | # Code from module c++defs: | |
4052 | # Code from module extensions: | |
4053 | ||
4054 | # Code from module include_next: | |
4055 | # Code from module memchr: | |
4056 | # Code from module memmem: | |
4057 | # Code from module memmem-simple: | |
4058 | # Code from module multiarch: | |
4059 | # Code from module stddef: | |
4060 | # Code from module stdint: | |
4061 | # Code from module string: | |
4062 | # Code from module warn-on-use: | |
4063 | # Code from module wchar: | |
4064 | ||
4065 | ||
4066 | ||
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
4068 | $as_echo_n "checking target system type... " >&6; } | |
4069 | if test "${ac_cv_target+set}" = set; then : | |
81ecdfbb | 4070 | $as_echo_n "(cached) " >&6 |
bec39cab | 4071 | else |
81ecdfbb RW |
4072 | if test "x$target_alias" = x; then |
4073 | ac_cv_target=$ac_cv_host | |
4074 | else | |
4075 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
4076 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
84563040 DJ |
4077 | fi |
4078 | ||
84563040 | 4079 | fi |
81ecdfbb RW |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
4081 | $as_echo "$ac_cv_target" >&6; } | |
4082 | case $ac_cv_target in | |
4083 | *-*-*) ;; | |
4084 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
4085 | esac | |
4086 | target=$ac_cv_target | |
4087 | ac_save_IFS=$IFS; IFS='-' | |
4088 | set x $ac_cv_target | |
4089 | shift | |
4090 | target_cpu=$1 | |
4091 | target_vendor=$2 | |
4092 | shift; shift | |
4093 | # Remember, the first character of IFS is used to create $*, | |
4094 | # except with old shells: | |
4095 | target_os=$* | |
4096 | IFS=$ac_save_IFS | |
4097 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
84563040 DJ |
4098 | |
4099 | ||
81ecdfbb RW |
4100 | # The aliases save the names the user supplied, while $host etc. |
4101 | # will get canonicalized. | |
4102 | test -n "$target_alias" && | |
4103 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
4104 | NONENONEs,x,x, && | |
4105 | program_prefix=${target_alias}- | |
4e799345 DJ |
4106 | |
4107 | ||
81ecdfbb RW |
4108 | # Find a good install program. We prefer a C program (faster), |
4109 | # so one script is as good as another. But avoid the broken or | |
4110 | # incompatible versions: | |
4111 | # SysV /etc/install, /usr/sbin/install | |
4112 | # SunOS /usr/etc/install | |
4113 | # IRIX /sbin/install | |
4114 | # AIX /bin/install | |
4115 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4116 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4117 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4118 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4119 | # OS/2's system install, which has a completely different semantic | |
4120 | # ./install, which can be erroneously created by make from ./install.sh. | |
4121 | # Reject install programs that cannot install multiple files. | |
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4123 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4124 | if test -z "$INSTALL"; then | |
4125 | if test "${ac_cv_path_install+set}" = set; then : | |
4126 | $as_echo_n "(cached) " >&6 | |
4127 | else | |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4129 | for as_dir in $PATH | |
fd462a61 | 4130 | do |
81ecdfbb RW |
4131 | IFS=$as_save_IFS |
4132 | test -z "$as_dir" && as_dir=. | |
4133 | # Account for people who put trailing slashes in PATH elements. | |
4134 | case $as_dir/ in #(( | |
4135 | ./ | .// | /[cC]/* | \ | |
4136 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4137 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4138 | /usr/ucb/* ) ;; | |
4139 | *) | |
4140 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4141 | # Don't use installbsd from OSF since it installs stuff as root | |
4142 | # by default. | |
4143 | for ac_prog in ginstall scoinst install; do | |
4144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4145 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4146 | if test $ac_prog = install && | |
4147 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4148 | # AIX install. It has an incompatible calling convention. | |
4149 | : | |
4150 | elif test $ac_prog = install && | |
4151 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4152 | # program-specific install script used by HP pwplus--don't use. | |
4153 | : | |
4154 | else | |
4155 | rm -rf conftest.one conftest.two conftest.dir | |
4156 | echo one > conftest.one | |
4157 | echo two > conftest.two | |
4158 | mkdir conftest.dir | |
4159 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4160 | test -s conftest.one && test -s conftest.two && | |
4161 | test -s conftest.dir/conftest.one && | |
4162 | test -s conftest.dir/conftest.two | |
4163 | then | |
4164 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4165 | break 3 | |
4166 | fi | |
4167 | fi | |
4168 | fi | |
4169 | done | |
4170 | done | |
4171 | ;; | |
4172 | esac | |
fd462a61 | 4173 | |
81ecdfbb RW |
4174 | done |
4175 | IFS=$as_save_IFS | |
fd462a61 | 4176 | |
81ecdfbb | 4177 | rm -rf conftest.one conftest.two conftest.dir |
fd462a61 | 4178 | |
fd462a61 | 4179 | fi |
81ecdfbb RW |
4180 | if test "${ac_cv_path_install+set}" = set; then |
4181 | INSTALL=$ac_cv_path_install | |
4182 | else | |
4183 | # As a last resort, use the slow shell script. Don't cache a | |
4184 | # value for INSTALL within a source directory, because that will | |
4185 | # break other packages using the cache if that directory is | |
4186 | # removed, or if the value is a relative name. | |
4187 | INSTALL=$ac_install_sh | |
4188 | fi | |
fd462a61 | 4189 | fi |
81ecdfbb RW |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4191 | $as_echo "$INSTALL" >&6; } | |
fd462a61 | 4192 | |
81ecdfbb RW |
4193 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4194 | # It thinks the first close brace ends the variable substitution. | |
4195 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
fd462a61 | 4196 | |
81ecdfbb | 4197 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fd462a61 | 4198 | |
81ecdfbb | 4199 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
e28b3332 | 4200 | |
e28b3332 | 4201 | |
81ecdfbb RW |
4202 | test "$program_prefix" != NONE && |
4203 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4204 | # Use a double $ so make ignores it. | |
4205 | test "$program_suffix" != NONE && | |
4206 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4207 | # Double any \ or $. | |
4208 | # By default was `s,x,x', remove it if useless. | |
4209 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4210 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
e28b3332 | 4211 | |
e28b3332 | 4212 | |
81ecdfbb RW |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4214 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4215 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4216 | $as_echo_n "(cached) " >&6 | |
4217 | else | |
4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4219 | /* end confdefs.h. */ | |
4220 | #include <stdlib.h> | |
4221 | #include <stdarg.h> | |
4222 | #include <string.h> | |
4223 | #include <float.h> | |
e28b3332 DJ |
4224 | |
4225 | int | |
4226 | main () | |
4227 | { | |
81ecdfbb | 4228 | |
e28b3332 DJ |
4229 | ; |
4230 | return 0; | |
4231 | } | |
4232 | _ACEOF | |
81ecdfbb RW |
4233 | if ac_fn_c_try_compile "$LINENO"; then : |
4234 | ac_cv_header_stdc=yes | |
e28b3332 | 4235 | else |
81ecdfbb | 4236 | ac_cv_header_stdc=no |
e28b3332 | 4237 | fi |
81ecdfbb | 4238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28b3332 | 4239 | |
81ecdfbb RW |
4240 | if test $ac_cv_header_stdc = yes; then |
4241 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
68070c10 | 4243 | /* end confdefs.h. */ |
81ecdfbb | 4244 | #include <string.h> |
68070c10 | 4245 | |
68070c10 | 4246 | _ACEOF |
81ecdfbb RW |
4247 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4248 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4249 | ||
68070c10 | 4250 | else |
81ecdfbb RW |
4251 | ac_cv_header_stdc=no |
4252 | fi | |
4253 | rm -f conftest* | |
68070c10 PA |
4254 | |
4255 | fi | |
68070c10 | 4256 | |
81ecdfbb RW |
4257 | if test $ac_cv_header_stdc = yes; then |
4258 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4260 | /* end confdefs.h. */ | |
4261 | #include <stdlib.h> | |
68070c10 | 4262 | |
68070c10 | 4263 | _ACEOF |
81ecdfbb RW |
4264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4265 | $EGREP "free" >/dev/null 2>&1; then : | |
68070c10 PA |
4266 | |
4267 | else | |
81ecdfbb | 4268 | ac_cv_header_stdc=no |
68070c10 | 4269 | fi |
81ecdfbb RW |
4270 | rm -f conftest* |
4271 | ||
68070c10 PA |
4272 | fi |
4273 | ||
81ecdfbb RW |
4274 | if test $ac_cv_header_stdc = yes; then |
4275 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4276 | if test "$cross_compiling" = yes; then : | |
4277 | : | |
43d5792c | 4278 | else |
81ecdfbb | 4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 4280 | /* end confdefs.h. */ |
81ecdfbb RW |
4281 | #include <ctype.h> |
4282 | #include <stdlib.h> | |
4283 | #if ((' ' & 0x0FF) == 0x020) | |
4284 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4285 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4286 | #else | |
4287 | # define ISLOWER(c) \ | |
4288 | (('a' <= (c) && (c) <= 'i') \ | |
4289 | || ('j' <= (c) && (c) <= 'r') \ | |
4290 | || ('s' <= (c) && (c) <= 'z')) | |
4291 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4292 | #endif | |
4293 | ||
4294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
bec39cab AC |
4295 | int |
4296 | main () | |
4297 | { | |
81ecdfbb RW |
4298 | int i; |
4299 | for (i = 0; i < 256; i++) | |
4300 | if (XOR (islower (i), ISLOWER (i)) | |
4301 | || toupper (i) != TOUPPER (i)) | |
4302 | return 2; | |
bec39cab AC |
4303 | return 0; |
4304 | } | |
4305 | _ACEOF | |
81ecdfbb | 4306 | if ac_fn_c_try_run "$LINENO"; then : |
bec39cab | 4307 | |
81ecdfbb RW |
4308 | else |
4309 | ac_cv_header_stdc=no | |
43d5792c | 4310 | fi |
81ecdfbb RW |
4311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4312 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
43d5792c | 4313 | fi |
e122f1f5 | 4314 | |
68070c10 | 4315 | fi |
81ecdfbb RW |
4316 | fi |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4318 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4319 | if test $ac_cv_header_stdc = yes; then | |
68070c10 | 4320 | |
81ecdfbb | 4321 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
68070c10 | 4322 | |
68070c10 | 4323 | fi |
68070c10 | 4324 | |
d26e3629 KY |
4325 | ac_header_dirent=no |
4326 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4327 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4329 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4331 | $as_echo_n "(cached) " >&6 | |
4332 | else | |
4333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4334 | /* end confdefs.h. */ | |
4335 | #include <sys/types.h> | |
4336 | #include <$ac_hdr> | |
4337 | ||
4338 | int | |
4339 | main () | |
4340 | { | |
4341 | if ((DIR *) 0) | |
4342 | return 0; | |
4343 | ; | |
4344 | return 0; | |
4345 | } | |
4346 | _ACEOF | |
4347 | if ac_fn_c_try_compile "$LINENO"; then : | |
4348 | eval "$as_ac_Header=yes" | |
4349 | else | |
4350 | eval "$as_ac_Header=no" | |
4351 | fi | |
4352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4353 | fi | |
4354 | eval ac_res=\$$as_ac_Header | |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4356 | $as_echo "$ac_res" >&6; } | |
4357 | eval as_val=\$$as_ac_Header | |
4358 | if test "x$as_val" = x""yes; then : | |
4359 | cat >>confdefs.h <<_ACEOF | |
4360 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4361 | _ACEOF | |
4362 | ||
4363 | ac_header_dirent=$ac_hdr; break | |
4364 | fi | |
4365 | ||
4366 | done | |
4367 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4368 | if test $ac_header_dirent = dirent.h; then | |
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4370 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4371 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4372 | $as_echo_n "(cached) " >&6 | |
4373 | else | |
4374 | ac_func_search_save_LIBS=$LIBS | |
4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4376 | /* end confdefs.h. */ | |
4377 | ||
4378 | /* Override any GCC internal prototype to avoid an error. | |
4379 | Use char because int might match the return type of a GCC | |
4380 | builtin and then its argument prototype would still apply. */ | |
4381 | #ifdef __cplusplus | |
4382 | extern "C" | |
4383 | #endif | |
4384 | char opendir (); | |
4385 | int | |
4386 | main () | |
4387 | { | |
4388 | return opendir (); | |
4389 | ; | |
4390 | return 0; | |
4391 | } | |
4392 | _ACEOF | |
4393 | for ac_lib in '' dir; do | |
4394 | if test -z "$ac_lib"; then | |
4395 | ac_res="none required" | |
4396 | else | |
4397 | ac_res=-l$ac_lib | |
4398 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4399 | fi | |
4400 | if ac_fn_c_try_link "$LINENO"; then : | |
4401 | ac_cv_search_opendir=$ac_res | |
4402 | fi | |
4403 | rm -f core conftest.err conftest.$ac_objext \ | |
4404 | conftest$ac_exeext | |
4405 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4406 | break | |
4407 | fi | |
4408 | done | |
4409 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4410 | ||
4411 | else | |
4412 | ac_cv_search_opendir=no | |
4413 | fi | |
4414 | rm conftest.$ac_ext | |
4415 | LIBS=$ac_func_search_save_LIBS | |
4416 | fi | |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4418 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4419 | ac_res=$ac_cv_search_opendir | |
4420 | if test "$ac_res" != no; then : | |
4421 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4422 | ||
4423 | fi | |
4424 | ||
4425 | else | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4427 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4428 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4429 | $as_echo_n "(cached) " >&6 | |
4430 | else | |
4431 | ac_func_search_save_LIBS=$LIBS | |
4432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4433 | /* end confdefs.h. */ | |
4434 | ||
4435 | /* Override any GCC internal prototype to avoid an error. | |
4436 | Use char because int might match the return type of a GCC | |
4437 | builtin and then its argument prototype would still apply. */ | |
4438 | #ifdef __cplusplus | |
4439 | extern "C" | |
4440 | #endif | |
4441 | char opendir (); | |
4442 | int | |
4443 | main () | |
4444 | { | |
4445 | return opendir (); | |
4446 | ; | |
4447 | return 0; | |
4448 | } | |
4449 | _ACEOF | |
4450 | for ac_lib in '' x; do | |
4451 | if test -z "$ac_lib"; then | |
4452 | ac_res="none required" | |
4453 | else | |
4454 | ac_res=-l$ac_lib | |
4455 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4456 | fi | |
4457 | if ac_fn_c_try_link "$LINENO"; then : | |
4458 | ac_cv_search_opendir=$ac_res | |
4459 | fi | |
4460 | rm -f core conftest.err conftest.$ac_objext \ | |
4461 | conftest$ac_exeext | |
4462 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4463 | break | |
4464 | fi | |
4465 | done | |
4466 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4467 | ||
4468 | else | |
4469 | ac_cv_search_opendir=no | |
4470 | fi | |
4471 | rm conftest.$ac_ext | |
4472 | LIBS=$ac_func_search_save_LIBS | |
4473 | fi | |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4475 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4476 | ac_res=$ac_cv_search_opendir | |
4477 | if test "$ac_res" != no; then : | |
4478 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4479 | ||
4480 | fi | |
4481 | ||
4482 | fi | |
4483 | ||
68070c10 | 4484 | |
a1723c35 | 4485 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4486 | # for constant arguments. Useless! | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
4488 | $as_echo_n "checking for working alloca.h... " >&6; } | |
4489 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
4490 | $as_echo_n "(cached) " >&6 | |
4491 | else | |
4492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4493 | /* end confdefs.h. */ | |
4494 | #include <alloca.h> | |
4495 | int | |
4496 | main () | |
4497 | { | |
4498 | char *p = (char *) alloca (2 * sizeof (int)); | |
4499 | if (p) return 0; | |
4500 | ; | |
4501 | return 0; | |
4502 | } | |
4503 | _ACEOF | |
4504 | if ac_fn_c_try_link "$LINENO"; then : | |
4505 | ac_cv_working_alloca_h=yes | |
4506 | else | |
4507 | ac_cv_working_alloca_h=no | |
4508 | fi | |
4509 | rm -f core conftest.err conftest.$ac_objext \ | |
4510 | conftest$ac_exeext conftest.$ac_ext | |
4511 | fi | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
4513 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
4514 | if test $ac_cv_working_alloca_h = yes; then | |
4515 | ||
4516 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
4517 | ||
4518 | fi | |
4519 | ||
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
4521 | $as_echo_n "checking for alloca... " >&6; } | |
4522 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
4523 | $as_echo_n "(cached) " >&6 | |
4524 | else | |
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4526 | /* end confdefs.h. */ | |
4527 | #ifdef __GNUC__ | |
4528 | # define alloca __builtin_alloca | |
4529 | #else | |
4530 | # ifdef _MSC_VER | |
4531 | # include <malloc.h> | |
4532 | # define alloca _alloca | |
4533 | # else | |
4534 | # ifdef HAVE_ALLOCA_H | |
4535 | # include <alloca.h> | |
4536 | # else | |
4537 | # ifdef _AIX | |
4538 | #pragma alloca | |
4539 | # else | |
4540 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4541 | char *alloca (); | |
4542 | # endif | |
4543 | # endif | |
4544 | # endif | |
4545 | # endif | |
4546 | #endif | |
4547 | ||
4548 | int | |
4549 | main () | |
4550 | { | |
4551 | char *p = (char *) alloca (1); | |
4552 | if (p) return 0; | |
4553 | ; | |
4554 | return 0; | |
4555 | } | |
4556 | _ACEOF | |
4557 | if ac_fn_c_try_link "$LINENO"; then : | |
4558 | ac_cv_func_alloca_works=yes | |
4559 | else | |
4560 | ac_cv_func_alloca_works=no | |
4561 | fi | |
4562 | rm -f core conftest.err conftest.$ac_objext \ | |
4563 | conftest$ac_exeext conftest.$ac_ext | |
4564 | fi | |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
4566 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
4567 | ||
4568 | if test $ac_cv_func_alloca_works = yes; then | |
4569 | ||
4570 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
4571 | ||
4572 | else | |
4573 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4574 | # that cause trouble. Some versions do not even contain alloca or | |
4575 | # contain a buggy version. If you still want to use their alloca, | |
4576 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4577 | ||
4578 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
4579 | ||
4580 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
4581 | ||
4582 | ||
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
4584 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
4585 | if test "${ac_cv_os_cray+set}" = set; then : | |
4586 | $as_echo_n "(cached) " >&6 | |
4587 | else | |
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4589 | /* end confdefs.h. */ | |
4590 | #if defined CRAY && ! defined CRAY2 | |
4591 | webecray | |
4592 | #else | |
4593 | wenotbecray | |
4594 | #endif | |
4595 | ||
4596 | _ACEOF | |
4597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4598 | $EGREP "webecray" >/dev/null 2>&1; then : | |
4599 | ac_cv_os_cray=yes | |
4600 | else | |
4601 | ac_cv_os_cray=no | |
4602 | fi | |
4603 | rm -f conftest* | |
4604 | ||
4605 | fi | |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
4607 | $as_echo "$ac_cv_os_cray" >&6; } | |
4608 | if test $ac_cv_os_cray = yes; then | |
4609 | for ac_func in _getb67 GETB67 getb67; do | |
4610 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4611 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4612 | eval as_val=\$$as_ac_var | |
4613 | if test "x$as_val" = x""yes; then : | |
4614 | ||
4615 | cat >>confdefs.h <<_ACEOF | |
4616 | #define CRAY_STACKSEG_END $ac_func | |
4617 | _ACEOF | |
4618 | ||
4619 | break | |
4620 | fi | |
4621 | ||
4622 | done | |
4623 | fi | |
4624 | ||
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
4626 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
4627 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
4628 | $as_echo_n "(cached) " >&6 | |
4629 | else | |
4630 | if test "$cross_compiling" = yes; then : | |
4631 | ac_cv_c_stack_direction=0 | |
4632 | else | |
4633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4634 | /* end confdefs.h. */ | |
4635 | $ac_includes_default | |
4636 | int | |
4637 | find_stack_direction () | |
4638 | { | |
4639 | static char *addr = 0; | |
4640 | auto char dummy; | |
4641 | if (addr == 0) | |
4642 | { | |
4643 | addr = &dummy; | |
4644 | return find_stack_direction (); | |
4645 | } | |
4646 | else | |
4647 | return (&dummy > addr) ? 1 : -1; | |
4648 | } | |
4649 | ||
4650 | int | |
4651 | main () | |
4652 | { | |
4653 | return find_stack_direction () < 0; | |
4654 | } | |
4655 | _ACEOF | |
4656 | if ac_fn_c_try_run "$LINENO"; then : | |
4657 | ac_cv_c_stack_direction=1 | |
4658 | else | |
4659 | ac_cv_c_stack_direction=-1 | |
4660 | fi | |
4661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4662 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4663 | fi | |
4664 | ||
4665 | fi | |
4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
4667 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
4668 | cat >>confdefs.h <<_ACEOF | |
4669 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4670 | _ACEOF | |
4671 | ||
4672 | ||
4673 | fi | |
4674 | ||
c9a1864a YQ |
4675 | |
4676 | # Check for the 'make' the user wants to use. | |
4677 | for ac_prog in make | |
4678 | do | |
4679 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4680 | set dummy $ac_prog; ac_word=$2 | |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4682 | $as_echo_n "checking for $ac_word... " >&6; } | |
4683 | if test "${ac_cv_prog_MAKE+set}" = set; then : | |
4684 | $as_echo_n "(cached) " >&6 | |
4685 | else | |
4686 | if test -n "$MAKE"; then | |
4687 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4688 | else | |
4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4690 | for as_dir in $PATH | |
4691 | do | |
4692 | IFS=$as_save_IFS | |
4693 | test -z "$as_dir" && as_dir=. | |
4694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4696 | ac_cv_prog_MAKE="$ac_prog" | |
4697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4698 | break 2 | |
4699 | fi | |
4700 | done | |
4701 | done | |
4702 | IFS=$as_save_IFS | |
4703 | ||
4704 | fi | |
4705 | fi | |
4706 | MAKE=$ac_cv_prog_MAKE | |
4707 | if test -n "$MAKE"; then | |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
4709 | $as_echo "$MAKE" >&6; } | |
4710 | else | |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4712 | $as_echo "no" >&6; } | |
4713 | fi | |
4714 | ||
4715 | ||
4716 | test -n "$MAKE" && break | |
4717 | done | |
4718 | ||
4719 | ||
2fa291ac | 4720 | 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 sys/un.h |
81ecdfbb RW |
4721 | do : |
4722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4723 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4724 | eval as_val=\$$as_ac_Header | |
4725 | if test "x$as_val" = x""yes; then : | |
68070c10 | 4726 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4727 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
68070c10 PA |
4728 | _ACEOF |
4729 | ||
ec56be1b | 4730 | fi |
ec56be1b | 4731 | |
81ecdfbb RW |
4732 | done |
4733 | ||
f8255c2a | 4734 | for ac_func in pread pwrite pread64 readlink |
81ecdfbb RW |
4735 | do : |
4736 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4737 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4738 | eval as_val=\$$as_ac_var | |
4739 | if test "x$as_val" = x""yes; then : | |
4740 | cat >>confdefs.h <<_ACEOF | |
4741 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ec56be1b PA |
4742 | _ACEOF |
4743 | ||
81ecdfbb RW |
4744 | fi |
4745 | done | |
ec56be1b | 4746 | |
c9a1864a | 4747 | for ac_func in vasprintf vsnprintf |
81ecdfbb | 4748 | do : |
bb0116a4 JB |
4749 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4750 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4751 | eval as_val=\$$as_ac_var | |
4752 | if test "x$as_val" = x""yes; then : | |
ec56be1b | 4753 | cat >>confdefs.h <<_ACEOF |
bb0116a4 | 4754 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ec56be1b PA |
4755 | _ACEOF |
4756 | ||
81ecdfbb RW |
4757 | else |
4758 | case " $LIBOBJS " in | |
4759 | *" $ac_func.$ac_objext "* ) ;; | |
4760 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
4761 | ;; | |
4762 | esac | |
ec56be1b | 4763 | |
43d5792c | 4764 | fi |
81ecdfbb | 4765 | done |
43d5792c DJ |
4766 | |
4767 | ||
e122f1f5 | 4768 | |
0fb4aa4b PA |
4769 | # Check for UST |
4770 | ustlibs="" | |
4771 | ustinc="" | |
4772 | ||
4773 | ||
4774 | # Check whether --with-ust was given. | |
4775 | if test "${with_ust+set}" = set; then : | |
4776 | withval=$with_ust; | |
4777 | fi | |
4778 | ||
4779 | ||
4780 | # Check whether --with-ust_include was given. | |
4781 | if test "${with_ust_include+set}" = set; then : | |
4782 | withval=$with_ust_include; | |
4783 | fi | |
4784 | ||
4785 | ||
4786 | # Check whether --with-ust_lib was given. | |
4787 | if test "${with_ust_lib+set}" = set; then : | |
4788 | withval=$with_ust_lib; | |
4789 | fi | |
4790 | ||
4791 | ||
4792 | case $with_ust in | |
4793 | no) | |
4794 | ustlibs= | |
4795 | ustinc= | |
4796 | ;; | |
4797 | "" | yes) | |
4798 | ustlibs=" -lust " | |
4799 | ustinc="" | |
4800 | ;; | |
4801 | *) | |
4802 | ustlibs="-L$with_ust/lib -lust" | |
4803 | ustinc="-I$with_ust/include " | |
4804 | ;; | |
4805 | esac | |
4806 | if test "x$with_ust_include" != x; then | |
4807 | ustinc="-I$with_ust_include " | |
4808 | fi | |
4809 | if test "x$with_ust_lib" != x; then | |
4810 | ustlibs="-L$with_ust_lib -lust" | |
4811 | fi | |
4812 | ||
4813 | if test "x$with_ust" != "xno"; then | |
4814 | saved_CFLAGS="$CFLAGS" | |
4815 | CFLAGS="$CFLAGS $ustinc" | |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5 | |
4817 | $as_echo_n "checking for ust... " >&6; } | |
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4819 | /* end confdefs.h. */ | |
4820 | ||
4821 | #define CONFIG_UST_GDB_INTEGRATION | |
4822 | #include <ust/ust.h> | |
4823 | ||
4824 | int | |
4825 | main () | |
4826 | { | |
4827 | ||
4828 | ; | |
4829 | return 0; | |
4830 | } | |
4831 | _ACEOF | |
4832 | if ac_fn_c_try_compile "$LINENO"; then : | |
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4834 | $as_echo "yes" >&6; }; | |
4835 | $as_echo "#define HAVE_UST 1" >>confdefs.h | |
4836 | ||
4837 | else | |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4839 | $as_echo "no" >&6; }; ustlibs= ; ustinc= | |
4840 | fi | |
4841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4842 | CFLAGS="$saved_CFLAGS" | |
4843 | fi | |
4844 | ||
4845 | # Flags needed for UST | |
4846 | ||
4847 | ||
4848 | ||
d4596a3d PA |
4849 | # Check whether --enable-werror was given. |
4850 | if test "${enable_werror+set}" = set; then : | |
4851 | enableval=$enable_werror; case "${enableval}" in | |
4852 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4853 | no | n) ERROR_ON_WARNING="no" ;; | |
4854 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
4855 | esac | |
4856 | fi | |
4857 | ||
4858 | ||
4859 | # Enable -Werror by default when using gcc | |
4860 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4861 | ERROR_ON_WARNING=yes | |
4862 | fi | |
4863 | ||
4864 | WERROR_CFLAGS="" | |
4865 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4866 | WERROR_CFLAGS="-Werror" | |
4867 | fi | |
4868 | ||
4869 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | |
854d88f0 | 4870 | -Wformat-nonliteral -Wno-char-subscripts" |
d4596a3d PA |
4871 | |
4872 | WARN_CFLAGS="" | |
4873 | if test "x$GCC" = xyes | |
4874 | then | |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
4876 | $as_echo_n "checking compiler warning flags... " >&6; } | |
4877 | # Separate out the -Werror flag as some files just cannot be | |
4878 | # compiled with it enabled. | |
4879 | for w in ${build_warnings}; do | |
4880 | case $w in | |
4881 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
4882 | *) # Check that GCC accepts it | |
4883 | saved_CFLAGS="$CFLAGS" | |
4884 | CFLAGS="$CFLAGS $w" | |
4885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4886 | /* end confdefs.h. */ | |
4887 | ||
4888 | int | |
4889 | main () | |
4890 | { | |
4891 | ||
4892 | ; | |
4893 | return 0; | |
4894 | } | |
4895 | _ACEOF | |
4896 | if ac_fn_c_try_compile "$LINENO"; then : | |
4897 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
4898 | fi | |
4899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4900 | CFLAGS="$saved_CFLAGS" | |
4901 | esac | |
4902 | done | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
4904 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
4905 | fi | |
4906 | ||
4907 | ||
4908 | ||
10e86dd7 DE |
4909 | old_LIBS="$LIBS" |
4910 | LIBS="$LIBS -ldl" | |
4911 | for ac_func in dladdr | |
4912 | do : | |
4913 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" | |
4914 | if test "x$ac_cv_func_dladdr" = x""yes; then : | |
4915 | cat >>confdefs.h <<_ACEOF | |
4916 | #define HAVE_DLADDR 1 | |
4917 | _ACEOF | |
4918 | ||
4919 | fi | |
4920 | done | |
4921 | ||
4922 | LIBS="$old_LIBS" | |
4923 | ||
81ecdfbb RW |
4924 | have_errno=no |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5 | |
4926 | $as_echo_n "checking for errno... " >&6; } | |
4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f450004a | 4928 | /* end confdefs.h. */ |
ccbd4912 | 4929 | |
81ecdfbb RW |
4930 | #if HAVE_ERRNO_H |
4931 | #include <errno.h> | |
4932 | #endif | |
f450004a DJ |
4933 | int |
4934 | main () | |
4935 | { | |
81ecdfbb RW |
4936 | static int x; x = errno; |
4937 | ; | |
f450004a | 4938 | return 0; |
81ecdfbb RW |
4939 | } |
4940 | _ACEOF | |
4941 | if ac_fn_c_try_link "$LINENO"; then : | |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5 | |
4943 | $as_echo "yes - in errno.h" >&6; }; | |
4944 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h | |
4945 | have_errno=yes | |
4946 | fi | |
4947 | rm -f core conftest.err conftest.$ac_objext \ | |
4948 | conftest$ac_exeext conftest.$ac_ext | |
4949 | if test $have_errno = no; then | |
4950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4951 | /* end confdefs.h. */ | |
4952 | ||
4953 | #if HAVE_ERRNO_H | |
4954 | #include <errno.h> | |
4955 | #endif | |
4956 | int | |
4957 | main () | |
4958 | { | |
4959 | extern int errno; static int x; x = errno; | |
f450004a DJ |
4960 | ; |
4961 | return 0; | |
4962 | } | |
4963 | _ACEOF | |
81ecdfbb RW |
4964 | if ac_fn_c_try_link "$LINENO"; then : |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5 | |
4966 | $as_echo "yes - must define" >&6; }; | |
4967 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h | |
4968 | ||
4969 | $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h | |
4970 | ||
f450004a | 4971 | else |
81ecdfbb RW |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4973 | $as_echo "no" >&6; } | |
4974 | fi | |
4975 | rm -f core conftest.err conftest.$ac_objext \ | |
4976 | conftest$ac_exeext conftest.$ac_ext | |
4977 | fi | |
4978 | ||
4979 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" | |
4980 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : | |
4981 | ac_have_decl=1 | |
4982 | else | |
4983 | ac_have_decl=0 | |
4984 | fi | |
f450004a | 4985 | |
81ecdfbb RW |
4986 | cat >>confdefs.h <<_ACEOF |
4987 | #define HAVE_DECL_STRERROR $ac_have_decl | |
4988 | _ACEOF | |
4989 | ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default" | |
4990 | if test "x$ac_cv_have_decl_perror" = x""yes; then : | |
4991 | ac_have_decl=1 | |
4992 | else | |
4993 | ac_have_decl=0 | |
f450004a | 4994 | fi |
81ecdfbb RW |
4995 | |
4996 | cat >>confdefs.h <<_ACEOF | |
4997 | #define HAVE_DECL_PERROR $ac_have_decl | |
4998 | _ACEOF | |
4999 | ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
5000 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
5001 | ac_have_decl=1 | |
5002 | else | |
5003 | ac_have_decl=0 | |
f450004a | 5004 | fi |
81ecdfbb RW |
5005 | |
5006 | cat >>confdefs.h <<_ACEOF | |
5007 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
5008 | _ACEOF | |
bb0116a4 JB |
5009 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
5010 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
5011 | ac_have_decl=1 | |
5012 | else | |
5013 | ac_have_decl=0 | |
5014 | fi | |
5015 | ||
5016 | cat >>confdefs.h <<_ACEOF | |
5017 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
5018 | _ACEOF | |
5019 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
5020 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
5021 | ac_have_decl=1 | |
5022 | else | |
5023 | ac_have_decl=0 | |
5024 | fi | |
5025 | ||
5026 | cat >>confdefs.h <<_ACEOF | |
5027 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
5028 | _ACEOF | |
81ecdfbb RW |
5029 | |
5030 | ||
5031 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
5032 | #include <sys/socket.h> | |
5033 | ||
5034 | " | |
5035 | if test "x$ac_cv_type_socklen_t" = x""yes; then : | |
f450004a | 5036 | |
ccbd4912 | 5037 | cat >>confdefs.h <<_ACEOF |
f450004a DJ |
5038 | #define HAVE_SOCKLEN_T 1 |
5039 | _ACEOF | |
5040 | ||
f450004a | 5041 | |
ccbd4912 | 5042 | fi |
f450004a | 5043 | |
fb1e4ffc | 5044 | |
8365dcf5 TJB |
5045 | ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h> |
5046 | ||
5047 | " | |
5048 | if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then : | |
5049 | ||
5050 | cat >>confdefs.h <<_ACEOF | |
5051 | #define HAVE_ELF32_AUXV_T 1 | |
5052 | _ACEOF | |
5053 | ||
5054 | ||
5055 | fi | |
5056 | ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h> | |
5057 | ||
5058 | " | |
5059 | if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then : | |
5060 | ||
5061 | cat >>confdefs.h <<_ACEOF | |
5062 | #define HAVE_ELF64_AUXV_T 1 | |
5063 | _ACEOF | |
5064 | ||
5065 | ||
5066 | fi | |
5067 | ||
5068 | ||
c16158bc JM |
5069 | |
5070 | ||
81ecdfbb RW |
5071 | # Check whether --with-pkgversion was given. |
5072 | if test "${with_pkgversion+set}" = set; then : | |
5073 | withval=$with_pkgversion; case "$withval" in | |
5074 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; | |
c16158bc JM |
5075 | no) PKGVERSION= ;; |
5076 | *) PKGVERSION="($withval) " ;; | |
5077 | esac | |
5078 | else | |
5079 | PKGVERSION="(GDB) " | |
5080 | ||
81ecdfbb RW |
5081 | fi |
5082 | ||
c16158bc JM |
5083 | |
5084 | ||
5085 | ||
5086 | ||
81ecdfbb RW |
5087 | # Check whether --with-bugurl was given. |
5088 | if test "${with_bugurl+set}" = set; then : | |
5089 | withval=$with_bugurl; case "$withval" in | |
5090 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; | |
c16158bc JM |
5091 | no) BUGURL= |
5092 | ;; | |
5093 | *) BUGURL="$withval" | |
5094 | ;; | |
5095 | esac | |
5096 | else | |
5097 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
5098 | ||
81ecdfbb RW |
5099 | fi |
5100 | ||
c16158bc JM |
5101 | case ${BUGURL} in |
5102 | "") | |
5103 | REPORT_BUGS_TO= | |
5104 | REPORT_BUGS_TEXI= | |
5105 | ;; | |
5106 | *) | |
5107 | REPORT_BUGS_TO="<$BUGURL>" | |
5108 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
5109 | ;; | |
5110 | esac; | |
5111 | ||
5112 | ||
5113 | ||
5114 | ||
5115 | cat >>confdefs.h <<_ACEOF | |
5116 | #define PKGVERSION "$PKGVERSION" | |
5117 | _ACEOF | |
5118 | ||
5119 | ||
5120 | cat >>confdefs.h <<_ACEOF | |
5121 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
5122 | _ACEOF | |
5123 | ||
5124 | ||
8838b45e NS |
5125 | # Check for various supplementary target information (beyond the |
5126 | # triplet) which might affect the choices in configure.srv. | |
5127 | case "${target}" in | |
5128 | i[34567]86-*-linux*) | |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5 | |
5130 | $as_echo_n "checking if building for x86-64... " >&6; } | |
5131 | if test "${gdb_cv_i386_is_x86_64+set}" = set; then : | |
5132 | $as_echo_n "(cached) " >&6 | |
5133 | else | |
5134 | save_CPPFLAGS="$CPPFLAGS" | |
5135 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 | /* end confdefs.h. */ | |
5138 | ||
5139 | #if __x86_64__ | |
5140 | got it | |
5141 | #endif | |
5142 | ||
5143 | _ACEOF | |
5144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5145 | $EGREP "got it" >/dev/null 2>&1; then : | |
5146 | gdb_cv_i386_is_x86_64=yes | |
5147 | else | |
5148 | gdb_cv_i386_is_x86_64=no | |
5149 | fi | |
5150 | rm -f conftest* | |
5151 | ||
5152 | CPPFLAGS="$save_CPPFLAGS" | |
5153 | fi | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5 | |
5155 | $as_echo "$gdb_cv_i386_is_x86_64" >&6; } | |
5156 | ;; | |
9ac544ce MK |
5157 | m68k-*-*) |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5 | |
5159 | $as_echo_n "checking if building for Coldfire... " >&6; } | |
5160 | if test "${gdb_cv_m68k_is_coldfire+set}" = set; then : | |
5161 | $as_echo_n "(cached) " >&6 | |
5162 | else | |
5163 | save_CPPFLAGS="$CPPFLAGS" | |
5164 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
5165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5166 | /* end confdefs.h. */ | |
5167 | ||
5168 | #ifdef __mcoldfire__ | |
5169 | got it | |
5170 | #endif | |
5171 | ||
5172 | _ACEOF | |
5173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5174 | $EGREP "got it" >/dev/null 2>&1; then : | |
5175 | gdb_cv_m68k_is_coldfire=yes | |
5176 | else | |
5177 | gdb_cv_m68k_is_coldfire=no | |
5178 | fi | |
5179 | rm -f conftest* | |
5180 | ||
5181 | CPPFLAGS="$save_CPPFLAGS" | |
5182 | fi | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5 | |
5184 | $as_echo "$gdb_cv_m68k_is_coldfire" >&6; } | |
5185 | ;; | |
8838b45e NS |
5186 | esac |
5187 | ||
7ea81414 | 5188 | . ${srcdir}/configure.srv |
d6e9fb05 | 5189 | |
68070c10 PA |
5190 | if test "${srv_mingwce}" = "yes"; then |
5191 | LIBS="$LIBS -lws2" | |
5192 | elif test "${srv_mingw}" = "yes"; then | |
12ea4b69 | 5193 | LIBS="$LIBS -lws2_32" |
ac8c974e AR |
5194 | elif test "${srv_qnx}" = "yes"; then |
5195 | LIBS="$LIBS -lsocket" | |
8ed54b31 JB |
5196 | elif test "${srv_lynxos}" = "yes"; then |
5197 | LIBS="$LIBS -lnetinet" | |
68070c10 PA |
5198 | fi |
5199 | ||
5200 | if test "${srv_mingw}" = "yes"; then | |
b80864fb | 5201 | |
81ecdfbb | 5202 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
b80864fb DJ |
5203 | |
5204 | fi | |
5205 | ||
58caa3dc | 5206 | if test "${srv_linux_usrregs}" = "yes"; then |
f450004a | 5207 | |
81ecdfbb | 5208 | $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h |
58caa3dc DJ |
5209 | |
5210 | fi | |
5211 | ||
5212 | if test "${srv_linux_regsets}" = "yes"; then | |
e9d25b98 | 5213 | |
81ecdfbb | 5214 | $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h |
e9d25b98 DJ |
5215 | |
5216 | ||
81ecdfbb RW |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 |
5218 | $as_echo_n "checking for PTRACE_GETREGS... " >&6; } | |
5219 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then : | |
5220 | $as_echo_n "(cached) " >&6 | |
bec39cab | 5221 | else |
81ecdfbb | 5222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5223 | /* end confdefs.h. */ |
58caa3dc | 5224 | #include <sys/ptrace.h> |
bec39cab AC |
5225 | int |
5226 | main () | |
5227 | { | |
58caa3dc | 5228 | PTRACE_GETREGS; |
bec39cab AC |
5229 | ; |
5230 | return 0; | |
5231 | } | |
5232 | _ACEOF | |
81ecdfbb | 5233 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
5234 | gdbsrv_cv_have_ptrace_getregs=yes |
5235 | else | |
81ecdfbb | 5236 | gdbsrv_cv_have_ptrace_getregs=no |
58caa3dc | 5237 | fi |
81ecdfbb | 5238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
5239 | fi |
5240 | ||
81ecdfbb RW |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
5242 | $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; } | |
58caa3dc | 5243 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
f450004a | 5244 | |
81ecdfbb | 5245 | $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h |
58caa3dc DJ |
5246 | |
5247 | fi | |
5248 | ||
81ecdfbb RW |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 |
5250 | $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } | |
5251 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then : | |
5252 | $as_echo_n "(cached) " >&6 | |
58caa3dc | 5253 | else |
81ecdfbb | 5254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5255 | /* end confdefs.h. */ |
58caa3dc | 5256 | #include <sys/ptrace.h> |
bec39cab AC |
5257 | int |
5258 | main () | |
5259 | { | |
58caa3dc | 5260 | PTRACE_GETFPXREGS; |
bec39cab AC |
5261 | ; |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
81ecdfbb | 5265 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
5266 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
5267 | else | |
81ecdfbb | 5268 | gdbsrv_cv_have_ptrace_getfpxregs=no |
58caa3dc | 5269 | fi |
81ecdfbb | 5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
5271 | fi |
5272 | ||
81ecdfbb RW |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
5274 | $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; } | |
58caa3dc | 5275 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
f450004a | 5276 | |
81ecdfbb | 5277 | $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h |
58caa3dc DJ |
5278 | |
5279 | fi | |
5280 | fi | |
5281 | ||
0d62e5e8 | 5282 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
81ecdfbb RW |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 |
5284 | $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } | |
5285 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : | |
5286 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5287 | else |
81ecdfbb | 5288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5289 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5290 | |
5291 | #define _SYSCALL32 | |
8e642873 PM |
5292 | /* Needed for new procfs interface on sparc-solaris. */ |
5293 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5294 | #include <sys/procfs.h> |
bec39cab AC |
5295 | int |
5296 | main () | |
5297 | { | |
0d62e5e8 | 5298 | lwpid_t avar |
bec39cab AC |
5299 | ; |
5300 | return 0; | |
5301 | } | |
5302 | _ACEOF | |
81ecdfbb | 5303 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5304 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
5305 | else | |
81ecdfbb | 5306 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 5307 | |
0d62e5e8 | 5308 | fi |
81ecdfbb | 5309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5310 | fi |
5311 | ||
5312 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then | |
bec39cab | 5313 | |
81ecdfbb | 5314 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
0d62e5e8 DJ |
5315 | |
5316 | fi | |
81ecdfbb RW |
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
5318 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } | |
0d62e5e8 | 5319 | |
81ecdfbb RW |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 |
5321 | $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } | |
5322 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : | |
5323 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5324 | else |
81ecdfbb | 5325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5326 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5327 | |
5328 | #define _SYSCALL32 | |
8e642873 PM |
5329 | /* Needed for new procfs interface on sparc-solaris. */ |
5330 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5331 | #include <sys/procfs.h> |
bec39cab AC |
5332 | int |
5333 | main () | |
5334 | { | |
0d62e5e8 | 5335 | psaddr_t avar |
bec39cab AC |
5336 | ; |
5337 | return 0; | |
5338 | } | |
5339 | _ACEOF | |
81ecdfbb | 5340 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5341 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
5342 | else | |
81ecdfbb | 5343 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 5344 | |
0d62e5e8 | 5345 | fi |
81ecdfbb | 5346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5347 | fi |
5348 | ||
5349 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then | |
bec39cab | 5350 | |
81ecdfbb | 5351 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
0d62e5e8 DJ |
5352 | |
5353 | fi | |
81ecdfbb RW |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
5355 | $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } | |
0d62e5e8 | 5356 | |
81ecdfbb RW |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 |
5358 | $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } | |
5359 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : | |
5360 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5361 | else |
81ecdfbb | 5362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5363 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5364 | |
5365 | #define _SYSCALL32 | |
8e642873 PM |
5366 | /* Needed for new procfs interface on sparc-solaris. */ |
5367 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5368 | #include <sys/procfs.h> |
bec39cab AC |
5369 | int |
5370 | main () | |
5371 | { | |
0d62e5e8 | 5372 | prgregset_t avar |
bec39cab AC |
5373 | ; |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
81ecdfbb | 5377 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5378 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
5379 | else | |
81ecdfbb | 5380 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 5381 | |
0d62e5e8 | 5382 | fi |
81ecdfbb | 5383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5384 | fi |
5385 | ||
5386 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then | |
bec39cab | 5387 | |
81ecdfbb | 5388 | $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
5389 | |
5390 | fi | |
81ecdfbb RW |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
5392 | $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } | |
0d62e5e8 | 5393 | |
81ecdfbb RW |
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 |
5395 | $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } | |
5396 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then : | |
5397 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5398 | else |
81ecdfbb | 5399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5400 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5401 | |
5402 | #define _SYSCALL32 | |
8e642873 PM |
5403 | /* Needed for new procfs interface on sparc-solaris. */ |
5404 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5405 | #include <sys/procfs.h> |
bec39cab AC |
5406 | int |
5407 | main () | |
5408 | { | |
0d62e5e8 | 5409 | elf_fpregset_t avar |
bec39cab AC |
5410 | ; |
5411 | return 0; | |
5412 | } | |
5413 | _ACEOF | |
81ecdfbb | 5414 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5415 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
5416 | else | |
81ecdfbb | 5417 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
bec39cab | 5418 | |
0d62e5e8 | 5419 | fi |
81ecdfbb | 5420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5421 | fi |
5422 | ||
5423 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then | |
bec39cab | 5424 | |
81ecdfbb | 5425 | $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
5426 | |
5427 | fi | |
81ecdfbb RW |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
5429 | $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } | |
0d62e5e8 DJ |
5430 | |
5431 | fi | |
5432 | ||
193f13e6 MK |
5433 | old_LIBS="$LIBS" |
5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
5435 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
5436 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
5437 | $as_echo_n "(cached) " >&6 | |
5438 | else | |
5439 | ac_check_lib_save_LIBS=$LIBS | |
5440 | LIBS="-ldl $LIBS" | |
5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5442 | /* end confdefs.h. */ | |
5443 | ||
5444 | /* Override any GCC internal prototype to avoid an error. | |
5445 | Use char because int might match the return type of a GCC | |
5446 | builtin and then its argument prototype would still apply. */ | |
5447 | #ifdef __cplusplus | |
5448 | extern "C" | |
5449 | #endif | |
5450 | char dlopen (); | |
5451 | int | |
5452 | main () | |
5453 | { | |
5454 | return dlopen (); | |
5455 | ; | |
5456 | return 0; | |
5457 | } | |
5458 | _ACEOF | |
5459 | if ac_fn_c_try_link "$LINENO"; then : | |
5460 | ac_cv_lib_dl_dlopen=yes | |
5461 | else | |
5462 | ac_cv_lib_dl_dlopen=no | |
5463 | fi | |
5464 | rm -f core conftest.err conftest.$ac_objext \ | |
5465 | conftest$ac_exeext conftest.$ac_ext | |
5466 | LIBS=$ac_check_lib_save_LIBS | |
5467 | fi | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
5469 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
5470 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
5471 | cat >>confdefs.h <<_ACEOF | |
5472 | #define HAVE_LIBDL 1 | |
5473 | _ACEOF | |
5474 | ||
5475 | LIBS="-ldl $LIBS" | |
5476 | ||
5477 | fi | |
5478 | ||
5479 | LIBS="$old_LIBS" | |
5480 | ||
0d62e5e8 DJ |
5481 | srv_thread_depfiles= |
5482 | srv_libs= | |
5483 | USE_THREAD_DB= | |
5484 | ||
5485 | if test "$srv_linux_thread_db" = "yes"; then | |
193f13e6 MK |
5486 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
5487 | srv_libs="-ldl" | |
f6528abd JK |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 |
5489 | $as_echo_n "checking for the dynamic export flag... " >&6; } | |
193f13e6 | 5490 | old_LDFLAGS="$LDFLAGS" |
f6528abd JK |
5491 | # Older GNU ld supports --export-dynamic but --dynamic-list may not be |
5492 | # supported there. | |
5493 | RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" | |
5494 | LDFLAGS="$LDFLAGS $RDYNAMIC" | |
193f13e6 | 5495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
5496 | /* end confdefs.h. */ |
5497 | ||
5498 | int | |
5499 | main () | |
5500 | { | |
5501 | ||
5502 | ; | |
5503 | return 0; | |
5504 | } | |
5505 | _ACEOF | |
81ecdfbb | 5506 | if ac_fn_c_try_link "$LINENO"; then : |
f6528abd JK |
5507 | found="-Wl,--dynamic-list" |
5508 | RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' | |
f6de3c42 | 5509 | else |
f6528abd JK |
5510 | RDYNAMIC="-rdynamic" |
5511 | LDFLAGS="$old_LDFLAGS $RDYNAMIC" | |
5512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5513 | /* end confdefs.h. */ | |
5514 | ||
5515 | int | |
5516 | main () | |
5517 | { | |
5518 | ||
5519 | ; | |
5520 | return 0; | |
5521 | } | |
5522 | _ACEOF | |
5523 | if ac_fn_c_try_link "$LINENO"; then : | |
5524 | found="-rdynamic" | |
5525 | else | |
5526 | found="no" | |
5527 | RDYNAMIC="" | |
5528 | fi | |
5529 | rm -f core conftest.err conftest.$ac_objext \ | |
5530 | conftest$ac_exeext conftest.$ac_ext | |
f6de3c42 | 5531 | fi |
81ecdfbb RW |
5532 | rm -f core conftest.err conftest.$ac_objext \ |
5533 | conftest$ac_exeext conftest.$ac_ext | |
bec39cab | 5534 | |
193f13e6 | 5535 | LDFLAGS="$old_LDFLAGS" |
f6528abd JK |
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
5537 | $as_echo "$found" >&6; } | |
193f13e6 MK |
5538 | else |
5539 | srv_libs="-lthread_db" | |
5540 | fi | |
0d62e5e8 | 5541 | |
0d62e5e8 DJ |
5542 | srv_thread_depfiles="thread-db.o proc-service.o" |
5543 | USE_THREAD_DB="-DUSE_THREAD_DB" | |
81ecdfbb RW |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 |
5545 | $as_echo_n "checking for TD_VERSION... " >&6; } | |
5546 | if test "${gdbsrv_cv_have_td_version+set}" = set; then : | |
5547 | $as_echo_n "(cached) " >&6 | |
3db0444b | 5548 | else |
81ecdfbb | 5549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3db0444b DJ |
5550 | /* end confdefs.h. */ |
5551 | #include <thread_db.h> | |
5552 | int | |
5553 | main () | |
5554 | { | |
5555 | TD_VERSION; | |
5556 | ; | |
5557 | return 0; | |
5558 | } | |
5559 | _ACEOF | |
81ecdfbb | 5560 | if ac_fn_c_try_compile "$LINENO"; then : |
3db0444b DJ |
5561 | gdbsrv_cv_have_td_version=yes |
5562 | else | |
81ecdfbb | 5563 | gdbsrv_cv_have_td_version=no |
3db0444b | 5564 | fi |
81ecdfbb | 5565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3db0444b | 5566 | fi |
81ecdfbb RW |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5 |
5568 | $as_echo "$gdbsrv_cv_have_td_version" >&6; } | |
3db0444b DJ |
5569 | if test $gdbsrv_cv_have_td_version = yes; then |
5570 | ||
81ecdfbb | 5571 | $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h |
dae5f5cf DJ |
5572 | |
5573 | fi | |
0d62e5e8 DJ |
5574 | fi |
5575 | ||
96f15937 PP |
5576 | |
5577 | # Check whether --with-libthread-db was given. | |
5578 | if test "${with_libthread_db+set}" = set; then : | |
5579 | withval=$with_libthread_db; srv_libthread_db_path="${withval}" | |
96f15937 PP |
5580 | srv_libs="$srv_libthread_db_path" |
5581 | ||
5582 | fi | |
5583 | ||
5584 | ||
193f13e6 MK |
5585 | if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then |
5586 | ||
5587 | $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h | |
5588 | ||
5589 | fi | |
5590 | ||
9b4b61c8 | 5591 | if test "$srv_xmlfiles" != ""; then |
fb1e4ffc DJ |
5592 | srv_xmlbuiltin="xml-builtin.o" |
5593 | ||
81ecdfbb | 5594 | $as_echo "#define USE_XML 1" >>confdefs.h |
fb1e4ffc DJ |
5595 | |
5596 | ||
c9a1864a YQ |
5597 | tmp_xmlfiles=$srv_xmlfiles |
5598 | srv_xmlfiles="" | |
5599 | for f in $tmp_xmlfiles; do | |
5600 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" | |
5601 | done | |
5602 | fi | |
5603 | ||
5604 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles" | |
5605 | GDBSERVER_LIBS="$srv_libs" | |
5606 | ||
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
5608 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
5609 | if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then : | |
5610 | $as_echo_n "(cached) " >&6 | |
5611 | else | |
5612 | ||
5613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5614 | /* end confdefs.h. */ | |
5615 | ||
5616 | int | |
5617 | main () | |
5618 | { | |
5619 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
5620 | ; | |
5621 | return 0; | |
5622 | } | |
5623 | _ACEOF | |
5624 | if ac_fn_c_try_link "$LINENO"; then : | |
5625 | gdbsrv_cv_have_sync_builtins=yes | |
5626 | else | |
5627 | gdbsrv_cv_have_sync_builtins=no | |
5628 | fi | |
5629 | rm -f core conftest.err conftest.$ac_objext \ | |
5630 | conftest$ac_exeext conftest.$ac_ext | |
5631 | fi | |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 | |
5633 | $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } | |
5634 | if test $gdbsrv_cv_have_sync_builtins = yes; then | |
5635 | ||
5636 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h | |
5637 | ||
5638 | fi | |
5639 | ||
5640 | saved_cflags="$CFLAGS" | |
5641 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5643 | /* end confdefs.h. */ | |
5644 | ||
5645 | int | |
5646 | main () | |
5647 | { | |
5648 | ||
5649 | ; | |
5650 | return 0; | |
5651 | } | |
5652 | _ACEOF | |
5653 | if ac_fn_c_try_compile "$LINENO"; then : | |
5654 | gdbsrv_cv_have_visibility_hidden=yes | |
5655 | else | |
5656 | gdbsrv_cv_have_visibility_hidden=no | |
5657 | fi | |
5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5659 | CFLAGS="$saved_cflags" | |
5660 | ||
5661 | ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> | |
5662 | " | |
5663 | if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then : | |
5664 | ac_have_decl=1 | |
5665 | else | |
5666 | ac_have_decl=0 | |
5667 | fi | |
5668 | ||
5669 | cat >>confdefs.h <<_ACEOF | |
5670 | #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl | |
5671 | _ACEOF | |
5672 | ||
5673 | ||
5674 | if test "$cross_compiling" = yes; then : | |
5675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5676 | /* end confdefs.h. */ | |
5677 | #include <sys/personality.h> | |
5678 | int | |
5679 | main () | |
5680 | { | |
5681 | ||
5682 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
5683 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
5684 | # endif | |
5685 | /* Test the flag could be set and stays set. */ | |
5686 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
5687 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
5688 | return 1 | |
5689 | ; | |
5690 | return 0; | |
5691 | } | |
5692 | _ACEOF | |
5693 | if ac_fn_c_try_link "$LINENO"; then : | |
5694 | gdbsrv_cv_have_personality=true | |
5695 | else | |
5696 | gdbsrv_cv_have_personality=false | |
5697 | fi | |
5698 | rm -f core conftest.err conftest.$ac_objext \ | |
5699 | conftest$ac_exeext conftest.$ac_ext | |
5700 | else | |
5701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5702 | /* end confdefs.h. */ | |
5703 | #include <sys/personality.h> | |
5704 | int | |
5705 | main () | |
5706 | { | |
5707 | ||
5708 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE | |
5709 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
5710 | # endif | |
5711 | /* Test the flag could be set and stays set. */ | |
5712 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
5713 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
5714 | return 1 | |
5715 | ; | |
5716 | return 0; | |
5717 | } | |
5718 | _ACEOF | |
5719 | if ac_fn_c_try_run "$LINENO"; then : | |
5720 | gdbsrv_cv_have_personality=true | |
5721 | else | |
5722 | gdbsrv_cv_have_personality=false | |
5723 | fi | |
5724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5725 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5726 | fi | |
5727 | ||
5728 | if $gdbsrv_cv_have_personality | |
5729 | then | |
5730 | ||
5731 | $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h | |
5732 | ||
5733 | fi | |
5734 | ||
5735 | ||
5736 | IPA_DEPFILES="" | |
5737 | extra_libraries="" | |
5738 | ||
5739 | # check whether to enable the inprocess agent | |
5740 | if test "$ipa_obj" != "" \ | |
5741 | -a "$gdbsrv_cv_have_sync_builtins" = yes \ | |
5742 | -a "$gdbsrv_cv_have_visibility_hidden" = yes; then | |
5743 | have_ipa=true | |
5744 | else | |
5745 | have_ipa=false | |
5746 | fi | |
5747 | ||
5748 | # Check whether --enable-inprocess-agent was given. | |
5749 | if test "${enable_inprocess_agent+set}" = set; then : | |
5750 | enableval=$enable_inprocess_agent; case "$enableval" in | |
5751 | yes) want_ipa=true ;; | |
5752 | no) want_ipa=false ;; | |
5753 | *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;; | |
5754 | esac | |
5755 | else | |
5756 | want_ipa=$have_ipa | |
5757 | fi | |
5758 | ||
5759 | ||
5760 | if $want_ipa ; then | |
5761 | if $have_ipa ; then | |
5762 | IPA_DEPFILES="$ipa_obj" | |
5763 | extra_libraries="$extra_libraries libinproctrace.so" | |
5764 | else | |
5765 | as_fn_error "inprocess agent not supported for this target" "$LINENO" 5 | |
5766 | fi | |
5767 | fi | |
5768 | ||
5769 | ||
5770 | ||
5771 | ||
5772 | ||
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
5779 | ||
5780 | ||
5781 | LIBC_FATAL_STDERR_=1 | |
5782 | export LIBC_FATAL_STDERR_ | |
5783 | ||
5784 | ||
5785 | ||
5786 | ||
5787 | ||
5788 | for ac_header in $gl_header_list | |
5789 | do : | |
5790 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5791 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5792 | eval as_val=\$$as_ac_Header | |
5793 | if test "x$as_val" = x""yes; then : | |
5794 | cat >>confdefs.h <<_ACEOF | |
5795 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5796 | _ACEOF | |
5797 | ||
5798 | fi | |
5799 | ||
5800 | done | |
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | for ac_func in $gl_func_list | |
5811 | do : | |
5812 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5813 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5814 | eval as_val=\$$as_ac_var | |
5815 | if test "x$as_val" = x""yes; then : | |
5816 | cat >>confdefs.h <<_ACEOF | |
5817 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5818 | _ACEOF | |
5819 | ||
5820 | fi | |
5821 | done | |
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | ||
5828 | GNULIB_MEMCHR=0; | |
5829 | GNULIB_MEMMEM=0; | |
5830 | GNULIB_MEMPCPY=0; | |
5831 | GNULIB_MEMRCHR=0; | |
5832 | GNULIB_RAWMEMCHR=0; | |
5833 | GNULIB_STPCPY=0; | |
5834 | GNULIB_STPNCPY=0; | |
5835 | GNULIB_STRCHRNUL=0; | |
5836 | GNULIB_STRDUP=0; | |
5837 | GNULIB_STRNCAT=0; | |
5838 | GNULIB_STRNDUP=0; | |
5839 | GNULIB_STRNLEN=0; | |
5840 | GNULIB_STRPBRK=0; | |
5841 | GNULIB_STRSEP=0; | |
5842 | GNULIB_STRSTR=0; | |
5843 | GNULIB_STRCASESTR=0; | |
5844 | GNULIB_STRTOK_R=0; | |
5845 | GNULIB_MBSLEN=0; | |
5846 | GNULIB_MBSNLEN=0; | |
5847 | GNULIB_MBSCHR=0; | |
5848 | GNULIB_MBSRCHR=0; | |
5849 | GNULIB_MBSSTR=0; | |
5850 | GNULIB_MBSCASECMP=0; | |
5851 | GNULIB_MBSNCASECMP=0; | |
5852 | GNULIB_MBSPCASECMP=0; | |
5853 | GNULIB_MBSCASESTR=0; | |
5854 | GNULIB_MBSCSPN=0; | |
5855 | GNULIB_MBSPBRK=0; | |
5856 | GNULIB_MBSSPN=0; | |
5857 | GNULIB_MBSSEP=0; | |
5858 | GNULIB_MBSTOK_R=0; | |
5859 | GNULIB_STRERROR=0; | |
5860 | GNULIB_STRSIGNAL=0; | |
5861 | GNULIB_STRVERSCMP=0; | |
5862 | HAVE_MBSLEN=0; | |
5863 | HAVE_MEMCHR=1; | |
5864 | HAVE_DECL_MEMMEM=1; | |
5865 | HAVE_MEMPCPY=1; | |
5866 | HAVE_DECL_MEMRCHR=1; | |
5867 | HAVE_RAWMEMCHR=1; | |
5868 | HAVE_STPCPY=1; | |
5869 | HAVE_STPNCPY=1; | |
5870 | HAVE_STRCHRNUL=1; | |
5871 | HAVE_DECL_STRDUP=1; | |
5872 | HAVE_DECL_STRNDUP=1; | |
5873 | HAVE_DECL_STRNLEN=1; | |
5874 | HAVE_STRPBRK=1; | |
5875 | HAVE_STRSEP=1; | |
5876 | HAVE_STRCASESTR=1; | |
5877 | HAVE_DECL_STRTOK_R=1; | |
5878 | HAVE_DECL_STRSIGNAL=1; | |
5879 | HAVE_STRVERSCMP=1; | |
5880 | REPLACE_MEMCHR=0; | |
5881 | REPLACE_MEMMEM=0; | |
5882 | REPLACE_STPNCPY=0; | |
5883 | REPLACE_STRDUP=0; | |
5884 | REPLACE_STRSTR=0; | |
5885 | REPLACE_STRCASESTR=0; | |
5886 | REPLACE_STRERROR=0; | |
5887 | REPLACE_STRNCAT=0; | |
5888 | REPLACE_STRNDUP=0; | |
5889 | REPLACE_STRNLEN=0; | |
5890 | REPLACE_STRSIGNAL=0; | |
5891 | REPLACE_STRTOK_R=0; | |
5892 | UNDEFINE_STRTOK_R=0; | |
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it | |
5907 | # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is | |
5908 | # irrelevant for anonymous mappings. | |
5909 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
5910 | if test "x$ac_cv_func_mmap" = x""yes; then : | |
5911 | gl_have_mmap=yes | |
5912 | else | |
5913 | gl_have_mmap=no | |
5914 | fi | |
5915 | ||
5916 | ||
5917 | # Try to allow MAP_ANONYMOUS. | |
5918 | gl_have_mmap_anonymous=no | |
5919 | if test $gl_have_mmap = yes; then | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 | |
5921 | $as_echo_n "checking for MAP_ANONYMOUS... " >&6; } | |
5922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5923 | /* end confdefs.h. */ | |
5924 | ||
5925 | #include <sys/mman.h> | |
5926 | #ifdef MAP_ANONYMOUS | |
5927 | I cant identify this map. | |
5928 | #endif | |
5929 | ||
5930 | _ACEOF | |
5931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5932 | $EGREP "I cant identify this map." >/dev/null 2>&1; then : | |
5933 | gl_have_mmap_anonymous=yes | |
5934 | fi | |
5935 | rm -f conftest* | |
5936 | ||
5937 | if test $gl_have_mmap_anonymous != yes; then | |
5938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5939 | /* end confdefs.h. */ | |
5940 | ||
5941 | #include <sys/mman.h> | |
5942 | #ifdef MAP_ANON | |
5943 | I cant identify this map. | |
5944 | #endif | |
5945 | ||
5946 | _ACEOF | |
5947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5948 | $EGREP "I cant identify this map." >/dev/null 2>&1; then : | |
5949 | ||
5950 | $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h | |
5951 | ||
5952 | gl_have_mmap_anonymous=yes | |
5953 | fi | |
5954 | rm -f conftest* | |
5955 | ||
5956 | fi | |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 | |
5958 | $as_echo "$gl_have_mmap_anonymous" >&6; } | |
5959 | if test $gl_have_mmap_anonymous = yes; then | |
5960 | ||
5961 | $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h | |
5962 | ||
5963 | fi | |
5964 | fi | |
5965 | ||
5966 | ||
5967 | : | |
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | : | |
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | : | |
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | if test $ac_cv_func_memchr = yes; then | |
5990 | # Detect platform-specific bugs in some versions of glibc: | |
5991 | # memchr should not dereference anything with length 0 | |
5992 | # http://bugzilla.redhat.com/499689 | |
5993 | # memchr should not dereference overestimated length after a match | |
5994 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 | |
5995 | # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 | |
5996 | # Assume that memchr works on platforms that lack mprotect. | |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 | |
5998 | $as_echo_n "checking whether memchr works... " >&6; } | |
5999 | if test "${gl_cv_func_memchr_works+set}" = set; then : | |
6000 | $as_echo_n "(cached) " >&6 | |
6001 | else | |
6002 | if test "$cross_compiling" = yes; then : | |
6003 | gl_cv_func_memchr_works="guessing no" | |
6004 | else | |
6005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6006 | /* end confdefs.h. */ | |
6007 | ||
6008 | #include <string.h> | |
6009 | #if HAVE_SYS_MMAN_H | |
6010 | # include <fcntl.h> | |
6011 | # include <unistd.h> | |
6012 | # include <sys/types.h> | |
6013 | # include <sys/mman.h> | |
6014 | # ifndef MAP_FILE | |
6015 | # define MAP_FILE 0 | |
6016 | # endif | |
6017 | #endif | |
6018 | ||
6019 | int | |
6020 | main () | |
6021 | { | |
6022 | ||
6023 | char *fence = NULL; | |
6024 | #if HAVE_SYS_MMAN_H && HAVE_MPROTECT | |
6025 | # if HAVE_MAP_ANONYMOUS | |
6026 | const int flags = MAP_ANONYMOUS | MAP_PRIVATE; | |
6027 | const int fd = -1; | |
6028 | # else /* !HAVE_MAP_ANONYMOUS */ | |
6029 | const int flags = MAP_FILE | MAP_PRIVATE; | |
6030 | int fd = open ("/dev/zero", O_RDONLY, 0666); | |
6031 | if (fd >= 0) | |
6032 | # endif | |
6033 | { | |
6034 | int pagesize = getpagesize (); | |
6035 | char *two_pages = | |
6036 | (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, | |
6037 | flags, fd, 0); | |
6038 | if (two_pages != (char *)(-1) | |
6039 | && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) | |
6040 | fence = two_pages + pagesize; | |
6041 | } | |
6042 | #endif | |
6043 | if (fence) | |
6044 | { | |
6045 | if (memchr (fence, 0, 0)) | |
6046 | return 1; | |
6047 | strcpy (fence - 9, "12345678"); | |
6048 | if (memchr (fence - 9, 0, 79) != fence - 1) | |
6049 | return 2; | |
6050 | } | |
6051 | return 0; | |
6052 | ||
6053 | ; | |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
6057 | if ac_fn_c_try_run "$LINENO"; then : | |
6058 | gl_cv_func_memchr_works=yes | |
6059 | else | |
6060 | gl_cv_func_memchr_works=no | |
6061 | fi | |
6062 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6063 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6064 | fi | |
6065 | ||
6066 | fi | |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 | |
6068 | $as_echo "$gl_cv_func_memchr_works" >&6; } | |
6069 | if test "$gl_cv_func_memchr_works" != yes; then | |
6070 | REPLACE_MEMCHR=1 | |
6071 | fi | |
6072 | else | |
6073 | HAVE_MEMCHR=0 | |
6074 | fi | |
6075 | if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then | |
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" | |
6085 | ||
6086 | ||
6087 | for ac_header in bp-sym.h | |
6088 | do : | |
6089 | ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" | |
6090 | if test "x$ac_cv_header_bp_sym_h" = x""yes; then : | |
6091 | cat >>confdefs.h <<_ACEOF | |
6092 | #define HAVE_BP_SYM_H 1 | |
6093 | _ACEOF | |
6094 | ||
6095 | fi | |
6096 | ||
6097 | done | |
6098 | ||
6099 | ||
6100 | fi | |
6101 | ||
6102 | ||
6103 | ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" | |
6104 | if test "x$ac_cv_have_decl_memmem" = x""yes; then : | |
6105 | ac_have_decl=1 | |
6106 | else | |
6107 | ac_have_decl=0 | |
6108 | fi | |
6109 | ||
6110 | cat >>confdefs.h <<_ACEOF | |
6111 | #define HAVE_DECL_MEMMEM $ac_have_decl | |
6112 | _ACEOF | |
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | for ac_func in memmem | |
6128 | do : | |
6129 | ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" | |
6130 | if test "x$ac_cv_func_memmem" = x""yes; then : | |
6131 | cat >>confdefs.h <<_ACEOF | |
6132 | #define HAVE_MEMMEM 1 | |
6133 | _ACEOF | |
6134 | ||
6135 | else | |
6136 | ||
6137 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
6138 | ||
6139 | fi | |
6140 | done | |
6141 | ||
6142 | ||
6143 | ||
6144 | : | |
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | if test $ac_cv_have_decl_memmem = no; then | |
6151 | HAVE_DECL_MEMMEM=0 | |
6152 | fi | |
6153 | : | |
6154 | ||
6155 | ||
6156 | gl_cv_c_multiarch=no | |
6157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6158 | /* end confdefs.h. */ | |
6159 | #ifndef __APPLE_CC__ | |
6160 | not a universal capable compiler | |
6161 | #endif | |
6162 | typedef int dummy; | |
6163 | ||
6164 | _ACEOF | |
6165 | if ac_fn_c_try_compile "$LINENO"; then : | |
6166 | ||
6167 | arch= | |
6168 | prev= | |
6169 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | |
6170 | if test -n "$prev"; then | |
6171 | case $word in | |
6172 | i?86 | x86_64 | ppc | ppc64) | |
6173 | if test -z "$arch" || test "$arch" = "$word"; then | |
6174 | arch="$word" | |
6175 | else | |
6176 | gl_cv_c_multiarch=yes | |
6177 | fi | |
6178 | ;; | |
6179 | esac | |
6180 | prev= | |
6181 | else | |
6182 | if test "x$word" = "x-arch"; then | |
6183 | prev=arch | |
6184 | fi | |
6185 | fi | |
6186 | done | |
6187 | ||
6188 | fi | |
6189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6190 | if test $gl_cv_c_multiarch = yes; then | |
6191 | ||
6192 | $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6193 | ||
6194 | APPLE_UNIVERSAL_BUILD=1 | |
6195 | else | |
6196 | APPLE_UNIVERSAL_BUILD=0 | |
6197 | fi | |
6198 | ||
6199 | ||
6200 | ||
6201 | REPLACE_NULL=0; | |
6202 | HAVE_WCHAR_T=1; | |
6203 | STDDEF_H=''; | |
6204 | ||
6205 | ||
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 | |
6207 | $as_echo_n "checking for wchar_t... " >&6; } | |
6208 | if test "${gt_cv_c_wchar_t+set}" = set; then : | |
6209 | $as_echo_n "(cached) " >&6 | |
6210 | else | |
6211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6212 | /* end confdefs.h. */ | |
6213 | #include <stddef.h> | |
6214 | wchar_t foo = (wchar_t)'\0'; | |
6215 | int | |
6216 | main () | |
6217 | { | |
6218 | ||
6219 | ; | |
6220 | return 0; | |
6221 | } | |
6222 | _ACEOF | |
6223 | if ac_fn_c_try_compile "$LINENO"; then : | |
6224 | gt_cv_c_wchar_t=yes | |
6225 | else | |
6226 | gt_cv_c_wchar_t=no | |
6227 | fi | |
6228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6229 | fi | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | |
6231 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
6232 | if test $gt_cv_c_wchar_t = yes; then | |
6233 | ||
6234 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
6235 | ||
6236 | fi | |
6237 | ||
6238 | ||
6239 | ||
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 | |
6241 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | |
6242 | if test "${gl_cv_have_include_next+set}" = set; then : | |
6243 | $as_echo_n "(cached) " >&6 | |
6244 | else | |
6245 | rm -rf conftestd1a conftestd1b conftestd2 | |
6246 | mkdir conftestd1a conftestd1b conftestd2 | |
6247 | cat <<EOF > conftestd1a/conftest.h | |
6248 | #define DEFINED_IN_CONFTESTD1 | |
6249 | #include_next <conftest.h> | |
6250 | #ifdef DEFINED_IN_CONFTESTD2 | |
6251 | int foo; | |
6252 | #else | |
6253 | #error "include_next doesn't work" | |
6254 | #endif | |
6255 | EOF | |
6256 | cat <<EOF > conftestd1b/conftest.h | |
6257 | #define DEFINED_IN_CONFTESTD1 | |
6258 | #include <stdio.h> | |
6259 | #include_next <conftest.h> | |
6260 | #ifdef DEFINED_IN_CONFTESTD2 | |
6261 | int foo; | |
6262 | #else | |
6263 | #error "include_next doesn't work" | |
6264 | #endif | |
6265 | EOF | |
6266 | cat <<EOF > conftestd2/conftest.h | |
6267 | #ifndef DEFINED_IN_CONFTESTD1 | |
6268 | #error "include_next test doesn't work" | |
6269 | #endif | |
6270 | #define DEFINED_IN_CONFTESTD2 | |
6271 | EOF | |
6272 | gl_save_CPPFLAGS="$CPPFLAGS" | |
6273 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" | |
6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6275 | /* end confdefs.h. */ | |
6276 | #include <conftest.h> | |
6277 | _ACEOF | |
6278 | if ac_fn_c_try_compile "$LINENO"; then : | |
6279 | gl_cv_have_include_next=yes | |
6280 | else | |
6281 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" | |
6282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6283 | /* end confdefs.h. */ | |
6284 | #include <conftest.h> | |
6285 | _ACEOF | |
6286 | if ac_fn_c_try_compile "$LINENO"; then : | |
6287 | gl_cv_have_include_next=buggy | |
6288 | else | |
6289 | gl_cv_have_include_next=no | |
6290 | fi | |
6291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6292 | ||
6293 | fi | |
6294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6295 | CPPFLAGS="$gl_save_CPPFLAGS" | |
6296 | rm -rf conftestd1a conftestd1b conftestd2 | |
6297 | ||
6298 | fi | |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 | |
6300 | $as_echo "$gl_cv_have_include_next" >&6; } | |
6301 | PRAGMA_SYSTEM_HEADER= | |
6302 | if test $gl_cv_have_include_next = yes; then | |
6303 | INCLUDE_NEXT=include_next | |
6304 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
6305 | if test -n "$GCC"; then | |
6306 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' | |
6307 | fi | |
6308 | else | |
6309 | if test $gl_cv_have_include_next = buggy; then | |
6310 | INCLUDE_NEXT=include | |
6311 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
6312 | else | |
6313 | INCLUDE_NEXT=include | |
6314 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include | |
6315 | fi | |
6316 | fi | |
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
6328 | $as_echo_n "checking for long long int... " >&6; } | |
6329 | if test "${ac_cv_type_long_long_int+set}" = set; then : | |
6330 | $as_echo_n "(cached) " >&6 | |
6331 | else | |
6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6333 | /* end confdefs.h. */ | |
6334 | ||
6335 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
6336 | implementations with broken preprocessors. Perhaps this can | |
6337 | be revisited in 2012. In the meantime, code should not expect | |
6338 | #if to work with literals wider than 32 bits. */ | |
6339 | /* Test literals. */ | |
6340 | long long int ll = 9223372036854775807ll; | |
6341 | long long int nll = -9223372036854775807LL; | |
6342 | unsigned long long int ull = 18446744073709551615ULL; | |
6343 | /* Test constant expressions. */ | |
6344 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
6345 | ? 1 : -1)]; | |
6346 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
6347 | ? 1 : -1)]; | |
6348 | int i = 63; | |
6349 | int | |
6350 | main () | |
6351 | { | |
6352 | /* Test availability of runtime routines for shift and division. */ | |
6353 | long long int llmax = 9223372036854775807ll; | |
6354 | unsigned long long int ullmax = 18446744073709551615ull; | |
6355 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
6356 | | (llmax / ll) | (llmax % ll) | |
6357 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
6358 | | (ullmax / ull) | (ullmax % ull)); | |
6359 | ; | |
6360 | return 0; | |
6361 | } | |
6362 | ||
6363 | _ACEOF | |
6364 | if ac_fn_c_try_link "$LINENO"; then : | |
6365 | if test "$cross_compiling" = yes; then : | |
6366 | ac_cv_type_long_long_int=yes | |
6367 | else | |
6368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6369 | /* end confdefs.h. */ | |
6370 | #include <limits.h> | |
6371 | #ifndef LLONG_MAX | |
6372 | # define HALF \ | |
6373 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
6374 | # define LLONG_MAX (HALF - 1 + HALF) | |
6375 | #endif | |
6376 | int | |
6377 | main () | |
6378 | { | |
6379 | long long int n = 1; | |
6380 | int i; | |
6381 | for (i = 0; ; i++) | |
6382 | { | |
6383 | long long int m = n << i; | |
6384 | if (m >> i != n) | |
6385 | return 1; | |
6386 | if (LLONG_MAX / 2 < m) | |
6387 | break; | |
6388 | } | |
6389 | return 0; | |
6390 | ; | |
6391 | return 0; | |
6392 | } | |
6393 | _ACEOF | |
6394 | if ac_fn_c_try_run "$LINENO"; then : | |
6395 | ac_cv_type_long_long_int=yes | |
6396 | else | |
6397 | ac_cv_type_long_long_int=no | |
6398 | fi | |
6399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6400 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6401 | fi | |
6402 | ||
6403 | else | |
6404 | ac_cv_type_long_long_int=no | |
6405 | fi | |
6406 | rm -f core conftest.err conftest.$ac_objext \ | |
6407 | conftest$ac_exeext conftest.$ac_ext | |
6408 | fi | |
6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
6410 | $as_echo "$ac_cv_type_long_long_int" >&6; } | |
6411 | if test $ac_cv_type_long_long_int = yes; then | |
6412 | ||
6413 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | |
6414 | ||
6415 | fi | |
6416 | ||
6417 | ||
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | |
6419 | $as_echo_n "checking for unsigned long long int... " >&6; } | |
6420 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : | |
6421 | $as_echo_n "(cached) " >&6 | |
6422 | else | |
6423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6424 | /* end confdefs.h. */ | |
6425 | ||
6426 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
6427 | implementations with broken preprocessors. Perhaps this can | |
6428 | be revisited in 2012. In the meantime, code should not expect | |
6429 | #if to work with literals wider than 32 bits. */ | |
6430 | /* Test literals. */ | |
6431 | long long int ll = 9223372036854775807ll; | |
6432 | long long int nll = -9223372036854775807LL; | |
6433 | unsigned long long int ull = 18446744073709551615ULL; | |
6434 | /* Test constant expressions. */ | |
6435 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
6436 | ? 1 : -1)]; | |
6437 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
6438 | ? 1 : -1)]; | |
6439 | int i = 63; | |
6440 | int | |
6441 | main () | |
6442 | { | |
6443 | /* Test availability of runtime routines for shift and division. */ | |
6444 | long long int llmax = 9223372036854775807ll; | |
6445 | unsigned long long int ullmax = 18446744073709551615ull; | |
6446 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
6447 | | (llmax / ll) | (llmax % ll) | |
6448 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
6449 | | (ullmax / ull) | (ullmax % ull)); | |
6450 | ; | |
6451 | return 0; | |
6452 | } | |
6453 | ||
6454 | _ACEOF | |
6455 | if ac_fn_c_try_link "$LINENO"; then : | |
6456 | ac_cv_type_unsigned_long_long_int=yes | |
6457 | else | |
6458 | ac_cv_type_unsigned_long_long_int=no | |
6459 | fi | |
6460 | rm -f core conftest.err conftest.$ac_objext \ | |
6461 | conftest$ac_exeext conftest.$ac_ext | |
6462 | fi | |
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
6464 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
6465 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
6466 | ||
6467 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | |
6468 | ||
6469 | fi | |
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 | |
6482 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
6483 | if test "${ac_cv_c_restrict+set}" = set; then : | |
6484 | $as_echo_n "(cached) " >&6 | |
6485 | else | |
6486 | ac_cv_c_restrict=no | |
6487 | # The order here caters to the fact that C++ does not require restrict. | |
6488 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
6489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6490 | /* end confdefs.h. */ | |
6491 | typedef int * int_ptr; | |
6492 | int foo (int_ptr $ac_kw ip) { | |
6493 | return ip[0]; | |
6494 | } | |
6495 | int | |
6496 | main () | |
6497 | { | |
6498 | int s[1]; | |
6499 | int * $ac_kw t = s; | |
6500 | t[0] = 0; | |
6501 | return foo(t) | |
6502 | ; | |
6503 | return 0; | |
6504 | } | |
6505 | _ACEOF | |
6506 | if ac_fn_c_try_compile "$LINENO"; then : | |
6507 | ac_cv_c_restrict=$ac_kw | |
6508 | fi | |
6509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6510 | test "$ac_cv_c_restrict" != no && break | |
6511 | done | |
6512 | ||
6513 | fi | |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | |
6515 | $as_echo "$ac_cv_c_restrict" >&6; } | |
6516 | ||
6517 | case $ac_cv_c_restrict in | |
6518 | restrict) ;; | |
6519 | no) $as_echo "#define restrict /**/" >>confdefs.h | |
6520 | ;; | |
6521 | *) cat >>confdefs.h <<_ACEOF | |
6522 | #define restrict $ac_cv_c_restrict | |
6523 | _ACEOF | |
6524 | ;; | |
6525 | esac | |
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | : | |
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | if test $gl_cv_have_include_next = yes; then | |
6548 | gl_cv_next_string_h='<'string.h'>' | |
6549 | else | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 | |
6551 | $as_echo_n "checking absolute name of <string.h>... " >&6; } | |
6552 | if test "${gl_cv_next_string_h+set}" = set; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | ||
6556 | if test $ac_cv_header_string_h = yes; then | |
6557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6558 | /* end confdefs.h. */ | |
6559 | #include <string.h> | |
6560 | ||
6561 | _ACEOF | |
6562 | case "$host_os" in | |
6563 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
6564 | *) gl_absname_cpp="$ac_cpp" ;; | |
6565 | esac | |
6566 | gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
6567 | sed -n '\#/string.h#{ | |
6568 | s#.*"\(.*/string.h\)".*#\1# | |
6569 | s#^/[^/]#//&# | |
6570 | p | |
6571 | q | |
6572 | }'`'"' | |
6573 | else | |
6574 | gl_cv_next_string_h='<'string.h'>' | |
6575 | fi | |
6576 | ||
6577 | fi | |
6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 | |
6579 | $as_echo "$gl_cv_next_string_h" >&6; } | |
6580 | fi | |
6581 | NEXT_STRING_H=$gl_cv_next_string_h | |
6582 | ||
6583 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
6584 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
6585 | gl_next_as_first_directive='<'string.h'>' | |
6586 | else | |
6587 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
6588 | gl_next_as_first_directive=$gl_cv_next_string_h | |
6589 | fi | |
6590 | NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive | |
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do | |
6597 | as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` | |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 | |
6599 | $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } | |
6600 | if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : | |
6601 | $as_echo_n "(cached) " >&6 | |
6602 | else | |
6603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6604 | /* end confdefs.h. */ | |
6605 | #include <string.h> | |
6606 | ||
6607 | int | |
6608 | main () | |
6609 | { | |
6610 | #undef $gl_func | |
6611 | (void) $gl_func; | |
6612 | ; | |
6613 | return 0; | |
6614 | } | |
6615 | _ACEOF | |
6616 | if ac_fn_c_try_compile "$LINENO"; then : | |
6617 | eval "$as_gl_Symbol=yes" | |
6618 | else | |
6619 | eval "$as_gl_Symbol=no" | |
6620 | fi | |
6621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6622 | fi | |
6623 | eval ac_res=\$$as_gl_Symbol | |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6625 | $as_echo "$ac_res" >&6; } | |
6626 | eval as_val=\$$as_gl_Symbol | |
6627 | if test "x$as_val" = x""yes; then : | |
6628 | cat >>confdefs.h <<_ACEOF | |
6629 | #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 | |
6630 | _ACEOF | |
6631 | ||
6632 | eval ac_cv_have_decl_$gl_func=yes | |
6633 | fi | |
6634 | done | |
6635 | ||
6636 | ||
6637 | ||
6638 | GNULIB_BTOWC=0; | |
6639 | GNULIB_WCTOB=0; | |
6640 | GNULIB_MBSINIT=0; | |
6641 | GNULIB_MBRTOWC=0; | |
6642 | GNULIB_MBRLEN=0; | |
6643 | GNULIB_MBSRTOWCS=0; | |
6644 | GNULIB_MBSNRTOWCS=0; | |
6645 | GNULIB_WCRTOMB=0; | |
6646 | GNULIB_WCSRTOMBS=0; | |
6647 | GNULIB_WCSNRTOMBS=0; | |
6648 | GNULIB_WCWIDTH=0; | |
6649 | HAVE_BTOWC=1; | |
6650 | HAVE_MBSINIT=1; | |
6651 | HAVE_MBRTOWC=1; | |
6652 | HAVE_MBRLEN=1; | |
6653 | HAVE_MBSRTOWCS=1; | |
6654 | HAVE_MBSNRTOWCS=1; | |
6655 | HAVE_WCRTOMB=1; | |
6656 | HAVE_WCSRTOMBS=1; | |
6657 | HAVE_WCSNRTOMBS=1; | |
6658 | HAVE_DECL_WCTOB=1; | |
6659 | HAVE_DECL_WCWIDTH=1; | |
6660 | REPLACE_MBSTATE_T=0; | |
6661 | REPLACE_BTOWC=0; | |
6662 | REPLACE_WCTOB=0; | |
6663 | REPLACE_MBSINIT=0; | |
6664 | REPLACE_MBRTOWC=0; | |
6665 | REPLACE_MBRLEN=0; | |
6666 | REPLACE_MBSRTOWCS=0; | |
6667 | REPLACE_MBSNRTOWCS=0; | |
6668 | REPLACE_WCRTOMB=0; | |
6669 | REPLACE_WCSRTOMBS=0; | |
6670 | REPLACE_WCSNRTOMBS=0; | |
6671 | REPLACE_WCWIDTH=0; | |
6672 | ||
6673 | ||
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 | |
6675 | $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } | |
6676 | if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : | |
6677 | $as_echo_n "(cached) " >&6 | |
6678 | else | |
6679 | gl_cv_header_wchar_h_correct_inline=yes | |
6680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6681 | /* end confdefs.h. */ | |
6682 | ||
6683 | #define wcstod renamed_wcstod | |
6684 | #include <wchar.h> | |
6685 | extern int zero (void); | |
6686 | int main () { return zero(); } | |
6687 | ||
6688 | _ACEOF | |
6689 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6690 | (eval $ac_compile) 2>&5 | |
6691 | ac_status=$? | |
6692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6693 | test $ac_status = 0; }; then | |
6694 | mv conftest.$ac_objext conftest1.$ac_objext | |
6695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6696 | /* end confdefs.h. */ | |
6697 | ||
6698 | #define wcstod renamed_wcstod | |
6699 | #include <wchar.h> | |
6700 | int zero (void) { return 0; } | |
6701 | ||
6702 | _ACEOF | |
6703 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6704 | (eval $ac_compile) 2>&5 | |
6705 | ac_status=$? | |
6706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6707 | test $ac_status = 0; }; then | |
6708 | mv conftest.$ac_objext conftest2.$ac_objext | |
6709 | if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then | |
6710 | : | |
6711 | else | |
6712 | gl_cv_header_wchar_h_correct_inline=no | |
6713 | fi | |
6714 | fi | |
6715 | fi | |
6716 | rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext | |
6717 | ||
6718 | fi | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 | |
6720 | $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } | |
6721 | if test $gl_cv_header_wchar_h_correct_inline = no; then | |
6722 | as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). | |
6723 | This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in | |
6724 | C99 mode. You have four options: | |
6725 | - Add the flag -fgnu89-inline to CC and reconfigure, or | |
6726 | - Fix your include files, using parts of | |
6727 | <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or | |
6728 | - Use a gcc version older than 4.3, or | |
6729 | - Don't use the flags -std=c99 or -std=gnu99. | |
6730 | Configuration aborted." "$LINENO" 5 | |
6731 | fi | |
6732 | ||
6733 | ||
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 | |
6735 | $as_echo_n "checking for wint_t... " >&6; } | |
6736 | if test "${gt_cv_c_wint_t+set}" = set; then : | |
6737 | $as_echo_n "(cached) " >&6 | |
6738 | else | |
6739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6740 | /* end confdefs.h. */ | |
6741 | ||
6742 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | |
6743 | <wchar.h>. | |
6744 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
6745 | before <wchar.h>. */ | |
6746 | #include <stddef.h> | |
6747 | #include <stdio.h> | |
6748 | #include <time.h> | |
6749 | #include <wchar.h> | |
6750 | wint_t foo = (wchar_t)'\0'; | |
6751 | int | |
6752 | main () | |
6753 | { | |
6754 | ||
6755 | ; | |
6756 | return 0; | |
6757 | } | |
6758 | _ACEOF | |
6759 | if ac_fn_c_try_compile "$LINENO"; then : | |
6760 | gt_cv_c_wint_t=yes | |
6761 | else | |
6762 | gt_cv_c_wint_t=no | |
6763 | fi | |
6764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6765 | fi | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 | |
6767 | $as_echo "$gt_cv_c_wint_t" >&6; } | |
6768 | if test $gt_cv_c_wint_t = yes; then | |
6769 | ||
6770 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h | |
6771 | ||
6772 | fi | |
6773 | ||
6774 | ||
6775 | if false; then | |
6776 | GL_COND_LIBTOOL_TRUE= | |
6777 | GL_COND_LIBTOOL_FALSE='#' | |
6778 | else | |
6779 | GL_COND_LIBTOOL_TRUE='#' | |
6780 | GL_COND_LIBTOOL_FALSE= | |
6781 | fi | |
6782 | ||
6783 | gl_cond_libtool=false | |
6784 | gl_libdeps= | |
6785 | gl_ltlibdeps= | |
6786 | gl_m4_base='gnulib/m4' | |
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | gl_source_base='gnulib' | |
6797 | # Code from module arg-nonnull: | |
6798 | # Code from module c++defs: | |
6799 | # Code from module extensions: | |
6800 | # Code from module include_next: | |
6801 | # Code from module memchr: | |
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | GNULIB_MEMCHR=1 | |
6807 | ||
6808 | ||
6809 | ||
6810 | $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h | |
6811 | ||
6812 | ||
6813 | ||
6814 | # Code from module memmem: | |
6815 | ||
6816 | ||
6817 | if test $ac_cv_have_decl_memmem = yes; then | |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5 | |
6819 | $as_echo_n "checking whether memmem works in linear time... " >&6; } | |
6820 | if test "${gl_cv_func_memmem_works+set}" = set; then : | |
6821 | $as_echo_n "(cached) " >&6 | |
6822 | else | |
6823 | if test "$cross_compiling" = yes; then : | |
6824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6825 | /* end confdefs.h. */ | |
6826 | ||
6827 | #include <features.h> | |
6828 | #ifdef __GNU_LIBRARY__ | |
6829 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2) | |
6830 | Lucky user | |
6831 | #endif | |
6832 | #endif | |
6833 | #ifdef __CYGWIN__ | |
6834 | #include <cygwin/version.h> | |
6835 | #if CYGWIN_VERSION_DLL_MAJOR >= 1007 | |
6836 | Lucky user | |
6837 | #endif | |
6838 | #endif | |
6839 | ||
6840 | _ACEOF | |
6841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6842 | $EGREP "Lucky user" >/dev/null 2>&1; then : | |
6843 | gl_cv_func_memmem_works=yes | |
6844 | else | |
6845 | gl_cv_func_memmem_works="guessing no" | |
6846 | fi | |
6847 | rm -f conftest* | |
6848 | ||
6849 | ||
6850 | else | |
6851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6852 | /* end confdefs.h. */ | |
6853 | ||
6854 | #include <signal.h> /* for signal */ | |
6855 | #include <string.h> /* for memmem */ | |
6856 | #include <stdlib.h> /* for malloc */ | |
6857 | #include <unistd.h> /* for alarm */ | |
6858 | ||
6859 | int | |
6860 | main () | |
6861 | { | |
6862 | size_t m = 1000000; | |
6863 | char *haystack = (char *) malloc (2 * m + 1); | |
6864 | char *needle = (char *) malloc (m + 1); | |
6865 | void *result = 0; | |
6866 | /* Failure to compile this test due to missing alarm is okay, | |
6867 | since all such platforms (mingw) also lack memmem. */ | |
6868 | signal (SIGALRM, SIG_DFL); | |
6869 | alarm (5); | |
6870 | /* Check for quadratic performance. */ | |
6871 | if (haystack && needle) | |
6872 | { | |
6873 | memset (haystack, 'A', 2 * m); | |
6874 | haystack[2 * m] = 'B'; | |
6875 | memset (needle, 'A', m); | |
6876 | needle[m] = 'B'; | |
6877 | result = memmem (haystack, 2 * m + 1, needle, m + 1); | |
6878 | } | |
6879 | /* Check for empty needle behavior. */ | |
6880 | return !result || !memmem ("a", 1, 0, 0); | |
6881 | ; | |
6882 | return 0; | |
6883 | } | |
6884 | _ACEOF | |
6885 | if ac_fn_c_try_run "$LINENO"; then : | |
6886 | gl_cv_func_memmem_works=yes | |
6887 | else | |
6888 | gl_cv_func_memmem_works=no | |
6889 | fi | |
6890 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6891 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6892 | fi | |
6893 | ||
6894 | ||
6895 | fi | |
6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5 | |
6897 | $as_echo "$gl_cv_func_memmem_works" >&6; } | |
6898 | if test "$gl_cv_func_memmem_works" != yes; then | |
6899 | REPLACE_MEMMEM=1 | |
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" | |
6909 | ||
6910 | fi | |
6911 | fi | |
6912 | ||
6913 | # Code from module memmem-simple: | |
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | for ac_func in memmem | |
6927 | do : | |
6928 | ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" | |
6929 | if test "x$ac_cv_func_memmem" = x""yes; then : | |
6930 | cat >>confdefs.h <<_ACEOF | |
6931 | #define HAVE_MEMMEM 1 | |
6932 | _ACEOF | |
6933 | ||
6934 | else | |
6935 | ||
6936 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" | |
6937 | ||
6938 | fi | |
6939 | done | |
6940 | ||
6941 | ||
6942 | ||
6943 | : | |
6944 | ||
6945 | ||
6946 | ||
6947 | ||
6948 | ||
6949 | if test $ac_cv_have_decl_memmem = no; then | |
6950 | HAVE_DECL_MEMMEM=0 | |
6951 | fi | |
6952 | : | |
6953 | ||
6954 | ||
6955 | ||
6956 | ||
6957 | GNULIB_MEMMEM=1 | |
6958 | ||
6959 | ||
6960 | ||
6961 | $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h | |
6962 | ||
6963 | ||
6964 | ||
6965 | # Code from module multiarch: | |
6966 | ||
6967 | # Code from module stddef: | |
6968 | ||
6969 | ||
6970 | ||
6971 | if test $gt_cv_c_wchar_t = no; then | |
6972 | HAVE_WCHAR_T=0 | |
6973 | STDDEF_H=stddef.h | |
6974 | fi | |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 | |
6976 | $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } | |
6977 | if test "${gl_cv_decl_null_works+set}" = set; then : | |
6978 | $as_echo_n "(cached) " >&6 | |
6979 | else | |
6980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6981 | /* end confdefs.h. */ | |
6982 | #include <stddef.h> | |
6983 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; | |
6984 | ||
6985 | int | |
6986 | main () | |
6987 | { | |
6988 | ||
6989 | ; | |
6990 | return 0; | |
6991 | } | |
6992 | _ACEOF | |
6993 | if ac_fn_c_try_compile "$LINENO"; then : | |
6994 | gl_cv_decl_null_works=yes | |
6995 | else | |
6996 | gl_cv_decl_null_works=no | |
6997 | fi | |
6998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6999 | fi | |
7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 | |
7001 | $as_echo "$gl_cv_decl_null_works" >&6; } | |
7002 | if test $gl_cv_decl_null_works = no; then | |
7003 | REPLACE_NULL=1 | |
7004 | STDDEF_H=stddef.h | |
7005 | fi | |
7006 | if test -n "$STDDEF_H"; then | |
7007 | ||
7008 | ||
7009 | ||
7010 | ||
7011 | : | |
7012 | ||
7013 | ||
7014 | ||
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | if test $gl_cv_have_include_next = yes; then | |
7020 | gl_cv_next_stddef_h='<'stddef.h'>' | |
7021 | else | |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 | |
7023 | $as_echo_n "checking absolute name of <stddef.h>... " >&6; } | |
7024 | if test "${gl_cv_next_stddef_h+set}" = set; then : | |
7025 | $as_echo_n "(cached) " >&6 | |
7026 | else | |
7027 | ||
7028 | if test $ac_cv_header_stddef_h = yes; then | |
7029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7030 | /* end confdefs.h. */ | |
7031 | #include <stddef.h> | |
7032 | ||
7033 | _ACEOF | |
7034 | case "$host_os" in | |
7035 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
7036 | *) gl_absname_cpp="$ac_cpp" ;; | |
7037 | esac | |
7038 | gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
7039 | sed -n '\#/stddef.h#{ | |
7040 | s#.*"\(.*/stddef.h\)".*#\1# | |
7041 | s#^/[^/]#//&# | |
7042 | p | |
7043 | q | |
7044 | }'`'"' | |
7045 | else | |
7046 | gl_cv_next_stddef_h='<'stddef.h'>' | |
7047 | fi | |
7048 | ||
7049 | fi | |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 | |
7051 | $as_echo "$gl_cv_next_stddef_h" >&6; } | |
7052 | fi | |
7053 | NEXT_STDDEF_H=$gl_cv_next_stddef_h | |
7054 | ||
7055 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
7056 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
7057 | gl_next_as_first_directive='<'stddef.h'>' | |
7058 | else | |
7059 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
7060 | gl_next_as_first_directive=$gl_cv_next_stddef_h | |
7061 | fi | |
7062 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive | |
7063 | ||
7064 | ||
7065 | ||
7066 | fi | |
7067 | ||
7068 | # Code from module stdint: | |
7069 | ||
7070 | ||
7071 | ||
7072 | if test $ac_cv_type_long_long_int = yes; then | |
7073 | HAVE_LONG_LONG_INT=1 | |
7074 | else | |
7075 | HAVE_LONG_LONG_INT=0 | |
7076 | fi | |
7077 | ||
7078 | ||
7079 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
7080 | HAVE_UNSIGNED_LONG_LONG_INT=1 | |
7081 | else | |
7082 | HAVE_UNSIGNED_LONG_LONG_INT=0 | |
7083 | fi | |
7084 | ||
7085 | ||
7086 | if test $ac_cv_header_inttypes_h = yes; then | |
7087 | HAVE_INTTYPES_H=1 | |
7088 | else | |
7089 | HAVE_INTTYPES_H=0 | |
7090 | fi | |
7091 | ||
7092 | ||
7093 | if test $ac_cv_header_sys_types_h = yes; then | |
7094 | HAVE_SYS_TYPES_H=1 | |
7095 | else | |
7096 | HAVE_SYS_TYPES_H=0 | |
7097 | fi | |
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | : | |
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | ||
7112 | if test $gl_cv_have_include_next = yes; then | |
7113 | gl_cv_next_stdint_h='<'stdint.h'>' | |
7114 | else | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 | |
7116 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | |
7117 | if test "${gl_cv_next_stdint_h+set}" = set; then : | |
7118 | $as_echo_n "(cached) " >&6 | |
7119 | else | |
7120 | ||
7121 | if test $ac_cv_header_stdint_h = yes; then | |
7122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7123 | /* end confdefs.h. */ | |
7124 | #include <stdint.h> | |
7125 | ||
7126 | _ACEOF | |
7127 | case "$host_os" in | |
7128 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
7129 | *) gl_absname_cpp="$ac_cpp" ;; | |
7130 | esac | |
7131 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
7132 | sed -n '\#/stdint.h#{ | |
7133 | s#.*"\(.*/stdint.h\)".*#\1# | |
7134 | s#^/[^/]#//&# | |
7135 | p | |
7136 | q | |
7137 | }'`'"' | |
7138 | else | |
7139 | gl_cv_next_stdint_h='<'stdint.h'>' | |
7140 | fi | |
7141 | ||
7142 | fi | |
7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 | |
7144 | $as_echo "$gl_cv_next_stdint_h" >&6; } | |
7145 | fi | |
7146 | NEXT_STDINT_H=$gl_cv_next_stdint_h | |
7147 | ||
7148 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
7149 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
7150 | gl_next_as_first_directive='<'stdint.h'>' | |
7151 | else | |
7152 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
7153 | gl_next_as_first_directive=$gl_cv_next_stdint_h | |
7154 | fi | |
7155 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive | |
7156 | ||
7157 | ||
7158 | ||
7159 | if test $ac_cv_header_stdint_h = yes; then | |
7160 | HAVE_STDINT_H=1 | |
7161 | else | |
7162 | HAVE_STDINT_H=0 | |
7163 | fi | |
7164 | ||
7165 | ||
7166 | if test $ac_cv_header_stdint_h = yes; then | |
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 | |
7168 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | |
7169 | if test "${gl_cv_header_working_stdint_h+set}" = set; then : | |
7170 | $as_echo_n "(cached) " >&6 | |
7171 | else | |
7172 | gl_cv_header_working_stdint_h=no | |
7173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7174 | /* end confdefs.h. */ | |
7175 | ||
7176 | ||
7177 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
7178 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
7179 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
7180 | #include <stdint.h> | |
7181 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
7182 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
7183 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
7184 | #endif | |
7185 | ||
7186 | ||
7187 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7188 | included before <wchar.h>. */ | |
7189 | #include <stddef.h> | |
7190 | #include <signal.h> | |
7191 | #if HAVE_WCHAR_H | |
7192 | # include <stdio.h> | |
7193 | # include <time.h> | |
7194 | # include <wchar.h> | |
7195 | #endif | |
7196 | ||
7197 | ||
7198 | #ifdef INT8_MAX | |
7199 | int8_t a1 = INT8_MAX; | |
7200 | int8_t a1min = INT8_MIN; | |
7201 | #endif | |
7202 | #ifdef INT16_MAX | |
7203 | int16_t a2 = INT16_MAX; | |
7204 | int16_t a2min = INT16_MIN; | |
7205 | #endif | |
7206 | #ifdef INT32_MAX | |
7207 | int32_t a3 = INT32_MAX; | |
7208 | int32_t a3min = INT32_MIN; | |
7209 | #endif | |
7210 | #ifdef INT64_MAX | |
7211 | int64_t a4 = INT64_MAX; | |
7212 | int64_t a4min = INT64_MIN; | |
7213 | #endif | |
7214 | #ifdef UINT8_MAX | |
7215 | uint8_t b1 = UINT8_MAX; | |
7216 | #else | |
7217 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
7218 | #endif | |
7219 | #ifdef UINT16_MAX | |
7220 | uint16_t b2 = UINT16_MAX; | |
7221 | #endif | |
7222 | #ifdef UINT32_MAX | |
7223 | uint32_t b3 = UINT32_MAX; | |
7224 | #endif | |
7225 | #ifdef UINT64_MAX | |
7226 | uint64_t b4 = UINT64_MAX; | |
7227 | #endif | |
7228 | int_least8_t c1 = INT8_C (0x7f); | |
7229 | int_least8_t c1max = INT_LEAST8_MAX; | |
7230 | int_least8_t c1min = INT_LEAST8_MIN; | |
7231 | int_least16_t c2 = INT16_C (0x7fff); | |
7232 | int_least16_t c2max = INT_LEAST16_MAX; | |
7233 | int_least16_t c2min = INT_LEAST16_MIN; | |
7234 | int_least32_t c3 = INT32_C (0x7fffffff); | |
7235 | int_least32_t c3max = INT_LEAST32_MAX; | |
7236 | int_least32_t c3min = INT_LEAST32_MIN; | |
7237 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
7238 | int_least64_t c4max = INT_LEAST64_MAX; | |
7239 | int_least64_t c4min = INT_LEAST64_MIN; | |
7240 | uint_least8_t d1 = UINT8_C (0xff); | |
7241 | uint_least8_t d1max = UINT_LEAST8_MAX; | |
7242 | uint_least16_t d2 = UINT16_C (0xffff); | |
7243 | uint_least16_t d2max = UINT_LEAST16_MAX; | |
7244 | uint_least32_t d3 = UINT32_C (0xffffffff); | |
7245 | uint_least32_t d3max = UINT_LEAST32_MAX; | |
7246 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
7247 | uint_least64_t d4max = UINT_LEAST64_MAX; | |
7248 | int_fast8_t e1 = INT_FAST8_MAX; | |
7249 | int_fast8_t e1min = INT_FAST8_MIN; | |
7250 | int_fast16_t e2 = INT_FAST16_MAX; | |
7251 | int_fast16_t e2min = INT_FAST16_MIN; | |
7252 | int_fast32_t e3 = INT_FAST32_MAX; | |
7253 | int_fast32_t e3min = INT_FAST32_MIN; | |
7254 | int_fast64_t e4 = INT_FAST64_MAX; | |
7255 | int_fast64_t e4min = INT_FAST64_MIN; | |
7256 | uint_fast8_t f1 = UINT_FAST8_MAX; | |
7257 | uint_fast16_t f2 = UINT_FAST16_MAX; | |
7258 | uint_fast32_t f3 = UINT_FAST32_MAX; | |
7259 | uint_fast64_t f4 = UINT_FAST64_MAX; | |
7260 | #ifdef INTPTR_MAX | |
7261 | intptr_t g = INTPTR_MAX; | |
7262 | intptr_t gmin = INTPTR_MIN; | |
7263 | #endif | |
7264 | #ifdef UINTPTR_MAX | |
7265 | uintptr_t h = UINTPTR_MAX; | |
7266 | #endif | |
7267 | intmax_t i = INTMAX_MAX; | |
7268 | uintmax_t j = UINTMAX_MAX; | |
7269 | ||
7270 | #include <limits.h> /* for CHAR_BIT */ | |
7271 | #define TYPE_MINIMUM(t) \ | |
7272 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) | |
7273 | #define TYPE_MAXIMUM(t) \ | |
7274 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) | |
7275 | struct s { | |
7276 | int check_PTRDIFF: | |
7277 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
7278 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
7279 | ? 1 : -1; | |
7280 | /* Detect bug in FreeBSD 6.0 / ia64. */ | |
7281 | int check_SIG_ATOMIC: | |
7282 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
7283 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
7284 | ? 1 : -1; | |
7285 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
7286 | int check_WCHAR: | |
7287 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
7288 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
7289 | ? 1 : -1; | |
7290 | /* Detect bug in mingw. */ | |
7291 | int check_WINT: | |
7292 | WINT_MIN == TYPE_MINIMUM (wint_t) | |
7293 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
7294 | ? 1 : -1; | |
7295 | ||
7296 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
7297 | int check_UINT8_C: | |
7298 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
7299 | int check_UINT16_C: | |
7300 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
7301 | ||
7302 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
7303 | #ifdef UINT8_MAX | |
7304 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
7305 | #endif | |
7306 | #ifdef UINT16_MAX | |
7307 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
7308 | #endif | |
7309 | #ifdef UINT32_MAX | |
7310 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
7311 | #endif | |
7312 | #ifdef UINT64_MAX | |
7313 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
7314 | #endif | |
7315 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
7316 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
7317 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
7318 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
7319 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
7320 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
7321 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
7322 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
7323 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
7324 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
7325 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
7326 | }; | |
7327 | ||
7328 | int | |
7329 | main () | |
7330 | { | |
7331 | ||
7332 | ; | |
7333 | return 0; | |
7334 | } | |
7335 | _ACEOF | |
7336 | if ac_fn_c_try_compile "$LINENO"; then : | |
7337 | if test "$cross_compiling" = yes; then : | |
7338 | gl_cv_header_working_stdint_h=yes | |
7339 | ||
7340 | else | |
7341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7342 | /* end confdefs.h. */ | |
7343 | ||
7344 | ||
7345 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
7346 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
7347 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
7348 | #include <stdint.h> | |
7349 | ||
7350 | ||
7351 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7352 | included before <wchar.h>. */ | |
7353 | #include <stddef.h> | |
7354 | #include <signal.h> | |
7355 | #if HAVE_WCHAR_H | |
7356 | # include <stdio.h> | |
7357 | # include <time.h> | |
7358 | # include <wchar.h> | |
7359 | #endif | |
7360 | ||
7361 | ||
7362 | #include <stdio.h> | |
7363 | #include <string.h> | |
7364 | #define MVAL(macro) MVAL1(macro) | |
7365 | #define MVAL1(expression) #expression | |
7366 | static const char *macro_values[] = | |
7367 | { | |
7368 | #ifdef INT8_MAX | |
7369 | MVAL (INT8_MAX), | |
7370 | #endif | |
7371 | #ifdef INT16_MAX | |
7372 | MVAL (INT16_MAX), | |
7373 | #endif | |
7374 | #ifdef INT32_MAX | |
7375 | MVAL (INT32_MAX), | |
7376 | #endif | |
7377 | #ifdef INT64_MAX | |
7378 | MVAL (INT64_MAX), | |
7379 | #endif | |
7380 | #ifdef UINT8_MAX | |
7381 | MVAL (UINT8_MAX), | |
7382 | #endif | |
7383 | #ifdef UINT16_MAX | |
7384 | MVAL (UINT16_MAX), | |
7385 | #endif | |
7386 | #ifdef UINT32_MAX | |
7387 | MVAL (UINT32_MAX), | |
7388 | #endif | |
7389 | #ifdef UINT64_MAX | |
7390 | MVAL (UINT64_MAX), | |
7391 | #endif | |
7392 | NULL | |
7393 | }; | |
7394 | ||
7395 | int | |
7396 | main () | |
7397 | { | |
7398 | ||
7399 | const char **mv; | |
7400 | for (mv = macro_values; *mv != NULL; mv++) | |
7401 | { | |
7402 | const char *value = *mv; | |
7403 | /* Test whether it looks like a cast expression. */ | |
7404 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 | |
7405 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 | |
7406 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 | |
7407 | || strncmp (value, "((int)"/*)*/, 6) == 0 | |
7408 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 | |
7409 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) | |
7410 | return 1; | |
7411 | } | |
7412 | return 0; | |
7413 | ||
7414 | ; | |
7415 | return 0; | |
7416 | } | |
7417 | _ACEOF | |
7418 | if ac_fn_c_try_run "$LINENO"; then : | |
7419 | gl_cv_header_working_stdint_h=yes | |
7420 | fi | |
7421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7422 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7423 | fi | |
7424 | ||
7425 | ||
7426 | fi | |
7427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7428 | ||
7429 | fi | |
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 | |
7431 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } | |
7432 | fi | |
7433 | if test "$gl_cv_header_working_stdint_h" = yes; then | |
7434 | STDINT_H= | |
7435 | else | |
7436 | for ac_header in sys/inttypes.h sys/bitypes.h | |
7437 | do : | |
7438 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7439 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
7440 | eval as_val=\$$as_ac_Header | |
7441 | if test "x$as_val" = x""yes; then : | |
7442 | cat >>confdefs.h <<_ACEOF | |
7443 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7444 | _ACEOF | |
7445 | ||
7446 | fi | |
7447 | ||
7448 | done | |
7449 | ||
7450 | if test $ac_cv_header_sys_inttypes_h = yes; then | |
7451 | HAVE_SYS_INTTYPES_H=1 | |
7452 | else | |
7453 | HAVE_SYS_INTTYPES_H=0 | |
7454 | fi | |
7455 | ||
7456 | if test $ac_cv_header_sys_bitypes_h = yes; then | |
7457 | HAVE_SYS_BITYPES_H=1 | |
7458 | else | |
7459 | HAVE_SYS_BITYPES_H=0 | |
7460 | fi | |
7461 | ||
7462 | ||
7463 | ||
7464 | : | |
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | if test $APPLE_UNIVERSAL_BUILD = 0; then | |
7474 | ||
7475 | ||
7476 | for gltype in ptrdiff_t size_t ; do | |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | |
7478 | $as_echo_n "checking for bit size of $gltype... " >&6; } | |
7479 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7480 | $as_echo_n "(cached) " >&6 | |
7481 | else | |
7482 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | |
7483 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7484 | included before <wchar.h>. */ | |
7485 | #include <stddef.h> | |
7486 | #include <signal.h> | |
7487 | #if HAVE_WCHAR_H | |
7488 | # include <stdio.h> | |
7489 | # include <time.h> | |
7490 | # include <wchar.h> | |
7491 | #endif | |
7492 | ||
7493 | #include <limits.h>"; then : | |
7494 | ||
7495 | else | |
7496 | result=unknown | |
7497 | fi | |
7498 | ||
7499 | eval gl_cv_bitsizeof_${gltype}=\$result | |
7500 | ||
7501 | fi | |
7502 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7504 | $as_echo "$ac_res" >&6; } | |
7505 | eval result=\$gl_cv_bitsizeof_${gltype} | |
7506 | if test $result = unknown; then | |
7507 | result=0 | |
7508 | fi | |
7509 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
7510 | cat >>confdefs.h <<_ACEOF | |
7511 | #define BITSIZEOF_${GLTYPE} $result | |
7512 | _ACEOF | |
7513 | ||
7514 | eval BITSIZEOF_${GLTYPE}=\$result | |
7515 | done | |
7516 | ||
7517 | ||
7518 | fi | |
7519 | ||
7520 | ||
7521 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | |
7523 | $as_echo_n "checking for bit size of $gltype... " >&6; } | |
7524 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7525 | $as_echo_n "(cached) " >&6 | |
7526 | else | |
7527 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | |
7528 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7529 | included before <wchar.h>. */ | |
7530 | #include <stddef.h> | |
7531 | #include <signal.h> | |
7532 | #if HAVE_WCHAR_H | |
7533 | # include <stdio.h> | |
7534 | # include <time.h> | |
7535 | # include <wchar.h> | |
7536 | #endif | |
7537 | ||
7538 | #include <limits.h>"; then : | |
7539 | ||
7540 | else | |
7541 | result=unknown | |
7542 | fi | |
7543 | ||
7544 | eval gl_cv_bitsizeof_${gltype}=\$result | |
7545 | ||
7546 | fi | |
7547 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7549 | $as_echo "$ac_res" >&6; } | |
7550 | eval result=\$gl_cv_bitsizeof_${gltype} | |
7551 | if test $result = unknown; then | |
7552 | result=0 | |
7553 | fi | |
7554 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
7555 | cat >>confdefs.h <<_ACEOF | |
7556 | #define BITSIZEOF_${GLTYPE} $result | |
7557 | _ACEOF | |
7558 | ||
7559 | eval BITSIZEOF_${GLTYPE}=\$result | |
7560 | done | |
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
7566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 | |
7567 | $as_echo_n "checking whether $gltype is signed... " >&6; } | |
7568 | if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7569 | $as_echo_n "(cached) " >&6 | |
7570 | else | |
7571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7572 | /* end confdefs.h. */ | |
7573 | ||
7574 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7575 | included before <wchar.h>. */ | |
7576 | #include <stddef.h> | |
7577 | #include <signal.h> | |
7578 | #if HAVE_WCHAR_H | |
7579 | # include <stdio.h> | |
7580 | # include <time.h> | |
7581 | # include <wchar.h> | |
7582 | #endif | |
7583 | ||
7584 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
7585 | int | |
7586 | main () | |
7587 | { | |
7588 | ||
7589 | ; | |
7590 | return 0; | |
7591 | } | |
7592 | _ACEOF | |
7593 | if ac_fn_c_try_compile "$LINENO"; then : | |
7594 | result=yes | |
7595 | else | |
7596 | result=no | |
7597 | fi | |
7598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7599 | eval gl_cv_type_${gltype}_signed=\$result | |
7600 | ||
7601 | fi | |
7602 | eval ac_res=\$gl_cv_type_${gltype}_signed | |
7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7604 | $as_echo "$ac_res" >&6; } | |
7605 | eval result=\$gl_cv_type_${gltype}_signed | |
7606 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
7607 | if test "$result" = yes; then | |
7608 | cat >>confdefs.h <<_ACEOF | |
7609 | #define HAVE_SIGNED_${GLTYPE} 1 | |
7610 | _ACEOF | |
7611 | ||
7612 | eval HAVE_SIGNED_${GLTYPE}=1 | |
7613 | else | |
7614 | eval HAVE_SIGNED_${GLTYPE}=0 | |
7615 | fi | |
7616 | done | |
7617 | ||
7618 | ||
7619 | gl_cv_type_ptrdiff_t_signed=yes | |
7620 | gl_cv_type_size_t_signed=no | |
7621 | if test $APPLE_UNIVERSAL_BUILD = 0; then | |
7622 | ||
7623 | ||
7624 | for gltype in ptrdiff_t size_t ; do | |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | |
7626 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
7627 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7628 | $as_echo_n "(cached) " >&6 | |
7629 | else | |
7630 | eval gl_cv_type_${gltype}_suffix=no | |
7631 | eval result=\$gl_cv_type_${gltype}_signed | |
7632 | if test "$result" = yes; then | |
7633 | glsufu= | |
7634 | else | |
7635 | glsufu=u | |
7636 | fi | |
7637 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
7638 | case $glsuf in | |
7639 | '') gltype1='int';; | |
7640 | l) gltype1='long int';; | |
7641 | ll) gltype1='long long int';; | |
7642 | i64) gltype1='__int64';; | |
7643 | u) gltype1='unsigned int';; | |
7644 | ul) gltype1='unsigned long int';; | |
7645 | ull) gltype1='unsigned long long int';; | |
7646 | ui64)gltype1='unsigned __int64';; | |
7647 | esac | |
7648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7649 | /* end confdefs.h. */ | |
7650 | ||
7651 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7652 | included before <wchar.h>. */ | |
7653 | #include <stddef.h> | |
7654 | #include <signal.h> | |
7655 | #if HAVE_WCHAR_H | |
7656 | # include <stdio.h> | |
7657 | # include <time.h> | |
7658 | # include <wchar.h> | |
7659 | #endif | |
7660 | ||
7661 | extern $gltype foo; | |
7662 | extern $gltype1 foo; | |
7663 | int | |
7664 | main () | |
7665 | { | |
7666 | ||
7667 | ; | |
7668 | return 0; | |
7669 | } | |
7670 | _ACEOF | |
7671 | if ac_fn_c_try_compile "$LINENO"; then : | |
7672 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
7673 | fi | |
7674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7675 | eval result=\$gl_cv_type_${gltype}_suffix | |
7676 | test "$result" != no && break | |
7677 | done | |
7678 | fi | |
7679 | eval ac_res=\$gl_cv_type_${gltype}_suffix | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7681 | $as_echo "$ac_res" >&6; } | |
7682 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
7683 | eval result=\$gl_cv_type_${gltype}_suffix | |
7684 | test "$result" = no && result= | |
7685 | eval ${GLTYPE}_SUFFIX=\$result | |
7686 | cat >>confdefs.h <<_ACEOF | |
7687 | #define ${GLTYPE}_SUFFIX $result | |
7688 | _ACEOF | |
7689 | ||
7690 | done | |
7691 | ||
7692 | ||
7693 | fi | |
7694 | ||
7695 | ||
7696 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | |
7698 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
7699 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7700 | $as_echo_n "(cached) " >&6 | |
7701 | else | |
7702 | eval gl_cv_type_${gltype}_suffix=no | |
7703 | eval result=\$gl_cv_type_${gltype}_signed | |
7704 | if test "$result" = yes; then | |
7705 | glsufu= | |
7706 | else | |
7707 | glsufu=u | |
7708 | fi | |
7709 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
7710 | case $glsuf in | |
7711 | '') gltype1='int';; | |
7712 | l) gltype1='long int';; | |
7713 | ll) gltype1='long long int';; | |
7714 | i64) gltype1='__int64';; | |
7715 | u) gltype1='unsigned int';; | |
7716 | ul) gltype1='unsigned long int';; | |
7717 | ull) gltype1='unsigned long long int';; | |
7718 | ui64)gltype1='unsigned __int64';; | |
7719 | esac | |
7720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7721 | /* end confdefs.h. */ | |
7722 | ||
7723 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
7724 | included before <wchar.h>. */ | |
7725 | #include <stddef.h> | |
7726 | #include <signal.h> | |
7727 | #if HAVE_WCHAR_H | |
7728 | # include <stdio.h> | |
7729 | # include <time.h> | |
7730 | # include <wchar.h> | |
7731 | #endif | |
7732 | ||
7733 | extern $gltype foo; | |
7734 | extern $gltype1 foo; | |
7735 | int | |
7736 | main () | |
7737 | { | |
7738 | ||
7739 | ; | |
7740 | return 0; | |
7741 | } | |
7742 | _ACEOF | |
7743 | if ac_fn_c_try_compile "$LINENO"; then : | |
7744 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
7745 | fi | |
7746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7747 | eval result=\$gl_cv_type_${gltype}_suffix | |
7748 | test "$result" != no && break | |
7749 | done | |
7750 | fi | |
7751 | eval ac_res=\$gl_cv_type_${gltype}_suffix | |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7753 | $as_echo "$ac_res" >&6; } | |
7754 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
7755 | eval result=\$gl_cv_type_${gltype}_suffix | |
7756 | test "$result" = no && result= | |
7757 | eval ${GLTYPE}_SUFFIX=\$result | |
7758 | cat >>confdefs.h <<_ACEOF | |
7759 | #define ${GLTYPE}_SUFFIX $result | |
7760 | _ACEOF | |
7761 | ||
7762 | done | |
7763 | ||
7764 | ||
7765 | ||
7766 | STDINT_H=stdint.h | |
7767 | fi | |
7768 | ||
7769 | ||
7770 | # Code from module string: | |
7771 | ||
7772 | ||
7773 | ||
7774 | # Code from module warn-on-use: | |
7775 | # Code from module wchar: | |
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | : | |
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | ||
7787 | ||
7788 | ||
7789 | ||
7790 | : | |
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | if test $gl_cv_have_include_next = yes; then | |
7799 | gl_cv_next_wchar_h='<'wchar.h'>' | |
7800 | else | |
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 | |
7802 | $as_echo_n "checking absolute name of <wchar.h>... " >&6; } | |
7803 | if test "${gl_cv_next_wchar_h+set}" = set; then : | |
7804 | $as_echo_n "(cached) " >&6 | |
7805 | else | |
7806 | ||
7807 | if test $ac_cv_header_wchar_h = yes; then | |
7808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7809 | /* end confdefs.h. */ | |
7810 | #include <wchar.h> | |
7811 | ||
7812 | _ACEOF | |
7813 | case "$host_os" in | |
7814 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
7815 | *) gl_absname_cpp="$ac_cpp" ;; | |
7816 | esac | |
7817 | gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
7818 | sed -n '\#/wchar.h#{ | |
7819 | s#.*"\(.*/wchar.h\)".*#\1# | |
7820 | s#^/[^/]#//&# | |
7821 | p | |
7822 | q | |
7823 | }'`'"' | |
7824 | else | |
7825 | gl_cv_next_wchar_h='<'wchar.h'>' | |
7826 | fi | |
7827 | ||
7828 | fi | |
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 | |
7830 | $as_echo "$gl_cv_next_wchar_h" >&6; } | |
7831 | fi | |
7832 | NEXT_WCHAR_H=$gl_cv_next_wchar_h | |
7833 | ||
7834 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
7835 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
7836 | gl_next_as_first_directive='<'wchar.h'>' | |
7837 | else | |
7838 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
7839 | gl_next_as_first_directive=$gl_cv_next_wchar_h | |
7840 | fi | |
7841 | NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive | |
7842 | ||
7843 | ||
7844 | ||
7845 | if test $ac_cv_header_wchar_h = yes; then | |
7846 | HAVE_WCHAR_H=1 | |
7847 | else | |
7848 | HAVE_WCHAR_H=0 | |
7849 | fi | |
7850 | ||
7851 | ||
7852 | ||
7853 | if test $gt_cv_c_wint_t = yes; then | |
7854 | HAVE_WINT_T=1 | |
7855 | else | |
7856 | HAVE_WINT_T=0 | |
7857 | fi | |
7858 | ||
7859 | ||
7860 | ||
7861 | for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do | |
7862 | as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` | |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 | |
7864 | $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } | |
7865 | if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : | |
7866 | $as_echo_n "(cached) " >&6 | |
7867 | else | |
7868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7869 | /* end confdefs.h. */ | |
7870 | ||
7871 | /* Some systems require additional headers. */ | |
7872 | #ifndef __GLIBC__ | |
7873 | # include <stddef.h> | |
7874 | # include <stdio.h> | |
7875 | # include <time.h> | |
7876 | #endif | |
7877 | #include <wchar.h> | |
7878 | ||
7879 | int | |
7880 | main () | |
7881 | { | |
7882 | #undef $gl_func | |
7883 | (void) $gl_func; | |
7884 | ; | |
7885 | return 0; | |
7886 | } | |
7887 | _ACEOF | |
7888 | if ac_fn_c_try_compile "$LINENO"; then : | |
7889 | eval "$as_gl_Symbol=yes" | |
7890 | else | |
7891 | eval "$as_gl_Symbol=no" | |
7892 | fi | |
7893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7894 | fi | |
7895 | eval ac_res=\$$as_gl_Symbol | |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7897 | $as_echo "$ac_res" >&6; } | |
7898 | eval as_val=\$$as_gl_Symbol | |
7899 | if test "x$as_val" = x""yes; then : | |
7900 | cat >>confdefs.h <<_ACEOF | |
7901 | #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 | |
7902 | _ACEOF | |
7903 | ||
7904 | eval ac_cv_have_decl_$gl_func=yes | |
7905 | fi | |
7906 | done | |
7907 | ||
7908 | ||
7909 | # Code from module dummy: | |
7910 | # End of code from modules | |
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | gltests_libdeps= | |
7921 | gltests_ltlibdeps= | |
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | gl_source_base='tests' | |
7932 | gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS | |
7933 | ||
7934 | gl_module_indicator_condition=$gltests_WITNESS | |
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | ||
7941 | ||
7942 | ||
7943 | ||
7944 | LIBGNU_LIBDEPS="$gl_libdeps" | |
7945 | ||
7946 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
7947 | ||
7948 | ||
7949 | # GDBserver does not use automake, but gnulib does. This line lets | |
7950 | # us generate its Makefile.in. | |
7951 | am__api_version='1.11' | |
7952 | ||
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
7954 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
7955 | # Just in case | |
7956 | sleep 1 | |
7957 | echo timestamp > conftest.file | |
7958 | # Reject unsafe characters in $srcdir or the absolute working directory | |
7959 | # name. Accept space and tab only in the latter. | |
7960 | am_lf=' | |
7961 | ' | |
7962 | case `pwd` in | |
7963 | *[\\\"\#\$\&\'\`$am_lf]*) | |
7964 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
7965 | esac | |
7966 | case $srcdir in | |
7967 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
7968 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
7969 | esac | |
7970 | ||
7971 | # Do `set' in a subshell so we don't clobber the current shell's | |
7972 | # arguments. Must try -L first in case configure is actually a | |
7973 | # symlink; some systems play weird games with the mod time of symlinks | |
7974 | # (eg FreeBSD returns the mod time of the symlink's containing | |
7975 | # directory). | |
7976 | if ( | |
7977 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
7978 | if test "$*" = "X"; then | |
7979 | # -L didn't work. | |
7980 | set X `ls -t "$srcdir/configure" conftest.file` | |
7981 | fi | |
7982 | rm -f conftest.file | |
7983 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
7984 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
7985 | ||
7986 | # If neither matched, then we have a broken ls. This can happen | |
7987 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
7988 | # broken ls alias from the environment. This has actually | |
7989 | # happened. Such a system could not be considered "sane". | |
7990 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
7991 | alias in your environment" "$LINENO" 5 | |
7992 | fi | |
7993 | ||
7994 | test "$2" = conftest.file | |
7995 | ) | |
7996 | then | |
7997 | # Ok. | |
7998 | : | |
7999 | else | |
8000 | as_fn_error "newly created file is older than distributed files! | |
8001 | Check your system clock" "$LINENO" 5 | |
8002 | fi | |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8004 | $as_echo "yes" >&6; } | |
8005 | # expand $ac_aux_dir to an absolute path | |
8006 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
8007 | ||
8008 | if test x"${MISSING+set}" != xset; then | |
8009 | case $am_aux_dir in | |
8010 | *\ * | *\ *) | |
8011 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
8012 | *) | |
8013 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
8014 | esac | |
8015 | fi | |
8016 | # Use eval to expand $SHELL | |
8017 | if eval "$MISSING --run true"; then | |
8018 | am_missing_run="$MISSING --run " | |
8019 | else | |
8020 | am_missing_run= | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
8022 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
8023 | fi | |
8024 | ||
8025 | if test x"${install_sh}" != xset; then | |
8026 | case $am_aux_dir in | |
8027 | *\ * | *\ *) | |
8028 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
8029 | *) | |
8030 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
8031 | esac | |
8032 | fi | |
8033 | ||
8034 | # Installed binaries are usually stripped using `strip' when the user | |
8035 | # run `make install-strip'. However `strip' might not be the right | |
8036 | # tool to use in cross-compilation environments, therefore Automake | |
8037 | # will honor the `STRIP' environment variable to overrule this program. | |
8038 | if test "$cross_compiling" != no; then | |
8039 | if test -n "$ac_tool_prefix"; then | |
8040 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
8041 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8043 | $as_echo_n "checking for $ac_word... " >&6; } | |
8044 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8045 | $as_echo_n "(cached) " >&6 | |
8046 | else | |
8047 | if test -n "$STRIP"; then | |
8048 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8049 | else | |
8050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8051 | for as_dir in $PATH | |
8052 | do | |
8053 | IFS=$as_save_IFS | |
8054 | test -z "$as_dir" && as_dir=. | |
8055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8057 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
8058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8059 | break 2 | |
8060 | fi | |
8061 | done | |
8062 | done | |
8063 | IFS=$as_save_IFS | |
8064 | ||
8065 | fi | |
8066 | fi | |
8067 | STRIP=$ac_cv_prog_STRIP | |
8068 | if test -n "$STRIP"; then | |
8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
8070 | $as_echo "$STRIP" >&6; } | |
8071 | else | |
8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8073 | $as_echo "no" >&6; } | |
8074 | fi | |
8075 | ||
8076 | ||
8077 | fi | |
8078 | if test -z "$ac_cv_prog_STRIP"; then | |
8079 | ac_ct_STRIP=$STRIP | |
8080 | # Extract the first word of "strip", so it can be a program name with args. | |
8081 | set dummy strip; ac_word=$2 | |
8082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8083 | $as_echo_n "checking for $ac_word... " >&6; } | |
8084 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
8085 | $as_echo_n "(cached) " >&6 | |
8086 | else | |
8087 | if test -n "$ac_ct_STRIP"; then | |
8088 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
8089 | else | |
8090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8091 | for as_dir in $PATH | |
8092 | do | |
8093 | IFS=$as_save_IFS | |
8094 | test -z "$as_dir" && as_dir=. | |
8095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8097 | ac_cv_prog_ac_ct_STRIP="strip" | |
8098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8099 | break 2 | |
8100 | fi | |
8101 | done | |
8102 | done | |
8103 | IFS=$as_save_IFS | |
8104 | ||
8105 | fi | |
8106 | fi | |
8107 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
8108 | if test -n "$ac_ct_STRIP"; then | |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
8110 | $as_echo "$ac_ct_STRIP" >&6; } | |
8111 | else | |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8113 | $as_echo "no" >&6; } | |
8114 | fi | |
8115 | ||
8116 | if test "x$ac_ct_STRIP" = x; then | |
8117 | STRIP=":" | |
8118 | else | |
8119 | case $cross_compiling:$ac_tool_warned in | |
8120 | yes:) | |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8122 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8123 | ac_tool_warned=yes ;; | |
8124 | esac | |
8125 | STRIP=$ac_ct_STRIP | |
8126 | fi | |
8127 | else | |
8128 | STRIP="$ac_cv_prog_STRIP" | |
8129 | fi | |
8130 | ||
8131 | fi | |
8132 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
8133 | ||
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
8135 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
8136 | if test -z "$MKDIR_P"; then | |
8137 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
8138 | $as_echo_n "(cached) " >&6 | |
8139 | else | |
8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8141 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
8142 | do | |
8143 | IFS=$as_save_IFS | |
8144 | test -z "$as_dir" && as_dir=. | |
8145 | for ac_prog in mkdir gmkdir; do | |
8146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8147 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
8148 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
8149 | 'mkdir (GNU coreutils) '* | \ | |
8150 | 'mkdir (coreutils) '* | \ | |
8151 | 'mkdir (fileutils) '4.1*) | |
8152 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
8153 | break 3;; | |
8154 | esac | |
8155 | done | |
8156 | done | |
8157 | done | |
8158 | IFS=$as_save_IFS | |
8159 | ||
8160 | fi | |
8161 | ||
8162 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8163 | MKDIR_P="$ac_cv_path_mkdir -p" | |
8164 | else | |
8165 | # As a last resort, use the slow shell script. Don't cache a | |
8166 | # value for MKDIR_P within a source directory, because that will | |
8167 | # break other packages using the cache if that directory is | |
8168 | # removed, or if the value is a relative name. | |
8169 | test -d ./--version && rmdir ./--version | |
8170 | MKDIR_P="$ac_install_sh -d" | |
8171 | fi | |
8172 | fi | |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
8174 | $as_echo "$MKDIR_P" >&6; } | |
8175 | ||
8176 | ||
8177 | mkdir_p="$MKDIR_P" | |
8178 | case $mkdir_p in | |
8179 | [\\/$]* | ?:[\\/]*) ;; | |
8180 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
8181 | esac | |
8182 | ||
8183 | for ac_prog in gawk mawk nawk awk | |
8184 | do | |
8185 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8186 | set dummy $ac_prog; ac_word=$2 | |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8188 | $as_echo_n "checking for $ac_word... " >&6; } | |
8189 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
8190 | $as_echo_n "(cached) " >&6 | |
8191 | else | |
8192 | if test -n "$AWK"; then | |
8193 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
8194 | else | |
8195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8196 | for as_dir in $PATH | |
8197 | do | |
8198 | IFS=$as_save_IFS | |
8199 | test -z "$as_dir" && as_dir=. | |
8200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8202 | ac_cv_prog_AWK="$ac_prog" | |
8203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8204 | break 2 | |
8205 | fi | |
8206 | done | |
8207 | done | |
8208 | IFS=$as_save_IFS | |
8209 | ||
8210 | fi | |
8211 | fi | |
8212 | AWK=$ac_cv_prog_AWK | |
8213 | if test -n "$AWK"; then | |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
8215 | $as_echo "$AWK" >&6; } | |
8216 | else | |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8218 | $as_echo "no" >&6; } | |
8219 | fi | |
8220 | ||
8221 | ||
8222 | test -n "$AWK" && break | |
8223 | done | |
8224 | ||
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
8226 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
8227 | set x ${MAKE-make} | |
8228 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
8229 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
8230 | $as_echo_n "(cached) " >&6 | |
8231 | else | |
8232 | cat >conftest.make <<\_ACEOF | |
8233 | SHELL = /bin/sh | |
8234 | all: | |
8235 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8236 | _ACEOF | |
8237 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8238 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
8239 | *@@@%%%=?*=@@@%%%*) | |
8240 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8241 | *) | |
8242 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8243 | esac | |
8244 | rm -f conftest.make | |
8245 | fi | |
8246 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8248 | $as_echo "yes" >&6; } | |
8249 | SET_MAKE= | |
8250 | else | |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8252 | $as_echo "no" >&6; } | |
8253 | SET_MAKE="MAKE=${MAKE-make}" | |
8254 | fi | |
8255 | ||
8256 | rm -rf .tst 2>/dev/null | |
8257 | mkdir .tst 2>/dev/null | |
8258 | if test -d .tst; then | |
8259 | am__leading_dot=. | |
8260 | else | |
8261 | am__leading_dot=_ | |
8262 | fi | |
8263 | rmdir .tst 2>/dev/null | |
8264 | ||
8265 | DEPDIR="${am__leading_dot}deps" | |
8266 | ||
8267 | ac_config_commands="$ac_config_commands depfiles" | |
8268 | ||
8269 | ||
8270 | am_make=${MAKE-make} | |
8271 | cat > confinc << 'END' | |
8272 | am__doit: | |
8273 | @echo this is the am__doit target | |
8274 | .PHONY: am__doit | |
8275 | END | |
8276 | # If we don't find an include directive, just comment out the code. | |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
8278 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8279 | am__include="#" | |
8280 | am__quote= | |
8281 | _am_result=none | |
8282 | # First try GNU make style include. | |
8283 | echo "include confinc" > confmf | |
8284 | # Ignore all kinds of additional output from `make'. | |
8285 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
8286 | *the\ am__doit\ target*) | |
8287 | am__include=include | |
8288 | am__quote= | |
8289 | _am_result=GNU | |
8290 | ;; | |
8291 | esac | |
8292 | # Now try BSD make style include. | |
8293 | if test "$am__include" = "#"; then | |
8294 | echo '.include "confinc"' > confmf | |
8295 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
8296 | *the\ am__doit\ target*) | |
8297 | am__include=.include | |
8298 | am__quote="\"" | |
8299 | _am_result=BSD | |
8300 | ;; | |
8301 | esac | |
8302 | fi | |
8303 | ||
8304 | ||
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
8306 | $as_echo "$_am_result" >&6; } | |
8307 | rm -f confinc confmf | |
8308 | ||
8309 | # Check whether --enable-dependency-tracking was given. | |
8310 | if test "${enable_dependency_tracking+set}" = set; then : | |
8311 | enableval=$enable_dependency_tracking; | |
fb1e4ffc DJ |
8312 | fi |
8313 | ||
c9a1864a YQ |
8314 | if test "x$enable_dependency_tracking" != xno; then |
8315 | am_depcomp="$ac_aux_dir/depcomp" | |
8316 | AMDEPBACKSLASH='\' | |
8317 | fi | |
8318 | if test "x$enable_dependency_tracking" != xno; then | |
8319 | AMDEP_TRUE= | |
8320 | AMDEP_FALSE='#' | |
fa593d66 | 8321 | else |
c9a1864a YQ |
8322 | AMDEP_TRUE='#' |
8323 | AMDEP_FALSE= | |
8324 | fi | |
fa593d66 | 8325 | |
fa593d66 | 8326 | |
c9a1864a YQ |
8327 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
8328 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
8329 | # is not polluted with repeated "-I." | |
8330 | am__isrc=' -I$(srcdir)' | |
8331 | # test to see if srcdir already configured | |
8332 | if test -f $srcdir/config.status; then | |
8333 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
8334 | fi | |
fa593d66 | 8335 | fi |
c9a1864a YQ |
8336 | |
8337 | # test whether we have cygpath | |
8338 | if test -z "$CYGPATH_W"; then | |
8339 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
8340 | CYGPATH_W='cygpath -w' | |
8341 | else | |
8342 | CYGPATH_W=echo | |
8343 | fi | |
fa593d66 | 8344 | fi |
fa593d66 | 8345 | |
fa593d66 | 8346 | |
c9a1864a YQ |
8347 | # Define the identity of the package. |
8348 | PACKAGE=gdbserver | |
8349 | VERSION=UNUSED-VERSION | |
fa593d66 | 8350 | |
fa593d66 | 8351 | |
c9a1864a | 8352 | # Some tools Automake needs. |
fa593d66 | 8353 | |
c9a1864a | 8354 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
fa593d66 | 8355 | |
03583c20 | 8356 | |
c9a1864a | 8357 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
03583c20 UW |
8358 | |
8359 | ||
c9a1864a | 8360 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
03583c20 | 8361 | |
03583c20 | 8362 | |
c9a1864a | 8363 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
03583c20 | 8364 | |
03583c20 | 8365 | |
c9a1864a | 8366 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
03583c20 | 8367 | |
c9a1864a YQ |
8368 | # We need awk for the "check" target. The system "awk" is bad on |
8369 | # some platforms. | |
8370 | # Always define AMTAR for backward compatibility. | |
03583c20 | 8371 | |
c9a1864a | 8372 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
c2a66c29 | 8373 | |
c9a1864a | 8374 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
fa593d66 | 8375 | |
c2a66c29 | 8376 | |
c9a1864a YQ |
8377 | |
8378 | ||
8379 | depcc="$CC" am_compiler_list= | |
8380 | ||
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
8382 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
8383 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
8384 | $as_echo_n "(cached) " >&6 | |
c2a66c29 | 8385 | else |
c9a1864a YQ |
8386 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
8387 | # We make a subdir and do the tests there. Otherwise we can end up | |
8388 | # making bogus files that we don't know about and never remove. For | |
8389 | # instance it was reported that on HP-UX the gcc test will end up | |
8390 | # making a dummy file named `D' -- because `-MD' means `put the output | |
8391 | # in D'. | |
8392 | mkdir conftest.dir | |
8393 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
8394 | # using a relative directory. | |
8395 | cp "$am_depcomp" conftest.dir | |
8396 | cd conftest.dir | |
8397 | # We will build objects and dependencies in a subdirectory because | |
8398 | # it helps to detect inapplicable dependency modes. For instance | |
8399 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
8400 | # side effect of compilation, but ICC will put the dependencies in | |
8401 | # the current directory while Tru64 will put them in the object | |
8402 | # directory. | |
8403 | mkdir sub | |
8404 | ||
8405 | am_cv_CC_dependencies_compiler_type=none | |
8406 | if test "$am_compiler_list" = ""; then | |
8407 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
8408 | fi | |
8409 | am__universal=false | |
8410 | case " $depcc " in #( | |
8411 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
8412 | esac | |
c2a66c29 | 8413 | |
c9a1864a YQ |
8414 | for depmode in $am_compiler_list; do |
8415 | # Setup a source with many dependencies, because some compilers | |
8416 | # like to wrap large dependency lists on column 80 (with \), and | |
8417 | # we should not choose a depcomp mode which is confused by this. | |
8418 | # | |
8419 | # We need to recreate these files for each test, as the compiler may | |
8420 | # overwrite some of them when testing with obscure command lines. | |
8421 | # This happens at least with the AIX C compiler. | |
8422 | : > sub/conftest.c | |
8423 | for i in 1 2 3 4 5 6; do | |
8424 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8425 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
8426 | # Solaris 8's {/usr,}/bin/sh. | |
8427 | touch sub/conftst$i.h | |
8428 | done | |
8429 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
8430 | ||
8431 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
8432 | # mode. It turns out that the SunPro C++ compiler does not properly | |
8433 | # handle `-M -o', and we need to detect this. Also, some Intel | |
8434 | # versions had trouble with output in subdirs | |
8435 | am__obj=sub/conftest.${OBJEXT-o} | |
8436 | am__minus_obj="-o $am__obj" | |
8437 | case $depmode in | |
8438 | gcc) | |
8439 | # This depmode causes a compiler race in universal mode. | |
8440 | test "$am__universal" = false || continue | |
8441 | ;; | |
8442 | nosideeffect) | |
8443 | # after this tag, mechanisms are not by side-effect, so they'll | |
8444 | # only be used when explicitly requested | |
8445 | if test "x$enable_dependency_tracking" = xyes; then | |
8446 | continue | |
8447 | else | |
8448 | break | |
8449 | fi | |
8450 | ;; | |
8451 | msvisualcpp | msvcmsys) | |
8452 | # This compiler won't grok `-c -o', but also, the minuso test has | |
8453 | # not run yet. These depmodes are late enough in the game, and | |
8454 | # so weak that their functioning should not be impacted. | |
8455 | am__obj=conftest.${OBJEXT-o} | |
8456 | am__minus_obj= | |
8457 | ;; | |
8458 | none) break ;; | |
8459 | esac | |
8460 | if depmode=$depmode \ | |
8461 | source=sub/conftest.c object=$am__obj \ | |
8462 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
8463 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
8464 | >/dev/null 2>conftest.err && | |
8465 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
8466 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
8467 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
8468 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
8469 | # icc doesn't choke on unknown options, it will just issue warnings | |
8470 | # or remarks (even with -Werror). So we grep stderr for any message | |
8471 | # that says an option was ignored or not supported. | |
8472 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
8473 | # icc: Command line warning: ignoring option '-M'; no argument required | |
8474 | # The diagnosis changed in icc 8.0: | |
8475 | # icc: Command line remark: option '-MP' not supported | |
8476 | if (grep 'ignoring option' conftest.err || | |
8477 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8478 | am_cv_CC_dependencies_compiler_type=$depmode | |
8479 | break | |
8480 | fi | |
8481 | fi | |
8482 | done | |
c2a66c29 | 8483 | |
c9a1864a YQ |
8484 | cd .. |
8485 | rm -rf conftest.dir | |
8486 | else | |
8487 | am_cv_CC_dependencies_compiler_type=none | |
fa593d66 PA |
8488 | fi |
8489 | ||
c9a1864a YQ |
8490 | fi |
8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
8492 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
8493 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
fa593d66 | 8494 | |
c9a1864a YQ |
8495 | if |
8496 | test "x$enable_dependency_tracking" != xno \ | |
8497 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
8498 | am__fastdepCC_TRUE= | |
8499 | am__fastdepCC_FALSE='#' | |
8500 | else | |
8501 | am__fastdepCC_TRUE='#' | |
8502 | am__fastdepCC_FALSE= | |
8503 | fi | |
fa593d66 | 8504 | |
0d62e5e8 | 8505 | |
d6e9fb05 JK |
8506 | |
8507 | ||
c9a1864a YQ |
8508 | GNULIB_STDINT_H= |
8509 | if test x"$STDINT_H" != x; then | |
8510 | GNULIB_STDINT_H=gnulib/$STDINT_H | |
8511 | fi | |
d6e9fb05 | 8512 | |
fb1e4ffc | 8513 | |
c9a1864a | 8514 | ac_config_files="$ac_config_files Makefile gnulib/Makefile:${srcdir}/../gnulib/Makefile.in" |
81ecdfbb RW |
8515 | |
8516 | ac_config_commands="$ac_config_commands default" | |
8517 | ||
bec39cab | 8518 | cat >confcache <<\_ACEOF |
d6e9fb05 JK |
8519 | # This file is a shell script that caches the results of configure |
8520 | # tests run on this system so they can be shared between configure | |
bec39cab AC |
8521 | # scripts and configure runs, see configure's option --config-cache. |
8522 | # It is not useful on other systems. If it contains results you don't | |
8523 | # want to keep, you may remove or edit it. | |
d6e9fb05 | 8524 | # |
bec39cab AC |
8525 | # config.status only pays attention to the cache file if you give it |
8526 | # the --recheck option to rerun configure. | |
d6e9fb05 | 8527 | # |
bec39cab AC |
8528 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
8529 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8530 | # following values. | |
8531 | ||
8532 | _ACEOF | |
8533 | ||
d6e9fb05 JK |
8534 | # The following way of writing the cache mishandles newlines in values, |
8535 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 8536 | # So, we kill variables containing newlines. |
d6e9fb05 JK |
8537 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8538 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
8539 | ( |
8540 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8541 | eval ac_val=\$$ac_var | |
8542 | case $ac_val in #( | |
8543 | *${as_nl}*) | |
8544 | case $ac_var in #( | |
8545 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
8546 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
8547 | esac | |
8548 | case $ac_var in #( | |
8549 | _ | IFS | as_nl) ;; #( | |
8550 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
8551 | *) { eval $ac_var=; unset $ac_var;} ;; | |
8552 | esac ;; | |
8553 | esac | |
8554 | done | |
8555 | ||
bec39cab | 8556 | (set) 2>&1 | |
81ecdfbb RW |
8557 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8558 | *${as_nl}ac_space=\ *) | |
8559 | # `set' does not quote correctly, so add quotes: double-quote | |
8560 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bec39cab AC |
8561 | sed -n \ |
8562 | "s/'/'\\\\''/g; | |
8563 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 8564 | ;; #( |
bec39cab AC |
8565 | *) |
8566 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 8567 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 8568 | ;; |
81ecdfbb RW |
8569 | esac | |
8570 | sort | |
8571 | ) | | |
bec39cab | 8572 | sed ' |
81ecdfbb | 8573 | /^ac_cv_env_/b end |
bec39cab | 8574 | t clear |
81ecdfbb | 8575 | :clear |
bec39cab AC |
8576 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8577 | t end | |
81ecdfbb RW |
8578 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8579 | :end' >>confcache | |
8580 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8581 | if test -w "$cache_file"; then | |
8582 | test "x$cache_file" != "x/dev/null" && | |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8584 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bec39cab | 8585 | cat confcache >$cache_file |
d6e9fb05 | 8586 | else |
81ecdfbb RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8588 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d6e9fb05 JK |
8589 | fi |
8590 | fi | |
8591 | rm -f confcache | |
8592 | ||
d6e9fb05 JK |
8593 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8594 | # Let make expand exec_prefix. | |
8595 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8596 | ||
84563040 | 8597 | DEFS=-DHAVE_CONFIG_H |
d6e9fb05 | 8598 | |
bec39cab AC |
8599 | ac_libobjs= |
8600 | ac_ltlibobjs= | |
8601 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8602 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
8603 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8604 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
8605 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
8606 | # will be set to the directory where LIBOBJS objects are built. | |
8607 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8608 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bec39cab AC |
8609 | done |
8610 | LIBOBJS=$ac_libobjs | |
d6e9fb05 | 8611 | |
bec39cab AC |
8612 | LTLIBOBJS=$ac_ltlibobjs |
8613 | ||
8614 | ||
c9a1864a YQ |
8615 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
8616 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
8617 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8618 | fi | |
8619 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | |
8620 | as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. | |
8621 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8622 | fi | |
8623 | ||
8624 | gl_libobjs= | |
8625 | gl_ltlibobjs= | |
8626 | if test -n "$gl_LIBOBJS"; then | |
8627 | # Remove the extension. | |
8628 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
8629 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | |
8630 | gl_libobjs="$gl_libobjs $i.$ac_objext" | |
8631 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
8632 | done | |
8633 | fi | |
8634 | gl_LIBOBJS=$gl_libobjs | |
8635 | ||
8636 | gl_LTLIBOBJS=$gl_ltlibobjs | |
8637 | ||
8638 | ||
8639 | ||
8640 | gltests_libobjs= | |
8641 | gltests_ltlibobjs= | |
8642 | if test -n "$gltests_LIBOBJS"; then | |
8643 | # Remove the extension. | |
8644 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
8645 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | |
8646 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
8647 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
8648 | done | |
8649 | fi | |
8650 | gltests_LIBOBJS=$gltests_libobjs | |
8651 | ||
8652 | gltests_LTLIBOBJS=$gltests_ltlibobjs | |
8653 | ||
8654 | ||
8655 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
8656 | as_fn_error "conditional \"AMDEP\" was never defined. | |
8657 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8658 | fi | |
8659 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
8660 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
8661 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8662 | fi | |
8663 | if test -n "$EXEEXT"; then | |
8664 | am__EXEEXT_TRUE= | |
8665 | am__EXEEXT_FALSE='#' | |
8666 | else | |
8667 | am__EXEEXT_TRUE='#' | |
8668 | am__EXEEXT_FALSE= | |
8669 | fi | |
8670 | ||
bec39cab AC |
8671 | |
8672 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 8673 | ac_write_fail=0 |
bec39cab AC |
8674 | ac_clean_files_save=$ac_clean_files |
8675 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8677 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8678 | as_write_fail=0 | |
8679 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bec39cab AC |
8680 | #! $SHELL |
8681 | # Generated by $as_me. | |
d6e9fb05 | 8682 | # Run this file to recreate the current configuration. |
d6e9fb05 | 8683 | # Compiler output produced by configure, useful for debugging |
bec39cab AC |
8684 | # configure, is in config.log if it exists. |
8685 | ||
8686 | debug=false | |
8687 | ac_cs_recheck=false | |
8688 | ac_cs_silent=false | |
bec39cab | 8689 | |
81ecdfbb RW |
8690 | SHELL=\${CONFIG_SHELL-$SHELL} |
8691 | export SHELL | |
8692 | _ASEOF | |
8693 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8694 | ## -------------------- ## | |
8695 | ## M4sh Initialization. ## | |
8696 | ## -------------------- ## | |
8697 | ||
8698 | # Be more Bourne compatible | |
8699 | DUALCASE=1; export DUALCASE # for MKS sh | |
8700 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
8701 | emulate sh |
8702 | NULLCMD=: | |
81ecdfbb | 8703 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
8704 | # is contrary to our usage. Disable this feature. |
8705 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
8706 | setopt NO_GLOB_SUBST |
8707 | else | |
8708 | case `(set -o) 2>/dev/null` in #( | |
8709 | *posix*) : | |
8710 | set -o posix ;; #( | |
8711 | *) : | |
8712 | ;; | |
8713 | esac | |
bec39cab | 8714 | fi |
d6e9fb05 | 8715 | |
81ecdfbb RW |
8716 | |
8717 | as_nl=' | |
8718 | ' | |
8719 | export as_nl | |
8720 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8721 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8722 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8723 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8724 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
8725 | # but without wasting forks for bash or zsh. | |
8726 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
8727 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8728 | as_echo='print -r --' | |
8729 | as_echo_n='print -rn --' | |
8730 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8731 | as_echo='printf %s\n' | |
8732 | as_echo_n='printf %s' | |
bec39cab | 8733 | else |
81ecdfbb RW |
8734 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
8735 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8736 | as_echo_n='/usr/ucb/echo -n' | |
8737 | else | |
8738 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
8739 | as_echo_n_body='eval | |
8740 | arg=$1; | |
8741 | case $arg in #( | |
8742 | *"$as_nl"*) | |
8743 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8744 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8745 | esac; | |
8746 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8747 | ' | |
8748 | export as_echo_n_body | |
8749 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
8750 | fi | |
8751 | export as_echo_body | |
8752 | as_echo='sh -c $as_echo_body as_echo' | |
8753 | fi | |
8754 | ||
8755 | # The user is always right. | |
8756 | if test "${PATH_SEPARATOR+set}" != set; then | |
8757 | PATH_SEPARATOR=: | |
8758 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8759 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8760 | PATH_SEPARATOR=';' | |
8761 | } | |
bec39cab AC |
8762 | fi |
8763 | ||
8764 | ||
81ecdfbb RW |
8765 | # IFS |
8766 | # We need space, tab and new line, in precisely that order. Quoting is | |
8767 | # there to prevent editors from complaining about space-tab. | |
8768 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8769 | # splitting by setting IFS to empty value.) | |
8770 | IFS=" "" $as_nl" | |
8771 | ||
8772 | # Find who we are. Look in the path if we contain no directory separator. | |
8773 | case $0 in #(( | |
8774 | *[\\/]* ) as_myself=$0 ;; | |
8775 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8776 | for as_dir in $PATH | |
8777 | do | |
8778 | IFS=$as_save_IFS | |
8779 | test -z "$as_dir" && as_dir=. | |
8780 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8781 | done | |
8782 | IFS=$as_save_IFS | |
8783 | ||
8784 | ;; | |
8785 | esac | |
8786 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8787 | # in which case we are not to be found in the path. | |
8788 | if test "x$as_myself" = x; then | |
8789 | as_myself=$0 | |
8790 | fi | |
8791 | if test ! -f "$as_myself"; then | |
8792 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8793 | exit 1 | |
8794 | fi | |
8795 | ||
8796 | # Unset variables that we do not need and which cause bugs (e.g. in | |
8797 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
8798 | # suppresses any "Segmentation fault" message there. '((' could | |
8799 | # trigger a bug in pdksh 5.2.14. | |
8800 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8801 | do eval test x\${$as_var+set} = xset \ | |
8802 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8803 | done | |
bec39cab AC |
8804 | PS1='$ ' |
8805 | PS2='> ' | |
8806 | PS4='+ ' | |
8807 | ||
8808 | # NLS nuisances. | |
81ecdfbb RW |
8809 | LC_ALL=C |
8810 | export LC_ALL | |
8811 | LANGUAGE=C | |
8812 | export LANGUAGE | |
8813 | ||
8814 | # CDPATH. | |
8815 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8816 | ||
8817 | ||
8818 | # as_fn_error ERROR [LINENO LOG_FD] | |
8819 | # --------------------------------- | |
8820 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
8821 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
8822 | # script with status $?, using 1 if that was 0. | |
8823 | as_fn_error () | |
8824 | { | |
8825 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
8826 | if test "$3"; then | |
8827 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8828 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bec39cab | 8829 | fi |
81ecdfbb RW |
8830 | $as_echo "$as_me: error: $1" >&2 |
8831 | as_fn_exit $as_status | |
8832 | } # as_fn_error | |
8833 | ||
8834 | ||
8835 | # as_fn_set_status STATUS | |
8836 | # ----------------------- | |
8837 | # Set $? to STATUS, without forking. | |
8838 | as_fn_set_status () | |
8839 | { | |
8840 | return $1 | |
8841 | } # as_fn_set_status | |
8842 | ||
8843 | # as_fn_exit STATUS | |
8844 | # ----------------- | |
8845 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8846 | as_fn_exit () | |
8847 | { | |
8848 | set +e | |
8849 | as_fn_set_status $1 | |
8850 | exit $1 | |
8851 | } # as_fn_exit | |
8852 | ||
8853 | # as_fn_unset VAR | |
8854 | # --------------- | |
8855 | # Portably unset VAR. | |
8856 | as_fn_unset () | |
8857 | { | |
8858 | { eval $1=; unset $1;} | |
8859 | } | |
8860 | as_unset=as_fn_unset | |
8861 | # as_fn_append VAR VALUE | |
8862 | # ---------------------- | |
8863 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8864 | # advantage of any shell optimizations that allow amortized linear growth over | |
8865 | # repeated appends, instead of the typical quadratic growth present in naive | |
8866 | # implementations. | |
8867 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8868 | eval 'as_fn_append () | |
8869 | { | |
8870 | eval $1+=\$2 | |
8871 | }' | |
8872 | else | |
8873 | as_fn_append () | |
8874 | { | |
8875 | eval $1=\$$1\$2 | |
8876 | } | |
8877 | fi # as_fn_append | |
8878 | ||
8879 | # as_fn_arith ARG... | |
8880 | # ------------------ | |
8881 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8882 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8883 | # must be portable across $(()) and expr. | |
8884 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8885 | eval 'as_fn_arith () | |
8886 | { | |
8887 | as_val=$(( $* )) | |
8888 | }' | |
8889 | else | |
8890 | as_fn_arith () | |
8891 | { | |
8892 | as_val=`expr "$@" || test $? -eq 1` | |
8893 | } | |
8894 | fi # as_fn_arith | |
8895 | ||
d6e9fb05 | 8896 | |
81ecdfbb RW |
8897 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8898 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
8899 | as_expr=expr |
8900 | else | |
8901 | as_expr=false | |
8902 | fi | |
d6e9fb05 | 8903 | |
81ecdfbb | 8904 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
8905 | as_basename=basename |
8906 | else | |
8907 | as_basename=false | |
8908 | fi | |
d6e9fb05 | 8909 | |
81ecdfbb RW |
8910 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8911 | as_dirname=dirname | |
8912 | else | |
8913 | as_dirname=false | |
8914 | fi | |
d6e9fb05 | 8915 | |
81ecdfbb | 8916 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
8917 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8918 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8919 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8920 | $as_echo X/"$0" | | |
8921 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8922 | s//\1/ | |
8923 | q | |
8924 | } | |
8925 | /^X\/\(\/\/\)$/{ | |
8926 | s//\1/ | |
8927 | q | |
8928 | } | |
8929 | /^X\/\(\/\).*/{ | |
8930 | s//\1/ | |
8931 | q | |
8932 | } | |
8933 | s/.*/./; q'` | |
bec39cab | 8934 | |
dae5f5cf DJ |
8935 | # Avoid depending upon Character Ranges. |
8936 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8937 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8938 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8939 | as_cr_digits='0123456789' | |
8940 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8941 | ||
81ecdfbb RW |
8942 | ECHO_C= ECHO_N= ECHO_T= |
8943 | case `echo -n x` in #((((( | |
8944 | -n*) | |
8945 | case `echo 'xy\c'` in | |
8946 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8947 | xy) ECHO_C='\c';; | |
8948 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8949 | ECHO_T=' ';; | |
8950 | esac;; | |
8951 | *) | |
8952 | ECHO_N='-n';; | |
bec39cab AC |
8953 | esac |
8954 | ||
81ecdfbb RW |
8955 | rm -f conf$$ conf$$.exe conf$$.file |
8956 | if test -d conf$$.dir; then | |
8957 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 8958 | else |
81ecdfbb RW |
8959 | rm -f conf$$.dir |
8960 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 8961 | fi |
81ecdfbb RW |
8962 | if (echo >conf$$.file) 2>/dev/null; then |
8963 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 8964 | as_ln_s='ln -s' |
81ecdfbb RW |
8965 | # ... but there are two gotchas: |
8966 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8967 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8968 | # In both cases, we have to default to `cp -p'. | |
8969 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
8970 | as_ln_s='cp -p' | |
8971 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8972 | as_ln_s=ln | |
8973 | else | |
8974 | as_ln_s='cp -p' | |
dae5f5cf | 8975 | fi |
bec39cab AC |
8976 | else |
8977 | as_ln_s='cp -p' | |
8978 | fi | |
81ecdfbb RW |
8979 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8980 | rmdir conf$$.dir 2>/dev/null | |
8981 | ||
8982 | ||
8983 | # as_fn_mkdir_p | |
8984 | # ------------- | |
8985 | # Create "$as_dir" as a directory, including parents if necessary. | |
8986 | as_fn_mkdir_p () | |
8987 | { | |
8988 | ||
8989 | case $as_dir in #( | |
8990 | -*) as_dir=./$as_dir;; | |
8991 | esac | |
8992 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8993 | as_dirs= | |
8994 | while :; do | |
8995 | case $as_dir in #( | |
8996 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8997 | *) as_qdir=$as_dir;; | |
8998 | esac | |
8999 | as_dirs="'$as_qdir' $as_dirs" | |
9000 | as_dir=`$as_dirname -- "$as_dir" || | |
9001 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9002 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9003 | X"$as_dir" : 'X\(//\)$' \| \ | |
9004 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
9005 | $as_echo X"$as_dir" | | |
9006 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9007 | s//\1/ | |
9008 | q | |
9009 | } | |
9010 | /^X\(\/\/\)[^/].*/{ | |
9011 | s//\1/ | |
9012 | q | |
9013 | } | |
9014 | /^X\(\/\/\)$/{ | |
9015 | s//\1/ | |
9016 | q | |
9017 | } | |
9018 | /^X\(\/\).*/{ | |
9019 | s//\1/ | |
9020 | q | |
9021 | } | |
9022 | s/.*/./; q'` | |
9023 | test -d "$as_dir" && break | |
9024 | done | |
9025 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
9026 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
bec39cab | 9027 | |
81ecdfbb RW |
9028 | |
9029 | } # as_fn_mkdir_p | |
bec39cab | 9030 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 9031 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
9032 | else |
9033 | test -d ./-p && rmdir ./-p | |
9034 | as_mkdir_p=false | |
9035 | fi | |
9036 | ||
81ecdfbb RW |
9037 | if test -x / >/dev/null 2>&1; then |
9038 | as_test_x='test -x' | |
9039 | else | |
9040 | if ls -dL / >/dev/null 2>&1; then | |
9041 | as_ls_L_option=L | |
9042 | else | |
9043 | as_ls_L_option= | |
9044 | fi | |
9045 | as_test_x=' | |
9046 | eval sh -c '\'' | |
9047 | if test -d "$1"; then | |
9048 | test -d "$1/."; | |
9049 | else | |
9050 | case $1 in #( | |
9051 | -*)set "./$1";; | |
9052 | esac; | |
9053 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
9054 | ???[sx]*):;;*)false;;esac;fi | |
9055 | '\'' sh | |
9056 | ' | |
9057 | fi | |
9058 | as_executable_p=$as_test_x | |
bec39cab AC |
9059 | |
9060 | # Sed expression to map a string onto a valid CPP name. | |
9061 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9062 | ||
9063 | # Sed expression to map a string onto a valid variable name. | |
9064 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9065 | ||
9066 | ||
bec39cab | 9067 | exec 6>&1 |
81ecdfbb RW |
9068 | ## ----------------------------------- ## |
9069 | ## Main body of $CONFIG_STATUS script. ## | |
9070 | ## ----------------------------------- ## | |
9071 | _ASEOF | |
9072 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9073 | ||
9074 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9075 | # Save the log message, to keep $0 and so on meaningful, and to | |
bec39cab | 9076 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
9077 | # values after options handling. |
9078 | ac_log=" | |
bec39cab | 9079 | This file was extended by $as_me, which was |
81ecdfbb | 9080 | generated by GNU Autoconf 2.64. Invocation command line was |
bec39cab AC |
9081 | |
9082 | CONFIG_FILES = $CONFIG_FILES | |
9083 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9084 | CONFIG_LINKS = $CONFIG_LINKS | |
9085 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9086 | $ $0 $@ | |
9087 | ||
81ecdfbb RW |
9088 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9089 | " | |
9090 | ||
bec39cab AC |
9091 | _ACEOF |
9092 | ||
81ecdfbb RW |
9093 | case $ac_config_files in *" |
9094 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
9095 | esac | |
bec39cab | 9096 | |
81ecdfbb RW |
9097 | case $ac_config_headers in *" |
9098 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
9099 | esac | |
dae5f5cf | 9100 | |
dae5f5cf | 9101 | |
81ecdfbb RW |
9102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9103 | # Files that config.status was made for. | |
9104 | config_files="$ac_config_files" | |
9105 | config_headers="$ac_config_headers" | |
9106 | config_commands="$ac_config_commands" | |
bec39cab | 9107 | |
81ecdfbb | 9108 | _ACEOF |
dae5f5cf | 9109 | |
81ecdfbb | 9110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab | 9111 | ac_cs_usage="\ |
81ecdfbb RW |
9112 | \`$as_me' instantiates files and other configuration actions |
9113 | from templates according to the current configuration. Unless the files | |
9114 | and actions are specified as TAGs, all are instantiated by default. | |
bec39cab | 9115 | |
81ecdfbb | 9116 | Usage: $0 [OPTION]... [TAG]... |
bec39cab AC |
9117 | |
9118 | -h, --help print this help, then exit | |
81ecdfbb RW |
9119 | -V, --version print version number and configuration settings, then exit |
9120 | -q, --quiet, --silent | |
9121 | do not print progress messages | |
bec39cab AC |
9122 | -d, --debug don't remove temporary files |
9123 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
9124 | --file=FILE[:TEMPLATE] |
9125 | instantiate the configuration file FILE | |
9126 | --header=FILE[:TEMPLATE] | |
9127 | instantiate the configuration header FILE | |
bec39cab AC |
9128 | |
9129 | Configuration files: | |
9130 | $config_files | |
9131 | ||
9132 | Configuration headers: | |
9133 | $config_headers | |
9134 | ||
9135 | Configuration commands: | |
9136 | $config_commands | |
9137 | ||
81ecdfbb | 9138 | Report bugs to the package provider." |
dae5f5cf | 9139 | |
81ecdfbb RW |
9140 | _ACEOF |
9141 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bec39cab AC |
9142 | ac_cs_version="\\ |
9143 | config.status | |
81ecdfbb RW |
9144 | configured by $0, generated by GNU Autoconf 2.64, |
9145 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bec39cab | 9146 | |
81ecdfbb | 9147 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
9148 | This config.status script is free software; the Free Software Foundation |
9149 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
9150 | |
9151 | ac_pwd='$ac_pwd' | |
9152 | srcdir='$srcdir' | |
9153 | INSTALL='$INSTALL' | |
c9a1864a YQ |
9154 | MKDIR_P='$MKDIR_P' |
9155 | AWK='$AWK' | |
81ecdfbb | 9156 | test -n "\$AWK" || AWK=awk |
bec39cab AC |
9157 | _ACEOF |
9158 | ||
81ecdfbb RW |
9159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9160 | # The default lists apply if the user does not specify any file. | |
bec39cab AC |
9161 | ac_need_defaults=: |
9162 | while test $# != 0 | |
9163 | do | |
9164 | case $1 in | |
9165 | --*=*) | |
81ecdfbb RW |
9166 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9167 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bec39cab AC |
9168 | ac_shift=: |
9169 | ;; | |
81ecdfbb | 9170 | *) |
bec39cab AC |
9171 | ac_option=$1 |
9172 | ac_optarg=$2 | |
9173 | ac_shift=shift | |
9174 | ;; | |
bec39cab AC |
9175 | esac |
9176 | ||
9177 | case $ac_option in | |
9178 | # Handling of the options. | |
bec39cab AC |
9179 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9180 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
9181 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
9182 | $as_echo "$ac_cs_version"; exit ;; | |
9183 | --debug | --debu | --deb | --de | --d | -d ) | |
bec39cab AC |
9184 | debug=: ;; |
9185 | --file | --fil | --fi | --f ) | |
9186 | $ac_shift | |
81ecdfbb RW |
9187 | case $ac_optarg in |
9188 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9189 | esac | |
9190 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bec39cab AC |
9191 | ac_need_defaults=false;; |
9192 | --header | --heade | --head | --hea ) | |
9193 | $ac_shift | |
81ecdfbb RW |
9194 | case $ac_optarg in |
9195 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9196 | esac | |
9197 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bec39cab | 9198 | ac_need_defaults=false;; |
81ecdfbb RW |
9199 | --he | --h) |
9200 | # Conflict between --help and --header | |
9201 | as_fn_error "ambiguous option: \`$1' | |
9202 | Try \`$0 --help' for more information.";; | |
9203 | --help | --hel | -h ) | |
9204 | $as_echo "$ac_cs_usage"; exit ;; | |
bec39cab AC |
9205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9206 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9207 | ac_cs_silent=: ;; | |
9208 | ||
9209 | # This is an error. | |
81ecdfbb RW |
9210 | -*) as_fn_error "unrecognized option: \`$1' |
9211 | Try \`$0 --help' for more information." ;; | |
bec39cab | 9212 | |
81ecdfbb RW |
9213 | *) as_fn_append ac_config_targets " $1" |
9214 | ac_need_defaults=false ;; | |
bec39cab AC |
9215 | |
9216 | esac | |
9217 | shift | |
d6e9fb05 | 9218 | done |
bec39cab AC |
9219 | |
9220 | ac_configure_extra_args= | |
9221 | ||
9222 | if $ac_cs_silent; then | |
9223 | exec 6>/dev/null | |
9224 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d6e9fb05 | 9225 | fi |
d6e9fb05 | 9226 | |
bec39cab | 9227 | _ACEOF |
81ecdfbb | 9228 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bec39cab | 9229 | if \$ac_cs_recheck; then |
81ecdfbb RW |
9230 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9231 | shift | |
9232 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
9233 | CONFIG_SHELL='$SHELL' | |
9234 | export CONFIG_SHELL | |
9235 | exec "\$@" | |
bec39cab | 9236 | fi |
d6e9fb05 | 9237 | |
bec39cab | 9238 | _ACEOF |
81ecdfbb RW |
9239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9240 | exec 5>>config.log | |
9241 | { | |
9242 | echo | |
9243 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9244 | ## Running $as_me. ## | |
9245 | _ASBOX | |
9246 | $as_echo "$ac_log" | |
9247 | } >&5 | |
bec39cab | 9248 | |
81ecdfbb RW |
9249 | _ACEOF |
9250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c9a1864a YQ |
9251 | # |
9252 | # INIT-COMMANDS | |
9253 | # | |
9254 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
9255 | ||
81ecdfbb | 9256 | _ACEOF |
bec39cab | 9257 | |
81ecdfbb | 9258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80864fb | 9259 | |
81ecdfbb | 9260 | # Handling of arguments. |
bec39cab AC |
9261 | for ac_config_target in $ac_config_targets |
9262 | do | |
81ecdfbb RW |
9263 | case $ac_config_target in |
9264 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
c9a1864a | 9265 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
81ecdfbb | 9266 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
c9a1864a | 9267 | "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile:${srcdir}/../gnulib/Makefile.in" ;; |
81ecdfbb RW |
9268 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
9269 | ||
9270 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
d6e9fb05 | 9271 | esac |
bec39cab AC |
9272 | done |
9273 | ||
81ecdfbb | 9274 | |
bec39cab AC |
9275 | # If the user did not use the arguments to specify the items to instantiate, |
9276 | # then the envvar interface is used. Set only those that are not. | |
9277 | # We use the long form for the default assignment because of an extremely | |
9278 | # bizarre bug on SunOS 4.1.3. | |
9279 | if $ac_need_defaults; then | |
9280 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9281 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9282 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
9283 | fi | |
d6e9fb05 | 9284 | |
bec39cab | 9285 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 9286 | # simply because there is no reason against having it here, and in addition, |
bec39cab | 9287 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
9288 | # Hook for its removal unless debugging. |
9289 | # Note that there is a small window in which the directory will not be cleaned: | |
9290 | # after its creation but before its name has been assigned to `$tmp'. | |
bec39cab AC |
9291 | $debug || |
9292 | { | |
81ecdfbb RW |
9293 | tmp= |
9294 | trap 'exit_status=$? | |
9295 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
9296 | ' 0 | |
9297 | trap 'as_fn_exit 1' 1 2 13 15 | |
bec39cab | 9298 | } |
bec39cab AC |
9299 | # Create a (secure) tmp directory for tmp files. |
9300 | ||
9301 | { | |
81ecdfbb | 9302 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bec39cab AC |
9303 | test -n "$tmp" && test -d "$tmp" |
9304 | } || | |
9305 | { | |
81ecdfbb RW |
9306 | tmp=./conf$$-$RANDOM |
9307 | (umask 077 && mkdir "$tmp") | |
9308 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
9309 | ||
9310 | # Set up the scripts for CONFIG_FILES section. | |
9311 | # No need to generate them if there are no CONFIG_FILES. | |
9312 | # This happens for instance with `./config.status config.h'. | |
9313 | if test -n "$CONFIG_FILES"; then | |
9314 | ||
9315 | ||
9316 | ac_cr=`echo X | tr X '\015'` | |
9317 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
9318 | # But we know of no other shell where ac_cr would be empty at this | |
9319 | # point, so we can use a bashism as a fallback. | |
9320 | if test "x$ac_cr" = x; then | |
9321 | eval ac_cr=\$\'\\r\' | |
9322 | fi | |
9323 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
9324 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
9325 | ac_cs_awk_cr='\r' | |
9326 | else | |
9327 | ac_cs_awk_cr=$ac_cr | |
9328 | fi | |
9329 | ||
9330 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
9331 | _ACEOF | |
9332 | ||
9333 | ||
9334 | { | |
9335 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
9336 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
9337 | echo "_ACEOF" | |
9338 | } >conf$$subs.sh || | |
9339 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
9340 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
9341 | ac_delim='%!_!# ' | |
9342 | for ac_last_try in false false false false false :; do | |
9343 | . ./conf$$subs.sh || | |
9344 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
9345 | ||
9346 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
9347 | if test $ac_delim_n = $ac_delim_num; then | |
9348 | break | |
9349 | elif $ac_last_try; then | |
9350 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
9351 | else | |
9352 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
9353 | fi | |
9354 | done | |
9355 | rm -f conf$$subs.sh | |
9356 | ||
9357 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9358 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
9359 | _ACEOF | |
9360 | sed -n ' | |
9361 | h | |
9362 | s/^/S["/; s/!.*/"]=/ | |
9363 | p | |
9364 | g | |
9365 | s/^[^!]*!// | |
9366 | :repl | |
9367 | t repl | |
9368 | s/'"$ac_delim"'$// | |
9369 | t delim | |
9370 | :nl | |
9371 | h | |
9372 | s/\(.\{148\}\).*/\1/ | |
9373 | t more1 | |
9374 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
9375 | p | |
9376 | n | |
9377 | b repl | |
9378 | :more1 | |
9379 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9380 | p | |
9381 | g | |
9382 | s/.\{148\}// | |
9383 | t nl | |
9384 | :delim | |
9385 | h | |
9386 | s/\(.\{148\}\).*/\1/ | |
9387 | t more2 | |
9388 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
9389 | p | |
9390 | b | |
9391 | :more2 | |
9392 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
9393 | p | |
9394 | g | |
9395 | s/.\{148\}// | |
9396 | t delim | |
9397 | ' <conf$$subs.awk | sed ' | |
9398 | /^[^""]/{ | |
9399 | N | |
9400 | s/\n// | |
9401 | } | |
9402 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
9403 | rm -f conf$$subs.awk | |
9404 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9405 | _ACAWK | |
9406 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
9407 | for (key in S) S_is_set[key] = 1 | |
9408 | FS = "\a" | |
9409 | ||
9410 | } | |
bec39cab | 9411 | { |
81ecdfbb RW |
9412 | line = $ 0 |
9413 | nfields = split(line, field, "@") | |
9414 | substed = 0 | |
9415 | len = length(field[1]) | |
9416 | for (i = 2; i < nfields; i++) { | |
9417 | key = field[i] | |
9418 | keylen = length(key) | |
9419 | if (S_is_set[key]) { | |
9420 | value = S[key] | |
9421 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
9422 | len += length(value) + length(field[++i]) | |
9423 | substed = 1 | |
9424 | } else | |
9425 | len += 1 + keylen | |
9426 | } | |
9427 | ||
9428 | print line | |
bec39cab AC |
9429 | } |
9430 | ||
81ecdfbb RW |
9431 | _ACAWK |
9432 | _ACEOF | |
9433 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9434 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
9435 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
9436 | else | |
9437 | cat | |
9438 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
9439 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
dae5f5cf DJ |
9440 | _ACEOF |
9441 | ||
81ecdfbb RW |
9442 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9443 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9444 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9445 | # (actually we leave an empty line to preserve line numbers). | |
9446 | if test "x$srcdir" = x.; then | |
9447 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
9448 | s/:*\$(srcdir):*/:/ | |
9449 | s/:*\${srcdir}:*/:/ | |
9450 | s/:*@srcdir@:*/:/ | |
9451 | s/^\([^=]*=[ ]*\):*/\1/ | |
9452 | s/:*$// | |
9453 | s/^[^=]*=[ ]*$// | |
9454 | }' | |
9455 | fi | |
bec39cab | 9456 | |
81ecdfbb RW |
9457 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9458 | fi # test -n "$CONFIG_FILES" | |
bec39cab | 9459 | |
81ecdfbb RW |
9460 | # Set up the scripts for CONFIG_HEADERS section. |
9461 | # No need to generate them if there are no CONFIG_HEADERS. | |
9462 | # This happens for instance with `./config.status Makefile'. | |
9463 | if test -n "$CONFIG_HEADERS"; then | |
9464 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
9465 | BEGIN { | |
b80864fb DJ |
9466 | _ACEOF |
9467 | ||
81ecdfbb RW |
9468 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
9469 | # here-document in config.status, that substitutes the proper values into | |
9470 | # config.h.in to produce config.h. | |
9471 | ||
9472 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
9473 | # handling of long lines. | |
9474 | ac_delim='%!_!# ' | |
9475 | for ac_last_try in false false :; do | |
9476 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
9477 | if test -z "$ac_t"; then | |
9478 | break | |
9479 | elif $ac_last_try; then | |
9480 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
9481 | else | |
9482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d6e9fb05 | 9483 | fi |
81ecdfbb | 9484 | done |
d6e9fb05 | 9485 | |
81ecdfbb RW |
9486 | # For the awk script, D is an array of macro values keyed by name, |
9487 | # likewise P contains macro parameters if any. Preserve backslash | |
9488 | # newline sequences. | |
9489 | ||
9490 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
9491 | sed -n ' | |
9492 | s/.\{148\}/&'"$ac_delim"'/g | |
9493 | t rset | |
9494 | :rset | |
9495 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
9496 | t def | |
9497 | d | |
9498 | :def | |
9499 | s/\\$// | |
9500 | t bsnl | |
9501 | s/["\\]/\\&/g | |
9502 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9503 | D["\1"]=" \3"/p | |
9504 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
9505 | d | |
9506 | :bsnl | |
9507 | s/["\\]/\\&/g | |
9508 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
9509 | D["\1"]=" \3\\\\\\n"\\/p | |
9510 | t cont | |
9511 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
9512 | t cont | |
9513 | d | |
9514 | :cont | |
9515 | n | |
9516 | s/.\{148\}/&'"$ac_delim"'/g | |
9517 | t clear | |
9518 | :clear | |
9519 | s/\\$// | |
9520 | t bsnlc | |
9521 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
9522 | d | |
9523 | :bsnlc | |
9524 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
9525 | b cont | |
9526 | ' <confdefs.h | sed ' | |
9527 | s/'"$ac_delim"'/"\\\ | |
9528 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
9529 | ||
9530 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9531 | for (key in D) D_is_set[key] = 1 | |
9532 | FS = "\a" | |
9533 | } | |
9534 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
9535 | line = \$ 0 | |
9536 | split(line, arg, " ") | |
9537 | if (arg[1] == "#") { | |
9538 | defundef = arg[2] | |
9539 | mac1 = arg[3] | |
9540 | } else { | |
9541 | defundef = substr(arg[1], 2) | |
9542 | mac1 = arg[2] | |
9543 | } | |
9544 | split(mac1, mac2, "(") #) | |
9545 | macro = mac2[1] | |
9546 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9547 | if (D_is_set[macro]) { | |
9548 | # Preserve the white space surrounding the "#". | |
9549 | print prefix "define", macro P[macro] D[macro] | |
9550 | next | |
9551 | } else { | |
9552 | # Replace #undef with comments. This is necessary, for example, | |
9553 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9554 | # on some systems where configure will not decide to define it. | |
9555 | if (defundef == "undef") { | |
9556 | print "/*", prefix defundef, macro, "*/" | |
9557 | next | |
9558 | } | |
9559 | } | |
9560 | } | |
9561 | { print } | |
9562 | _ACAWK | |
bec39cab | 9563 | _ACEOF |
81ecdfbb RW |
9564 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9565 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
9566 | fi # test -n "$CONFIG_HEADERS" | |
9567 | ||
9568 | ||
9569 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
9570 | shift | |
9571 | for ac_tag | |
9572 | do | |
9573 | case $ac_tag in | |
9574 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
9575 | esac | |
9576 | case $ac_mode$ac_tag in | |
9577 | :[FHL]*:*);; | |
9578 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
9579 | :[FH]-) ac_tag=-:-;; | |
9580 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
9581 | esac | |
9582 | ac_save_IFS=$IFS | |
9583 | IFS=: | |
9584 | set x $ac_tag | |
9585 | IFS=$ac_save_IFS | |
9586 | shift | |
9587 | ac_file=$1 | |
9588 | shift | |
9589 | ||
9590 | case $ac_mode in | |
9591 | :L) ac_source=$1;; | |
9592 | :[FH]) | |
9593 | ac_file_inputs= | |
9594 | for ac_f | |
9595 | do | |
9596 | case $ac_f in | |
9597 | -) ac_f="$tmp/stdin";; | |
9598 | *) # Look for the file first in the build tree, then in the source tree | |
9599 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9600 | # because $ac_f cannot contain `:'. | |
9601 | test -f "$ac_f" || | |
9602 | case $ac_f in | |
9603 | [\\/$]*) false;; | |
9604 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9605 | esac || | |
9606 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
9607 | esac | |
9608 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
9609 | as_fn_append ac_file_inputs " '$ac_f'" | |
9610 | done | |
9611 | ||
9612 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9613 | # use $as_me), people would be surprised to read: | |
9614 | # /* config.h. Generated by config.status. */ | |
9615 | configure_input='Generated from '` | |
9616 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9617 | `' by configure.' | |
9618 | if test x"$ac_file" != x-; then | |
9619 | configure_input="$ac_file. $configure_input" | |
9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
9621 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9622 | fi | |
9623 | # Neutralize special characters interpreted by sed in replacement strings. | |
9624 | case $configure_input in #( | |
9625 | *\&* | *\|* | *\\* ) | |
9626 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9627 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9628 | *) ac_sed_conf_input=$configure_input;; | |
9629 | esac | |
9630 | ||
9631 | case $ac_tag in | |
9632 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
9633 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
9634 | esac | |
9635 | ;; | |
d6e9fb05 JK |
9636 | esac |
9637 | ||
81ecdfbb | 9638 | ac_dir=`$as_dirname -- "$ac_file" || |
bec39cab AC |
9639 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9640 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9641 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
9642 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9643 | $as_echo X"$ac_file" | | |
9644 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9645 | s//\1/ | |
9646 | q | |
9647 | } | |
9648 | /^X\(\/\/\)[^/].*/{ | |
9649 | s//\1/ | |
9650 | q | |
9651 | } | |
9652 | /^X\(\/\/\)$/{ | |
9653 | s//\1/ | |
9654 | q | |
9655 | } | |
9656 | /^X\(\/\).*/{ | |
9657 | s//\1/ | |
9658 | q | |
9659 | } | |
9660 | s/.*/./; q'` | |
9661 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bec39cab AC |
9662 | ac_builddir=. |
9663 | ||
81ecdfbb RW |
9664 | case "$ac_dir" in |
9665 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9666 | *) | |
9667 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
9668 | # A ".." for each directory in $ac_dir_suffix. | |
9669 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
9670 | case $ac_top_builddir_sub in | |
9671 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9672 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9673 | esac ;; | |
9674 | esac | |
9675 | ac_abs_top_builddir=$ac_pwd | |
9676 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9677 | # for backward compatibility: | |
9678 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
9679 | |
9680 | case $srcdir in | |
81ecdfbb | 9681 | .) # We are building in place. |
bec39cab | 9682 | ac_srcdir=. |
81ecdfbb RW |
9683 | ac_top_srcdir=$ac_top_builddir_sub |
9684 | ac_abs_top_srcdir=$ac_pwd ;; | |
9685 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 9686 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
9687 | ac_top_srcdir=$srcdir |
9688 | ac_abs_top_srcdir=$srcdir ;; | |
9689 | *) # Relative name. | |
9690 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9691 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9692 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 9693 | esac |
81ecdfbb | 9694 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 9695 | |
bec39cab | 9696 | |
81ecdfbb RW |
9697 | case $ac_mode in |
9698 | :F) | |
9699 | # | |
9700 | # CONFIG_FILE | |
9701 | # | |
d6e9fb05 | 9702 | |
bec39cab AC |
9703 | case $INSTALL in |
9704 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 9705 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d6e9fb05 | 9706 | esac |
c9a1864a YQ |
9707 | ac_MKDIR_P=$MKDIR_P |
9708 | case $MKDIR_P in | |
9709 | [\\/$]* | ?:[\\/]* ) ;; | |
9710 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
9711 | esac | |
81ecdfbb | 9712 | _ACEOF |
3db0444b | 9713 | |
81ecdfbb RW |
9714 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9715 | # If the template does not know about datarootdir, expand it. | |
9716 | # FIXME: This hack should be removed a few years after 2.60. | |
9717 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9718 | ac_sed_dataroot=' | |
9719 | /datarootdir/ { | |
9720 | p | |
9721 | q | |
9722 | } | |
9723 | /@datadir@/p | |
9724 | /@docdir@/p | |
9725 | /@infodir@/p | |
9726 | /@localedir@/p | |
9727 | /@mandir@/p' | |
9728 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
9729 | *datarootdir*) ac_datarootdir_seen=yes;; | |
9730 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
9732 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
9733 | _ACEOF | |
9734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9735 | ac_datarootdir_hack=' | |
9736 | s&@datadir@&$datadir&g | |
9737 | s&@docdir@&$docdir&g | |
9738 | s&@infodir@&$infodir&g | |
9739 | s&@localedir@&$localedir&g | |
9740 | s&@mandir@&$mandir&g | |
9741 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9742 | esac | |
bec39cab | 9743 | _ACEOF |
81ecdfbb RW |
9744 | |
9745 | # Neutralize VPATH when `$srcdir' = `.'. | |
9746 | # Shell code in configure.ac might set extrasub. | |
9747 | # FIXME: do we really want to maintain this feature? | |
9748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9749 | ac_sed_extra="$ac_vpsub | |
bec39cab AC |
9750 | $extrasub |
9751 | _ACEOF | |
81ecdfbb | 9752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab AC |
9753 | :t |
9754 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
9755 | s|@configure_input@|$ac_sed_conf_input|;t t |
9756 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
9757 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
9758 | s&@srcdir@&$ac_srcdir&;t t | |
9759 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9760 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9761 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9762 | s&@builddir@&$ac_builddir&;t t | |
9763 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9764 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9765 | s&@INSTALL@&$ac_INSTALL&;t t | |
c9a1864a | 9766 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
9767 | $ac_datarootdir_hack |
9768 | " | |
9769 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
9770 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9771 | ||
9772 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
9773 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
9774 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9776 | which seems to be undefined. Please make sure it is defined." >&5 | |
9777 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
9778 | which seems to be undefined. Please make sure it is defined." >&2;} | |
9779 | ||
9780 | rm -f "$tmp/stdin" | |
bec39cab | 9781 | case $ac_file in |
81ecdfbb RW |
9782 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
9783 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
9784 | esac \ | |
9785 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9786 | ;; | |
9787 | :H) | |
9788 | # | |
9789 | # CONFIG_HEADER | |
9790 | # | |
bec39cab | 9791 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
9792 | { |
9793 | $as_echo "/* $configure_input */" \ | |
9794 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
9795 | } >"$tmp/config.h" \ | |
9796 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9797 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
9799 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bec39cab | 9800 | else |
81ecdfbb RW |
9801 | rm -f "$ac_file" |
9802 | mv "$tmp/config.h" "$ac_file" \ | |
9803 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
84563040 | 9804 | fi |
bec39cab | 9805 | else |
81ecdfbb RW |
9806 | $as_echo "/* $configure_input */" \ |
9807 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
9808 | || as_fn_error "could not create -" "$LINENO" 5 | |
d6e9fb05 | 9809 | fi |
c9a1864a YQ |
9810 | # Compute "$ac_file"'s index in $config_headers. |
9811 | _am_arg="$ac_file" | |
9812 | _am_stamp_count=1 | |
9813 | for _am_header in $config_headers :; do | |
9814 | case $_am_header in | |
9815 | $_am_arg | $_am_arg:* ) | |
9816 | break ;; | |
9817 | * ) | |
9818 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9819 | esac | |
9820 | done | |
9821 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
9822 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9823 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
9824 | X"$_am_arg" : 'X\(//\)$' \| \ | |
9825 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
9826 | $as_echo X"$_am_arg" | | |
9827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9828 | s//\1/ | |
9829 | q | |
9830 | } | |
9831 | /^X\(\/\/\)[^/].*/{ | |
9832 | s//\1/ | |
9833 | q | |
9834 | } | |
9835 | /^X\(\/\/\)$/{ | |
9836 | s//\1/ | |
9837 | q | |
9838 | } | |
9839 | /^X\(\/\).*/{ | |
9840 | s//\1/ | |
9841 | q | |
9842 | } | |
9843 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
81ecdfbb | 9844 | ;; |
dae5f5cf | 9845 | |
81ecdfbb RW |
9846 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9847 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9848 | ;; | |
9849 | esac | |
dae5f5cf DJ |
9850 | |
9851 | ||
81ecdfbb | 9852 | case $ac_file$ac_mode in |
c9a1864a YQ |
9853 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
9854 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
9855 | # are listed without --file. Let's play safe and only enable the eval | |
9856 | # if we detect the quoting. | |
9857 | case $CONFIG_FILES in | |
9858 | *\'*) eval set x "$CONFIG_FILES" ;; | |
9859 | *) set x $CONFIG_FILES ;; | |
9860 | esac | |
9861 | shift | |
9862 | for mf | |
9863 | do | |
9864 | # Strip MF so we end up with the name of the file. | |
9865 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9866 | # Check whether this is an Automake generated Makefile or not. | |
9867 | # We used to match only the files named `Makefile.in', but | |
9868 | # some people rename them; so instead we look at the file content. | |
9869 | # Grep'ing the first line is not enough: some people post-process | |
9870 | # each Makefile.in and add a new line on top of each file to say so. | |
9871 | # Grep'ing the whole file is not good either: AIX grep has a line | |
9872 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9873 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9874 | dirpart=`$as_dirname -- "$mf" || | |
9875 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9876 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9877 | X"$mf" : 'X\(//\)$' \| \ | |
9878 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
9879 | $as_echo X"$mf" | | |
9880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9881 | s//\1/ | |
9882 | q | |
9883 | } | |
9884 | /^X\(\/\/\)[^/].*/{ | |
9885 | s//\1/ | |
9886 | q | |
9887 | } | |
9888 | /^X\(\/\/\)$/{ | |
9889 | s//\1/ | |
9890 | q | |
9891 | } | |
9892 | /^X\(\/\).*/{ | |
9893 | s//\1/ | |
9894 | q | |
9895 | } | |
9896 | s/.*/./; q'` | |
9897 | else | |
9898 | continue | |
9899 | fi | |
9900 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9901 | # from the Makefile without running `make'. | |
9902 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9903 | test -z "$DEPDIR" && continue | |
9904 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9905 | test -z "am__include" && continue | |
9906 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9907 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9908 | U=`sed -n 's/^U = //p' < "$mf"` | |
9909 | # Find all dependency output files, they are included files with | |
9910 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9911 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9912 | # expansion. | |
9913 | for file in `sed -n " | |
9914 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9915 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9916 | # Make sure the directory exists. | |
9917 | test -f "$dirpart/$file" && continue | |
9918 | fdir=`$as_dirname -- "$file" || | |
9919 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9920 | X"$file" : 'X\(//\)[^/]' \| \ | |
9921 | X"$file" : 'X\(//\)$' \| \ | |
9922 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
9923 | $as_echo X"$file" | | |
9924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9925 | s//\1/ | |
9926 | q | |
9927 | } | |
9928 | /^X\(\/\/\)[^/].*/{ | |
9929 | s//\1/ | |
9930 | q | |
9931 | } | |
9932 | /^X\(\/\/\)$/{ | |
9933 | s//\1/ | |
9934 | q | |
9935 | } | |
9936 | /^X\(\/\).*/{ | |
9937 | s//\1/ | |
9938 | q | |
9939 | } | |
9940 | s/.*/./; q'` | |
9941 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
9942 | # echo "creating $dirpart/$file" | |
9943 | echo '# dummy' > "$dirpart/$file" | |
9944 | done | |
9945 | done | |
9946 | } | |
9947 | ;; | |
81ecdfbb | 9948 | "default":C) case x$CONFIG_HEADERS in |
c3a3ccc7 DJ |
9949 | xconfig.h:config.in) |
9950 | echo > stamp-h ;; | |
9951 | esac | |
bec39cab | 9952 | ;; |
81ecdfbb | 9953 | |
bec39cab | 9954 | esac |
81ecdfbb | 9955 | done # for ac_tag |
d6e9fb05 | 9956 | |
bec39cab | 9957 | |
81ecdfbb | 9958 | as_fn_exit 0 |
bec39cab | 9959 | _ACEOF |
bec39cab AC |
9960 | ac_clean_files=$ac_clean_files_save |
9961 | ||
81ecdfbb RW |
9962 | test $ac_write_fail = 0 || |
9963 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
9964 | ||
bec39cab AC |
9965 | |
9966 | # configure is writing to config.log, and then calls config.status. | |
9967 | # config.status does its own redirection, appending to config.log. | |
9968 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9969 | # by configure, so config.status won't be able to write to it; its | |
9970 | # output is simply discarded. So we exec the FD to /dev/null, | |
9971 | # effectively closing config.log, so it can be properly (re)opened and | |
9972 | # appended to by config.status. When coming back to configure, we | |
9973 | # need to make the FD available again. | |
9974 | if test "$no_create" != yes; then | |
9975 | ac_cs_success=: | |
9976 | ac_config_status_args= | |
9977 | test "$silent" = yes && | |
9978 | ac_config_status_args="$ac_config_status_args --quiet" | |
9979 | exec 5>/dev/null | |
9980 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9981 | exec 5>>config.log | |
9982 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9983 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
9984 | $ac_cs_success || as_fn_exit $? |
9985 | fi | |
9986 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9988 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bec39cab | 9989 | fi |
d6e9fb05 | 9990 |