]>
Commit | Line | Data |
---|---|---|
208fdb50 | 1 | @%:@! /bin/sh |
73a146be | 2 | @%:@ From configure.ac for Bash 4.3, version 4.056. |
208fdb50 CR |
3 | @%:@ Guess values for system-dependent variables and create Makefiles. |
4 | @%:@ Generated by GNU Autoconf 2.68 for bash 4.3-alpha. | |
5 | @%:@ | |
6 | @%:@ Report bugs to <bug-bash@gnu.org>. | |
7 | @%:@ | |
8 | @%:@ | |
9 | @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
10 | @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
11 | @%:@ Foundation, Inc. | |
12 | @%:@ | |
13 | @%:@ | |
14 | @%:@ This configure script is free software; the Free Software Foundation | |
15 | @%:@ gives unlimited permission to copy, distribute and modify it. | |
16 | ## -------------------- ## | |
17 | ## M4sh Initialization. ## | |
18 | ## -------------------- ## | |
19 | ||
20 | # Be more Bourne compatible | |
21 | DUALCASE=1; export DUALCASE # for MKS sh | |
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
23 | emulate sh | |
24 | NULLCMD=: | |
25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
26 | # is contrary to our usage. Disable this feature. | |
27 | alias -g '${1+"$@"}'='"$@"' | |
28 | setopt NO_GLOB_SUBST | |
29 | else | |
30 | case `(set -o) 2>/dev/null` in @%:@( | |
31 | *posix*) : | |
32 | set -o posix ;; @%:@( | |
33 | *) : | |
34 | ;; | |
35 | esac | |
36 | fi | |
37 | ||
38 | ||
39 | as_nl=' | |
40 | ' | |
41 | export as_nl | |
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
47 | # but without wasting forks for bash or zsh. | |
48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='print -r --' | |
51 | as_echo_n='print -rn --' | |
52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
53 | as_echo='printf %s\n' | |
54 | as_echo_n='printf %s' | |
55 | else | |
56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
58 | as_echo_n='/usr/ucb/echo -n' | |
59 | else | |
60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
61 | as_echo_n_body='eval | |
62 | arg=$1; | |
63 | case $arg in @%:@( | |
64 | *"$as_nl"*) | |
65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
67 | esac; | |
68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
69 | ' | |
70 | export as_echo_n_body | |
71 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
72 | fi | |
73 | export as_echo_body | |
74 | as_echo='sh -c $as_echo_body as_echo' | |
75 | fi | |
76 | ||
77 | # The user is always right. | |
78 | if test "${PATH_SEPARATOR+set}" != set; then | |
79 | PATH_SEPARATOR=: | |
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
82 | PATH_SEPARATOR=';' | |
83 | } | |
84 | fi | |
85 | ||
86 | ||
87 | # IFS | |
88 | # We need space, tab and new line, in precisely that order. Quoting is | |
89 | # there to prevent editors from complaining about space-tab. | |
90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
91 | # splitting by setting IFS to empty value.) | |
92 | IFS=" "" $as_nl" | |
93 | ||
94 | # Find who we are. Look in the path if we contain no directory separator. | |
95 | as_myself= | |
96 | case $0 in @%:@(( | |
97 | *[\\/]* ) as_myself=$0 ;; | |
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
99 | for as_dir in $PATH | |
100 | do | |
101 | IFS=$as_save_IFS | |
102 | test -z "$as_dir" && as_dir=. | |
103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
104 | done | |
105 | IFS=$as_save_IFS | |
106 | ||
107 | ;; | |
108 | esac | |
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
110 | # in which case we are not to be found in the path. | |
111 | if test "x$as_myself" = x; then | |
112 | as_myself=$0 | |
113 | fi | |
114 | if test ! -f "$as_myself"; then | |
115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
116 | exit 1 | |
117 | fi | |
118 | ||
119 | # Unset variables that we do not need and which cause bugs (e.g. in | |
120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
121 | # suppresses any "Segmentation fault" message there. '((' could | |
122 | # trigger a bug in pdksh 5.2.14. | |
123 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
124 | do eval test x\${$as_var+set} = xset \ | |
125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
126 | done | |
127 | PS1='$ ' | |
128 | PS2='> ' | |
129 | PS4='+ ' | |
130 | ||
131 | # NLS nuisances. | |
132 | LC_ALL=C | |
133 | export LC_ALL | |
134 | LANGUAGE=C | |
135 | export LANGUAGE | |
136 | ||
137 | # CDPATH. | |
138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
139 | ||
140 | if test "x$CONFIG_SHELL" = x; then | |
141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
142 | emulate sh | |
143 | NULLCMD=: | |
144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
145 | # is contrary to our usage. Disable this feature. | |
146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
147 | setopt NO_GLOB_SUBST | |
148 | else | |
149 | case \`(set -o) 2>/dev/null\` in @%:@( | |
150 | *posix*) : | |
151 | set -o posix ;; @%:@( | |
152 | *) : | |
153 | ;; | |
154 | esac | |
155 | fi | |
156 | " | |
157 | as_required="as_fn_return () { (exit \$1); } | |
158 | as_fn_success () { as_fn_return 0; } | |
159 | as_fn_failure () { as_fn_return 1; } | |
160 | as_fn_ret_success () { return 0; } | |
161 | as_fn_ret_failure () { return 1; } | |
162 | ||
163 | exitcode=0 | |
164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
169 | ||
170 | else | |
171 | exitcode=1; echo positional parameters were not saved. | |
172 | fi | |
173 | test x\$exitcode = x0 || exit 1" | |
174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
178 | test \$(( 1 + 1 )) = 2 || exit 1" | |
179 | if (eval "$as_required") 2>/dev/null; then : | |
180 | as_have_required=yes | |
181 | else | |
182 | as_have_required=no | |
183 | fi | |
184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
185 | ||
186 | else | |
187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
188 | as_found=false | |
189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
190 | do | |
191 | IFS=$as_save_IFS | |
192 | test -z "$as_dir" && as_dir=. | |
193 | as_found=: | |
194 | case $as_dir in @%:@( | |
195 | /*) | |
196 | for as_base in sh bash ksh sh5; do | |
197 | # Try only shells that exist, to save several forks. | |
198 | as_shell=$as_dir/$as_base | |
199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | CONFIG_SHELL=$as_shell as_have_required=yes | |
202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | break 2 | |
204 | fi | |
205 | fi | |
206 | done;; | |
207 | esac | |
208 | as_found=false | |
209 | done | |
210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
212 | CONFIG_SHELL=$SHELL as_have_required=yes | |
213 | fi; } | |
214 | IFS=$as_save_IFS | |
215 | ||
216 | ||
217 | if test "x$CONFIG_SHELL" != x; then : | |
218 | # We cannot yet assume a decent shell, so we have to provide a | |
219 | # neutralization value for shells without unset; and this also | |
220 | # works around shells that cannot unset nonexistent variables. | |
221 | # Preserve -v and -x to the replacement shell. | |
222 | BASH_ENV=/dev/null | |
223 | ENV=/dev/null | |
224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
225 | export CONFIG_SHELL | |
226 | case $- in @%:@ (((( | |
227 | *v*x* | *x*v* ) as_opts=-vx ;; | |
228 | *v* ) as_opts=-v ;; | |
229 | *x* ) as_opts=-x ;; | |
230 | * ) as_opts= ;; | |
231 | esac | |
232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
233 | fi | |
234 | ||
235 | if test x$as_have_required = xno; then : | |
236 | $as_echo "$0: This script requires a shell more modern than all" | |
237 | $as_echo "$0: the shells that I found on your system." | |
238 | if test x${ZSH_VERSION+set} = xset ; then | |
239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
241 | else | |
242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-bash@gnu.org | |
243 | $0: about your system, including any error possibly output | |
244 | $0: before this message. Then install a modern shell, or | |
245 | $0: manually run the script under such a shell if you do | |
246 | $0: have one." | |
247 | fi | |
248 | exit 1 | |
249 | fi | |
250 | fi | |
251 | fi | |
252 | SHELL=${CONFIG_SHELL-/bin/sh} | |
253 | export SHELL | |
254 | # Unset more variables known to interfere with behavior of common tools. | |
255 | CLICOLOR_FORCE= GREP_OPTIONS= | |
256 | unset CLICOLOR_FORCE GREP_OPTIONS | |
257 | ||
258 | ## --------------------- ## | |
259 | ## M4sh Shell Functions. ## | |
260 | ## --------------------- ## | |
261 | @%:@ as_fn_unset VAR | |
262 | @%:@ --------------- | |
263 | @%:@ Portably unset VAR. | |
264 | as_fn_unset () | |
265 | { | |
266 | { eval $1=; unset $1;} | |
267 | } | |
268 | as_unset=as_fn_unset | |
269 | ||
270 | @%:@ as_fn_set_status STATUS | |
271 | @%:@ ----------------------- | |
272 | @%:@ Set @S|@? to STATUS, without forking. | |
273 | as_fn_set_status () | |
274 | { | |
275 | return $1 | |
276 | } @%:@ as_fn_set_status | |
277 | ||
278 | @%:@ as_fn_exit STATUS | |
279 | @%:@ ----------------- | |
280 | @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
281 | as_fn_exit () | |
282 | { | |
283 | set +e | |
284 | as_fn_set_status $1 | |
285 | exit $1 | |
286 | } @%:@ as_fn_exit | |
287 | ||
288 | @%:@ as_fn_mkdir_p | |
289 | @%:@ ------------- | |
290 | @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. | |
291 | as_fn_mkdir_p () | |
292 | { | |
293 | ||
294 | case $as_dir in #( | |
295 | -*) as_dir=./$as_dir;; | |
296 | esac | |
297 | test -d "$as_dir" || eval $as_mkdir_p || { | |
298 | as_dirs= | |
299 | while :; do | |
300 | case $as_dir in #( | |
301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
302 | *) as_qdir=$as_dir;; | |
303 | esac | |
304 | as_dirs="'$as_qdir' $as_dirs" | |
305 | as_dir=`$as_dirname -- "$as_dir" || | |
306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
308 | X"$as_dir" : 'X\(//\)$' \| \ | |
309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
310 | $as_echo X"$as_dir" | | |
311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)[^/].*/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\/\)$/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | /^X\(\/\).*/{ | |
324 | s//\1/ | |
325 | q | |
326 | } | |
327 | s/.*/./; q'` | |
328 | test -d "$as_dir" && break | |
329 | done | |
330 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
332 | ||
333 | ||
334 | } @%:@ as_fn_mkdir_p | |
335 | @%:@ as_fn_append VAR VALUE | |
336 | @%:@ ---------------------- | |
337 | @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take | |
338 | @%:@ advantage of any shell optimizations that allow amortized linear growth over | |
339 | @%:@ repeated appends, instead of the typical quadratic growth present in naive | |
340 | @%:@ implementations. | |
341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
342 | eval 'as_fn_append () | |
343 | { | |
344 | eval $1+=\$2 | |
345 | }' | |
346 | else | |
347 | as_fn_append () | |
348 | { | |
349 | eval $1=\$$1\$2 | |
350 | } | |
351 | fi # as_fn_append | |
352 | ||
353 | @%:@ as_fn_arith ARG... | |
354 | @%:@ ------------------ | |
355 | @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the | |
356 | @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments | |
357 | @%:@ must be portable across @S|@(()) and expr. | |
358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
359 | eval 'as_fn_arith () | |
360 | { | |
361 | as_val=$(( $* )) | |
362 | }' | |
363 | else | |
364 | as_fn_arith () | |
365 | { | |
366 | as_val=`expr "$@" || test $? -eq 1` | |
367 | } | |
368 | fi # as_fn_arith | |
369 | ||
370 | ||
371 | @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] | |
372 | @%:@ ---------------------------------------- | |
373 | @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
374 | @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
375 | @%:@ script with STATUS, using 1 if that was 0. | |
376 | as_fn_error () | |
377 | { | |
378 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
379 | if test "$4"; then | |
380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
382 | fi | |
383 | $as_echo "$as_me: error: $2" >&2 | |
384 | as_fn_exit $as_status | |
385 | } @%:@ as_fn_error | |
386 | ||
387 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
389 | as_expr=expr | |
390 | else | |
391 | as_expr=false | |
392 | fi | |
393 | ||
394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
395 | as_basename=basename | |
396 | else | |
397 | as_basename=false | |
398 | fi | |
399 | ||
400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
401 | as_dirname=dirname | |
402 | else | |
403 | as_dirname=false | |
404 | fi | |
405 | ||
406 | as_me=`$as_basename -- "$0" || | |
407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
408 | X"$0" : 'X\(//\)$' \| \ | |
409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
410 | $as_echo X/"$0" | | |
411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\/\)$/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | /^X\/\(\/\).*/{ | |
420 | s//\1/ | |
421 | q | |
422 | } | |
423 | s/.*/./; q'` | |
424 | ||
425 | # Avoid depending upon Character Ranges. | |
426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
429 | as_cr_digits='0123456789' | |
430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
431 | ||
432 | ||
433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
442 | sed ' | |
443 | s/[$]LINENO.*/&-/ | |
444 | t lineno | |
445 | b | |
446 | :lineno | |
447 | N | |
448 | :loop | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
450 | t loop | |
451 | s/-\n.*// | |
452 | ' >$as_me.lineno && | |
453 | chmod +x "$as_me.lineno" || | |
454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
455 | ||
456 | # Don't try to exec as it changes $[0], causing all sort of problems | |
457 | # (the dirname of $[0] is not the place where we might find the | |
458 | # original and so on. Autoconf is especially sensitive to this). | |
459 | . "./$as_me.lineno" | |
460 | # Exit status is that of the last command. | |
461 | exit | |
462 | } | |
463 | ||
464 | ECHO_C= ECHO_N= ECHO_T= | |
465 | case `echo -n x` in @%:@((((( | |
466 | -n*) | |
467 | case `echo 'xy\c'` in | |
468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
469 | xy) ECHO_C='\c';; | |
470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
471 | ECHO_T=' ';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
475 | esac | |
476 | ||
477 | rm -f conf$$ conf$$.exe conf$$.file | |
478 | if test -d conf$$.dir; then | |
479 | rm -f conf$$.dir/conf$$.file | |
480 | else | |
481 | rm -f conf$$.dir | |
482 | mkdir conf$$.dir 2>/dev/null | |
483 | fi | |
484 | if (echo >conf$$.file) 2>/dev/null; then | |
485 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
486 | as_ln_s='ln -s' | |
487 | # ... but there are two gotchas: | |
488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
490 | # In both cases, we have to default to `cp -p'. | |
491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
492 | as_ln_s='cp -p' | |
493 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
494 | as_ln_s=ln | |
495 | else | |
496 | as_ln_s='cp -p' | |
497 | fi | |
498 | else | |
499 | as_ln_s='cp -p' | |
500 | fi | |
501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
502 | rmdir conf$$.dir 2>/dev/null | |
503 | ||
504 | if mkdir -p . 2>/dev/null; then | |
505 | as_mkdir_p='mkdir -p "$as_dir"' | |
506 | else | |
507 | test -d ./-p && rmdir ./-p | |
508 | as_mkdir_p=false | |
509 | fi | |
510 | ||
511 | if test -x / >/dev/null 2>&1; then | |
512 | as_test_x='test -x' | |
513 | else | |
514 | if ls -dL / >/dev/null 2>&1; then | |
515 | as_ls_L_option=L | |
516 | else | |
517 | as_ls_L_option= | |
518 | fi | |
519 | as_test_x=' | |
520 | eval sh -c '\'' | |
521 | if test -d "$1"; then | |
522 | test -d "$1/."; | |
523 | else | |
524 | case $1 in @%:@( | |
525 | -*)set "./$1";; | |
526 | esac; | |
527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( | |
528 | ???[sx]*):;;*)false;;esac;fi | |
529 | '\'' sh | |
530 | ' | |
531 | fi | |
532 | as_executable_p=$as_test_x | |
533 | ||
534 | # Sed expression to map a string onto a valid CPP name. | |
535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
536 | ||
537 | # Sed expression to map a string onto a valid variable name. | |
538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
539 | ||
540 | ||
541 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
542 | exec 6>&1 | |
543 | ||
544 | # Name of the host. | |
545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
546 | # so uname gets run too. | |
547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
548 | ||
549 | # | |
550 | # Initializations. | |
551 | # | |
552 | ac_default_prefix=/usr/local | |
553 | ac_clean_files= | |
554 | ac_config_libobj_dir=. | |
555 | LIB@&t@OBJS= | |
556 | cross_compiling=no | |
557 | subdirs= | |
558 | MFLAGS= | |
559 | MAKEFLAGS= | |
560 | ||
561 | # Identity of this package. | |
562 | PACKAGE_NAME='bash' | |
563 | PACKAGE_TARNAME='bash' | |
564 | PACKAGE_VERSION='4.3-alpha' | |
565 | PACKAGE_STRING='bash 4.3-alpha' | |
566 | PACKAGE_BUGREPORT='bug-bash@gnu.org' | |
567 | PACKAGE_URL='' | |
568 | ||
569 | ac_unique_file="shell.h" | |
570 | # Factoring default headers for most tests. | |
571 | ac_includes_default="\ | |
572 | #include <stdio.h> | |
573 | #ifdef HAVE_SYS_TYPES_H | |
574 | # include <sys/types.h> | |
575 | #endif | |
576 | #ifdef HAVE_SYS_STAT_H | |
577 | # include <sys/stat.h> | |
578 | #endif | |
579 | #ifdef STDC_HEADERS | |
580 | # include <stdlib.h> | |
581 | # include <stddef.h> | |
582 | #else | |
583 | # ifdef HAVE_STDLIB_H | |
584 | # include <stdlib.h> | |
585 | # endif | |
586 | #endif | |
587 | #ifdef HAVE_STRING_H | |
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
589 | # include <memory.h> | |
590 | # endif | |
591 | # include <string.h> | |
592 | #endif | |
593 | #ifdef HAVE_STRINGS_H | |
594 | # include <strings.h> | |
595 | #endif | |
596 | #ifdef HAVE_INTTYPES_H | |
597 | # include <inttypes.h> | |
598 | #endif | |
599 | #ifdef HAVE_STDINT_H | |
600 | # include <stdint.h> | |
601 | #endif | |
602 | #ifdef HAVE_UNISTD_H | |
603 | # include <unistd.h> | |
604 | #endif" | |
605 | ||
606 | ac_header_list= | |
607 | ac_func_list= | |
608 | ac_subst_vars='LTLIBOBJS | |
609 | LOCAL_DEFS | |
610 | LOCAL_LDFLAGS | |
611 | LOCAL_CFLAGS | |
612 | LOCAL_LIBS | |
613 | MALLOC_DEBUG | |
614 | DEBUG | |
615 | RELSTATUS | |
616 | BASHVERS | |
617 | ARFLAGS | |
618 | BUILD_DIR | |
619 | incdir | |
620 | PROFILE_FLAGS | |
621 | SHOBJ_STATUS | |
622 | SHOBJ_LIBS | |
623 | SHOBJ_XLDFLAGS | |
624 | SHOBJ_LDFLAGS | |
625 | SHOBJ_LD | |
626 | SHOBJ_CFLAGS | |
627 | SHOBJ_CC | |
628 | JOBS_O | |
629 | TERMCAP_DEP | |
630 | TERMCAP_LIB | |
631 | SIGLIST_O | |
632 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC | |
633 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC | |
634 | TIME_H_DEFINES_STRUCT_TIMESPEC | |
635 | LIBINTL_H | |
636 | INTL_INC | |
637 | INTL_DEP | |
638 | LIB@&t@OBJS | |
639 | POSUB | |
640 | LTLIBINTL | |
641 | LIBINTL | |
642 | INTLLIBS | |
643 | INTL_LIBTOOL_SUFFIX_PREFIX | |
644 | INTLOBJS | |
645 | GENCAT | |
646 | INSTOBJEXT | |
647 | DATADIRNAME | |
648 | CATOBJEXT | |
649 | USE_INCLUDED_LIBINTL | |
650 | BUILD_INCLUDED_LIBINTL | |
651 | INTLBISON | |
652 | LTLIBICONV | |
653 | LIBICONV | |
654 | GLIBC21 | |
655 | ALLOCA | |
656 | MSGMERGE | |
657 | XGETTEXT | |
658 | GMSGFMT | |
659 | MSGFMT | |
660 | USE_NLS | |
661 | MKINSTALLDIRS | |
662 | SIZE | |
663 | MAKE_SHELL | |
664 | SET_MAKE | |
665 | YFLAGS | |
666 | YACC | |
667 | RANLIB | |
668 | AR | |
669 | INSTALL_DATA | |
670 | INSTALL_SCRIPT | |
671 | INSTALL_PROGRAM | |
672 | TILDE_LIB | |
673 | HIST_LIBDIR | |
674 | HISTORY_DEP | |
675 | HISTORY_LIB | |
676 | RL_INCLUDE | |
677 | RL_INCLUDEDIR | |
678 | RL_LIBDIR | |
679 | READLINE_DEP | |
680 | READLINE_LIB | |
681 | RL_MINOR | |
682 | RL_MAJOR | |
683 | RL_VERSION | |
684 | LIBS_FOR_BUILD | |
685 | STATIC_LD | |
686 | SIGNAMES_O | |
687 | SIGNAMES_H | |
688 | CROSS_COMPILE | |
689 | EGREP | |
690 | GREP | |
691 | CPP | |
692 | OBJEXT | |
693 | EXEEXT | |
694 | ac_ct_CC | |
695 | CPPFLAGS | |
696 | LDFLAGS | |
697 | CFLAGS | |
698 | CC | |
699 | HELPSTRINGS | |
700 | HELPFILES_TARGET | |
701 | HELPINSTALL | |
702 | HELPDIRDEFINE | |
703 | HELPDIR | |
704 | MALLOC_DEP | |
705 | MALLOC_LDFLAGS | |
706 | MALLOC_LIBRARY | |
707 | MALLOC_LIB | |
708 | MALLOC_SRC | |
709 | MALLOC_TARGET | |
710 | PURIFY | |
711 | TESTSCRIPT | |
712 | CPPFLAGS_FOR_BUILD | |
713 | LDFLAGS_FOR_BUILD | |
714 | CFLAGS_FOR_BUILD | |
715 | CC_FOR_BUILD | |
716 | DEBUGGER_START_FILE | |
717 | host_os | |
718 | host_vendor | |
719 | host_cpu | |
720 | host | |
721 | build_os | |
722 | build_vendor | |
723 | build_cpu | |
724 | build | |
725 | target_alias | |
726 | host_alias | |
727 | build_alias | |
728 | LIBS | |
729 | ECHO_T | |
730 | ECHO_N | |
731 | ECHO_C | |
732 | DEFS | |
733 | mandir | |
734 | localedir | |
735 | libdir | |
736 | psdir | |
737 | pdfdir | |
738 | dvidir | |
739 | htmldir | |
740 | infodir | |
741 | docdir | |
742 | oldincludedir | |
743 | includedir | |
744 | localstatedir | |
745 | sharedstatedir | |
746 | sysconfdir | |
747 | datadir | |
748 | datarootdir | |
749 | libexecdir | |
750 | sbindir | |
751 | bindir | |
752 | program_transform_name | |
753 | prefix | |
754 | exec_prefix | |
755 | PACKAGE_URL | |
756 | PACKAGE_BUGREPORT | |
757 | PACKAGE_STRING | |
758 | PACKAGE_VERSION | |
759 | PACKAGE_TARNAME | |
760 | PACKAGE_NAME | |
761 | PATH_SEPARATOR | |
762 | SHELL' | |
763 | ac_subst_files='' | |
764 | ac_user_opts=' | |
765 | enable_option_checking | |
766 | with_afs | |
767 | with_bash_malloc | |
768 | with_curses | |
769 | with_gnu_malloc | |
770 | with_installed_readline | |
771 | with_purecov | |
772 | with_purify | |
773 | enable_minimal_config | |
774 | enable_alias | |
775 | enable_arith_for_command | |
776 | enable_array_variables | |
777 | enable_bang_history | |
778 | enable_brace_expansion | |
779 | enable_casemod_attributes | |
780 | enable_casemod_expansions | |
781 | enable_command_timing | |
782 | enable_cond_command | |
783 | enable_cond_regexp | |
784 | enable_coprocesses | |
785 | enable_debugger | |
786 | enable_direxpand_default | |
787 | enable_directory_stack | |
788 | enable_disabled_builtins | |
789 | enable_dparen_arithmetic | |
790 | enable_extended_glob | |
791 | enable_extended_glob_default | |
792 | enable_help_builtin | |
793 | enable_history | |
794 | enable_job_control | |
795 | enable_multibyte | |
796 | enable_net_redirections | |
797 | enable_process_substitution | |
798 | enable_progcomp | |
799 | enable_prompt_string_decoding | |
800 | enable_readline | |
801 | enable_restricted | |
802 | enable_select | |
803 | enable_separate_helpfiles | |
804 | enable_single_help_strings | |
805 | enable_strict_posix_default | |
806 | enable_usg_echo_default | |
807 | enable_xpg_echo_default | |
808 | enable_mem_scramble | |
809 | enable_profiling | |
810 | enable_static_link | |
811 | enable_largefile | |
812 | enable_nls | |
813 | with_gnu_ld | |
814 | enable_rpath | |
815 | with_libiconv_prefix | |
816 | with_included_gettext | |
817 | with_libintl_prefix | |
818 | ' | |
819 | ac_precious_vars='build_alias | |
820 | host_alias | |
821 | target_alias | |
822 | DEBUGGER_START_FILE | |
823 | CC_FOR_BUILD | |
824 | CFLAGS_FOR_BUILD | |
825 | LDFLAGS_FOR_BUILD | |
826 | CPPFLAGS_FOR_BUILD | |
827 | CC | |
828 | CFLAGS | |
829 | LDFLAGS | |
830 | LIBS | |
831 | CPPFLAGS | |
832 | CPP | |
833 | YACC | |
834 | YFLAGS' | |
835 | ||
836 | ||
837 | # Initialize some variables set by options. | |
838 | ac_init_help= | |
839 | ac_init_version=false | |
840 | ac_unrecognized_opts= | |
841 | ac_unrecognized_sep= | |
842 | # The variables have the same names as the options, with | |
843 | # dashes changed to underlines. | |
844 | cache_file=/dev/null | |
845 | exec_prefix=NONE | |
846 | no_create= | |
847 | no_recursion= | |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
855 | verbose= | |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
858 | ||
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
864 | # (The list follows the same order as the GNU Coding Standards.) | |
865 | bindir='${exec_prefix}/bin' | |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
868 | datarootdir='${prefix}/share' | |
869 | datadir='${datarootdir}' | |
870 | sysconfdir='${prefix}/etc' | |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
873 | includedir='${prefix}/include' | |
874 | oldincludedir='/usr/include' | |
875 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
876 | infodir='${datarootdir}/info' | |
877 | htmldir='${docdir}' | |
878 | dvidir='${docdir}' | |
879 | pdfdir='${docdir}' | |
880 | psdir='${docdir}' | |
881 | libdir='${exec_prefix}/lib' | |
882 | localedir='${datarootdir}/locale' | |
883 | mandir='${datarootdir}/man' | |
884 | ||
885 | ac_prev= | |
886 | ac_dashdash= | |
887 | for ac_option | |
888 | do | |
889 | # If the previous option needs an argument, assign it. | |
890 | if test -n "$ac_prev"; then | |
891 | eval $ac_prev=\$ac_option | |
892 | ac_prev= | |
893 | continue | |
894 | fi | |
895 | ||
896 | case $ac_option in | |
897 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
898 | *=) ac_optarg= ;; | |
899 | *) ac_optarg=yes ;; | |
900 | esac | |
901 | ||
902 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
903 | ||
904 | case $ac_dashdash$ac_option in | |
905 | --) | |
906 | ac_dashdash=yes ;; | |
907 | ||
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
909 | ac_prev=bindir ;; | |
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
911 | bindir=$ac_optarg ;; | |
912 | ||
913 | -build | --build | --buil | --bui | --bu) | |
914 | ac_prev=build_alias ;; | |
915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
916 | build_alias=$ac_optarg ;; | |
917 | ||
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
920 | ac_prev=cache_file ;; | |
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
923 | cache_file=$ac_optarg ;; | |
924 | ||
925 | --config-cache | -C) | |
926 | cache_file=config.cache ;; | |
927 | ||
928 | -datadir | --datadir | --datadi | --datad) | |
929 | ac_prev=datadir ;; | |
930 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
931 | datadir=$ac_optarg ;; | |
932 | ||
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
934 | | --dataroo | --dataro | --datar) | |
935 | ac_prev=datarootdir ;; | |
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
938 | datarootdir=$ac_optarg ;; | |
939 | ||
940 | -disable-* | --disable-*) | |
941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
942 | # Reject names that are not valid shell variable names. | |
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
944 | as_fn_error $? "invalid feature name: $ac_useropt" | |
945 | ac_useropt_orig=$ac_useropt | |
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
947 | case $ac_user_opts in | |
948 | *" | |
949 | "enable_$ac_useropt" | |
950 | "*) ;; | |
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
952 | ac_unrecognized_sep=', ';; | |
953 | esac | |
954 | eval enable_$ac_useropt=no ;; | |
955 | ||
956 | -docdir | --docdir | --docdi | --doc | --do) | |
957 | ac_prev=docdir ;; | |
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
959 | docdir=$ac_optarg ;; | |
960 | ||
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
962 | ac_prev=dvidir ;; | |
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
964 | dvidir=$ac_optarg ;; | |
965 | ||
966 | -enable-* | --enable-*) | |
967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
968 | # Reject names that are not valid shell variable names. | |
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
970 | as_fn_error $? "invalid feature name: $ac_useropt" | |
971 | ac_useropt_orig=$ac_useropt | |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=\$ac_optarg ;; | |
981 | ||
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
989 | exec_prefix=$ac_optarg ;; | |
990 | ||
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
995 | -help | --help | --hel | --he | -h) | |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
1001 | ||
1002 | -host | --host | --hos | --ho) | |
1003 | ac_prev=host_alias ;; | |
1004 | -host=* | --host=* | --hos=* | --ho=*) | |
1005 | host_alias=$ac_optarg ;; | |
1006 | ||
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
1013 | -includedir | --includedir | --includedi | --included | --include \ | |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1018 | includedir=$ac_optarg ;; | |
1019 | ||
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1023 | infodir=$ac_optarg ;; | |
1024 | ||
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1028 | libdir=$ac_optarg ;; | |
1029 | ||
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
1035 | libexecdir=$ac_optarg ;; | |
1036 | ||
1037 | -localedir | --localedir | --localedi | --localed | --locale) | |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1043 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1044 | ac_prev=localstatedir ;; | |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1047 | localstatedir=$ac_optarg ;; | |
1048 | ||
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1052 | mandir=$ac_optarg ;; | |
1053 | ||
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1059 | | --no-cr | --no-c | -n) | |
1060 | no_create=yes ;; | |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1073 | oldincludedir=$ac_optarg ;; | |
1074 | ||
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1078 | prefix=$ac_optarg ;; | |
1079 | ||
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1085 | program_prefix=$ac_optarg ;; | |
1086 | ||
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1092 | program_suffix=$ac_optarg ;; | |
1093 | ||
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1109 | program_transform_name=$ac_optarg ;; | |
1110 | ||
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
1129 | sbindir=$ac_optarg ;; | |
1130 | ||
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
1140 | sharedstatedir=$ac_optarg ;; | |
1141 | ||
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
1145 | site=$ac_optarg ;; | |
1146 | ||
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1150 | srcdir=$ac_optarg ;; | |
1151 | ||
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1157 | sysconfdir=$ac_optarg ;; | |
1158 | ||
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1160 | ac_prev=target_alias ;; | |
1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1162 | target_alias=$ac_optarg ;; | |
1163 | ||
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
1167 | -version | --version | --versio | --versi | --vers | -V) | |
1168 | ac_init_version=: ;; | |
1169 | ||
1170 | -with-* | --with-*) | |
1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1172 | # Reject names that are not valid shell variable names. | |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1174 | as_fn_error $? "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
1183 | esac | |
1184 | eval with_$ac_useropt=\$ac_optarg ;; | |
1185 | ||
1186 | -without-* | --without-*) | |
1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1188 | # Reject names that are not valid shell variable names. | |
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1190 | as_fn_error $? "invalid package name: $ac_useropt" | |
1191 | ac_useropt_orig=$ac_useropt | |
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1193 | case $ac_user_opts in | |
1194 | *" | |
1195 | "with_$ac_useropt" | |
1196 | "*) ;; | |
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1198 | ac_unrecognized_sep=', ';; | |
1199 | esac | |
1200 | eval with_$ac_useropt=no ;; | |
1201 | ||
1202 | --x) | |
1203 | # Obsolete; use --with-x. | |
1204 | with_x=yes ;; | |
1205 | ||
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1207 | | --x-incl | --x-inc | --x-in | --x-i) | |
1208 | ac_prev=x_includes ;; | |
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1211 | x_includes=$ac_optarg ;; | |
1212 | ||
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1215 | ac_prev=x_libraries ;; | |
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1218 | x_libraries=$ac_optarg ;; | |
1219 | ||
1220 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1221 | Try \`$0 --help' for more information" | |
1222 | ;; | |
1223 | ||
1224 | *=*) | |
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1226 | # Reject names that are not valid shell variable names. | |
1227 | case $ac_envvar in #( | |
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1229 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1230 | esac | |
1231 | eval $ac_envvar=\$ac_optarg | |
1232 | export $ac_envvar ;; | |
1233 | ||
1234 | *) | |
1235 | # FIXME: should be removed in autoconf 3.0. | |
1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1239 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1240 | ;; | |
1241 | ||
1242 | esac | |
1243 | done | |
1244 | ||
1245 | if test -n "$ac_prev"; then | |
1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1247 | as_fn_error $? "missing argument to $ac_option" | |
1248 | fi | |
1249 | ||
1250 | if test -n "$ac_unrecognized_opts"; then | |
1251 | case $enable_option_checking in | |
1252 | no) ;; | |
1253 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1255 | esac | |
1256 | fi | |
1257 | ||
1258 | # Check all directory arguments for consistency. | |
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1262 | libdir localedir mandir | |
1263 | do | |
1264 | eval ac_val=\$$ac_var | |
1265 | # Remove trailing slashes. | |
1266 | case $ac_val in | |
1267 | */ ) | |
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1269 | eval $ac_var=\$ac_val;; | |
1270 | esac | |
1271 | # Be sure to have absolute directory names. | |
1272 | case $ac_val in | |
1273 | [\\/$]* | ?:[\\/]* ) continue;; | |
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1275 | esac | |
1276 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1277 | done | |
1278 | ||
1279 | # There might be people who depend on the old broken behavior: `$host' | |
1280 | # used to hold the argument of --host etc. | |
1281 | # FIXME: To remove some day. | |
1282 | build=$build_alias | |
1283 | host=$host_alias | |
1284 | target=$target_alias | |
1285 | ||
1286 | # FIXME: To remove some day. | |
1287 | if test "x$host_alias" != x; then | |
1288 | if test "x$build_alias" = x; then | |
1289 | cross_compiling=maybe | |
1290 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1291 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1292 | elif test "x$build_alias" != "x$host_alias"; then | |
1293 | cross_compiling=yes | |
1294 | fi | |
1295 | fi | |
1296 | ||
1297 | ac_tool_prefix= | |
1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1299 | ||
1300 | test "$silent" = yes && exec 6>/dev/null | |
1301 | ||
1302 | ||
1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1304 | ac_ls_di=`ls -di .` && | |
1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1306 | as_fn_error $? "working directory cannot be determined" | |
1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1308 | as_fn_error $? "pwd does not report name of working directory" | |
1309 | ||
1310 | ||
1311 | # Find the source files, if location was not specified. | |
1312 | if test -z "$srcdir"; then | |
1313 | ac_srcdir_defaulted=yes | |
1314 | # Try the directory containing this script, then the parent directory. | |
1315 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1318 | X"$as_myself" : 'X\(//\)$' \| \ | |
1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1320 | $as_echo X"$as_myself" | | |
1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1322 | s//\1/ | |
1323 | q | |
1324 | } | |
1325 | /^X\(\/\/\)[^/].*/{ | |
1326 | s//\1/ | |
1327 | q | |
1328 | } | |
1329 | /^X\(\/\/\)$/{ | |
1330 | s//\1/ | |
1331 | q | |
1332 | } | |
1333 | /^X\(\/\).*/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | s/.*/./; q'` | |
1338 | srcdir=$ac_confdir | |
1339 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1340 | srcdir=.. | |
1341 | fi | |
1342 | else | |
1343 | ac_srcdir_defaulted=no | |
1344 | fi | |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1347 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1348 | fi | |
1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1350 | ac_abs_confdir=`( | |
1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1352 | pwd)` | |
1353 | # When building in place, set srcdir=. | |
1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1355 | srcdir=. | |
1356 | fi | |
1357 | # Remove unnecessary trailing slashes from srcdir. | |
1358 | # Double slashes in file names in object file debugging info | |
1359 | # mess up M-x gdb in Emacs. | |
1360 | case $srcdir in | |
1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1362 | esac | |
1363 | for ac_var in $ac_precious_vars; do | |
1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1365 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1368 | done | |
1369 | ||
1370 | # | |
1371 | # Report the --help message. | |
1372 | # | |
1373 | if test "$ac_init_help" = "long"; then | |
1374 | # Omit some internal or obsolete options to make the list less imposing. | |
1375 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1376 | cat <<_ACEOF | |
1377 | \`configure' configures bash 4.3-alpha to adapt to many kinds of systems. | |
1378 | ||
1379 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1380 | ||
1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1382 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1383 | ||
1384 | Defaults for the options are specified in brackets. | |
1385 | ||
1386 | Configuration: | |
1387 | -h, --help display this help and exit | |
1388 | --help=short display options specific to this package | |
1389 | --help=recursive display the short help of all the included packages | |
1390 | -V, --version display version information and exit | |
1391 | -q, --quiet, --silent do not print \`checking ...' messages | |
1392 | --cache-file=FILE cache test results in FILE [disabled] | |
1393 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1394 | -n, --no-create do not create output files | |
1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1396 | ||
1397 | Installation directories: | |
1398 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1399 | @<:@@S|@ac_default_prefix@:>@ | |
1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1401 | @<:@PREFIX@:>@ | |
1402 | ||
1403 | By default, \`make install' will install all the files in | |
1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1406 | for instance \`--prefix=\$HOME'. | |
1407 | ||
1408 | For better control, use the options below. | |
1409 | ||
1410 | Fine tuning of the installation directories: | |
1411 | --bindir=DIR user executables [EPREFIX/bin] | |
1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1413 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1417 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1418 | --includedir=DIR C header files [PREFIX/include] | |
1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1422 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1424 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1425 | --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@ | |
1426 | --htmldir=DIR html documentation [DOCDIR] | |
1427 | --dvidir=DIR dvi documentation [DOCDIR] | |
1428 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1429 | --psdir=DIR ps documentation [DOCDIR] | |
1430 | _ACEOF | |
1431 | ||
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | System types: | |
1435 | --build=BUILD configure for building on BUILD [guessed] | |
1436 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1437 | _ACEOF | |
1438 | fi | |
1439 | ||
1440 | if test -n "$ac_init_help"; then | |
1441 | case $ac_init_help in | |
1442 | short | recursive ) echo "Configuration of bash 4.3-alpha:";; | |
1443 | esac | |
1444 | cat <<\_ACEOF | |
1445 | ||
1446 | Optional Features: | |
1447 | --disable-option-checking ignore unrecognized --enable/--with options | |
1448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1450 | --enable-minimal-config a minimal sh-like configuration | |
1451 | --enable-alias enable shell aliases | |
1452 | --enable-arith-for-command | |
1453 | enable arithmetic for command | |
1454 | --enable-array-variables | |
1455 | include shell array variables | |
1456 | --enable-bang-history turn on csh-style history substitution | |
1457 | --enable-brace-expansion | |
1458 | include brace expansion | |
1459 | --enable-casemod-attributes | |
1460 | include case-modifying variable attributes | |
1461 | --enable-casemod-expansions | |
1462 | include case-modifying word expansions | |
1463 | --enable-command-timing enable the time reserved word and command timing | |
1464 | --enable-cond-command enable the conditional command | |
1465 | --enable-cond-regexp enable extended regular expression matching in | |
1466 | conditional commands | |
1467 | --enable-coprocesses enable coprocess support and the coproc reserved | |
1468 | word | |
1469 | --enable-debugger enable support for bash debugger | |
1470 | --enable-direxpand-default | |
1471 | enable the direxpand shell option by default | |
1472 | --enable-directory-stack | |
1473 | enable builtins pushd/popd/dirs | |
1474 | --enable-disabled-builtins | |
1475 | allow disabled builtins to still be invoked | |
1476 | --enable-dparen-arithmetic | |
1477 | include ((...)) command | |
1478 | --enable-extended-glob include ksh-style extended pattern matching | |
1479 | --enable-extended-glob-default | |
1480 | force extended pattern matching to be enabled by | |
1481 | default | |
1482 | --enable-help-builtin include the help builtin | |
1483 | --enable-history turn on command history | |
1484 | --enable-job-control enable job control features | |
1485 | --enable-multibyte enable multibyte characters if OS supports them | |
1486 | --enable-net-redirections | |
1487 | enable /dev/tcp/host/port redirection | |
1488 | --enable-process-substitution | |
1489 | enable process substitution | |
1490 | --enable-progcomp enable programmable completion and the complete | |
1491 | builtin | |
1492 | --enable-prompt-string-decoding | |
1493 | turn on escape character decoding in prompts | |
1494 | --enable-readline turn on command line editing | |
1495 | --enable-restricted enable a restricted shell | |
1496 | --enable-select include select command | |
1497 | --enable-separate-helpfiles | |
1498 | use external files for help builtin documentation | |
1499 | --enable-single-help-strings | |
1500 | store help documentation as a single string to ease | |
1501 | translation | |
1502 | --enable-strict-posix-default | |
1503 | configure bash to be posix-conformant by default | |
1504 | --enable-usg-echo-default | |
1505 | a synonym for --enable-xpg-echo-default | |
1506 | --enable-xpg-echo-default | |
1507 | make the echo builtin expand escape sequences by | |
1508 | default | |
1509 | --enable-mem-scramble scramble memory on calls to malloc and free | |
1510 | --enable-profiling allow profiling with gprof | |
1511 | --enable-static-link link bash statically, for use as a root shell | |
1512 | --disable-largefile omit support for large files | |
1513 | --disable-nls do not use Native Language Support | |
1514 | --disable-rpath do not hardcode runtime library paths | |
1515 | ||
1516 | Optional Packages: | |
1517 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1518 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1519 | --with-afs if you are running AFS | |
1520 | --with-bash-malloc use the Bash version of malloc | |
1521 | --with-curses use the curses library instead of the termcap | |
1522 | library | |
1523 | --with-gnu-malloc synonym for --with-bash-malloc | |
1524 | --with-installed-readline | |
1525 | use a version of the readline library that is | |
1526 | already installed | |
1527 | --with-purecov configure to postprocess with pure coverage | |
1528 | --with-purify configure to postprocess with purify | |
1529 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1530 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1531 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1532 | --with-included-gettext use the GNU gettext library included here | |
1533 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1534 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
1535 | ||
1536 | Some influential environment variables: | |
1537 | DEBUGGER_START_FILE | |
1538 | location of bash debugger initialization file | |
1539 | CC_FOR_BUILD | |
1540 | C compiler used when compiling binaries used only at build time | |
1541 | CFLAGS_FOR_BUILD | |
1542 | Compliation options (CFLAGS) used when compiling binaries used | |
1543 | only at build time | |
1544 | LDFLAGS_FOR_BUILD | |
1545 | Linker options (LDFLAGS) used when compiling binaries used only | |
1546 | at build time | |
1547 | CPPFLAGS_FOR_BUILD | |
1548 | C preprocessor options (CPPFLAGS) used when compiling binaries | |
1549 | used only at build time | |
1550 | CC C compiler command | |
1551 | CFLAGS C compiler flags | |
1552 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1553 | nonstandard directory <lib dir> | |
1554 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1555 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1556 | you have headers in a nonstandard directory <include dir> | |
1557 | CPP C preprocessor | |
1558 | YACC The `Yet Another Compiler Compiler' implementation to use. | |
1559 | Defaults to the first program found out of: `bison -y', `byacc', | |
1560 | `yacc'. | |
1561 | YFLAGS The list of arguments that will be passed by default to @S|@YACC. | |
1562 | This script will default YFLAGS to the empty string to avoid a | |
1563 | default value of `-d' given by some make applications. | |
1564 | ||
1565 | Use these variables to override the choices made by `configure' or to help | |
1566 | it to find libraries and programs with nonstandard names/locations. | |
1567 | ||
1568 | Report bugs to <bug-bash@gnu.org>. | |
1569 | _ACEOF | |
1570 | ac_status=$? | |
1571 | fi | |
1572 | ||
1573 | if test "$ac_init_help" = "recursive"; then | |
1574 | # If there are subdirs, report their specific --help. | |
1575 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1576 | test -d "$ac_dir" || | |
1577 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1578 | continue | |
1579 | ac_builddir=. | |
1580 | ||
1581 | case "$ac_dir" in | |
1582 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1583 | *) | |
1584 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1585 | # A ".." for each directory in $ac_dir_suffix. | |
1586 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1587 | case $ac_top_builddir_sub in | |
1588 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1590 | esac ;; | |
1591 | esac | |
1592 | ac_abs_top_builddir=$ac_pwd | |
1593 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1594 | # for backward compatibility: | |
1595 | ac_top_builddir=$ac_top_build_prefix | |
1596 | ||
1597 | case $srcdir in | |
1598 | .) # We are building in place. | |
1599 | ac_srcdir=. | |
1600 | ac_top_srcdir=$ac_top_builddir_sub | |
1601 | ac_abs_top_srcdir=$ac_pwd ;; | |
1602 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1603 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1604 | ac_top_srcdir=$srcdir | |
1605 | ac_abs_top_srcdir=$srcdir ;; | |
1606 | *) # Relative name. | |
1607 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1608 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1609 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1610 | esac | |
1611 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1612 | ||
1613 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1614 | # Check for guested configure. | |
1615 | if test -f "$ac_srcdir/configure.gnu"; then | |
1616 | echo && | |
1617 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1618 | elif test -f "$ac_srcdir/configure"; then | |
1619 | echo && | |
1620 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1621 | else | |
1622 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1623 | fi || ac_status=$? | |
1624 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1625 | done | |
1626 | fi | |
1627 | ||
1628 | test -n "$ac_init_help" && exit $ac_status | |
1629 | if $ac_init_version; then | |
1630 | cat <<\_ACEOF | |
1631 | bash configure 4.3-alpha | |
1632 | generated by GNU Autoconf 2.68 | |
1633 | ||
1634 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1635 | This configure script is free software; the Free Software Foundation | |
1636 | gives unlimited permission to copy, distribute and modify it. | |
1637 | _ACEOF | |
1638 | exit | |
1639 | fi | |
1640 | ||
1641 | ## ------------------------ ## | |
1642 | ## Autoconf initialization. ## | |
1643 | ## ------------------------ ## | |
1644 | ||
1645 | @%:@ ac_fn_c_try_compile LINENO | |
1646 | @%:@ -------------------------- | |
1647 | @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. | |
1648 | ac_fn_c_try_compile () | |
1649 | { | |
1650 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1651 | rm -f conftest.$ac_objext | |
1652 | if { { ac_try="$ac_compile" | |
1653 | case "(($ac_try" in | |
1654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1655 | *) ac_try_echo=$ac_try;; | |
1656 | esac | |
1657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1658 | $as_echo "$ac_try_echo"; } >&5 | |
1659 | (eval "$ac_compile") 2>conftest.err | |
1660 | ac_status=$? | |
1661 | if test -s conftest.err; then | |
1662 | grep -v '^ *+' conftest.err >conftest.er1 | |
1663 | cat conftest.er1 >&5 | |
1664 | mv -f conftest.er1 conftest.err | |
1665 | fi | |
1666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1667 | test $ac_status = 0; } && { | |
1668 | test -z "$ac_c_werror_flag" || | |
1669 | test ! -s conftest.err | |
1670 | } && test -s conftest.$ac_objext; then : | |
1671 | ac_retval=0 | |
1672 | else | |
1673 | $as_echo "$as_me: failed program was:" >&5 | |
1674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1675 | ||
1676 | ac_retval=1 | |
1677 | fi | |
1678 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1679 | as_fn_set_status $ac_retval | |
1680 | ||
1681 | } @%:@ ac_fn_c_try_compile | |
1682 | ||
1683 | @%:@ ac_fn_c_try_link LINENO | |
1684 | @%:@ ----------------------- | |
1685 | @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. | |
1686 | ac_fn_c_try_link () | |
1687 | { | |
1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1690 | if { { ac_try="$ac_link" | |
1691 | case "(($ac_try" in | |
1692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1693 | *) ac_try_echo=$ac_try;; | |
1694 | esac | |
1695 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1696 | $as_echo "$ac_try_echo"; } >&5 | |
1697 | (eval "$ac_link") 2>conftest.err | |
1698 | ac_status=$? | |
1699 | if test -s conftest.err; then | |
1700 | grep -v '^ *+' conftest.err >conftest.er1 | |
1701 | cat conftest.er1 >&5 | |
1702 | mv -f conftest.er1 conftest.err | |
1703 | fi | |
1704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1705 | test $ac_status = 0; } && { | |
1706 | test -z "$ac_c_werror_flag" || | |
1707 | test ! -s conftest.err | |
1708 | } && test -s conftest$ac_exeext && { | |
1709 | test "$cross_compiling" = yes || | |
1710 | $as_test_x conftest$ac_exeext | |
1711 | }; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: failed program was:" >&5 | |
1715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1716 | ||
1717 | ac_retval=1 | |
1718 | fi | |
1719 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1720 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1721 | # interfere with the next link command; also delete a directory that is | |
1722 | # left behind by Apple's compiler. We do this before executing the actions. | |
1723 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1725 | as_fn_set_status $ac_retval | |
1726 | ||
1727 | } @%:@ ac_fn_c_try_link | |
1728 | ||
1729 | @%:@ ac_fn_c_try_cpp LINENO | |
1730 | @%:@ ---------------------- | |
1731 | @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. | |
1732 | ac_fn_c_try_cpp () | |
1733 | { | |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1736 | case "(($ac_try" in | |
1737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1738 | *) ac_try_echo=$ac_try;; | |
1739 | esac | |
1740 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1741 | $as_echo "$ac_try_echo"; } >&5 | |
1742 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1743 | ac_status=$? | |
1744 | if test -s conftest.err; then | |
1745 | grep -v '^ *+' conftest.err >conftest.er1 | |
1746 | cat conftest.er1 >&5 | |
1747 | mv -f conftest.er1 conftest.err | |
1748 | fi | |
1749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1750 | test $ac_status = 0; } > conftest.i && { | |
1751 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1752 | test ! -s conftest.err | |
1753 | }; then : | |
1754 | ac_retval=0 | |
1755 | else | |
1756 | $as_echo "$as_me: failed program was:" >&5 | |
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1758 | ||
1759 | ac_retval=1 | |
1760 | fi | |
1761 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1762 | as_fn_set_status $ac_retval | |
1763 | ||
1764 | } @%:@ ac_fn_c_try_cpp | |
1765 | ||
1766 | @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1767 | @%:@ ------------------------------------------------------- | |
1768 | @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1769 | @%:@ the include files in INCLUDES and setting the cache variable VAR | |
1770 | @%:@ accordingly. | |
1771 | ac_fn_c_check_header_mongrel () | |
1772 | { | |
1773 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1774 | if eval \${$3+:} false; then : | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1776 | $as_echo_n "checking for $2... " >&6; } | |
1777 | if eval \${$3+:} false; then : | |
1778 | $as_echo_n "(cached) " >&6 | |
1779 | fi | |
1780 | eval ac_res=\$$3 | |
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1782 | $as_echo "$ac_res" >&6; } | |
1783 | else | |
1784 | # Is the header compilable? | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1786 | $as_echo_n "checking $2 usability... " >&6; } | |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1788 | /* end confdefs.h. */ | |
1789 | $4 | |
1790 | @%:@include <$2> | |
1791 | _ACEOF | |
1792 | if ac_fn_c_try_compile "$LINENO"; then : | |
1793 | ac_header_compiler=yes | |
1794 | else | |
1795 | ac_header_compiler=no | |
1796 | fi | |
1797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1799 | $as_echo "$ac_header_compiler" >&6; } | |
1800 | ||
1801 | # Is the header present? | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1803 | $as_echo_n "checking $2 presence... " >&6; } | |
1804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1805 | /* end confdefs.h. */ | |
1806 | @%:@include <$2> | |
1807 | _ACEOF | |
1808 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1809 | ac_header_preproc=yes | |
1810 | else | |
1811 | ac_header_preproc=no | |
1812 | fi | |
1813 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1815 | $as_echo "$ac_header_preproc" >&6; } | |
1816 | ||
1817 | # So? What about this header? | |
1818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1819 | yes:no: ) | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1821 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1823 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1824 | ;; | |
1825 | no:yes:* ) | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1827 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1829 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1831 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1836 | ( $as_echo "## ------------------------------- ## | |
1837 | ## Report this to bug-bash@gnu.org ## | |
1838 | ## ------------------------------- ##" | |
1839 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1840 | ;; | |
1841 | esac | |
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1843 | $as_echo_n "checking for $2... " >&6; } | |
1844 | if eval \${$3+:} false; then : | |
1845 | $as_echo_n "(cached) " >&6 | |
1846 | else | |
1847 | eval "$3=\$ac_header_compiler" | |
1848 | fi | |
1849 | eval ac_res=\$$3 | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1851 | $as_echo "$ac_res" >&6; } | |
1852 | fi | |
1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1854 | ||
1855 | } @%:@ ac_fn_c_check_header_mongrel | |
1856 | ||
1857 | @%:@ ac_fn_c_try_run LINENO | |
1858 | @%:@ ---------------------- | |
1859 | @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes | |
1860 | @%:@ that executables *can* be run. | |
1861 | ac_fn_c_try_run () | |
1862 | { | |
1863 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1864 | if { { ac_try="$ac_link" | |
1865 | case "(($ac_try" in | |
1866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1867 | *) ac_try_echo=$ac_try;; | |
1868 | esac | |
1869 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1870 | $as_echo "$ac_try_echo"; } >&5 | |
1871 | (eval "$ac_link") 2>&5 | |
1872 | ac_status=$? | |
1873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1874 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1875 | { { case "(($ac_try" in | |
1876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1877 | *) ac_try_echo=$ac_try;; | |
1878 | esac | |
1879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1880 | $as_echo "$ac_try_echo"; } >&5 | |
1881 | (eval "$ac_try") 2>&5 | |
1882 | ac_status=$? | |
1883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1884 | test $ac_status = 0; }; }; then : | |
1885 | ac_retval=0 | |
1886 | else | |
1887 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1888 | $as_echo "$as_me: failed program was:" >&5 | |
1889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1890 | ||
1891 | ac_retval=$ac_status | |
1892 | fi | |
1893 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1894 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1895 | as_fn_set_status $ac_retval | |
1896 | ||
1897 | } @%:@ ac_fn_c_try_run | |
1898 | ||
1899 | @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1900 | @%:@ ------------------------------------------------------- | |
1901 | @%:@ Tests whether HEADER exists and can be compiled using the include files in | |
1902 | @%:@ INCLUDES, setting the cache variable VAR accordingly. | |
1903 | ac_fn_c_check_header_compile () | |
1904 | { | |
1905 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1907 | $as_echo_n "checking for $2... " >&6; } | |
1908 | if eval \${$3+:} false; then : | |
1909 | $as_echo_n "(cached) " >&6 | |
1910 | else | |
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1912 | /* end confdefs.h. */ | |
1913 | $4 | |
1914 | @%:@include <$2> | |
1915 | _ACEOF | |
1916 | if ac_fn_c_try_compile "$LINENO"; then : | |
1917 | eval "$3=yes" | |
1918 | else | |
1919 | eval "$3=no" | |
1920 | fi | |
1921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1922 | fi | |
1923 | eval ac_res=\$$3 | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1925 | $as_echo "$ac_res" >&6; } | |
1926 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1927 | ||
1928 | } @%:@ ac_fn_c_check_header_compile | |
1929 | ||
1930 | @%:@ ac_fn_c_check_func LINENO FUNC VAR | |
1931 | @%:@ ---------------------------------- | |
1932 | @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1933 | ac_fn_c_check_func () | |
1934 | { | |
1935 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1937 | $as_echo_n "checking for $2... " >&6; } | |
1938 | if eval \${$3+:} false; then : | |
1939 | $as_echo_n "(cached) " >&6 | |
1940 | else | |
1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1942 | /* end confdefs.h. */ | |
1943 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1945 | #define $2 innocuous_$2 | |
1946 | ||
1947 | /* System header to define __stub macros and hopefully few prototypes, | |
1948 | which can conflict with char $2 (); below. | |
1949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1950 | <limits.h> exists even on freestanding compilers. */ | |
1951 | ||
1952 | #ifdef __STDC__ | |
1953 | # include <limits.h> | |
1954 | #else | |
1955 | # include <assert.h> | |
1956 | #endif | |
1957 | ||
1958 | #undef $2 | |
1959 | ||
1960 | /* Override any GCC internal prototype to avoid an error. | |
1961 | Use char because int might match the return type of a GCC | |
1962 | builtin and then its argument prototype would still apply. */ | |
1963 | #ifdef __cplusplus | |
1964 | extern "C" | |
1965 | #endif | |
1966 | char $2 (); | |
1967 | /* The GNU C library defines this for functions which it implements | |
1968 | to always fail with ENOSYS. Some functions are actually named | |
1969 | something starting with __ and the normal name is an alias. */ | |
1970 | #if defined __stub_$2 || defined __stub___$2 | |
1971 | choke me | |
1972 | #endif | |
1973 | ||
1974 | int | |
1975 | main () | |
1976 | { | |
1977 | return $2 (); | |
1978 | ; | |
1979 | return 0; | |
1980 | } | |
1981 | _ACEOF | |
1982 | if ac_fn_c_try_link "$LINENO"; then : | |
1983 | eval "$3=yes" | |
1984 | else | |
1985 | eval "$3=no" | |
1986 | fi | |
1987 | rm -f core conftest.err conftest.$ac_objext \ | |
1988 | conftest$ac_exeext conftest.$ac_ext | |
1989 | fi | |
1990 | eval ac_res=\$$3 | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1992 | $as_echo "$ac_res" >&6; } | |
1993 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1994 | ||
1995 | } @%:@ ac_fn_c_check_func | |
1996 | ||
1997 | @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1998 | @%:@ ------------------------------------------- | |
1999 | @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache | |
2000 | @%:@ variable VAR accordingly. | |
2001 | ac_fn_c_check_type () | |
2002 | { | |
2003 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2005 | $as_echo_n "checking for $2... " >&6; } | |
2006 | if eval \${$3+:} false; then : | |
2007 | $as_echo_n "(cached) " >&6 | |
2008 | else | |
2009 | eval "$3=no" | |
2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2011 | /* end confdefs.h. */ | |
2012 | $4 | |
2013 | int | |
2014 | main () | |
2015 | { | |
2016 | if (sizeof ($2)) | |
2017 | return 0; | |
2018 | ; | |
2019 | return 0; | |
2020 | } | |
2021 | _ACEOF | |
2022 | if ac_fn_c_try_compile "$LINENO"; then : | |
2023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2024 | /* end confdefs.h. */ | |
2025 | $4 | |
2026 | int | |
2027 | main () | |
2028 | { | |
2029 | if (sizeof (($2))) | |
2030 | return 0; | |
2031 | ; | |
2032 | return 0; | |
2033 | } | |
2034 | _ACEOF | |
2035 | if ac_fn_c_try_compile "$LINENO"; then : | |
2036 | ||
2037 | else | |
2038 | eval "$3=yes" | |
2039 | fi | |
2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2041 | fi | |
2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2043 | fi | |
2044 | eval ac_res=\$$3 | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
2047 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2048 | ||
2049 | } @%:@ ac_fn_c_check_type | |
2050 | ||
2051 | @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2052 | @%:@ --------------------------------------------- | |
2053 | @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2054 | @%:@ accordingly. | |
2055 | ac_fn_c_check_decl () | |
2056 | { | |
2057 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2058 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2059 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2061 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2062 | if eval \${$3+:} false; then : | |
2063 | $as_echo_n "(cached) " >&6 | |
2064 | else | |
2065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2066 | /* end confdefs.h. */ | |
2067 | $4 | |
2068 | int | |
2069 | main () | |
2070 | { | |
2071 | @%:@ifndef $as_decl_name | |
2072 | @%:@ifdef __cplusplus | |
2073 | (void) $as_decl_use; | |
2074 | @%:@else | |
2075 | (void) $as_decl_name; | |
2076 | @%:@endif | |
2077 | @%:@endif | |
2078 | ||
2079 | ; | |
2080 | return 0; | |
2081 | } | |
2082 | _ACEOF | |
2083 | if ac_fn_c_try_compile "$LINENO"; then : | |
2084 | eval "$3=yes" | |
2085 | else | |
2086 | eval "$3=no" | |
2087 | fi | |
2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2089 | fi | |
2090 | eval ac_res=\$$3 | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2092 | $as_echo "$ac_res" >&6; } | |
2093 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2094 | ||
2095 | } @%:@ ac_fn_c_check_decl | |
2096 | ||
2097 | @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2098 | @%:@ -------------------------------------------- | |
2099 | @%:@ Tries to find the compile-time value of EXPR in a program that includes | |
2100 | @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2101 | @%:@ computed | |
2102 | ac_fn_c_compute_int () | |
2103 | { | |
2104 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2105 | if test "$cross_compiling" = yes; then | |
2106 | # Depending upon the size, compute the lo and hi bounds. | |
2107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2108 | /* end confdefs.h. */ | |
2109 | $4 | |
2110 | int | |
2111 | main () | |
2112 | { | |
2113 | static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; | |
2114 | test_array @<:@0@:>@ = 0 | |
2115 | ||
2116 | ; | |
2117 | return 0; | |
2118 | } | |
2119 | _ACEOF | |
2120 | if ac_fn_c_try_compile "$LINENO"; then : | |
2121 | ac_lo=0 ac_mid=0 | |
2122 | while :; do | |
2123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2124 | /* end confdefs.h. */ | |
2125 | $4 | |
2126 | int | |
2127 | main () | |
2128 | { | |
2129 | static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; | |
2130 | test_array @<:@0@:>@ = 0 | |
2131 | ||
2132 | ; | |
2133 | return 0; | |
2134 | } | |
2135 | _ACEOF | |
2136 | if ac_fn_c_try_compile "$LINENO"; then : | |
2137 | ac_hi=$ac_mid; break | |
2138 | else | |
2139 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2140 | if test $ac_lo -le $ac_mid; then | |
2141 | ac_lo= ac_hi= | |
2142 | break | |
2143 | fi | |
2144 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2145 | fi | |
2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2147 | done | |
2148 | else | |
2149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2150 | /* end confdefs.h. */ | |
2151 | $4 | |
2152 | int | |
2153 | main () | |
2154 | { | |
2155 | static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; | |
2156 | test_array @<:@0@:>@ = 0 | |
2157 | ||
2158 | ; | |
2159 | return 0; | |
2160 | } | |
2161 | _ACEOF | |
2162 | if ac_fn_c_try_compile "$LINENO"; then : | |
2163 | ac_hi=-1 ac_mid=-1 | |
2164 | while :; do | |
2165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2166 | /* end confdefs.h. */ | |
2167 | $4 | |
2168 | int | |
2169 | main () | |
2170 | { | |
2171 | static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; | |
2172 | test_array @<:@0@:>@ = 0 | |
2173 | ||
2174 | ; | |
2175 | return 0; | |
2176 | } | |
2177 | _ACEOF | |
2178 | if ac_fn_c_try_compile "$LINENO"; then : | |
2179 | ac_lo=$ac_mid; break | |
2180 | else | |
2181 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2182 | if test $ac_mid -le $ac_hi; then | |
2183 | ac_lo= ac_hi= | |
2184 | break | |
2185 | fi | |
2186 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2187 | fi | |
2188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2189 | done | |
2190 | else | |
2191 | ac_lo= ac_hi= | |
2192 | fi | |
2193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2194 | fi | |
2195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2196 | # Binary search between lo and hi bounds. | |
2197 | while test "x$ac_lo" != "x$ac_hi"; do | |
2198 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2200 | /* end confdefs.h. */ | |
2201 | $4 | |
2202 | int | |
2203 | main () | |
2204 | { | |
2205 | static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; | |
2206 | test_array @<:@0@:>@ = 0 | |
2207 | ||
2208 | ; | |
2209 | return 0; | |
2210 | } | |
2211 | _ACEOF | |
2212 | if ac_fn_c_try_compile "$LINENO"; then : | |
2213 | ac_hi=$ac_mid | |
2214 | else | |
2215 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2216 | fi | |
2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2218 | done | |
2219 | case $ac_lo in @%:@(( | |
2220 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2221 | '') ac_retval=1 ;; | |
2222 | esac | |
2223 | else | |
2224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2225 | /* end confdefs.h. */ | |
2226 | $4 | |
2227 | static long int longval () { return $2; } | |
2228 | static unsigned long int ulongval () { return $2; } | |
2229 | @%:@include <stdio.h> | |
2230 | @%:@include <stdlib.h> | |
2231 | int | |
2232 | main () | |
2233 | { | |
2234 | ||
2235 | FILE *f = fopen ("conftest.val", "w"); | |
2236 | if (! f) | |
2237 | return 1; | |
2238 | if (($2) < 0) | |
2239 | { | |
2240 | long int i = longval (); | |
2241 | if (i != ($2)) | |
2242 | return 1; | |
2243 | fprintf (f, "%ld", i); | |
2244 | } | |
2245 | else | |
2246 | { | |
2247 | unsigned long int i = ulongval (); | |
2248 | if (i != ($2)) | |
2249 | return 1; | |
2250 | fprintf (f, "%lu", i); | |
2251 | } | |
2252 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2253 | on some platforms. */ | |
2254 | return ferror (f) || fclose (f) != 0; | |
2255 | ||
2256 | ; | |
2257 | return 0; | |
2258 | } | |
2259 | _ACEOF | |
2260 | if ac_fn_c_try_run "$LINENO"; then : | |
2261 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2262 | else | |
2263 | ac_retval=1 | |
2264 | fi | |
2265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2266 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2267 | rm -f conftest.val | |
2268 | ||
2269 | fi | |
2270 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2271 | as_fn_set_status $ac_retval | |
2272 | ||
2273 | } @%:@ ac_fn_c_compute_int | |
2274 | ||
2275 | @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2276 | @%:@ ---------------------------------------------------- | |
2277 | @%:@ Tries to find if the field MEMBER exists in type AGGR, after including | |
2278 | @%:@ INCLUDES, setting cache variable VAR accordingly. | |
2279 | ac_fn_c_check_member () | |
2280 | { | |
2281 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2283 | $as_echo_n "checking for $2.$3... " >&6; } | |
2284 | if eval \${$4+:} false; then : | |
2285 | $as_echo_n "(cached) " >&6 | |
2286 | else | |
2287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2288 | /* end confdefs.h. */ | |
2289 | $5 | |
2290 | int | |
2291 | main () | |
2292 | { | |
2293 | static $2 ac_aggr; | |
2294 | if (ac_aggr.$3) | |
2295 | return 0; | |
2296 | ; | |
2297 | return 0; | |
2298 | } | |
2299 | _ACEOF | |
2300 | if ac_fn_c_try_compile "$LINENO"; then : | |
2301 | eval "$4=yes" | |
2302 | else | |
2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2304 | /* end confdefs.h. */ | |
2305 | $5 | |
2306 | int | |
2307 | main () | |
2308 | { | |
2309 | static $2 ac_aggr; | |
2310 | if (sizeof ac_aggr.$3) | |
2311 | return 0; | |
2312 | ; | |
2313 | return 0; | |
2314 | } | |
2315 | _ACEOF | |
2316 | if ac_fn_c_try_compile "$LINENO"; then : | |
2317 | eval "$4=yes" | |
2318 | else | |
2319 | eval "$4=no" | |
2320 | fi | |
2321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2322 | fi | |
2323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2324 | fi | |
2325 | eval ac_res=\$$4 | |
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2327 | $as_echo "$ac_res" >&6; } | |
2328 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2329 | ||
2330 | } @%:@ ac_fn_c_check_member | |
2331 | cat >config.log <<_ACEOF | |
2332 | This file contains any messages produced by compilers while | |
2333 | running configure, to aid debugging if configure makes a mistake. | |
2334 | ||
2335 | It was created by bash $as_me 4.3-alpha, which was | |
2336 | generated by GNU Autoconf 2.68. Invocation command line was | |
2337 | ||
2338 | $ $0 $@ | |
2339 | ||
2340 | _ACEOF | |
2341 | exec 5>>config.log | |
2342 | { | |
2343 | cat <<_ASUNAME | |
2344 | ## --------- ## | |
2345 | ## Platform. ## | |
2346 | ## --------- ## | |
2347 | ||
2348 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2349 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2350 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2351 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2352 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2353 | ||
2354 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2355 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2356 | ||
2357 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2358 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2359 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2360 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2361 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2362 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2363 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2364 | ||
2365 | _ASUNAME | |
2366 | ||
2367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2368 | for as_dir in $PATH | |
2369 | do | |
2370 | IFS=$as_save_IFS | |
2371 | test -z "$as_dir" && as_dir=. | |
2372 | $as_echo "PATH: $as_dir" | |
2373 | done | |
2374 | IFS=$as_save_IFS | |
2375 | ||
2376 | } >&5 | |
2377 | ||
2378 | cat >&5 <<_ACEOF | |
2379 | ||
2380 | ||
2381 | ## ----------- ## | |
2382 | ## Core tests. ## | |
2383 | ## ----------- ## | |
2384 | ||
2385 | _ACEOF | |
2386 | ||
2387 | ||
2388 | # Keep a trace of the command line. | |
2389 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2390 | # Strip out --silent because we don't want to record it for future runs. | |
2391 | # Also quote any args containing shell meta-characters. | |
2392 | # Make two passes to allow for proper duplicate-argument suppression. | |
2393 | ac_configure_args= | |
2394 | ac_configure_args0= | |
2395 | ac_configure_args1= | |
2396 | ac_must_keep_next=false | |
2397 | for ac_pass in 1 2 | |
2398 | do | |
2399 | for ac_arg | |
2400 | do | |
2401 | case $ac_arg in | |
2402 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2403 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2404 | | -silent | --silent | --silen | --sile | --sil) | |
2405 | continue ;; | |
2406 | *\'*) | |
2407 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2408 | esac | |
2409 | case $ac_pass in | |
2410 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2411 | 2) | |
2412 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2413 | if test $ac_must_keep_next = true; then | |
2414 | ac_must_keep_next=false # Got value, back to normal. | |
2415 | else | |
2416 | case $ac_arg in | |
2417 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2418 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2419 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2420 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2421 | case "$ac_configure_args0 " in | |
2422 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2423 | esac | |
2424 | ;; | |
2425 | -* ) ac_must_keep_next=true ;; | |
2426 | esac | |
2427 | fi | |
2428 | as_fn_append ac_configure_args " '$ac_arg'" | |
2429 | ;; | |
2430 | esac | |
2431 | done | |
2432 | done | |
2433 | { ac_configure_args0=; unset ac_configure_args0;} | |
2434 | { ac_configure_args1=; unset ac_configure_args1;} | |
2435 | ||
2436 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2437 | # config.log. We remove comments because anyway the quotes in there | |
2438 | # would cause problems or look ugly. | |
2439 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2440 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2441 | trap 'exit_status=$? | |
2442 | # Save into config.log some information that might help in debugging. | |
2443 | { | |
2444 | echo | |
2445 | ||
2446 | $as_echo "## ---------------- ## | |
2447 | ## Cache variables. ## | |
2448 | ## ---------------- ##" | |
2449 | echo | |
2450 | # The following way of writing the cache mishandles newlines in values, | |
2451 | ( | |
2452 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2453 | eval ac_val=\$$ac_var | |
2454 | case $ac_val in #( | |
2455 | *${as_nl}*) | |
2456 | case $ac_var in #( | |
2457 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2458 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2459 | esac | |
2460 | case $ac_var in #( | |
2461 | _ | IFS | as_nl) ;; #( | |
2462 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2463 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2464 | esac ;; | |
2465 | esac | |
2466 | done | |
2467 | (set) 2>&1 | | |
2468 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2469 | *${as_nl}ac_space=\ *) | |
2470 | sed -n \ | |
2471 | "s/'\''/'\''\\\\'\'''\''/g; | |
2472 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2473 | ;; #( | |
2474 | *) | |
2475 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2476 | ;; | |
2477 | esac | | |
2478 | sort | |
2479 | ) | |
2480 | echo | |
2481 | ||
2482 | $as_echo "## ----------------- ## | |
2483 | ## Output variables. ## | |
2484 | ## ----------------- ##" | |
2485 | echo | |
2486 | for ac_var in $ac_subst_vars | |
2487 | do | |
2488 | eval ac_val=\$$ac_var | |
2489 | case $ac_val in | |
2490 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2491 | esac | |
2492 | $as_echo "$ac_var='\''$ac_val'\''" | |
2493 | done | sort | |
2494 | echo | |
2495 | ||
2496 | if test -n "$ac_subst_files"; then | |
2497 | $as_echo "## ------------------- ## | |
2498 | ## File substitutions. ## | |
2499 | ## ------------------- ##" | |
2500 | echo | |
2501 | for ac_var in $ac_subst_files | |
2502 | do | |
2503 | eval ac_val=\$$ac_var | |
2504 | case $ac_val in | |
2505 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2506 | esac | |
2507 | $as_echo "$ac_var='\''$ac_val'\''" | |
2508 | done | sort | |
2509 | echo | |
2510 | fi | |
2511 | ||
2512 | if test -s confdefs.h; then | |
2513 | $as_echo "## ----------- ## | |
2514 | ## confdefs.h. ## | |
2515 | ## ----------- ##" | |
2516 | echo | |
2517 | cat confdefs.h | |
2518 | echo | |
2519 | fi | |
2520 | test "$ac_signal" != 0 && | |
2521 | $as_echo "$as_me: caught signal $ac_signal" | |
2522 | $as_echo "$as_me: exit $exit_status" | |
2523 | } >&5 | |
2524 | rm -f core *.core core.conftest.* && | |
2525 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2526 | exit $exit_status | |
2527 | ' 0 | |
2528 | for ac_signal in 1 2 13 15; do | |
2529 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2530 | done | |
2531 | ac_signal=0 | |
2532 | ||
2533 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2534 | rm -f -r conftest* confdefs.h | |
2535 | ||
2536 | $as_echo "/* confdefs.h */" > confdefs.h | |
2537 | ||
2538 | # Predefined preprocessor variables. | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2546 | _ACEOF | |
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2550 | _ACEOF | |
2551 | ||
2552 | cat >>confdefs.h <<_ACEOF | |
2553 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" | |
2554 | _ACEOF | |
2555 | ||
2556 | cat >>confdefs.h <<_ACEOF | |
2557 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2558 | _ACEOF | |
2559 | ||
2560 | cat >>confdefs.h <<_ACEOF | |
2561 | @%:@define PACKAGE_URL "$PACKAGE_URL" | |
2562 | _ACEOF | |
2563 | ||
2564 | ||
2565 | # Let the site file select an alternate cache file if it wants to. | |
2566 | # Prefer an explicitly selected file to automatically selected ones. | |
2567 | ac_site_file1=NONE | |
2568 | ac_site_file2=NONE | |
2569 | if test -n "$CONFIG_SITE"; then | |
2570 | # We do not want a PATH search for config.site. | |
2571 | case $CONFIG_SITE in @%:@(( | |
2572 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2573 | */*) ac_site_file1=$CONFIG_SITE;; | |
2574 | *) ac_site_file1=./$CONFIG_SITE;; | |
2575 | esac | |
2576 | elif test "x$prefix" != xNONE; then | |
2577 | ac_site_file1=$prefix/share/config.site | |
2578 | ac_site_file2=$prefix/etc/config.site | |
2579 | else | |
2580 | ac_site_file1=$ac_default_prefix/share/config.site | |
2581 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2582 | fi | |
2583 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2584 | do | |
2585 | test "x$ac_site_file" = xNONE && continue | |
2586 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2588 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2589 | sed 's/^/| /' "$ac_site_file" >&5 | |
2590 | . "$ac_site_file" \ | |
2591 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2593 | as_fn_error $? "failed to load site script $ac_site_file | |
2594 | See \`config.log' for more details" "$LINENO" 5; } | |
2595 | fi | |
2596 | done | |
2597 | ||
2598 | if test -r "$cache_file"; then | |
2599 | # Some versions of bash will fail to source /dev/null (special files | |
2600 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2601 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2603 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2604 | case $cache_file in | |
2605 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2606 | *) . "./$cache_file";; | |
2607 | esac | |
2608 | fi | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2611 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2612 | >$cache_file | |
2613 | fi | |
2614 | ||
2615 | as_fn_append ac_header_list " stdlib.h" | |
2616 | as_fn_append ac_header_list " unistd.h" | |
2617 | as_fn_append ac_header_list " sys/param.h" | |
2618 | as_fn_append ac_header_list " sys/time.h" | |
2619 | as_fn_append ac_func_list " alarm" | |
2620 | as_fn_append ac_func_list " fpurge" | |
2621 | as_fn_append ac_func_list " __fpurge" | |
2622 | as_fn_append ac_func_list " snprintf" | |
2623 | as_fn_append ac_func_list " vsnprintf" | |
2624 | # Check that the precious variables saved in the cache have kept the same | |
2625 | # value. | |
2626 | ac_cache_corrupted=false | |
2627 | for ac_var in $ac_precious_vars; do | |
2628 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2629 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2630 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2631 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2632 | case $ac_old_set,$ac_new_set in | |
2633 | set,) | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2635 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2636 | ac_cache_corrupted=: ;; | |
2637 | ,set) | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2639 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2640 | ac_cache_corrupted=: ;; | |
2641 | ,);; | |
2642 | *) | |
2643 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2644 | # differences in whitespace do not lead to failure. | |
2645 | ac_old_val_w=`echo x $ac_old_val` | |
2646 | ac_new_val_w=`echo x $ac_new_val` | |
2647 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2649 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2650 | ac_cache_corrupted=: | |
2651 | else | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2653 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2654 | eval $ac_var=\$ac_old_val | |
2655 | fi | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2657 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2659 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2660 | fi;; | |
2661 | esac | |
2662 | # Pass precious variables to config.status. | |
2663 | if test "$ac_new_set" = set; then | |
2664 | case $ac_new_val in | |
2665 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2666 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2667 | esac | |
2668 | case " $ac_configure_args " in | |
2669 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2670 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2671 | esac | |
2672 | fi | |
2673 | done | |
2674 | if $ac_cache_corrupted; then | |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2678 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2679 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2680 | fi | |
2681 | ## -------------------- ## | |
2682 | ## Main body of script. ## | |
2683 | ## -------------------- ## | |
2684 | ||
2685 | ac_ext=c | |
2686 | ac_cpp='$CPP $CPPFLAGS' | |
2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2690 | ||
2691 | ||
2692 | ||
2693 | ||
2694 | ||
2695 | ||
2696 | ac_aux_dir= | |
2697 | for ac_dir in ./support "$srcdir"/./support; do | |
2698 | if test -f "$ac_dir/install-sh"; then | |
2699 | ac_aux_dir=$ac_dir | |
2700 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2701 | break | |
2702 | elif test -f "$ac_dir/install.sh"; then | |
2703 | ac_aux_dir=$ac_dir | |
2704 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2705 | break | |
2706 | elif test -f "$ac_dir/shtool"; then | |
2707 | ac_aux_dir=$ac_dir | |
2708 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2709 | break | |
2710 | fi | |
2711 | done | |
2712 | if test -z "$ac_aux_dir"; then | |
2713 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./support \"$srcdir\"/./support" "$LINENO" 5 | |
2714 | fi | |
2715 | ||
2716 | # These three variables are undocumented and unsupported, | |
2717 | # and are intended to be withdrawn in a future Autoconf release. | |
2718 | # They can cause serious problems if a builder's source tree is in a directory | |
2719 | # whose full name contains unusual characters. | |
2720 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2721 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2722 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2723 | ||
2724 | ||
2725 | ac_config_headers="$ac_config_headers config.h" | |
2726 | ||
2727 | ||
2728 | BASHVERS=4.3 | |
2729 | RELSTATUS=alpha | |
2730 | ||
2731 | case "$RELSTATUS" in | |
2732 | alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;; | |
2733 | *) DEBUG= MALLOC_DEBUG= ;; | |
2734 | esac | |
2735 | ||
2736 | # Make sure we can run config.sub. | |
2737 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2738 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2739 | ||
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2741 | $as_echo_n "checking build system type... " >&6; } | |
2742 | if ${ac_cv_build+:} false; then : | |
2743 | $as_echo_n "(cached) " >&6 | |
2744 | else | |
2745 | ac_build_alias=$build_alias | |
2746 | test "x$ac_build_alias" = x && | |
2747 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2748 | test "x$ac_build_alias" = x && | |
2749 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2750 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2751 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2752 | ||
2753 | fi | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2755 | $as_echo "$ac_cv_build" >&6; } | |
2756 | case $ac_cv_build in | |
2757 | *-*-*) ;; | |
2758 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2759 | esac | |
2760 | build=$ac_cv_build | |
2761 | ac_save_IFS=$IFS; IFS='-' | |
2762 | set x $ac_cv_build | |
2763 | shift | |
2764 | build_cpu=$1 | |
2765 | build_vendor=$2 | |
2766 | shift; shift | |
2767 | # Remember, the first character of IFS is used to create $*, | |
2768 | # except with old shells: | |
2769 | build_os=$* | |
2770 | IFS=$ac_save_IFS | |
2771 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2772 | ||
2773 | ||
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2775 | $as_echo_n "checking host system type... " >&6; } | |
2776 | if ${ac_cv_host+:} false; then : | |
2777 | $as_echo_n "(cached) " >&6 | |
2778 | else | |
2779 | if test "x$host_alias" = x; then | |
2780 | ac_cv_host=$ac_cv_build | |
2781 | else | |
2782 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2783 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2784 | fi | |
2785 | ||
2786 | fi | |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2788 | $as_echo "$ac_cv_host" >&6; } | |
2789 | case $ac_cv_host in | |
2790 | *-*-*) ;; | |
2791 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2792 | esac | |
2793 | host=$ac_cv_host | |
2794 | ac_save_IFS=$IFS; IFS='-' | |
2795 | set x $ac_cv_host | |
2796 | shift | |
2797 | host_cpu=$1 | |
2798 | host_vendor=$2 | |
2799 | shift; shift | |
2800 | # Remember, the first character of IFS is used to create $*, | |
2801 | # except with old shells: | |
2802 | host_os=$* | |
2803 | IFS=$ac_save_IFS | |
2804 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2805 | ||
2806 | ||
2807 | ||
2808 | ||
2809 | opt_bash_malloc=yes | |
2810 | opt_purify=no | |
2811 | opt_purecov=no | |
2812 | opt_afs=no | |
2813 | opt_curses=no | |
2814 | opt_with_installed_readline=no | |
2815 | ||
2816 | #htmldir= | |
2817 | ||
2818 | case "${host_cpu}-${host_os}" in | |
2819 | alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux | |
2820 | *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays | |
2821 | *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines | |
2822 | sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2 | |
2823 | sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
2824 | mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment | |
2825 | m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir | |
2826 | sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF | |
2827 | #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here | |
2828 | #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree | |
2829 | *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment | |
2830 | *-mirbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment | |
2831 | *-aix*) opt_bash_malloc=no ;; # AIX machines | |
2832 | *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep | |
10e78433 | 2833 | *-openstep*) opt_bash_malloc=no ;; # i386/Sparc/HP machines running Openstep |
208fdb50 CR |
2834 | *-macos*) opt_bash_malloc=no ;; # Apple MacOS X |
2835 | *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X) | |
2836 | *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X) | |
2837 | *-dgux*) opt_bash_malloc=no ;; # DG/UX machines | |
2838 | *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x | |
2839 | *-machten4) opt_bash_malloc=no ;; # MachTen 4.x | |
2840 | *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins | |
2841 | *-beos*) opt_bash_malloc=no ;; # they say it's suitable | |
2842 | *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment | |
2843 | *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft | |
2844 | *-nsk*) opt_bash_malloc=no ;; # HP NonStop | |
2845 | esac | |
2846 | ||
2847 | # memory scrambling on free() | |
2848 | case "${host_os}" in | |
2849 | sco3.2v5*|sco3.2v4*) opt_memscramble=no ;; | |
2850 | *) opt_memscramble=yes ;; | |
2851 | esac | |
2852 | ||
2853 | ||
2854 | ||
2855 | ||
2856 | @%:@ Check whether --with-afs was given. | |
2857 | if test "${with_afs+set}" = set; then : | |
2858 | withval=$with_afs; opt_afs=$withval | |
2859 | fi | |
2860 | ||
2861 | ||
2862 | @%:@ Check whether --with-bash-malloc was given. | |
2863 | if test "${with_bash_malloc+set}" = set; then : | |
2864 | withval=$with_bash_malloc; opt_bash_malloc=$withval | |
2865 | fi | |
2866 | ||
2867 | ||
2868 | @%:@ Check whether --with-curses was given. | |
2869 | if test "${with_curses+set}" = set; then : | |
2870 | withval=$with_curses; opt_curses=$withval | |
2871 | fi | |
2872 | ||
2873 | ||
2874 | @%:@ Check whether --with-gnu-malloc was given. | |
2875 | if test "${with_gnu_malloc+set}" = set; then : | |
2876 | withval=$with_gnu_malloc; opt_bash_malloc=$withval | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | @%:@ Check whether --with-installed-readline was given. | |
2881 | if test "${with_installed_readline+set}" = set; then : | |
2882 | withval=$with_installed_readline; opt_with_installed_readline=$withval | |
2883 | fi | |
2884 | ||
2885 | ||
2886 | @%:@ Check whether --with-purecov was given. | |
2887 | if test "${with_purecov+set}" = set; then : | |
2888 | withval=$with_purecov; opt_purecov=$withval | |
2889 | fi | |
2890 | ||
2891 | ||
2892 | @%:@ Check whether --with-purify was given. | |
2893 | if test "${with_purify+set}" = set; then : | |
2894 | withval=$with_purify; opt_purify=$withval | |
2895 | fi | |
2896 | ||
2897 | ||
2898 | if test "$opt_bash_malloc" = yes; then | |
2899 | MALLOC_TARGET=malloc | |
2900 | MALLOC_SRC=malloc.c | |
2901 | ||
2902 | MALLOC_LIB='-lmalloc' | |
2903 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
2904 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
2905 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
2906 | ||
2907 | $as_echo "@%:@define USING_BASH_MALLOC 1" >>confdefs.h | |
2908 | ||
2909 | else | |
2910 | MALLOC_LIB= | |
2911 | MALLOC_LIBRARY= | |
2912 | MALLOC_LDFLAGS= | |
2913 | MALLOC_DEP= | |
2914 | fi | |
2915 | ||
2916 | if test "$opt_purify" = yes; then | |
2917 | PURIFY="purify " | |
2918 | $as_echo "@%:@define DISABLE_MALLOC_WRAPPERS 1" >>confdefs.h | |
2919 | ||
2920 | else | |
2921 | PURIFY= | |
2922 | fi | |
2923 | ||
2924 | if test "$opt_purecov" = yes; then | |
2925 | PURIFY="${PURIFY}purecov" | |
2926 | fi | |
2927 | ||
2928 | if test "$opt_afs" = yes; then | |
2929 | $as_echo "@%:@define AFS 1" >>confdefs.h | |
2930 | ||
2931 | fi | |
2932 | ||
2933 | if test "$opt_curses" = yes; then | |
2934 | prefer_curses=yes | |
2935 | fi | |
2936 | ||
2937 | if test -z "${DEBUGGER_START_FILE}"; then | |
2938 | DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc' | |
2939 | fi | |
2940 | ||
2941 | opt_minimal_config=no | |
2942 | ||
2943 | opt_job_control=yes | |
2944 | opt_alias=yes | |
2945 | opt_readline=yes | |
2946 | opt_history=yes | |
2947 | opt_bang_history=yes | |
2948 | opt_dirstack=yes | |
2949 | opt_restricted=yes | |
2950 | opt_process_subst=yes | |
2951 | opt_prompt_decoding=yes | |
2952 | opt_select=yes | |
2953 | opt_help=yes | |
2954 | opt_array_variables=yes | |
2955 | opt_dparen_arith=yes | |
2956 | opt_extended_glob=yes | |
2957 | opt_brace_expansion=yes | |
2958 | opt_disabled_builtins=no | |
2959 | opt_command_timing=yes | |
2960 | opt_xpg_echo=no | |
2961 | opt_strict_posix=no | |
2962 | opt_cond_command=yes | |
2963 | opt_cond_regexp=yes | |
2964 | opt_coproc=yes | |
2965 | opt_arith_for_command=yes | |
2966 | opt_net_redirs=yes | |
2967 | opt_progcomp=yes | |
2968 | opt_separate_help=no | |
2969 | opt_multibyte=yes | |
2970 | opt_debugger=yes | |
2971 | opt_single_longdoc_strings=yes | |
2972 | opt_casemod_attrs=yes | |
2973 | opt_casemod_expansions=yes | |
2974 | opt_extglob_default=no | |
2975 | opt_dircomplete_expand_default=no | |
2976 | ||
2977 | opt_static_link=no | |
2978 | opt_profiling=no | |
2979 | ||
2980 | @%:@ Check whether --enable-minimal-config was given. | |
2981 | if test "${enable_minimal_config+set}" = set; then : | |
2982 | enableval=$enable_minimal_config; opt_minimal_config=$enableval | |
2983 | fi | |
2984 | ||
2985 | ||
2986 | if test $opt_minimal_config = yes; then | |
2987 | opt_job_control=no opt_alias=no opt_readline=no | |
2988 | opt_history=no opt_bang_history=no opt_dirstack=no | |
2989 | opt_restricted=no opt_process_subst=no opt_prompt_decoding=no | |
2990 | opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no | |
2991 | opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no | |
2992 | opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no | |
2993 | opt_net_redirs=no opt_progcomp=no opt_separate_help=no | |
2994 | opt_multibyte=yes opt_cond_regexp=no opt_coproc=no | |
2995 | opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no | |
2996 | fi | |
2997 | ||
2998 | @%:@ Check whether --enable-alias was given. | |
2999 | if test "${enable_alias+set}" = set; then : | |
3000 | enableval=$enable_alias; opt_alias=$enableval | |
3001 | fi | |
3002 | ||
3003 | @%:@ Check whether --enable-arith-for-command was given. | |
3004 | if test "${enable_arith_for_command+set}" = set; then : | |
3005 | enableval=$enable_arith_for_command; opt_arith_for_command=$enableval | |
3006 | fi | |
3007 | ||
3008 | @%:@ Check whether --enable-array-variables was given. | |
3009 | if test "${enable_array_variables+set}" = set; then : | |
3010 | enableval=$enable_array_variables; opt_array_variables=$enableval | |
3011 | fi | |
3012 | ||
3013 | @%:@ Check whether --enable-bang-history was given. | |
3014 | if test "${enable_bang_history+set}" = set; then : | |
3015 | enableval=$enable_bang_history; opt_bang_history=$enableval | |
3016 | fi | |
3017 | ||
3018 | @%:@ Check whether --enable-brace-expansion was given. | |
3019 | if test "${enable_brace_expansion+set}" = set; then : | |
3020 | enableval=$enable_brace_expansion; opt_brace_expansion=$enableval | |
3021 | fi | |
3022 | ||
3023 | @%:@ Check whether --enable-casemod-attributes was given. | |
3024 | if test "${enable_casemod_attributes+set}" = set; then : | |
3025 | enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval | |
3026 | fi | |
3027 | ||
3028 | @%:@ Check whether --enable-casemod-expansions was given. | |
3029 | if test "${enable_casemod_expansions+set}" = set; then : | |
3030 | enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval | |
3031 | fi | |
3032 | ||
3033 | @%:@ Check whether --enable-command-timing was given. | |
3034 | if test "${enable_command_timing+set}" = set; then : | |
3035 | enableval=$enable_command_timing; opt_command_timing=$enableval | |
3036 | fi | |
3037 | ||
3038 | @%:@ Check whether --enable-cond-command was given. | |
3039 | if test "${enable_cond_command+set}" = set; then : | |
3040 | enableval=$enable_cond_command; opt_cond_command=$enableval | |
3041 | fi | |
3042 | ||
3043 | @%:@ Check whether --enable-cond-regexp was given. | |
3044 | if test "${enable_cond_regexp+set}" = set; then : | |
3045 | enableval=$enable_cond_regexp; opt_cond_regexp=$enableval | |
3046 | fi | |
3047 | ||
3048 | @%:@ Check whether --enable-coprocesses was given. | |
3049 | if test "${enable_coprocesses+set}" = set; then : | |
3050 | enableval=$enable_coprocesses; opt_coproc=$enableval | |
3051 | fi | |
3052 | ||
3053 | @%:@ Check whether --enable-debugger was given. | |
3054 | if test "${enable_debugger+set}" = set; then : | |
3055 | enableval=$enable_debugger; opt_debugger=$enableval | |
3056 | fi | |
3057 | ||
3058 | @%:@ Check whether --enable-direxpand-default was given. | |
3059 | if test "${enable_direxpand_default+set}" = set; then : | |
3060 | enableval=$enable_direxpand_default; opt_dircomplete_expand_default=$enableval | |
3061 | fi | |
3062 | ||
3063 | @%:@ Check whether --enable-directory-stack was given. | |
3064 | if test "${enable_directory_stack+set}" = set; then : | |
3065 | enableval=$enable_directory_stack; opt_dirstack=$enableval | |
3066 | fi | |
3067 | ||
3068 | @%:@ Check whether --enable-disabled-builtins was given. | |
3069 | if test "${enable_disabled_builtins+set}" = set; then : | |
3070 | enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval | |
3071 | fi | |
3072 | ||
3073 | @%:@ Check whether --enable-dparen-arithmetic was given. | |
3074 | if test "${enable_dparen_arithmetic+set}" = set; then : | |
3075 | enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval | |
3076 | fi | |
3077 | ||
3078 | @%:@ Check whether --enable-extended-glob was given. | |
3079 | if test "${enable_extended_glob+set}" = set; then : | |
3080 | enableval=$enable_extended_glob; opt_extended_glob=$enableval | |
3081 | fi | |
3082 | ||
3083 | @%:@ Check whether --enable-extended-glob-default was given. | |
3084 | if test "${enable_extended_glob_default+set}" = set; then : | |
3085 | enableval=$enable_extended_glob_default; opt_extglob_default=$enableval | |
3086 | fi | |
3087 | ||
3088 | @%:@ Check whether --enable-help-builtin was given. | |
3089 | if test "${enable_help_builtin+set}" = set; then : | |
3090 | enableval=$enable_help_builtin; opt_help=$enableval | |
3091 | fi | |
3092 | ||
3093 | @%:@ Check whether --enable-history was given. | |
3094 | if test "${enable_history+set}" = set; then : | |
3095 | enableval=$enable_history; opt_history=$enableval | |
3096 | fi | |
3097 | ||
3098 | @%:@ Check whether --enable-job-control was given. | |
3099 | if test "${enable_job_control+set}" = set; then : | |
3100 | enableval=$enable_job_control; opt_job_control=$enableval | |
3101 | fi | |
3102 | ||
3103 | @%:@ Check whether --enable-multibyte was given. | |
3104 | if test "${enable_multibyte+set}" = set; then : | |
3105 | enableval=$enable_multibyte; opt_multibyte=$enableval | |
3106 | fi | |
3107 | ||
3108 | @%:@ Check whether --enable-net-redirections was given. | |
3109 | if test "${enable_net_redirections+set}" = set; then : | |
3110 | enableval=$enable_net_redirections; opt_net_redirs=$enableval | |
3111 | fi | |
3112 | ||
3113 | @%:@ Check whether --enable-process-substitution was given. | |
3114 | if test "${enable_process_substitution+set}" = set; then : | |
3115 | enableval=$enable_process_substitution; opt_process_subst=$enableval | |
3116 | fi | |
3117 | ||
3118 | @%:@ Check whether --enable-progcomp was given. | |
3119 | if test "${enable_progcomp+set}" = set; then : | |
3120 | enableval=$enable_progcomp; opt_progcomp=$enableval | |
3121 | fi | |
3122 | ||
3123 | @%:@ Check whether --enable-prompt-string-decoding was given. | |
3124 | if test "${enable_prompt_string_decoding+set}" = set; then : | |
3125 | enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval | |
3126 | fi | |
3127 | ||
3128 | @%:@ Check whether --enable-readline was given. | |
3129 | if test "${enable_readline+set}" = set; then : | |
3130 | enableval=$enable_readline; opt_readline=$enableval | |
3131 | fi | |
3132 | ||
3133 | @%:@ Check whether --enable-restricted was given. | |
3134 | if test "${enable_restricted+set}" = set; then : | |
3135 | enableval=$enable_restricted; opt_restricted=$enableval | |
3136 | fi | |
3137 | ||
3138 | @%:@ Check whether --enable-select was given. | |
3139 | if test "${enable_select+set}" = set; then : | |
3140 | enableval=$enable_select; opt_select=$enableval | |
3141 | fi | |
3142 | ||
3143 | @%:@ Check whether --enable-separate-helpfiles was given. | |
3144 | if test "${enable_separate_helpfiles+set}" = set; then : | |
3145 | enableval=$enable_separate_helpfiles; opt_separate_help=$enableval | |
3146 | fi | |
3147 | ||
3148 | @%:@ Check whether --enable-single-help-strings was given. | |
3149 | if test "${enable_single_help_strings+set}" = set; then : | |
3150 | enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval | |
3151 | fi | |
3152 | ||
3153 | @%:@ Check whether --enable-strict-posix-default was given. | |
3154 | if test "${enable_strict_posix_default+set}" = set; then : | |
3155 | enableval=$enable_strict_posix_default; opt_strict_posix=$enableval | |
3156 | fi | |
3157 | ||
3158 | @%:@ Check whether --enable-usg-echo-default was given. | |
3159 | if test "${enable_usg_echo_default+set}" = set; then : | |
3160 | enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval | |
3161 | fi | |
3162 | ||
3163 | @%:@ Check whether --enable-xpg-echo-default was given. | |
3164 | if test "${enable_xpg_echo_default+set}" = set; then : | |
3165 | enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval | |
3166 | fi | |
3167 | ||
3168 | ||
3169 | @%:@ Check whether --enable-mem-scramble was given. | |
3170 | if test "${enable_mem_scramble+set}" = set; then : | |
3171 | enableval=$enable_mem_scramble; opt_memscramble=$enableval | |
3172 | fi | |
3173 | ||
3174 | @%:@ Check whether --enable-profiling was given. | |
3175 | if test "${enable_profiling+set}" = set; then : | |
3176 | enableval=$enable_profiling; opt_profiling=$enableval | |
3177 | fi | |
3178 | ||
3179 | @%:@ Check whether --enable-static-link was given. | |
3180 | if test "${enable_static_link+set}" = set; then : | |
3181 | enableval=$enable_static_link; opt_static_link=$enableval | |
3182 | fi | |
3183 | ||
3184 | ||
3185 | ||
3186 | ||
3187 | ||
3188 | ||
3189 | ||
3190 | ||
3191 | ||
3192 | if test $opt_alias = yes; then | |
3193 | $as_echo "@%:@define ALIAS 1" >>confdefs.h | |
3194 | ||
3195 | fi | |
3196 | if test $opt_dirstack = yes; then | |
3197 | $as_echo "@%:@define PUSHD_AND_POPD 1" >>confdefs.h | |
3198 | ||
3199 | fi | |
3200 | if test $opt_restricted = yes; then | |
3201 | $as_echo "@%:@define RESTRICTED_SHELL 1" >>confdefs.h | |
3202 | ||
3203 | fi | |
3204 | if test $opt_process_subst = yes; then | |
3205 | $as_echo "@%:@define PROCESS_SUBSTITUTION 1" >>confdefs.h | |
3206 | ||
3207 | fi | |
3208 | if test $opt_prompt_decoding = yes; then | |
3209 | $as_echo "@%:@define PROMPT_STRING_DECODE 1" >>confdefs.h | |
3210 | ||
3211 | fi | |
3212 | if test $opt_select = yes; then | |
3213 | $as_echo "@%:@define SELECT_COMMAND 1" >>confdefs.h | |
3214 | ||
3215 | fi | |
3216 | if test $opt_help = yes; then | |
3217 | $as_echo "@%:@define HELP_BUILTIN 1" >>confdefs.h | |
3218 | ||
3219 | fi | |
3220 | if test $opt_array_variables = yes; then | |
3221 | $as_echo "@%:@define ARRAY_VARS 1" >>confdefs.h | |
3222 | ||
3223 | fi | |
3224 | if test $opt_dparen_arith = yes; then | |
3225 | $as_echo "@%:@define DPAREN_ARITHMETIC 1" >>confdefs.h | |
3226 | ||
3227 | fi | |
3228 | if test $opt_brace_expansion = yes; then | |
3229 | $as_echo "@%:@define BRACE_EXPANSION 1" >>confdefs.h | |
3230 | ||
3231 | fi | |
3232 | if test $opt_disabled_builtins = yes; then | |
3233 | $as_echo "@%:@define DISABLED_BUILTINS 1" >>confdefs.h | |
3234 | ||
3235 | fi | |
3236 | if test $opt_command_timing = yes; then | |
3237 | $as_echo "@%:@define COMMAND_TIMING 1" >>confdefs.h | |
3238 | ||
3239 | fi | |
3240 | if test $opt_xpg_echo = yes ; then | |
3241 | $as_echo "@%:@define DEFAULT_ECHO_TO_XPG 1" >>confdefs.h | |
3242 | ||
3243 | fi | |
3244 | if test $opt_strict_posix = yes; then | |
3245 | $as_echo "@%:@define STRICT_POSIX 1" >>confdefs.h | |
3246 | ||
3247 | fi | |
3248 | if test $opt_extended_glob = yes ; then | |
3249 | $as_echo "@%:@define EXTENDED_GLOB 1" >>confdefs.h | |
3250 | ||
3251 | fi | |
3252 | if test $opt_extglob_default = yes; then | |
3253 | $as_echo "@%:@define EXTGLOB_DEFAULT 1" >>confdefs.h | |
3254 | ||
3255 | else | |
3256 | $as_echo "@%:@define EXTGLOB_DEFAULT 0" >>confdefs.h | |
3257 | ||
3258 | fi | |
3259 | if test $opt_cond_command = yes ; then | |
3260 | $as_echo "@%:@define COND_COMMAND 1" >>confdefs.h | |
3261 | ||
3262 | fi | |
3263 | if test $opt_cond_regexp = yes ; then | |
3264 | $as_echo "@%:@define COND_REGEXP 1" >>confdefs.h | |
3265 | ||
3266 | fi | |
3267 | if test $opt_coproc = yes; then | |
3268 | $as_echo "@%:@define COPROCESS_SUPPORT 1" >>confdefs.h | |
3269 | ||
3270 | fi | |
3271 | if test $opt_arith_for_command = yes; then | |
3272 | $as_echo "@%:@define ARITH_FOR_COMMAND 1" >>confdefs.h | |
3273 | ||
3274 | fi | |
3275 | if test $opt_net_redirs = yes; then | |
3276 | $as_echo "@%:@define NETWORK_REDIRECTIONS 1" >>confdefs.h | |
3277 | ||
3278 | fi | |
3279 | if test $opt_progcomp = yes; then | |
3280 | $as_echo "@%:@define PROGRAMMABLE_COMPLETION 1" >>confdefs.h | |
3281 | ||
3282 | fi | |
3283 | if test $opt_multibyte = no; then | |
3284 | $as_echo "@%:@define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h | |
3285 | ||
3286 | fi | |
3287 | if test $opt_debugger = yes; then | |
3288 | $as_echo "@%:@define DEBUGGER 1" >>confdefs.h | |
3289 | ||
3290 | fi | |
3291 | if test $opt_casemod_attrs = yes; then | |
3292 | $as_echo "@%:@define CASEMOD_ATTRS 1" >>confdefs.h | |
3293 | ||
3294 | fi | |
3295 | if test $opt_casemod_expansions = yes; then | |
3296 | $as_echo "@%:@define CASEMOD_EXPANSIONS 1" >>confdefs.h | |
3297 | ||
3298 | fi | |
3299 | if test $opt_dircomplete_expand_default = yes; then | |
3300 | $as_echo "@%:@define DIRCOMPLETE_EXPAND_DEFAULT 1" >>confdefs.h | |
3301 | ||
3302 | fi | |
3303 | ||
3304 | if test $opt_memscramble = yes; then | |
3305 | $as_echo "@%:@define MEMSCRAMBLE 1" >>confdefs.h | |
3306 | ||
3307 | fi | |
3308 | ||
3309 | if test "$opt_minimal_config" = yes; then | |
3310 | TESTSCRIPT=run-minimal | |
3311 | else | |
3312 | TESTSCRIPT=run-all | |
3313 | fi | |
3314 | ||
3315 | HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET= | |
3316 | if test "$opt_separate_help" != no; then | |
3317 | if test "$opt_separate_help" = "yes" ; then | |
3318 | HELPDIR='${datadir}/bash' | |
3319 | else | |
3320 | HELPDIR=$opt_separate_help | |
3321 | fi | |
3322 | HELPDIRDEFINE='-H ${HELPDIR}' | |
3323 | HELPINSTALL='install-help' | |
3324 | HELPFILES_TARGET='helpdoc' | |
3325 | fi | |
3326 | HELPSTRINGS= | |
3327 | if test "$opt_single_longdoc_strings" != "yes"; then | |
3328 | HELPSTRINGS='-S' | |
3329 | fi | |
3330 | ||
3331 | ||
3332 | ||
3333 | ||
3334 | ||
3335 | ||
3336 | ||
3337 | ||
3338 | ||
3339 | ||
3340 | ||
3341 | ||
3342 | ||
3343 | ||
3344 | ||
3345 | ||
3346 | ||
3347 | ||
3348 | ||
3349 | echo "" | |
3350 | echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}" | |
3351 | echo "" | |
3352 | ||
3353 | ac_ext=c | |
3354 | ac_cpp='$CPP $CPPFLAGS' | |
3355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3358 | if test -n "$ac_tool_prefix"; then | |
3359 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3360 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3362 | $as_echo_n "checking for $ac_word... " >&6; } | |
3363 | if ${ac_cv_prog_CC+:} false; then : | |
3364 | $as_echo_n "(cached) " >&6 | |
3365 | else | |
3366 | if test -n "$CC"; then | |
3367 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3368 | else | |
3369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3370 | for as_dir in $PATH | |
3371 | do | |
3372 | IFS=$as_save_IFS | |
3373 | test -z "$as_dir" && as_dir=. | |
3374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3376 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3378 | break 2 | |
3379 | fi | |
3380 | done | |
3381 | done | |
3382 | IFS=$as_save_IFS | |
3383 | ||
3384 | fi | |
3385 | fi | |
3386 | CC=$ac_cv_prog_CC | |
3387 | if test -n "$CC"; then | |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3389 | $as_echo "$CC" >&6; } | |
3390 | else | |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3392 | $as_echo "no" >&6; } | |
3393 | fi | |
3394 | ||
3395 | ||
3396 | fi | |
3397 | if test -z "$ac_cv_prog_CC"; then | |
3398 | ac_ct_CC=$CC | |
3399 | # Extract the first word of "gcc", so it can be a program name with args. | |
3400 | set dummy gcc; ac_word=$2 | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3402 | $as_echo_n "checking for $ac_word... " >&6; } | |
3403 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3404 | $as_echo_n "(cached) " >&6 | |
3405 | else | |
3406 | if test -n "$ac_ct_CC"; then | |
3407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3408 | else | |
3409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3410 | for as_dir in $PATH | |
3411 | do | |
3412 | IFS=$as_save_IFS | |
3413 | test -z "$as_dir" && as_dir=. | |
3414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3416 | ac_cv_prog_ac_ct_CC="gcc" | |
3417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3418 | break 2 | |
3419 | fi | |
3420 | done | |
3421 | done | |
3422 | IFS=$as_save_IFS | |
3423 | ||
3424 | fi | |
3425 | fi | |
3426 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3427 | if test -n "$ac_ct_CC"; then | |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3429 | $as_echo "$ac_ct_CC" >&6; } | |
3430 | else | |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3432 | $as_echo "no" >&6; } | |
3433 | fi | |
3434 | ||
3435 | if test "x$ac_ct_CC" = x; then | |
3436 | CC="" | |
3437 | else | |
3438 | case $cross_compiling:$ac_tool_warned in | |
3439 | yes:) | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3442 | ac_tool_warned=yes ;; | |
3443 | esac | |
3444 | CC=$ac_ct_CC | |
3445 | fi | |
3446 | else | |
3447 | CC="$ac_cv_prog_CC" | |
3448 | fi | |
3449 | ||
3450 | if test -z "$CC"; then | |
3451 | if test -n "$ac_tool_prefix"; then | |
3452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3453 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3455 | $as_echo_n "checking for $ac_word... " >&6; } | |
3456 | if ${ac_cv_prog_CC+:} false; then : | |
3457 | $as_echo_n "(cached) " >&6 | |
3458 | else | |
3459 | if test -n "$CC"; then | |
3460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
3464 | do | |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
3467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3469 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3471 | break 2 | |
3472 | fi | |
3473 | done | |
3474 | done | |
3475 | IFS=$as_save_IFS | |
3476 | ||
3477 | fi | |
3478 | fi | |
3479 | CC=$ac_cv_prog_CC | |
3480 | if test -n "$CC"; then | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3482 | $as_echo "$CC" >&6; } | |
3483 | else | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3485 | $as_echo "no" >&6; } | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | fi | |
3490 | fi | |
3491 | if test -z "$CC"; then | |
3492 | # Extract the first word of "cc", so it can be a program name with args. | |
3493 | set dummy cc; ac_word=$2 | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3495 | $as_echo_n "checking for $ac_word... " >&6; } | |
3496 | if ${ac_cv_prog_CC+:} false; then : | |
3497 | $as_echo_n "(cached) " >&6 | |
3498 | else | |
3499 | if test -n "$CC"; then | |
3500 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3501 | else | |
3502 | ac_prog_rejected=no | |
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3504 | for as_dir in $PATH | |
3505 | do | |
3506 | IFS=$as_save_IFS | |
3507 | test -z "$as_dir" && as_dir=. | |
3508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3510 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3511 | ac_prog_rejected=yes | |
3512 | continue | |
3513 | fi | |
3514 | ac_cv_prog_CC="cc" | |
3515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3516 | break 2 | |
3517 | fi | |
3518 | done | |
3519 | done | |
3520 | IFS=$as_save_IFS | |
3521 | ||
3522 | if test $ac_prog_rejected = yes; then | |
3523 | # We found a bogon in the path, so make sure we never use it. | |
3524 | set dummy $ac_cv_prog_CC | |
3525 | shift | |
3526 | if test $@%:@ != 0; then | |
3527 | # We chose a different compiler from the bogus one. | |
3528 | # However, it has the same basename, so the bogon will be chosen | |
3529 | # first if we set CC to just the basename; use the full file name. | |
3530 | shift | |
3531 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3532 | fi | |
3533 | fi | |
3534 | fi | |
3535 | fi | |
3536 | CC=$ac_cv_prog_CC | |
3537 | if test -n "$CC"; then | |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3539 | $as_echo "$CC" >&6; } | |
3540 | else | |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3542 | $as_echo "no" >&6; } | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | fi | |
3547 | if test -z "$CC"; then | |
3548 | if test -n "$ac_tool_prefix"; then | |
3549 | for ac_prog in cl.exe | |
3550 | do | |
3551 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3552 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3554 | $as_echo_n "checking for $ac_word... " >&6; } | |
3555 | if ${ac_cv_prog_CC+:} false; then : | |
3556 | $as_echo_n "(cached) " >&6 | |
3557 | else | |
3558 | if test -n "$CC"; then | |
3559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3560 | else | |
3561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3562 | for as_dir in $PATH | |
3563 | do | |
3564 | IFS=$as_save_IFS | |
3565 | test -z "$as_dir" && as_dir=. | |
3566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3570 | break 2 | |
3571 | fi | |
3572 | done | |
3573 | done | |
3574 | IFS=$as_save_IFS | |
3575 | ||
3576 | fi | |
3577 | fi | |
3578 | CC=$ac_cv_prog_CC | |
3579 | if test -n "$CC"; then | |
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3581 | $as_echo "$CC" >&6; } | |
3582 | else | |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3584 | $as_echo "no" >&6; } | |
3585 | fi | |
3586 | ||
3587 | ||
3588 | test -n "$CC" && break | |
3589 | done | |
3590 | fi | |
3591 | if test -z "$CC"; then | |
3592 | ac_ct_CC=$CC | |
3593 | for ac_prog in cl.exe | |
3594 | do | |
3595 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3596 | set dummy $ac_prog; ac_word=$2 | |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3598 | $as_echo_n "checking for $ac_word... " >&6; } | |
3599 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3600 | $as_echo_n "(cached) " >&6 | |
3601 | else | |
3602 | if test -n "$ac_ct_CC"; then | |
3603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3604 | else | |
3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3606 | for as_dir in $PATH | |
3607 | do | |
3608 | IFS=$as_save_IFS | |
3609 | test -z "$as_dir" && as_dir=. | |
3610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3612 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3614 | break 2 | |
3615 | fi | |
3616 | done | |
3617 | done | |
3618 | IFS=$as_save_IFS | |
3619 | ||
3620 | fi | |
3621 | fi | |
3622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3623 | if test -n "$ac_ct_CC"; then | |
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3625 | $as_echo "$ac_ct_CC" >&6; } | |
3626 | else | |
3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3628 | $as_echo "no" >&6; } | |
3629 | fi | |
3630 | ||
3631 | ||
3632 | test -n "$ac_ct_CC" && break | |
3633 | done | |
3634 | ||
3635 | if test "x$ac_ct_CC" = x; then | |
3636 | CC="" | |
3637 | else | |
3638 | case $cross_compiling:$ac_tool_warned in | |
3639 | yes:) | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3642 | ac_tool_warned=yes ;; | |
3643 | esac | |
3644 | CC=$ac_ct_CC | |
3645 | fi | |
3646 | fi | |
3647 | ||
3648 | fi | |
3649 | ||
3650 | ||
3651 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3653 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3654 | See \`config.log' for more details" "$LINENO" 5; } | |
3655 | ||
3656 | # Provide some information about the compiler. | |
3657 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3658 | set X $ac_compile | |
3659 | ac_compiler=$2 | |
3660 | for ac_option in --version -v -V -qversion; do | |
3661 | { { ac_try="$ac_compiler $ac_option >&5" | |
3662 | case "(($ac_try" in | |
3663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3664 | *) ac_try_echo=$ac_try;; | |
3665 | esac | |
3666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3667 | $as_echo "$ac_try_echo"; } >&5 | |
3668 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3669 | ac_status=$? | |
3670 | if test -s conftest.err; then | |
3671 | sed '10a\ | |
3672 | ... rest of stderr output deleted ... | |
3673 | 10q' conftest.err >conftest.er1 | |
3674 | cat conftest.er1 >&5 | |
3675 | fi | |
3676 | rm -f conftest.er1 conftest.err | |
3677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3678 | test $ac_status = 0; } | |
3679 | done | |
3680 | ||
3681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3682 | /* end confdefs.h. */ | |
3683 | ||
3684 | int | |
3685 | main () | |
3686 | { | |
3687 | ||
3688 | ; | |
3689 | return 0; | |
3690 | } | |
3691 | _ACEOF | |
3692 | ac_clean_files_save=$ac_clean_files | |
3693 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3694 | # Try to create an executable without -o first, disregard a.out. | |
3695 | # It will help us diagnose broken compilers, and finding out an intuition | |
3696 | # of exeext. | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3698 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3699 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3700 | ||
3701 | # The possible output files: | |
3702 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3703 | ||
3704 | ac_rmfiles= | |
3705 | for ac_file in $ac_files | |
3706 | do | |
3707 | case $ac_file in | |
3708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3709 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3710 | esac | |
3711 | done | |
3712 | rm -f $ac_rmfiles | |
3713 | ||
3714 | if { { ac_try="$ac_link_default" | |
3715 | case "(($ac_try" in | |
3716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3717 | *) ac_try_echo=$ac_try;; | |
3718 | esac | |
3719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3720 | $as_echo "$ac_try_echo"; } >&5 | |
3721 | (eval "$ac_link_default") 2>&5 | |
3722 | ac_status=$? | |
3723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3724 | test $ac_status = 0; }; then : | |
3725 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3726 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3727 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3728 | # so that the user can short-circuit this test for compilers unknown to | |
3729 | # Autoconf. | |
3730 | for ac_file in $ac_files '' | |
3731 | do | |
3732 | test -f "$ac_file" || continue | |
3733 | case $ac_file in | |
3734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3735 | ;; | |
3736 | [ab].out ) | |
3737 | # We found the default executable, but exeext='' is most | |
3738 | # certainly right. | |
3739 | break;; | |
3740 | *.* ) | |
3741 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3742 | then :; else | |
3743 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3744 | fi | |
3745 | # We set ac_cv_exeext here because the later test for it is not | |
3746 | # safe: cross compilers may not add the suffix if given an `-o' | |
3747 | # argument, so we may need to know it at that point already. | |
3748 | # Even if this section looks crufty: it has the advantage of | |
3749 | # actually working. | |
3750 | break;; | |
3751 | * ) | |
3752 | break;; | |
3753 | esac | |
3754 | done | |
3755 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3756 | ||
3757 | else | |
3758 | ac_file='' | |
3759 | fi | |
3760 | if test -z "$ac_file"; then : | |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3762 | $as_echo "no" >&6; } | |
3763 | $as_echo "$as_me: failed program was:" >&5 | |
3764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3765 | ||
3766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3768 | as_fn_error 77 "C compiler cannot create executables | |
3769 | See \`config.log' for more details" "$LINENO" 5; } | |
3770 | else | |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3772 | $as_echo "yes" >&6; } | |
3773 | fi | |
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3775 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3777 | $as_echo "$ac_file" >&6; } | |
3778 | ac_exeext=$ac_cv_exeext | |
3779 | ||
3780 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3781 | ac_clean_files=$ac_clean_files_save | |
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3783 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3784 | if { { ac_try="$ac_link" | |
3785 | case "(($ac_try" in | |
3786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3787 | *) ac_try_echo=$ac_try;; | |
3788 | esac | |
3789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3790 | $as_echo "$ac_try_echo"; } >&5 | |
3791 | (eval "$ac_link") 2>&5 | |
3792 | ac_status=$? | |
3793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3794 | test $ac_status = 0; }; then : | |
3795 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3796 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3797 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3798 | # `rm'. | |
3799 | for ac_file in conftest.exe conftest conftest.*; do | |
3800 | test -f "$ac_file" || continue | |
3801 | case $ac_file in | |
3802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3803 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3804 | break;; | |
3805 | * ) break;; | |
3806 | esac | |
3807 | done | |
3808 | else | |
3809 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3810 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3811 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3812 | See \`config.log' for more details" "$LINENO" 5; } | |
3813 | fi | |
3814 | rm -f conftest conftest$ac_cv_exeext | |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3816 | $as_echo "$ac_cv_exeext" >&6; } | |
3817 | ||
3818 | rm -f conftest.$ac_ext | |
3819 | EXEEXT=$ac_cv_exeext | |
3820 | ac_exeext=$EXEEXT | |
3821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3822 | /* end confdefs.h. */ | |
3823 | @%:@include <stdio.h> | |
3824 | int | |
3825 | main () | |
3826 | { | |
3827 | FILE *f = fopen ("conftest.out", "w"); | |
3828 | return ferror (f) || fclose (f) != 0; | |
3829 | ||
3830 | ; | |
3831 | return 0; | |
3832 | } | |
3833 | _ACEOF | |
3834 | ac_clean_files="$ac_clean_files conftest.out" | |
3835 | # Check that the compiler produces executables we can run. If not, either | |
3836 | # the compiler is broken, or we cross compile. | |
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3838 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3839 | if test "$cross_compiling" != yes; then | |
3840 | { { ac_try="$ac_link" | |
3841 | case "(($ac_try" in | |
3842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3843 | *) ac_try_echo=$ac_try;; | |
3844 | esac | |
3845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3846 | $as_echo "$ac_try_echo"; } >&5 | |
3847 | (eval "$ac_link") 2>&5 | |
3848 | ac_status=$? | |
3849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3850 | test $ac_status = 0; } | |
3851 | if { ac_try='./conftest$ac_cv_exeext' | |
3852 | { { case "(($ac_try" in | |
3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3854 | *) ac_try_echo=$ac_try;; | |
3855 | esac | |
3856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3857 | $as_echo "$ac_try_echo"; } >&5 | |
3858 | (eval "$ac_try") 2>&5 | |
3859 | ac_status=$? | |
3860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3861 | test $ac_status = 0; }; }; then | |
3862 | cross_compiling=no | |
3863 | else | |
3864 | if test "$cross_compiling" = maybe; then | |
3865 | cross_compiling=yes | |
3866 | else | |
3867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3869 | as_fn_error $? "cannot run C compiled programs. | |
3870 | If you meant to cross compile, use \`--host'. | |
3871 | See \`config.log' for more details" "$LINENO" 5; } | |
3872 | fi | |
3873 | fi | |
3874 | fi | |
3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3876 | $as_echo "$cross_compiling" >&6; } | |
3877 | ||
3878 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3879 | ac_clean_files=$ac_clean_files_save | |
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3881 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3882 | if ${ac_cv_objext+:} false; then : | |
3883 | $as_echo_n "(cached) " >&6 | |
3884 | else | |
3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3886 | /* end confdefs.h. */ | |
3887 | ||
3888 | int | |
3889 | main () | |
3890 | { | |
3891 | ||
3892 | ; | |
3893 | return 0; | |
3894 | } | |
3895 | _ACEOF | |
3896 | rm -f conftest.o conftest.obj | |
3897 | if { { ac_try="$ac_compile" | |
3898 | case "(($ac_try" in | |
3899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3900 | *) ac_try_echo=$ac_try;; | |
3901 | esac | |
3902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3903 | $as_echo "$ac_try_echo"; } >&5 | |
3904 | (eval "$ac_compile") 2>&5 | |
3905 | ac_status=$? | |
3906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3907 | test $ac_status = 0; }; then : | |
3908 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3909 | test -f "$ac_file" || continue; | |
3910 | case $ac_file in | |
3911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3912 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3913 | break;; | |
3914 | esac | |
3915 | done | |
3916 | else | |
3917 | $as_echo "$as_me: failed program was:" >&5 | |
3918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3919 | ||
3920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3922 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3923 | See \`config.log' for more details" "$LINENO" 5; } | |
3924 | fi | |
3925 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3926 | fi | |
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3928 | $as_echo "$ac_cv_objext" >&6; } | |
3929 | OBJEXT=$ac_cv_objext | |
3930 | ac_objext=$OBJEXT | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3932 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3933 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3934 | $as_echo_n "(cached) " >&6 | |
3935 | else | |
3936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3937 | /* end confdefs.h. */ | |
3938 | ||
3939 | int | |
3940 | main () | |
3941 | { | |
3942 | #ifndef __GNUC__ | |
3943 | choke me | |
3944 | #endif | |
3945 | ||
3946 | ; | |
3947 | return 0; | |
3948 | } | |
3949 | _ACEOF | |
3950 | if ac_fn_c_try_compile "$LINENO"; then : | |
3951 | ac_compiler_gnu=yes | |
3952 | else | |
3953 | ac_compiler_gnu=no | |
3954 | fi | |
3955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3956 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3957 | ||
3958 | fi | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3960 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3961 | if test $ac_compiler_gnu = yes; then | |
3962 | GCC=yes | |
3963 | else | |
3964 | GCC= | |
3965 | fi | |
3966 | ac_test_CFLAGS=${CFLAGS+set} | |
3967 | ac_save_CFLAGS=$CFLAGS | |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3969 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3970 | if ${ac_cv_prog_cc_g+:} false; then : | |
3971 | $as_echo_n "(cached) " >&6 | |
3972 | else | |
3973 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3974 | ac_c_werror_flag=yes | |
3975 | ac_cv_prog_cc_g=no | |
3976 | CFLAGS="-g" | |
3977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3978 | /* end confdefs.h. */ | |
3979 | ||
3980 | int | |
3981 | main () | |
3982 | { | |
3983 | ||
3984 | ; | |
3985 | return 0; | |
3986 | } | |
3987 | _ACEOF | |
3988 | if ac_fn_c_try_compile "$LINENO"; then : | |
3989 | ac_cv_prog_cc_g=yes | |
3990 | else | |
3991 | CFLAGS="" | |
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3993 | /* end confdefs.h. */ | |
3994 | ||
3995 | int | |
3996 | main () | |
3997 | { | |
3998 | ||
3999 | ; | |
4000 | return 0; | |
4001 | } | |
4002 | _ACEOF | |
4003 | if ac_fn_c_try_compile "$LINENO"; then : | |
4004 | ||
4005 | else | |
4006 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4007 | CFLAGS="-g" | |
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4009 | /* end confdefs.h. */ | |
4010 | ||
4011 | int | |
4012 | main () | |
4013 | { | |
4014 | ||
4015 | ; | |
4016 | return 0; | |
4017 | } | |
4018 | _ACEOF | |
4019 | if ac_fn_c_try_compile "$LINENO"; then : | |
4020 | ac_cv_prog_cc_g=yes | |
4021 | fi | |
4022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4023 | fi | |
4024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4025 | fi | |
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4027 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4028 | fi | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4030 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4031 | if test "$ac_test_CFLAGS" = set; then | |
4032 | CFLAGS=$ac_save_CFLAGS | |
4033 | elif test $ac_cv_prog_cc_g = yes; then | |
4034 | if test "$GCC" = yes; then | |
4035 | CFLAGS="-g -O2" | |
4036 | else | |
4037 | CFLAGS="-g" | |
4038 | fi | |
4039 | else | |
4040 | if test "$GCC" = yes; then | |
4041 | CFLAGS="-O2" | |
4042 | else | |
4043 | CFLAGS= | |
4044 | fi | |
4045 | fi | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4047 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4048 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4049 | $as_echo_n "(cached) " >&6 | |
4050 | else | |
4051 | ac_cv_prog_cc_c89=no | |
4052 | ac_save_CC=$CC | |
4053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4054 | /* end confdefs.h. */ | |
4055 | #include <stdarg.h> | |
4056 | #include <stdio.h> | |
4057 | #include <sys/types.h> | |
4058 | #include <sys/stat.h> | |
4059 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4060 | struct buf { int x; }; | |
4061 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4062 | static char *e (p, i) | |
4063 | char **p; | |
4064 | int i; | |
4065 | { | |
4066 | return p[i]; | |
4067 | } | |
4068 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4069 | { | |
4070 | char *s; | |
4071 | va_list v; | |
4072 | va_start (v,p); | |
4073 | s = g (p, va_arg (v,int)); | |
4074 | va_end (v); | |
4075 | return s; | |
4076 | } | |
4077 | ||
4078 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4079 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4080 | These don't provoke an error unfortunately, instead are silently treated | |
4081 | as 'x'. The following induces an error, until -std is added to get | |
4082 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4083 | array size at least. It's necessary to write '\x00'==0 to get something | |
4084 | that's true only with -std. */ | |
4085 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4086 | ||
4087 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4088 | inside strings and character constants. */ | |
4089 | #define FOO(x) 'x' | |
4090 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4091 | ||
4092 | int test (int i, double x); | |
4093 | struct s1 {int (*f) (int a);}; | |
4094 | struct s2 {int (*f) (double a);}; | |
4095 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4096 | int argc; | |
4097 | char **argv; | |
4098 | int | |
4099 | main () | |
4100 | { | |
4101 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4102 | ; | |
4103 | return 0; | |
4104 | } | |
4105 | _ACEOF | |
4106 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4107 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4108 | do | |
4109 | CC="$ac_save_CC $ac_arg" | |
4110 | if ac_fn_c_try_compile "$LINENO"; then : | |
4111 | ac_cv_prog_cc_c89=$ac_arg | |
4112 | fi | |
4113 | rm -f core conftest.err conftest.$ac_objext | |
4114 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4115 | done | |
4116 | rm -f conftest.$ac_ext | |
4117 | CC=$ac_save_CC | |
4118 | ||
4119 | fi | |
4120 | # AC_CACHE_VAL | |
4121 | case "x$ac_cv_prog_cc_c89" in | |
4122 | x) | |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4124 | $as_echo "none needed" >&6; } ;; | |
4125 | xno) | |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4127 | $as_echo "unsupported" >&6; } ;; | |
4128 | *) | |
4129 | CC="$CC $ac_cv_prog_cc_c89" | |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4131 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4132 | esac | |
4133 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4134 | ||
4135 | fi | |
4136 | ||
4137 | ac_ext=c | |
4138 | ac_cpp='$CPP $CPPFLAGS' | |
4139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4142 | ||
4143 | ||
4144 | ||
4145 | ||
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 | |
4147 | $as_echo_n "checking for strerror in -lcposix... " >&6; } | |
4148 | if ${ac_cv_lib_cposix_strerror+:} false; then : | |
4149 | $as_echo_n "(cached) " >&6 | |
4150 | else | |
4151 | ac_check_lib_save_LIBS=$LIBS | |
4152 | LIBS="-lcposix $LIBS" | |
4153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4154 | /* end confdefs.h. */ | |
4155 | ||
4156 | /* Override any GCC internal prototype to avoid an error. | |
4157 | Use char because int might match the return type of a GCC | |
4158 | builtin and then its argument prototype would still apply. */ | |
4159 | #ifdef __cplusplus | |
4160 | extern "C" | |
4161 | #endif | |
4162 | char strerror (); | |
4163 | int | |
4164 | main () | |
4165 | { | |
4166 | return strerror (); | |
4167 | ; | |
4168 | return 0; | |
4169 | } | |
4170 | _ACEOF | |
4171 | if ac_fn_c_try_link "$LINENO"; then : | |
4172 | ac_cv_lib_cposix_strerror=yes | |
4173 | else | |
4174 | ac_cv_lib_cposix_strerror=no | |
4175 | fi | |
4176 | rm -f core conftest.err conftest.$ac_objext \ | |
4177 | conftest$ac_exeext conftest.$ac_ext | |
4178 | LIBS=$ac_check_lib_save_LIBS | |
4179 | fi | |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 | |
4181 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } | |
4182 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : | |
4183 | LIBS="$LIBS -lcposix" | |
4184 | fi | |
4185 | ||
4186 | ||
4187 | ||
4188 | ac_ext=c | |
4189 | ac_cpp='$CPP $CPPFLAGS' | |
4190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4194 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4195 | # On Suns, sometimes $CPP names a directory. | |
4196 | if test -n "$CPP" && test -d "$CPP"; then | |
4197 | CPP= | |
4198 | fi | |
4199 | if test -z "$CPP"; then | |
4200 | if ${ac_cv_prog_CPP+:} false; then : | |
4201 | $as_echo_n "(cached) " >&6 | |
4202 | else | |
4203 | # Double quotes because CPP needs to be expanded | |
4204 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4205 | do | |
4206 | ac_preproc_ok=false | |
4207 | for ac_c_preproc_warn_flag in '' yes | |
4208 | do | |
4209 | # Use a header file that comes with gcc, so configuring glibc | |
4210 | # with a fresh cross-compiler works. | |
4211 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4212 | # <limits.h> exists even on freestanding compilers. | |
4213 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4214 | # not just through cpp. "Syntax error" is here to catch this case. | |
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4216 | /* end confdefs.h. */ | |
4217 | @%:@ifdef __STDC__ | |
4218 | @%:@ include <limits.h> | |
4219 | @%:@else | |
4220 | @%:@ include <assert.h> | |
4221 | @%:@endif | |
4222 | Syntax error | |
4223 | _ACEOF | |
4224 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4225 | ||
4226 | else | |
4227 | # Broken: fails on valid input. | |
4228 | continue | |
4229 | fi | |
4230 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4231 | ||
4232 | # OK, works on sane cases. Now check whether nonexistent headers | |
4233 | # can be detected and how. | |
4234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4235 | /* end confdefs.h. */ | |
4236 | @%:@include <ac_nonexistent.h> | |
4237 | _ACEOF | |
4238 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4239 | # Broken: success on invalid input. | |
4240 | continue | |
4241 | else | |
4242 | # Passes both tests. | |
4243 | ac_preproc_ok=: | |
4244 | break | |
4245 | fi | |
4246 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4247 | ||
4248 | done | |
4249 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4250 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4251 | if $ac_preproc_ok; then : | |
4252 | break | |
4253 | fi | |
4254 | ||
4255 | done | |
4256 | ac_cv_prog_CPP=$CPP | |
4257 | ||
4258 | fi | |
4259 | CPP=$ac_cv_prog_CPP | |
4260 | else | |
4261 | ac_cv_prog_CPP=$CPP | |
4262 | fi | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4264 | $as_echo "$CPP" >&6; } | |
4265 | ac_preproc_ok=false | |
4266 | for ac_c_preproc_warn_flag in '' yes | |
4267 | do | |
4268 | # Use a header file that comes with gcc, so configuring glibc | |
4269 | # with a fresh cross-compiler works. | |
4270 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4271 | # <limits.h> exists even on freestanding compilers. | |
4272 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4273 | # not just through cpp. "Syntax error" is here to catch this case. | |
4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4275 | /* end confdefs.h. */ | |
4276 | @%:@ifdef __STDC__ | |
4277 | @%:@ include <limits.h> | |
4278 | @%:@else | |
4279 | @%:@ include <assert.h> | |
4280 | @%:@endif | |
4281 | Syntax error | |
4282 | _ACEOF | |
4283 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4284 | ||
4285 | else | |
4286 | # Broken: fails on valid input. | |
4287 | continue | |
4288 | fi | |
4289 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4290 | ||
4291 | # OK, works on sane cases. Now check whether nonexistent headers | |
4292 | # can be detected and how. | |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4294 | /* end confdefs.h. */ | |
4295 | @%:@include <ac_nonexistent.h> | |
4296 | _ACEOF | |
4297 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4298 | # Broken: success on invalid input. | |
4299 | continue | |
4300 | else | |
4301 | # Passes both tests. | |
4302 | ac_preproc_ok=: | |
4303 | break | |
4304 | fi | |
4305 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4306 | ||
4307 | done | |
4308 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4309 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4310 | if $ac_preproc_ok; then : | |
4311 | ||
4312 | else | |
4313 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4315 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4316 | See \`config.log' for more details" "$LINENO" 5; } | |
4317 | fi | |
4318 | ||
4319 | ac_ext=c | |
4320 | ac_cpp='$CPP $CPPFLAGS' | |
4321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4324 | ||
4325 | ||
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4327 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4328 | if ${ac_cv_path_GREP+:} false; then : | |
4329 | $as_echo_n "(cached) " >&6 | |
4330 | else | |
4331 | if test -z "$GREP"; then | |
4332 | ac_path_GREP_found=false | |
4333 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4335 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4336 | do | |
4337 | IFS=$as_save_IFS | |
4338 | test -z "$as_dir" && as_dir=. | |
4339 | for ac_prog in grep ggrep; do | |
4340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4341 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4342 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4343 | # Check for GNU ac_path_GREP and select it if it is found. | |
4344 | # Check for GNU $ac_path_GREP | |
4345 | case `"$ac_path_GREP" --version 2>&1` in | |
4346 | *GNU*) | |
4347 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4348 | *) | |
4349 | ac_count=0 | |
4350 | $as_echo_n 0123456789 >"conftest.in" | |
4351 | while : | |
4352 | do | |
4353 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4354 | mv "conftest.tmp" "conftest.in" | |
4355 | cp "conftest.in" "conftest.nl" | |
4356 | $as_echo 'GREP' >> "conftest.nl" | |
4357 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4358 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4359 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4360 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4361 | # Best one so far, save it but keep looking for a better one | |
4362 | ac_cv_path_GREP="$ac_path_GREP" | |
4363 | ac_path_GREP_max=$ac_count | |
4364 | fi | |
4365 | # 10*(2^10) chars as input seems more than enough | |
4366 | test $ac_count -gt 10 && break | |
4367 | done | |
4368 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4369 | esac | |
4370 | ||
4371 | $ac_path_GREP_found && break 3 | |
4372 | done | |
4373 | done | |
4374 | done | |
4375 | IFS=$as_save_IFS | |
4376 | if test -z "$ac_cv_path_GREP"; then | |
4377 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4378 | fi | |
4379 | else | |
4380 | ac_cv_path_GREP=$GREP | |
4381 | fi | |
4382 | ||
4383 | fi | |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4385 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4386 | GREP="$ac_cv_path_GREP" | |
4387 | ||
4388 | ||
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4390 | $as_echo_n "checking for egrep... " >&6; } | |
4391 | if ${ac_cv_path_EGREP+:} false; then : | |
4392 | $as_echo_n "(cached) " >&6 | |
4393 | else | |
4394 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4395 | then ac_cv_path_EGREP="$GREP -E" | |
4396 | else | |
4397 | if test -z "$EGREP"; then | |
4398 | ac_path_EGREP_found=false | |
4399 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4401 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4402 | do | |
4403 | IFS=$as_save_IFS | |
4404 | test -z "$as_dir" && as_dir=. | |
4405 | for ac_prog in egrep; do | |
4406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4407 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4408 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4409 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4410 | # Check for GNU $ac_path_EGREP | |
4411 | case `"$ac_path_EGREP" --version 2>&1` in | |
4412 | *GNU*) | |
4413 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4414 | *) | |
4415 | ac_count=0 | |
4416 | $as_echo_n 0123456789 >"conftest.in" | |
4417 | while : | |
4418 | do | |
4419 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4420 | mv "conftest.tmp" "conftest.in" | |
4421 | cp "conftest.in" "conftest.nl" | |
4422 | $as_echo 'EGREP' >> "conftest.nl" | |
4423 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4424 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4425 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4426 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4427 | # Best one so far, save it but keep looking for a better one | |
4428 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4429 | ac_path_EGREP_max=$ac_count | |
4430 | fi | |
4431 | # 10*(2^10) chars as input seems more than enough | |
4432 | test $ac_count -gt 10 && break | |
4433 | done | |
4434 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4435 | esac | |
4436 | ||
4437 | $ac_path_EGREP_found && break 3 | |
4438 | done | |
4439 | done | |
4440 | done | |
4441 | IFS=$as_save_IFS | |
4442 | if test -z "$ac_cv_path_EGREP"; then | |
4443 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4444 | fi | |
4445 | else | |
4446 | ac_cv_path_EGREP=$EGREP | |
4447 | fi | |
4448 | ||
4449 | fi | |
4450 | fi | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4452 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4453 | EGREP="$ac_cv_path_EGREP" | |
4454 | ||
4455 | ||
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4457 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4458 | if ${ac_cv_header_stdc+:} false; then : | |
4459 | $as_echo_n "(cached) " >&6 | |
4460 | else | |
4461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4462 | /* end confdefs.h. */ | |
4463 | #include <stdlib.h> | |
4464 | #include <stdarg.h> | |
4465 | #include <string.h> | |
4466 | #include <float.h> | |
4467 | ||
4468 | int | |
4469 | main () | |
4470 | { | |
4471 | ||
4472 | ; | |
4473 | return 0; | |
4474 | } | |
4475 | _ACEOF | |
4476 | if ac_fn_c_try_compile "$LINENO"; then : | |
4477 | ac_cv_header_stdc=yes | |
4478 | else | |
4479 | ac_cv_header_stdc=no | |
4480 | fi | |
4481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4482 | ||
4483 | if test $ac_cv_header_stdc = yes; then | |
4484 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4486 | /* end confdefs.h. */ | |
4487 | #include <string.h> | |
4488 | ||
4489 | _ACEOF | |
4490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4491 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4492 | ||
4493 | else | |
4494 | ac_cv_header_stdc=no | |
4495 | fi | |
4496 | rm -f conftest* | |
4497 | ||
4498 | fi | |
4499 | ||
4500 | if test $ac_cv_header_stdc = yes; then | |
4501 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4503 | /* end confdefs.h. */ | |
4504 | #include <stdlib.h> | |
4505 | ||
4506 | _ACEOF | |
4507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4508 | $EGREP "free" >/dev/null 2>&1; then : | |
4509 | ||
4510 | else | |
4511 | ac_cv_header_stdc=no | |
4512 | fi | |
4513 | rm -f conftest* | |
4514 | ||
4515 | fi | |
4516 | ||
4517 | if test $ac_cv_header_stdc = yes; then | |
4518 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4519 | if test "$cross_compiling" = yes; then : | |
4520 | : | |
4521 | else | |
4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4523 | /* end confdefs.h. */ | |
4524 | #include <ctype.h> | |
4525 | #include <stdlib.h> | |
4526 | #if ((' ' & 0x0FF) == 0x020) | |
4527 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4528 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4529 | #else | |
4530 | # define ISLOWER(c) \ | |
4531 | (('a' <= (c) && (c) <= 'i') \ | |
4532 | || ('j' <= (c) && (c) <= 'r') \ | |
4533 | || ('s' <= (c) && (c) <= 'z')) | |
4534 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4535 | #endif | |
4536 | ||
4537 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4538 | int | |
4539 | main () | |
4540 | { | |
4541 | int i; | |
4542 | for (i = 0; i < 256; i++) | |
4543 | if (XOR (islower (i), ISLOWER (i)) | |
4544 | || toupper (i) != TOUPPER (i)) | |
4545 | return 2; | |
4546 | return 0; | |
4547 | } | |
4548 | _ACEOF | |
4549 | if ac_fn_c_try_run "$LINENO"; then : | |
4550 | ||
4551 | else | |
4552 | ac_cv_header_stdc=no | |
4553 | fi | |
4554 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4555 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4556 | fi | |
4557 | ||
4558 | fi | |
4559 | fi | |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4561 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4562 | if test $ac_cv_header_stdc = yes; then | |
4563 | ||
4564 | $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h | |
4565 | ||
4566 | fi | |
4567 | ||
4568 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4569 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4570 | inttypes.h stdint.h unistd.h | |
4571 | do : | |
4572 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4573 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4574 | " | |
4575 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4576 | cat >>confdefs.h <<_ACEOF | |
4577 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4578 | _ACEOF | |
4579 | ||
4580 | fi | |
4581 | ||
4582 | done | |
4583 | ||
4584 | ||
4585 | ||
4586 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4587 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4588 | MINIX=yes | |
4589 | else | |
4590 | MINIX= | |
4591 | fi | |
4592 | ||
4593 | ||
4594 | if test "$MINIX" = yes; then | |
4595 | ||
4596 | $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h | |
4597 | ||
4598 | ||
4599 | $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h | |
4600 | ||
4601 | ||
4602 | $as_echo "@%:@define _MINIX 1" >>confdefs.h | |
4603 | ||
4604 | fi | |
4605 | ||
4606 | ||
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4608 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4609 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4610 | $as_echo_n "(cached) " >&6 | |
4611 | else | |
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4613 | /* end confdefs.h. */ | |
4614 | ||
4615 | # define __EXTENSIONS__ 1 | |
4616 | $ac_includes_default | |
4617 | int | |
4618 | main () | |
4619 | { | |
4620 | ||
4621 | ; | |
4622 | return 0; | |
4623 | } | |
4624 | _ACEOF | |
4625 | if ac_fn_c_try_compile "$LINENO"; then : | |
4626 | ac_cv_safe_to_define___extensions__=yes | |
4627 | else | |
4628 | ac_cv_safe_to_define___extensions__=no | |
4629 | fi | |
4630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4631 | fi | |
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4633 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4634 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4635 | $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h | |
4636 | ||
4637 | $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h | |
4638 | ||
4639 | $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h | |
4640 | ||
4641 | $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4642 | ||
4643 | $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h | |
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | @%:@ Check whether --enable-largefile was given. | |
4649 | if test "${enable_largefile+set}" = set; then : | |
4650 | enableval=$enable_largefile; | |
4651 | fi | |
4652 | ||
4653 | if test "$enable_largefile" != no; then | |
4654 | ||
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4656 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
4657 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
4658 | $as_echo_n "(cached) " >&6 | |
4659 | else | |
4660 | ac_cv_sys_largefile_CC=no | |
4661 | if test "$GCC" != yes; then | |
4662 | ac_save_CC=$CC | |
4663 | while :; do | |
4664 | # IRIX 6.2 and later do not support large files by default, | |
4665 | # so use the C compiler's -n32 option if that helps. | |
4666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4667 | /* end confdefs.h. */ | |
4668 | @%:@include <sys/types.h> | |
4669 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4670 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4671 | since some C++ compilers masquerading as C compilers | |
4672 | incorrectly reject 9223372036854775807. */ | |
4673 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4674 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4675 | && LARGE_OFF_T % 2147483647 == 1) | |
4676 | ? 1 : -1]; | |
4677 | int | |
4678 | main () | |
4679 | { | |
4680 | ||
4681 | ; | |
4682 | return 0; | |
4683 | } | |
4684 | _ACEOF | |
4685 | if ac_fn_c_try_compile "$LINENO"; then : | |
4686 | break | |
4687 | fi | |
4688 | rm -f core conftest.err conftest.$ac_objext | |
4689 | CC="$CC -n32" | |
4690 | if ac_fn_c_try_compile "$LINENO"; then : | |
4691 | ac_cv_sys_largefile_CC=' -n32'; break | |
4692 | fi | |
4693 | rm -f core conftest.err conftest.$ac_objext | |
4694 | break | |
4695 | done | |
4696 | CC=$ac_save_CC | |
4697 | rm -f conftest.$ac_ext | |
4698 | fi | |
4699 | fi | |
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4701 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4702 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4703 | CC=$CC$ac_cv_sys_largefile_CC | |
4704 | fi | |
4705 | ||
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4707 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
4708 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
4709 | $as_echo_n "(cached) " >&6 | |
4710 | else | |
4711 | while :; do | |
4712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4713 | /* end confdefs.h. */ | |
4714 | @%:@include <sys/types.h> | |
4715 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4716 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4717 | since some C++ compilers masquerading as C compilers | |
4718 | incorrectly reject 9223372036854775807. */ | |
4719 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4720 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4721 | && LARGE_OFF_T % 2147483647 == 1) | |
4722 | ? 1 : -1]; | |
4723 | int | |
4724 | main () | |
4725 | { | |
4726 | ||
4727 | ; | |
4728 | return 0; | |
4729 | } | |
4730 | _ACEOF | |
4731 | if ac_fn_c_try_compile "$LINENO"; then : | |
4732 | ac_cv_sys_file_offset_bits=no; break | |
4733 | fi | |
4734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4736 | /* end confdefs.h. */ | |
4737 | @%:@define _FILE_OFFSET_BITS 64 | |
4738 | @%:@include <sys/types.h> | |
4739 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4740 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4741 | since some C++ compilers masquerading as C compilers | |
4742 | incorrectly reject 9223372036854775807. */ | |
4743 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4744 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4745 | && LARGE_OFF_T % 2147483647 == 1) | |
4746 | ? 1 : -1]; | |
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | ||
4751 | ; | |
4752 | return 0; | |
4753 | } | |
4754 | _ACEOF | |
4755 | if ac_fn_c_try_compile "$LINENO"; then : | |
4756 | ac_cv_sys_file_offset_bits=64; break | |
4757 | fi | |
4758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4759 | ac_cv_sys_file_offset_bits=unknown | |
4760 | break | |
4761 | done | |
4762 | fi | |
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4764 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4765 | case $ac_cv_sys_file_offset_bits in #( | |
4766 | no | unknown) ;; | |
4767 | *) | |
4768 | cat >>confdefs.h <<_ACEOF | |
4769 | @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4770 | _ACEOF | |
4771 | ;; | |
4772 | esac | |
4773 | rm -rf conftest* | |
4774 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4776 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
4777 | if ${ac_cv_sys_large_files+:} false; then : | |
4778 | $as_echo_n "(cached) " >&6 | |
4779 | else | |
4780 | while :; do | |
4781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4782 | /* end confdefs.h. */ | |
4783 | @%:@include <sys/types.h> | |
4784 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4785 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4786 | since some C++ compilers masquerading as C compilers | |
4787 | incorrectly reject 9223372036854775807. */ | |
4788 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4789 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4790 | && LARGE_OFF_T % 2147483647 == 1) | |
4791 | ? 1 : -1]; | |
4792 | int | |
4793 | main () | |
4794 | { | |
4795 | ||
4796 | ; | |
4797 | return 0; | |
4798 | } | |
4799 | _ACEOF | |
4800 | if ac_fn_c_try_compile "$LINENO"; then : | |
4801 | ac_cv_sys_large_files=no; break | |
4802 | fi | |
4803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4805 | /* end confdefs.h. */ | |
4806 | @%:@define _LARGE_FILES 1 | |
4807 | @%:@include <sys/types.h> | |
4808 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4809 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4810 | since some C++ compilers masquerading as C compilers | |
4811 | incorrectly reject 9223372036854775807. */ | |
4812 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4813 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4814 | && LARGE_OFF_T % 2147483647 == 1) | |
4815 | ? 1 : -1]; | |
4816 | int | |
4817 | main () | |
4818 | { | |
4819 | ||
4820 | ; | |
4821 | return 0; | |
4822 | } | |
4823 | _ACEOF | |
4824 | if ac_fn_c_try_compile "$LINENO"; then : | |
4825 | ac_cv_sys_large_files=1; break | |
4826 | fi | |
4827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4828 | ac_cv_sys_large_files=unknown | |
4829 | break | |
4830 | done | |
4831 | fi | |
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4833 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4834 | case $ac_cv_sys_large_files in #( | |
4835 | no | unknown) ;; | |
4836 | *) | |
4837 | cat >>confdefs.h <<_ACEOF | |
4838 | @%:@define _LARGE_FILES $ac_cv_sys_large_files | |
4839 | _ACEOF | |
4840 | ;; | |
4841 | esac | |
4842 | rm -rf conftest* | |
4843 | fi | |
4844 | fi | |
4845 | ||
4846 | ||
4847 | ||
4848 | SIGNAMES_O= | |
4849 | SIGNAMES_H=lsignames.h | |
4850 | ||
4851 | ||
4852 | ||
4853 | CROSS_COMPILE= | |
4854 | if test "x$cross_compiling" = "xyes"; then | |
4855 | case "${host}" in | |
4856 | *-cygwin*) | |
4857 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
4858 | ;; | |
4859 | *-mingw*) | |
4860 | cross_cache=${srcdir}/cross-build/cygwin32.cache | |
4861 | ;; | |
4862 | i[3456]86-*-beos*) | |
4863 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
4864 | ;; | |
4865 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
4866 | ;; | |
4867 | esac | |
4868 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
4869 | echo "loading cross-build cache file ${cross_cache}" | |
4870 | . ${cross_cache} | |
4871 | fi | |
4872 | unset cross_cache | |
4873 | SIGNAMES_O='signames.o' | |
4874 | CROSS_COMPILE='-DCROSS_COMPILING' | |
4875 | ||
4876 | fi | |
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | if test -z "$CFLAGS"; then | |
4882 | AUTO_CFLAGS="-g ${GCC+-O2}" | |
4883 | AUTO_LDFLAGS="-g ${GCC+-O2}" | |
4884 | else | |
4885 | AUTO_CFLAGS= AUTO_LDFLAGS= | |
4886 | fi | |
4887 | ||
4888 | CFLAGS=${CFLAGS-"$AUTO_CFLAGS"} | |
4889 | # LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX | |
4890 | ||
4891 | if test "$opt_profiling" = "yes"; then | |
4892 | PROFILE_FLAGS=-pg | |
4893 | case "$host_os" in | |
4894 | solaris2*) ;; | |
4895 | *) opt_static_link=yes ;; | |
4896 | esac | |
4897 | DEBUG= MALLOC_DEBUG= | |
4898 | fi | |
4899 | ||
4900 | prefer_shared=yes | |
4901 | prefer_static=no | |
4902 | ||
4903 | if test "$opt_static_link" = yes; then | |
4904 | prefer_static=yes | |
4905 | prefer_shared=no | |
4906 | # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 | |
4907 | if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then | |
4908 | STATIC_LD="-static" | |
4909 | case "$host_os" in | |
4910 | solaris2*) ;; | |
4911 | *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental | |
4912 | esac | |
4913 | fi | |
4914 | fi | |
4915 | ||
4916 | # set the appropriate make variables for building the "build tools" | |
4917 | # modify defaults based on whether or not we are cross compiling, since the | |
4918 | # options for the target host may not be appropriate for the build host | |
4919 | if test "X$cross_compiling" = "Xno"; then | |
4920 | CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'} | |
4921 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)' | |
4922 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'} | |
4923 | # CFLAGS set above to default value if not passed in environment | |
4924 | CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'} | |
4925 | LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'} | |
4926 | else | |
4927 | CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"} | |
4928 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""} | |
4929 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""} | |
4930 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"} | |
4931 | LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""} | |
4932 | fi | |
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | if test $ac_cv_c_compiler_gnu = yes; then | |
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4947 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4948 | if ${ac_cv_prog_gcc_traditional+:} false; then : | |
4949 | $as_echo_n "(cached) " >&6 | |
4950 | else | |
4951 | ac_pattern="Autoconf.*'x'" | |
4952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4953 | /* end confdefs.h. */ | |
4954 | #include <sgtty.h> | |
4955 | Autoconf TIOCGETP | |
4956 | _ACEOF | |
4957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4958 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4959 | ac_cv_prog_gcc_traditional=yes | |
4960 | else | |
4961 | ac_cv_prog_gcc_traditional=no | |
4962 | fi | |
4963 | rm -f conftest* | |
4964 | ||
4965 | ||
4966 | if test $ac_cv_prog_gcc_traditional = no; then | |
4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4968 | /* end confdefs.h. */ | |
4969 | #include <termio.h> | |
4970 | Autoconf TCGETA | |
4971 | _ACEOF | |
4972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4973 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4974 | ac_cv_prog_gcc_traditional=yes | |
4975 | fi | |
4976 | rm -f conftest* | |
4977 | ||
4978 | fi | |
4979 | fi | |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4981 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4982 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4983 | CC="$CC -traditional" | |
4984 | fi | |
4985 | fi | |
4986 | ||
4987 | ||
4988 | ||
4989 | if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no" | |
4990 | then | |
4991 | # If the user specified --with-installed-readline=PREFIX and PREFIX | |
4992 | # is not `yes', set ac_cv_rl_prefix to PREFIX | |
4993 | test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline | |
4994 | ||
4995 | ||
4996 | if test "X$bash_cv_termcap_lib" = "X"; then | |
4997 | _bash_needmsg=yes | |
4998 | else | |
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5000 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5001 | _bash_needmsg= | |
5002 | fi | |
5003 | if ${bash_cv_termcap_lib+:} false; then : | |
5004 | $as_echo_n "(cached) " >&6 | |
5005 | else | |
5006 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
5007 | if test "x$ac_cv_func_tgetent" = xyes; then : | |
5008 | bash_cv_termcap_lib=libc | |
5009 | else | |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
5011 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
5012 | if ${ac_cv_lib_termcap_tgetent+:} false; then : | |
5013 | $as_echo_n "(cached) " >&6 | |
5014 | else | |
5015 | ac_check_lib_save_LIBS=$LIBS | |
5016 | LIBS="-ltermcap $LIBS" | |
5017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5018 | /* end confdefs.h. */ | |
5019 | ||
5020 | /* Override any GCC internal prototype to avoid an error. | |
5021 | Use char because int might match the return type of a GCC | |
5022 | builtin and then its argument prototype would still apply. */ | |
5023 | #ifdef __cplusplus | |
5024 | extern "C" | |
5025 | #endif | |
5026 | char tgetent (); | |
5027 | int | |
5028 | main () | |
5029 | { | |
5030 | return tgetent (); | |
5031 | ; | |
5032 | return 0; | |
5033 | } | |
5034 | _ACEOF | |
5035 | if ac_fn_c_try_link "$LINENO"; then : | |
5036 | ac_cv_lib_termcap_tgetent=yes | |
5037 | else | |
5038 | ac_cv_lib_termcap_tgetent=no | |
5039 | fi | |
5040 | rm -f core conftest.err conftest.$ac_objext \ | |
5041 | conftest$ac_exeext conftest.$ac_ext | |
5042 | LIBS=$ac_check_lib_save_LIBS | |
5043 | fi | |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 | |
5045 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5046 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : | |
5047 | bash_cv_termcap_lib=libtermcap | |
5048 | else | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 | |
5050 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
5051 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : | |
5052 | $as_echo_n "(cached) " >&6 | |
5053 | else | |
5054 | ac_check_lib_save_LIBS=$LIBS | |
5055 | LIBS="-ltinfo $LIBS" | |
5056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5057 | /* end confdefs.h. */ | |
5058 | ||
5059 | /* Override any GCC internal prototype to avoid an error. | |
5060 | Use char because int might match the return type of a GCC | |
5061 | builtin and then its argument prototype would still apply. */ | |
5062 | #ifdef __cplusplus | |
5063 | extern "C" | |
5064 | #endif | |
5065 | char tgetent (); | |
5066 | int | |
5067 | main () | |
5068 | { | |
5069 | return tgetent (); | |
5070 | ; | |
5071 | return 0; | |
5072 | } | |
5073 | _ACEOF | |
5074 | if ac_fn_c_try_link "$LINENO"; then : | |
5075 | ac_cv_lib_tinfo_tgetent=yes | |
5076 | else | |
5077 | ac_cv_lib_tinfo_tgetent=no | |
5078 | fi | |
5079 | rm -f core conftest.err conftest.$ac_objext \ | |
5080 | conftest$ac_exeext conftest.$ac_ext | |
5081 | LIBS=$ac_check_lib_save_LIBS | |
5082 | fi | |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 | |
5084 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5085 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : | |
5086 | bash_cv_termcap_lib=libtinfo | |
5087 | else | |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 | |
5089 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
5090 | if ${ac_cv_lib_curses_tgetent+:} false; then : | |
5091 | $as_echo_n "(cached) " >&6 | |
5092 | else | |
5093 | ac_check_lib_save_LIBS=$LIBS | |
5094 | LIBS="-lcurses $LIBS" | |
5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5096 | /* end confdefs.h. */ | |
5097 | ||
5098 | /* Override any GCC internal prototype to avoid an error. | |
5099 | Use char because int might match the return type of a GCC | |
5100 | builtin and then its argument prototype would still apply. */ | |
5101 | #ifdef __cplusplus | |
5102 | extern "C" | |
5103 | #endif | |
5104 | char tgetent (); | |
5105 | int | |
5106 | main () | |
5107 | { | |
5108 | return tgetent (); | |
5109 | ; | |
5110 | return 0; | |
5111 | } | |
5112 | _ACEOF | |
5113 | if ac_fn_c_try_link "$LINENO"; then : | |
5114 | ac_cv_lib_curses_tgetent=yes | |
5115 | else | |
5116 | ac_cv_lib_curses_tgetent=no | |
5117 | fi | |
5118 | rm -f core conftest.err conftest.$ac_objext \ | |
5119 | conftest$ac_exeext conftest.$ac_ext | |
5120 | LIBS=$ac_check_lib_save_LIBS | |
5121 | fi | |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
5123 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
5124 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : | |
5125 | bash_cv_termcap_lib=libcurses | |
5126 | else | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
5128 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
5129 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : | |
5130 | $as_echo_n "(cached) " >&6 | |
5131 | else | |
5132 | ac_check_lib_save_LIBS=$LIBS | |
5133 | LIBS="-lncurses $LIBS" | |
5134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5135 | /* end confdefs.h. */ | |
5136 | ||
5137 | /* Override any GCC internal prototype to avoid an error. | |
5138 | Use char because int might match the return type of a GCC | |
5139 | builtin and then its argument prototype would still apply. */ | |
5140 | #ifdef __cplusplus | |
5141 | extern "C" | |
5142 | #endif | |
5143 | char tgetent (); | |
5144 | int | |
5145 | main () | |
5146 | { | |
5147 | return tgetent (); | |
5148 | ; | |
5149 | return 0; | |
5150 | } | |
5151 | _ACEOF | |
5152 | if ac_fn_c_try_link "$LINENO"; then : | |
5153 | ac_cv_lib_ncurses_tgetent=yes | |
5154 | else | |
5155 | ac_cv_lib_ncurses_tgetent=no | |
5156 | fi | |
5157 | rm -f core conftest.err conftest.$ac_objext \ | |
5158 | conftest$ac_exeext conftest.$ac_ext | |
5159 | LIBS=$ac_check_lib_save_LIBS | |
5160 | fi | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
5162 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5163 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : | |
5164 | bash_cv_termcap_lib=libncurses | |
5165 | else | |
5166 | bash_cv_termcap_lib=gnutermcap | |
5167 | fi | |
5168 | ||
5169 | fi | |
5170 | ||
5171 | fi | |
5172 | ||
5173 | fi | |
5174 | ||
5175 | fi | |
5176 | ||
5177 | fi | |
5178 | ||
5179 | if test "X$_bash_needmsg" = "Xyes"; then | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5181 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5182 | fi | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
5184 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
5185 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5186 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5187 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5188 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5189 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5190 | TERMCAP_LIB=-ltermcap | |
5191 | TERMCAP_DEP= | |
5192 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5193 | TERMCAP_LIB=-ltinfo | |
5194 | TERMCAP_DEP= | |
5195 | elif test $bash_cv_termcap_lib = libncurses; then | |
5196 | TERMCAP_LIB=-lncurses | |
5197 | TERMCAP_DEP= | |
5198 | elif test $bash_cv_termcap_lib = libc; then | |
5199 | TERMCAP_LIB= | |
5200 | TERMCAP_DEP= | |
5201 | else | |
5202 | TERMCAP_LIB=-lcurses | |
5203 | TERMCAP_DEP= | |
5204 | fi | |
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5 | |
5210 | $as_echo_n "checking version of installed readline library... " >&6; } | |
5211 | ||
5212 | # What a pain in the ass this is. | |
5213 | ||
5214 | # save cpp and ld options | |
5215 | _save_CFLAGS="$CFLAGS" | |
5216 | _save_LDFLAGS="$LDFLAGS" | |
5217 | _save_LIBS="$LIBS" | |
5218 | ||
5219 | # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This | |
5220 | # allows the caller to do something like $_rl_prefix=$withval if the user | |
5221 | # specifies --with-installed-readline=PREFIX as an argument to configure | |
5222 | ||
5223 | if test -z "$ac_cv_rl_prefix"; then | |
5224 | test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} | |
5225 | fi | |
5226 | ||
5227 | eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include | |
5228 | eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib | |
5229 | ||
5230 | LIBS="$LIBS -lreadline ${TERMCAP_LIB}" | |
5231 | CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" | |
5232 | LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" | |
5233 | ||
5234 | if ${ac_cv_rl_version+:} false; then : | |
5235 | $as_echo_n "(cached) " >&6 | |
5236 | else | |
5237 | if test "$cross_compiling" = yes; then : | |
5238 | ac_cv_rl_version='4.2' | |
5239 | else | |
5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5241 | /* end confdefs.h. */ | |
5242 | ||
5243 | #include <stdio.h> | |
5244 | #include <readline/readline.h> | |
5245 | ||
5246 | extern int rl_gnu_readline_p; | |
5247 | ||
5248 | main() | |
5249 | { | |
5250 | FILE *fp; | |
5251 | fp = fopen("conftest.rlv", "w"); | |
5252 | if (fp == 0) | |
5253 | exit(1); | |
5254 | if (rl_gnu_readline_p != 1) | |
5255 | fprintf(fp, "0.0\n"); | |
5256 | else | |
5257 | fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); | |
5258 | fclose(fp); | |
5259 | exit(0); | |
5260 | } | |
5261 | ||
5262 | _ACEOF | |
5263 | if ac_fn_c_try_run "$LINENO"; then : | |
5264 | ac_cv_rl_version=`cat conftest.rlv` | |
5265 | else | |
5266 | ac_cv_rl_version='0.0' | |
5267 | fi | |
5268 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5269 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5270 | fi | |
5271 | ||
5272 | fi | |
5273 | ||
5274 | ||
5275 | CFLAGS="$_save_CFLAGS" | |
5276 | LDFLAGS="$_save_LDFLAGS" | |
5277 | LIBS="$_save_LIBS" | |
5278 | ||
5279 | RL_MAJOR=0 | |
5280 | RL_MINOR=0 | |
5281 | ||
5282 | # ( | |
5283 | case "$ac_cv_rl_version" in | |
5284 | 2*|3*|4*|5*|6*|7*|8*|9*) | |
5285 | RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` | |
5286 | RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` | |
5287 | ;; | |
5288 | esac | |
5289 | ||
5290 | # ((( | |
5291 | case $RL_MAJOR in | |
5292 | [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; | |
5293 | [0-9]) _RL_MAJOR=0$RL_MAJOR ;; | |
5294 | *) _RL_MAJOR=00 ;; | |
5295 | esac | |
5296 | ||
5297 | # ((( | |
5298 | case $RL_MINOR in | |
5299 | [0-9][0-9]) _RL_MINOR=$RL_MINOR ;; | |
5300 | [0-9]) _RL_MINOR=0$RL_MINOR ;; | |
5301 | *) _RL_MINOR=00 ;; | |
5302 | esac | |
5303 | ||
5304 | RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" | |
5305 | ||
5306 | # Readline versions greater than 4.2 have these defines in readline.h | |
5307 | ||
5308 | if test $ac_cv_rl_version = '0.0' ; then | |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5 | |
5310 | $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} | |
5311 | elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then | |
5312 | # set these for use by the caller | |
5313 | RL_PREFIX=$ac_cv_rl_prefix | |
5314 | RL_LIBDIR=$ac_cv_rl_libdir | |
5315 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 | |
5317 | $as_echo "$ac_cv_rl_version" >&6; } | |
5318 | else | |
5319 | ||
5320 | ||
5321 | cat >>confdefs.h <<_ACEOF | |
5322 | @%:@define RL_READLINE_VERSION $RL_VERSION | |
5323 | _ACEOF | |
5324 | ||
5325 | ||
5326 | cat >>confdefs.h <<_ACEOF | |
5327 | @%:@define RL_VERSION_MAJOR $RL_MAJOR | |
5328 | _ACEOF | |
5329 | ||
5330 | ||
5331 | cat >>confdefs.h <<_ACEOF | |
5332 | @%:@define RL_VERSION_MINOR $RL_MINOR | |
5333 | _ACEOF | |
5334 | ||
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | # set these for use by the caller | |
5341 | RL_PREFIX=$ac_cv_rl_prefix | |
5342 | RL_LIBDIR=$ac_cv_rl_libdir | |
5343 | RL_INCLUDEDIR=$ac_cv_rl_includedir | |
5344 | ||
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 | |
5346 | $as_echo "$ac_cv_rl_version" >&6; } | |
5347 | ||
5348 | fi | |
5349 | ||
5350 | ||
5351 | case "$ac_cv_rl_version" in | |
5352 | 5*|6*|7*|8*|9*) ;; | |
5353 | *) opt_with_installed_readline=no | |
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installed readline library is too old to be linked with bash" >&5 | |
5355 | $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;} | |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using private bash version" >&5 | |
5357 | $as_echo "$as_me: WARNING: using private bash version" >&2;} | |
5358 | ;; | |
5359 | esac | |
5360 | fi | |
5361 | ||
5362 | TILDE_LIB=-ltilde | |
5363 | if test $opt_readline = yes; then | |
5364 | $as_echo "@%:@define READLINE 1" >>confdefs.h | |
5365 | ||
5366 | if test "$opt_with_installed_readline" != "no" ; then | |
5367 | case "$opt_with_installed_readline" in | |
5368 | yes) RL_INCLUDE= ;; | |
5369 | *) case "$RL_INCLUDEDIR" in | |
5370 | /usr/include) ;; | |
5371 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5372 | esac | |
5373 | ;; | |
5374 | esac | |
5375 | READLINE_DEP= | |
5376 | READLINE_LIB=-lreadline | |
5377 | # section for OS versions that don't allow unresolved symbols | |
5378 | # to be compiled into dynamic libraries. | |
5379 | case "$host_os" in | |
5380 | cygwin*) TILDE_LIB= ;; | |
5381 | esac | |
5382 | else | |
5383 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5384 | READLINE_DEP='$(READLINE_LIBRARY)' | |
5385 | # section for OS versions that ship an older/broken version of | |
5386 | # readline as a standard dynamic library and don't allow a | |
5387 | # static version specified as -llibname to override the | |
5388 | # dynamic version | |
5389 | case "${host_os}" in | |
5390 | darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;; | |
5391 | *) READLINE_LIB=-lreadline ;; | |
5392 | esac | |
5393 | fi | |
5394 | else | |
5395 | RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5396 | READLINE_LIB= READLINE_DEP= | |
5397 | fi | |
5398 | if test $opt_history = yes || test $opt_bang_history = yes; then | |
5399 | if test $opt_history = yes; then | |
5400 | $as_echo "@%:@define HISTORY 1" >>confdefs.h | |
5401 | ||
5402 | fi | |
5403 | if test $opt_bang_history = yes; then | |
5404 | $as_echo "@%:@define BANG_HISTORY 1" >>confdefs.h | |
5405 | ||
5406 | fi | |
5407 | if test "$opt_with_installed_readline" != "no"; then | |
5408 | HIST_LIBDIR=$RL_LIBDIR | |
5409 | HISTORY_DEP= | |
5410 | HISTORY_LIB=-lhistory | |
5411 | case "$opt_with_installed_readline" in | |
5412 | yes) RL_INCLUDE= ;; | |
5413 | *) case "$RL_INCLUDEDIR" in | |
5414 | /usr/include) ;; | |
5415 | *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;; | |
5416 | esac | |
5417 | ;; | |
5418 | esac | |
5419 | else | |
5420 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5421 | HISTORY_DEP='$(HISTORY_LIBRARY)' | |
5422 | # section for OS versions that ship an older version of | |
5423 | # readline as a standard dynamic library and don't allow a | |
5424 | # static version specified as -llibname to override the | |
5425 | # dynamic version | |
5426 | case "${host_os}" in | |
5427 | darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;; | |
5428 | *) HISTORY_LIB=-lhistory ;; | |
5429 | esac | |
5430 | fi | |
5431 | else | |
5432 | HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' | |
5433 | HISTORY_LIB= HISTORY_DEP= | |
5434 | fi | |
5435 | ||
5436 | ||
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | # Find a good install program. We prefer a C program (faster), | |
5447 | # so one script is as good as another. But avoid the broken or | |
5448 | # incompatible versions: | |
5449 | # SysV /etc/install, /usr/sbin/install | |
5450 | # SunOS /usr/etc/install | |
5451 | # IRIX /sbin/install | |
5452 | # AIX /bin/install | |
5453 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5454 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5455 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5456 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5457 | # OS/2's system install, which has a completely different semantic | |
5458 | # ./install, which can be erroneously created by make from ./install.sh. | |
5459 | # Reject install programs that cannot install multiple files. | |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
5461 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
5462 | if test -z "$INSTALL"; then | |
5463 | if ${ac_cv_path_install+:} false; then : | |
5464 | $as_echo_n "(cached) " >&6 | |
5465 | else | |
5466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5467 | for as_dir in $PATH | |
5468 | do | |
5469 | IFS=$as_save_IFS | |
5470 | test -z "$as_dir" && as_dir=. | |
5471 | # Account for people who put trailing slashes in PATH elements. | |
5472 | case $as_dir/ in @%:@(( | |
5473 | ./ | .// | /[cC]/* | \ | |
5474 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5475 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
5476 | /usr/ucb/* ) ;; | |
5477 | *) | |
5478 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5479 | # Don't use installbsd from OSF since it installs stuff as root | |
5480 | # by default. | |
5481 | for ac_prog in ginstall scoinst install; do | |
5482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5483 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
5484 | if test $ac_prog = install && | |
5485 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5486 | # AIX install. It has an incompatible calling convention. | |
5487 | : | |
5488 | elif test $ac_prog = install && | |
5489 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5490 | # program-specific install script used by HP pwplus--don't use. | |
5491 | : | |
5492 | else | |
5493 | rm -rf conftest.one conftest.two conftest.dir | |
5494 | echo one > conftest.one | |
5495 | echo two > conftest.two | |
5496 | mkdir conftest.dir | |
5497 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
5498 | test -s conftest.one && test -s conftest.two && | |
5499 | test -s conftest.dir/conftest.one && | |
5500 | test -s conftest.dir/conftest.two | |
5501 | then | |
5502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5503 | break 3 | |
5504 | fi | |
5505 | fi | |
5506 | fi | |
5507 | done | |
5508 | done | |
5509 | ;; | |
5510 | esac | |
5511 | ||
5512 | done | |
5513 | IFS=$as_save_IFS | |
5514 | ||
5515 | rm -rf conftest.one conftest.two conftest.dir | |
5516 | ||
5517 | fi | |
5518 | if test "${ac_cv_path_install+set}" = set; then | |
5519 | INSTALL=$ac_cv_path_install | |
5520 | else | |
5521 | # As a last resort, use the slow shell script. Don't cache a | |
5522 | # value for INSTALL within a source directory, because that will | |
5523 | # break other packages using the cache if that directory is | |
5524 | # removed, or if the value is a relative name. | |
5525 | INSTALL=$ac_install_sh | |
5526 | fi | |
5527 | fi | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
5529 | $as_echo "$INSTALL" >&6; } | |
5530 | ||
5531 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5532 | # It thinks the first close brace ends the variable substitution. | |
5533 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5534 | ||
5535 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5536 | ||
5537 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5538 | ||
5539 | if test -n "$ac_tool_prefix"; then | |
5540 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5541 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5543 | $as_echo_n "checking for $ac_word... " >&6; } | |
5544 | if ${ac_cv_prog_AR+:} false; then : | |
5545 | $as_echo_n "(cached) " >&6 | |
5546 | else | |
5547 | if test -n "$AR"; then | |
5548 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5549 | else | |
5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5551 | for as_dir in $PATH | |
5552 | do | |
5553 | IFS=$as_save_IFS | |
5554 | test -z "$as_dir" && as_dir=. | |
5555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5557 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5559 | break 2 | |
5560 | fi | |
5561 | done | |
5562 | done | |
5563 | IFS=$as_save_IFS | |
5564 | ||
5565 | fi | |
5566 | fi | |
5567 | AR=$ac_cv_prog_AR | |
5568 | if test -n "$AR"; then | |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5570 | $as_echo "$AR" >&6; } | |
5571 | else | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5573 | $as_echo "no" >&6; } | |
5574 | fi | |
5575 | ||
5576 | ||
5577 | fi | |
5578 | if test -z "$ac_cv_prog_AR"; then | |
5579 | ac_ct_AR=$AR | |
5580 | # Extract the first word of "ar", so it can be a program name with args. | |
5581 | set dummy ar; ac_word=$2 | |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5583 | $as_echo_n "checking for $ac_word... " >&6; } | |
5584 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5585 | $as_echo_n "(cached) " >&6 | |
5586 | else | |
5587 | if test -n "$ac_ct_AR"; then | |
5588 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5589 | else | |
5590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5591 | for as_dir in $PATH | |
5592 | do | |
5593 | IFS=$as_save_IFS | |
5594 | test -z "$as_dir" && as_dir=. | |
5595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5597 | ac_cv_prog_ac_ct_AR="ar" | |
5598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5599 | break 2 | |
5600 | fi | |
5601 | done | |
5602 | done | |
5603 | IFS=$as_save_IFS | |
5604 | ||
5605 | fi | |
5606 | fi | |
5607 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5608 | if test -n "$ac_ct_AR"; then | |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5610 | $as_echo "$ac_ct_AR" >&6; } | |
5611 | else | |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5613 | $as_echo "no" >&6; } | |
5614 | fi | |
5615 | ||
5616 | if test "x$ac_ct_AR" = x; then | |
5617 | AR="" | |
5618 | else | |
5619 | case $cross_compiling:$ac_tool_warned in | |
5620 | yes:) | |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5622 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5623 | ac_tool_warned=yes ;; | |
5624 | esac | |
5625 | AR=$ac_ct_AR | |
5626 | fi | |
5627 | else | |
5628 | AR="$ac_cv_prog_AR" | |
5629 | fi | |
5630 | ||
5631 | test -n "$ARFLAGS" || ARFLAGS="cr" | |
5632 | if test -n "$ac_tool_prefix"; then | |
5633 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5634 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5636 | $as_echo_n "checking for $ac_word... " >&6; } | |
5637 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5638 | $as_echo_n "(cached) " >&6 | |
5639 | else | |
5640 | if test -n "$RANLIB"; then | |
5641 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5642 | else | |
5643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5644 | for as_dir in $PATH | |
5645 | do | |
5646 | IFS=$as_save_IFS | |
5647 | test -z "$as_dir" && as_dir=. | |
5648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5650 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5652 | break 2 | |
5653 | fi | |
5654 | done | |
5655 | done | |
5656 | IFS=$as_save_IFS | |
5657 | ||
5658 | fi | |
5659 | fi | |
5660 | RANLIB=$ac_cv_prog_RANLIB | |
5661 | if test -n "$RANLIB"; then | |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5663 | $as_echo "$RANLIB" >&6; } | |
5664 | else | |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5666 | $as_echo "no" >&6; } | |
5667 | fi | |
5668 | ||
5669 | ||
5670 | fi | |
5671 | if test -z "$ac_cv_prog_RANLIB"; then | |
5672 | ac_ct_RANLIB=$RANLIB | |
5673 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5674 | set dummy ranlib; ac_word=$2 | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5676 | $as_echo_n "checking for $ac_word... " >&6; } | |
5677 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
5679 | else | |
5680 | if test -n "$ac_ct_RANLIB"; then | |
5681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5682 | else | |
5683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5684 | for as_dir in $PATH | |
5685 | do | |
5686 | IFS=$as_save_IFS | |
5687 | test -z "$as_dir" && as_dir=. | |
5688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5690 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5692 | break 2 | |
5693 | fi | |
5694 | done | |
5695 | done | |
5696 | IFS=$as_save_IFS | |
5697 | ||
5698 | fi | |
5699 | fi | |
5700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5701 | if test -n "$ac_ct_RANLIB"; then | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5703 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5704 | else | |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5706 | $as_echo "no" >&6; } | |
5707 | fi | |
5708 | ||
5709 | if test "x$ac_ct_RANLIB" = x; then | |
5710 | RANLIB=":" | |
5711 | else | |
5712 | case $cross_compiling:$ac_tool_warned in | |
5713 | yes:) | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5715 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5716 | ac_tool_warned=yes ;; | |
5717 | esac | |
5718 | RANLIB=$ac_ct_RANLIB | |
5719 | fi | |
5720 | else | |
5721 | RANLIB="$ac_cv_prog_RANLIB" | |
5722 | fi | |
5723 | ||
5724 | for ac_prog in 'bison -y' byacc | |
5725 | do | |
5726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5727 | set dummy $ac_prog; ac_word=$2 | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5729 | $as_echo_n "checking for $ac_word... " >&6; } | |
5730 | if ${ac_cv_prog_YACC+:} false; then : | |
5731 | $as_echo_n "(cached) " >&6 | |
5732 | else | |
5733 | if test -n "$YACC"; then | |
5734 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5735 | else | |
5736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5737 | for as_dir in $PATH | |
5738 | do | |
5739 | IFS=$as_save_IFS | |
5740 | test -z "$as_dir" && as_dir=. | |
5741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5743 | ac_cv_prog_YACC="$ac_prog" | |
5744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5745 | break 2 | |
5746 | fi | |
5747 | done | |
5748 | done | |
5749 | IFS=$as_save_IFS | |
5750 | ||
5751 | fi | |
5752 | fi | |
5753 | YACC=$ac_cv_prog_YACC | |
5754 | if test -n "$YACC"; then | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5756 | $as_echo "$YACC" >&6; } | |
5757 | else | |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5759 | $as_echo "no" >&6; } | |
5760 | fi | |
5761 | ||
5762 | ||
5763 | test -n "$YACC" && break | |
5764 | done | |
5765 | test -n "$YACC" || YACC="yacc" | |
5766 | ||
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5768 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5769 | set x ${MAKE-make} | |
5770 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5771 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
5772 | $as_echo_n "(cached) " >&6 | |
5773 | else | |
5774 | cat >conftest.make <<\_ACEOF | |
5775 | SHELL = /bin/sh | |
5776 | all: | |
5777 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5778 | _ACEOF | |
5779 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5780 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5781 | *@@@%%%=?*=@@@%%%*) | |
5782 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5783 | *) | |
5784 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5785 | esac | |
5786 | rm -f conftest.make | |
5787 | fi | |
5788 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5790 | $as_echo "yes" >&6; } | |
5791 | SET_MAKE= | |
5792 | else | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5794 | $as_echo "no" >&6; } | |
5795 | SET_MAKE="MAKE=${MAKE-make}" | |
5796 | fi | |
5797 | ||
5798 | ||
5799 | case "$host_os" in | |
5800 | opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;; | |
5801 | *) MAKE_SHELL=/bin/sh ;; | |
5802 | esac | |
5803 | ||
5804 | ||
5805 | if test x$SIZE = x; then | |
5806 | if test x$ac_tool_prefix = x; then | |
5807 | SIZE=size | |
5808 | else | |
5809 | SIZE=${ac_tool_prefix}size | |
5810 | save_IFS=$IFS ; IFS=: | |
5811 | size_found=0 | |
5812 | for dir in $PATH; do | |
5813 | if test -x $dir/$SIZE ; then | |
5814 | size_found=1 | |
5815 | break | |
5816 | fi | |
5817 | done | |
5818 | if test $size_found -eq 0; then | |
5819 | SIZE=: | |
5820 | fi | |
5821 | IFS=$save_IFS | |
5822 | fi | |
5823 | fi | |
5824 | ||
5825 | ||
5826 | # Checks for stat-related time functions. | |
5827 | ||
5828 | # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2012 Free Software | |
5829 | # Foundation, Inc. | |
5830 | ||
5831 | # This file is free software; the Free Software Foundation | |
5832 | # gives unlimited permission to copy and/or distribute it, | |
5833 | # with or without modifications, as long as this notice is preserved. | |
5834 | ||
5835 | ||
5836 | # st_atim.tv_nsec - Linux, Solaris, Cygwin | |
5837 | # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE | |
5838 | # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE | |
5839 | # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1) | |
5840 | ||
5841 | # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway) | |
5842 | # st_birthtim - Cygwin 1.7.0+ | |
5843 | ||
5844 | ||
5845 | ||
5846 | # Configure checks for struct timespec | |
5847 | ||
5848 | # Copyright (C) 2000-2001, 2003-2007, 2009-2011, 2012 Free Software Foundation, Inc. | |
5849 | ||
5850 | # This file is free software; the Free Software Foundation | |
5851 | # gives unlimited permission to copy and/or distribute it, | |
5852 | # with or without modifications, as long as this notice is preserved. | |
5853 | ||
5854 | # Original written by Paul Eggert and Jim Meyering. | |
5855 | # Modified by Chet Ramey for bash | |
5856 | ||
5857 | ||
5858 | ||
5859 | ||
5860 | ||
5861 | $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h | |
5862 | ||
5863 | ||
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5865 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5866 | if ${ac_cv_c_const+:} false; then : | |
5867 | $as_echo_n "(cached) " >&6 | |
5868 | else | |
5869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5870 | /* end confdefs.h. */ | |
5871 | ||
5872 | int | |
5873 | main () | |
5874 | { | |
5875 | /* FIXME: Include the comments suggested by Paul. */ | |
5876 | #ifndef __cplusplus | |
5877 | /* Ultrix mips cc rejects this. */ | |
5878 | typedef int charset[2]; | |
5879 | const charset cs; | |
5880 | /* SunOS 4.1.1 cc rejects this. */ | |
5881 | char const *const *pcpcc; | |
5882 | char **ppc; | |
5883 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5884 | struct point {int x, y;}; | |
5885 | static struct point const zero = {0,0}; | |
5886 | /* AIX XL C 1.02.0.0 rejects this. | |
5887 | It does not let you subtract one const X* pointer from another in | |
5888 | an arm of an if-expression whose if-part is not a constant | |
5889 | expression */ | |
5890 | const char *g = "string"; | |
5891 | pcpcc = &g + (g ? g-g : 0); | |
5892 | /* HPUX 7.0 cc rejects these. */ | |
5893 | ++pcpcc; | |
5894 | ppc = (char**) pcpcc; | |
5895 | pcpcc = (char const *const *) ppc; | |
5896 | { /* SCO 3.2v4 cc rejects this. */ | |
5897 | char *t; | |
5898 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5899 | ||
5900 | *t++ = 0; | |
5901 | if (s) return 0; | |
5902 | } | |
5903 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5904 | int x[] = {25, 17}; | |
5905 | const int *foo = &x[0]; | |
5906 | ++foo; | |
5907 | } | |
5908 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5909 | typedef const int *iptr; | |
5910 | iptr p = 0; | |
5911 | ++p; | |
5912 | } | |
5913 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5914 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5915 | struct s { int j; const int *ap[3]; }; | |
5916 | struct s *b; b->j = 5; | |
5917 | } | |
5918 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5919 | const int foo = 10; | |
5920 | if (!foo) return 0; | |
5921 | } | |
5922 | return !cs[0] && !zero.x; | |
5923 | #endif | |
5924 | ||
5925 | ; | |
5926 | return 0; | |
5927 | } | |
5928 | _ACEOF | |
5929 | if ac_fn_c_try_compile "$LINENO"; then : | |
5930 | ac_cv_c_const=yes | |
5931 | else | |
5932 | ac_cv_c_const=no | |
5933 | fi | |
5934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5935 | fi | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
5937 | $as_echo "$ac_cv_c_const" >&6; } | |
5938 | if test $ac_cv_c_const = no; then | |
5939 | ||
5940 | $as_echo "@%:@define const /**/" >>confdefs.h | |
5941 | ||
5942 | fi | |
5943 | ||
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
5945 | $as_echo_n "checking for inline... " >&6; } | |
5946 | if ${ac_cv_c_inline+:} false; then : | |
5947 | $as_echo_n "(cached) " >&6 | |
5948 | else | |
5949 | ac_cv_c_inline=no | |
5950 | for ac_kw in inline __inline__ __inline; do | |
5951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5952 | /* end confdefs.h. */ | |
5953 | #ifndef __cplusplus | |
5954 | typedef int foo_t; | |
5955 | static $ac_kw foo_t static_foo () {return 0; } | |
5956 | $ac_kw foo_t foo () {return 0; } | |
5957 | #endif | |
5958 | ||
5959 | _ACEOF | |
5960 | if ac_fn_c_try_compile "$LINENO"; then : | |
5961 | ac_cv_c_inline=$ac_kw | |
5962 | fi | |
5963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5964 | test "$ac_cv_c_inline" != no && break | |
5965 | done | |
5966 | ||
5967 | fi | |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
5969 | $as_echo "$ac_cv_c_inline" >&6; } | |
5970 | ||
5971 | case $ac_cv_c_inline in | |
5972 | inline | yes) ;; | |
5973 | *) | |
5974 | case $ac_cv_c_inline in | |
5975 | no) ac_val=;; | |
5976 | *) ac_val=$ac_cv_c_inline;; | |
5977 | esac | |
5978 | cat >>confdefs.h <<_ACEOF | |
5979 | #ifndef __cplusplus | |
5980 | #define inline $ac_val | |
5981 | #endif | |
5982 | _ACEOF | |
5983 | ;; | |
5984 | esac | |
5985 | ||
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5987 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5988 | if ${ac_cv_c_bigendian+:} false; then : | |
5989 | $as_echo_n "(cached) " >&6 | |
5990 | else | |
5991 | ac_cv_c_bigendian=unknown | |
5992 | # See if we're dealing with a universal compiler. | |
5993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5994 | /* end confdefs.h. */ | |
5995 | #ifndef __APPLE_CC__ | |
5996 | not a universal capable compiler | |
5997 | #endif | |
5998 | typedef int dummy; | |
5999 | ||
6000 | _ACEOF | |
6001 | if ac_fn_c_try_compile "$LINENO"; then : | |
6002 | ||
6003 | # Check for potential -arch flags. It is not universal unless | |
6004 | # there are at least two -arch flags with different values. | |
6005 | ac_arch= | |
6006 | ac_prev= | |
6007 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6008 | if test -n "$ac_prev"; then | |
6009 | case $ac_word in | |
6010 | i?86 | x86_64 | ppc | ppc64) | |
6011 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6012 | ac_arch=$ac_word | |
6013 | else | |
6014 | ac_cv_c_bigendian=universal | |
6015 | break | |
6016 | fi | |
6017 | ;; | |
6018 | esac | |
6019 | ac_prev= | |
6020 | elif test "x$ac_word" = "x-arch"; then | |
6021 | ac_prev=arch | |
6022 | fi | |
6023 | done | |
6024 | fi | |
6025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6026 | if test $ac_cv_c_bigendian = unknown; then | |
6027 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6029 | /* end confdefs.h. */ | |
6030 | #include <sys/types.h> | |
6031 | #include <sys/param.h> | |
6032 | ||
6033 | int | |
6034 | main () | |
6035 | { | |
6036 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6037 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6038 | && LITTLE_ENDIAN) | |
6039 | bogus endian macros | |
6040 | #endif | |
6041 | ||
6042 | ; | |
6043 | return 0; | |
6044 | } | |
6045 | _ACEOF | |
6046 | if ac_fn_c_try_compile "$LINENO"; then : | |
6047 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6049 | /* end confdefs.h. */ | |
6050 | #include <sys/types.h> | |
6051 | #include <sys/param.h> | |
6052 | ||
6053 | int | |
6054 | main () | |
6055 | { | |
6056 | #if BYTE_ORDER != BIG_ENDIAN | |
6057 | not big endian | |
6058 | #endif | |
6059 | ||
6060 | ; | |
6061 | return 0; | |
6062 | } | |
6063 | _ACEOF | |
6064 | if ac_fn_c_try_compile "$LINENO"; then : | |
6065 | ac_cv_c_bigendian=yes | |
6066 | else | |
6067 | ac_cv_c_bigendian=no | |
6068 | fi | |
6069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6070 | fi | |
6071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6072 | fi | |
6073 | if test $ac_cv_c_bigendian = unknown; then | |
6074 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6076 | /* end confdefs.h. */ | |
6077 | #include <limits.h> | |
6078 | ||
6079 | int | |
6080 | main () | |
6081 | { | |
6082 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6083 | bogus endian macros | |
6084 | #endif | |
6085 | ||
6086 | ; | |
6087 | return 0; | |
6088 | } | |
6089 | _ACEOF | |
6090 | if ac_fn_c_try_compile "$LINENO"; then : | |
6091 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6093 | /* end confdefs.h. */ | |
6094 | #include <limits.h> | |
6095 | ||
6096 | int | |
6097 | main () | |
6098 | { | |
6099 | #ifndef _BIG_ENDIAN | |
6100 | not big endian | |
6101 | #endif | |
6102 | ||
6103 | ; | |
6104 | return 0; | |
6105 | } | |
6106 | _ACEOF | |
6107 | if ac_fn_c_try_compile "$LINENO"; then : | |
6108 | ac_cv_c_bigendian=yes | |
6109 | else | |
6110 | ac_cv_c_bigendian=no | |
6111 | fi | |
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6113 | fi | |
6114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6115 | fi | |
6116 | if test $ac_cv_c_bigendian = unknown; then | |
6117 | # Compile a test program. | |
6118 | if test "$cross_compiling" = yes; then : | |
6119 | # Try to guess by grepping values from an object file. | |
6120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6121 | /* end confdefs.h. */ | |
6122 | short int ascii_mm[] = | |
6123 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6124 | short int ascii_ii[] = | |
6125 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6126 | int use_ascii (int i) { | |
6127 | return ascii_mm[i] + ascii_ii[i]; | |
6128 | } | |
6129 | short int ebcdic_ii[] = | |
6130 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6131 | short int ebcdic_mm[] = | |
6132 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6133 | int use_ebcdic (int i) { | |
6134 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6135 | } | |
6136 | extern int foo; | |
6137 | ||
6138 | int | |
6139 | main () | |
6140 | { | |
6141 | return use_ascii (foo) == use_ebcdic (foo); | |
6142 | ; | |
6143 | return 0; | |
6144 | } | |
6145 | _ACEOF | |
6146 | if ac_fn_c_try_compile "$LINENO"; then : | |
6147 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6148 | ac_cv_c_bigendian=yes | |
6149 | fi | |
6150 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6151 | if test "$ac_cv_c_bigendian" = unknown; then | |
6152 | ac_cv_c_bigendian=no | |
6153 | else | |
6154 | # finding both strings is unlikely to happen, but who knows? | |
6155 | ac_cv_c_bigendian=unknown | |
6156 | fi | |
6157 | fi | |
6158 | fi | |
6159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6160 | else | |
6161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6162 | /* end confdefs.h. */ | |
6163 | $ac_includes_default | |
6164 | int | |
6165 | main () | |
6166 | { | |
6167 | ||
6168 | /* Are we little or big endian? From Harbison&Steele. */ | |
6169 | union | |
6170 | { | |
6171 | long int l; | |
6172 | char c[sizeof (long int)]; | |
6173 | } u; | |
6174 | u.l = 1; | |
6175 | return u.c[sizeof (long int) - 1] == 1; | |
6176 | ||
6177 | ; | |
6178 | return 0; | |
6179 | } | |
6180 | _ACEOF | |
6181 | if ac_fn_c_try_run "$LINENO"; then : | |
6182 | ac_cv_c_bigendian=no | |
6183 | else | |
6184 | ac_cv_c_bigendian=yes | |
6185 | fi | |
6186 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6187 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6188 | fi | |
6189 | ||
6190 | fi | |
6191 | fi | |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6193 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6194 | case $ac_cv_c_bigendian in #( | |
6195 | yes) | |
6196 | $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h | |
6197 | ;; #( | |
6198 | no) | |
6199 | ;; #( | |
6200 | universal) | |
6201 | ||
6202 | $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6203 | ||
6204 | ;; #( | |
6205 | *) | |
6206 | as_fn_error $? "unknown endianness | |
6207 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6208 | esac | |
6209 | ||
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 | |
6211 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | |
6212 | if ${ac_cv_c_stringize+:} false; then : | |
6213 | $as_echo_n "(cached) " >&6 | |
6214 | else | |
6215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6216 | /* end confdefs.h. */ | |
6217 | @%:@define x(y) #y | |
6218 | ||
6219 | char *s = x(teststring); | |
6220 | _ACEOF | |
6221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6222 | $EGREP "@%:@teststring" >/dev/null 2>&1; then : | |
6223 | ac_cv_c_stringize=no | |
6224 | else | |
6225 | ac_cv_c_stringize=yes | |
6226 | fi | |
6227 | rm -f conftest* | |
6228 | ||
6229 | fi | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 | |
6231 | $as_echo "$ac_cv_c_stringize" >&6; } | |
6232 | if test $ac_cv_c_stringize = yes; then | |
6233 | ||
6234 | $as_echo "@%:@define HAVE_STRINGIZE 1" >>confdefs.h | |
6235 | ||
6236 | fi | |
6237 | ||
6238 | ||
6239 | ||
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 | |
6241 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | |
6242 | if ${ac_cv_type_long_double_wider+:} false; then : | |
6243 | $as_echo_n "(cached) " >&6 | |
6244 | else | |
6245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6246 | /* end confdefs.h. */ | |
6247 | #include <float.h> | |
6248 | long double const a[] = | |
6249 | { | |
6250 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | |
6251 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | |
6252 | }; | |
6253 | long double | |
6254 | f (long double x) | |
6255 | { | |
6256 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | |
6257 | + (x ? f (x) : 'c')); | |
6258 | } | |
6259 | ||
6260 | int | |
6261 | main () | |
6262 | { | |
6263 | static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) | |
6264 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | |
6265 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | |
6266 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | |
6267 | && (int) LDBL_EPSILON == 0 | |
6268 | )@:>@; | |
6269 | test_array @<:@0@:>@ = 0 | |
6270 | ||
6271 | ; | |
6272 | return 0; | |
6273 | } | |
6274 | _ACEOF | |
6275 | if ac_fn_c_try_compile "$LINENO"; then : | |
6276 | ac_cv_type_long_double_wider=yes | |
6277 | else | |
6278 | ac_cv_type_long_double_wider=no | |
6279 | fi | |
6280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6281 | fi | |
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 | |
6283 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | |
6284 | if test $ac_cv_type_long_double_wider = yes; then | |
6285 | ||
6286 | $as_echo "@%:@define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h | |
6287 | ||
6288 | fi | |
6289 | ||
6290 | ac_cv_c_long_double=$ac_cv_type_long_double_wider | |
6291 | if test $ac_cv_c_long_double = yes; then | |
6292 | ||
6293 | $as_echo "@%:@define HAVE_LONG_DOUBLE 1" >>confdefs.h | |
6294 | ||
6295 | fi | |
6296 | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | |
6298 | $as_echo_n "checking for function prototypes... " >&6; } | |
6299 | if test "$ac_cv_prog_cc_c89" != no; then | |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6301 | $as_echo "yes" >&6; } | |
6302 | ||
6303 | $as_echo "@%:@define PROTOTYPES 1" >>confdefs.h | |
6304 | ||
6305 | ||
6306 | $as_echo "@%:@define __PROTOTYPES 1" >>confdefs.h | |
6307 | ||
6308 | else | |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6310 | $as_echo "no" >&6; } | |
6311 | fi | |
6312 | ||
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | |
6314 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
6315 | if ${ac_cv_c_char_unsigned+:} false; then : | |
6316 | $as_echo_n "(cached) " >&6 | |
6317 | else | |
6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6319 | /* end confdefs.h. */ | |
6320 | $ac_includes_default | |
6321 | int | |
6322 | main () | |
6323 | { | |
6324 | static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@; | |
6325 | test_array @<:@0@:>@ = 0 | |
6326 | ||
6327 | ; | |
6328 | return 0; | |
6329 | } | |
6330 | _ACEOF | |
6331 | if ac_fn_c_try_compile "$LINENO"; then : | |
6332 | ac_cv_c_char_unsigned=no | |
6333 | else | |
6334 | ac_cv_c_char_unsigned=yes | |
6335 | fi | |
6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6337 | fi | |
6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 | |
6339 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
6340 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
6341 | $as_echo "@%:@define __CHAR_UNSIGNED__ 1" >>confdefs.h | |
6342 | ||
6343 | fi | |
6344 | ||
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | |
6346 | $as_echo_n "checking for working volatile... " >&6; } | |
6347 | if ${ac_cv_c_volatile+:} false; then : | |
6348 | $as_echo_n "(cached) " >&6 | |
6349 | else | |
6350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6351 | /* end confdefs.h. */ | |
6352 | ||
6353 | int | |
6354 | main () | |
6355 | { | |
6356 | ||
6357 | volatile int x; | |
6358 | int * volatile y = (int *) 0; | |
6359 | return !x && !y; | |
6360 | ; | |
6361 | return 0; | |
6362 | } | |
6363 | _ACEOF | |
6364 | if ac_fn_c_try_compile "$LINENO"; then : | |
6365 | ac_cv_c_volatile=yes | |
6366 | else | |
6367 | ac_cv_c_volatile=no | |
6368 | fi | |
6369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6370 | fi | |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | |
6372 | $as_echo "$ac_cv_c_volatile" >&6; } | |
6373 | if test $ac_cv_c_volatile = no; then | |
6374 | ||
6375 | $as_echo "@%:@define volatile /**/" >>confdefs.h | |
6376 | ||
6377 | fi | |
6378 | ||
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 | |
6380 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
6381 | if ${ac_cv_c_restrict+:} false; then : | |
6382 | $as_echo_n "(cached) " >&6 | |
6383 | else | |
6384 | ac_cv_c_restrict=no | |
6385 | # The order here caters to the fact that C++ does not require restrict. | |
6386 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
6387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6388 | /* end confdefs.h. */ | |
6389 | typedef int * int_ptr; | |
6390 | int foo (int_ptr $ac_kw ip) { | |
6391 | return ip[0]; | |
6392 | } | |
6393 | int | |
6394 | main () | |
6395 | { | |
6396 | int s[1]; | |
6397 | int * $ac_kw t = s; | |
6398 | t[0] = 0; | |
6399 | return foo(t) | |
6400 | ; | |
6401 | return 0; | |
6402 | } | |
6403 | _ACEOF | |
6404 | if ac_fn_c_try_compile "$LINENO"; then : | |
6405 | ac_cv_c_restrict=$ac_kw | |
6406 | fi | |
6407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6408 | test "$ac_cv_c_restrict" != no && break | |
6409 | done | |
6410 | ||
6411 | fi | |
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | |
6413 | $as_echo "$ac_cv_c_restrict" >&6; } | |
6414 | ||
6415 | case $ac_cv_c_restrict in | |
6416 | restrict) ;; | |
6417 | no) $as_echo "@%:@define restrict /**/" >>confdefs.h | |
6418 | ;; | |
6419 | *) cat >>confdefs.h <<_ACEOF | |
6420 | @%:@define restrict $ac_cv_c_restrict | |
6421 | _ACEOF | |
6422 | ;; | |
6423 | esac | |
6424 | ||
6425 | ||
6426 | ||
6427 | MKINSTALLDIRS= | |
6428 | if test -n "$ac_aux_dir"; then | |
6429 | case "$ac_aux_dir" in | |
6430 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
6431 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
6432 | esac | |
6433 | fi | |
6434 | if test -z "$MKINSTALLDIRS"; then | |
6435 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
6436 | fi | |
6437 | ||
6438 | ||
6439 | ||
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
6441 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6442 | @%:@ Check whether --enable-nls was given. | |
6443 | if test "${enable_nls+set}" = set; then : | |
6444 | enableval=$enable_nls; USE_NLS=$enableval | |
6445 | else | |
6446 | USE_NLS=yes | |
6447 | fi | |
6448 | ||
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
6450 | $as_echo "$USE_NLS" >&6; } | |
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | # Prepare PATH_SEPARATOR. | |
6458 | # The user is always right. | |
6459 | if test "${PATH_SEPARATOR+set}" != set; then | |
6460 | echo "#! /bin/sh" >conf$$.sh | |
6461 | echo "exit 0" >>conf$$.sh | |
6462 | chmod +x conf$$.sh | |
6463 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6464 | PATH_SEPARATOR=';' | |
6465 | else | |
6466 | PATH_SEPARATOR=: | |
6467 | fi | |
6468 | rm -f conf$$.sh | |
6469 | fi | |
6470 | ||
6471 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6472 | # as systems may use methods other than mode bits to determine executability. | |
6473 | cat >conf$$.file <<_ASEOF | |
6474 | #! /bin/sh | |
6475 | exit 0 | |
6476 | _ASEOF | |
6477 | chmod +x conf$$.file | |
6478 | if test -x conf$$.file >/dev/null 2>&1; then | |
6479 | ac_executable_p="test -x" | |
6480 | else | |
6481 | ac_executable_p="test -f" | |
6482 | fi | |
6483 | rm -f conf$$.file | |
6484 | ||
6485 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6486 | set dummy msgfmt; ac_word=$2 | |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6488 | $as_echo_n "checking for $ac_word... " >&6; } | |
6489 | if ${ac_cv_path_MSGFMT+:} false; then : | |
6490 | $as_echo_n "(cached) " >&6 | |
6491 | else | |
6492 | case "$MSGFMT" in | |
6493 | [\\/]* | ?:[\\/]*) | |
6494 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6495 | ;; | |
6496 | *) | |
6497 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6498 | for ac_dir in $PATH; do | |
6499 | IFS="$ac_save_IFS" | |
6500 | test -z "$ac_dir" && ac_dir=. | |
6501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6502 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6503 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
6504 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6505 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6506 | break 2 | |
6507 | fi | |
6508 | fi | |
6509 | done | |
6510 | done | |
6511 | IFS="$ac_save_IFS" | |
6512 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6513 | ;; | |
6514 | esac | |
6515 | fi | |
6516 | MSGFMT="$ac_cv_path_MSGFMT" | |
6517 | if test "$MSGFMT" != ":"; then | |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6519 | $as_echo "$MSGFMT" >&6; } | |
6520 | else | |
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6522 | $as_echo "no" >&6; } | |
6523 | fi | |
6524 | ||
6525 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6526 | set dummy gmsgfmt; ac_word=$2 | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6528 | $as_echo_n "checking for $ac_word... " >&6; } | |
6529 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
6530 | $as_echo_n "(cached) " >&6 | |
6531 | else | |
6532 | case $GMSGFMT in | |
6533 | [\\/]* | ?:[\\/]*) | |
6534 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6535 | ;; | |
6536 | *) | |
6537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6538 | for as_dir in $PATH | |
6539 | do | |
6540 | IFS=$as_save_IFS | |
6541 | test -z "$as_dir" && as_dir=. | |
6542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6543 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6544 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
6545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6546 | break 2 | |
6547 | fi | |
6548 | done | |
6549 | done | |
6550 | IFS=$as_save_IFS | |
6551 | ||
6552 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6553 | ;; | |
6554 | esac | |
6555 | fi | |
6556 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6557 | if test -n "$GMSGFMT"; then | |
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6559 | $as_echo "$GMSGFMT" >&6; } | |
6560 | else | |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6562 | $as_echo "no" >&6; } | |
6563 | fi | |
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | # Prepare PATH_SEPARATOR. | |
6569 | # The user is always right. | |
6570 | if test "${PATH_SEPARATOR+set}" != set; then | |
6571 | echo "#! /bin/sh" >conf$$.sh | |
6572 | echo "exit 0" >>conf$$.sh | |
6573 | chmod +x conf$$.sh | |
6574 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6575 | PATH_SEPARATOR=';' | |
6576 | else | |
6577 | PATH_SEPARATOR=: | |
6578 | fi | |
6579 | rm -f conf$$.sh | |
6580 | fi | |
6581 | ||
6582 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6583 | # as systems may use methods other than mode bits to determine executability. | |
6584 | cat >conf$$.file <<_ASEOF | |
6585 | #! /bin/sh | |
6586 | exit 0 | |
6587 | _ASEOF | |
6588 | chmod +x conf$$.file | |
6589 | if test -x conf$$.file >/dev/null 2>&1; then | |
6590 | ac_executable_p="test -x" | |
6591 | else | |
6592 | ac_executable_p="test -f" | |
6593 | fi | |
6594 | rm -f conf$$.file | |
6595 | ||
6596 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6597 | set dummy xgettext; ac_word=$2 | |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6599 | $as_echo_n "checking for $ac_word... " >&6; } | |
6600 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
6601 | $as_echo_n "(cached) " >&6 | |
6602 | else | |
6603 | case "$XGETTEXT" in | |
6604 | [\\/]* | ?:[\\/]*) | |
6605 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6606 | ;; | |
6607 | *) | |
6608 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6609 | for ac_dir in $PATH; do | |
6610 | IFS="$ac_save_IFS" | |
6611 | test -z "$ac_dir" && ac_dir=. | |
6612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6613 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6614 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
6615 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6616 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6617 | break 2 | |
6618 | fi | |
6619 | fi | |
6620 | done | |
6621 | done | |
6622 | IFS="$ac_save_IFS" | |
6623 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6624 | ;; | |
6625 | esac | |
6626 | fi | |
6627 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6628 | if test "$XGETTEXT" != ":"; then | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6630 | $as_echo "$XGETTEXT" >&6; } | |
6631 | else | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6633 | $as_echo "no" >&6; } | |
6634 | fi | |
6635 | ||
6636 | rm -f messages.po | |
6637 | ||
6638 | ||
6639 | # Prepare PATH_SEPARATOR. | |
6640 | # The user is always right. | |
6641 | if test "${PATH_SEPARATOR+set}" != set; then | |
6642 | echo "#! /bin/sh" >conf$$.sh | |
6643 | echo "exit 0" >>conf$$.sh | |
6644 | chmod +x conf$$.sh | |
6645 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6646 | PATH_SEPARATOR=';' | |
6647 | else | |
6648 | PATH_SEPARATOR=: | |
6649 | fi | |
6650 | rm -f conf$$.sh | |
6651 | fi | |
6652 | ||
6653 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6654 | # as systems may use methods other than mode bits to determine executability. | |
6655 | cat >conf$$.file <<_ASEOF | |
6656 | #! /bin/sh | |
6657 | exit 0 | |
6658 | _ASEOF | |
6659 | chmod +x conf$$.file | |
6660 | if test -x conf$$.file >/dev/null 2>&1; then | |
6661 | ac_executable_p="test -x" | |
6662 | else | |
6663 | ac_executable_p="test -f" | |
6664 | fi | |
6665 | rm -f conf$$.file | |
6666 | ||
6667 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6668 | set dummy msgmerge; ac_word=$2 | |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6670 | $as_echo_n "checking for $ac_word... " >&6; } | |
6671 | if ${ac_cv_path_MSGMERGE+:} false; then : | |
6672 | $as_echo_n "(cached) " >&6 | |
6673 | else | |
6674 | case "$MSGMERGE" in | |
6675 | [\\/]* | ?:[\\/]*) | |
6676 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6677 | ;; | |
6678 | *) | |
6679 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6680 | for ac_dir in $PATH; do | |
6681 | IFS="$ac_save_IFS" | |
6682 | test -z "$ac_dir" && ac_dir=. | |
6683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6684 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6685 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
6686 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
6687 | break 2 | |
6688 | fi | |
6689 | fi | |
6690 | done | |
6691 | done | |
6692 | IFS="$ac_save_IFS" | |
6693 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6694 | ;; | |
6695 | esac | |
6696 | fi | |
6697 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6698 | if test "$MSGMERGE" != ":"; then | |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6700 | $as_echo "$MSGMERGE" >&6; } | |
6701 | else | |
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6703 | $as_echo "no" >&6; } | |
6704 | fi | |
6705 | ||
6706 | ||
6707 | if test "$GMSGFMT" != ":"; then | |
6708 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
6709 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6710 | : ; | |
6711 | else | |
6712 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
6714 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
6715 | GMSGFMT=":" | |
6716 | fi | |
6717 | fi | |
6718 | ||
6719 | if test "$XGETTEXT" != ":"; then | |
6720 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
6721 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6722 | : ; | |
6723 | else | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
6725 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
6726 | XGETTEXT=":" | |
6727 | fi | |
6728 | rm -f messages.po | |
6729 | fi | |
6730 | ||
6731 | ac_config_commands="$ac_config_commands default-1" | |
6732 | ||
6733 | ||
6734 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
6735 | if test "x$ac_cv_type_off_t" = xyes; then : | |
6736 | ||
6737 | else | |
6738 | ||
6739 | cat >>confdefs.h <<_ACEOF | |
6740 | @%:@define off_t long int | |
6741 | _ACEOF | |
6742 | ||
6743 | fi | |
6744 | ||
6745 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
6746 | if test "x$ac_cv_type_size_t" = xyes; then : | |
6747 | ||
6748 | else | |
6749 | ||
6750 | cat >>confdefs.h <<_ACEOF | |
6751 | @%:@define size_t unsigned int | |
6752 | _ACEOF | |
6753 | ||
6754 | fi | |
6755 | ||
6756 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6757 | # for constant arguments. Useless! | |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
6759 | $as_echo_n "checking for working alloca.h... " >&6; } | |
6760 | if ${ac_cv_working_alloca_h+:} false; then : | |
6761 | $as_echo_n "(cached) " >&6 | |
6762 | else | |
6763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6764 | /* end confdefs.h. */ | |
6765 | @%:@include <alloca.h> | |
6766 | int | |
6767 | main () | |
6768 | { | |
6769 | char *p = (char *) alloca (2 * sizeof (int)); | |
6770 | if (p) return 0; | |
6771 | ; | |
6772 | return 0; | |
6773 | } | |
6774 | _ACEOF | |
6775 | if ac_fn_c_try_link "$LINENO"; then : | |
6776 | ac_cv_working_alloca_h=yes | |
6777 | else | |
6778 | ac_cv_working_alloca_h=no | |
6779 | fi | |
6780 | rm -f core conftest.err conftest.$ac_objext \ | |
6781 | conftest$ac_exeext conftest.$ac_ext | |
6782 | fi | |
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
6784 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
6785 | if test $ac_cv_working_alloca_h = yes; then | |
6786 | ||
6787 | $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h | |
6788 | ||
6789 | fi | |
6790 | ||
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
6792 | $as_echo_n "checking for alloca... " >&6; } | |
6793 | if ${ac_cv_func_alloca_works+:} false; then : | |
6794 | $as_echo_n "(cached) " >&6 | |
6795 | else | |
6796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6797 | /* end confdefs.h. */ | |
6798 | #ifdef __GNUC__ | |
6799 | # define alloca __builtin_alloca | |
6800 | #else | |
6801 | # ifdef _MSC_VER | |
6802 | # include <malloc.h> | |
6803 | # define alloca _alloca | |
6804 | # else | |
6805 | # ifdef HAVE_ALLOCA_H | |
6806 | # include <alloca.h> | |
6807 | # else | |
6808 | # ifdef _AIX | |
6809 | #pragma alloca | |
6810 | # else | |
6811 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6812 | void *alloca (size_t); | |
6813 | # endif | |
6814 | # endif | |
6815 | # endif | |
6816 | # endif | |
6817 | #endif | |
6818 | ||
6819 | int | |
6820 | main () | |
6821 | { | |
6822 | char *p = (char *) alloca (1); | |
6823 | if (p) return 0; | |
6824 | ; | |
6825 | return 0; | |
6826 | } | |
6827 | _ACEOF | |
6828 | if ac_fn_c_try_link "$LINENO"; then : | |
6829 | ac_cv_func_alloca_works=yes | |
6830 | else | |
6831 | ac_cv_func_alloca_works=no | |
6832 | fi | |
6833 | rm -f core conftest.err conftest.$ac_objext \ | |
6834 | conftest$ac_exeext conftest.$ac_ext | |
6835 | fi | |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
6837 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
6838 | ||
6839 | if test $ac_cv_func_alloca_works = yes; then | |
6840 | ||
6841 | $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h | |
6842 | ||
6843 | else | |
6844 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6845 | # that cause trouble. Some versions do not even contain alloca or | |
6846 | # contain a buggy version. If you still want to use their alloca, | |
6847 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6848 | ||
6849 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
6850 | ||
6851 | $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h | |
6852 | ||
6853 | ||
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
6855 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
6856 | if ${ac_cv_os_cray+:} false; then : | |
6857 | $as_echo_n "(cached) " >&6 | |
6858 | else | |
6859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6860 | /* end confdefs.h. */ | |
6861 | #if defined CRAY && ! defined CRAY2 | |
6862 | webecray | |
6863 | #else | |
6864 | wenotbecray | |
6865 | #endif | |
6866 | ||
6867 | _ACEOF | |
6868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6869 | $EGREP "webecray" >/dev/null 2>&1; then : | |
6870 | ac_cv_os_cray=yes | |
6871 | else | |
6872 | ac_cv_os_cray=no | |
6873 | fi | |
6874 | rm -f conftest* | |
6875 | ||
6876 | fi | |
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
6878 | $as_echo "$ac_cv_os_cray" >&6; } | |
6879 | if test $ac_cv_os_cray = yes; then | |
6880 | for ac_func in _getb67 GETB67 getb67; do | |
6881 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6882 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6883 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
6884 | ||
6885 | cat >>confdefs.h <<_ACEOF | |
6886 | @%:@define CRAY_STACKSEG_END $ac_func | |
6887 | _ACEOF | |
6888 | ||
6889 | break | |
6890 | fi | |
6891 | ||
6892 | done | |
6893 | fi | |
6894 | ||
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
6896 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
6897 | if ${ac_cv_c_stack_direction+:} false; then : | |
6898 | $as_echo_n "(cached) " >&6 | |
6899 | else | |
6900 | if test "$cross_compiling" = yes; then : | |
6901 | ac_cv_c_stack_direction=0 | |
6902 | else | |
6903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6904 | /* end confdefs.h. */ | |
6905 | $ac_includes_default | |
6906 | int | |
6907 | find_stack_direction () | |
6908 | { | |
6909 | static char *addr = 0; | |
6910 | auto char dummy; | |
6911 | if (addr == 0) | |
6912 | { | |
6913 | addr = &dummy; | |
6914 | return find_stack_direction (); | |
6915 | } | |
6916 | else | |
6917 | return (&dummy > addr) ? 1 : -1; | |
6918 | } | |
6919 | ||
6920 | int | |
6921 | main () | |
6922 | { | |
6923 | return find_stack_direction () < 0; | |
6924 | } | |
6925 | _ACEOF | |
6926 | if ac_fn_c_try_run "$LINENO"; then : | |
6927 | ac_cv_c_stack_direction=1 | |
6928 | else | |
6929 | ac_cv_c_stack_direction=-1 | |
6930 | fi | |
6931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6932 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6933 | fi | |
6934 | ||
6935 | fi | |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
6937 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
6938 | cat >>confdefs.h <<_ACEOF | |
6939 | @%:@define STACK_DIRECTION $ac_cv_c_stack_direction | |
6940 | _ACEOF | |
6941 | ||
6942 | ||
6943 | fi | |
6944 | ||
6945 | ||
6946 | ||
6947 | ||
6948 | for ac_header in $ac_header_list | |
6949 | do : | |
6950 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6951 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6952 | " | |
6953 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
6954 | cat >>confdefs.h <<_ACEOF | |
6955 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6956 | _ACEOF | |
6957 | ||
6958 | fi | |
6959 | ||
6960 | done | |
6961 | ||
6962 | ||
6963 | ||
6964 | ||
6965 | ||
6966 | ||
6967 | ||
6968 | ||
6969 | for ac_func in getpagesize | |
6970 | do : | |
6971 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6972 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
6973 | cat >>confdefs.h <<_ACEOF | |
6974 | @%:@define HAVE_GETPAGESIZE 1 | |
6975 | _ACEOF | |
6976 | ||
6977 | fi | |
6978 | done | |
6979 | ||
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6981 | $as_echo_n "checking for working mmap... " >&6; } | |
6982 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
6983 | $as_echo_n "(cached) " >&6 | |
6984 | else | |
6985 | if test "$cross_compiling" = yes; then : | |
6986 | ac_cv_func_mmap_fixed_mapped=no | |
6987 | else | |
6988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6989 | /* end confdefs.h. */ | |
6990 | $ac_includes_default | |
6991 | /* malloc might have been renamed as rpl_malloc. */ | |
6992 | #undef malloc | |
6993 | ||
6994 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6995 | Here is a matrix of mmap possibilities: | |
6996 | mmap private not fixed | |
6997 | mmap private fixed at somewhere currently unmapped | |
6998 | mmap private fixed at somewhere already mapped | |
6999 | mmap shared not fixed | |
7000 | mmap shared fixed at somewhere currently unmapped | |
7001 | mmap shared fixed at somewhere already mapped | |
7002 | For private mappings, we should verify that changes cannot be read() | |
7003 | back from the file, nor mmap's back from the file at a different | |
7004 | address. (There have been systems where private was not correctly | |
7005 | implemented like the infamous i386 svr4.0, and systems where the | |
7006 | VM page cache was not coherent with the file system buffer cache | |
7007 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7008 | For shared mappings, we should conversely verify that changes get | |
7009 | propagated back to all the places they're supposed to be. | |
7010 | ||
7011 | Grep wants private fixed already mapped. | |
7012 | The main things grep needs to know about mmap are: | |
7013 | * does it exist and is it safe to write into the mmap'd area | |
7014 | * how to use it (BSD variants) */ | |
7015 | ||
7016 | #include <fcntl.h> | |
7017 | #include <sys/mman.h> | |
7018 | ||
7019 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
7020 | char *malloc (); | |
7021 | #endif | |
7022 | ||
7023 | /* This mess was copied from the GNU getpagesize.h. */ | |
7024 | #ifndef HAVE_GETPAGESIZE | |
7025 | # ifdef _SC_PAGESIZE | |
7026 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7027 | # else /* no _SC_PAGESIZE */ | |
7028 | # ifdef HAVE_SYS_PARAM_H | |
7029 | # include <sys/param.h> | |
7030 | # ifdef EXEC_PAGESIZE | |
7031 | # define getpagesize() EXEC_PAGESIZE | |
7032 | # else /* no EXEC_PAGESIZE */ | |
7033 | # ifdef NBPG | |
7034 | # define getpagesize() NBPG * CLSIZE | |
7035 | # ifndef CLSIZE | |
7036 | # define CLSIZE 1 | |
7037 | # endif /* no CLSIZE */ | |
7038 | # else /* no NBPG */ | |
7039 | # ifdef NBPC | |
7040 | # define getpagesize() NBPC | |
7041 | # else /* no NBPC */ | |
7042 | # ifdef PAGESIZE | |
7043 | # define getpagesize() PAGESIZE | |
7044 | # endif /* PAGESIZE */ | |
7045 | # endif /* no NBPC */ | |
7046 | # endif /* no NBPG */ | |
7047 | # endif /* no EXEC_PAGESIZE */ | |
7048 | # else /* no HAVE_SYS_PARAM_H */ | |
7049 | # define getpagesize() 8192 /* punt totally */ | |
7050 | # endif /* no HAVE_SYS_PARAM_H */ | |
7051 | # endif /* no _SC_PAGESIZE */ | |
7052 | ||
7053 | #endif /* no HAVE_GETPAGESIZE */ | |
7054 | ||
7055 | int | |
7056 | main () | |
7057 | { | |
7058 | char *data, *data2, *data3; | |
7059 | const char *cdata2; | |
7060 | int i, pagesize; | |
7061 | int fd, fd2; | |
7062 | ||
7063 | pagesize = getpagesize (); | |
7064 | ||
7065 | /* First, make a file with some known garbage in it. */ | |
7066 | data = (char *) malloc (pagesize); | |
7067 | if (!data) | |
7068 | return 1; | |
7069 | for (i = 0; i < pagesize; ++i) | |
7070 | *(data + i) = rand (); | |
7071 | umask (0); | |
7072 | fd = creat ("conftest.mmap", 0600); | |
7073 | if (fd < 0) | |
7074 | return 2; | |
7075 | if (write (fd, data, pagesize) != pagesize) | |
7076 | return 3; | |
7077 | close (fd); | |
7078 | ||
7079 | /* Next, check that the tail of a page is zero-filled. File must have | |
7080 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7081 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7082 | if (fd2 < 0) | |
7083 | return 4; | |
7084 | cdata2 = ""; | |
7085 | if (write (fd2, cdata2, 1) != 1) | |
7086 | return 5; | |
7087 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7088 | if (data2 == MAP_FAILED) | |
7089 | return 6; | |
7090 | for (i = 0; i < pagesize; ++i) | |
7091 | if (*(data2 + i)) | |
7092 | return 7; | |
7093 | close (fd2); | |
7094 | if (munmap (data2, pagesize)) | |
7095 | return 8; | |
7096 | ||
7097 | /* Next, try to mmap the file at a fixed address which already has | |
7098 | something else allocated at it. If we can, also make sure that | |
7099 | we see the same garbage. */ | |
7100 | fd = open ("conftest.mmap", O_RDWR); | |
7101 | if (fd < 0) | |
7102 | return 9; | |
7103 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7104 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7105 | return 10; | |
7106 | for (i = 0; i < pagesize; ++i) | |
7107 | if (*(data + i) != *(data2 + i)) | |
7108 | return 11; | |
7109 | ||
7110 | /* Finally, make sure that changes to the mapped area do not | |
7111 | percolate back to the file as seen by read(). (This is a bug on | |
7112 | some variants of i386 svr4.0.) */ | |
7113 | for (i = 0; i < pagesize; ++i) | |
7114 | *(data2 + i) = *(data2 + i) + 1; | |
7115 | data3 = (char *) malloc (pagesize); | |
7116 | if (!data3) | |
7117 | return 12; | |
7118 | if (read (fd, data3, pagesize) != pagesize) | |
7119 | return 13; | |
7120 | for (i = 0; i < pagesize; ++i) | |
7121 | if (*(data + i) != *(data3 + i)) | |
7122 | return 14; | |
7123 | close (fd); | |
7124 | return 0; | |
7125 | } | |
7126 | _ACEOF | |
7127 | if ac_fn_c_try_run "$LINENO"; then : | |
7128 | ac_cv_func_mmap_fixed_mapped=yes | |
7129 | else | |
7130 | ac_cv_func_mmap_fixed_mapped=no | |
7131 | fi | |
7132 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7133 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7134 | fi | |
7135 | ||
7136 | fi | |
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
7138 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
7139 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
7140 | ||
7141 | $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h | |
7142 | ||
7143 | fi | |
7144 | rm -f conftest.mmap conftest.txt | |
7145 | ||
7146 | ||
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 | |
7148 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
7149 | if ${ac_cv_gnu_library_2_1+:} false; then : | |
7150 | $as_echo_n "(cached) " >&6 | |
7151 | else | |
7152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7153 | /* end confdefs.h. */ | |
7154 | ||
7155 | #include <features.h> | |
7156 | #ifdef __GNU_LIBRARY__ | |
7157 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
7158 | Lucky GNU user | |
7159 | #endif | |
7160 | #endif | |
7161 | ||
7162 | _ACEOF | |
7163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7164 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : | |
7165 | ac_cv_gnu_library_2_1=yes | |
7166 | else | |
7167 | ac_cv_gnu_library_2_1=no | |
7168 | fi | |
7169 | rm -f conftest* | |
7170 | ||
7171 | ||
7172 | ||
7173 | fi | |
7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 | |
7175 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
7176 | ||
7177 | GLIBC21="$ac_cv_gnu_library_2_1" | |
7178 | ||
7179 | ||
7180 | ||
7181 | ||
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 | |
7183 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
7184 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : | |
7185 | $as_echo_n "(cached) " >&6 | |
7186 | else | |
7187 | ||
7188 | if test "$cross_compiling" = yes; then : | |
7189 | ||
7190 | # Guess based on the CPU. | |
7191 | case "$host_cpu" in | |
7192 | alpha* | i3456786 | m68k | s390*) | |
7193 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7194 | *) | |
7195 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7196 | esac | |
7197 | ||
7198 | else | |
7199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7200 | /* end confdefs.h. */ | |
7201 | ||
7202 | #include <stdlib.h> | |
7203 | #include <signal.h> | |
7204 | ||
7205 | static void | |
7206 | #ifdef __cplusplus | |
7207 | sigfpe_handler (int sig) | |
7208 | #else | |
7209 | sigfpe_handler (sig) int sig; | |
7210 | #endif | |
7211 | { | |
7212 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7213 | exit (sig != SIGFPE); | |
7214 | } | |
7215 | ||
7216 | int x = 1; | |
7217 | int y = 0; | |
7218 | int z; | |
7219 | int nan; | |
7220 | ||
7221 | int main () | |
7222 | { | |
7223 | signal (SIGFPE, sigfpe_handler); | |
7224 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7225 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7226 | signal (SIGTRAP, sigfpe_handler); | |
7227 | #endif | |
7228 | /* Linux/SPARC yields signal SIGILL. */ | |
7229 | #if defined (__sparc__) && defined (__linux__) | |
7230 | signal (SIGILL, sigfpe_handler); | |
7231 | #endif | |
7232 | ||
7233 | z = x / y; | |
7234 | nan = y / y; | |
7235 | exit (1); | |
7236 | } | |
7237 | ||
7238 | _ACEOF | |
7239 | if ac_fn_c_try_run "$LINENO"; then : | |
7240 | gt_cv_int_divbyzero_sigfpe=yes | |
7241 | else | |
7242 | gt_cv_int_divbyzero_sigfpe=no | |
7243 | fi | |
7244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7245 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7246 | fi | |
7247 | ||
7248 | ||
7249 | fi | |
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 | |
7251 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
7252 | case "$gt_cv_int_divbyzero_sigfpe" in | |
7253 | *yes) value=1;; | |
7254 | *) value=0;; | |
7255 | esac | |
7256 | ||
7257 | cat >>confdefs.h <<_ACEOF | |
7258 | @%:@define INTDIV0_RAISES_SIGFPE $value | |
7259 | _ACEOF | |
7260 | ||
7261 | ||
7262 | ||
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 | |
7264 | $as_echo_n "checking for inttypes.h... " >&6; } | |
7265 | if ${jm_ac_cv_header_inttypes_h+:} false; then : | |
7266 | $as_echo_n "(cached) " >&6 | |
7267 | else | |
7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7269 | /* end confdefs.h. */ | |
7270 | #include <sys/types.h> | |
7271 | #include <inttypes.h> | |
7272 | int | |
7273 | main () | |
7274 | { | |
7275 | uintmax_t i = (uintmax_t) -1; | |
7276 | ; | |
7277 | return 0; | |
7278 | } | |
7279 | _ACEOF | |
7280 | if ac_fn_c_try_compile "$LINENO"; then : | |
7281 | jm_ac_cv_header_inttypes_h=yes | |
7282 | else | |
7283 | jm_ac_cv_header_inttypes_h=no | |
7284 | fi | |
7285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7286 | fi | |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 | |
7288 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
7289 | if test $jm_ac_cv_header_inttypes_h = yes; then | |
7290 | ||
7291 | cat >>confdefs.h <<_ACEOF | |
7292 | @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
7293 | _ACEOF | |
7294 | ||
7295 | fi | |
7296 | ||
7297 | ||
7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 | |
7299 | $as_echo_n "checking for stdint.h... " >&6; } | |
7300 | if ${jm_ac_cv_header_stdint_h+:} false; then : | |
7301 | $as_echo_n "(cached) " >&6 | |
7302 | else | |
7303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7304 | /* end confdefs.h. */ | |
7305 | #include <sys/types.h> | |
7306 | #include <stdint.h> | |
7307 | int | |
7308 | main () | |
7309 | { | |
7310 | uintmax_t i = (uintmax_t) -1; | |
7311 | ; | |
7312 | return 0; | |
7313 | } | |
7314 | _ACEOF | |
7315 | if ac_fn_c_try_compile "$LINENO"; then : | |
7316 | jm_ac_cv_header_stdint_h=yes | |
7317 | else | |
7318 | jm_ac_cv_header_stdint_h=no | |
7319 | fi | |
7320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7321 | fi | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 | |
7323 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
7324 | if test $jm_ac_cv_header_stdint_h = yes; then | |
7325 | ||
7326 | cat >>confdefs.h <<_ACEOF | |
7327 | @%:@define HAVE_STDINT_H_WITH_UINTMAX 1 | |
7328 | _ACEOF | |
7329 | ||
7330 | fi | |
7331 | ||
7332 | ||
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 | |
7334 | $as_echo_n "checking for unsigned long long... " >&6; } | |
7335 | if ${ac_cv_type_unsigned_long_long+:} false; then : | |
7336 | $as_echo_n "(cached) " >&6 | |
7337 | else | |
7338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7339 | /* end confdefs.h. */ | |
7340 | unsigned long long ull = 1; int i = 63; | |
7341 | int | |
7342 | main () | |
7343 | { | |
7344 | unsigned long long ullmax = (unsigned long long) -1; | |
7345 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
7346 | ; | |
7347 | return 0; | |
7348 | } | |
7349 | _ACEOF | |
7350 | if ac_fn_c_try_link "$LINENO"; then : | |
7351 | ac_cv_type_unsigned_long_long=yes | |
7352 | else | |
7353 | ac_cv_type_unsigned_long_long=no | |
7354 | fi | |
7355 | rm -f core conftest.err conftest.$ac_objext \ | |
7356 | conftest$ac_exeext conftest.$ac_ext | |
7357 | fi | |
7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 | |
7359 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
7360 | if test $ac_cv_type_unsigned_long_long = yes; then | |
7361 | ||
7362 | $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h | |
7363 | ||
7364 | fi | |
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
7370 | ||
7371 | test $ac_cv_type_unsigned_long_long = yes \ | |
7372 | && ac_type='unsigned long long' \ | |
7373 | || ac_type='unsigned long' | |
7374 | ||
7375 | cat >>confdefs.h <<_ACEOF | |
7376 | @%:@define uintmax_t $ac_type | |
7377 | _ACEOF | |
7378 | ||
7379 | else | |
7380 | ||
7381 | $as_echo "@%:@define HAVE_UINTMAX_T 1" >>confdefs.h | |
7382 | ||
7383 | fi | |
7384 | ||
7385 | ||
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 | |
7387 | $as_echo_n "checking for inttypes.h... " >&6; } | |
7388 | if ${gt_cv_header_inttypes_h+:} false; then : | |
7389 | $as_echo_n "(cached) " >&6 | |
7390 | else | |
7391 | ||
7392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7393 | /* end confdefs.h. */ | |
7394 | #include <sys/types.h> | |
7395 | #include <inttypes.h> | |
7396 | int | |
7397 | main () | |
7398 | { | |
7399 | ||
7400 | ; | |
7401 | return 0; | |
7402 | } | |
7403 | _ACEOF | |
7404 | if ac_fn_c_try_compile "$LINENO"; then : | |
7405 | gt_cv_header_inttypes_h=yes | |
7406 | else | |
7407 | gt_cv_header_inttypes_h=no | |
7408 | fi | |
7409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7410 | ||
7411 | fi | |
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 | |
7413 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
7414 | if test $gt_cv_header_inttypes_h = yes; then | |
7415 | ||
7416 | cat >>confdefs.h <<_ACEOF | |
7417 | @%:@define HAVE_INTTYPES_H 1 | |
7418 | _ACEOF | |
7419 | ||
7420 | fi | |
7421 | ||
7422 | ||
7423 | ||
7424 | if test $gt_cv_header_inttypes_h = yes; then | |
7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
7426 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
7427 | if ${gt_cv_inttypes_pri_broken+:} false; then : | |
7428 | $as_echo_n "(cached) " >&6 | |
7429 | else | |
7430 | ||
7431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7432 | /* end confdefs.h. */ | |
7433 | #include <inttypes.h> | |
7434 | #ifdef PRId32 | |
7435 | char *p = PRId32; | |
7436 | #endif | |
7437 | ||
7438 | int | |
7439 | main () | |
7440 | { | |
7441 | ||
7442 | ; | |
7443 | return 0; | |
7444 | } | |
7445 | _ACEOF | |
7446 | if ac_fn_c_try_compile "$LINENO"; then : | |
7447 | gt_cv_inttypes_pri_broken=no | |
7448 | else | |
7449 | gt_cv_inttypes_pri_broken=yes | |
7450 | fi | |
7451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7452 | ||
7453 | fi | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 | |
7455 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
7456 | fi | |
7457 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7458 | ||
7459 | cat >>confdefs.h <<_ACEOF | |
7460 | @%:@define PRI_MACROS_BROKEN 1 | |
7461 | _ACEOF | |
7462 | ||
7463 | fi | |
7464 | ||
7465 | ||
7466 | if test "X$prefix" = "XNONE"; then | |
7467 | acl_final_prefix="$ac_default_prefix" | |
7468 | else | |
7469 | acl_final_prefix="$prefix" | |
7470 | fi | |
7471 | if test "X$exec_prefix" = "XNONE"; then | |
7472 | acl_final_exec_prefix='${prefix}' | |
7473 | else | |
7474 | acl_final_exec_prefix="$exec_prefix" | |
7475 | fi | |
7476 | acl_save_prefix="$prefix" | |
7477 | prefix="$acl_final_prefix" | |
7478 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7479 | prefix="$acl_save_prefix" | |
7480 | ||
7481 | ||
7482 | @%:@ Check whether --with-gnu-ld was given. | |
7483 | if test "${with_gnu_ld+set}" = set; then : | |
7484 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7485 | else | |
7486 | with_gnu_ld=no | |
7487 | fi | |
7488 | ||
7489 | # Prepare PATH_SEPARATOR. | |
7490 | # The user is always right. | |
7491 | if test "${PATH_SEPARATOR+set}" != set; then | |
7492 | echo "#! /bin/sh" >conf$$.sh | |
7493 | echo "exit 0" >>conf$$.sh | |
7494 | chmod +x conf$$.sh | |
7495 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7496 | PATH_SEPARATOR=';' | |
7497 | else | |
7498 | PATH_SEPARATOR=: | |
7499 | fi | |
7500 | rm -f conf$$.sh | |
7501 | fi | |
7502 | ac_prog=ld | |
7503 | if test "$GCC" = yes; then | |
7504 | # Check if gcc -print-prog-name=ld gives a path. | |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
7506 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
7507 | case $host in | |
7508 | *-*-mingw*) | |
7509 | # gcc leaves a trailing carriage return which upsets mingw | |
7510 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7511 | *) | |
7512 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7513 | esac | |
7514 | case $ac_prog in | |
7515 | # Accept absolute paths. | |
7516 | [\\/]* | [A-Za-z]:[\\/]*) | |
7517 | re_direlt='/[^/][^/]*/\.\./' | |
7518 | # Canonicalize the path of ld | |
7519 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
7520 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
7521 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7522 | done | |
7523 | test -z "$LD" && LD="$ac_prog" | |
7524 | ;; | |
7525 | "") | |
7526 | # If it fails, then pretend we aren't using GCC. | |
7527 | ac_prog=ld | |
7528 | ;; | |
7529 | *) | |
7530 | # If it is relative, then search for the first ld in PATH. | |
7531 | with_gnu_ld=unknown | |
7532 | ;; | |
7533 | esac | |
7534 | elif test "$with_gnu_ld" = yes; then | |
7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7536 | $as_echo_n "checking for GNU ld... " >&6; } | |
7537 | else | |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7539 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7540 | fi | |
7541 | if ${acl_cv_path_LD+:} false; then : | |
7542 | $as_echo_n "(cached) " >&6 | |
7543 | else | |
7544 | if test -z "$LD"; then | |
7545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
7546 | for ac_dir in $PATH; do | |
7547 | test -z "$ac_dir" && ac_dir=. | |
7548 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7549 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7550 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7551 | # but apparently some GNU ld's only accept -v. | |
7552 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7553 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
7554 | test "$with_gnu_ld" != no && break | |
7555 | else | |
7556 | test "$with_gnu_ld" != yes && break | |
7557 | fi | |
7558 | fi | |
7559 | done | |
7560 | IFS="$ac_save_ifs" | |
7561 | else | |
7562 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7563 | fi | |
7564 | fi | |
7565 | ||
7566 | LD="$acl_cv_path_LD" | |
7567 | if test -n "$LD"; then | |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7569 | $as_echo "$LD" >&6; } | |
7570 | else | |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7572 | $as_echo "no" >&6; } | |
7573 | fi | |
7574 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7576 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7577 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
7578 | $as_echo_n "(cached) " >&6 | |
7579 | else | |
7580 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
7581 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
7582 | acl_cv_prog_gnu_ld=yes | |
7583 | else | |
7584 | acl_cv_prog_gnu_ld=no | |
7585 | fi | |
7586 | fi | |
7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7588 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7589 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7590 | ||
7591 | ||
7592 | ||
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
7594 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
7595 | if ${acl_cv_rpath+:} false; then : | |
7596 | $as_echo_n "(cached) " >&6 | |
7597 | else | |
7598 | ||
7599 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
7600 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7601 | . ./conftest.sh | |
7602 | rm -f ./conftest.sh | |
7603 | acl_cv_rpath=done | |
7604 | ||
7605 | fi | |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
7607 | $as_echo "$acl_cv_rpath" >&6; } | |
7608 | wl="$acl_cv_wl" | |
7609 | libext="$acl_cv_libext" | |
7610 | shlibext="$acl_cv_shlibext" | |
7611 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7612 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7613 | hardcode_direct="$acl_cv_hardcode_direct" | |
7614 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7615 | @%:@ Check whether --enable-rpath was given. | |
7616 | if test "${enable_rpath+set}" = set; then : | |
7617 | enableval=$enable_rpath; : | |
7618 | else | |
7619 | enable_rpath=yes | |
7620 | fi | |
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | ||
7629 | use_additional=yes | |
7630 | ||
7631 | acl_save_prefix="$prefix" | |
7632 | prefix="$acl_final_prefix" | |
7633 | acl_save_exec_prefix="$exec_prefix" | |
7634 | exec_prefix="$acl_final_exec_prefix" | |
7635 | ||
7636 | eval additional_includedir=\"$includedir\" | |
7637 | eval additional_libdir=\"$libdir\" | |
7638 | ||
7639 | exec_prefix="$acl_save_exec_prefix" | |
7640 | prefix="$acl_save_prefix" | |
7641 | ||
7642 | ||
7643 | @%:@ Check whether --with-libiconv-prefix was given. | |
7644 | if test "${with_libiconv_prefix+set}" = set; then : | |
7645 | withval=$with_libiconv_prefix; | |
7646 | if test "X$withval" = "Xno"; then | |
7647 | use_additional=no | |
7648 | else | |
7649 | if test "X$withval" = "X"; then | |
7650 | ||
7651 | acl_save_prefix="$prefix" | |
7652 | prefix="$acl_final_prefix" | |
7653 | acl_save_exec_prefix="$exec_prefix" | |
7654 | exec_prefix="$acl_final_exec_prefix" | |
7655 | ||
7656 | eval additional_includedir=\"$includedir\" | |
7657 | eval additional_libdir=\"$libdir\" | |
7658 | ||
7659 | exec_prefix="$acl_save_exec_prefix" | |
7660 | prefix="$acl_save_prefix" | |
7661 | ||
7662 | else | |
7663 | additional_includedir="$withval/include" | |
7664 | additional_libdir="$withval/lib" | |
7665 | fi | |
7666 | fi | |
7667 | ||
7668 | fi | |
7669 | ||
7670 | LIBICONV= | |
7671 | LTLIBICONV= | |
7672 | INCICONV= | |
7673 | rpathdirs= | |
7674 | ltrpathdirs= | |
7675 | names_already_handled= | |
7676 | names_next_round='iconv ' | |
7677 | while test -n "$names_next_round"; do | |
7678 | names_this_round="$names_next_round" | |
7679 | names_next_round= | |
7680 | for name in $names_this_round; do | |
7681 | already_handled= | |
7682 | for n in $names_already_handled; do | |
7683 | if test "$n" = "$name"; then | |
7684 | already_handled=yes | |
7685 | break | |
7686 | fi | |
7687 | done | |
7688 | if test -z "$already_handled"; then | |
7689 | names_already_handled="$names_already_handled $name" | |
7690 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
7691 | eval value=\"\$HAVE_LIB$uppername\" | |
7692 | if test -n "$value"; then | |
7693 | if test "$value" = yes; then | |
7694 | eval value=\"\$LIB$uppername\" | |
7695 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7696 | eval value=\"\$LTLIB$uppername\" | |
7697 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7698 | else | |
7699 | : | |
7700 | fi | |
7701 | else | |
7702 | found_dir= | |
7703 | found_la= | |
7704 | found_so= | |
7705 | found_a= | |
7706 | if test $use_additional = yes; then | |
7707 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
7708 | found_dir="$additional_libdir" | |
7709 | found_so="$additional_libdir/lib$name.$shlibext" | |
7710 | if test -f "$additional_libdir/lib$name.la"; then | |
7711 | found_la="$additional_libdir/lib$name.la" | |
7712 | fi | |
7713 | else | |
7714 | if test -f "$additional_libdir/lib$name.$libext"; then | |
7715 | found_dir="$additional_libdir" | |
7716 | found_a="$additional_libdir/lib$name.$libext" | |
7717 | if test -f "$additional_libdir/lib$name.la"; then | |
7718 | found_la="$additional_libdir/lib$name.la" | |
7719 | fi | |
7720 | fi | |
7721 | fi | |
7722 | fi | |
7723 | if test "X$found_dir" = "X"; then | |
7724 | for x in $LDFLAGS $LTLIBICONV; do | |
7725 | ||
7726 | acl_save_prefix="$prefix" | |
7727 | prefix="$acl_final_prefix" | |
7728 | acl_save_exec_prefix="$exec_prefix" | |
7729 | exec_prefix="$acl_final_exec_prefix" | |
7730 | eval x=\"$x\" | |
7731 | exec_prefix="$acl_save_exec_prefix" | |
7732 | prefix="$acl_save_prefix" | |
7733 | ||
7734 | case "$x" in | |
7735 | -L*) | |
7736 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7737 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
7738 | found_dir="$dir" | |
7739 | found_so="$dir/lib$name.$shlibext" | |
7740 | if test -f "$dir/lib$name.la"; then | |
7741 | found_la="$dir/lib$name.la" | |
7742 | fi | |
7743 | else | |
7744 | if test -f "$dir/lib$name.$libext"; then | |
7745 | found_dir="$dir" | |
7746 | found_a="$dir/lib$name.$libext" | |
7747 | if test -f "$dir/lib$name.la"; then | |
7748 | found_la="$dir/lib$name.la" | |
7749 | fi | |
7750 | fi | |
7751 | fi | |
7752 | ;; | |
7753 | esac | |
7754 | if test "X$found_dir" != "X"; then | |
7755 | break | |
7756 | fi | |
7757 | done | |
7758 | fi | |
7759 | if test "X$found_dir" != "X"; then | |
7760 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7761 | if test "X$found_so" != "X"; then | |
7762 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
7763 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7764 | else | |
7765 | haveit= | |
7766 | for x in $ltrpathdirs; do | |
7767 | if test "X$x" = "X$found_dir"; then | |
7768 | haveit=yes | |
7769 | break | |
7770 | fi | |
7771 | done | |
7772 | if test -z "$haveit"; then | |
7773 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7774 | fi | |
7775 | if test "$hardcode_direct" = yes; then | |
7776 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7777 | else | |
7778 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
7779 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7780 | haveit= | |
7781 | for x in $rpathdirs; do | |
7782 | if test "X$x" = "X$found_dir"; then | |
7783 | haveit=yes | |
7784 | break | |
7785 | fi | |
7786 | done | |
7787 | if test -z "$haveit"; then | |
7788 | rpathdirs="$rpathdirs $found_dir" | |
7789 | fi | |
7790 | else | |
7791 | haveit= | |
7792 | for x in $LDFLAGS $LIBICONV; do | |
7793 | ||
7794 | acl_save_prefix="$prefix" | |
7795 | prefix="$acl_final_prefix" | |
7796 | acl_save_exec_prefix="$exec_prefix" | |
7797 | exec_prefix="$acl_final_exec_prefix" | |
7798 | eval x=\"$x\" | |
7799 | exec_prefix="$acl_save_exec_prefix" | |
7800 | prefix="$acl_save_prefix" | |
7801 | ||
7802 | if test "X$x" = "X-L$found_dir"; then | |
7803 | haveit=yes | |
7804 | break | |
7805 | fi | |
7806 | done | |
7807 | if test -z "$haveit"; then | |
7808 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7809 | fi | |
7810 | if test "$hardcode_minus_L" != no; then | |
7811 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7812 | else | |
7813 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7814 | fi | |
7815 | fi | |
7816 | fi | |
7817 | fi | |
7818 | else | |
7819 | if test "X$found_a" != "X"; then | |
7820 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7821 | else | |
7822 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7823 | fi | |
7824 | fi | |
7825 | additional_includedir= | |
7826 | case "$found_dir" in | |
7827 | */lib | */lib/) | |
7828 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
7829 | additional_includedir="$basedir/include" | |
7830 | ;; | |
7831 | esac | |
7832 | if test "X$additional_includedir" != "X"; then | |
7833 | if test "X$additional_includedir" != "X/usr/include"; then | |
7834 | haveit= | |
7835 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7836 | if test -n "$GCC"; then | |
7837 | case $host_os in | |
7838 | linux*) haveit=yes;; | |
7839 | esac | |
7840 | fi | |
7841 | fi | |
7842 | if test -z "$haveit"; then | |
7843 | for x in $CPPFLAGS $INCICONV; do | |
7844 | ||
7845 | acl_save_prefix="$prefix" | |
7846 | prefix="$acl_final_prefix" | |
7847 | acl_save_exec_prefix="$exec_prefix" | |
7848 | exec_prefix="$acl_final_exec_prefix" | |
7849 | eval x=\"$x\" | |
7850 | exec_prefix="$acl_save_exec_prefix" | |
7851 | prefix="$acl_save_prefix" | |
7852 | ||
7853 | if test "X$x" = "X-I$additional_includedir"; then | |
7854 | haveit=yes | |
7855 | break | |
7856 | fi | |
7857 | done | |
7858 | if test -z "$haveit"; then | |
7859 | if test -d "$additional_includedir"; then | |
7860 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7861 | fi | |
7862 | fi | |
7863 | fi | |
7864 | fi | |
7865 | fi | |
7866 | if test -n "$found_la"; then | |
7867 | save_libdir="$libdir" | |
7868 | case "$found_la" in | |
7869 | */* | *\\*) . "$found_la" ;; | |
7870 | *) . "./$found_la" ;; | |
7871 | esac | |
7872 | libdir="$save_libdir" | |
7873 | for dep in $dependency_libs; do | |
7874 | case "$dep" in | |
7875 | -L*) | |
7876 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7877 | if test "X$additional_libdir" != "X/usr/lib"; then | |
7878 | haveit= | |
7879 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
7880 | if test -n "$GCC"; then | |
7881 | case $host_os in | |
7882 | linux*) haveit=yes;; | |
7883 | esac | |
7884 | fi | |
7885 | fi | |
7886 | if test -z "$haveit"; then | |
7887 | haveit= | |
7888 | for x in $LDFLAGS $LIBICONV; do | |
7889 | ||
7890 | acl_save_prefix="$prefix" | |
7891 | prefix="$acl_final_prefix" | |
7892 | acl_save_exec_prefix="$exec_prefix" | |
7893 | exec_prefix="$acl_final_exec_prefix" | |
7894 | eval x=\"$x\" | |
7895 | exec_prefix="$acl_save_exec_prefix" | |
7896 | prefix="$acl_save_prefix" | |
7897 | ||
7898 | if test "X$x" = "X-L$additional_libdir"; then | |
7899 | haveit=yes | |
7900 | break | |
7901 | fi | |
7902 | done | |
7903 | if test -z "$haveit"; then | |
7904 | if test -d "$additional_libdir"; then | |
7905 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7906 | fi | |
7907 | fi | |
7908 | haveit= | |
7909 | for x in $LDFLAGS $LTLIBICONV; do | |
7910 | ||
7911 | acl_save_prefix="$prefix" | |
7912 | prefix="$acl_final_prefix" | |
7913 | acl_save_exec_prefix="$exec_prefix" | |
7914 | exec_prefix="$acl_final_exec_prefix" | |
7915 | eval x=\"$x\" | |
7916 | exec_prefix="$acl_save_exec_prefix" | |
7917 | prefix="$acl_save_prefix" | |
7918 | ||
7919 | if test "X$x" = "X-L$additional_libdir"; then | |
7920 | haveit=yes | |
7921 | break | |
7922 | fi | |
7923 | done | |
7924 | if test -z "$haveit"; then | |
7925 | if test -d "$additional_libdir"; then | |
7926 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7927 | fi | |
7928 | fi | |
7929 | fi | |
7930 | fi | |
7931 | ;; | |
7932 | -R*) | |
7933 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7934 | if test "$enable_rpath" != no; then | |
7935 | haveit= | |
7936 | for x in $rpathdirs; do | |
7937 | if test "X$x" = "X$dir"; then | |
7938 | haveit=yes | |
7939 | break | |
7940 | fi | |
7941 | done | |
7942 | if test -z "$haveit"; then | |
7943 | rpathdirs="$rpathdirs $dir" | |
7944 | fi | |
7945 | haveit= | |
7946 | for x in $ltrpathdirs; do | |
7947 | if test "X$x" = "X$dir"; then | |
7948 | haveit=yes | |
7949 | break | |
7950 | fi | |
7951 | done | |
7952 | if test -z "$haveit"; then | |
7953 | ltrpathdirs="$ltrpathdirs $dir" | |
7954 | fi | |
7955 | fi | |
7956 | ;; | |
7957 | -l*) | |
7958 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7959 | ;; | |
7960 | *.la) | |
7961 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7962 | ;; | |
7963 | *) | |
7964 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7965 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7966 | ;; | |
7967 | esac | |
7968 | done | |
7969 | fi | |
7970 | else | |
7971 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7972 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7973 | fi | |
7974 | fi | |
7975 | fi | |
7976 | done | |
7977 | done | |
7978 | if test "X$rpathdirs" != "X"; then | |
7979 | if test -n "$hardcode_libdir_separator"; then | |
7980 | alldirs= | |
7981 | for found_dir in $rpathdirs; do | |
7982 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
7983 | done | |
7984 | acl_save_libdir="$libdir" | |
7985 | libdir="$alldirs" | |
7986 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7987 | libdir="$acl_save_libdir" | |
7988 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7989 | else | |
7990 | for found_dir in $rpathdirs; do | |
7991 | acl_save_libdir="$libdir" | |
7992 | libdir="$found_dir" | |
7993 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7994 | libdir="$acl_save_libdir" | |
7995 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7996 | done | |
7997 | fi | |
7998 | fi | |
7999 | if test "X$ltrpathdirs" != "X"; then | |
8000 | for found_dir in $ltrpathdirs; do | |
8001 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8002 | done | |
8003 | fi | |
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
8009 | stdlib.h string.h unistd.h sys/param.h | |
8010 | do : | |
8011 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8012 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
8013 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8014 | cat >>confdefs.h <<_ACEOF | |
8015 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8016 | _ACEOF | |
8017 | ||
8018 | fi | |
8019 | ||
8020 | done | |
8021 | ||
8022 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
8023 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \ | |
8024 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
8025 | __fsetlocking | |
8026 | do : | |
8027 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8028 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
8029 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8030 | cat >>confdefs.h <<_ACEOF | |
8031 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8032 | _ACEOF | |
8033 | ||
8034 | fi | |
8035 | done | |
8036 | ||
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | am_save_CPPFLAGS="$CPPFLAGS" | |
8044 | ||
8045 | for element in $INCICONV; do | |
8046 | haveit= | |
8047 | for x in $CPPFLAGS; do | |
8048 | ||
8049 | acl_save_prefix="$prefix" | |
8050 | prefix="$acl_final_prefix" | |
8051 | acl_save_exec_prefix="$exec_prefix" | |
8052 | exec_prefix="$acl_final_exec_prefix" | |
8053 | eval x=\"$x\" | |
8054 | exec_prefix="$acl_save_exec_prefix" | |
8055 | prefix="$acl_save_prefix" | |
8056 | ||
8057 | if test "X$x" = "X$element"; then | |
8058 | haveit=yes | |
8059 | break | |
8060 | fi | |
8061 | done | |
8062 | if test -z "$haveit"; then | |
8063 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8064 | fi | |
8065 | done | |
8066 | ||
8067 | ||
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
8069 | $as_echo_n "checking for iconv... " >&6; } | |
8070 | if ${am_cv_func_iconv+:} false; then : | |
8071 | $as_echo_n "(cached) " >&6 | |
8072 | else | |
8073 | ||
8074 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
8075 | am_cv_lib_iconv=no | |
8076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8077 | /* end confdefs.h. */ | |
8078 | #include <stdlib.h> | |
8079 | #include <iconv.h> | |
8080 | int | |
8081 | main () | |
8082 | { | |
8083 | iconv_t cd = iconv_open("",""); | |
8084 | iconv(cd,NULL,NULL,NULL,NULL); | |
8085 | iconv_close(cd); | |
8086 | ; | |
8087 | return 0; | |
8088 | } | |
8089 | _ACEOF | |
8090 | if ac_fn_c_try_link "$LINENO"; then : | |
8091 | am_cv_func_iconv=yes | |
8092 | fi | |
8093 | rm -f core conftest.err conftest.$ac_objext \ | |
8094 | conftest$ac_exeext conftest.$ac_ext | |
8095 | if test "$am_cv_func_iconv" != yes; then | |
8096 | am_save_LIBS="$LIBS" | |
8097 | LIBS="$LIBS $LIBICONV" | |
8098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8099 | /* end confdefs.h. */ | |
8100 | #include <stdlib.h> | |
8101 | #include <iconv.h> | |
8102 | int | |
8103 | main () | |
8104 | { | |
8105 | iconv_t cd = iconv_open("",""); | |
8106 | iconv(cd,NULL,NULL,NULL,NULL); | |
8107 | iconv_close(cd); | |
8108 | ; | |
8109 | return 0; | |
8110 | } | |
8111 | _ACEOF | |
8112 | if ac_fn_c_try_link "$LINENO"; then : | |
8113 | am_cv_lib_iconv=yes | |
8114 | am_cv_func_iconv=yes | |
8115 | fi | |
8116 | rm -f core conftest.err conftest.$ac_objext \ | |
8117 | conftest$ac_exeext conftest.$ac_ext | |
8118 | LIBS="$am_save_LIBS" | |
8119 | fi | |
8120 | ||
8121 | fi | |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
8123 | $as_echo "$am_cv_func_iconv" >&6; } | |
8124 | if test "$am_cv_func_iconv" = yes; then | |
8125 | ||
8126 | $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h | |
8127 | ||
8128 | fi | |
8129 | if test "$am_cv_lib_iconv" = yes; then | |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
8131 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
8133 | $as_echo "$LIBICONV" >&6; } | |
8134 | else | |
8135 | CPPFLAGS="$am_save_CPPFLAGS" | |
8136 | LIBICONV= | |
8137 | LTLIBICONV= | |
8138 | fi | |
8139 | ||
8140 | ||
8141 | ||
8142 | if test "$am_cv_func_iconv" = yes; then | |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
8144 | $as_echo_n "checking for iconv declaration... " >&6; } | |
8145 | if ${am_cv_proto_iconv+:} false; then : | |
8146 | $as_echo_n "(cached) " >&6 | |
8147 | else | |
8148 | ||
8149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8150 | /* end confdefs.h. */ | |
8151 | ||
8152 | #include <stdlib.h> | |
8153 | #include <iconv.h> | |
8154 | extern | |
8155 | #ifdef __cplusplus | |
8156 | "C" | |
8157 | #endif | |
8158 | #if defined(__STDC__) || defined(__cplusplus) | |
8159 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
8160 | #else | |
8161 | size_t iconv(); | |
8162 | #endif | |
8163 | ||
8164 | int | |
8165 | main () | |
8166 | { | |
8167 | ||
8168 | ; | |
8169 | return 0; | |
8170 | } | |
8171 | _ACEOF | |
8172 | if ac_fn_c_try_compile "$LINENO"; then : | |
8173 | am_cv_proto_iconv_arg1="" | |
8174 | else | |
8175 | am_cv_proto_iconv_arg1="const" | |
8176 | fi | |
8177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8178 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
8179 | fi | |
8180 | ||
8181 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
8183 | }$am_cv_proto_iconv" >&5 | |
8184 | $as_echo "${ac_t:- | |
8185 | }$am_cv_proto_iconv" >&6; } | |
8186 | ||
8187 | cat >>confdefs.h <<_ACEOF | |
8188 | @%:@define ICONV_CONST $am_cv_proto_iconv_arg1 | |
8189 | _ACEOF | |
8190 | ||
8191 | fi | |
8192 | ||
8193 | ||
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | |
8195 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
8196 | if ${am_cv_langinfo_codeset+:} false; then : | |
8197 | $as_echo_n "(cached) " >&6 | |
8198 | else | |
8199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8200 | /* end confdefs.h. */ | |
8201 | #include <langinfo.h> | |
8202 | int | |
8203 | main () | |
8204 | { | |
8205 | char* cs = nl_langinfo(CODESET); | |
8206 | ; | |
8207 | return 0; | |
8208 | } | |
8209 | _ACEOF | |
8210 | if ac_fn_c_try_link "$LINENO"; then : | |
8211 | am_cv_langinfo_codeset=yes | |
8212 | else | |
8213 | am_cv_langinfo_codeset=no | |
8214 | fi | |
8215 | rm -f core conftest.err conftest.$ac_objext \ | |
8216 | conftest$ac_exeext conftest.$ac_ext | |
8217 | ||
8218 | fi | |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 | |
8220 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
8221 | if test $am_cv_langinfo_codeset = yes; then | |
8222 | ||
8223 | $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h | |
8224 | ||
8225 | fi | |
8226 | ||
8227 | if test $ac_cv_header_locale_h = yes; then | |
8228 | ||
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
8230 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
8231 | if ${am_cv_val_LC_MESSAGES+:} false; then : | |
8232 | $as_echo_n "(cached) " >&6 | |
8233 | else | |
8234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8235 | /* end confdefs.h. */ | |
8236 | #include <locale.h> | |
8237 | int | |
8238 | main () | |
8239 | { | |
8240 | return LC_MESSAGES | |
8241 | ; | |
8242 | return 0; | |
8243 | } | |
8244 | _ACEOF | |
8245 | if ac_fn_c_try_link "$LINENO"; then : | |
8246 | am_cv_val_LC_MESSAGES=yes | |
8247 | else | |
8248 | am_cv_val_LC_MESSAGES=no | |
8249 | fi | |
8250 | rm -f core conftest.err conftest.$ac_objext \ | |
8251 | conftest$ac_exeext conftest.$ac_ext | |
8252 | fi | |
8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
8254 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
8255 | if test $am_cv_val_LC_MESSAGES = yes; then | |
8256 | ||
8257 | $as_echo "@%:@define HAVE_LC_MESSAGES 1" >>confdefs.h | |
8258 | ||
8259 | fi | |
8260 | ||
8261 | fi | |
8262 | ||
8263 | for ac_prog in bison | |
8264 | do | |
8265 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8266 | set dummy $ac_prog; ac_word=$2 | |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8268 | $as_echo_n "checking for $ac_word... " >&6; } | |
8269 | if ${ac_cv_prog_INTLBISON+:} false; then : | |
8270 | $as_echo_n "(cached) " >&6 | |
8271 | else | |
8272 | if test -n "$INTLBISON"; then | |
8273 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
8274 | else | |
8275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8276 | for as_dir in $PATH | |
8277 | do | |
8278 | IFS=$as_save_IFS | |
8279 | test -z "$as_dir" && as_dir=. | |
8280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8282 | ac_cv_prog_INTLBISON="$ac_prog" | |
8283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8284 | break 2 | |
8285 | fi | |
8286 | done | |
8287 | done | |
8288 | IFS=$as_save_IFS | |
8289 | ||
8290 | fi | |
8291 | fi | |
8292 | INTLBISON=$ac_cv_prog_INTLBISON | |
8293 | if test -n "$INTLBISON"; then | |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 | |
8295 | $as_echo "$INTLBISON" >&6; } | |
8296 | else | |
8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8298 | $as_echo "no" >&6; } | |
8299 | fi | |
8300 | ||
8301 | ||
8302 | test -n "$INTLBISON" && break | |
8303 | done | |
8304 | ||
8305 | if test -z "$INTLBISON"; then | |
8306 | ac_verc_fail=yes | |
8307 | else | |
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 | |
8309 | $as_echo_n "checking version of bison... " >&6; } | |
8310 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
8311 | case $ac_prog_version in | |
8312 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
8313 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
8314 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
8315 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
8316 | esac | |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
8318 | $as_echo "$ac_prog_version" >&6; } | |
8319 | fi | |
8320 | if test $ac_verc_fail = yes; then | |
8321 | INTLBISON=: | |
8322 | fi | |
8323 | ||
8324 | ||
8325 | ||
8326 | ||
8327 | ||
8328 | ||
8329 | ||
8330 | ||
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
8340 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
8341 | @%:@ Check whether --enable-nls was given. | |
8342 | if test "${enable_nls+set}" = set; then : | |
8343 | enableval=$enable_nls; USE_NLS=$enableval | |
8344 | else | |
8345 | USE_NLS=yes | |
8346 | fi | |
8347 | ||
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
8349 | $as_echo "$USE_NLS" >&6; } | |
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | BUILD_INCLUDED_LIBINTL=no | |
8355 | USE_INCLUDED_LIBINTL=no | |
8356 | ||
8357 | LIBINTL= | |
8358 | LTLIBINTL= | |
8359 | POSUB= | |
8360 | ||
8361 | if test "$USE_NLS" = "yes"; then | |
8362 | gt_use_preinstalled_gnugettext=no | |
8363 | ||
8364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 | |
8365 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
8366 | ||
8367 | @%:@ Check whether --with-included-gettext was given. | |
8368 | if test "${with_included_gettext+set}" = set; then : | |
8369 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
8370 | else | |
8371 | nls_cv_force_use_gnu_gettext=no | |
8372 | fi | |
8373 | ||
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 | |
8375 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
8376 | ||
8377 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
8378 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
8379 | ||
8380 | ||
8381 | ||
8382 | ||
8383 | ||
8384 | ||
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
8386 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
8387 | if ${gt_cv_func_gnugettext2_libc+:} false; then : | |
8388 | $as_echo_n "(cached) " >&6 | |
8389 | else | |
8390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8391 | /* end confdefs.h. */ | |
8392 | #include <libintl.h> | |
8393 | extern int _nl_msg_cat_cntr; | |
8394 | extern int *_nl_domain_bindings; | |
8395 | int | |
8396 | main () | |
8397 | { | |
8398 | bindtextdomain ("", ""); | |
8399 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings | |
8400 | ; | |
8401 | return 0; | |
8402 | } | |
8403 | _ACEOF | |
8404 | if ac_fn_c_try_link "$LINENO"; then : | |
8405 | gt_cv_func_gnugettext2_libc=yes | |
8406 | else | |
8407 | gt_cv_func_gnugettext2_libc=no | |
8408 | fi | |
8409 | rm -f core conftest.err conftest.$ac_objext \ | |
8410 | conftest$ac_exeext conftest.$ac_ext | |
8411 | fi | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 | |
8413 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
8414 | ||
8415 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then | |
8416 | ||
8417 | ||
8418 | ||
8419 | use_additional=yes | |
8420 | ||
8421 | acl_save_prefix="$prefix" | |
8422 | prefix="$acl_final_prefix" | |
8423 | acl_save_exec_prefix="$exec_prefix" | |
8424 | exec_prefix="$acl_final_exec_prefix" | |
8425 | ||
8426 | eval additional_includedir=\"$includedir\" | |
8427 | eval additional_libdir=\"$libdir\" | |
8428 | ||
8429 | exec_prefix="$acl_save_exec_prefix" | |
8430 | prefix="$acl_save_prefix" | |
8431 | ||
8432 | ||
8433 | @%:@ Check whether --with-libintl-prefix was given. | |
8434 | if test "${with_libintl_prefix+set}" = set; then : | |
8435 | withval=$with_libintl_prefix; | |
8436 | if test "X$withval" = "Xno"; then | |
8437 | use_additional=no | |
8438 | else | |
8439 | if test "X$withval" = "X"; then | |
8440 | ||
8441 | acl_save_prefix="$prefix" | |
8442 | prefix="$acl_final_prefix" | |
8443 | acl_save_exec_prefix="$exec_prefix" | |
8444 | exec_prefix="$acl_final_exec_prefix" | |
8445 | ||
8446 | eval additional_includedir=\"$includedir\" | |
8447 | eval additional_libdir=\"$libdir\" | |
8448 | ||
8449 | exec_prefix="$acl_save_exec_prefix" | |
8450 | prefix="$acl_save_prefix" | |
8451 | ||
8452 | else | |
8453 | additional_includedir="$withval/include" | |
8454 | additional_libdir="$withval/lib" | |
8455 | fi | |
8456 | fi | |
8457 | ||
8458 | fi | |
8459 | ||
8460 | LIBINTL= | |
8461 | LTLIBINTL= | |
8462 | INCINTL= | |
8463 | rpathdirs= | |
8464 | ltrpathdirs= | |
8465 | names_already_handled= | |
8466 | names_next_round='intl ' | |
8467 | while test -n "$names_next_round"; do | |
8468 | names_this_round="$names_next_round" | |
8469 | names_next_round= | |
8470 | for name in $names_this_round; do | |
8471 | already_handled= | |
8472 | for n in $names_already_handled; do | |
8473 | if test "$n" = "$name"; then | |
8474 | already_handled=yes | |
8475 | break | |
8476 | fi | |
8477 | done | |
8478 | if test -z "$already_handled"; then | |
8479 | names_already_handled="$names_already_handled $name" | |
8480 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
8481 | eval value=\"\$HAVE_LIB$uppername\" | |
8482 | if test -n "$value"; then | |
8483 | if test "$value" = yes; then | |
8484 | eval value=\"\$LIB$uppername\" | |
8485 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8486 | eval value=\"\$LTLIB$uppername\" | |
8487 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8488 | else | |
8489 | : | |
8490 | fi | |
8491 | else | |
8492 | found_dir= | |
8493 | found_la= | |
8494 | found_so= | |
8495 | found_a= | |
8496 | if test $use_additional = yes; then | |
8497 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
8498 | found_dir="$additional_libdir" | |
8499 | found_so="$additional_libdir/lib$name.$shlibext" | |
8500 | if test -f "$additional_libdir/lib$name.la"; then | |
8501 | found_la="$additional_libdir/lib$name.la" | |
8502 | fi | |
8503 | else | |
8504 | if test -f "$additional_libdir/lib$name.$libext"; then | |
8505 | found_dir="$additional_libdir" | |
8506 | found_a="$additional_libdir/lib$name.$libext" | |
8507 | if test -f "$additional_libdir/lib$name.la"; then | |
8508 | found_la="$additional_libdir/lib$name.la" | |
8509 | fi | |
8510 | fi | |
8511 | fi | |
8512 | fi | |
8513 | if test "X$found_dir" = "X"; then | |
8514 | for x in $LDFLAGS $LTLIBINTL; do | |
8515 | ||
8516 | acl_save_prefix="$prefix" | |
8517 | prefix="$acl_final_prefix" | |
8518 | acl_save_exec_prefix="$exec_prefix" | |
8519 | exec_prefix="$acl_final_exec_prefix" | |
8520 | eval x=\"$x\" | |
8521 | exec_prefix="$acl_save_exec_prefix" | |
8522 | prefix="$acl_save_prefix" | |
8523 | ||
8524 | case "$x" in | |
8525 | -L*) | |
8526 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8527 | if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
8528 | found_dir="$dir" | |
8529 | found_so="$dir/lib$name.$shlibext" | |
8530 | if test -f "$dir/lib$name.la"; then | |
8531 | found_la="$dir/lib$name.la" | |
8532 | fi | |
8533 | else | |
8534 | if test -f "$dir/lib$name.$libext"; then | |
8535 | found_dir="$dir" | |
8536 | found_a="$dir/lib$name.$libext" | |
8537 | if test -f "$dir/lib$name.la"; then | |
8538 | found_la="$dir/lib$name.la" | |
8539 | fi | |
8540 | fi | |
8541 | fi | |
8542 | ;; | |
8543 | esac | |
8544 | if test "X$found_dir" != "X"; then | |
8545 | break | |
8546 | fi | |
8547 | done | |
8548 | fi | |
8549 | if test "X$found_dir" != "X"; then | |
8550 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
8551 | if test "X$found_so" != "X"; then | |
8552 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
8553 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8554 | else | |
8555 | haveit= | |
8556 | for x in $ltrpathdirs; do | |
8557 | if test "X$x" = "X$found_dir"; then | |
8558 | haveit=yes | |
8559 | break | |
8560 | fi | |
8561 | done | |
8562 | if test -z "$haveit"; then | |
8563 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8564 | fi | |
8565 | if test "$hardcode_direct" = yes; then | |
8566 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8567 | else | |
8568 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
8569 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8570 | haveit= | |
8571 | for x in $rpathdirs; do | |
8572 | if test "X$x" = "X$found_dir"; then | |
8573 | haveit=yes | |
8574 | break | |
8575 | fi | |
8576 | done | |
8577 | if test -z "$haveit"; then | |
8578 | rpathdirs="$rpathdirs $found_dir" | |
8579 | fi | |
8580 | else | |
8581 | haveit= | |
8582 | for x in $LDFLAGS $LIBINTL; do | |
8583 | ||
8584 | acl_save_prefix="$prefix" | |
8585 | prefix="$acl_final_prefix" | |
8586 | acl_save_exec_prefix="$exec_prefix" | |
8587 | exec_prefix="$acl_final_exec_prefix" | |
8588 | eval x=\"$x\" | |
8589 | exec_prefix="$acl_save_exec_prefix" | |
8590 | prefix="$acl_save_prefix" | |
8591 | ||
8592 | if test "X$x" = "X-L$found_dir"; then | |
8593 | haveit=yes | |
8594 | break | |
8595 | fi | |
8596 | done | |
8597 | if test -z "$haveit"; then | |
8598 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
8599 | fi | |
8600 | if test "$hardcode_minus_L" != no; then | |
8601 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8602 | else | |
8603 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8604 | fi | |
8605 | fi | |
8606 | fi | |
8607 | fi | |
8608 | else | |
8609 | if test "X$found_a" != "X"; then | |
8610 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
8611 | else | |
8612 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
8613 | fi | |
8614 | fi | |
8615 | additional_includedir= | |
8616 | case "$found_dir" in | |
8617 | */lib | */lib/) | |
8618 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
8619 | additional_includedir="$basedir/include" | |
8620 | ;; | |
8621 | esac | |
8622 | if test "X$additional_includedir" != "X"; then | |
8623 | if test "X$additional_includedir" != "X/usr/include"; then | |
8624 | haveit= | |
8625 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8626 | if test -n "$GCC"; then | |
8627 | case $host_os in | |
8628 | linux*) haveit=yes;; | |
8629 | esac | |
8630 | fi | |
8631 | fi | |
8632 | if test -z "$haveit"; then | |
8633 | for x in $CPPFLAGS $INCINTL; do | |
8634 | ||
8635 | acl_save_prefix="$prefix" | |
8636 | prefix="$acl_final_prefix" | |
8637 | acl_save_exec_prefix="$exec_prefix" | |
8638 | exec_prefix="$acl_final_exec_prefix" | |
8639 | eval x=\"$x\" | |
8640 | exec_prefix="$acl_save_exec_prefix" | |
8641 | prefix="$acl_save_prefix" | |
8642 | ||
8643 | if test "X$x" = "X-I$additional_includedir"; then | |
8644 | haveit=yes | |
8645 | break | |
8646 | fi | |
8647 | done | |
8648 | if test -z "$haveit"; then | |
8649 | if test -d "$additional_includedir"; then | |
8650 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
8651 | fi | |
8652 | fi | |
8653 | fi | |
8654 | fi | |
8655 | fi | |
8656 | if test -n "$found_la"; then | |
8657 | save_libdir="$libdir" | |
8658 | case "$found_la" in | |
8659 | */* | *\\*) . "$found_la" ;; | |
8660 | *) . "./$found_la" ;; | |
8661 | esac | |
8662 | libdir="$save_libdir" | |
8663 | for dep in $dependency_libs; do | |
8664 | case "$dep" in | |
8665 | -L*) | |
8666 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8667 | if test "X$additional_libdir" != "X/usr/lib"; then | |
8668 | haveit= | |
8669 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
8670 | if test -n "$GCC"; then | |
8671 | case $host_os in | |
8672 | linux*) haveit=yes;; | |
8673 | esac | |
8674 | fi | |
8675 | fi | |
8676 | if test -z "$haveit"; then | |
8677 | haveit= | |
8678 | for x in $LDFLAGS $LIBINTL; do | |
8679 | ||
8680 | acl_save_prefix="$prefix" | |
8681 | prefix="$acl_final_prefix" | |
8682 | acl_save_exec_prefix="$exec_prefix" | |
8683 | exec_prefix="$acl_final_exec_prefix" | |
8684 | eval x=\"$x\" | |
8685 | exec_prefix="$acl_save_exec_prefix" | |
8686 | prefix="$acl_save_prefix" | |
8687 | ||
8688 | if test "X$x" = "X-L$additional_libdir"; then | |
8689 | haveit=yes | |
8690 | break | |
8691 | fi | |
8692 | done | |
8693 | if test -z "$haveit"; then | |
8694 | if test -d "$additional_libdir"; then | |
8695 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
8696 | fi | |
8697 | fi | |
8698 | haveit= | |
8699 | for x in $LDFLAGS $LTLIBINTL; do | |
8700 | ||
8701 | acl_save_prefix="$prefix" | |
8702 | prefix="$acl_final_prefix" | |
8703 | acl_save_exec_prefix="$exec_prefix" | |
8704 | exec_prefix="$acl_final_exec_prefix" | |
8705 | eval x=\"$x\" | |
8706 | exec_prefix="$acl_save_exec_prefix" | |
8707 | prefix="$acl_save_prefix" | |
8708 | ||
8709 | if test "X$x" = "X-L$additional_libdir"; then | |
8710 | haveit=yes | |
8711 | break | |
8712 | fi | |
8713 | done | |
8714 | if test -z "$haveit"; then | |
8715 | if test -d "$additional_libdir"; then | |
8716 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
8717 | fi | |
8718 | fi | |
8719 | fi | |
8720 | fi | |
8721 | ;; | |
8722 | -R*) | |
8723 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8724 | if test "$enable_rpath" != no; then | |
8725 | haveit= | |
8726 | for x in $rpathdirs; do | |
8727 | if test "X$x" = "X$dir"; then | |
8728 | haveit=yes | |
8729 | break | |
8730 | fi | |
8731 | done | |
8732 | if test -z "$haveit"; then | |
8733 | rpathdirs="$rpathdirs $dir" | |
8734 | fi | |
8735 | haveit= | |
8736 | for x in $ltrpathdirs; do | |
8737 | if test "X$x" = "X$dir"; then | |
8738 | haveit=yes | |
8739 | break | |
8740 | fi | |
8741 | done | |
8742 | if test -z "$haveit"; then | |
8743 | ltrpathdirs="$ltrpathdirs $dir" | |
8744 | fi | |
8745 | fi | |
8746 | ;; | |
8747 | -l*) | |
8748 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8749 | ;; | |
8750 | *.la) | |
8751 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8752 | ;; | |
8753 | *) | |
8754 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
8755 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
8756 | ;; | |
8757 | esac | |
8758 | done | |
8759 | fi | |
8760 | else | |
8761 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8762 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
8763 | fi | |
8764 | fi | |
8765 | fi | |
8766 | done | |
8767 | done | |
8768 | if test "X$rpathdirs" != "X"; then | |
8769 | if test -n "$hardcode_libdir_separator"; then | |
8770 | alldirs= | |
8771 | for found_dir in $rpathdirs; do | |
8772 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
8773 | done | |
8774 | acl_save_libdir="$libdir" | |
8775 | libdir="$alldirs" | |
8776 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8777 | libdir="$acl_save_libdir" | |
8778 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8779 | else | |
8780 | for found_dir in $rpathdirs; do | |
8781 | acl_save_libdir="$libdir" | |
8782 | libdir="$found_dir" | |
8783 | eval flag=\"$hardcode_libdir_flag_spec\" | |
8784 | libdir="$acl_save_libdir" | |
8785 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8786 | done | |
8787 | fi | |
8788 | fi | |
8789 | if test "X$ltrpathdirs" != "X"; then | |
8790 | for found_dir in $ltrpathdirs; do | |
8791 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
8792 | done | |
8793 | fi | |
8794 | ||
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
8796 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
8797 | if ${gt_cv_func_gnugettext2_libintl+:} false; then : | |
8798 | $as_echo_n "(cached) " >&6 | |
8799 | else | |
8800 | gt_save_CPPFLAGS="$CPPFLAGS" | |
8801 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
8802 | gt_save_LIBS="$LIBS" | |
8803 | LIBS="$LIBS $LIBINTL" | |
8804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8805 | /* end confdefs.h. */ | |
8806 | #include <libintl.h> | |
8807 | extern int _nl_msg_cat_cntr; | |
8808 | extern | |
8809 | #ifdef __cplusplus | |
8810 | "C" | |
8811 | #endif | |
8812 | const char *_nl_expand_alias (); | |
8813 | int | |
8814 | main () | |
8815 | { | |
8816 | bindtextdomain ("", ""); | |
8817 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
8818 | ; | |
8819 | return 0; | |
8820 | } | |
8821 | _ACEOF | |
8822 | if ac_fn_c_try_link "$LINENO"; then : | |
8823 | gt_cv_func_gnugettext2_libintl=yes | |
8824 | else | |
8825 | gt_cv_func_gnugettext2_libintl=no | |
8826 | fi | |
8827 | rm -f core conftest.err conftest.$ac_objext \ | |
8828 | conftest$ac_exeext conftest.$ac_ext | |
8829 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then | |
8830 | LIBS="$LIBS $LIBICONV" | |
8831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8832 | /* end confdefs.h. */ | |
8833 | #include <libintl.h> | |
8834 | extern int _nl_msg_cat_cntr; | |
8835 | extern | |
8836 | #ifdef __cplusplus | |
8837 | "C" | |
8838 | #endif | |
8839 | const char *_nl_expand_alias (); | |
8840 | int | |
8841 | main () | |
8842 | { | |
8843 | bindtextdomain ("", ""); | |
8844 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) | |
8845 | ; | |
8846 | return 0; | |
8847 | } | |
8848 | _ACEOF | |
8849 | if ac_fn_c_try_link "$LINENO"; then : | |
8850 | LIBINTL="$LIBINTL $LIBICONV" | |
8851 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
8852 | gt_cv_func_gnugettext2_libintl=yes | |
8853 | ||
8854 | fi | |
8855 | rm -f core conftest.err conftest.$ac_objext \ | |
8856 | conftest$ac_exeext conftest.$ac_ext | |
8857 | fi | |
8858 | CPPFLAGS="$gt_save_CPPFLAGS" | |
8859 | LIBS="$gt_save_LIBS" | |
8860 | fi | |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 | |
8862 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
8863 | fi | |
8864 | ||
8865 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ | |
8866 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
8867 | && test "$PACKAGE" != gettext-runtime \ | |
8868 | && test "$PACKAGE" != gettext-tools; }; then | |
8869 | gt_use_preinstalled_gnugettext=yes | |
8870 | else | |
8871 | LIBINTL= | |
8872 | LTLIBINTL= | |
8873 | INCINTL= | |
8874 | fi | |
8875 | ||
8876 | ||
8877 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then | |
8878 | nls_cv_use_gnu_gettext=yes | |
8879 | fi | |
8880 | fi | |
8881 | ||
8882 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8883 | BUILD_INCLUDED_LIBINTL=yes | |
8884 | USE_INCLUDED_LIBINTL=yes | |
8885 | LIBINTL="lib/intl/libintl.a $LIBICONV" | |
8886 | LTLIBINTL="lib/intl/libintl.a $LTLIBICONV" | |
8887 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
8888 | fi | |
8889 | ||
8890 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
8891 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8892 | CATOBJEXT=.gmo | |
8893 | fi | |
8894 | ||
8895 | ||
8896 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
8897 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8898 | ||
8899 | $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h | |
8900 | ||
8901 | else | |
8902 | USE_NLS=no | |
8903 | fi | |
8904 | fi | |
8905 | ||
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 | |
8907 | $as_echo_n "checking whether to use NLS... " >&6; } | |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
8909 | $as_echo "$USE_NLS" >&6; } | |
8910 | if test "$USE_NLS" = "yes"; then | |
8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
8912 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
8913 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8914 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
8915 | gt_source="external libintl" | |
8916 | else | |
8917 | gt_source="libc" | |
8918 | fi | |
8919 | else | |
8920 | gt_source="included intl directory" | |
8921 | fi | |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
8923 | $as_echo "$gt_source" >&6; } | |
8924 | fi | |
8925 | ||
8926 | if test "$USE_NLS" = "yes"; then | |
8927 | ||
8928 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8929 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then | |
8930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
8931 | $as_echo_n "checking how to link with libintl... " >&6; } | |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
8933 | $as_echo "$LIBINTL" >&6; } | |
8934 | ||
8935 | for element in $INCINTL; do | |
8936 | haveit= | |
8937 | for x in $CPPFLAGS; do | |
8938 | ||
8939 | acl_save_prefix="$prefix" | |
8940 | prefix="$acl_final_prefix" | |
8941 | acl_save_exec_prefix="$exec_prefix" | |
8942 | exec_prefix="$acl_final_exec_prefix" | |
8943 | eval x=\"$x\" | |
8944 | exec_prefix="$acl_save_exec_prefix" | |
8945 | prefix="$acl_save_prefix" | |
8946 | ||
8947 | if test "X$x" = "X$element"; then | |
8948 | haveit=yes | |
8949 | break | |
8950 | fi | |
8951 | done | |
8952 | if test -z "$haveit"; then | |
8953 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8954 | fi | |
8955 | done | |
8956 | ||
8957 | fi | |
8958 | ||
8959 | ||
8960 | $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h | |
8961 | ||
8962 | ||
8963 | $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h | |
8964 | ||
8965 | fi | |
8966 | ||
8967 | POSUB=po | |
8968 | fi | |
8969 | ||
8970 | ||
8971 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then | |
8972 | BUILD_INCLUDED_LIBINTL=yes | |
8973 | fi | |
8974 | ||
8975 | ||
8976 | ||
8977 | ||
8978 | ||
8979 | nls_cv_header_intl= | |
8980 | nls_cv_header_libgt= | |
8981 | ||
8982 | DATADIRNAME=share | |
8983 | ||
8984 | ||
8985 | INSTOBJEXT=.mo | |
8986 | ||
8987 | ||
8988 | GENCAT=gencat | |
8989 | ||
8990 | ||
8991 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
8992 | INTLOBJS="\$(GETTOBJS)" | |
8993 | fi | |
8994 | ||
8995 | ||
8996 | INTL_LIBTOOL_SUFFIX_PREFIX= | |
8997 | ||
8998 | ||
8999 | ||
9000 | INTLLIBS="$LIBINTL" | |
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | ||
9006 | ||
9007 | ||
9008 | ac_header_dirent=no | |
9009 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
9010 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
9012 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
9013 | if eval \${$as_ac_Header+:} false; then : | |
9014 | $as_echo_n "(cached) " >&6 | |
9015 | else | |
9016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9017 | /* end confdefs.h. */ | |
9018 | #include <sys/types.h> | |
9019 | #include <$ac_hdr> | |
9020 | ||
9021 | int | |
9022 | main () | |
9023 | { | |
9024 | if ((DIR *) 0) | |
9025 | return 0; | |
9026 | ; | |
9027 | return 0; | |
9028 | } | |
9029 | _ACEOF | |
9030 | if ac_fn_c_try_compile "$LINENO"; then : | |
9031 | eval "$as_ac_Header=yes" | |
9032 | else | |
9033 | eval "$as_ac_Header=no" | |
9034 | fi | |
9035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9036 | fi | |
9037 | eval ac_res=\$$as_ac_Header | |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
9039 | $as_echo "$ac_res" >&6; } | |
9040 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9041 | cat >>confdefs.h <<_ACEOF | |
9042 | @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
9043 | _ACEOF | |
9044 | ||
9045 | ac_header_dirent=$ac_hdr; break | |
9046 | fi | |
9047 | ||
9048 | done | |
9049 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9050 | if test $ac_header_dirent = dirent.h; then | |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
9052 | $as_echo_n "checking for library containing opendir... " >&6; } | |
9053 | if ${ac_cv_search_opendir+:} false; then : | |
9054 | $as_echo_n "(cached) " >&6 | |
9055 | else | |
9056 | ac_func_search_save_LIBS=$LIBS | |
9057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9058 | /* end confdefs.h. */ | |
9059 | ||
9060 | /* Override any GCC internal prototype to avoid an error. | |
9061 | Use char because int might match the return type of a GCC | |
9062 | builtin and then its argument prototype would still apply. */ | |
9063 | #ifdef __cplusplus | |
9064 | extern "C" | |
9065 | #endif | |
9066 | char opendir (); | |
9067 | int | |
9068 | main () | |
9069 | { | |
9070 | return opendir (); | |
9071 | ; | |
9072 | return 0; | |
9073 | } | |
9074 | _ACEOF | |
9075 | for ac_lib in '' dir; do | |
9076 | if test -z "$ac_lib"; then | |
9077 | ac_res="none required" | |
9078 | else | |
9079 | ac_res=-l$ac_lib | |
9080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9081 | fi | |
9082 | if ac_fn_c_try_link "$LINENO"; then : | |
9083 | ac_cv_search_opendir=$ac_res | |
9084 | fi | |
9085 | rm -f core conftest.err conftest.$ac_objext \ | |
9086 | conftest$ac_exeext | |
9087 | if ${ac_cv_search_opendir+:} false; then : | |
9088 | break | |
9089 | fi | |
9090 | done | |
9091 | if ${ac_cv_search_opendir+:} false; then : | |
9092 | ||
9093 | else | |
9094 | ac_cv_search_opendir=no | |
9095 | fi | |
9096 | rm conftest.$ac_ext | |
9097 | LIBS=$ac_func_search_save_LIBS | |
9098 | fi | |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
9100 | $as_echo "$ac_cv_search_opendir" >&6; } | |
9101 | ac_res=$ac_cv_search_opendir | |
9102 | if test "$ac_res" != no; then : | |
9103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9104 | ||
9105 | fi | |
9106 | ||
9107 | else | |
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
9109 | $as_echo_n "checking for library containing opendir... " >&6; } | |
9110 | if ${ac_cv_search_opendir+:} false; then : | |
9111 | $as_echo_n "(cached) " >&6 | |
9112 | else | |
9113 | ac_func_search_save_LIBS=$LIBS | |
9114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9115 | /* end confdefs.h. */ | |
9116 | ||
9117 | /* Override any GCC internal prototype to avoid an error. | |
9118 | Use char because int might match the return type of a GCC | |
9119 | builtin and then its argument prototype would still apply. */ | |
9120 | #ifdef __cplusplus | |
9121 | extern "C" | |
9122 | #endif | |
9123 | char opendir (); | |
9124 | int | |
9125 | main () | |
9126 | { | |
9127 | return opendir (); | |
9128 | ; | |
9129 | return 0; | |
9130 | } | |
9131 | _ACEOF | |
9132 | for ac_lib in '' x; do | |
9133 | if test -z "$ac_lib"; then | |
9134 | ac_res="none required" | |
9135 | else | |
9136 | ac_res=-l$ac_lib | |
9137 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9138 | fi | |
9139 | if ac_fn_c_try_link "$LINENO"; then : | |
9140 | ac_cv_search_opendir=$ac_res | |
9141 | fi | |
9142 | rm -f core conftest.err conftest.$ac_objext \ | |
9143 | conftest$ac_exeext | |
9144 | if ${ac_cv_search_opendir+:} false; then : | |
9145 | break | |
9146 | fi | |
9147 | done | |
9148 | if ${ac_cv_search_opendir+:} false; then : | |
9149 | ||
9150 | else | |
9151 | ac_cv_search_opendir=no | |
9152 | fi | |
9153 | rm conftest.$ac_ext | |
9154 | LIBS=$ac_func_search_save_LIBS | |
9155 | fi | |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
9157 | $as_echo "$ac_cv_search_opendir" >&6; } | |
9158 | ac_res=$ac_cv_search_opendir | |
9159 | if test "$ac_res" != no; then : | |
9160 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9161 | ||
9162 | fi | |
9163 | ||
9164 | fi | |
9165 | ||
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
9167 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
9168 | if ${ac_cv_header_time+:} false; then : | |
9169 | $as_echo_n "(cached) " >&6 | |
9170 | else | |
9171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9172 | /* end confdefs.h. */ | |
9173 | #include <sys/types.h> | |
9174 | #include <sys/time.h> | |
9175 | #include <time.h> | |
9176 | ||
9177 | int | |
9178 | main () | |
9179 | { | |
9180 | if ((struct tm *) 0) | |
9181 | return 0; | |
9182 | ; | |
9183 | return 0; | |
9184 | } | |
9185 | _ACEOF | |
9186 | if ac_fn_c_try_compile "$LINENO"; then : | |
9187 | ac_cv_header_time=yes | |
9188 | else | |
9189 | ac_cv_header_time=no | |
9190 | fi | |
9191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9192 | fi | |
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
9194 | $as_echo "$ac_cv_header_time" >&6; } | |
9195 | if test $ac_cv_header_time = yes; then | |
9196 | ||
9197 | $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
9198 | ||
9199 | fi | |
9200 | ||
9201 | ||
9202 | ||
9203 | for ac_header in inttypes.h | |
9204 | do : | |
9205 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
9206 | if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
9207 | cat >>confdefs.h <<_ACEOF | |
9208 | @%:@define HAVE_INTTYPES_H 1 | |
9209 | _ACEOF | |
9210 | ||
9211 | fi | |
9212 | ||
9213 | done | |
9214 | ||
9215 | ||
9216 | ||
9217 | for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \ | |
9218 | memory.h locale.h termcap.h termio.h termios.h dlfcn.h \ | |
9219 | stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \ | |
9220 | regex.h syslog.h ulimit.h | |
9221 | do : | |
9222 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9223 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9224 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9225 | cat >>confdefs.h <<_ACEOF | |
9226 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9227 | _ACEOF | |
9228 | ||
9229 | fi | |
9230 | ||
9231 | done | |
9232 | ||
9233 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \ | |
9234 | sys/resource.h sys/param.h sys/socket.h sys/stat.h \ | |
9235 | sys/time.h sys/times.h sys/types.h sys/wait.h | |
9236 | do : | |
9237 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9238 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9239 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9240 | cat >>confdefs.h <<_ACEOF | |
9241 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9242 | _ACEOF | |
9243 | ||
9244 | fi | |
9245 | ||
9246 | done | |
9247 | ||
9248 | for ac_header in netinet/in.h arpa/inet.h | |
9249 | do : | |
9250 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9251 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9252 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9253 | cat >>confdefs.h <<_ACEOF | |
9254 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9255 | _ACEOF | |
9256 | ||
9257 | fi | |
9258 | ||
9259 | done | |
9260 | ||
9261 | ||
9262 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " | |
9263 | #if HAVE_SYS_STREAM_H | |
9264 | # include <sys/stream.h> | |
9265 | #endif | |
9266 | ||
9267 | " | |
9268 | if test "x$ac_cv_header_sys_ptem_h" = xyes; then : | |
9269 | ||
9270 | fi | |
9271 | ||
9272 | ||
9273 | ||
9274 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
9275 | # for constant arguments. Useless! | |
9276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
9277 | $as_echo_n "checking for working alloca.h... " >&6; } | |
9278 | if ${ac_cv_working_alloca_h+:} false; then : | |
9279 | $as_echo_n "(cached) " >&6 | |
9280 | else | |
9281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9282 | /* end confdefs.h. */ | |
9283 | @%:@include <alloca.h> | |
9284 | int | |
9285 | main () | |
9286 | { | |
9287 | char *p = (char *) alloca (2 * sizeof (int)); | |
9288 | if (p) return 0; | |
9289 | ; | |
9290 | return 0; | |
9291 | } | |
9292 | _ACEOF | |
9293 | if ac_fn_c_try_link "$LINENO"; then : | |
9294 | ac_cv_working_alloca_h=yes | |
9295 | else | |
9296 | ac_cv_working_alloca_h=no | |
9297 | fi | |
9298 | rm -f core conftest.err conftest.$ac_objext \ | |
9299 | conftest$ac_exeext conftest.$ac_ext | |
9300 | fi | |
9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
9302 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
9303 | if test $ac_cv_working_alloca_h = yes; then | |
9304 | ||
9305 | $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h | |
9306 | ||
9307 | fi | |
9308 | ||
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
9310 | $as_echo_n "checking for alloca... " >&6; } | |
9311 | if ${ac_cv_func_alloca_works+:} false; then : | |
9312 | $as_echo_n "(cached) " >&6 | |
9313 | else | |
9314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9315 | /* end confdefs.h. */ | |
9316 | #ifdef __GNUC__ | |
9317 | # define alloca __builtin_alloca | |
9318 | #else | |
9319 | # ifdef _MSC_VER | |
9320 | # include <malloc.h> | |
9321 | # define alloca _alloca | |
9322 | # else | |
9323 | # ifdef HAVE_ALLOCA_H | |
9324 | # include <alloca.h> | |
9325 | # else | |
9326 | # ifdef _AIX | |
9327 | #pragma alloca | |
9328 | # else | |
9329 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
9330 | void *alloca (size_t); | |
9331 | # endif | |
9332 | # endif | |
9333 | # endif | |
9334 | # endif | |
9335 | #endif | |
9336 | ||
9337 | int | |
9338 | main () | |
9339 | { | |
9340 | char *p = (char *) alloca (1); | |
9341 | if (p) return 0; | |
9342 | ; | |
9343 | return 0; | |
9344 | } | |
9345 | _ACEOF | |
9346 | if ac_fn_c_try_link "$LINENO"; then : | |
9347 | ac_cv_func_alloca_works=yes | |
9348 | else | |
9349 | ac_cv_func_alloca_works=no | |
9350 | fi | |
9351 | rm -f core conftest.err conftest.$ac_objext \ | |
9352 | conftest$ac_exeext conftest.$ac_ext | |
9353 | fi | |
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
9355 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
9356 | ||
9357 | if test $ac_cv_func_alloca_works = yes; then | |
9358 | ||
9359 | $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h | |
9360 | ||
9361 | else | |
9362 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
9363 | # that cause trouble. Some versions do not even contain alloca or | |
9364 | # contain a buggy version. If you still want to use their alloca, | |
9365 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
9366 | ||
9367 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
9368 | ||
9369 | $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h | |
9370 | ||
9371 | ||
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
9373 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
9374 | if ${ac_cv_os_cray+:} false; then : | |
9375 | $as_echo_n "(cached) " >&6 | |
9376 | else | |
9377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9378 | /* end confdefs.h. */ | |
9379 | #if defined CRAY && ! defined CRAY2 | |
9380 | webecray | |
9381 | #else | |
9382 | wenotbecray | |
9383 | #endif | |
9384 | ||
9385 | _ACEOF | |
9386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9387 | $EGREP "webecray" >/dev/null 2>&1; then : | |
9388 | ac_cv_os_cray=yes | |
9389 | else | |
9390 | ac_cv_os_cray=no | |
9391 | fi | |
9392 | rm -f conftest* | |
9393 | ||
9394 | fi | |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
9396 | $as_echo "$ac_cv_os_cray" >&6; } | |
9397 | if test $ac_cv_os_cray = yes; then | |
9398 | for ac_func in _getb67 GETB67 getb67; do | |
9399 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9400 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9401 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9402 | ||
9403 | cat >>confdefs.h <<_ACEOF | |
9404 | @%:@define CRAY_STACKSEG_END $ac_func | |
9405 | _ACEOF | |
9406 | ||
9407 | break | |
9408 | fi | |
9409 | ||
9410 | done | |
9411 | fi | |
9412 | ||
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
9414 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
9415 | if ${ac_cv_c_stack_direction+:} false; then : | |
9416 | $as_echo_n "(cached) " >&6 | |
9417 | else | |
9418 | if test "$cross_compiling" = yes; then : | |
9419 | ac_cv_c_stack_direction=0 | |
9420 | else | |
9421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9422 | /* end confdefs.h. */ | |
9423 | $ac_includes_default | |
9424 | int | |
9425 | find_stack_direction () | |
9426 | { | |
9427 | static char *addr = 0; | |
9428 | auto char dummy; | |
9429 | if (addr == 0) | |
9430 | { | |
9431 | addr = &dummy; | |
9432 | return find_stack_direction (); | |
9433 | } | |
9434 | else | |
9435 | return (&dummy > addr) ? 1 : -1; | |
9436 | } | |
9437 | ||
9438 | int | |
9439 | main () | |
9440 | { | |
9441 | return find_stack_direction () < 0; | |
9442 | } | |
9443 | _ACEOF | |
9444 | if ac_fn_c_try_run "$LINENO"; then : | |
9445 | ac_cv_c_stack_direction=1 | |
9446 | else | |
9447 | ac_cv_c_stack_direction=-1 | |
9448 | fi | |
9449 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9450 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9451 | fi | |
9452 | ||
9453 | fi | |
9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
9455 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
9456 | cat >>confdefs.h <<_ACEOF | |
9457 | @%:@define STACK_DIRECTION $ac_cv_c_stack_direction | |
9458 | _ACEOF | |
9459 | ||
9460 | ||
9461 | fi | |
9462 | ||
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | |
9464 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
9465 | if ${ac_cv_func_getpgrp_void+:} false; then : | |
9466 | $as_echo_n "(cached) " >&6 | |
9467 | else | |
9468 | # Use it with a single arg. | |
9469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9470 | /* end confdefs.h. */ | |
9471 | $ac_includes_default | |
9472 | int | |
9473 | main () | |
9474 | { | |
9475 | getpgrp (0); | |
9476 | ; | |
9477 | return 0; | |
9478 | } | |
9479 | _ACEOF | |
9480 | if ac_fn_c_try_compile "$LINENO"; then : | |
9481 | ac_cv_func_getpgrp_void=no | |
9482 | else | |
9483 | ac_cv_func_getpgrp_void=yes | |
9484 | fi | |
9485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9486 | ||
9487 | fi | |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | |
9489 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
9490 | if test $ac_cv_func_getpgrp_void = yes; then | |
9491 | ||
9492 | $as_echo "@%:@define GETPGRP_VOID 1" >>confdefs.h | |
9493 | ||
9494 | fi | |
9495 | ||
9496 | if ${ac_cv_func_setvbuf_reversed+:} false; then : | |
9497 | $as_echo_n "(cached) " >&6 | |
9498 | else | |
9499 | ac_cv_func_setvbuf_reversed=no | |
9500 | fi | |
9501 | ||
9502 | ||
9503 | for ac_func in vprintf | |
9504 | do : | |
9505 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
9506 | if test "x$ac_cv_func_vprintf" = xyes; then : | |
9507 | cat >>confdefs.h <<_ACEOF | |
9508 | @%:@define HAVE_VPRINTF 1 | |
9509 | _ACEOF | |
9510 | ||
9511 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
9512 | if test "x$ac_cv_func__doprnt" = xyes; then : | |
9513 | ||
9514 | $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h | |
9515 | ||
9516 | fi | |
9517 | ||
9518 | fi | |
9519 | done | |
9520 | ||
9521 | ||
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 | |
9523 | $as_echo_n "checking for working strcoll... " >&6; } | |
9524 | if ${ac_cv_func_strcoll_works+:} false; then : | |
9525 | $as_echo_n "(cached) " >&6 | |
9526 | else | |
9527 | if test "$cross_compiling" = yes; then : | |
9528 | ac_cv_func_strcoll_works=no | |
9529 | else | |
9530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9531 | /* end confdefs.h. */ | |
9532 | $ac_includes_default | |
9533 | int | |
9534 | main () | |
9535 | { | |
9536 | return (strcoll ("abc", "def") >= 0 || | |
9537 | strcoll ("ABC", "DEF") >= 0 || | |
9538 | strcoll ("123", "456") >= 0) | |
9539 | ; | |
9540 | return 0; | |
9541 | } | |
9542 | _ACEOF | |
9543 | if ac_fn_c_try_run "$LINENO"; then : | |
9544 | ac_cv_func_strcoll_works=yes | |
9545 | else | |
9546 | ac_cv_func_strcoll_works=no | |
9547 | fi | |
9548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9550 | fi | |
9551 | ||
9552 | fi | |
9553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 | |
9554 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
9555 | if test $ac_cv_func_strcoll_works = yes; then | |
9556 | ||
9557 | $as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h | |
9558 | ||
9559 | fi | |
9560 | ||
9561 | ||
9562 | ||
9563 | if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then | |
9564 | MALLOC_TARGET=alloca | |
9565 | MALLOC_SRC=alloca.c | |
9566 | ||
9567 | MALLOC_LIB='-lmalloc' | |
9568 | MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a' | |
9569 | MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)' | |
9570 | MALLOC_DEP='$(MALLOC_LIBRARY)' | |
9571 | fi | |
9572 | ||
9573 | if test "$ac_cv_func_vprintf" = no; then | |
9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of vprintf in stdio.h" >&5 | |
9575 | $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; } | |
9576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9577 | /* end confdefs.h. */ | |
9578 | #include <stdio.h> | |
9579 | ||
9580 | _ACEOF | |
9581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9582 | $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then : | |
9583 | ac_cv_func_vprintf=yes | |
9584 | fi | |
9585 | rm -f conftest* | |
9586 | ||
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vprintf" >&5 | |
9588 | $as_echo "$ac_cv_func_vprintf" >&6; } | |
9589 | if test $ac_cv_func_vprintf = yes; then | |
9590 | $as_echo "@%:@define HAVE_VPRINTF 1" >>confdefs.h | |
9591 | ||
9592 | fi | |
9593 | fi | |
9594 | ||
9595 | if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then | |
9596 | case " $LIB@&t@OBJS " in | |
9597 | *" vprint.$ac_objext "* ) ;; | |
9598 | *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext" | |
9599 | ;; | |
9600 | esac | |
9601 | ||
9602 | fi | |
9603 | ||
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
9605 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
9606 | if ${ac_cv_type_signal+:} false; then : | |
9607 | $as_echo_n "(cached) " >&6 | |
9608 | else | |
9609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9610 | /* end confdefs.h. */ | |
9611 | #include <sys/types.h> | |
9612 | #include <signal.h> | |
9613 | ||
9614 | int | |
9615 | main () | |
9616 | { | |
9617 | return *(signal (0, 0)) (0) == 1; | |
9618 | ; | |
9619 | return 0; | |
9620 | } | |
9621 | _ACEOF | |
9622 | if ac_fn_c_try_compile "$LINENO"; then : | |
9623 | ac_cv_type_signal=int | |
9624 | else | |
9625 | ac_cv_type_signal=void | |
9626 | fi | |
9627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9628 | fi | |
9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
9630 | $as_echo "$ac_cv_type_signal" >&6; } | |
9631 | ||
9632 | cat >>confdefs.h <<_ACEOF | |
9633 | @%:@define RETSIGTYPE $ac_cv_type_signal | |
9634 | _ACEOF | |
9635 | ||
9636 | ||
9637 | ||
9638 | ac_fn_c_check_func "$LINENO" "__setostype" "ac_cv_func___setostype" | |
9639 | if test "x$ac_cv_func___setostype" = xyes; then : | |
9640 | $as_echo "@%:@define HAVE_SETOSTYPE 1" >>confdefs.h | |
9641 | ||
9642 | fi | |
9643 | ||
9644 | ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" | |
9645 | if test "x$ac_cv_func_wait3" = xyes; then : | |
9646 | $as_echo "@%:@define HAVE_WAIT3 1" >>confdefs.h | |
9647 | ||
9648 | fi | |
9649 | ||
9650 | ||
9651 | ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" | |
9652 | if test "x$ac_cv_func_mkfifo" = xyes; then : | |
9653 | $as_echo "@%:@define HAVE_MKFIFO 1" >>confdefs.h | |
9654 | ||
9655 | else | |
9656 | $as_echo "@%:@define MKFIFO_MISSING 1" >>confdefs.h | |
9657 | ||
9658 | fi | |
9659 | ||
9660 | ||
9661 | for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ | |
9662 | getpagesize getpeername getrlimit getrusage gettimeofday \ | |
9663 | kill killpg lstat readlink sbrk select setdtablesize \ | |
9664 | setitimer tcgetpgrp uname ulimit waitpid | |
9665 | do : | |
9666 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9667 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9668 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9669 | cat >>confdefs.h <<_ACEOF | |
9670 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9671 | _ACEOF | |
9672 | ||
9673 | fi | |
9674 | done | |
9675 | ||
9676 | ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename" | |
9677 | if test "x$ac_cv_func_rename" = xyes; then : | |
9678 | $as_echo "@%:@define HAVE_RENAME 1" >>confdefs.h | |
9679 | ||
9680 | else | |
9681 | case " $LIB@&t@OBJS " in | |
9682 | *" rename.$ac_objext "* ) ;; | |
9683 | *) LIB@&t@OBJS="$LIB@&t@OBJS rename.$ac_objext" | |
9684 | ;; | |
9685 | esac | |
9686 | ||
9687 | fi | |
9688 | ||
9689 | ||
9690 | ||
9691 | for ac_func in bcopy bzero confstr faccessat fnmatch \ | |
9692 | getaddrinfo gethostbyname getservbyname getservent inet_aton \ | |
9693 | imaxdiv memmove pathconf putenv raise regcomp regexec \ | |
9694 | setenv setlinebuf setlocale setvbuf siginterrupt strchr \ | |
9695 | sysconf syslog tcgetattr times ttyname tzset unsetenv | |
9696 | do : | |
9697 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9698 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9699 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9700 | cat >>confdefs.h <<_ACEOF | |
9701 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9702 | _ACEOF | |
9703 | ||
9704 | fi | |
9705 | done | |
9706 | ||
9707 | ||
9708 | for ac_func in vasprintf asprintf | |
9709 | do : | |
9710 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9711 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9712 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9713 | cat >>confdefs.h <<_ACEOF | |
9714 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9715 | _ACEOF | |
9716 | ||
9717 | fi | |
9718 | done | |
9719 | ||
9720 | for ac_func in isascii isblank isgraph isprint isspace isxdigit | |
9721 | do : | |
9722 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9723 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9724 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9725 | cat >>confdefs.h <<_ACEOF | |
9726 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9727 | _ACEOF | |
9728 | ||
9729 | fi | |
9730 | done | |
9731 | ||
9732 | for ac_func in getpwent getpwnam getpwuid | |
9733 | do : | |
9734 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9735 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9736 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9737 | cat >>confdefs.h <<_ACEOF | |
9738 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9739 | _ACEOF | |
9740 | ||
9741 | fi | |
9742 | done | |
9743 | ||
9744 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | |
9745 | if test "x$ac_cv_func_getcwd" = xyes; then : | |
9746 | $as_echo "@%:@define HAVE_GETCWD 1" >>confdefs.h | |
9747 | ||
9748 | else | |
9749 | case " $LIB@&t@OBJS " in | |
9750 | *" getcwd.$ac_objext "* ) ;; | |
9751 | *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext" | |
9752 | ;; | |
9753 | esac | |
9754 | ||
9755 | fi | |
9756 | ||
9757 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" | |
9758 | if test "x$ac_cv_func_memset" = xyes; then : | |
9759 | $as_echo "@%:@define HAVE_MEMSET 1" >>confdefs.h | |
9760 | ||
9761 | else | |
9762 | case " $LIB@&t@OBJS " in | |
9763 | *" memset.$ac_objext "* ) ;; | |
9764 | *) LIB@&t@OBJS="$LIB@&t@OBJS memset.$ac_objext" | |
9765 | ;; | |
9766 | esac | |
9767 | ||
9768 | fi | |
9769 | ||
9770 | ||
9771 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | |
9772 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | |
9773 | $as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h | |
9774 | ||
9775 | else | |
9776 | case " $LIB@&t@OBJS " in | |
9777 | *" strcasecmp.$ac_objext "* ) ;; | |
9778 | *) LIB@&t@OBJS="$LIB@&t@OBJS strcasecmp.$ac_objext" | |
9779 | ;; | |
9780 | esac | |
9781 | ||
9782 | fi | |
9783 | ||
9784 | ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" | |
9785 | if test "x$ac_cv_func_strcasestr" = xyes; then : | |
9786 | $as_echo "@%:@define HAVE_STRCASESTR 1" >>confdefs.h | |
9787 | ||
9788 | else | |
9789 | case " $LIB@&t@OBJS " in | |
9790 | *" strcasestr.$ac_objext "* ) ;; | |
9791 | *) LIB@&t@OBJS="$LIB@&t@OBJS strcasestr.$ac_objext" | |
9792 | ;; | |
9793 | esac | |
9794 | ||
9795 | fi | |
9796 | ||
9797 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" | |
9798 | if test "x$ac_cv_func_strerror" = xyes; then : | |
9799 | $as_echo "@%:@define HAVE_STRERROR 1" >>confdefs.h | |
9800 | ||
9801 | else | |
9802 | case " $LIB@&t@OBJS " in | |
9803 | *" strerror.$ac_objext "* ) ;; | |
9804 | *) LIB@&t@OBJS="$LIB@&t@OBJS strerror.$ac_objext" | |
9805 | ;; | |
9806 | esac | |
9807 | ||
9808 | fi | |
9809 | ||
9810 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | |
9811 | if test "x$ac_cv_func_strftime" = xyes; then : | |
9812 | $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h | |
9813 | ||
9814 | else | |
9815 | case " $LIB@&t@OBJS " in | |
9816 | *" strftime.$ac_objext "* ) ;; | |
9817 | *) LIB@&t@OBJS="$LIB@&t@OBJS strftime.$ac_objext" | |
9818 | ;; | |
9819 | esac | |
9820 | ||
9821 | fi | |
9822 | ||
9823 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" | |
9824 | if test "x$ac_cv_func_strnlen" = xyes; then : | |
9825 | $as_echo "@%:@define HAVE_STRNLEN 1" >>confdefs.h | |
9826 | ||
9827 | else | |
9828 | case " $LIB@&t@OBJS " in | |
9829 | *" strnlen.$ac_objext "* ) ;; | |
9830 | *) LIB@&t@OBJS="$LIB@&t@OBJS strnlen.$ac_objext" | |
9831 | ;; | |
9832 | esac | |
9833 | ||
9834 | fi | |
9835 | ||
9836 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" | |
9837 | if test "x$ac_cv_func_strpbrk" = xyes; then : | |
9838 | $as_echo "@%:@define HAVE_STRPBRK 1" >>confdefs.h | |
9839 | ||
9840 | else | |
9841 | case " $LIB@&t@OBJS " in | |
9842 | *" strpbrk.$ac_objext "* ) ;; | |
9843 | *) LIB@&t@OBJS="$LIB@&t@OBJS strpbrk.$ac_objext" | |
9844 | ;; | |
9845 | esac | |
9846 | ||
9847 | fi | |
9848 | ||
9849 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" | |
9850 | if test "x$ac_cv_func_strstr" = xyes; then : | |
9851 | $as_echo "@%:@define HAVE_STRSTR 1" >>confdefs.h | |
9852 | ||
9853 | else | |
9854 | case " $LIB@&t@OBJS " in | |
9855 | *" strstr.$ac_objext "* ) ;; | |
9856 | *) LIB@&t@OBJS="$LIB@&t@OBJS strstr.$ac_objext" | |
9857 | ;; | |
9858 | esac | |
9859 | ||
9860 | fi | |
9861 | ||
9862 | ||
9863 | ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod" | |
9864 | if test "x$ac_cv_func_strtod" = xyes; then : | |
9865 | $as_echo "@%:@define HAVE_STRTOD 1" >>confdefs.h | |
9866 | ||
9867 | else | |
9868 | case " $LIB@&t@OBJS " in | |
9869 | *" strtod.$ac_objext "* ) ;; | |
9870 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext" | |
9871 | ;; | |
9872 | esac | |
9873 | ||
9874 | fi | |
9875 | ||
9876 | ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" | |
9877 | if test "x$ac_cv_func_strtol" = xyes; then : | |
9878 | $as_echo "@%:@define HAVE_STRTOL 1" >>confdefs.h | |
9879 | ||
9880 | else | |
9881 | case " $LIB@&t@OBJS " in | |
9882 | *" strtol.$ac_objext "* ) ;; | |
9883 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtol.$ac_objext" | |
9884 | ;; | |
9885 | esac | |
9886 | ||
9887 | fi | |
9888 | ||
9889 | ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" | |
9890 | if test "x$ac_cv_func_strtoul" = xyes; then : | |
9891 | $as_echo "@%:@define HAVE_STRTOUL 1" >>confdefs.h | |
9892 | ||
9893 | else | |
9894 | case " $LIB@&t@OBJS " in | |
9895 | *" strtoul.$ac_objext "* ) ;; | |
9896 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtoul.$ac_objext" | |
9897 | ;; | |
9898 | esac | |
9899 | ||
9900 | fi | |
9901 | ||
9902 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
9903 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
9904 | $as_echo "@%:@define HAVE_STRTOLL 1" >>confdefs.h | |
9905 | ||
9906 | else | |
9907 | case " $LIB@&t@OBJS " in | |
9908 | *" strtoll.$ac_objext "* ) ;; | |
9909 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtoll.$ac_objext" | |
9910 | ;; | |
9911 | esac | |
9912 | ||
9913 | fi | |
9914 | ||
9915 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" | |
9916 | if test "x$ac_cv_func_strtoull" = xyes; then : | |
9917 | $as_echo "@%:@define HAVE_STRTOULL 1" >>confdefs.h | |
9918 | ||
9919 | else | |
9920 | case " $LIB@&t@OBJS " in | |
9921 | *" strtoull.$ac_objext "* ) ;; | |
9922 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtoull.$ac_objext" | |
9923 | ;; | |
9924 | esac | |
9925 | ||
9926 | fi | |
9927 | ||
9928 | ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax" | |
9929 | if test "x$ac_cv_func_strtoimax" = xyes; then : | |
9930 | $as_echo "@%:@define HAVE_STRTOIMAX 1" >>confdefs.h | |
9931 | ||
9932 | else | |
9933 | case " $LIB@&t@OBJS " in | |
9934 | *" strtoimax.$ac_objext "* ) ;; | |
9935 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtoimax.$ac_objext" | |
9936 | ;; | |
9937 | esac | |
9938 | ||
9939 | fi | |
9940 | ||
9941 | ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax" | |
9942 | if test "x$ac_cv_func_strtoumax" = xyes; then : | |
9943 | $as_echo "@%:@define HAVE_STRTOUMAX 1" >>confdefs.h | |
9944 | ||
9945 | else | |
9946 | case " $LIB@&t@OBJS " in | |
9947 | *" strtoumax.$ac_objext "* ) ;; | |
9948 | *) LIB@&t@OBJS="$LIB@&t@OBJS strtoumax.$ac_objext" | |
9949 | ;; | |
9950 | esac | |
9951 | ||
9952 | fi | |
9953 | ||
9954 | ||
9955 | ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" | |
9956 | if test "x$ac_cv_func_dprintf" = xyes; then : | |
9957 | $as_echo "@%:@define HAVE_DPRINTF 1" >>confdefs.h | |
9958 | ||
9959 | else | |
9960 | case " $LIB@&t@OBJS " in | |
9961 | *" dprintf.$ac_objext "* ) ;; | |
9962 | *) LIB@&t@OBJS="$LIB@&t@OBJS dprintf.$ac_objext" | |
9963 | ;; | |
9964 | esac | |
9965 | ||
9966 | fi | |
9967 | ||
9968 | ||
9969 | ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" | |
9970 | if test "x$ac_cv_func_strchrnul" = xyes; then : | |
9971 | $as_echo "@%:@define HAVE_STRCHRNUL 1" >>confdefs.h | |
9972 | ||
9973 | else | |
9974 | case " $LIB@&t@OBJS " in | |
9975 | *" strchrnul.$ac_objext "* ) ;; | |
9976 | *) LIB@&t@OBJS="$LIB@&t@OBJS strchrnul.$ac_objext" | |
9977 | ;; | |
9978 | esac | |
9979 | ||
9980 | fi | |
9981 | ||
9982 | ||
9983 | ||
9984 | ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h> | |
9985 | " | |
9986 | if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then : | |
9987 | ac_have_decl=1 | |
9988 | else | |
9989 | ac_have_decl=0 | |
9990 | fi | |
9991 | ||
9992 | cat >>confdefs.h <<_ACEOF | |
9993 | @%:@define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl | |
9994 | _ACEOF | |
9995 | ||
9996 | ||
9997 | ac_fn_c_check_decl "$LINENO" "confstr" "ac_cv_have_decl_confstr" "$ac_includes_default" | |
9998 | if test "x$ac_cv_have_decl_confstr" = xyes; then : | |
9999 | ac_have_decl=1 | |
10000 | else | |
10001 | ac_have_decl=0 | |
10002 | fi | |
10003 | ||
10004 | cat >>confdefs.h <<_ACEOF | |
10005 | @%:@define HAVE_DECL_CONFSTR $ac_have_decl | |
10006 | _ACEOF | |
10007 | ||
10008 | ac_fn_c_check_decl "$LINENO" "printf" "ac_cv_have_decl_printf" "$ac_includes_default" | |
10009 | if test "x$ac_cv_have_decl_printf" = xyes; then : | |
10010 | ac_have_decl=1 | |
10011 | else | |
10012 | ac_have_decl=0 | |
10013 | fi | |
10014 | ||
10015 | cat >>confdefs.h <<_ACEOF | |
10016 | @%:@define HAVE_DECL_PRINTF $ac_have_decl | |
10017 | _ACEOF | |
10018 | ||
10019 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" | |
10020 | if test "x$ac_cv_have_decl_sbrk" = xyes; then : | |
10021 | ac_have_decl=1 | |
10022 | else | |
10023 | ac_have_decl=0 | |
10024 | fi | |
10025 | ||
10026 | cat >>confdefs.h <<_ACEOF | |
10027 | @%:@define HAVE_DECL_SBRK $ac_have_decl | |
10028 | _ACEOF | |
10029 | ||
10030 | ac_fn_c_check_decl "$LINENO" "setregid" "ac_cv_have_decl_setregid" "$ac_includes_default" | |
10031 | if test "x$ac_cv_have_decl_setregid" = xyes; then : | |
10032 | ac_have_decl=1 | |
10033 | else | |
10034 | ac_have_decl=0 | |
10035 | fi | |
10036 | ||
10037 | cat >>confdefs.h <<_ACEOF | |
10038 | @%:@define HAVE_DECL_SETREGID $ac_have_decl | |
10039 | _ACEOF | |
10040 | ||
10041 | ac_fn_c_check_decl "$LINENO" "strcpy" "ac_cv_have_decl_strcpy" "$ac_includes_default" | |
10042 | if test "x$ac_cv_have_decl_strcpy" = xyes; then : | |
10043 | ac_have_decl=1 | |
10044 | else | |
10045 | ac_have_decl=0 | |
10046 | fi | |
10047 | ||
10048 | cat >>confdefs.h <<_ACEOF | |
10049 | @%:@define HAVE_DECL_STRCPY $ac_have_decl | |
10050 | _ACEOF | |
10051 | ||
10052 | ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" | |
10053 | if test "x$ac_cv_have_decl_strsignal" = xyes; then : | |
10054 | ac_have_decl=1 | |
10055 | else | |
10056 | ac_have_decl=0 | |
10057 | fi | |
10058 | ||
10059 | cat >>confdefs.h <<_ACEOF | |
10060 | @%:@define HAVE_DECL_STRSIGNAL $ac_have_decl | |
10061 | _ACEOF | |
10062 | ||
10063 | ||
10064 | ac_fn_c_check_decl "$LINENO" "strtold" "ac_cv_have_decl_strtold" "$ac_includes_default" | |
10065 | if test "x$ac_cv_have_decl_strtold" = xyes; then : | |
10066 | ac_have_decl=1 | |
10067 | else | |
10068 | ac_have_decl=0 | |
10069 | fi | |
10070 | ||
10071 | cat >>confdefs.h <<_ACEOF | |
10072 | @%:@define HAVE_DECL_STRTOLD $ac_have_decl | |
10073 | _ACEOF | |
10074 | if test $ac_have_decl = 1; then : | |
10075 | ||
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken strtold" >&5 | |
10077 | $as_echo_n "checking for broken strtold... " >&6; } | |
10078 | if ${bash_cv_strtold_broken+:} false; then : | |
10079 | $as_echo_n "(cached) " >&6 | |
10080 | else | |
10081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10082 | /* end confdefs.h. */ | |
10083 | #include <stdlib.h> | |
10084 | int | |
10085 | main () | |
10086 | { | |
10087 | int main() { long double r; char *foo, bar; r = strtold(foo, &bar);} | |
10088 | ; | |
10089 | return 0; | |
10090 | } | |
10091 | _ACEOF | |
10092 | if ac_fn_c_try_compile "$LINENO"; then : | |
10093 | bash_cv_strtold_broken=no | |
10094 | else | |
10095 | bash_cv_strtold_broken=yes | |
10096 | fi | |
10097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10098 | ||
10099 | ||
10100 | fi | |
10101 | ||
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_strtold_broken" >&5 | |
10103 | $as_echo "$bash_cv_strtold_broken" >&6; } | |
10104 | if test "$bash_cv_strtold_broken" = "yes" ; then | |
10105 | $as_echo "@%:@define STRTOLD_BROKEN 1" >>confdefs.h | |
10106 | ||
10107 | fi | |
10108 | ||
10109 | fi | |
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoimax" >&5 | |
10116 | $as_echo_n "checking for declaration of strtoimax... " >&6; } | |
10117 | if ${bash_cv_decl_strtoimax+:} false; then : | |
10118 | $as_echo_n "(cached) " >&6 | |
10119 | else | |
10120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10121 | /* end confdefs.h. */ | |
10122 | ||
10123 | #if STDC_HEADERS | |
10124 | # include <stdlib.h> | |
10125 | #endif | |
10126 | #if HAVE_INTTYPES_H | |
10127 | # include <inttypes.h> | |
10128 | #endif | |
10129 | ||
10130 | int | |
10131 | main () | |
10132 | { | |
10133 | return !strtoimax; | |
10134 | ; | |
10135 | return 0; | |
10136 | } | |
10137 | _ACEOF | |
10138 | if ac_fn_c_try_link "$LINENO"; then : | |
10139 | bash_cv_decl_strtoimax=yes | |
10140 | else | |
10141 | bash_cv_decl_strtoimax=no | |
10142 | fi | |
10143 | rm -f core conftest.err conftest.$ac_objext \ | |
10144 | conftest$ac_exeext conftest.$ac_ext | |
10145 | fi | |
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoimax" >&5 | |
10147 | $as_echo "$bash_cv_decl_strtoimax" >&6; } | |
10148 | bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10149 | if test $bash_cv_decl_strtoimax = yes; then | |
10150 | cat >>confdefs.h <<_ACEOF | |
10151 | @%:@define $bash_tr_func 1 | |
10152 | _ACEOF | |
10153 | ||
10154 | else | |
10155 | cat >>confdefs.h <<_ACEOF | |
10156 | @%:@define $bash_tr_func 0 | |
10157 | _ACEOF | |
10158 | ||
10159 | fi | |
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtol" >&5 | |
10165 | $as_echo_n "checking for declaration of strtol... " >&6; } | |
10166 | if ${bash_cv_decl_strtol+:} false; then : | |
10167 | $as_echo_n "(cached) " >&6 | |
10168 | else | |
10169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10170 | /* end confdefs.h. */ | |
10171 | ||
10172 | #if STDC_HEADERS | |
10173 | # include <stdlib.h> | |
10174 | #endif | |
10175 | #if HAVE_INTTYPES_H | |
10176 | # include <inttypes.h> | |
10177 | #endif | |
10178 | ||
10179 | int | |
10180 | main () | |
10181 | { | |
10182 | return !strtol; | |
10183 | ; | |
10184 | return 0; | |
10185 | } | |
10186 | _ACEOF | |
10187 | if ac_fn_c_try_link "$LINENO"; then : | |
10188 | bash_cv_decl_strtol=yes | |
10189 | else | |
10190 | bash_cv_decl_strtol=no | |
10191 | fi | |
10192 | rm -f core conftest.err conftest.$ac_objext \ | |
10193 | conftest$ac_exeext conftest.$ac_ext | |
10194 | fi | |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtol" >&5 | |
10196 | $as_echo "$bash_cv_decl_strtol" >&6; } | |
10197 | bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10198 | if test $bash_cv_decl_strtol = yes; then | |
10199 | cat >>confdefs.h <<_ACEOF | |
10200 | @%:@define $bash_tr_func 1 | |
10201 | _ACEOF | |
10202 | ||
10203 | else | |
10204 | cat >>confdefs.h <<_ACEOF | |
10205 | @%:@define $bash_tr_func 0 | |
10206 | _ACEOF | |
10207 | ||
10208 | fi | |
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoll" >&5 | |
10214 | $as_echo_n "checking for declaration of strtoll... " >&6; } | |
10215 | if ${bash_cv_decl_strtoll+:} false; then : | |
10216 | $as_echo_n "(cached) " >&6 | |
10217 | else | |
10218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10219 | /* end confdefs.h. */ | |
10220 | ||
10221 | #if STDC_HEADERS | |
10222 | # include <stdlib.h> | |
10223 | #endif | |
10224 | #if HAVE_INTTYPES_H | |
10225 | # include <inttypes.h> | |
10226 | #endif | |
10227 | ||
10228 | int | |
10229 | main () | |
10230 | { | |
10231 | return !strtoll; | |
10232 | ; | |
10233 | return 0; | |
10234 | } | |
10235 | _ACEOF | |
10236 | if ac_fn_c_try_link "$LINENO"; then : | |
10237 | bash_cv_decl_strtoll=yes | |
10238 | else | |
10239 | bash_cv_decl_strtoll=no | |
10240 | fi | |
10241 | rm -f core conftest.err conftest.$ac_objext \ | |
10242 | conftest$ac_exeext conftest.$ac_ext | |
10243 | fi | |
10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoll" >&5 | |
10245 | $as_echo "$bash_cv_decl_strtoll" >&6; } | |
10246 | bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10247 | if test $bash_cv_decl_strtoll = yes; then | |
10248 | cat >>confdefs.h <<_ACEOF | |
10249 | @%:@define $bash_tr_func 1 | |
10250 | _ACEOF | |
10251 | ||
10252 | else | |
10253 | cat >>confdefs.h <<_ACEOF | |
10254 | @%:@define $bash_tr_func 0 | |
10255 | _ACEOF | |
10256 | ||
10257 | fi | |
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoul" >&5 | |
10263 | $as_echo_n "checking for declaration of strtoul... " >&6; } | |
10264 | if ${bash_cv_decl_strtoul+:} false; then : | |
10265 | $as_echo_n "(cached) " >&6 | |
10266 | else | |
10267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10268 | /* end confdefs.h. */ | |
10269 | ||
10270 | #if STDC_HEADERS | |
10271 | # include <stdlib.h> | |
10272 | #endif | |
10273 | #if HAVE_INTTYPES_H | |
10274 | # include <inttypes.h> | |
10275 | #endif | |
10276 | ||
10277 | int | |
10278 | main () | |
10279 | { | |
10280 | return !strtoul; | |
10281 | ; | |
10282 | return 0; | |
10283 | } | |
10284 | _ACEOF | |
10285 | if ac_fn_c_try_link "$LINENO"; then : | |
10286 | bash_cv_decl_strtoul=yes | |
10287 | else | |
10288 | bash_cv_decl_strtoul=no | |
10289 | fi | |
10290 | rm -f core conftest.err conftest.$ac_objext \ | |
10291 | conftest$ac_exeext conftest.$ac_ext | |
10292 | fi | |
10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoul" >&5 | |
10294 | $as_echo "$bash_cv_decl_strtoul" >&6; } | |
10295 | bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10296 | if test $bash_cv_decl_strtoul = yes; then | |
10297 | cat >>confdefs.h <<_ACEOF | |
10298 | @%:@define $bash_tr_func 1 | |
10299 | _ACEOF | |
10300 | ||
10301 | else | |
10302 | cat >>confdefs.h <<_ACEOF | |
10303 | @%:@define $bash_tr_func 0 | |
10304 | _ACEOF | |
10305 | ||
10306 | fi | |
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoull" >&5 | |
10312 | $as_echo_n "checking for declaration of strtoull... " >&6; } | |
10313 | if ${bash_cv_decl_strtoull+:} false; then : | |
10314 | $as_echo_n "(cached) " >&6 | |
10315 | else | |
10316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10317 | /* end confdefs.h. */ | |
10318 | ||
10319 | #if STDC_HEADERS | |
10320 | # include <stdlib.h> | |
10321 | #endif | |
10322 | #if HAVE_INTTYPES_H | |
10323 | # include <inttypes.h> | |
10324 | #endif | |
10325 | ||
10326 | int | |
10327 | main () | |
10328 | { | |
10329 | return !strtoull; | |
10330 | ; | |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | if ac_fn_c_try_link "$LINENO"; then : | |
10335 | bash_cv_decl_strtoull=yes | |
10336 | else | |
10337 | bash_cv_decl_strtoull=no | |
10338 | fi | |
10339 | rm -f core conftest.err conftest.$ac_objext \ | |
10340 | conftest$ac_exeext conftest.$ac_ext | |
10341 | fi | |
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoull" >&5 | |
10343 | $as_echo "$bash_cv_decl_strtoull" >&6; } | |
10344 | bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10345 | if test $bash_cv_decl_strtoull = yes; then | |
10346 | cat >>confdefs.h <<_ACEOF | |
10347 | @%:@define $bash_tr_func 1 | |
10348 | _ACEOF | |
10349 | ||
10350 | else | |
10351 | cat >>confdefs.h <<_ACEOF | |
10352 | @%:@define $bash_tr_func 0 | |
10353 | _ACEOF | |
10354 | ||
10355 | fi | |
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of strtoumax" >&5 | |
10361 | $as_echo_n "checking for declaration of strtoumax... " >&6; } | |
10362 | if ${bash_cv_decl_strtoumax+:} false; then : | |
10363 | $as_echo_n "(cached) " >&6 | |
10364 | else | |
10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10366 | /* end confdefs.h. */ | |
10367 | ||
10368 | #if STDC_HEADERS | |
10369 | # include <stdlib.h> | |
10370 | #endif | |
10371 | #if HAVE_INTTYPES_H | |
10372 | # include <inttypes.h> | |
10373 | #endif | |
10374 | ||
10375 | int | |
10376 | main () | |
10377 | { | |
10378 | return !strtoumax; | |
10379 | ; | |
10380 | return 0; | |
10381 | } | |
10382 | _ACEOF | |
10383 | if ac_fn_c_try_link "$LINENO"; then : | |
10384 | bash_cv_decl_strtoumax=yes | |
10385 | else | |
10386 | bash_cv_decl_strtoumax=no | |
10387 | fi | |
10388 | rm -f core conftest.err conftest.$ac_objext \ | |
10389 | conftest$ac_exeext conftest.$ac_ext | |
10390 | fi | |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_strtoumax" >&5 | |
10392 | $as_echo "$bash_cv_decl_strtoumax" >&6; } | |
10393 | bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10394 | if test $bash_cv_decl_strtoumax = yes; then | |
10395 | cat >>confdefs.h <<_ACEOF | |
10396 | @%:@define $bash_tr_func 1 | |
10397 | _ACEOF | |
10398 | ||
10399 | else | |
10400 | cat >>confdefs.h <<_ACEOF | |
10401 | @%:@define $bash_tr_func 0 | |
10402 | _ACEOF | |
10403 | ||
10404 | fi | |
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | for ac_func in $ac_func_list | |
10413 | do : | |
10414 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10415 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10416 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10417 | cat >>confdefs.h <<_ACEOF | |
10418 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10419 | _ACEOF | |
10420 | ||
10421 | fi | |
10422 | done | |
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 | |
10429 | $as_echo_n "checking for working mktime... " >&6; } | |
10430 | if ${ac_cv_func_working_mktime+:} false; then : | |
10431 | $as_echo_n "(cached) " >&6 | |
10432 | else | |
10433 | if test "$cross_compiling" = yes; then : | |
10434 | ac_cv_func_working_mktime=no | |
10435 | else | |
10436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10437 | /* end confdefs.h. */ | |
10438 | /* Test program from Paul Eggert and Tony Leneis. */ | |
10439 | #ifdef TIME_WITH_SYS_TIME | |
10440 | # include <sys/time.h> | |
10441 | # include <time.h> | |
10442 | #else | |
10443 | # ifdef HAVE_SYS_TIME_H | |
10444 | # include <sys/time.h> | |
10445 | # else | |
10446 | # include <time.h> | |
10447 | # endif | |
10448 | #endif | |
10449 | ||
10450 | #include <limits.h> | |
10451 | #include <stdlib.h> | |
10452 | ||
10453 | #ifdef HAVE_UNISTD_H | |
10454 | # include <unistd.h> | |
10455 | #endif | |
10456 | ||
10457 | #ifndef HAVE_ALARM | |
10458 | # define alarm(X) /* empty */ | |
10459 | #endif | |
10460 | ||
10461 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
10462 | #undef putenv | |
10463 | ||
10464 | static time_t time_t_max; | |
10465 | static time_t time_t_min; | |
10466 | ||
10467 | /* Values we'll use to set the TZ environment variable. */ | |
10468 | static const char *tz_strings[] = { | |
10469 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
10470 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
10471 | }; | |
10472 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
10473 | ||
10474 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. | |
10475 | Based on a problem report from Andreas Jaeger. */ | |
10476 | static int | |
10477 | spring_forward_gap () | |
10478 | { | |
10479 | /* glibc (up to about 1998-10-07) failed this test. */ | |
10480 | struct tm tm; | |
10481 | ||
10482 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
10483 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
10484 | on systems that don't support the Olson extension, or don't have the | |
10485 | full zoneinfo tables installed. */ | |
10486 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
10487 | ||
10488 | tm.tm_year = 98; | |
10489 | tm.tm_mon = 3; | |
10490 | tm.tm_mday = 5; | |
10491 | tm.tm_hour = 2; | |
10492 | tm.tm_min = 0; | |
10493 | tm.tm_sec = 0; | |
10494 | tm.tm_isdst = -1; | |
10495 | return mktime (&tm) != (time_t) -1; | |
10496 | } | |
10497 | ||
10498 | static int | |
10499 | mktime_test1 (time_t now) | |
10500 | { | |
10501 | struct tm *lt; | |
10502 | return ! (lt = localtime (&now)) || mktime (lt) == now; | |
10503 | } | |
10504 | ||
10505 | static int | |
10506 | mktime_test (time_t now) | |
10507 | { | |
10508 | return (mktime_test1 (now) | |
10509 | && mktime_test1 ((time_t) (time_t_max - now)) | |
10510 | && mktime_test1 ((time_t) (time_t_min + now))); | |
10511 | } | |
10512 | ||
10513 | static int | |
10514 | irix_6_4_bug () | |
10515 | { | |
10516 | /* Based on code from Ariel Faigon. */ | |
10517 | struct tm tm; | |
10518 | tm.tm_year = 96; | |
10519 | tm.tm_mon = 3; | |
10520 | tm.tm_mday = 0; | |
10521 | tm.tm_hour = 0; | |
10522 | tm.tm_min = 0; | |
10523 | tm.tm_sec = 0; | |
10524 | tm.tm_isdst = -1; | |
10525 | mktime (&tm); | |
10526 | return tm.tm_mon == 2 && tm.tm_mday == 31; | |
10527 | } | |
10528 | ||
10529 | static int | |
10530 | bigtime_test (int j) | |
10531 | { | |
10532 | struct tm tm; | |
10533 | time_t now; | |
10534 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
10535 | now = mktime (&tm); | |
10536 | if (now != (time_t) -1) | |
10537 | { | |
10538 | struct tm *lt = localtime (&now); | |
10539 | if (! (lt | |
10540 | && lt->tm_year == tm.tm_year | |
10541 | && lt->tm_mon == tm.tm_mon | |
10542 | && lt->tm_mday == tm.tm_mday | |
10543 | && lt->tm_hour == tm.tm_hour | |
10544 | && lt->tm_min == tm.tm_min | |
10545 | && lt->tm_sec == tm.tm_sec | |
10546 | && lt->tm_yday == tm.tm_yday | |
10547 | && lt->tm_wday == tm.tm_wday | |
10548 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
10549 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
10550 | return 0; | |
10551 | } | |
10552 | return 1; | |
10553 | } | |
10554 | ||
10555 | static int | |
10556 | year_2050_test () | |
10557 | { | |
10558 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
10559 | ignoring leap seconds. */ | |
10560 | unsigned long int answer = 2527315200UL; | |
10561 | ||
10562 | struct tm tm; | |
10563 | time_t t; | |
10564 | tm.tm_year = 2050 - 1900; | |
10565 | tm.tm_mon = 2 - 1; | |
10566 | tm.tm_mday = 1; | |
10567 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
10568 | tm.tm_isdst = -1; | |
10569 | ||
10570 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
10571 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
10572 | on systems that don't support the Olson extension, or don't have the | |
10573 | full zoneinfo tables installed. */ | |
10574 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
10575 | ||
10576 | t = mktime (&tm); | |
10577 | ||
10578 | /* Check that the result is either a failure, or close enough | |
10579 | to the correct answer that we can assume the discrepancy is | |
10580 | due to leap seconds. */ | |
10581 | return (t == (time_t) -1 | |
10582 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
10583 | } | |
10584 | ||
10585 | int | |
10586 | main () | |
10587 | { | |
10588 | time_t t, delta; | |
10589 | int i, j; | |
10590 | ||
10591 | /* This test makes some buggy mktime implementations loop. | |
10592 | Give up after 60 seconds; a mktime slower than that | |
10593 | isn't worth using anyway. */ | |
10594 | alarm (60); | |
10595 | ||
10596 | for (;;) | |
10597 | { | |
10598 | t = (time_t_max << 1) + 1; | |
10599 | if (t <= time_t_max) | |
10600 | break; | |
10601 | time_t_max = t; | |
10602 | } | |
10603 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
10604 | ||
10605 | delta = time_t_max / 997; /* a suitable prime number */ | |
10606 | for (i = 0; i < N_STRINGS; i++) | |
10607 | { | |
10608 | if (tz_strings[i]) | |
10609 | putenv ((char*) tz_strings[i]); | |
10610 | ||
10611 | for (t = 0; t <= time_t_max - delta; t += delta) | |
10612 | if (! mktime_test (t)) | |
10613 | return 1; | |
10614 | if (! (mktime_test ((time_t) 1) | |
10615 | && mktime_test ((time_t) (60 * 60)) | |
10616 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
10617 | return 1; | |
10618 | ||
10619 | for (j = 1; ; j <<= 1) | |
10620 | if (! bigtime_test (j)) | |
10621 | return 1; | |
10622 | else if (INT_MAX / 2 < j) | |
10623 | break; | |
10624 | if (! bigtime_test (INT_MAX)) | |
10625 | return 1; | |
10626 | } | |
10627 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | |
10628 | } | |
10629 | _ACEOF | |
10630 | if ac_fn_c_try_run "$LINENO"; then : | |
10631 | ac_cv_func_working_mktime=yes | |
10632 | else | |
10633 | ac_cv_func_working_mktime=no | |
10634 | fi | |
10635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
10636 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10637 | fi | |
10638 | ||
10639 | fi | |
10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 | |
10641 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
10642 | if test $ac_cv_func_working_mktime = no; then | |
10643 | case " $LIB@&t@OBJS " in | |
10644 | *" mktime.$ac_objext "* ) ;; | |
10645 | *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" | |
10646 | ;; | |
10647 | esac | |
10648 | ||
10649 | fi | |
10650 | ||
10651 | ||
10652 | ||
10653 | for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h | |
10654 | do : | |
10655 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10656 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10657 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10658 | cat >>confdefs.h <<_ACEOF | |
10659 | @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10660 | _ACEOF | |
10661 | ||
10662 | fi | |
10663 | ||
10664 | done | |
10665 | ||
10666 | ||
10667 | ||
10668 | for ac_func in getpagesize | |
10669 | do : | |
10670 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
10671 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
10672 | cat >>confdefs.h <<_ACEOF | |
10673 | @%:@define HAVE_GETPAGESIZE 1 | |
10674 | _ACEOF | |
10675 | ||
10676 | fi | |
10677 | done | |
10678 | ||
10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
10680 | $as_echo_n "checking for working mmap... " >&6; } | |
10681 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
10682 | $as_echo_n "(cached) " >&6 | |
10683 | else | |
10684 | if test "$cross_compiling" = yes; then : | |
10685 | ac_cv_func_mmap_fixed_mapped=no | |
10686 | else | |
10687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10688 | /* end confdefs.h. */ | |
10689 | $ac_includes_default | |
10690 | /* malloc might have been renamed as rpl_malloc. */ | |
10691 | #undef malloc | |
10692 | ||
10693 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10694 | Here is a matrix of mmap possibilities: | |
10695 | mmap private not fixed | |
10696 | mmap private fixed at somewhere currently unmapped | |
10697 | mmap private fixed at somewhere already mapped | |
10698 | mmap shared not fixed | |
10699 | mmap shared fixed at somewhere currently unmapped | |
10700 | mmap shared fixed at somewhere already mapped | |
10701 | For private mappings, we should verify that changes cannot be read() | |
10702 | back from the file, nor mmap's back from the file at a different | |
10703 | address. (There have been systems where private was not correctly | |
10704 | implemented like the infamous i386 svr4.0, and systems where the | |
10705 | VM page cache was not coherent with the file system buffer cache | |
10706 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10707 | For shared mappings, we should conversely verify that changes get | |
10708 | propagated back to all the places they're supposed to be. | |
10709 | ||
10710 | Grep wants private fixed already mapped. | |
10711 | The main things grep needs to know about mmap are: | |
10712 | * does it exist and is it safe to write into the mmap'd area | |
10713 | * how to use it (BSD variants) */ | |
10714 | ||
10715 | #include <fcntl.h> | |
10716 | #include <sys/mman.h> | |
10717 | ||
10718 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
10719 | char *malloc (); | |
10720 | #endif | |
10721 | ||
10722 | /* This mess was copied from the GNU getpagesize.h. */ | |
10723 | #ifndef HAVE_GETPAGESIZE | |
10724 | # ifdef _SC_PAGESIZE | |
10725 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10726 | # else /* no _SC_PAGESIZE */ | |
10727 | # ifdef HAVE_SYS_PARAM_H | |
10728 | # include <sys/param.h> | |
10729 | # ifdef EXEC_PAGESIZE | |
10730 | # define getpagesize() EXEC_PAGESIZE | |
10731 | # else /* no EXEC_PAGESIZE */ | |
10732 | # ifdef NBPG | |
10733 | # define getpagesize() NBPG * CLSIZE | |
10734 | # ifndef CLSIZE | |
10735 | # define CLSIZE 1 | |
10736 | # endif /* no CLSIZE */ | |
10737 | # else /* no NBPG */ | |
10738 | # ifdef NBPC | |
10739 | # define getpagesize() NBPC | |
10740 | # else /* no NBPC */ | |
10741 | # ifdef PAGESIZE | |
10742 | # define getpagesize() PAGESIZE | |
10743 | # endif /* PAGESIZE */ | |
10744 | # endif /* no NBPC */ | |
10745 | # endif /* no NBPG */ | |
10746 | # endif /* no EXEC_PAGESIZE */ | |
10747 | # else /* no HAVE_SYS_PARAM_H */ | |
10748 | # define getpagesize() 8192 /* punt totally */ | |
10749 | # endif /* no HAVE_SYS_PARAM_H */ | |
10750 | # endif /* no _SC_PAGESIZE */ | |
10751 | ||
10752 | #endif /* no HAVE_GETPAGESIZE */ | |
10753 | ||
10754 | int | |
10755 | main () | |
10756 | { | |
10757 | char *data, *data2, *data3; | |
10758 | const char *cdata2; | |
10759 | int i, pagesize; | |
10760 | int fd, fd2; | |
10761 | ||
10762 | pagesize = getpagesize (); | |
10763 | ||
10764 | /* First, make a file with some known garbage in it. */ | |
10765 | data = (char *) malloc (pagesize); | |
10766 | if (!data) | |
10767 | return 1; | |
10768 | for (i = 0; i < pagesize; ++i) | |
10769 | *(data + i) = rand (); | |
10770 | umask (0); | |
10771 | fd = creat ("conftest.mmap", 0600); | |
10772 | if (fd < 0) | |
10773 | return 2; | |
10774 | if (write (fd, data, pagesize) != pagesize) | |
10775 | return 3; | |
10776 | close (fd); | |
10777 | ||
10778 | /* Next, check that the tail of a page is zero-filled. File must have | |
10779 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
10780 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
10781 | if (fd2 < 0) | |
10782 | return 4; | |
10783 | cdata2 = ""; | |
10784 | if (write (fd2, cdata2, 1) != 1) | |
10785 | return 5; | |
10786 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
10787 | if (data2 == MAP_FAILED) | |
10788 | return 6; | |
10789 | for (i = 0; i < pagesize; ++i) | |
10790 | if (*(data2 + i)) | |
10791 | return 7; | |
10792 | close (fd2); | |
10793 | if (munmap (data2, pagesize)) | |
10794 | return 8; | |
10795 | ||
10796 | /* Next, try to mmap the file at a fixed address which already has | |
10797 | something else allocated at it. If we can, also make sure that | |
10798 | we see the same garbage. */ | |
10799 | fd = open ("conftest.mmap", O_RDWR); | |
10800 | if (fd < 0) | |
10801 | return 9; | |
10802 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
10803 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
10804 | return 10; | |
10805 | for (i = 0; i < pagesize; ++i) | |
10806 | if (*(data + i) != *(data2 + i)) | |
10807 | return 11; | |
10808 | ||
10809 | /* Finally, make sure that changes to the mapped area do not | |
10810 | percolate back to the file as seen by read(). (This is a bug on | |
10811 | some variants of i386 svr4.0.) */ | |
10812 | for (i = 0; i < pagesize; ++i) | |
10813 | *(data2 + i) = *(data2 + i) + 1; | |
10814 | data3 = (char *) malloc (pagesize); | |
10815 | if (!data3) | |
10816 | return 12; | |
10817 | if (read (fd, data3, pagesize) != pagesize) | |
10818 | return 13; | |
10819 | for (i = 0; i < pagesize; ++i) | |
10820 | if (*(data + i) != *(data3 + i)) | |
10821 | return 14; | |
10822 | close (fd); | |
10823 | return 0; | |
10824 | } | |
10825 | _ACEOF | |
10826 | if ac_fn_c_try_run "$LINENO"; then : | |
10827 | ac_cv_func_mmap_fixed_mapped=yes | |
10828 | else | |
10829 | ac_cv_func_mmap_fixed_mapped=no | |
10830 | fi | |
10831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
10832 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10833 | fi | |
10834 | ||
10835 | fi | |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10837 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10838 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10839 | ||
10840 | $as_echo "@%:@define HAVE_MMAP 1" >>confdefs.h | |
10841 | ||
10842 | fi | |
10843 | rm -f conftest.mmap conftest.txt | |
10844 | ||
10845 | for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \ | |
10846 | munmap stpcpy strcspn strdup | |
10847 | do : | |
10848 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10849 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10850 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10851 | cat >>confdefs.h <<_ACEOF | |
10852 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10853 | _ACEOF | |
10854 | ||
10855 | fi | |
10856 | done | |
10857 | ||
10858 | ||
10859 | INTL_DEP= INTL_INC= LIBINTL_H= | |
10860 | if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then | |
10861 | INTL_DEP='${INTL_LIBDIR}/libintl.a' | |
10862 | INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}' | |
10863 | LIBINTL_H='${INTL_BUILDDIR}/libintl.h' | |
10864 | fi | |
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | for ac_header in wctype.h | |
10872 | do : | |
10873 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" | |
10874 | if test "x$ac_cv_header_wctype_h" = xyes; then : | |
10875 | cat >>confdefs.h <<_ACEOF | |
10876 | @%:@define HAVE_WCTYPE_H 1 | |
10877 | _ACEOF | |
10878 | ||
10879 | fi | |
10880 | ||
10881 | done | |
10882 | ||
10883 | for ac_header in wchar.h | |
10884 | do : | |
10885 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
10886 | if test "x$ac_cv_header_wchar_h" = xyes; then : | |
10887 | cat >>confdefs.h <<_ACEOF | |
10888 | @%:@define HAVE_WCHAR_H 1 | |
10889 | _ACEOF | |
10890 | ||
10891 | fi | |
10892 | ||
10893 | done | |
10894 | ||
10895 | for ac_header in langinfo.h | |
10896 | do : | |
10897 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
10898 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
10899 | cat >>confdefs.h <<_ACEOF | |
10900 | @%:@define HAVE_LANGINFO_H 1 | |
10901 | _ACEOF | |
10902 | ||
10903 | fi | |
10904 | ||
10905 | done | |
10906 | ||
10907 | ||
10908 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" | |
10909 | if test "x$ac_cv_func_mbrlen" = xyes; then : | |
10910 | $as_echo "@%:@define HAVE_MBRLEN 1" >>confdefs.h | |
10911 | ||
10912 | fi | |
10913 | ||
10914 | ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" | |
10915 | if test "x$ac_cv_func_mbscasecmp" = xyes; then : | |
10916 | $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h | |
10917 | ||
10918 | fi | |
10919 | ||
10920 | ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" | |
10921 | if test "x$ac_cv_func_mbscmp" = xyes; then : | |
10922 | $as_echo "@%:@define HAVE_MBSCMP 1" >>confdefs.h | |
10923 | ||
10924 | fi | |
10925 | ||
10926 | ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" | |
10927 | if test "x$ac_cv_func_mbsnrtowcs" = xyes; then : | |
10928 | $as_echo "@%:@define HAVE_MBSNRTOWCS 1" >>confdefs.h | |
10929 | ||
10930 | fi | |
10931 | ||
10932 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" | |
10933 | if test "x$ac_cv_func_mbsrtowcs" = xyes; then : | |
10934 | $as_echo "@%:@define HAVE_MBSRTOWCS 1" >>confdefs.h | |
10935 | ||
10936 | fi | |
10937 | ||
10938 | ||
10939 | ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" | |
10940 | if test "x$ac_cv_func_mbschr" = xyes; then : | |
10941 | $as_echo "@%:@define HAVE_MBSCHR 1" >>confdefs.h | |
10942 | ||
10943 | else | |
10944 | case " $LIB@&t@OBJS " in | |
10945 | *" mbschr.$ac_objext "* ) ;; | |
10946 | *) LIB@&t@OBJS="$LIB@&t@OBJS mbschr.$ac_objext" | |
10947 | ;; | |
10948 | esac | |
10949 | ||
10950 | fi | |
10951 | ||
10952 | ||
10953 | ||
10954 | ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" | |
10955 | if test "x$ac_cv_func_wcrtomb" = xyes; then : | |
10956 | $as_echo "@%:@define HAVE_WCRTOMB 1" >>confdefs.h | |
10957 | ||
10958 | fi | |
10959 | ||
10960 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" | |
10961 | if test "x$ac_cv_func_wcscoll" = xyes; then : | |
10962 | $as_echo "@%:@define HAVE_WCSCOLL 1" >>confdefs.h | |
10963 | ||
10964 | fi | |
10965 | ||
10966 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" | |
10967 | if test "x$ac_cv_func_wcsdup" = xyes; then : | |
10968 | $as_echo "@%:@define HAVE_WCSDUP 1" >>confdefs.h | |
10969 | ||
10970 | fi | |
10971 | ||
10972 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" | |
10973 | if test "x$ac_cv_func_wcwidth" = xyes; then : | |
10974 | $as_echo "@%:@define HAVE_WCWIDTH 1" >>confdefs.h | |
10975 | ||
10976 | fi | |
10977 | ||
10978 | ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" | |
10979 | if test "x$ac_cv_func_wctype" = xyes; then : | |
10980 | $as_echo "@%:@define HAVE_WCTYPE 1" >>confdefs.h | |
10981 | ||
10982 | fi | |
10983 | ||
10984 | ||
10985 | ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" | |
10986 | if test "x$ac_cv_func_wcswidth" = xyes; then : | |
10987 | $as_echo "@%:@define HAVE_WCSWIDTH 1" >>confdefs.h | |
10988 | ||
10989 | else | |
10990 | case " $LIB@&t@OBJS " in | |
10991 | *" wcswidth.$ac_objext "* ) ;; | |
10992 | *) LIB@&t@OBJS="$LIB@&t@OBJS wcswidth.$ac_objext" | |
10993 | ;; | |
10994 | esac | |
10995 | ||
10996 | fi | |
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 | |
11002 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
11003 | if ${ac_cv_func_mbrtowc+:} false; then : | |
11004 | $as_echo_n "(cached) " >&6 | |
11005 | else | |
11006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11007 | /* end confdefs.h. */ | |
11008 | @%:@include <wchar.h> | |
11009 | int | |
11010 | main () | |
11011 | { | |
11012 | wchar_t wc; | |
11013 | char const s[] = ""; | |
11014 | size_t n = 1; | |
11015 | mbstate_t state; | |
11016 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
11017 | ; | |
11018 | return 0; | |
11019 | } | |
11020 | _ACEOF | |
11021 | if ac_fn_c_try_link "$LINENO"; then : | |
11022 | ac_cv_func_mbrtowc=yes | |
11023 | else | |
11024 | ac_cv_func_mbrtowc=no | |
11025 | fi | |
11026 | rm -f core conftest.err conftest.$ac_objext \ | |
11027 | conftest$ac_exeext conftest.$ac_ext | |
11028 | fi | |
11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 | |
11030 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
11031 | if test $ac_cv_func_mbrtowc = yes; then | |
11032 | ||
11033 | $as_echo "@%:@define HAVE_MBRTOWC 1" >>confdefs.h | |
11034 | ||
11035 | fi | |
11036 | ||
11037 | if test $ac_cv_func_mbrtowc = yes; then | |
11038 | $as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h | |
11039 | ||
11040 | fi | |
11041 | ||
11042 | for ac_func in iswlower iswupper towlower towupper iswctype | |
11043 | do : | |
11044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11045 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
11046 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
11047 | cat >>confdefs.h <<_ACEOF | |
11048 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11049 | _ACEOF | |
11050 | ||
11051 | fi | |
11052 | done | |
11053 | ||
11054 | ||
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | |
11056 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
11057 | if ${bash_cv_langinfo_codeset+:} false; then : | |
11058 | $as_echo_n "(cached) " >&6 | |
11059 | else | |
11060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11061 | /* end confdefs.h. */ | |
11062 | #include <langinfo.h> | |
11063 | int | |
11064 | main () | |
11065 | { | |
11066 | char* cs = nl_langinfo(CODESET); | |
11067 | ; | |
11068 | return 0; | |
11069 | } | |
11070 | _ACEOF | |
11071 | if ac_fn_c_try_link "$LINENO"; then : | |
11072 | bash_cv_langinfo_codeset=yes | |
11073 | else | |
11074 | bash_cv_langinfo_codeset=no | |
11075 | fi | |
11076 | rm -f core conftest.err conftest.$ac_objext \ | |
11077 | conftest$ac_exeext conftest.$ac_ext | |
11078 | fi | |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 | |
11080 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
11081 | if test $bash_cv_langinfo_codeset = yes; then | |
11082 | $as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h | |
11083 | ||
11084 | fi | |
11085 | ||
11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 | |
11087 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
11088 | if ${bash_cv_type_wchar_t+:} false; then : | |
11089 | $as_echo_n "(cached) " >&6 | |
11090 | else | |
11091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11092 | /* end confdefs.h. */ | |
11093 | #include <wchar.h> | |
11094 | ||
11095 | int | |
11096 | main () | |
11097 | { | |
11098 | ||
11099 | wchar_t foo; | |
11100 | foo = 0; | |
11101 | ||
11102 | ; | |
11103 | return 0; | |
11104 | } | |
11105 | _ACEOF | |
11106 | if ac_fn_c_try_compile "$LINENO"; then : | |
11107 | bash_cv_type_wchar_t=yes | |
11108 | else | |
11109 | bash_cv_type_wchar_t=no | |
11110 | fi | |
11111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11112 | fi | |
11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 | |
11114 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
11115 | if test $bash_cv_type_wchar_t = yes; then | |
11116 | ||
11117 | $as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h | |
11118 | ||
11119 | fi | |
11120 | ||
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 | |
11122 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
11123 | if ${bash_cv_type_wctype_t+:} false; then : | |
11124 | $as_echo_n "(cached) " >&6 | |
11125 | else | |
11126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11127 | /* end confdefs.h. */ | |
11128 | #include <wctype.h> | |
11129 | int | |
11130 | main () | |
11131 | { | |
11132 | ||
11133 | wctype_t foo; | |
11134 | foo = 0; | |
11135 | ||
11136 | ; | |
11137 | return 0; | |
11138 | } | |
11139 | _ACEOF | |
11140 | if ac_fn_c_try_compile "$LINENO"; then : | |
11141 | bash_cv_type_wctype_t=yes | |
11142 | else | |
11143 | bash_cv_type_wctype_t=no | |
11144 | fi | |
11145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11146 | fi | |
11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 | |
11148 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
11149 | if test $bash_cv_type_wctype_t = yes; then | |
11150 | ||
11151 | $as_echo "@%:@define HAVE_WCTYPE_T 1" >>confdefs.h | |
11152 | ||
11153 | fi | |
11154 | ||
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 | |
11156 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
11157 | if ${bash_cv_type_wint_t+:} false; then : | |
11158 | $as_echo_n "(cached) " >&6 | |
11159 | else | |
11160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11161 | /* end confdefs.h. */ | |
11162 | #include <wctype.h> | |
11163 | int | |
11164 | main () | |
11165 | { | |
11166 | ||
11167 | wint_t foo; | |
11168 | foo = 0; | |
11169 | ||
11170 | ; | |
11171 | return 0; | |
11172 | } | |
11173 | _ACEOF | |
11174 | if ac_fn_c_try_compile "$LINENO"; then : | |
11175 | bash_cv_type_wint_t=yes | |
11176 | else | |
11177 | bash_cv_type_wint_t=no | |
11178 | fi | |
11179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11180 | fi | |
11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 | |
11182 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
11183 | if test $bash_cv_type_wint_t = yes; then | |
11184 | ||
11185 | $as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h | |
11186 | ||
11187 | fi | |
11188 | ||
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5 | |
11190 | $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; } | |
11191 | if ${bash_cv_wcwidth_broken+:} false; then : | |
11192 | $as_echo_n "(cached) " >&6 | |
11193 | else | |
11194 | if test "$cross_compiling" = yes; then : | |
11195 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11196 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11197 | as_fn_error $? "cannot run test program while cross compiling | |
11198 | See \`config.log' for more details" "$LINENO" 5; } | |
11199 | else | |
11200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11201 | /* end confdefs.h. */ | |
11202 | ||
11203 | #include <unistd.h> | |
11204 | #include <stdlib.h> | |
11205 | #include <stdio.h> | |
11206 | ||
11207 | #include <locale.h> | |
11208 | #include <wchar.h> | |
11209 | ||
11210 | main(c, v) | |
11211 | int c; | |
11212 | char **v; | |
11213 | { | |
11214 | int w; | |
11215 | ||
11216 | setlocale(LC_ALL, "en_US.UTF-8"); | |
11217 | w = wcwidth (0x0301); | |
11218 | exit (w == 0); /* exit 0 if wcwidth broken */ | |
11219 | } | |
11220 | ||
11221 | _ACEOF | |
11222 | if ac_fn_c_try_run "$LINENO"; then : | |
11223 | bash_cv_wcwidth_broken=yes | |
11224 | else | |
11225 | bash_cv_wcwdith_broken=no | |
11226 | fi | |
11227 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11228 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11229 | fi | |
11230 | ||
11231 | fi | |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5 | |
11233 | $as_echo "$bash_cv_wcwidth_broken" >&6; } | |
11234 | if test $bash_cv_wcwidth_broken = yes; then | |
11235 | ||
11236 | $as_echo "@%:@define WCWIDTH_BROKEN 1" >>confdefs.h | |
11237 | ||
11238 | fi | |
11239 | ||
11240 | if test "$am_cv_func_iconv" = yes; then | |
11241 | OLDLIBS="$LIBS" | |
11242 | LIBS="$LIBS $LIBICONV" | |
11243 | for ac_func in locale_charset | |
11244 | do : | |
11245 | ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" | |
11246 | if test "x$ac_cv_func_locale_charset" = xyes; then : | |
11247 | cat >>confdefs.h <<_ACEOF | |
11248 | @%:@define HAVE_LOCALE_CHARSET 1 | |
11249 | _ACEOF | |
11250 | ||
11251 | fi | |
11252 | done | |
11253 | ||
11254 | LIBS="$OLDLIBS" | |
11255 | fi | |
11256 | ||
11257 | ||
11258 | ||
11259 | if test "$opt_static_link" != yes; then | |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11261 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11262 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11263 | $as_echo_n "(cached) " >&6 | |
11264 | else | |
11265 | ac_check_lib_save_LIBS=$LIBS | |
11266 | LIBS="-ldl $LIBS" | |
11267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11268 | /* end confdefs.h. */ | |
11269 | ||
11270 | /* Override any GCC internal prototype to avoid an error. | |
11271 | Use char because int might match the return type of a GCC | |
11272 | builtin and then its argument prototype would still apply. */ | |
11273 | #ifdef __cplusplus | |
11274 | extern "C" | |
11275 | #endif | |
11276 | char dlopen (); | |
11277 | int | |
11278 | main () | |
11279 | { | |
11280 | return dlopen (); | |
11281 | ; | |
11282 | return 0; | |
11283 | } | |
11284 | _ACEOF | |
11285 | if ac_fn_c_try_link "$LINENO"; then : | |
11286 | ac_cv_lib_dl_dlopen=yes | |
11287 | else | |
11288 | ac_cv_lib_dl_dlopen=no | |
11289 | fi | |
11290 | rm -f core conftest.err conftest.$ac_objext \ | |
11291 | conftest$ac_exeext conftest.$ac_ext | |
11292 | LIBS=$ac_check_lib_save_LIBS | |
11293 | fi | |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11295 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11296 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11297 | cat >>confdefs.h <<_ACEOF | |
11298 | @%:@define HAVE_LIBDL 1 | |
11299 | _ACEOF | |
11300 | ||
11301 | LIBS="-ldl $LIBS" | |
11302 | ||
11303 | fi | |
11304 | ||
11305 | for ac_func in dlopen dlclose dlsym | |
11306 | do : | |
11307 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11308 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
11309 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
11310 | cat >>confdefs.h <<_ACEOF | |
11311 | @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11312 | _ACEOF | |
11313 | ||
11314 | fi | |
11315 | done | |
11316 | ||
11317 | fi | |
11318 | ||
11319 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> | |
11320 | /* NetBSD declares sys_siglist in unistd.h. */ | |
11321 | #ifdef HAVE_UNISTD_H | |
11322 | # include <unistd.h> | |
11323 | #endif | |
11324 | ||
11325 | " | |
11326 | if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : | |
11327 | ac_have_decl=1 | |
11328 | else | |
11329 | ac_have_decl=0 | |
11330 | fi | |
11331 | ||
11332 | cat >>confdefs.h <<_ACEOF | |
11333 | @%:@define HAVE_DECL_SYS_SIGLIST $ac_have_decl | |
11334 | _ACEOF | |
11335 | ||
11336 | ||
11337 | ||
11338 | if test "$ac_cv_func_inet_aton" != 'yes'; then | |
11339 | ||
11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 | |
11341 | $as_echo_n "checking for inet_aton... " >&6; } | |
11342 | if ${bash_cv_func_inet_aton+:} false; then : | |
11343 | $as_echo_n "(cached) " >&6 | |
11344 | else | |
11345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11346 | /* end confdefs.h. */ | |
11347 | ||
11348 | #include <sys/types.h> | |
11349 | #include <netinet/in.h> | |
11350 | #include <arpa/inet.h> | |
11351 | struct in_addr ap; | |
11352 | int | |
11353 | main () | |
11354 | { | |
11355 | inet_aton("127.0.0.1", &ap); | |
11356 | ; | |
11357 | return 0; | |
11358 | } | |
11359 | _ACEOF | |
11360 | if ac_fn_c_try_link "$LINENO"; then : | |
11361 | bash_cv_func_inet_aton=yes | |
11362 | else | |
11363 | bash_cv_func_inet_aton=no | |
11364 | fi | |
11365 | rm -f core conftest.err conftest.$ac_objext \ | |
11366 | conftest$ac_exeext conftest.$ac_ext | |
11367 | fi | |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_inet_aton" >&5 | |
11369 | $as_echo "$bash_cv_func_inet_aton" >&6; } | |
11370 | if test $bash_cv_func_inet_aton = yes; then | |
11371 | $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h | |
11372 | ||
11373 | else | |
11374 | case " $LIB@&t@OBJS " in | |
11375 | *" inet_aton.$ac_objext "* ) ;; | |
11376 | *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext" | |
11377 | ;; | |
11378 | esac | |
11379 | ||
11380 | fi | |
11381 | ||
11382 | fi | |
11383 | ||
11384 | case "$host_os" in | |
11385 | irix4*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwent in -lsun" >&5 | |
11386 | $as_echo_n "checking for getpwent in -lsun... " >&6; } | |
11387 | if ${ac_cv_lib_sun_getpwent+:} false; then : | |
11388 | $as_echo_n "(cached) " >&6 | |
11389 | else | |
11390 | ac_check_lib_save_LIBS=$LIBS | |
11391 | LIBS="-lsun $LIBS" | |
11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11393 | /* end confdefs.h. */ | |
11394 | ||
11395 | /* Override any GCC internal prototype to avoid an error. | |
11396 | Use char because int might match the return type of a GCC | |
11397 | builtin and then its argument prototype would still apply. */ | |
11398 | #ifdef __cplusplus | |
11399 | extern "C" | |
11400 | #endif | |
11401 | char getpwent (); | |
11402 | int | |
11403 | main () | |
11404 | { | |
11405 | return getpwent (); | |
11406 | ; | |
11407 | return 0; | |
11408 | } | |
11409 | _ACEOF | |
11410 | if ac_fn_c_try_link "$LINENO"; then : | |
11411 | ac_cv_lib_sun_getpwent=yes | |
11412 | else | |
11413 | ac_cv_lib_sun_getpwent=no | |
11414 | fi | |
11415 | rm -f core conftest.err conftest.$ac_objext \ | |
11416 | conftest$ac_exeext conftest.$ac_ext | |
11417 | LIBS=$ac_check_lib_save_LIBS | |
11418 | fi | |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwent" >&5 | |
11420 | $as_echo "$ac_cv_lib_sun_getpwent" >&6; } | |
11421 | if test "x$ac_cv_lib_sun_getpwent" = xyes; then : | |
11422 | cat >>confdefs.h <<_ACEOF | |
11423 | @%:@define HAVE_LIBSUN 1 | |
11424 | _ACEOF | |
11425 | ||
11426 | LIBS="-lsun $LIBS" | |
11427 | ||
11428 | fi | |
11429 | ;; | |
11430 | esac | |
11431 | ||
11432 | if test "$ac_cv_func_getpeername" = no; then | |
11433 | ||
11434 | if test "X$bash_cv_have_socklib" = "X"; then | |
11435 | _bash_needmsg= | |
11436 | else | |
11437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket library" >&5 | |
11438 | $as_echo_n "checking for socket library... " >&6; } | |
11439 | _bash_needmsg=yes | |
11440 | fi | |
11441 | if ${bash_cv_have_socklib+:} false; then : | |
11442 | $as_echo_n "(cached) " >&6 | |
11443 | else | |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5 | |
11445 | $as_echo_n "checking for getpeername in -lsocket... " >&6; } | |
11446 | if ${ac_cv_lib_socket_getpeername+:} false; then : | |
11447 | $as_echo_n "(cached) " >&6 | |
11448 | else | |
11449 | ac_check_lib_save_LIBS=$LIBS | |
11450 | LIBS="-lsocket -lnsl $LIBS" | |
11451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11452 | /* end confdefs.h. */ | |
11453 | ||
11454 | /* Override any GCC internal prototype to avoid an error. | |
11455 | Use char because int might match the return type of a GCC | |
11456 | builtin and then its argument prototype would still apply. */ | |
11457 | #ifdef __cplusplus | |
11458 | extern "C" | |
11459 | #endif | |
11460 | char getpeername (); | |
11461 | int | |
11462 | main () | |
11463 | { | |
11464 | return getpeername (); | |
11465 | ; | |
11466 | return 0; | |
11467 | } | |
11468 | _ACEOF | |
11469 | if ac_fn_c_try_link "$LINENO"; then : | |
11470 | ac_cv_lib_socket_getpeername=yes | |
11471 | else | |
11472 | ac_cv_lib_socket_getpeername=no | |
11473 | fi | |
11474 | rm -f core conftest.err conftest.$ac_objext \ | |
11475 | conftest$ac_exeext conftest.$ac_ext | |
11476 | LIBS=$ac_check_lib_save_LIBS | |
11477 | fi | |
11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5 | |
11479 | $as_echo "$ac_cv_lib_socket_getpeername" >&6; } | |
11480 | if test "x$ac_cv_lib_socket_getpeername" = xyes; then : | |
11481 | bash_cv_have_socklib=yes | |
11482 | else | |
11483 | bash_cv_have_socklib=no | |
11484 | fi | |
11485 | ||
11486 | fi | |
11487 | ||
11488 | if test "X$_bash_needmsg" = Xyes; then | |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_socklib" >&5 | |
11490 | $as_echo "$bash_cv_have_socklib" >&6; } | |
11491 | _bash_needmsg= | |
11492 | fi | |
11493 | if test $bash_cv_have_socklib = yes; then | |
11494 | # check for libnsl, add it to LIBS if present | |
11495 | if test "X$bash_cv_have_libnsl" = "X"; then | |
11496 | _bash_needmsg= | |
11497 | else | |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5 | |
11499 | $as_echo_n "checking for libnsl... " >&6; } | |
11500 | _bash_needmsg=yes | |
11501 | fi | |
11502 | if ${bash_cv_have_libnsl+:} false; then : | |
11503 | $as_echo_n "(cached) " >&6 | |
11504 | else | |
11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 | |
11506 | $as_echo_n "checking for t_open in -lnsl... " >&6; } | |
11507 | if ${ac_cv_lib_nsl_t_open+:} false; then : | |
11508 | $as_echo_n "(cached) " >&6 | |
11509 | else | |
11510 | ac_check_lib_save_LIBS=$LIBS | |
11511 | LIBS="-lnsl $LIBS" | |
11512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11513 | /* end confdefs.h. */ | |
11514 | ||
11515 | /* Override any GCC internal prototype to avoid an error. | |
11516 | Use char because int might match the return type of a GCC | |
11517 | builtin and then its argument prototype would still apply. */ | |
11518 | #ifdef __cplusplus | |
11519 | extern "C" | |
11520 | #endif | |
11521 | char t_open (); | |
11522 | int | |
11523 | main () | |
11524 | { | |
11525 | return t_open (); | |
11526 | ; | |
11527 | return 0; | |
11528 | } | |
11529 | _ACEOF | |
11530 | if ac_fn_c_try_link "$LINENO"; then : | |
11531 | ac_cv_lib_nsl_t_open=yes | |
11532 | else | |
11533 | ac_cv_lib_nsl_t_open=no | |
11534 | fi | |
11535 | rm -f core conftest.err conftest.$ac_objext \ | |
11536 | conftest$ac_exeext conftest.$ac_ext | |
11537 | LIBS=$ac_check_lib_save_LIBS | |
11538 | fi | |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 | |
11540 | $as_echo "$ac_cv_lib_nsl_t_open" >&6; } | |
11541 | if test "x$ac_cv_lib_nsl_t_open" = xyes; then : | |
11542 | bash_cv_have_libnsl=yes | |
11543 | else | |
11544 | bash_cv_have_libnsl=no | |
11545 | fi | |
11546 | ||
11547 | fi | |
11548 | ||
11549 | if test "X$_bash_needmsg" = Xyes; then | |
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_libnsl" >&5 | |
11551 | $as_echo "$bash_cv_have_libnsl" >&6; } | |
11552 | _bash_needmsg= | |
11553 | fi | |
11554 | if test $bash_cv_have_libnsl = yes; then | |
11555 | LIBS="-lsocket -lnsl $LIBS" | |
11556 | else | |
11557 | LIBS="-lsocket $LIBS" | |
11558 | fi | |
11559 | $as_echo "@%:@define HAVE_LIBSOCKET 1" >>confdefs.h | |
11560 | ||
11561 | $as_echo "@%:@define HAVE_GETPEERNAME 1" >>confdefs.h | |
11562 | ||
11563 | fi | |
11564 | ||
11565 | fi | |
11566 | if test "$ac_cv_func_gethostbyname" = no; then | |
11567 | if test "X$bash_cv_have_gethostbyname" = "X"; then | |
11568 | _bash_needmsg=yes | |
11569 | else | |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5 | |
11571 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
11572 | _bash_needmsg= | |
11573 | fi | |
11574 | if ${bash_cv_have_gethostbyname+:} false; then : | |
11575 | $as_echo_n "(cached) " >&6 | |
11576 | else | |
11577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11578 | /* end confdefs.h. */ | |
11579 | #include <netdb.h> | |
11580 | int | |
11581 | main () | |
11582 | { | |
11583 | struct hostent *hp; | |
11584 | hp = gethostbyname("localhost"); | |
11585 | ||
11586 | ; | |
11587 | return 0; | |
11588 | } | |
11589 | _ACEOF | |
11590 | if ac_fn_c_try_link "$LINENO"; then : | |
11591 | bash_cv_have_gethostbyname=yes | |
11592 | else | |
11593 | bash_cv_have_gethostbyname=no | |
11594 | fi | |
11595 | rm -f core conftest.err conftest.$ac_objext \ | |
11596 | conftest$ac_exeext conftest.$ac_ext | |
11597 | ||
11598 | fi | |
11599 | ||
11600 | if test "X$_bash_needmsg" = Xyes; then | |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in socket library" >&5 | |
11602 | $as_echo_n "checking for gethostbyname in socket library... " >&6; } | |
11603 | fi | |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_gethostbyname" >&5 | |
11605 | $as_echo "$bash_cv_have_gethostbyname" >&6; } | |
11606 | if test "$bash_cv_have_gethostbyname" = yes; then | |
11607 | $as_echo "@%:@define HAVE_GETHOSTBYNAME 1" >>confdefs.h | |
11608 | ||
11609 | fi | |
11610 | ||
11611 | fi | |
11612 | ||
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
11614 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
11615 | if ${ac_cv_type_uid_t+:} false; then : | |
11616 | $as_echo_n "(cached) " >&6 | |
11617 | else | |
11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11619 | /* end confdefs.h. */ | |
11620 | #include <sys/types.h> | |
11621 | ||
11622 | _ACEOF | |
11623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11624 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
11625 | ac_cv_type_uid_t=yes | |
11626 | else | |
11627 | ac_cv_type_uid_t=no | |
11628 | fi | |
11629 | rm -f conftest* | |
11630 | ||
11631 | fi | |
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
11633 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
11634 | if test $ac_cv_type_uid_t = no; then | |
11635 | ||
11636 | $as_echo "@%:@define uid_t int" >>confdefs.h | |
11637 | ||
11638 | ||
11639 | $as_echo "@%:@define gid_t int" >>confdefs.h | |
11640 | ||
11641 | fi | |
11642 | ||
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 | |
11644 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
11645 | if ${ac_cv_type_getgroups+:} false; then : | |
11646 | $as_echo_n "(cached) " >&6 | |
11647 | else | |
11648 | if test "$cross_compiling" = yes; then : | |
11649 | ac_cv_type_getgroups=cross | |
11650 | else | |
11651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11652 | /* end confdefs.h. */ | |
11653 | /* Thanks to Mike Rendell for this test. */ | |
11654 | $ac_includes_default | |
11655 | #define NGID 256 | |
11656 | #undef MAX | |
11657 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
11658 | ||
11659 | int | |
11660 | main () | |
11661 | { | |
11662 | gid_t gidset[NGID]; | |
11663 | int i, n; | |
11664 | union { gid_t gval; long int lval; } val; | |
11665 | ||
11666 | val.lval = -1; | |
11667 | for (i = 0; i < NGID; i++) | |
11668 | gidset[i] = val.gval; | |
11669 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
11670 | gidset); | |
11671 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
11672 | happens when gid_t is short int but getgroups modifies an array | |
11673 | of ints. */ | |
11674 | return n > 0 && gidset[n] != val.gval; | |
11675 | } | |
11676 | _ACEOF | |
11677 | if ac_fn_c_try_run "$LINENO"; then : | |
11678 | ac_cv_type_getgroups=gid_t | |
11679 | else | |
11680 | ac_cv_type_getgroups=int | |
11681 | fi | |
11682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11683 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11684 | fi | |
11685 | ||
11686 | if test $ac_cv_type_getgroups = cross; then | |
11687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11688 | /* end confdefs.h. */ | |
11689 | #include <unistd.h> | |
11690 | ||
11691 | _ACEOF | |
11692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11693 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
11694 | ac_cv_type_getgroups=gid_t | |
11695 | else | |
11696 | ac_cv_type_getgroups=int | |
11697 | fi | |
11698 | rm -f conftest* | |
11699 | ||
11700 | fi | |
11701 | fi | |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
11703 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
11704 | ||
11705 | cat >>confdefs.h <<_ACEOF | |
11706 | @%:@define GETGROUPS_T $ac_cv_type_getgroups | |
11707 | _ACEOF | |
11708 | ||
11709 | ||
11710 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
11711 | if test "x$ac_cv_type_off_t" = xyes; then : | |
11712 | ||
11713 | else | |
11714 | ||
11715 | cat >>confdefs.h <<_ACEOF | |
11716 | @%:@define off_t long int | |
11717 | _ACEOF | |
11718 | ||
11719 | fi | |
11720 | ||
11721 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
11722 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
11723 | ||
11724 | else | |
11725 | ||
11726 | cat >>confdefs.h <<_ACEOF | |
11727 | @%:@define mode_t int | |
11728 | _ACEOF | |
11729 | ||
11730 | fi | |
11731 | ||
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
11733 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
11734 | if ${ac_cv_type_uid_t+:} false; then : | |
11735 | $as_echo_n "(cached) " >&6 | |
11736 | else | |
11737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11738 | /* end confdefs.h. */ | |
11739 | #include <sys/types.h> | |
11740 | ||
11741 | _ACEOF | |
11742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11743 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
11744 | ac_cv_type_uid_t=yes | |
11745 | else | |
11746 | ac_cv_type_uid_t=no | |
11747 | fi | |
11748 | rm -f conftest* | |
11749 | ||
11750 | fi | |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
11752 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
11753 | if test $ac_cv_type_uid_t = no; then | |
11754 | ||
11755 | $as_echo "@%:@define uid_t int" >>confdefs.h | |
11756 | ||
11757 | ||
11758 | $as_echo "@%:@define gid_t int" >>confdefs.h | |
11759 | ||
11760 | fi | |
11761 | ||
11762 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
11763 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
11764 | ||
11765 | else | |
11766 | ||
11767 | cat >>confdefs.h <<_ACEOF | |
11768 | @%:@define pid_t int | |
11769 | _ACEOF | |
11770 | ||
11771 | fi | |
11772 | ||
11773 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
11774 | if test "x$ac_cv_type_size_t" = xyes; then : | |
11775 | ||
11776 | else | |
11777 | ||
11778 | cat >>confdefs.h <<_ACEOF | |
11779 | @%:@define size_t unsigned int | |
11780 | _ACEOF | |
11781 | ||
11782 | fi | |
11783 | ||
11784 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
11785 | if test "x$ac_cv_type_ssize_t" = xyes; then : | |
11786 | ||
11787 | else | |
11788 | ||
11789 | cat >>confdefs.h <<_ACEOF | |
11790 | @%:@define ssize_t int | |
11791 | _ACEOF | |
11792 | ||
11793 | fi | |
11794 | ||
11795 | ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" | |
11796 | if test "x$ac_cv_type_time_t" = xyes; then : | |
11797 | ||
11798 | else | |
11799 | ||
11800 | cat >>confdefs.h <<_ACEOF | |
11801 | @%:@define time_t long | |
11802 | _ACEOF | |
11803 | ||
11804 | fi | |
11805 | ||
11806 | ||
11807 | ||
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 | |
11809 | $as_echo_n "checking for long long... " >&6; } | |
11810 | if ${bash_cv_type_long_long+:} false; then : | |
11811 | $as_echo_n "(cached) " >&6 | |
11812 | else | |
11813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11814 | /* end confdefs.h. */ | |
11815 | ||
11816 | long long ll = 1; int i = 63; | |
11817 | int | |
11818 | main () | |
11819 | { | |
11820 | ||
11821 | long long llm = (long long) -1; | |
11822 | return ll << i | ll >> i | llm / ll | llm % ll; | |
11823 | ||
11824 | ; | |
11825 | return 0; | |
11826 | } | |
11827 | _ACEOF | |
11828 | if ac_fn_c_try_link "$LINENO"; then : | |
11829 | bash_cv_type_long_long='long long' | |
11830 | else | |
11831 | bash_cv_type_long_long='long' | |
11832 | fi | |
11833 | rm -f core conftest.err conftest.$ac_objext \ | |
11834 | conftest$ac_exeext conftest.$ac_ext | |
11835 | fi | |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_long_long" >&5 | |
11837 | $as_echo "$bash_cv_type_long_long" >&6; } | |
11838 | if test "$bash_cv_type_long_long" = 'long long'; then | |
11839 | $as_echo "@%:@define HAVE_LONG_LONG 1" >>confdefs.h | |
11840 | ||
11841 | fi | |
11842 | ||
11843 | ||
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 | |
11845 | $as_echo_n "checking for unsigned long long... " >&6; } | |
11846 | if ${bash_cv_type_unsigned_long_long+:} false; then : | |
11847 | $as_echo_n "(cached) " >&6 | |
11848 | else | |
11849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11850 | /* end confdefs.h. */ | |
11851 | ||
11852 | unsigned long long ull = 1; int i = 63; | |
11853 | int | |
11854 | main () | |
11855 | { | |
11856 | ||
11857 | unsigned long long ullmax = (unsigned long long) -1; | |
11858 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
11859 | ||
11860 | ; | |
11861 | return 0; | |
11862 | } | |
11863 | _ACEOF | |
11864 | if ac_fn_c_try_link "$LINENO"; then : | |
11865 | bash_cv_type_unsigned_long_long='unsigned long long' | |
11866 | else | |
11867 | bash_cv_type_unsigned_long_long='unsigned long' | |
11868 | fi | |
11869 | rm -f core conftest.err conftest.$ac_objext \ | |
11870 | conftest$ac_exeext conftest.$ac_ext | |
11871 | fi | |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_unsigned_long_long" >&5 | |
11873 | $as_echo "$bash_cv_type_unsigned_long_long" >&6; } | |
11874 | if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then | |
11875 | $as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h | |
11876 | ||
11877 | fi | |
11878 | ||
11879 | ||
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
11881 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
11882 | if ${ac_cv_type_signal+:} false; then : | |
11883 | $as_echo_n "(cached) " >&6 | |
11884 | else | |
11885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11886 | /* end confdefs.h. */ | |
11887 | #include <sys/types.h> | |
11888 | #include <signal.h> | |
11889 | ||
11890 | int | |
11891 | main () | |
11892 | { | |
11893 | return *(signal (0, 0)) (0) == 1; | |
11894 | ; | |
11895 | return 0; | |
11896 | } | |
11897 | _ACEOF | |
11898 | if ac_fn_c_try_compile "$LINENO"; then : | |
11899 | ac_cv_type_signal=int | |
11900 | else | |
11901 | ac_cv_type_signal=void | |
11902 | fi | |
11903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11904 | fi | |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
11906 | $as_echo "$ac_cv_type_signal" >&6; } | |
11907 | ||
11908 | cat >>confdefs.h <<_ACEOF | |
11909 | @%:@define RETSIGTYPE $ac_cv_type_signal | |
11910 | _ACEOF | |
11911 | ||
11912 | ||
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 | |
11914 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
11915 | if ${ac_cv_have_sig_atomic_t+:} false; then : | |
11916 | $as_echo_n "(cached) " >&6 | |
11917 | else | |
11918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11919 | /* end confdefs.h. */ | |
11920 | ||
11921 | #include <signal.h> | |
11922 | ||
11923 | int | |
11924 | main () | |
11925 | { | |
11926 | sig_atomic_t x; | |
11927 | ; | |
11928 | return 0; | |
11929 | } | |
11930 | _ACEOF | |
11931 | if ac_fn_c_try_link "$LINENO"; then : | |
11932 | ac_cv_have_sig_atomic_t=yes | |
11933 | else | |
11934 | ac_cv_have_sig_atomic_t=no | |
11935 | fi | |
11936 | rm -f core conftest.err conftest.$ac_objext \ | |
11937 | conftest$ac_exeext conftest.$ac_ext | |
11938 | fi | |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 | |
11940 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
11941 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
11942 | then | |
11943 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" | |
11944 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | |
11945 | ||
11946 | else | |
11947 | ||
11948 | cat >>confdefs.h <<_ACEOF | |
11949 | @%:@define sig_atomic_t int | |
11950 | _ACEOF | |
11951 | ||
11952 | fi | |
11953 | ||
11954 | fi | |
11955 | ||
11956 | ||
11957 | # The cast to long int works around a bug in the HP C Compiler | |
11958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11960 | # This bug is HP SR number 8606223364. | |
11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
11962 | $as_echo_n "checking size of char... " >&6; } | |
11963 | if ${ac_cv_sizeof_char+:} false; then : | |
11964 | $as_echo_n "(cached) " >&6 | |
11965 | else | |
11966 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
11967 | ||
11968 | else | |
11969 | if test "$ac_cv_type_char" = yes; then | |
11970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11972 | as_fn_error 77 "cannot compute sizeof (char) | |
11973 | See \`config.log' for more details" "$LINENO" 5; } | |
11974 | else | |
11975 | ac_cv_sizeof_char=0 | |
11976 | fi | |
11977 | fi | |
11978 | ||
11979 | fi | |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
11981 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
11982 | ||
11983 | ||
11984 | ||
11985 | cat >>confdefs.h <<_ACEOF | |
11986 | @%:@define SIZEOF_CHAR $ac_cv_sizeof_char | |
11987 | _ACEOF | |
11988 | ||
11989 | ||
11990 | # The cast to long int works around a bug in the HP C Compiler | |
11991 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11992 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11993 | # This bug is HP SR number 8606223364. | |
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
11995 | $as_echo_n "checking size of short... " >&6; } | |
11996 | if ${ac_cv_sizeof_short+:} false; then : | |
11997 | $as_echo_n "(cached) " >&6 | |
11998 | else | |
11999 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
12000 | ||
12001 | else | |
12002 | if test "$ac_cv_type_short" = yes; then | |
12003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12004 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12005 | as_fn_error 77 "cannot compute sizeof (short) | |
12006 | See \`config.log' for more details" "$LINENO" 5; } | |
12007 | else | |
12008 | ac_cv_sizeof_short=0 | |
12009 | fi | |
12010 | fi | |
12011 | ||
12012 | fi | |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
12014 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
12015 | ||
12016 | ||
12017 | ||
12018 | cat >>confdefs.h <<_ACEOF | |
12019 | @%:@define SIZEOF_SHORT $ac_cv_sizeof_short | |
12020 | _ACEOF | |
12021 | ||
12022 | ||
12023 | # The cast to long int works around a bug in the HP C Compiler | |
12024 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12025 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12026 | # This bug is HP SR number 8606223364. | |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12028 | $as_echo_n "checking size of int... " >&6; } | |
12029 | if ${ac_cv_sizeof_int+:} false; then : | |
12030 | $as_echo_n "(cached) " >&6 | |
12031 | else | |
12032 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12033 | ||
12034 | else | |
12035 | if test "$ac_cv_type_int" = yes; then | |
12036 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12038 | as_fn_error 77 "cannot compute sizeof (int) | |
12039 | See \`config.log' for more details" "$LINENO" 5; } | |
12040 | else | |
12041 | ac_cv_sizeof_int=0 | |
12042 | fi | |
12043 | fi | |
12044 | ||
12045 | fi | |
12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12047 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
12048 | ||
12049 | ||
12050 | ||
12051 | cat >>confdefs.h <<_ACEOF | |
12052 | @%:@define SIZEOF_INT $ac_cv_sizeof_int | |
12053 | _ACEOF | |
12054 | ||
12055 | ||
12056 | # The cast to long int works around a bug in the HP C Compiler | |
12057 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12058 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12059 | # This bug is HP SR number 8606223364. | |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12061 | $as_echo_n "checking size of long... " >&6; } | |
12062 | if ${ac_cv_sizeof_long+:} false; then : | |
12063 | $as_echo_n "(cached) " >&6 | |
12064 | else | |
12065 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12066 | ||
12067 | else | |
12068 | if test "$ac_cv_type_long" = yes; then | |
12069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12071 | as_fn_error 77 "cannot compute sizeof (long) | |
12072 | See \`config.log' for more details" "$LINENO" 5; } | |
12073 | else | |
12074 | ac_cv_sizeof_long=0 | |
12075 | fi | |
12076 | fi | |
12077 | ||
12078 | fi | |
12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12080 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12081 | ||
12082 | ||
12083 | ||
12084 | cat >>confdefs.h <<_ACEOF | |
12085 | @%:@define SIZEOF_LONG $ac_cv_sizeof_long | |
12086 | _ACEOF | |
12087 | ||
12088 | ||
12089 | # The cast to long int works around a bug in the HP C Compiler | |
12090 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12091 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12092 | # This bug is HP SR number 8606223364. | |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 | |
12094 | $as_echo_n "checking size of char *... " >&6; } | |
12095 | if ${ac_cv_sizeof_char_p+:} false; then : | |
12096 | $as_echo_n "(cached) " >&6 | |
12097 | else | |
12098 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : | |
12099 | ||
12100 | else | |
12101 | if test "$ac_cv_type_char_p" = yes; then | |
12102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12104 | as_fn_error 77 "cannot compute sizeof (char *) | |
12105 | See \`config.log' for more details" "$LINENO" 5; } | |
12106 | else | |
12107 | ac_cv_sizeof_char_p=0 | |
12108 | fi | |
12109 | fi | |
12110 | ||
12111 | fi | |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 | |
12113 | $as_echo "$ac_cv_sizeof_char_p" >&6; } | |
12114 | ||
12115 | ||
12116 | ||
12117 | cat >>confdefs.h <<_ACEOF | |
12118 | @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p | |
12119 | _ACEOF | |
12120 | ||
12121 | ||
12122 | # The cast to long int works around a bug in the HP C Compiler | |
12123 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12124 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12125 | # This bug is HP SR number 8606223364. | |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
12127 | $as_echo_n "checking size of double... " >&6; } | |
12128 | if ${ac_cv_sizeof_double+:} false; then : | |
12129 | $as_echo_n "(cached) " >&6 | |
12130 | else | |
12131 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
12132 | ||
12133 | else | |
12134 | if test "$ac_cv_type_double" = yes; then | |
12135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12137 | as_fn_error 77 "cannot compute sizeof (double) | |
12138 | See \`config.log' for more details" "$LINENO" 5; } | |
12139 | else | |
12140 | ac_cv_sizeof_double=0 | |
12141 | fi | |
12142 | fi | |
12143 | ||
12144 | fi | |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
12146 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
12147 | ||
12148 | ||
12149 | ||
12150 | cat >>confdefs.h <<_ACEOF | |
12151 | @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
12152 | _ACEOF | |
12153 | ||
12154 | ||
12155 | # The cast to long int works around a bug in the HP C Compiler | |
12156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12158 | # This bug is HP SR number 8606223364. | |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12160 | $as_echo_n "checking size of long long... " >&6; } | |
12161 | if ${ac_cv_sizeof_long_long+:} false; then : | |
12162 | $as_echo_n "(cached) " >&6 | |
12163 | else | |
12164 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
12165 | ||
12166 | else | |
12167 | if test "$ac_cv_type_long_long" = yes; then | |
12168 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12169 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12170 | as_fn_error 77 "cannot compute sizeof (long long) | |
12171 | See \`config.log' for more details" "$LINENO" 5; } | |
12172 | else | |
12173 | ac_cv_sizeof_long_long=0 | |
12174 | fi | |
12175 | fi | |
12176 | ||
12177 | fi | |
12178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
12179 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
12180 | ||
12181 | ||
12182 | ||
12183 | cat >>confdefs.h <<_ACEOF | |
12184 | @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
12185 | _ACEOF | |
12186 | ||
12187 | ||
12188 | ||
12189 | ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" | |
12190 | if test "x$ac_cv_type_u_int" = xyes; then : | |
12191 | ||
12192 | else | |
12193 | ||
12194 | cat >>confdefs.h <<_ACEOF | |
12195 | @%:@define u_int unsigned int | |
12196 | _ACEOF | |
12197 | ||
12198 | fi | |
12199 | ||
12200 | ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" | |
12201 | if test "x$ac_cv_type_u_long" = xyes; then : | |
12202 | ||
12203 | else | |
12204 | ||
12205 | cat >>confdefs.h <<_ACEOF | |
12206 | @%:@define u_long unsigned long | |
12207 | _ACEOF | |
12208 | ||
12209 | fi | |
12210 | ||
12211 | ||
12212 | ||
12213 | if test "$ac_cv_sizeof_short" = 2; then | |
12214 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" | |
12215 | if test "x$ac_cv_type_bits16_t" = xyes; then : | |
12216 | ||
12217 | else | |
12218 | ||
12219 | cat >>confdefs.h <<_ACEOF | |
12220 | @%:@define bits16_t short | |
12221 | _ACEOF | |
12222 | ||
12223 | fi | |
12224 | ||
12225 | elif test "$ac_cv_sizeof_char" = 2; then | |
12226 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" | |
12227 | if test "x$ac_cv_type_bits16_t" = xyes; then : | |
12228 | ||
12229 | else | |
12230 | ||
12231 | cat >>confdefs.h <<_ACEOF | |
12232 | @%:@define bits16_t char | |
12233 | _ACEOF | |
12234 | ||
12235 | fi | |
12236 | ||
12237 | else | |
12238 | ac_fn_c_check_type "$LINENO" "bits16_t" "ac_cv_type_bits16_t" "$ac_includes_default" | |
12239 | if test "x$ac_cv_type_bits16_t" = xyes; then : | |
12240 | ||
12241 | else | |
12242 | ||
12243 | cat >>confdefs.h <<_ACEOF | |
12244 | @%:@define bits16_t short | |
12245 | _ACEOF | |
12246 | ||
12247 | fi | |
12248 | ||
12249 | fi | |
12250 | ||
12251 | ||
12252 | if test "$ac_cv_sizeof_short" = 2; then | |
12253 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" | |
12254 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : | |
12255 | ||
12256 | else | |
12257 | ||
12258 | cat >>confdefs.h <<_ACEOF | |
12259 | @%:@define u_bits16_t unsigned short | |
12260 | _ACEOF | |
12261 | ||
12262 | fi | |
12263 | ||
12264 | elif test "$ac_cv_sizeof_char" = 2; then | |
12265 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" | |
12266 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : | |
12267 | ||
12268 | else | |
12269 | ||
12270 | cat >>confdefs.h <<_ACEOF | |
12271 | @%:@define u_bits16_t unsigned char | |
12272 | _ACEOF | |
12273 | ||
12274 | fi | |
12275 | ||
12276 | else | |
12277 | ac_fn_c_check_type "$LINENO" "u_bits16_t" "ac_cv_type_u_bits16_t" "$ac_includes_default" | |
12278 | if test "x$ac_cv_type_u_bits16_t" = xyes; then : | |
12279 | ||
12280 | else | |
12281 | ||
12282 | cat >>confdefs.h <<_ACEOF | |
12283 | @%:@define u_bits16_t unsigned short | |
12284 | _ACEOF | |
12285 | ||
12286 | fi | |
12287 | ||
12288 | fi | |
12289 | ||
12290 | ||
12291 | if test "$ac_cv_sizeof_int" = 4; then | |
12292 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" | |
12293 | if test "x$ac_cv_type_bits32_t" = xyes; then : | |
12294 | ||
12295 | else | |
12296 | ||
12297 | cat >>confdefs.h <<_ACEOF | |
12298 | @%:@define bits32_t int | |
12299 | _ACEOF | |
12300 | ||
12301 | fi | |
12302 | ||
12303 | elif test "$ac_cv_sizeof_long" = 4; then | |
12304 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" | |
12305 | if test "x$ac_cv_type_bits32_t" = xyes; then : | |
12306 | ||
12307 | else | |
12308 | ||
12309 | cat >>confdefs.h <<_ACEOF | |
12310 | @%:@define bits32_t long | |
12311 | _ACEOF | |
12312 | ||
12313 | fi | |
12314 | ||
12315 | else | |
12316 | ac_fn_c_check_type "$LINENO" "bits32_t" "ac_cv_type_bits32_t" "$ac_includes_default" | |
12317 | if test "x$ac_cv_type_bits32_t" = xyes; then : | |
12318 | ||
12319 | else | |
12320 | ||
12321 | cat >>confdefs.h <<_ACEOF | |
12322 | @%:@define bits32_t int | |
12323 | _ACEOF | |
12324 | ||
12325 | fi | |
12326 | ||
12327 | fi | |
12328 | ||
12329 | ||
12330 | if test "$ac_cv_sizeof_int" = 4; then | |
12331 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" | |
12332 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : | |
12333 | ||
12334 | else | |
12335 | ||
12336 | cat >>confdefs.h <<_ACEOF | |
12337 | @%:@define u_bits32_t unsigned int | |
12338 | _ACEOF | |
12339 | ||
12340 | fi | |
12341 | ||
12342 | elif test "$ac_cv_sizeof_long" = 4; then | |
12343 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" | |
12344 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : | |
12345 | ||
12346 | else | |
12347 | ||
12348 | cat >>confdefs.h <<_ACEOF | |
12349 | @%:@define u_bits32_t unsigned long | |
12350 | _ACEOF | |
12351 | ||
12352 | fi | |
12353 | ||
12354 | else | |
12355 | ac_fn_c_check_type "$LINENO" "u_bits32_t" "ac_cv_type_u_bits32_t" "$ac_includes_default" | |
12356 | if test "x$ac_cv_type_u_bits32_t" = xyes; then : | |
12357 | ||
12358 | else | |
12359 | ||
12360 | cat >>confdefs.h <<_ACEOF | |
12361 | @%:@define u_bits32_t unsigned int | |
12362 | _ACEOF | |
12363 | ||
12364 | fi | |
12365 | ||
12366 | fi | |
12367 | ||
12368 | ||
12369 | if test "$ac_cv_sizeof_char_p" = 8; then | |
12370 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" | |
12371 | if test "x$ac_cv_type_bits64_t" = xyes; then : | |
12372 | ||
12373 | else | |
12374 | ||
12375 | cat >>confdefs.h <<_ACEOF | |
12376 | @%:@define bits64_t char * | |
12377 | _ACEOF | |
12378 | ||
12379 | fi | |
12380 | ||
12381 | elif test "$ac_cv_sizeof_double" = 8; then | |
12382 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" | |
12383 | if test "x$ac_cv_type_bits64_t" = xyes; then : | |
12384 | ||
12385 | else | |
12386 | ||
12387 | cat >>confdefs.h <<_ACEOF | |
12388 | @%:@define bits64_t double | |
12389 | _ACEOF | |
12390 | ||
12391 | fi | |
12392 | ||
12393 | elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then | |
12394 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" | |
12395 | if test "x$ac_cv_type_bits64_t" = xyes; then : | |
12396 | ||
12397 | else | |
12398 | ||
12399 | cat >>confdefs.h <<_ACEOF | |
12400 | @%:@define bits64_t long long | |
12401 | _ACEOF | |
12402 | ||
12403 | fi | |
12404 | ||
12405 | elif test "$ac_cv_sizeof_long" = 8; then | |
12406 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" | |
12407 | if test "x$ac_cv_type_bits64_t" = xyes; then : | |
12408 | ||
12409 | else | |
12410 | ||
12411 | cat >>confdefs.h <<_ACEOF | |
12412 | @%:@define bits64_t long | |
12413 | _ACEOF | |
12414 | ||
12415 | fi | |
12416 | ||
12417 | else | |
12418 | ac_fn_c_check_type "$LINENO" "bits64_t" "ac_cv_type_bits64_t" "$ac_includes_default" | |
12419 | if test "x$ac_cv_type_bits64_t" = xyes; then : | |
12420 | ||
12421 | else | |
12422 | ||
12423 | cat >>confdefs.h <<_ACEOF | |
12424 | @%:@define bits64_t double | |
12425 | _ACEOF | |
12426 | ||
12427 | fi | |
12428 | ||
12429 | fi | |
12430 | ||
12431 | ||
12432 | ||
12433 | if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then | |
12434 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
12435 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
12436 | ||
12437 | else | |
12438 | ||
12439 | cat >>confdefs.h <<_ACEOF | |
12440 | @%:@define ptrdiff_t int | |
12441 | _ACEOF | |
12442 | ||
12443 | fi | |
12444 | ||
12445 | elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then | |
12446 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
12447 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
12448 | ||
12449 | else | |
12450 | ||
12451 | cat >>confdefs.h <<_ACEOF | |
12452 | @%:@define ptrdiff_t long | |
12453 | _ACEOF | |
12454 | ||
12455 | fi | |
12456 | ||
12457 | elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then | |
12458 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
12459 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
12460 | ||
12461 | else | |
12462 | ||
12463 | cat >>confdefs.h <<_ACEOF | |
12464 | @%:@define ptrdiff_t long long | |
12465 | _ACEOF | |
12466 | ||
12467 | fi | |
12468 | ||
12469 | else | |
12470 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
12471 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
12472 | ||
12473 | else | |
12474 | ||
12475 | cat >>confdefs.h <<_ACEOF | |
12476 | @%:@define ptrdiff_t int | |
12477 | _ACEOF | |
12478 | ||
12479 | fi | |
12480 | ||
12481 | fi | |
12482 | ||
12483 | ||
12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 | |
12485 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
12486 | if ${ac_cv_header_stat_broken+:} false; then : | |
12487 | $as_echo_n "(cached) " >&6 | |
12488 | else | |
12489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12490 | /* end confdefs.h. */ | |
12491 | #include <sys/types.h> | |
12492 | #include <sys/stat.h> | |
12493 | ||
12494 | #if defined S_ISBLK && defined S_IFDIR | |
12495 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
12496 | #endif | |
12497 | ||
12498 | #if defined S_ISBLK && defined S_IFCHR | |
12499 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
12500 | #endif | |
12501 | ||
12502 | #if defined S_ISLNK && defined S_IFREG | |
12503 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
12504 | #endif | |
12505 | ||
12506 | #if defined S_ISSOCK && defined S_IFREG | |
12507 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
12508 | #endif | |
12509 | ||
12510 | _ACEOF | |
12511 | if ac_fn_c_try_compile "$LINENO"; then : | |
12512 | ac_cv_header_stat_broken=no | |
12513 | else | |
12514 | ac_cv_header_stat_broken=yes | |
12515 | fi | |
12516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12517 | fi | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 | |
12519 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
12520 | if test $ac_cv_header_stat_broken = yes; then | |
12521 | ||
12522 | $as_echo "@%:@define STAT_MACROS_BROKEN 1" >>confdefs.h | |
12523 | ||
12524 | fi | |
12525 | ||
12526 | ||
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether @%:@! works in shell scripts" >&5 | |
12528 | $as_echo_n "checking whether @%:@! works in shell scripts... " >&6; } | |
12529 | if ${ac_cv_sys_interpreter+:} false; then : | |
12530 | $as_echo_n "(cached) " >&6 | |
12531 | else | |
12532 | echo '#! /bin/cat | |
12533 | exit 69 | |
12534 | ' >conftest | |
12535 | chmod u+x conftest | |
12536 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) | |
12537 | if test $? -ne 69; then | |
12538 | ac_cv_sys_interpreter=yes | |
12539 | else | |
12540 | ac_cv_sys_interpreter=no | |
12541 | fi | |
12542 | rm -f conftest | |
12543 | fi | |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 | |
12545 | $as_echo "$ac_cv_sys_interpreter" >&6; } | |
12546 | interpval=$ac_cv_sys_interpreter | |
12547 | ||
12548 | if test $ac_cv_sys_interpreter = yes; then | |
12549 | $as_echo "@%:@define HAVE_HASH_BANG_EXEC 1" >>confdefs.h | |
12550 | ||
12551 | fi | |
12552 | ||
12553 | if test "$ac_cv_func_lstat" = "no"; then | |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 | |
12555 | $as_echo_n "checking for lstat... " >&6; } | |
12556 | if ${bash_cv_func_lstat+:} false; then : | |
12557 | $as_echo_n "(cached) " >&6 | |
12558 | else | |
12559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12560 | /* end confdefs.h. */ | |
12561 | ||
12562 | #include <sys/types.h> | |
12563 | #include <sys/stat.h> | |
12564 | ||
12565 | int | |
12566 | main () | |
12567 | { | |
12568 | lstat(".",(struct stat *)0); | |
12569 | ; | |
12570 | return 0; | |
12571 | } | |
12572 | _ACEOF | |
12573 | if ac_fn_c_try_link "$LINENO"; then : | |
12574 | bash_cv_func_lstat=yes | |
12575 | else | |
12576 | bash_cv_func_lstat=no | |
12577 | fi | |
12578 | rm -f core conftest.err conftest.$ac_objext \ | |
12579 | conftest$ac_exeext conftest.$ac_ext | |
12580 | fi | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 | |
12582 | $as_echo "$bash_cv_func_lstat" >&6; } | |
12583 | if test $bash_cv_func_lstat = yes; then | |
12584 | $as_echo "@%:@define HAVE_LSTAT 1" >>confdefs.h | |
12585 | ||
12586 | fi | |
12587 | ||
12588 | fi | |
12589 | ||
12590 | ||
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 | |
12592 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
12593 | if ${bash_cv_func_ctype_nonascii+:} false; then : | |
12594 | $as_echo_n "(cached) " >&6 | |
12595 | else | |
12596 | if test "$cross_compiling" = yes; then : | |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 | |
12598 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
12599 | bash_cv_func_ctype_nonascii=no | |
12600 | ||
12601 | else | |
12602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12603 | /* end confdefs.h. */ | |
12604 | ||
12605 | #ifdef HAVE_LOCALE_H | |
12606 | #include <locale.h> | |
12607 | #endif | |
12608 | #include <stdio.h> | |
12609 | #include <ctype.h> | |
12610 | ||
12611 | main(c, v) | |
12612 | int c; | |
12613 | char *v[]; | |
12614 | { | |
12615 | char *deflocale; | |
12616 | unsigned char x; | |
12617 | int r1, r2; | |
12618 | ||
12619 | #ifdef HAVE_SETLOCALE | |
12620 | /* We take a shot here. If that locale is not known, try the | |
12621 | system default. We try this one because '\342' (226) is | |
12622 | known to be a printable character in that locale. */ | |
12623 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
12624 | if (deflocale == 0) | |
12625 | deflocale = setlocale(LC_ALL, ""); | |
12626 | #endif | |
12627 | ||
12628 | x = '\342'; | |
12629 | r1 = isprint(x); | |
12630 | x -= 128; | |
12631 | r2 = isprint(x); | |
12632 | exit (r1 == 0 || r2 == 0); | |
12633 | } | |
12634 | ||
12635 | _ACEOF | |
12636 | if ac_fn_c_try_run "$LINENO"; then : | |
12637 | bash_cv_func_ctype_nonascii=yes | |
12638 | else | |
12639 | bash_cv_func_ctype_nonascii=no | |
12640 | fi | |
12641 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12642 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12643 | fi | |
12644 | ||
12645 | fi | |
12646 | ||
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 | |
12648 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
12649 | if test $bash_cv_func_ctype_nonascii = yes; then | |
12650 | $as_echo "@%:@define CTYPE_NON_ASCII 1" >>confdefs.h | |
12651 | ||
12652 | fi | |
12653 | ||
12654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dup2 fails to clear the close-on-exec flag" >&5 | |
12655 | $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } | |
12656 | if ${bash_cv_dup2_broken+:} false; then : | |
12657 | $as_echo_n "(cached) " >&6 | |
12658 | else | |
12659 | if test "$cross_compiling" = yes; then : | |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 | |
12661 | $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} | |
12662 | bash_cv_dup2_broken=no | |
12663 | else | |
12664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12665 | /* end confdefs.h. */ | |
12666 | ||
12667 | #include <sys/types.h> | |
12668 | #include <fcntl.h> | |
12669 | main() | |
12670 | { | |
12671 | int fd1, fd2, fl; | |
12672 | fd1 = open("/dev/null", 2); | |
12673 | if (fcntl(fd1, 2, 1) < 0) | |
12674 | exit(1); | |
12675 | fd2 = dup2(fd1, 1); | |
12676 | if (fd2 < 0) | |
12677 | exit(2); | |
12678 | fl = fcntl(fd2, 1, 0); | |
12679 | /* fl will be 1 if dup2 did not reset the close-on-exec flag. */ | |
12680 | exit(fl != 1); | |
12681 | } | |
12682 | ||
12683 | _ACEOF | |
12684 | if ac_fn_c_try_run "$LINENO"; then : | |
12685 | bash_cv_dup2_broken=yes | |
12686 | else | |
12687 | bash_cv_dup2_broken=no | |
12688 | fi | |
12689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12690 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12691 | fi | |
12692 | ||
12693 | ||
12694 | fi | |
12695 | ||
12696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dup2_broken" >&5 | |
12697 | $as_echo "$bash_cv_dup2_broken" >&6; } | |
12698 | if test $bash_cv_dup2_broken = yes; then | |
12699 | $as_echo "@%:@define DUP2_BROKEN 1" >>confdefs.h | |
12700 | ||
12701 | fi | |
12702 | ||
12703 | ||
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgrps need synchronization" >&5 | |
12705 | $as_echo_n "checking whether pgrps need synchronization... " >&6; } | |
12706 | if ${bash_cv_pgrp_pipe+:} false; then : | |
12707 | $as_echo_n "(cached) " >&6 | |
12708 | else | |
12709 | if test "$cross_compiling" = yes; then : | |
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5 | |
12711 | $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;} | |
12712 | bash_cv_pgrp_pipe=no | |
12713 | else | |
12714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12715 | /* end confdefs.h. */ | |
12716 | ||
12717 | #ifdef HAVE_UNISTD_H | |
12718 | # include <unistd.h> | |
12719 | #endif | |
12720 | main() | |
12721 | { | |
12722 | # ifdef GETPGRP_VOID | |
12723 | # define getpgID() getpgrp() | |
12724 | # else | |
12725 | # define getpgID() getpgrp(0) | |
12726 | # define setpgid(x,y) setpgrp(x,y) | |
12727 | # endif | |
12728 | int pid1, pid2, fds[2]; | |
12729 | int status; | |
12730 | char ok; | |
12731 | ||
12732 | switch (pid1 = fork()) { | |
12733 | case -1: | |
12734 | exit(1); | |
12735 | case 0: | |
12736 | setpgid(0, getpid()); | |
12737 | exit(0); | |
12738 | } | |
12739 | setpgid(pid1, pid1); | |
12740 | ||
12741 | sleep(2); /* let first child die */ | |
12742 | ||
12743 | if (pipe(fds) < 0) | |
12744 | exit(2); | |
12745 | ||
12746 | switch (pid2 = fork()) { | |
12747 | case -1: | |
12748 | exit(3); | |
12749 | case 0: | |
12750 | setpgid(0, pid1); | |
12751 | ok = getpgID() == pid1; | |
12752 | write(fds[1], &ok, 1); | |
12753 | exit(0); | |
12754 | } | |
12755 | setpgid(pid2, pid1); | |
12756 | ||
12757 | close(fds[1]); | |
12758 | if (read(fds[0], &ok, 1) != 1) | |
12759 | exit(4); | |
12760 | wait(&status); | |
12761 | wait(&status); | |
12762 | exit(ok ? 0 : 5); | |
12763 | } | |
12764 | ||
12765 | _ACEOF | |
12766 | if ac_fn_c_try_run "$LINENO"; then : | |
12767 | bash_cv_pgrp_pipe=no | |
12768 | else | |
12769 | bash_cv_pgrp_pipe=yes | |
12770 | fi | |
12771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12772 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12773 | fi | |
12774 | ||
12775 | ||
12776 | fi | |
12777 | ||
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_pgrp_pipe" >&5 | |
12779 | $as_echo "$bash_cv_pgrp_pipe" >&6; } | |
12780 | if test $bash_cv_pgrp_pipe = yes; then | |
12781 | $as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h | |
12782 | ||
12783 | fi | |
12784 | ||
12785 | ||
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 | |
12787 | $as_echo_n "checking for type of signal functions... " >&6; } | |
12788 | if ${bash_cv_signal_vintage+:} false; then : | |
12789 | $as_echo_n "(cached) " >&6 | |
12790 | else | |
12791 | ||
12792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12793 | /* end confdefs.h. */ | |
12794 | #include <signal.h> | |
12795 | int | |
12796 | main () | |
12797 | { | |
12798 | ||
12799 | sigset_t ss; | |
12800 | struct sigaction sa; | |
12801 | sigemptyset(&ss); sigsuspend(&ss); | |
12802 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
12803 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
12804 | ||
12805 | ; | |
12806 | return 0; | |
12807 | } | |
12808 | _ACEOF | |
12809 | if ac_fn_c_try_link "$LINENO"; then : | |
12810 | bash_cv_signal_vintage=posix | |
12811 | else | |
12812 | ||
12813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12814 | /* end confdefs.h. */ | |
12815 | #include <signal.h> | |
12816 | int | |
12817 | main () | |
12818 | { | |
12819 | ||
12820 | int mask = sigmask(SIGINT); | |
12821 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
12822 | ||
12823 | ; | |
12824 | return 0; | |
12825 | } | |
12826 | _ACEOF | |
12827 | if ac_fn_c_try_link "$LINENO"; then : | |
12828 | bash_cv_signal_vintage=4.2bsd | |
12829 | else | |
12830 | ||
12831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12832 | /* end confdefs.h. */ | |
12833 | ||
12834 | #include <signal.h> | |
12835 | RETSIGTYPE foo() { } | |
12836 | int | |
12837 | main () | |
12838 | { | |
12839 | ||
12840 | int mask = sigmask(SIGINT); | |
12841 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
12842 | sighold(SIGINT); sigpause(SIGINT); | |
12843 | ||
12844 | ; | |
12845 | return 0; | |
12846 | } | |
12847 | _ACEOF | |
12848 | if ac_fn_c_try_link "$LINENO"; then : | |
12849 | bash_cv_signal_vintage=svr3 | |
12850 | else | |
12851 | bash_cv_signal_vintage=v7 | |
12852 | ||
12853 | fi | |
12854 | rm -f core conftest.err conftest.$ac_objext \ | |
12855 | conftest$ac_exeext conftest.$ac_ext | |
12856 | ||
12857 | fi | |
12858 | rm -f core conftest.err conftest.$ac_objext \ | |
12859 | conftest$ac_exeext conftest.$ac_ext | |
12860 | ||
12861 | fi | |
12862 | rm -f core conftest.err conftest.$ac_objext \ | |
12863 | conftest$ac_exeext conftest.$ac_ext | |
12864 | ||
12865 | fi | |
12866 | ||
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 | |
12868 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
12869 | if test "$bash_cv_signal_vintage" = posix; then | |
12870 | $as_echo "@%:@define HAVE_POSIX_SIGNALS 1" >>confdefs.h | |
12871 | ||
12872 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
12873 | $as_echo "@%:@define HAVE_BSD_SIGNALS 1" >>confdefs.h | |
12874 | ||
12875 | elif test "$bash_cv_signal_vintage" = svr3; then | |
12876 | $as_echo "@%:@define HAVE_USG_SIGHOLD 1" >>confdefs.h | |
12877 | ||
12878 | fi | |
12879 | ||
12880 | ||
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist and sys_nerr" >&5 | |
12882 | $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; } | |
12883 | if ${bash_cv_sys_errlist+:} false; then : | |
12884 | $as_echo_n "(cached) " >&6 | |
12885 | else | |
12886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12887 | /* end confdefs.h. */ | |
12888 | #include <errno.h> | |
12889 | int | |
12890 | main () | |
12891 | { | |
12892 | extern char *sys_errlist[]; | |
12893 | extern int sys_nerr; | |
12894 | char *msg = sys_errlist[sys_nerr - 1]; | |
12895 | ; | |
12896 | return 0; | |
12897 | } | |
12898 | _ACEOF | |
12899 | if ac_fn_c_try_link "$LINENO"; then : | |
12900 | bash_cv_sys_errlist=yes | |
12901 | else | |
12902 | bash_cv_sys_errlist=no | |
12903 | fi | |
12904 | rm -f core conftest.err conftest.$ac_objext \ | |
12905 | conftest$ac_exeext conftest.$ac_ext | |
12906 | fi | |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_errlist" >&5 | |
12908 | $as_echo "$bash_cv_sys_errlist" >&6; } | |
12909 | if test $bash_cv_sys_errlist = yes; then | |
12910 | $as_echo "@%:@define HAVE_SYS_ERRLIST 1" >>confdefs.h | |
12911 | ||
12912 | fi | |
12913 | ||
12914 | ||
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_siglist in system C library" >&5 | |
12916 | $as_echo_n "checking for sys_siglist in system C library... " >&6; } | |
12917 | if ${bash_cv_sys_siglist+:} false; then : | |
12918 | $as_echo_n "(cached) " >&6 | |
12919 | else | |
12920 | if test "$cross_compiling" = yes; then : | |
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5 | |
12922 | $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;} | |
12923 | bash_cv_sys_siglist=no | |
12924 | else | |
12925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12926 | /* end confdefs.h. */ | |
12927 | ||
12928 | #include <sys/types.h> | |
12929 | #include <signal.h> | |
12930 | #ifdef HAVE_UNISTD_H | |
12931 | #include <unistd.h> | |
12932 | #endif | |
12933 | #if !HAVE_DECL_SYS_SIGLIST | |
12934 | extern char *sys_siglist[]; | |
12935 | #endif | |
12936 | main() | |
12937 | { | |
12938 | char *msg = sys_siglist[2]; | |
12939 | exit(msg == 0); | |
12940 | } | |
12941 | _ACEOF | |
12942 | if ac_fn_c_try_run "$LINENO"; then : | |
12943 | bash_cv_sys_siglist=yes | |
12944 | else | |
12945 | bash_cv_sys_siglist=no | |
12946 | fi | |
12947 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12948 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12949 | fi | |
12950 | ||
12951 | fi | |
12952 | ||
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_siglist" >&5 | |
12954 | $as_echo "$bash_cv_sys_siglist" >&6; } | |
12955 | if test $bash_cv_sys_siglist = yes; then | |
12956 | $as_echo "@%:@define HAVE_SYS_SIGLIST 1" >>confdefs.h | |
12957 | ||
12958 | fi | |
12959 | ||
12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in signal.h or unistd.h" >&5 | |
12961 | $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; } | |
12962 | if ${bash_cv_decl_under_sys_siglist+:} false; then : | |
12963 | $as_echo_n "(cached) " >&6 | |
12964 | else | |
12965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12966 | /* end confdefs.h. */ | |
12967 | ||
12968 | #include <sys/types.h> | |
12969 | #include <signal.h> | |
12970 | #ifdef HAVE_UNISTD_H | |
12971 | #include <unistd.h> | |
12972 | #endif | |
12973 | int | |
12974 | main () | |
12975 | { | |
12976 | char *msg = _sys_siglist[2]; | |
12977 | ; | |
12978 | return 0; | |
12979 | } | |
12980 | _ACEOF | |
12981 | if ac_fn_c_try_compile "$LINENO"; then : | |
12982 | bash_cv_decl_under_sys_siglist=yes | |
12983 | else | |
12984 | bash_cv_decl_under_sys_siglist=no | |
12985 | fi | |
12986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12987 | fi | |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_decl_under_sys_siglist" >&5 | |
12989 | $as_echo "$bash_cv_decl_under_sys_siglist" >&6; } | |
12990 | if test $bash_cv_decl_under_sys_siglist = yes; then | |
12991 | $as_echo "@%:@define UNDER_SYS_SIGLIST_DECLARED 1" >>confdefs.h | |
12992 | ||
12993 | fi | |
12994 | ||
12995 | ||
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sys_siglist in system C library" >&5 | |
12997 | $as_echo_n "checking for _sys_siglist in system C library... " >&6; } | |
12998 | if ${bash_cv_under_sys_siglist+:} false; then : | |
12999 | $as_echo_n "(cached) " >&6 | |
13000 | else | |
13001 | if test "$cross_compiling" = yes; then : | |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5 | |
13003 | $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;} | |
13004 | bash_cv_under_sys_siglist=no | |
13005 | else | |
13006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13007 | /* end confdefs.h. */ | |
13008 | ||
13009 | #include <sys/types.h> | |
13010 | #include <signal.h> | |
13011 | #ifdef HAVE_UNISTD_H | |
13012 | #include <unistd.h> | |
13013 | #endif | |
13014 | #ifndef UNDER_SYS_SIGLIST_DECLARED | |
13015 | extern char *_sys_siglist[]; | |
13016 | #endif | |
13017 | main() | |
13018 | { | |
13019 | char *msg = (char *)_sys_siglist[2]; | |
13020 | exit(msg == 0); | |
13021 | } | |
13022 | _ACEOF | |
13023 | if ac_fn_c_try_run "$LINENO"; then : | |
13024 | bash_cv_under_sys_siglist=yes | |
13025 | else | |
13026 | bash_cv_under_sys_siglist=no | |
13027 | fi | |
13028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13029 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13030 | fi | |
13031 | ||
13032 | fi | |
13033 | ||
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_under_sys_siglist" >&5 | |
13035 | $as_echo "$bash_cv_under_sys_siglist" >&6; } | |
13036 | if test $bash_cv_under_sys_siglist = yes; then | |
13037 | $as_echo "@%:@define HAVE_UNDER_SYS_SIGLIST 1" >>confdefs.h | |
13038 | ||
13039 | fi | |
13040 | ||
13041 | ||
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 | |
13043 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
13044 | if ${bash_cv_void_sighandler+:} false; then : | |
13045 | $as_echo_n "(cached) " >&6 | |
13046 | else | |
13047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13048 | /* end confdefs.h. */ | |
13049 | #include <sys/types.h> | |
13050 | #include <signal.h> | |
13051 | #ifdef signal | |
13052 | #undef signal | |
13053 | #endif | |
13054 | #ifdef __cplusplus | |
13055 | extern "C" | |
13056 | #endif | |
13057 | void (*signal ()) (); | |
13058 | int | |
13059 | main () | |
13060 | { | |
13061 | int i; | |
13062 | ; | |
13063 | return 0; | |
13064 | } | |
13065 | _ACEOF | |
13066 | if ac_fn_c_try_compile "$LINENO"; then : | |
13067 | bash_cv_void_sighandler=yes | |
13068 | else | |
13069 | bash_cv_void_sighandler=no | |
13070 | fi | |
13071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13072 | fi | |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 | |
13074 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
13075 | if test $bash_cv_void_sighandler = yes; then | |
13076 | $as_echo "@%:@define VOID_SIGHANDLER 1" >>confdefs.h | |
13077 | ||
13078 | fi | |
13079 | ||
13080 | ||
13081 | ||
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | |
13083 | $as_echo_n "checking for clock_t... " >&6; } | |
13084 | if ${bash_cv_type_clock_t+:} false; then : | |
13085 | $as_echo_n "(cached) " >&6 | |
13086 | else | |
13087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13088 | /* end confdefs.h. */ | |
13089 | #include <sys/types.h> | |
13090 | #if STDC_HEADERS | |
13091 | #include <stdlib.h> | |
13092 | #include <stddef.h> | |
13093 | #endif | |
13094 | #if HAVE_INTTYPES_H | |
13095 | #include <inttypes.h> | |
13096 | #endif | |
13097 | #if HAVE_STDINT_H | |
13098 | #include <stdint.h> | |
13099 | #endif | |
13100 | #include <sys/times.h> | |
13101 | ||
13102 | _ACEOF | |
13103 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13104 | $EGREP "clock_t" >/dev/null 2>&1; then : | |
13105 | bash_cv_type_clock_t=yes | |
13106 | else | |
13107 | bash_cv_type_clock_t=no | |
13108 | fi | |
13109 | rm -f conftest* | |
13110 | ||
13111 | fi | |
13112 | ||
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_clock_t" >&5 | |
13114 | $as_echo "$bash_cv_type_clock_t" >&6; } | |
13115 | ||
13116 | if test $bash_cv_type_clock_t = no; then | |
13117 | cat >>confdefs.h <<_ACEOF | |
13118 | @%:@define clock_t long | |
13119 | _ACEOF | |
13120 | ||
13121 | fi | |
13122 | ||
13123 | ||
13124 | ||
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t" >&5 | |
13126 | $as_echo_n "checking for sigset_t... " >&6; } | |
13127 | if ${bash_cv_type_sigset_t+:} false; then : | |
13128 | $as_echo_n "(cached) " >&6 | |
13129 | else | |
13130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13131 | /* end confdefs.h. */ | |
13132 | #include <sys/types.h> | |
13133 | #if STDC_HEADERS | |
13134 | #include <stdlib.h> | |
13135 | #include <stddef.h> | |
13136 | #endif | |
13137 | #if HAVE_INTTYPES_H | |
13138 | #include <inttypes.h> | |
13139 | #endif | |
13140 | #if HAVE_STDINT_H | |
13141 | #include <stdint.h> | |
13142 | #endif | |
13143 | #include <signal.h> | |
13144 | ||
13145 | _ACEOF | |
13146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13147 | $EGREP "sigset_t" >/dev/null 2>&1; then : | |
13148 | bash_cv_type_sigset_t=yes | |
13149 | else | |
13150 | bash_cv_type_sigset_t=no | |
13151 | fi | |
13152 | rm -f conftest* | |
13153 | ||
13154 | fi | |
13155 | ||
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sigset_t" >&5 | |
13157 | $as_echo "$bash_cv_type_sigset_t" >&6; } | |
13158 | ||
13159 | if test $bash_cv_type_sigset_t = no; then | |
13160 | cat >>confdefs.h <<_ACEOF | |
13161 | @%:@define sigset_t int | |
13162 | _ACEOF | |
13163 | ||
13164 | fi | |
13165 | ||
13166 | ||
13167 | ||
73a146be CR |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 |
13169 | $as_echo_n "checking for sig_atomic_t... " >&6; } | |
13170 | if ${bash_cv_type_sig_atomic_t+:} false; then : | |
13171 | $as_echo_n "(cached) " >&6 | |
13172 | else | |
13173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13174 | /* end confdefs.h. */ | |
13175 | #include <sys/types.h> | |
13176 | #if STDC_HEADERS | |
13177 | #include <stdlib.h> | |
13178 | #include <stddef.h> | |
13179 | #endif | |
13180 | #if HAVE_INTTYPES_H | |
13181 | #include <inttypes.h> | |
13182 | #endif | |
13183 | #if HAVE_STDINT_H | |
13184 | #include <stdint.h> | |
13185 | #endif | |
13186 | #include <signal.h> | |
13187 | ||
13188 | _ACEOF | |
13189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13190 | $EGREP "sig_atomic_t" >/dev/null 2>&1; then : | |
13191 | bash_cv_type_sig_atomic_t=yes | |
13192 | else | |
13193 | bash_cv_type_sig_atomic_t=no | |
13194 | fi | |
13195 | rm -f conftest* | |
13196 | ||
13197 | fi | |
13198 | ||
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5 | |
13200 | $as_echo "$bash_cv_type_sig_atomic_t" >&6; } | |
13201 | ||
13202 | if test $bash_cv_type_sig_atomic_t = no; then | |
13203 | cat >>confdefs.h <<_ACEOF | |
13204 | @%:@define sig_atomic_t int | |
13205 | _ACEOF | |
13206 | ||
13207 | fi | |
13208 | ||
13209 | ||
13210 | ||
208fdb50 CR |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quad_t" >&5 |
13212 | $as_echo_n "checking for quad_t... " >&6; } | |
13213 | if ${bash_cv_type_quad_t+:} false; then : | |
13214 | $as_echo_n "(cached) " >&6 | |
13215 | else | |
13216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13217 | /* end confdefs.h. */ | |
13218 | #include <sys/types.h> | |
13219 | #if STDC_HEADERS | |
13220 | #include <stdlib.h> | |
13221 | #include <stddef.h> | |
13222 | #endif | |
13223 | #if HAVE_INTTYPES_H | |
13224 | #include <inttypes.h> | |
13225 | #endif | |
13226 | #if HAVE_STDINT_H | |
13227 | #include <stdint.h> | |
13228 | #endif | |
13229 | ||
13230 | ||
13231 | _ACEOF | |
13232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13233 | $EGREP "quad_t" >/dev/null 2>&1; then : | |
13234 | bash_cv_type_quad_t=yes | |
13235 | else | |
13236 | bash_cv_type_quad_t=no | |
13237 | fi | |
13238 | rm -f conftest* | |
13239 | ||
13240 | fi | |
13241 | ||
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_quad_t" >&5 | |
13243 | $as_echo "$bash_cv_type_quad_t" >&6; } | |
13244 | if test $bash_cv_type_quad_t = yes; then | |
13245 | $as_echo "@%:@define HAVE_QUAD_T 1" >>confdefs.h | |
13246 | ||
13247 | fi | |
13248 | if test $bash_cv_type_quad_t = no; then | |
13249 | cat >>confdefs.h <<_ACEOF | |
13250 | @%:@define quad_t long | |
13251 | _ACEOF | |
13252 | ||
13253 | fi | |
13254 | ||
13255 | ||
13256 | ||
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 | |
13258 | $as_echo_n "checking for intmax_t... " >&6; } | |
13259 | if ${bash_cv_type_intmax_t+:} false; then : | |
13260 | $as_echo_n "(cached) " >&6 | |
13261 | else | |
13262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13263 | /* end confdefs.h. */ | |
13264 | #include <sys/types.h> | |
13265 | #if STDC_HEADERS | |
13266 | #include <stdlib.h> | |
13267 | #include <stddef.h> | |
13268 | #endif | |
13269 | #if HAVE_INTTYPES_H | |
13270 | #include <inttypes.h> | |
13271 | #endif | |
13272 | #if HAVE_STDINT_H | |
13273 | #include <stdint.h> | |
13274 | #endif | |
13275 | ||
13276 | ||
13277 | _ACEOF | |
13278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13279 | $EGREP "intmax_t" >/dev/null 2>&1; then : | |
13280 | bash_cv_type_intmax_t=yes | |
13281 | else | |
13282 | bash_cv_type_intmax_t=no | |
13283 | fi | |
13284 | rm -f conftest* | |
13285 | ||
13286 | fi | |
13287 | ||
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_intmax_t" >&5 | |
13289 | $as_echo "$bash_cv_type_intmax_t" >&6; } | |
13290 | ||
13291 | if test $bash_cv_type_intmax_t = no; then | |
13292 | cat >>confdefs.h <<_ACEOF | |
13293 | @%:@define intmax_t $bash_cv_type_long_long | |
13294 | _ACEOF | |
13295 | ||
13296 | fi | |
13297 | ||
13298 | ||
13299 | ||
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5 | |
13301 | $as_echo_n "checking for uintmax_t... " >&6; } | |
13302 | if ${bash_cv_type_uintmax_t+:} false; then : | |
13303 | $as_echo_n "(cached) " >&6 | |
13304 | else | |
13305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13306 | /* end confdefs.h. */ | |
13307 | #include <sys/types.h> | |
13308 | #if STDC_HEADERS | |
13309 | #include <stdlib.h> | |
13310 | #include <stddef.h> | |
13311 | #endif | |
13312 | #if HAVE_INTTYPES_H | |
13313 | #include <inttypes.h> | |
13314 | #endif | |
13315 | #if HAVE_STDINT_H | |
13316 | #include <stdint.h> | |
13317 | #endif | |
13318 | ||
13319 | ||
13320 | _ACEOF | |
13321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13322 | $EGREP "uintmax_t" >/dev/null 2>&1; then : | |
13323 | bash_cv_type_uintmax_t=yes | |
13324 | else | |
13325 | bash_cv_type_uintmax_t=no | |
13326 | fi | |
13327 | rm -f conftest* | |
13328 | ||
13329 | fi | |
13330 | ||
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_uintmax_t" >&5 | |
13332 | $as_echo "$bash_cv_type_uintmax_t" >&6; } | |
13333 | ||
13334 | if test $bash_cv_type_uintmax_t = no; then | |
13335 | cat >>confdefs.h <<_ACEOF | |
13336 | @%:@define uintmax_t $bash_cv_type_unsigned_long_long | |
13337 | _ACEOF | |
13338 | ||
13339 | fi | |
13340 | ||
13341 | if test "$ac_cv_header_sys_socket_h" = "yes"; then | |
13342 | ||
13343 | ||
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 | |
13345 | $as_echo_n "checking for socklen_t... " >&6; } | |
13346 | if ${bash_cv_type_socklen_t+:} false; then : | |
13347 | $as_echo_n "(cached) " >&6 | |
13348 | else | |
13349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13350 | /* end confdefs.h. */ | |
13351 | #include <sys/types.h> | |
13352 | #if STDC_HEADERS | |
13353 | #include <stdlib.h> | |
13354 | #include <stddef.h> | |
13355 | #endif | |
13356 | #if HAVE_INTTYPES_H | |
13357 | #include <inttypes.h> | |
13358 | #endif | |
13359 | #if HAVE_STDINT_H | |
13360 | #include <stdint.h> | |
13361 | #endif | |
13362 | #include <sys/socket.h> | |
13363 | ||
13364 | _ACEOF | |
13365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13366 | $EGREP "socklen_t" >/dev/null 2>&1; then : | |
13367 | bash_cv_type_socklen_t=yes | |
13368 | else | |
13369 | bash_cv_type_socklen_t=no | |
13370 | fi | |
13371 | rm -f conftest* | |
13372 | ||
13373 | fi | |
13374 | ||
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_socklen_t" >&5 | |
13376 | $as_echo "$bash_cv_type_socklen_t" >&6; } | |
13377 | if test $bash_cv_type_socklen_t = yes; then | |
13378 | $as_echo "@%:@define HAVE_SOCKLEN_T 1" >>confdefs.h | |
13379 | ||
13380 | fi | |
13381 | if test $bash_cv_type_socklen_t = no; then | |
13382 | cat >>confdefs.h <<_ACEOF | |
13383 | @%:@define socklen_t int | |
13384 | _ACEOF | |
13385 | ||
13386 | fi | |
13387 | ||
13388 | fi | |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size and type of struct rlimit fields" >&5 | |
13390 | $as_echo_n "checking for size and type of struct rlimit fields... " >&6; } | |
13391 | if ${bash_cv_type_rlimit+:} false; then : | |
13392 | $as_echo_n "(cached) " >&6 | |
13393 | else | |
13394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13395 | /* end confdefs.h. */ | |
13396 | #include <sys/types.h> | |
13397 | #include <sys/resource.h> | |
13398 | int | |
13399 | main () | |
13400 | { | |
13401 | rlim_t xxx; | |
13402 | ; | |
13403 | return 0; | |
13404 | } | |
13405 | _ACEOF | |
13406 | if ac_fn_c_try_compile "$LINENO"; then : | |
13407 | bash_cv_type_rlimit=rlim_t | |
13408 | else | |
13409 | ||
13410 | if test "$cross_compiling" = yes; then : | |
13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5 | |
13412 | $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;} | |
13413 | bash_cv_type_rlimit=long | |
13414 | else | |
13415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13416 | /* end confdefs.h. */ | |
13417 | ||
13418 | #include <sys/types.h> | |
13419 | #include <sys/time.h> | |
13420 | #include <sys/resource.h> | |
13421 | main() | |
13422 | { | |
13423 | #ifdef HAVE_QUAD_T | |
13424 | struct rlimit rl; | |
13425 | if (sizeof(rl.rlim_cur) == sizeof(quad_t)) | |
13426 | exit(0); | |
13427 | #endif | |
13428 | exit(1); | |
13429 | } | |
13430 | _ACEOF | |
13431 | if ac_fn_c_try_run "$LINENO"; then : | |
13432 | bash_cv_type_rlimit=quad_t | |
13433 | else | |
13434 | bash_cv_type_rlimit=long | |
13435 | fi | |
13436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13437 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13438 | fi | |
13439 | ||
13440 | fi | |
13441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13442 | ||
13443 | fi | |
13444 | ||
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_rlimit" >&5 | |
13446 | $as_echo "$bash_cv_type_rlimit" >&6; } | |
13447 | if test $bash_cv_type_rlimit = quad_t; then | |
13448 | $as_echo "@%:@define RLIMTYPE quad_t" >>confdefs.h | |
13449 | ||
13450 | elif test $bash_cv_type_rlimit = rlim_t; then | |
13451 | $as_echo "@%:@define RLIMTYPE rlim_t" >>confdefs.h | |
13452 | ||
13453 | fi | |
13454 | ||
13455 | ||
13456 | # The cast to long int works around a bug in the HP C Compiler | |
13457 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13458 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13459 | # This bug is HP SR number 8606223364. | |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 | |
13461 | $as_echo_n "checking size of intmax_t... " >&6; } | |
13462 | if ${ac_cv_sizeof_intmax_t+:} false; then : | |
13463 | $as_echo_n "(cached) " >&6 | |
13464 | else | |
13465 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : | |
13466 | ||
13467 | else | |
13468 | if test "$ac_cv_type_intmax_t" = yes; then | |
13469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13471 | as_fn_error 77 "cannot compute sizeof (intmax_t) | |
13472 | See \`config.log' for more details" "$LINENO" 5; } | |
13473 | else | |
13474 | ac_cv_sizeof_intmax_t=0 | |
13475 | fi | |
13476 | fi | |
13477 | ||
13478 | fi | |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 | |
13480 | $as_echo "$ac_cv_sizeof_intmax_t" >&6; } | |
13481 | ||
13482 | ||
13483 | ||
13484 | cat >>confdefs.h <<_ACEOF | |
13485 | @%:@define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t | |
13486 | _ACEOF | |
13487 | ||
13488 | ||
13489 | ||
13490 | ||
13491 | ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" " | |
13492 | #include <sys/types.h> | |
13493 | #include <termios.h> | |
13494 | ||
13495 | " | |
13496 | if test "x$ac_cv_member_struct_termios_c_line" = xyes; then : | |
13497 | $as_echo "@%:@define TERMIOS_LDISC 1" >>confdefs.h | |
13498 | ||
13499 | fi | |
13500 | ||
13501 | ||
13502 | ||
13503 | ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" " | |
13504 | #include <sys/types.h> | |
13505 | #include <termio.h> | |
13506 | ||
13507 | " | |
13508 | if test "x$ac_cv_member_struct_termio_c_line" = xyes; then : | |
13509 | $as_echo "@%:@define TERMIO_LDISC 1" >>confdefs.h | |
13510 | ||
13511 | fi | |
13512 | ||
13513 | ||
13514 | ||
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 | |
13516 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
13517 | if ${bash_cv_dirent_has_dino+:} false; then : | |
13518 | $as_echo_n "(cached) " >&6 | |
13519 | else | |
13520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13521 | /* end confdefs.h. */ | |
13522 | ||
13523 | #include <stdio.h> | |
13524 | #include <sys/types.h> | |
13525 | #ifdef HAVE_UNISTD_H | |
13526 | # include <unistd.h> | |
13527 | #endif /* HAVE_UNISTD_H */ | |
13528 | #if defined(HAVE_DIRENT_H) | |
13529 | # include <dirent.h> | |
13530 | #else | |
13531 | # define dirent direct | |
13532 | # ifdef HAVE_SYS_NDIR_H | |
13533 | # include <sys/ndir.h> | |
13534 | # endif /* SYSNDIR */ | |
13535 | # ifdef HAVE_SYS_DIR_H | |
13536 | # include <sys/dir.h> | |
13537 | # endif /* SYSDIR */ | |
13538 | # ifdef HAVE_NDIR_H | |
13539 | # include <ndir.h> | |
13540 | # endif | |
13541 | #endif /* HAVE_DIRENT_H */ | |
13542 | ||
13543 | int | |
13544 | main () | |
13545 | { | |
13546 | ||
13547 | struct dirent d; int z; z = d.d_ino; | |
13548 | ||
13549 | ; | |
13550 | return 0; | |
13551 | } | |
13552 | _ACEOF | |
13553 | if ac_fn_c_try_compile "$LINENO"; then : | |
13554 | bash_cv_dirent_has_dino=yes | |
13555 | else | |
13556 | bash_cv_dirent_has_dino=no | |
13557 | fi | |
13558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13559 | fi | |
13560 | ||
13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 | |
13562 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
13563 | if test $bash_cv_dirent_has_dino = yes; then | |
13564 | $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h | |
13565 | ||
13566 | fi | |
13567 | ||
13568 | ||
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 | |
13570 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
13571 | if ${bash_cv_dirent_has_d_fileno+:} false; then : | |
13572 | $as_echo_n "(cached) " >&6 | |
13573 | else | |
13574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13575 | /* end confdefs.h. */ | |
13576 | ||
13577 | #include <stdio.h> | |
13578 | #include <sys/types.h> | |
13579 | #ifdef HAVE_UNISTD_H | |
13580 | # include <unistd.h> | |
13581 | #endif /* HAVE_UNISTD_H */ | |
13582 | #if defined(HAVE_DIRENT_H) | |
13583 | # include <dirent.h> | |
13584 | #else | |
13585 | # define dirent direct | |
13586 | # ifdef HAVE_SYS_NDIR_H | |
13587 | # include <sys/ndir.h> | |
13588 | # endif /* SYSNDIR */ | |
13589 | # ifdef HAVE_SYS_DIR_H | |
13590 | # include <sys/dir.h> | |
13591 | # endif /* SYSDIR */ | |
13592 | # ifdef HAVE_NDIR_H | |
13593 | # include <ndir.h> | |
13594 | # endif | |
13595 | #endif /* HAVE_DIRENT_H */ | |
13596 | ||
13597 | int | |
13598 | main () | |
13599 | { | |
13600 | ||
13601 | struct dirent d; int z; z = d.d_fileno; | |
13602 | ||
13603 | ; | |
13604 | return 0; | |
13605 | } | |
13606 | _ACEOF | |
13607 | if ac_fn_c_try_compile "$LINENO"; then : | |
13608 | bash_cv_dirent_has_d_fileno=yes | |
13609 | else | |
13610 | bash_cv_dirent_has_d_fileno=no | |
13611 | fi | |
13612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13613 | fi | |
13614 | ||
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 | |
13616 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
13617 | if test $bash_cv_dirent_has_d_fileno = yes; then | |
13618 | $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h | |
13619 | ||
13620 | fi | |
13621 | ||
13622 | ||
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_namlen" >&5 | |
13624 | $as_echo_n "checking for struct dirent.d_namlen... " >&6; } | |
13625 | if ${bash_cv_dirent_has_d_namlen+:} false; then : | |
13626 | $as_echo_n "(cached) " >&6 | |
13627 | else | |
13628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13629 | /* end confdefs.h. */ | |
13630 | ||
13631 | #include <stdio.h> | |
13632 | #include <sys/types.h> | |
13633 | #ifdef HAVE_UNISTD_H | |
13634 | # include <unistd.h> | |
13635 | #endif /* HAVE_UNISTD_H */ | |
13636 | #if defined(HAVE_DIRENT_H) | |
13637 | # include <dirent.h> | |
13638 | #else | |
13639 | # define dirent direct | |
13640 | # ifdef HAVE_SYS_NDIR_H | |
13641 | # include <sys/ndir.h> | |
13642 | # endif /* SYSNDIR */ | |
13643 | # ifdef HAVE_SYS_DIR_H | |
13644 | # include <sys/dir.h> | |
13645 | # endif /* SYSDIR */ | |
13646 | # ifdef HAVE_NDIR_H | |
13647 | # include <ndir.h> | |
13648 | # endif | |
13649 | #endif /* HAVE_DIRENT_H */ | |
13650 | ||
13651 | int | |
13652 | main () | |
13653 | { | |
13654 | ||
13655 | struct dirent d; int z; z = d.d_namlen; | |
13656 | ||
13657 | ; | |
13658 | return 0; | |
13659 | } | |
13660 | _ACEOF | |
13661 | if ac_fn_c_try_compile "$LINENO"; then : | |
13662 | bash_cv_dirent_has_d_namlen=yes | |
13663 | else | |
13664 | bash_cv_dirent_has_d_namlen=no | |
13665 | fi | |
13666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13667 | fi | |
13668 | ||
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_namlen" >&5 | |
13670 | $as_echo "$bash_cv_dirent_has_d_namlen" >&6; } | |
13671 | if test $bash_cv_dirent_has_d_namlen = yes; then | |
13672 | $as_echo "@%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h | |
13673 | ||
13674 | fi | |
13675 | ||
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 | |
13677 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
13678 | if ${bash_cv_struct_winsize_header+:} false; then : | |
13679 | $as_echo_n "(cached) " >&6 | |
13680 | else | |
13681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13682 | /* end confdefs.h. */ | |
13683 | #include <sys/types.h> | |
13684 | #include <sys/ioctl.h> | |
13685 | int | |
13686 | main () | |
13687 | { | |
13688 | struct winsize x; | |
13689 | ; | |
13690 | return 0; | |
13691 | } | |
13692 | _ACEOF | |
13693 | if ac_fn_c_try_compile "$LINENO"; then : | |
13694 | bash_cv_struct_winsize_header=ioctl_h | |
13695 | else | |
13696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13697 | /* end confdefs.h. */ | |
13698 | #include <sys/types.h> | |
13699 | #include <termios.h> | |
13700 | int | |
13701 | main () | |
13702 | { | |
13703 | struct winsize x; | |
13704 | ; | |
13705 | return 0; | |
13706 | } | |
13707 | _ACEOF | |
13708 | if ac_fn_c_try_compile "$LINENO"; then : | |
13709 | bash_cv_struct_winsize_header=termios_h | |
13710 | else | |
13711 | bash_cv_struct_winsize_header=other | |
13712 | fi | |
13713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13714 | ||
13715 | fi | |
13716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13717 | fi | |
13718 | ||
13719 | if test $bash_cv_struct_winsize_header = ioctl_h; then | |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 | |
13721 | $as_echo "sys/ioctl.h" >&6; } | |
13722 | $as_echo "@%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h | |
13723 | ||
13724 | elif test $bash_cv_struct_winsize_header = termios_h; then | |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 | |
13726 | $as_echo "termios.h" >&6; } | |
13727 | $as_echo "@%:@define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h | |
13728 | ||
13729 | else | |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
13731 | $as_echo "not found" >&6; } | |
13732 | fi | |
13733 | ||
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5 | |
13735 | $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } | |
13736 | if ${bash_cv_struct_timeval+:} false; then : | |
13737 | $as_echo_n "(cached) " >&6 | |
13738 | else | |
13739 | ||
13740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13741 | /* end confdefs.h. */ | |
13742 | #include <sys/time.h> | |
13743 | ||
13744 | _ACEOF | |
13745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13746 | $EGREP "struct timeval" >/dev/null 2>&1; then : | |
13747 | bash_cv_struct_timeval=yes | |
13748 | else | |
13749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13750 | /* end confdefs.h. */ | |
13751 | #include <time.h> | |
13752 | ||
13753 | _ACEOF | |
13754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13755 | $EGREP "struct timeval" >/dev/null 2>&1; then : | |
13756 | bash_cv_struct_timeval=yes | |
13757 | else | |
13758 | bash_cv_struct_timeval=no | |
13759 | fi | |
13760 | rm -f conftest* | |
13761 | ||
13762 | fi | |
13763 | rm -f conftest* | |
13764 | ||
13765 | ||
13766 | fi | |
13767 | ||
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5 | |
13769 | $as_echo "$bash_cv_struct_timeval" >&6; } | |
13770 | if test $bash_cv_struct_timeval = yes; then | |
13771 | $as_echo "@%:@define HAVE_TIMEVAL 1" >>confdefs.h | |
13772 | ||
13773 | fi | |
13774 | ||
13775 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
13776 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
13777 | ||
13778 | cat >>confdefs.h <<_ACEOF | |
13779 | @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
13780 | _ACEOF | |
13781 | ||
13782 | ||
13783 | fi | |
13784 | ||
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
13786 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
13787 | if ${ac_cv_struct_tm+:} false; then : | |
13788 | $as_echo_n "(cached) " >&6 | |
13789 | else | |
13790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13791 | /* end confdefs.h. */ | |
13792 | #include <sys/types.h> | |
13793 | #include <time.h> | |
13794 | ||
13795 | int | |
13796 | main () | |
13797 | { | |
13798 | struct tm tm; | |
13799 | int *p = &tm.tm_sec; | |
13800 | return !p; | |
13801 | ; | |
13802 | return 0; | |
13803 | } | |
13804 | _ACEOF | |
13805 | if ac_fn_c_try_compile "$LINENO"; then : | |
13806 | ac_cv_struct_tm=time.h | |
13807 | else | |
13808 | ac_cv_struct_tm=sys/time.h | |
13809 | fi | |
13810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13811 | fi | |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
13813 | $as_echo "$ac_cv_struct_tm" >&6; } | |
13814 | if test $ac_cv_struct_tm = sys/time.h; then | |
13815 | ||
13816 | $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h | |
13817 | ||
13818 | fi | |
13819 | ||
13820 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
13821 | #include <$ac_cv_struct_tm> | |
13822 | ||
13823 | " | |
13824 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
13825 | ||
13826 | cat >>confdefs.h <<_ACEOF | |
13827 | @%:@define HAVE_STRUCT_TM_TM_ZONE 1 | |
13828 | _ACEOF | |
13829 | ||
13830 | ||
13831 | fi | |
13832 | ||
13833 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
13834 | ||
13835 | $as_echo "@%:@define HAVE_TM_ZONE 1" >>confdefs.h | |
13836 | ||
13837 | else | |
13838 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
13839 | " | |
13840 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
13841 | ac_have_decl=1 | |
13842 | else | |
13843 | ac_have_decl=0 | |
13844 | fi | |
13845 | ||
13846 | cat >>confdefs.h <<_ACEOF | |
13847 | @%:@define HAVE_DECL_TZNAME $ac_have_decl | |
13848 | _ACEOF | |
13849 | ||
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
13851 | $as_echo_n "checking for tzname... " >&6; } | |
13852 | if ${ac_cv_var_tzname+:} false; then : | |
13853 | $as_echo_n "(cached) " >&6 | |
13854 | else | |
13855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13856 | /* end confdefs.h. */ | |
13857 | #include <time.h> | |
13858 | #if !HAVE_DECL_TZNAME | |
13859 | extern char *tzname[]; | |
13860 | #endif | |
13861 | ||
13862 | int | |
13863 | main () | |
13864 | { | |
13865 | return tzname[0][0]; | |
13866 | ; | |
13867 | return 0; | |
13868 | } | |
13869 | _ACEOF | |
13870 | if ac_fn_c_try_link "$LINENO"; then : | |
13871 | ac_cv_var_tzname=yes | |
13872 | else | |
13873 | ac_cv_var_tzname=no | |
13874 | fi | |
13875 | rm -f core conftest.err conftest.$ac_objext \ | |
13876 | conftest$ac_exeext conftest.$ac_ext | |
13877 | fi | |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
13879 | $as_echo "$ac_cv_var_tzname" >&6; } | |
13880 | if test $ac_cv_var_tzname = yes; then | |
13881 | ||
13882 | $as_echo "@%:@define HAVE_TZNAME 1" >>confdefs.h | |
13883 | ||
13884 | fi | |
13885 | fi | |
13886 | ||
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timezone in sys/time.h and time.h" >&5 | |
13888 | $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; } | |
13889 | if ${bash_cv_struct_timezone+:} false; then : | |
13890 | $as_echo_n "(cached) " >&6 | |
13891 | else | |
13892 | ||
13893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13894 | /* end confdefs.h. */ | |
13895 | #include <sys/time.h> | |
13896 | ||
13897 | _ACEOF | |
13898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13899 | $EGREP "struct timezone" >/dev/null 2>&1; then : | |
13900 | bash_cv_struct_timezone=yes | |
13901 | else | |
13902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13903 | /* end confdefs.h. */ | |
13904 | #include <time.h> | |
13905 | ||
13906 | _ACEOF | |
13907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13908 | $EGREP "struct timezone" >/dev/null 2>&1; then : | |
13909 | bash_cv_struct_timezone=yes | |
13910 | else | |
13911 | bash_cv_struct_timezone=no | |
13912 | fi | |
13913 | rm -f conftest* | |
13914 | ||
13915 | fi | |
13916 | rm -f conftest* | |
13917 | ||
13918 | ||
13919 | fi | |
13920 | ||
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timezone" >&5 | |
13922 | $as_echo "$bash_cv_struct_timezone" >&6; } | |
13923 | if test $bash_cv_struct_timezone = yes; then | |
13924 | $as_echo "@%:@define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h | |
13925 | ||
13926 | fi | |
13927 | ||
13928 | ||
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for offset of exit status in return status from wait" >&5 | |
13930 | $as_echo_n "checking for offset of exit status in return status from wait... " >&6; } | |
13931 | if ${bash_cv_wexitstatus_offset+:} false; then : | |
13932 | $as_echo_n "(cached) " >&6 | |
13933 | else | |
13934 | if test "$cross_compiling" = yes; then : | |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5 | |
13936 | $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;} | |
13937 | bash_cv_wexitstatus_offset=0 | |
13938 | ||
13939 | else | |
13940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13941 | /* end confdefs.h. */ | |
13942 | ||
13943 | #include <stdlib.h> | |
13944 | #include <unistd.h> | |
13945 | ||
13946 | #include <sys/wait.h> | |
13947 | ||
13948 | main(c, v) | |
13949 | int c; | |
13950 | char **v; | |
13951 | { | |
13952 | pid_t pid, p; | |
13953 | int s, i, n; | |
13954 | ||
13955 | s = 0; | |
13956 | pid = fork(); | |
13957 | if (pid == 0) | |
13958 | exit (42); | |
13959 | ||
13960 | /* wait for the process */ | |
13961 | p = wait(&s); | |
13962 | if (p != pid) | |
13963 | exit (255); | |
13964 | ||
13965 | /* crack s */ | |
13966 | for (i = 0; i < (sizeof(s) - 8); i++) | |
13967 | { | |
13968 | n = (s >> i) & 0xff; | |
13969 | if (n == 42) | |
13970 | exit (i); | |
13971 | } | |
13972 | ||
13973 | exit (254); | |
13974 | } | |
13975 | ||
13976 | _ACEOF | |
13977 | if ac_fn_c_try_run "$LINENO"; then : | |
13978 | bash_cv_wexitstatus_offset=0 | |
13979 | else | |
13980 | bash_cv_wexitstatus_offset=$? | |
13981 | fi | |
13982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13983 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13984 | fi | |
13985 | ||
13986 | fi | |
13987 | ||
13988 | if test "$bash_cv_wexitstatus_offset" -gt 32 ; then | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad exit status from test program -- defaulting to 0" >&5 | |
13990 | $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;} | |
13991 | bash_cv_wexitstatus_offset=0 | |
13992 | fi | |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wexitstatus_offset" >&5 | |
13994 | $as_echo "$bash_cv_wexitstatus_offset" >&6; } | |
13995 | ||
13996 | cat >>confdefs.h <<_ACEOF | |
13997 | @%:@define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset | |
13998 | _ACEOF | |
13999 | ||
14000 | ||
14001 | ||
14002 | ||
14003 | ||
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 | |
14005 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } | |
14006 | if ${bash_cv_sys_struct_timespec_in_time_h+:} false; then : | |
14007 | $as_echo_n "(cached) " >&6 | |
14008 | else | |
14009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14010 | /* end confdefs.h. */ | |
14011 | #include <time.h> | |
14012 | ||
14013 | int | |
14014 | main () | |
14015 | { | |
14016 | static struct timespec x; x.tv_sec = x.tv_nsec; | |
14017 | ; | |
14018 | return 0; | |
14019 | } | |
14020 | _ACEOF | |
14021 | if ac_fn_c_try_compile "$LINENO"; then : | |
14022 | bash_cv_sys_struct_timespec_in_time_h=yes | |
14023 | else | |
14024 | bash_cv_sys_struct_timespec_in_time_h=no | |
14025 | fi | |
14026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14027 | fi | |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_time_h" >&5 | |
14029 | $as_echo "$bash_cv_sys_struct_timespec_in_time_h" >&6; } | |
14030 | ||
14031 | HAVE_STRUCT_TIMESPEC=0 | |
14032 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 | |
14033 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 | |
14034 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 | |
14035 | if test $bash_cv_sys_struct_timespec_in_time_h = yes; then | |
14036 | $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h | |
14037 | ||
14038 | $as_echo "@%:@define TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h | |
14039 | ||
14040 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 | |
14041 | else | |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 | |
14043 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } | |
14044 | if ${bash_cv_sys_struct_timespec_in_sys_time_h+:} false; then : | |
14045 | $as_echo_n "(cached) " >&6 | |
14046 | else | |
14047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14048 | /* end confdefs.h. */ | |
14049 | #include <sys/time.h> | |
14050 | ||
14051 | int | |
14052 | main () | |
14053 | { | |
14054 | static struct timespec x; x.tv_sec = x.tv_nsec; | |
14055 | ; | |
14056 | return 0; | |
14057 | } | |
14058 | _ACEOF | |
14059 | if ac_fn_c_try_compile "$LINENO"; then : | |
14060 | bash_cv_sys_struct_timespec_in_sys_time_h=yes | |
14061 | else | |
14062 | bash_cv_sys_struct_timespec_in_sys_time_h=no | |
14063 | fi | |
14064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14065 | fi | |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_sys_time_h" >&5 | |
14067 | $as_echo "$bash_cv_sys_struct_timespec_in_sys_time_h" >&6; } | |
14068 | if test $bash_cv_sys_struct_timespec_in_sys_time_h = yes; then | |
14069 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 | |
14070 | $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h | |
14071 | ||
14072 | $as_echo "@%:@define SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h | |
14073 | ||
14074 | else | |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 | |
14076 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } | |
14077 | if ${bash_cv_sys_struct_timespec_in_pthread_h+:} false; then : | |
14078 | $as_echo_n "(cached) " >&6 | |
14079 | else | |
14080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14081 | /* end confdefs.h. */ | |
14082 | #include <pthread.h> | |
14083 | ||
14084 | int | |
14085 | main () | |
14086 | { | |
14087 | static struct timespec x; x.tv_sec = x.tv_nsec; | |
14088 | ; | |
14089 | return 0; | |
14090 | } | |
14091 | _ACEOF | |
14092 | if ac_fn_c_try_compile "$LINENO"; then : | |
14093 | bash_cv_sys_struct_timespec_in_pthread_h=yes | |
14094 | else | |
14095 | bash_cv_sys_struct_timespec_in_pthread_h=no | |
14096 | fi | |
14097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14098 | fi | |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_struct_timespec_in_pthread_h" >&5 | |
14100 | $as_echo "$bash_cv_sys_struct_timespec_in_pthread_h" >&6; } | |
14101 | if test $bash_cv_sys_struct_timespec_in_pthread_h = yes; then | |
14102 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 | |
14103 | $as_echo "@%:@define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h | |
14104 | ||
14105 | $as_echo "@%:@define PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1" >>confdefs.h | |
14106 | ||
14107 | fi | |
14108 | fi | |
14109 | fi | |
14110 | ||
14111 | ||
14112 | ||
14113 | ||
14114 | ||
14115 | ||
14116 | ||
14117 | ||
14118 | ||
14119 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> | |
14120 | #include <sys/stat.h> | |
14121 | " | |
14122 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : | |
14123 | ||
14124 | cat >>confdefs.h <<_ACEOF | |
14125 | @%:@define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 | |
14126 | _ACEOF | |
14127 | ||
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 | |
14129 | $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } | |
14130 | if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : | |
14131 | $as_echo_n "(cached) " >&6 | |
14132 | else | |
14133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14134 | /* end confdefs.h. */ | |
14135 | ||
14136 | #include <sys/types.h> | |
14137 | #include <sys/stat.h> | |
14138 | #if HAVE_SYS_TIME_H | |
14139 | # include <sys/time.h> | |
14140 | #endif | |
14141 | #include <time.h> | |
14142 | struct timespec ts; | |
14143 | struct stat st; | |
14144 | ||
14145 | int | |
14146 | main () | |
14147 | { | |
14148 | ||
14149 | st.st_atim = ts; | |
14150 | ||
14151 | ; | |
14152 | return 0; | |
14153 | } | |
14154 | _ACEOF | |
14155 | if ac_fn_c_try_compile "$LINENO"; then : | |
14156 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes | |
14157 | else | |
14158 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no | |
14159 | fi | |
14160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14161 | fi | |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 | |
14163 | $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } | |
14164 | if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then | |
14165 | ||
14166 | $as_echo "@%:@define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h | |
14167 | ||
14168 | fi | |
14169 | else | |
14170 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> | |
14171 | #include <sys/stat.h> | |
14172 | " | |
14173 | if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : | |
14174 | ||
14175 | cat >>confdefs.h <<_ACEOF | |
14176 | @%:@define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 | |
14177 | _ACEOF | |
14178 | ||
14179 | ||
14180 | else | |
14181 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> | |
14182 | #include <sys/stat.h> | |
14183 | " | |
14184 | if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : | |
14185 | ||
14186 | cat >>confdefs.h <<_ACEOF | |
14187 | @%:@define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 | |
14188 | _ACEOF | |
14189 | ||
14190 | ||
14191 | else | |
14192 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> | |
14193 | #include <sys/stat.h> | |
14194 | " | |
14195 | if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : | |
14196 | ||
14197 | cat >>confdefs.h <<_ACEOF | |
14198 | @%:@define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 | |
14199 | _ACEOF | |
14200 | ||
14201 | ||
14202 | fi | |
14203 | ||
14204 | fi | |
14205 | ||
14206 | fi | |
14207 | ||
14208 | fi | |
14209 | ||
14210 | ||
14211 | ||
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5 | |
14213 | $as_echo_n "checking for the existence of strsignal... " >&6; } | |
14214 | if ${bash_cv_have_strsignal+:} false; then : | |
14215 | $as_echo_n "(cached) " >&6 | |
14216 | else | |
14217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14218 | /* end confdefs.h. */ | |
14219 | #include <sys/types.h> | |
14220 | #include <signal.h> | |
14221 | int | |
14222 | main () | |
14223 | { | |
14224 | char *s = (char *)strsignal(2); | |
14225 | ; | |
14226 | return 0; | |
14227 | } | |
14228 | _ACEOF | |
14229 | if ac_fn_c_try_link "$LINENO"; then : | |
14230 | bash_cv_have_strsignal=yes | |
14231 | else | |
14232 | bash_cv_have_strsignal=no | |
14233 | fi | |
14234 | rm -f core conftest.err conftest.$ac_objext \ | |
14235 | conftest$ac_exeext conftest.$ac_ext | |
14236 | fi | |
14237 | ||
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_have_strsignal" >&5 | |
14239 | $as_echo "$bash_cv_have_strsignal" >&6; } | |
14240 | if test $bash_cv_have_strsignal = yes; then | |
14241 | $as_echo "@%:@define HAVE_STRSIGNAL 1" >>confdefs.h | |
14242 | ||
14243 | fi | |
14244 | ||
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if opendir() opens non-directories" >&5 | |
14246 | $as_echo_n "checking if opendir() opens non-directories... " >&6; } | |
14247 | if ${bash_cv_opendir_not_robust+:} false; then : | |
14248 | $as_echo_n "(cached) " >&6 | |
14249 | else | |
14250 | if test "$cross_compiling" = yes; then : | |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5 | |
14252 | $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;} | |
14253 | bash_cv_opendir_not_robust=no | |
14254 | ||
14255 | else | |
14256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14257 | /* end confdefs.h. */ | |
14258 | ||
14259 | #include <stdio.h> | |
14260 | #include <sys/types.h> | |
14261 | #include <fcntl.h> | |
14262 | #ifdef HAVE_UNISTD_H | |
14263 | # include <unistd.h> | |
14264 | #endif /* HAVE_UNISTD_H */ | |
14265 | #if defined(HAVE_DIRENT_H) | |
14266 | # include <dirent.h> | |
14267 | #else | |
14268 | # define dirent direct | |
14269 | # ifdef HAVE_SYS_NDIR_H | |
14270 | # include <sys/ndir.h> | |
14271 | # endif /* SYSNDIR */ | |
14272 | # ifdef HAVE_SYS_DIR_H | |
14273 | # include <sys/dir.h> | |
14274 | # endif /* SYSDIR */ | |
14275 | # ifdef HAVE_NDIR_H | |
14276 | # include <ndir.h> | |
14277 | # endif | |
14278 | #endif /* HAVE_DIRENT_H */ | |
14279 | main() | |
14280 | { | |
14281 | DIR *dir; | |
14282 | int fd, err; | |
14283 | err = mkdir("bash-aclocal", 0700); | |
14284 | if (err < 0) { | |
14285 | perror("mkdir"); | |
14286 | exit(1); | |
14287 | } | |
14288 | unlink("bash-aclocal/not_a_directory"); | |
14289 | fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666); | |
14290 | write(fd, "\n", 1); | |
14291 | close(fd); | |
14292 | dir = opendir("bash-aclocal/not_a_directory"); | |
14293 | unlink("bash-aclocal/not_a_directory"); | |
14294 | rmdir("bash-aclocal"); | |
14295 | exit (dir == 0); | |
14296 | } | |
14297 | _ACEOF | |
14298 | if ac_fn_c_try_run "$LINENO"; then : | |
14299 | bash_cv_opendir_not_robust=yes | |
14300 | else | |
14301 | bash_cv_opendir_not_robust=no | |
14302 | fi | |
14303 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14304 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14305 | fi | |
14306 | ||
14307 | fi | |
14308 | ||
14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_opendir_not_robust" >&5 | |
14310 | $as_echo "$bash_cv_opendir_not_robust" >&6; } | |
14311 | if test $bash_cv_opendir_not_robust = yes; then | |
14312 | $as_echo "@%:@define OPENDIR_NOT_ROBUST 1" >>confdefs.h | |
14313 | ||
14314 | fi | |
14315 | ||
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ulimit can substitute for getdtablesize" >&5 | |
14317 | $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; } | |
14318 | if ${bash_cv_ulimit_maxfds+:} false; then : | |
14319 | $as_echo_n "(cached) " >&6 | |
14320 | else | |
14321 | if test "$cross_compiling" = yes; then : | |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5 | |
14323 | $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;} | |
14324 | bash_cv_ulimit_maxfds=no | |
14325 | ||
14326 | else | |
14327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14328 | /* end confdefs.h. */ | |
14329 | ||
14330 | main() | |
14331 | { | |
14332 | long maxfds = ulimit(4, 0L); | |
14333 | exit (maxfds == -1L); | |
14334 | } | |
14335 | ||
14336 | _ACEOF | |
14337 | if ac_fn_c_try_run "$LINENO"; then : | |
14338 | bash_cv_ulimit_maxfds=yes | |
14339 | else | |
14340 | bash_cv_ulimit_maxfds=no | |
14341 | fi | |
14342 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14343 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14344 | fi | |
14345 | ||
14346 | fi | |
14347 | ||
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_ulimit_maxfds" >&5 | |
14349 | $as_echo "$bash_cv_ulimit_maxfds" >&6; } | |
14350 | if test $bash_cv_ulimit_maxfds = yes; then | |
14351 | $as_echo "@%:@define ULIMIT_MAXFDS 1" >>confdefs.h | |
14352 | ||
14353 | fi | |
14354 | ||
14355 | ||
14356 | ||
14357 | ||
14358 | ||
14359 | ||
14360 | ||
14361 | ||
14362 | ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h> | |
14363 | " | |
14364 | if test "x$ac_cv_have_decl_fpurge" = xyes; then : | |
14365 | ac_have_decl=1 | |
14366 | else | |
14367 | ac_have_decl=0 | |
14368 | fi | |
14369 | ||
14370 | cat >>confdefs.h <<_ACEOF | |
14371 | @%:@define HAVE_DECL_FPURGE $ac_have_decl | |
14372 | _ACEOF | |
14373 | ||
14374 | ||
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if getenv can be redefined" >&5 | |
14376 | $as_echo_n "checking to see if getenv can be redefined... " >&6; } | |
14377 | if ${bash_cv_getenv_redef+:} false; then : | |
14378 | $as_echo_n "(cached) " >&6 | |
14379 | else | |
14380 | if test "$cross_compiling" = yes; then : | |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5 | |
14382 | $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;} | |
14383 | bash_cv_getenv_redef=yes | |
14384 | ||
14385 | else | |
14386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14387 | /* end confdefs.h. */ | |
14388 | ||
14389 | #ifdef HAVE_UNISTD_H | |
14390 | # include <unistd.h> | |
14391 | #endif | |
14392 | #ifndef __STDC__ | |
14393 | # ifndef const | |
14394 | # define const | |
14395 | # endif | |
14396 | #endif | |
14397 | char * | |
14398 | getenv (name) | |
14399 | #if defined (__linux__) || defined (__bsdi__) || defined (convex) | |
14400 | const char *name; | |
14401 | #else | |
14402 | char const *name; | |
14403 | #endif /* !__linux__ && !__bsdi__ && !convex */ | |
14404 | { | |
14405 | return "42"; | |
14406 | } | |
14407 | main() | |
14408 | { | |
14409 | char *s; | |
14410 | /* The next allows this program to run, but does not allow bash to link | |
14411 | when it redefines getenv. I'm not really interested in figuring out | |
14412 | why not. */ | |
14413 | #if defined (NeXT) | |
14414 | exit(1); | |
14415 | #endif | |
14416 | s = getenv("ABCDE"); | |
14417 | exit(s == 0); /* force optimizer to leave getenv in */ | |
14418 | } | |
14419 | ||
14420 | _ACEOF | |
14421 | if ac_fn_c_try_run "$LINENO"; then : | |
14422 | bash_cv_getenv_redef=yes | |
14423 | else | |
14424 | bash_cv_getenv_redef=no | |
14425 | fi | |
14426 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14427 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14428 | fi | |
14429 | ||
14430 | fi | |
14431 | ||
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getenv_redef" >&5 | |
14433 | $as_echo "$bash_cv_getenv_redef" >&6; } | |
14434 | if test $bash_cv_getenv_redef = yes; then | |
14435 | $as_echo "@%:@define CAN_REDEFINE_GETENV 1" >>confdefs.h | |
14436 | ||
14437 | fi | |
14438 | ||
14439 | if test "$ac_cv_func_getcwd" = "yes"; then | |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getcwd() will dynamically allocate memory with 0 size" >&5 | |
14441 | $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; } | |
14442 | if ${bash_cv_getcwd_malloc+:} false; then : | |
14443 | $as_echo_n "(cached) " >&6 | |
14444 | else | |
14445 | if test "$cross_compiling" = yes; then : | |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5 | |
14447 | $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;} | |
14448 | bash_cv_getcwd_malloc=no | |
14449 | ||
14450 | else | |
14451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14452 | /* end confdefs.h. */ | |
14453 | ||
14454 | #include <stdio.h> | |
14455 | #ifdef HAVE_UNISTD_H | |
14456 | #include <unistd.h> | |
14457 | #endif | |
14458 | ||
14459 | main() | |
14460 | { | |
14461 | char *xpwd; | |
14462 | xpwd = getcwd(0, 0); | |
14463 | exit (xpwd == 0); | |
14464 | } | |
14465 | ||
14466 | _ACEOF | |
14467 | if ac_fn_c_try_run "$LINENO"; then : | |
14468 | bash_cv_getcwd_malloc=yes | |
14469 | else | |
14470 | bash_cv_getcwd_malloc=no | |
14471 | fi | |
14472 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14473 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14474 | fi | |
14475 | ||
14476 | fi | |
14477 | ||
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getcwd_malloc" >&5 | |
14479 | $as_echo "$bash_cv_getcwd_malloc" >&6; } | |
14480 | if test $bash_cv_getcwd_malloc = no; then | |
14481 | $as_echo "@%:@define GETCWD_BROKEN 1" >>confdefs.h | |
14482 | ||
14483 | case " $LIB@&t@OBJS " in | |
14484 | *" getcwd.$ac_objext "* ) ;; | |
14485 | *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext" | |
14486 | ;; | |
14487 | esac | |
14488 | ||
14489 | fi | |
14490 | ||
14491 | fi | |
14492 | ||
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 | |
14494 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
14495 | if ${bash_cv_func_sigsetjmp+:} false; then : | |
14496 | $as_echo_n "(cached) " >&6 | |
14497 | else | |
14498 | if test "$cross_compiling" = yes; then : | |
14499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 | |
14500 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
14501 | bash_cv_func_sigsetjmp=missing | |
14502 | ||
14503 | else | |
14504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14505 | /* end confdefs.h. */ | |
14506 | ||
14507 | #ifdef HAVE_UNISTD_H | |
14508 | #include <unistd.h> | |
14509 | #endif | |
14510 | #include <sys/types.h> | |
14511 | #include <signal.h> | |
14512 | #include <setjmp.h> | |
14513 | ||
14514 | main() | |
14515 | { | |
14516 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
14517 | exit (1); | |
14518 | #else | |
14519 | ||
14520 | int code; | |
14521 | sigset_t set, oset; | |
14522 | sigjmp_buf xx; | |
14523 | ||
14524 | /* get the mask */ | |
14525 | sigemptyset(&set); | |
14526 | sigemptyset(&oset); | |
14527 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
14528 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
14529 | ||
14530 | /* save it */ | |
14531 | code = sigsetjmp(xx, 1); | |
14532 | if (code) | |
14533 | exit(0); /* could get sigmask and compare to oset here. */ | |
14534 | ||
14535 | /* change it */ | |
14536 | sigaddset(&set, SIGINT); | |
14537 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
14538 | ||
14539 | /* and siglongjmp */ | |
14540 | siglongjmp(xx, 10); | |
14541 | exit(1); | |
14542 | #endif | |
14543 | } | |
14544 | _ACEOF | |
14545 | if ac_fn_c_try_run "$LINENO"; then : | |
14546 | bash_cv_func_sigsetjmp=present | |
14547 | else | |
14548 | bash_cv_func_sigsetjmp=missing | |
14549 | fi | |
14550 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14551 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14552 | fi | |
14553 | ||
14554 | fi | |
14555 | ||
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 | |
14557 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
14558 | if test $bash_cv_func_sigsetjmp = present; then | |
14559 | $as_echo "@%:@define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h | |
14560 | ||
14561 | fi | |
14562 | ||
14563 | ||
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 | |
14565 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
14566 | if ${bash_cv_func_strcoll_broken+:} false; then : | |
14567 | $as_echo_n "(cached) " >&6 | |
14568 | else | |
14569 | if test "$cross_compiling" = yes; then : | |
14570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 | |
14571 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
14572 | bash_cv_func_strcoll_broken=no | |
14573 | ||
14574 | else | |
14575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14576 | /* end confdefs.h. */ | |
14577 | ||
14578 | #include <stdio.h> | |
14579 | #if defined (HAVE_LOCALE_H) | |
14580 | #include <locale.h> | |
14581 | #endif | |
14582 | ||
14583 | main(c, v) | |
14584 | int c; | |
14585 | char *v[]; | |
14586 | { | |
14587 | int r1, r2; | |
14588 | char *deflocale, *defcoll; | |
14589 | ||
14590 | #ifdef HAVE_SETLOCALE | |
14591 | deflocale = setlocale(LC_ALL, ""); | |
14592 | defcoll = setlocale(LC_COLLATE, ""); | |
14593 | #endif | |
14594 | ||
14595 | #ifdef HAVE_STRCOLL | |
14596 | /* These two values are taken from tests/glob-test. */ | |
14597 | r1 = strcoll("abd", "aXd"); | |
14598 | #else | |
14599 | r1 = 0; | |
14600 | #endif | |
14601 | r2 = strcmp("abd", "aXd"); | |
14602 | ||
14603 | /* These two should both be greater than 0. It is permissible for | |
14604 | a system to return different values, as long as the sign is the | |
14605 | same. */ | |
14606 | ||
14607 | /* Exit with 1 (failure) if these two values are both > 0, since | |
14608 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
14609 | in the default locale. */ | |
14610 | exit (r1 > 0 && r2 > 0); | |
14611 | } | |
14612 | ||
14613 | _ACEOF | |
14614 | if ac_fn_c_try_run "$LINENO"; then : | |
14615 | bash_cv_func_strcoll_broken=yes | |
14616 | else | |
14617 | bash_cv_func_strcoll_broken=no | |
14618 | fi | |
14619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14620 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14621 | fi | |
14622 | ||
14623 | fi | |
14624 | ||
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 | |
14626 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
14627 | if test $bash_cv_func_strcoll_broken = yes; then | |
14628 | $as_echo "@%:@define STRCOLL_BROKEN 1" >>confdefs.h | |
14629 | ||
14630 | fi | |
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | if test X$ac_cv_func_snprintf = Xyes; then | |
14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant snprintf" >&5 | |
14638 | $as_echo_n "checking for standard-conformant snprintf... " >&6; } | |
14639 | if ${bash_cv_func_snprintf+:} false; then : | |
14640 | $as_echo_n "(cached) " >&6 | |
14641 | else | |
14642 | if test "$cross_compiling" = yes; then : | |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard snprintf if cross-compiling" >&5 | |
14644 | $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;} | |
14645 | bash_cv_func_snprintf=yes | |
14646 | ||
14647 | else | |
14648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14649 | /* end confdefs.h. */ | |
14650 | ||
14651 | #include <stdio.h> | |
14652 | ||
14653 | main() | |
14654 | { | |
14655 | int n; | |
14656 | n = snprintf (0, 0, "%s", "0123456"); | |
14657 | exit(n != 7); | |
14658 | } | |
14659 | ||
14660 | _ACEOF | |
14661 | if ac_fn_c_try_run "$LINENO"; then : | |
14662 | bash_cv_func_snprintf=yes | |
14663 | else | |
14664 | bash_cv_func_snprintf=no | |
14665 | fi | |
14666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14667 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14668 | fi | |
14669 | ||
14670 | fi | |
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_snprintf" >&5 | |
14672 | $as_echo "$bash_cv_func_snprintf" >&6; } | |
14673 | if test $bash_cv_func_snprintf = no; then | |
14674 | ac_cv_func_snprintf=no | |
14675 | fi | |
14676 | fi | |
14677 | if test $ac_cv_func_snprintf = no; then | |
14678 | ||
14679 | $as_echo "@%:@define HAVE_SNPRINTF 0" >>confdefs.h | |
14680 | ||
14681 | fi | |
14682 | ||
14683 | ||
14684 | ||
14685 | ||
14686 | ||
14687 | if test X$ac_cv_func_vsnprintf = Xyes; then | |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant vsnprintf" >&5 | |
14689 | $as_echo_n "checking for standard-conformant vsnprintf... " >&6; } | |
14690 | if ${bash_cv_func_vsnprintf+:} false; then : | |
14691 | $as_echo_n "(cached) " >&6 | |
14692 | else | |
14693 | if test "$cross_compiling" = yes; then : | |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check standard vsnprintf if cross-compiling" >&5 | |
14695 | $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;} | |
14696 | bash_cv_func_vsnprintf=yes | |
14697 | ||
14698 | else | |
14699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14700 | /* end confdefs.h. */ | |
14701 | ||
14702 | #if HAVE_STDARG_H | |
14703 | #include <stdarg.h> | |
14704 | #else | |
14705 | #include <varargs.h> | |
14706 | #endif | |
14707 | #include <stdio.h> | |
14708 | #include <stdlib.h> | |
14709 | ||
14710 | static int | |
14711 | #if HAVE_STDARG_H | |
14712 | foo(const char *fmt, ...) | |
14713 | #else | |
14714 | foo(format, va_alist) | |
14715 | const char *format; | |
14716 | va_dcl | |
14717 | #endif | |
14718 | { | |
14719 | va_list args; | |
14720 | int n; | |
14721 | ||
14722 | #if HAVE_STDARG_H | |
14723 | va_start(args, fmt); | |
14724 | #else | |
14725 | va_start(args); | |
14726 | #endif | |
14727 | n = vsnprintf(0, 0, fmt, args); | |
14728 | va_end (args); | |
14729 | return n; | |
14730 | } | |
14731 | ||
14732 | main() | |
14733 | { | |
14734 | int n; | |
14735 | n = foo("%s", "0123456"); | |
14736 | exit(n != 7); | |
14737 | } | |
14738 | ||
14739 | _ACEOF | |
14740 | if ac_fn_c_try_run "$LINENO"; then : | |
14741 | bash_cv_func_vsnprintf=yes | |
14742 | else | |
14743 | bash_cv_func_vsnprintf=no | |
14744 | fi | |
14745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14746 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14747 | fi | |
14748 | ||
14749 | fi | |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_vsnprintf" >&5 | |
14751 | $as_echo "$bash_cv_func_vsnprintf" >&6; } | |
14752 | if test $bash_cv_func_vsnprintf = no; then | |
14753 | ac_cv_func_vsnprintf=no | |
14754 | fi | |
14755 | fi | |
14756 | if test $ac_cv_func_vsnprintf = no; then | |
14757 | ||
14758 | $as_echo "@%:@define HAVE_VSNPRINTF 0" >>confdefs.h | |
14759 | ||
14760 | fi | |
14761 | ||
14762 | ||
14763 | ||
14764 | if test "$ac_cv_func_putenv" = "yes"; then | |
14765 | ||
14766 | ||
14767 | ||
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant putenv declaration" >&5 | |
14769 | $as_echo_n "checking for standard-conformant putenv declaration... " >&6; } | |
14770 | if ${bash_cv_std_putenv+:} false; then : | |
14771 | $as_echo_n "(cached) " >&6 | |
14772 | else | |
14773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14774 | /* end confdefs.h. */ | |
14775 | ||
14776 | #if STDC_HEADERS | |
14777 | #include <stdlib.h> | |
14778 | #include <stddef.h> | |
14779 | #endif | |
14780 | #ifndef __STDC__ | |
14781 | # ifndef const | |
14782 | # define const | |
14783 | # endif | |
14784 | #endif | |
14785 | #ifdef PROTOTYPES | |
14786 | extern int putenv (char *); | |
14787 | #else | |
14788 | extern int putenv (); | |
14789 | #endif | |
14790 | ||
14791 | int | |
14792 | main () | |
14793 | { | |
14794 | return (putenv == 0); | |
14795 | ; | |
14796 | return 0; | |
14797 | } | |
14798 | _ACEOF | |
14799 | if ac_fn_c_try_link "$LINENO"; then : | |
14800 | bash_cv_std_putenv=yes | |
14801 | else | |
14802 | bash_cv_std_putenv=no | |
14803 | ||
14804 | fi | |
14805 | rm -f core conftest.err conftest.$ac_objext \ | |
14806 | conftest$ac_exeext conftest.$ac_ext | |
14807 | fi | |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_putenv" >&5 | |
14809 | $as_echo "$bash_cv_std_putenv" >&6; } | |
14810 | if test $bash_cv_std_putenv = yes; then | |
14811 | $as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h | |
14812 | ||
14813 | fi | |
14814 | ||
14815 | else | |
14816 | $as_echo "@%:@define HAVE_STD_PUTENV 1" >>confdefs.h | |
14817 | ||
14818 | fi | |
14819 | if test "$ac_cv_func_unsetenv" = "yes"; then | |
14820 | ||
14821 | ||
14822 | ||
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard-conformant unsetenv declaration" >&5 | |
14824 | $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; } | |
14825 | if ${bash_cv_std_unsetenv+:} false; then : | |
14826 | $as_echo_n "(cached) " >&6 | |
14827 | else | |
14828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14829 | /* end confdefs.h. */ | |
14830 | ||
14831 | #if STDC_HEADERS | |
14832 | #include <stdlib.h> | |
14833 | #include <stddef.h> | |
14834 | #endif | |
14835 | #ifndef __STDC__ | |
14836 | # ifndef const | |
14837 | # define const | |
14838 | # endif | |
14839 | #endif | |
14840 | #ifdef PROTOTYPES | |
14841 | extern int unsetenv (const char *); | |
14842 | #else | |
14843 | extern int unsetenv (); | |
14844 | #endif | |
14845 | ||
14846 | int | |
14847 | main () | |
14848 | { | |
14849 | return (unsetenv == 0); | |
14850 | ; | |
14851 | return 0; | |
14852 | } | |
14853 | _ACEOF | |
14854 | if ac_fn_c_try_link "$LINENO"; then : | |
14855 | bash_cv_std_unsetenv=yes | |
14856 | else | |
14857 | bash_cv_std_unsetenv=no | |
14858 | ||
14859 | fi | |
14860 | rm -f core conftest.err conftest.$ac_objext \ | |
14861 | conftest$ac_exeext conftest.$ac_ext | |
14862 | fi | |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_std_unsetenv" >&5 | |
14864 | $as_echo "$bash_cv_std_unsetenv" >&6; } | |
14865 | if test $bash_cv_std_unsetenv = yes; then | |
14866 | $as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h | |
14867 | ||
14868 | fi | |
14869 | ||
14870 | else | |
14871 | $as_echo "@%:@define HAVE_STD_UNSETENV 1" >>confdefs.h | |
14872 | ||
14873 | fi | |
14874 | ||
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf floating point output in hex notation" >&5 | |
14876 | $as_echo_n "checking for printf floating point output in hex notation... " >&6; } | |
14877 | if ${bash_cv_printf_a_format+:} false; then : | |
14878 | $as_echo_n "(cached) " >&6 | |
14879 | else | |
14880 | if test "$cross_compiling" = yes; then : | |
14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5 | |
14882 | $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;} | |
14883 | bash_cv_printf_a_format=no | |
14884 | ||
14885 | else | |
14886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14887 | /* end confdefs.h. */ | |
14888 | ||
14889 | #include <stdio.h> | |
14890 | #include <string.h> | |
14891 | ||
14892 | int | |
14893 | main() | |
14894 | { | |
14895 | double y = 0.0; | |
14896 | char abuf[1024]; | |
14897 | ||
14898 | sprintf(abuf, "%A", y); | |
14899 | exit(strchr(abuf, 'P') == (char *)0); | |
14900 | } | |
14901 | ||
14902 | _ACEOF | |
14903 | if ac_fn_c_try_run "$LINENO"; then : | |
14904 | bash_cv_printf_a_format=yes | |
14905 | else | |
14906 | bash_cv_printf_a_format=no | |
14907 | fi | |
14908 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14909 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14910 | fi | |
14911 | ||
14912 | fi | |
14913 | ||
14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_printf_a_format" >&5 | |
14915 | $as_echo "$bash_cv_printf_a_format" >&6; } | |
14916 | if test $bash_cv_printf_a_format = yes; then | |
14917 | $as_echo "@%:@define HAVE_PRINTF_A_FORMAT 1" >>confdefs.h | |
14918 | ||
14919 | fi | |
14920 | ||
14921 | ||
14922 | ||
14923 | ||
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 | |
14925 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
14926 | if ${bash_cv_must_reinstall_sighandlers+:} false; then : | |
14927 | $as_echo_n "(cached) " >&6 | |
14928 | else | |
14929 | if test "$cross_compiling" = yes; then : | |
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 | |
14931 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
14932 | bash_cv_must_reinstall_sighandlers=no | |
14933 | ||
14934 | else | |
14935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14936 | /* end confdefs.h. */ | |
14937 | ||
14938 | #include <signal.h> | |
14939 | #ifdef HAVE_UNISTD_H | |
14940 | #include <unistd.h> | |
14941 | #endif | |
14942 | ||
14943 | typedef RETSIGTYPE sigfunc(); | |
14944 | ||
14945 | int nsigint; | |
14946 | ||
14947 | #ifdef HAVE_POSIX_SIGNALS | |
14948 | sigfunc * | |
14949 | set_signal_handler(sig, handler) | |
14950 | int sig; | |
14951 | sigfunc *handler; | |
14952 | { | |
14953 | struct sigaction act, oact; | |
14954 | act.sa_handler = handler; | |
14955 | act.sa_flags = 0; | |
14956 | sigemptyset (&act.sa_mask); | |
14957 | sigemptyset (&oact.sa_mask); | |
14958 | sigaction (sig, &act, &oact); | |
14959 | return (oact.sa_handler); | |
14960 | } | |
14961 | #else | |
14962 | #define set_signal_handler(s, h) signal(s, h) | |
14963 | #endif | |
14964 | ||
14965 | RETSIGTYPE | |
14966 | sigint(s) | |
14967 | int s; | |
14968 | { | |
14969 | nsigint++; | |
14970 | } | |
14971 | ||
14972 | main() | |
14973 | { | |
14974 | nsigint = 0; | |
14975 | set_signal_handler(SIGINT, sigint); | |
14976 | kill((int)getpid(), SIGINT); | |
14977 | kill((int)getpid(), SIGINT); | |
14978 | exit(nsigint != 2); | |
14979 | } | |
14980 | ||
14981 | _ACEOF | |
14982 | if ac_fn_c_try_run "$LINENO"; then : | |
14983 | bash_cv_must_reinstall_sighandlers=no | |
14984 | else | |
14985 | bash_cv_must_reinstall_sighandlers=yes | |
14986 | fi | |
14987 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14988 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14989 | fi | |
14990 | ||
14991 | fi | |
14992 | ||
14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 | |
14994 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
14995 | if test $bash_cv_must_reinstall_sighandlers = yes; then | |
14996 | $as_echo "@%:@define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h | |
14997 | ||
14998 | fi | |
14999 | ||
15000 | ||
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of necessary job control definitions" >&5 | |
15002 | $as_echo_n "checking for presence of necessary job control definitions... " >&6; } | |
15003 | if ${bash_cv_job_control_missing+:} false; then : | |
15004 | $as_echo_n "(cached) " >&6 | |
15005 | else | |
15006 | if test "$cross_compiling" = yes; then : | |
15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5 | |
15008 | $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;} | |
15009 | bash_cv_job_control_missing=missing | |
15010 | ||
15011 | else | |
15012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15013 | /* end confdefs.h. */ | |
15014 | ||
15015 | #include <sys/types.h> | |
15016 | #ifdef HAVE_SYS_WAIT_H | |
15017 | #include <sys/wait.h> | |
15018 | #endif | |
15019 | #ifdef HAVE_UNISTD_H | |
15020 | #include <unistd.h> | |
15021 | #endif | |
15022 | #include <signal.h> | |
15023 | ||
15024 | /* Add more tests in here as appropriate. */ | |
15025 | main() | |
15026 | { | |
15027 | /* signal type */ | |
15028 | #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS) | |
15029 | exit(1); | |
15030 | #endif | |
15031 | ||
15032 | /* signals and tty control. */ | |
15033 | #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT) | |
15034 | exit (1); | |
15035 | #endif | |
15036 | ||
15037 | /* process control */ | |
15038 | #if !defined (WNOHANG) || !defined (WUNTRACED) | |
15039 | exit(1); | |
15040 | #endif | |
15041 | ||
15042 | /* Posix systems have tcgetpgrp and waitpid. */ | |
15043 | #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP) | |
15044 | exit(1); | |
15045 | #endif | |
15046 | ||
15047 | #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID) | |
15048 | exit(1); | |
15049 | #endif | |
15050 | ||
15051 | /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */ | |
15052 | #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3) | |
15053 | exit(1); | |
15054 | #endif | |
15055 | ||
15056 | exit(0); | |
15057 | } | |
15058 | _ACEOF | |
15059 | if ac_fn_c_try_run "$LINENO"; then : | |
15060 | bash_cv_job_control_missing=present | |
15061 | else | |
15062 | bash_cv_job_control_missing=missing | |
15063 | fi | |
15064 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15065 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15066 | fi | |
15067 | ||
15068 | fi | |
15069 | ||
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_job_control_missing" >&5 | |
15071 | $as_echo "$bash_cv_job_control_missing" >&6; } | |
15072 | if test $bash_cv_job_control_missing = missing; then | |
15073 | $as_echo "@%:@define JOB_CONTROL_MISSING 1" >>confdefs.h | |
15074 | ||
15075 | fi | |
15076 | ||
15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of named pipes" >&5 | |
15078 | $as_echo_n "checking for presence of named pipes... " >&6; } | |
15079 | if ${bash_cv_sys_named_pipes+:} false; then : | |
15080 | $as_echo_n "(cached) " >&6 | |
15081 | else | |
15082 | if test "$cross_compiling" = yes; then : | |
15083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5 | |
15084 | $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;} | |
15085 | bash_cv_sys_named_pipes=missing | |
15086 | ||
15087 | else | |
15088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15089 | /* end confdefs.h. */ | |
15090 | ||
15091 | #include <sys/types.h> | |
15092 | #include <sys/stat.h> | |
15093 | #ifdef HAVE_UNISTD_H | |
15094 | #include <unistd.h> | |
15095 | #endif | |
15096 | ||
15097 | /* Add more tests in here as appropriate. */ | |
15098 | main() | |
15099 | { | |
15100 | int fd, err; | |
15101 | ||
15102 | #if defined (HAVE_MKFIFO) | |
15103 | exit (0); | |
15104 | #endif | |
15105 | ||
15106 | #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO)) | |
15107 | exit (1); | |
15108 | #endif | |
15109 | ||
15110 | #if defined (NeXT) | |
15111 | exit (1); | |
15112 | #endif | |
15113 | err = mkdir("bash-aclocal", 0700); | |
15114 | if (err < 0) { | |
15115 | perror ("mkdir"); | |
15116 | exit(1); | |
15117 | } | |
15118 | fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0); | |
15119 | if (fd == -1) { | |
15120 | rmdir ("bash-aclocal"); | |
15121 | exit (1); | |
15122 | } | |
15123 | close(fd); | |
15124 | unlink ("bash-aclocal/sh-np-autoconf"); | |
15125 | rmdir ("bash-aclocal"); | |
15126 | exit(0); | |
15127 | } | |
15128 | _ACEOF | |
15129 | if ac_fn_c_try_run "$LINENO"; then : | |
15130 | bash_cv_sys_named_pipes=present | |
15131 | else | |
15132 | bash_cv_sys_named_pipes=missing | |
15133 | fi | |
15134 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15135 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15136 | fi | |
15137 | ||
15138 | fi | |
15139 | ||
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_sys_named_pipes" >&5 | |
15141 | $as_echo "$bash_cv_sys_named_pipes" >&6; } | |
15142 | if test $bash_cv_sys_named_pipes = missing; then | |
15143 | $as_echo "@%:@define NAMED_PIPES_MISSING 1" >>confdefs.h | |
15144 | ||
15145 | fi | |
15146 | ||
15147 | ||
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 | |
15149 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
15150 | if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : | |
15151 | $as_echo_n "(cached) " >&6 | |
15152 | else | |
15153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15154 | /* end confdefs.h. */ | |
15155 | #include <sys/types.h> | |
15156 | #include <termios.h> | |
15157 | #ifdef TIOCGWINSZ | |
15158 | yes | |
15159 | #endif | |
15160 | ||
15161 | _ACEOF | |
15162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15163 | $EGREP "yes" >/dev/null 2>&1; then : | |
15164 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
15165 | else | |
15166 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
15167 | fi | |
15168 | rm -f conftest* | |
15169 | ||
15170 | fi | |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 | |
15172 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
15173 | ||
15174 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then | |
15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 | |
15176 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
15177 | if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : | |
15178 | $as_echo_n "(cached) " >&6 | |
15179 | else | |
15180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15181 | /* end confdefs.h. */ | |
15182 | #include <sys/types.h> | |
15183 | #include <sys/ioctl.h> | |
15184 | #ifdef TIOCGWINSZ | |
15185 | yes | |
15186 | #endif | |
15187 | ||
15188 | _ACEOF | |
15189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15190 | $EGREP "yes" >/dev/null 2>&1; then : | |
15191 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
15192 | else | |
15193 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no | |
15194 | fi | |
15195 | rm -f conftest* | |
15196 | ||
15197 | fi | |
15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 | |
15199 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
15200 | ||
15201 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then | |
15202 | ||
15203 | $as_echo "@%:@define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h | |
15204 | ||
15205 | fi | |
15206 | fi | |
15207 | ||
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 | |
15209 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
15210 | if ${bash_cv_tiocstat_in_ioctl+:} false; then : | |
15211 | $as_echo_n "(cached) " >&6 | |
15212 | else | |
15213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15214 | /* end confdefs.h. */ | |
15215 | #include <sys/types.h> | |
15216 | #include <sys/ioctl.h> | |
15217 | int | |
15218 | main () | |
15219 | { | |
15220 | int x = TIOCSTAT; | |
15221 | ; | |
15222 | return 0; | |
15223 | } | |
15224 | _ACEOF | |
15225 | if ac_fn_c_try_compile "$LINENO"; then : | |
15226 | bash_cv_tiocstat_in_ioctl=yes | |
15227 | else | |
15228 | bash_cv_tiocstat_in_ioctl=no | |
15229 | fi | |
15230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15231 | fi | |
15232 | ||
15233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 | |
15234 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
15235 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
15236 | $as_echo "@%:@define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h | |
15237 | ||
15238 | fi | |
15239 | ||
15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 | |
15241 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
15242 | if ${bash_cv_fionread_in_ioctl+:} false; then : | |
15243 | $as_echo_n "(cached) " >&6 | |
15244 | else | |
15245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15246 | /* end confdefs.h. */ | |
15247 | #include <sys/types.h> | |
15248 | #include <sys/ioctl.h> | |
15249 | int | |
15250 | main () | |
15251 | { | |
15252 | int x = FIONREAD; | |
15253 | ; | |
15254 | return 0; | |
15255 | } | |
15256 | _ACEOF | |
15257 | if ac_fn_c_try_compile "$LINENO"; then : | |
15258 | bash_cv_fionread_in_ioctl=yes | |
15259 | else | |
15260 | bash_cv_fionread_in_ioctl=no | |
15261 | fi | |
15262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15263 | fi | |
15264 | ||
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 | |
15266 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
15267 | if test $bash_cv_fionread_in_ioctl = yes; then | |
15268 | $as_echo "@%:@define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h | |
15269 | ||
15270 | fi | |
15271 | ||
15272 | ||
15273 | ||
15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5 | |
15275 | $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; } | |
15276 | if ${bash_cv_wcontinued_broken+:} false; then : | |
15277 | $as_echo_n "(cached) " >&6 | |
15278 | else | |
15279 | if test "$cross_compiling" = yes; then : | |
15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5 | |
15281 | $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;} | |
15282 | bash_cv_wcontinued_broken=no | |
15283 | ||
15284 | else | |
15285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15286 | /* end confdefs.h. */ | |
15287 | ||
15288 | #include <sys/types.h> | |
15289 | #include <sys/wait.h> | |
15290 | #include <unistd.h> | |
15291 | #include <errno.h> | |
15292 | ||
15293 | #ifndef errno | |
15294 | extern int errno; | |
15295 | #endif | |
15296 | main() | |
15297 | { | |
15298 | int x; | |
15299 | ||
15300 | x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED); | |
15301 | if (x == -1 && errno == EINVAL) | |
15302 | exit (1); | |
15303 | else | |
15304 | exit (0); | |
15305 | } | |
15306 | ||
15307 | _ACEOF | |
15308 | if ac_fn_c_try_run "$LINENO"; then : | |
15309 | bash_cv_wcontinued_broken=no | |
15310 | else | |
15311 | bash_cv_wcontinued_broken=yes | |
15312 | fi | |
15313 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15314 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15315 | fi | |
15316 | ||
15317 | fi | |
15318 | ||
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcontinued_broken" >&5 | |
15320 | $as_echo "$bash_cv_wcontinued_broken" >&6; } | |
15321 | if test $bash_cv_wcontinued_broken = yes; then | |
15322 | $as_echo "@%:@define WCONTINUED_BROKEN 1" >>confdefs.h | |
15323 | ||
15324 | fi | |
15325 | ||
15326 | ||
15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 | |
15328 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
15329 | if ${bash_cv_speed_t_in_sys_types+:} false; then : | |
15330 | $as_echo_n "(cached) " >&6 | |
15331 | else | |
15332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15333 | /* end confdefs.h. */ | |
15334 | #include <sys/types.h> | |
15335 | int | |
15336 | main () | |
15337 | { | |
15338 | speed_t x; | |
15339 | ; | |
15340 | return 0; | |
15341 | } | |
15342 | _ACEOF | |
15343 | if ac_fn_c_try_compile "$LINENO"; then : | |
15344 | bash_cv_speed_t_in_sys_types=yes | |
15345 | else | |
15346 | bash_cv_speed_t_in_sys_types=no | |
15347 | fi | |
15348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15349 | fi | |
15350 | ||
15351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 | |
15352 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
15353 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
15354 | $as_echo "@%:@define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h | |
15355 | ||
15356 | fi | |
15357 | ||
15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 | |
15359 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
15360 | if ${bash_cv_getpw_declared+:} false; then : | |
15361 | $as_echo_n "(cached) " >&6 | |
15362 | else | |
15363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15364 | /* end confdefs.h. */ | |
15365 | ||
15366 | #include <sys/types.h> | |
15367 | #ifdef HAVE_UNISTD_H | |
15368 | # include <unistd.h> | |
15369 | #endif | |
15370 | #include <pwd.h> | |
15371 | ||
15372 | _ACEOF | |
15373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15374 | $EGREP "getpwuid" >/dev/null 2>&1; then : | |
15375 | bash_cv_getpw_declared=yes | |
15376 | else | |
15377 | bash_cv_getpw_declared=no | |
15378 | fi | |
15379 | rm -f conftest* | |
15380 | ||
15381 | fi | |
15382 | ||
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 | |
15384 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
15385 | if test $bash_cv_getpw_declared = yes; then | |
15386 | $as_echo "@%:@define HAVE_GETPW_DECLS 1" >>confdefs.h | |
15387 | ||
15388 | fi | |
15389 | ||
15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unusable real-time signals due to large values" >&5 | |
15391 | $as_echo_n "checking for unusable real-time signals due to large values... " >&6; } | |
15392 | if ${bash_cv_unusable_rtsigs+:} false; then : | |
15393 | $as_echo_n "(cached) " >&6 | |
15394 | else | |
15395 | if test "$cross_compiling" = yes; then : | |
15396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5 | |
15397 | $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;} | |
15398 | bash_cv_unusable_rtsigs=yes | |
15399 | ||
15400 | else | |
15401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15402 | /* end confdefs.h. */ | |
15403 | ||
15404 | #include <sys/types.h> | |
15405 | #include <signal.h> | |
15406 | ||
15407 | #ifndef NSIG | |
15408 | # define NSIG 64 | |
15409 | #endif | |
15410 | ||
15411 | main () | |
15412 | { | |
15413 | int n_sigs = 2 * NSIG; | |
15414 | #ifdef SIGRTMIN | |
15415 | int rtmin = SIGRTMIN; | |
15416 | #else | |
15417 | int rtmin = 0; | |
15418 | #endif | |
15419 | ||
15420 | exit(rtmin < n_sigs); | |
15421 | } | |
15422 | _ACEOF | |
15423 | if ac_fn_c_try_run "$LINENO"; then : | |
15424 | bash_cv_unusable_rtsigs=yes | |
15425 | else | |
15426 | bash_cv_unusable_rtsigs=no | |
15427 | fi | |
15428 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15429 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15430 | fi | |
15431 | ||
15432 | fi | |
15433 | ||
15434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_unusable_rtsigs" >&5 | |
15435 | $as_echo "$bash_cv_unusable_rtsigs" >&6; } | |
15436 | if test $bash_cv_unusable_rtsigs = yes; then | |
15437 | $as_echo "@%:@define UNUSABLE_RT_SIGNALS 1" >>confdefs.h | |
15438 | ||
15439 | fi | |
15440 | ||
15441 | ||
15442 | ||
15443 | ||
15444 | ||
15445 | if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then | |
15446 | SIGLIST_O=siglist.o | |
15447 | else | |
15448 | SIGLIST_O= | |
15449 | fi | |
15450 | ||
15451 | ||
15452 | ||
15453 | case "$host_os" in | |
15454 | hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5 | |
15455 | $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; } | |
15456 | if ${bash_cv_kernel_rlimit+:} false; then : | |
15457 | $as_echo_n "(cached) " >&6 | |
15458 | else | |
15459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15460 | /* end confdefs.h. */ | |
15461 | ||
15462 | #include <sys/types.h> | |
15463 | #include <sys/resource.h> | |
15464 | ||
15465 | int | |
15466 | main () | |
15467 | { | |
15468 | ||
15469 | int f; | |
15470 | f = RLIMIT_DATA; | |
15471 | ||
15472 | ; | |
15473 | return 0; | |
15474 | } | |
15475 | _ACEOF | |
15476 | if ac_fn_c_try_compile "$LINENO"; then : | |
15477 | bash_cv_kernel_rlimit=no | |
15478 | else | |
15479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15480 | /* end confdefs.h. */ | |
15481 | ||
15482 | #include <sys/types.h> | |
15483 | #define _KERNEL | |
15484 | #include <sys/resource.h> | |
15485 | #undef _KERNEL | |
15486 | ||
15487 | int | |
15488 | main () | |
15489 | { | |
15490 | ||
15491 | int f; | |
15492 | f = RLIMIT_DATA; | |
15493 | ||
15494 | ; | |
15495 | return 0; | |
15496 | } | |
15497 | _ACEOF | |
15498 | if ac_fn_c_try_compile "$LINENO"; then : | |
15499 | bash_cv_kernel_rlimit=yes | |
15500 | else | |
15501 | bash_cv_kernel_rlimit=no | |
15502 | fi | |
15503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15504 | ||
15505 | fi | |
15506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15507 | fi | |
15508 | ||
15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5 | |
15510 | $as_echo "$bash_cv_kernel_rlimit" >&6; } | |
15511 | if test $bash_cv_kernel_rlimit = yes; then | |
15512 | $as_echo "@%:@define RLIMIT_NEEDS_KERNEL 1" >>confdefs.h | |
15513 | ||
15514 | fi | |
15515 | ;; | |
15516 | esac | |
15517 | ||
15518 | if test "$opt_readline" = yes; then | |
15519 | case "$host_os" in | |
15520 | aix*) prefer_curses=yes ;; | |
15521 | esac | |
15522 | ||
15523 | if test "X$bash_cv_termcap_lib" = "X"; then | |
15524 | _bash_needmsg=yes | |
15525 | else | |
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
15527 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
15528 | _bash_needmsg= | |
15529 | fi | |
15530 | if ${bash_cv_termcap_lib+:} false; then : | |
15531 | $as_echo_n "(cached) " >&6 | |
15532 | else | |
15533 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
15534 | if test "x$ac_cv_func_tgetent" = xyes; then : | |
15535 | bash_cv_termcap_lib=libc | |
15536 | else | |
15537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
15538 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
15539 | if ${ac_cv_lib_termcap_tgetent+:} false; then : | |
15540 | $as_echo_n "(cached) " >&6 | |
15541 | else | |
15542 | ac_check_lib_save_LIBS=$LIBS | |
15543 | LIBS="-ltermcap $LIBS" | |
15544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15545 | /* end confdefs.h. */ | |
15546 | ||
15547 | /* Override any GCC internal prototype to avoid an error. | |
15548 | Use char because int might match the return type of a GCC | |
15549 | builtin and then its argument prototype would still apply. */ | |
15550 | #ifdef __cplusplus | |
15551 | extern "C" | |
15552 | #endif | |
15553 | char tgetent (); | |
15554 | int | |
15555 | main () | |
15556 | { | |
15557 | return tgetent (); | |
15558 | ; | |
15559 | return 0; | |
15560 | } | |
15561 | _ACEOF | |
15562 | if ac_fn_c_try_link "$LINENO"; then : | |
15563 | ac_cv_lib_termcap_tgetent=yes | |
15564 | else | |
15565 | ac_cv_lib_termcap_tgetent=no | |
15566 | fi | |
15567 | rm -f core conftest.err conftest.$ac_objext \ | |
15568 | conftest$ac_exeext conftest.$ac_ext | |
15569 | LIBS=$ac_check_lib_save_LIBS | |
15570 | fi | |
15571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 | |
15572 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
15573 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : | |
15574 | bash_cv_termcap_lib=libtermcap | |
15575 | else | |
15576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 | |
15577 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
15578 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : | |
15579 | $as_echo_n "(cached) " >&6 | |
15580 | else | |
15581 | ac_check_lib_save_LIBS=$LIBS | |
15582 | LIBS="-ltinfo $LIBS" | |
15583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15584 | /* end confdefs.h. */ | |
15585 | ||
15586 | /* Override any GCC internal prototype to avoid an error. | |
15587 | Use char because int might match the return type of a GCC | |
15588 | builtin and then its argument prototype would still apply. */ | |
15589 | #ifdef __cplusplus | |
15590 | extern "C" | |
15591 | #endif | |
15592 | char tgetent (); | |
15593 | int | |
15594 | main () | |
15595 | { | |
15596 | return tgetent (); | |
15597 | ; | |
15598 | return 0; | |
15599 | } | |
15600 | _ACEOF | |
15601 | if ac_fn_c_try_link "$LINENO"; then : | |
15602 | ac_cv_lib_tinfo_tgetent=yes | |
15603 | else | |
15604 | ac_cv_lib_tinfo_tgetent=no | |
15605 | fi | |
15606 | rm -f core conftest.err conftest.$ac_objext \ | |
15607 | conftest$ac_exeext conftest.$ac_ext | |
15608 | LIBS=$ac_check_lib_save_LIBS | |
15609 | fi | |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 | |
15611 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
15612 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : | |
15613 | bash_cv_termcap_lib=libtinfo | |
15614 | else | |
15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 | |
15616 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
15617 | if ${ac_cv_lib_curses_tgetent+:} false; then : | |
15618 | $as_echo_n "(cached) " >&6 | |
15619 | else | |
15620 | ac_check_lib_save_LIBS=$LIBS | |
15621 | LIBS="-lcurses $LIBS" | |
15622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15623 | /* end confdefs.h. */ | |
15624 | ||
15625 | /* Override any GCC internal prototype to avoid an error. | |
15626 | Use char because int might match the return type of a GCC | |
15627 | builtin and then its argument prototype would still apply. */ | |
15628 | #ifdef __cplusplus | |
15629 | extern "C" | |
15630 | #endif | |
15631 | char tgetent (); | |
15632 | int | |
15633 | main () | |
15634 | { | |
15635 | return tgetent (); | |
15636 | ; | |
15637 | return 0; | |
15638 | } | |
15639 | _ACEOF | |
15640 | if ac_fn_c_try_link "$LINENO"; then : | |
15641 | ac_cv_lib_curses_tgetent=yes | |
15642 | else | |
15643 | ac_cv_lib_curses_tgetent=no | |
15644 | fi | |
15645 | rm -f core conftest.err conftest.$ac_objext \ | |
15646 | conftest$ac_exeext conftest.$ac_ext | |
15647 | LIBS=$ac_check_lib_save_LIBS | |
15648 | fi | |
15649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
15650 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
15651 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : | |
15652 | bash_cv_termcap_lib=libcurses | |
15653 | else | |
15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
15655 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
15656 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : | |
15657 | $as_echo_n "(cached) " >&6 | |
15658 | else | |
15659 | ac_check_lib_save_LIBS=$LIBS | |
15660 | LIBS="-lncurses $LIBS" | |
15661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15662 | /* end confdefs.h. */ | |
15663 | ||
15664 | /* Override any GCC internal prototype to avoid an error. | |
15665 | Use char because int might match the return type of a GCC | |
15666 | builtin and then its argument prototype would still apply. */ | |
15667 | #ifdef __cplusplus | |
15668 | extern "C" | |
15669 | #endif | |
15670 | char tgetent (); | |
15671 | int | |
15672 | main () | |
15673 | { | |
15674 | return tgetent (); | |
15675 | ; | |
15676 | return 0; | |
15677 | } | |
15678 | _ACEOF | |
15679 | if ac_fn_c_try_link "$LINENO"; then : | |
15680 | ac_cv_lib_ncurses_tgetent=yes | |
15681 | else | |
15682 | ac_cv_lib_ncurses_tgetent=no | |
15683 | fi | |
15684 | rm -f core conftest.err conftest.$ac_objext \ | |
15685 | conftest$ac_exeext conftest.$ac_ext | |
15686 | LIBS=$ac_check_lib_save_LIBS | |
15687 | fi | |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
15689 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
15690 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : | |
15691 | bash_cv_termcap_lib=libncurses | |
15692 | else | |
15693 | bash_cv_termcap_lib=gnutermcap | |
15694 | fi | |
15695 | ||
15696 | fi | |
15697 | ||
15698 | fi | |
15699 | ||
15700 | fi | |
15701 | ||
15702 | fi | |
15703 | ||
15704 | fi | |
15705 | ||
15706 | if test "X$_bash_needmsg" = "Xyes"; then | |
15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
15708 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
15709 | fi | |
15710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
15711 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
15712 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
15713 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
15714 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
15715 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
15716 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
15717 | TERMCAP_LIB=-ltermcap | |
15718 | TERMCAP_DEP= | |
15719 | elif test $bash_cv_termcap_lib = libtinfo; then | |
15720 | TERMCAP_LIB=-ltinfo | |
15721 | TERMCAP_DEP= | |
15722 | elif test $bash_cv_termcap_lib = libncurses; then | |
15723 | TERMCAP_LIB=-lncurses | |
15724 | TERMCAP_DEP= | |
15725 | elif test $bash_cv_termcap_lib = libc; then | |
15726 | TERMCAP_LIB= | |
15727 | TERMCAP_DEP= | |
15728 | else | |
15729 | TERMCAP_LIB=-lcurses | |
15730 | TERMCAP_DEP= | |
15731 | fi | |
15732 | ||
15733 | fi | |
15734 | ||
15735 | ||
15736 | ||
15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/fd is available" >&5 | |
15738 | $as_echo_n "checking whether /dev/fd is available... " >&6; } | |
15739 | if ${bash_cv_dev_fd+:} false; then : | |
15740 | $as_echo_n "(cached) " >&6 | |
15741 | else | |
15742 | bash_cv_dev_fd="" | |
15743 | if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then | |
15744 | # check for systems like FreeBSD 5 that only provide /dev/fd/[012] | |
15745 | if (exec test -r /dev/fd/3 3</dev/null) ; then | |
15746 | bash_cv_dev_fd=standard | |
15747 | else | |
15748 | bash_cv_dev_fd=absent | |
15749 | fi | |
15750 | fi | |
15751 | if test -z "$bash_cv_dev_fd" ; then | |
15752 | if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then | |
15753 | bash_cv_dev_fd=whacky | |
15754 | else | |
15755 | bash_cv_dev_fd=absent | |
15756 | fi | |
15757 | fi | |
15758 | ||
15759 | fi | |
15760 | ||
15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_fd" >&5 | |
15762 | $as_echo "$bash_cv_dev_fd" >&6; } | |
15763 | if test $bash_cv_dev_fd = "standard"; then | |
15764 | $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h | |
15765 | ||
15766 | $as_echo "@%:@define DEV_FD_PREFIX \"/dev/fd/\"" >>confdefs.h | |
15767 | ||
15768 | elif test $bash_cv_dev_fd = "whacky"; then | |
15769 | $as_echo "@%:@define HAVE_DEV_FD 1" >>confdefs.h | |
15770 | ||
15771 | $as_echo "@%:@define DEV_FD_PREFIX \"/proc/self/fd/\"" >>confdefs.h | |
15772 | ||
15773 | fi | |
15774 | ||
15775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/stdin stdout stderr are available" >&5 | |
15776 | $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; } | |
15777 | if ${bash_cv_dev_stdin+:} false; then : | |
15778 | $as_echo_n "(cached) " >&6 | |
15779 | else | |
15780 | if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then | |
15781 | bash_cv_dev_stdin=present | |
15782 | elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then | |
15783 | bash_cv_dev_stdin=present | |
15784 | else | |
15785 | bash_cv_dev_stdin=absent | |
15786 | fi | |
15787 | ||
15788 | fi | |
15789 | ||
15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dev_stdin" >&5 | |
15791 | $as_echo "$bash_cv_dev_stdin" >&6; } | |
15792 | if test $bash_cv_dev_stdin = "present"; then | |
15793 | $as_echo "@%:@define HAVE_DEV_STDIN 1" >>confdefs.h | |
15794 | ||
15795 | fi | |
15796 | ||
15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default mail directory" >&5 | |
15798 | $as_echo_n "checking for default mail directory... " >&6; } | |
15799 | if ${bash_cv_mail_dir+:} false; then : | |
15800 | $as_echo_n "(cached) " >&6 | |
15801 | else | |
15802 | if test -d /var/mail; then | |
15803 | bash_cv_mail_dir=/var/mail | |
15804 | elif test -d /var/spool/mail; then | |
15805 | bash_cv_mail_dir=/var/spool/mail | |
15806 | elif test -d /usr/mail; then | |
15807 | bash_cv_mail_dir=/usr/mail | |
15808 | elif test -d /usr/spool/mail; then | |
15809 | bash_cv_mail_dir=/usr/spool/mail | |
15810 | else | |
15811 | bash_cv_mail_dir=unknown | |
15812 | fi | |
15813 | ||
15814 | fi | |
15815 | ||
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_mail_dir" >&5 | |
15817 | $as_echo "$bash_cv_mail_dir" >&6; } | |
15818 | cat >>confdefs.h <<_ACEOF | |
15819 | @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir" | |
15820 | _ACEOF | |
15821 | ||
15822 | ||
15823 | ||
15824 | if test "$bash_cv_job_control_missing" = missing; then | |
15825 | opt_job_control=no | |
15826 | fi | |
15827 | ||
15828 | if test "$opt_job_control" = yes; then | |
15829 | $as_echo "@%:@define JOB_CONTROL 1" >>confdefs.h | |
15830 | ||
15831 | JOBS_O=jobs.o | |
15832 | else | |
15833 | JOBS_O=nojobs.o | |
15834 | fi | |
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | LOCAL_DEFS=-DSHELL | |
15840 | ||
15841 | ||
15842 | case "${host_os}" in | |
15843 | sysv4.2*) $as_echo "@%:@define SVR4_2 1" >>confdefs.h | |
15844 | ||
15845 | $as_echo "@%:@define SVR4 1" >>confdefs.h | |
15846 | ;; | |
15847 | sysv4*) $as_echo "@%:@define SVR4 1" >>confdefs.h | |
15848 | ;; | |
15849 | sysv5*) $as_echo "@%:@define SVR5 1" >>confdefs.h | |
15850 | ;; | |
15851 | hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;; | |
15852 | hpux*) LOCAL_CFLAGS=-DHPUX ;; | |
15853 | dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;; | |
15854 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
15855 | rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;; | |
15856 | darwin*) LOCAL_CFLAGS=-DMACOSX ;; | |
15857 | sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;; | |
15858 | sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;; | |
15859 | sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;; | |
15860 | sunos4*) LOCAL_CFLAGS=-DSunOS4 ;; | |
15861 | solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;; | |
15862 | solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;; | |
15863 | solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;; | |
15864 | solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;; | |
15865 | solaris2*) LOCAL_CFLAGS=-DSOLARIS ;; | |
15866 | lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; | |
15867 | linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading | |
15868 | case "`uname -r`" in | |
15869 | 2.[456789]*|3*) $as_echo "@%:@define PGRP_PIPE 1" >>confdefs.h | |
15870 | ;; | |
15871 | esac ;; | |
15872 | *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;; | |
15873 | *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;; | |
15874 | powerux*) LOCAL_LIBS="-lgen" ;; | |
15875 | cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;; | |
15876 | opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE -DRECYCLES_PIDS" ;; | |
10e78433 | 15877 | *openstep*) LOCAL_CFLAGS="-D__APPLE_CC__" ;; |
208fdb50 CR |
15878 | esac |
15879 | ||
15880 | case "${host_os}-${CC}" in | |
15881 | aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;; | |
15882 | aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;; | |
15883 | bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux | |
15884 | esac | |
15885 | ||
15886 | case "${host_os}" in | |
15887 | freebsd[3-9]*) | |
15888 | if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then | |
15889 | LOCAL_LDFLAGS=-rdynamic # allow dynamic loading | |
15890 | fi ;; | |
15891 | freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading | |
15892 | dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading | |
15893 | esac | |
15894 | ||
15895 | case "$host_cpu" in | |
15896 | *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it | |
15897 | esac | |
15898 | ||
15899 | case "$host_cpu-$host_os" in | |
15900 | ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;; | |
15901 | esac | |
15902 | ||
15903 | case "$host_cpu-$host_vendor-$host_os" in | |
15904 | m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;; | |
15905 | mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;; | |
15906 | esac | |
15907 | ||
15908 | # | |
15909 | # Shared object configuration section. These values are generated by | |
15910 | # ${srcdir}/support/shobj-conf | |
15911 | # | |
15912 | if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf | |
15913 | then | |
15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5 | |
15915 | $as_echo_n "checking shared object configuration for loadable builtins... " >&6; } | |
15916 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"` | |
15917 | ||
15918 | ||
15919 | ||
15920 | ||
15921 | ||
15922 | ||
15923 | ||
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5 | |
15925 | $as_echo "$SHOBJ_STATUS" >&6; } | |
15926 | fi | |
15927 | ||
15928 | # try to create a directory tree if the source is elsewhere | |
15929 | # this should be packaged into a script accessible via ${srcdir}/support | |
15930 | case "$srcdir" in | |
15931 | .) ;; | |
15932 | *) for d in doc tests support lib examples; do # dirs | |
15933 | test -d $d || mkdir $d | |
15934 | done | |
15935 | for ld in readline glob tilde malloc sh termcap; do # libdirs | |
15936 | test -d lib/$ld || mkdir lib/$ld | |
15937 | done | |
15938 | test -d examples/loadables || mkdir examples/loadables # loadable builtins | |
15939 | test -d examples/loadables/perl || mkdir examples/loadables/perl | |
15940 | ;; | |
15941 | esac | |
15942 | ||
15943 | BUILD_DIR=`pwd` | |
15944 | case "$BUILD_DIR" in | |
15945 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
15946 | *) ;; | |
15947 | esac | |
15948 | ||
15949 | if test -z "$localedir"; then | |
15950 | localedir='${datarootdir}/locale' | |
15951 | fi | |
15952 | if test -z "$datarootdir"; then | |
15953 | datarootdir='${prefix}/share' | |
15954 | fi | |
15955 | ||
15956 | ||
15957 | ||
15958 | ||
15959 | ||
15960 | ||
15961 | # Some versions of autoconf don't substitute these automatically | |
15962 | ||
15963 | ||
15964 | ||
15965 | ||
15966 | ||
15967 | ||
15968 | ||
15969 | ||
15970 | ||
15971 | ||
15972 | ||
15973 | ||
15974 | ||
15975 | ||
15976 | ||
15977 | ||
15978 | ||
15979 | ||
15980 | ||
15981 | ||
15982 | ||
15983 | #AC_SUBST(ALLOCA_SOURCE) | |
15984 | #AC_SUBST(ALLOCA_OBJECT) | |
15985 | ||
15986 | ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile" | |
15987 | ||
15988 | ac_config_commands="$ac_config_commands default" | |
15989 | ||
15990 | cat >confcache <<\_ACEOF | |
15991 | # This file is a shell script that caches the results of configure | |
15992 | # tests run on this system so they can be shared between configure | |
15993 | # scripts and configure runs, see configure's option --config-cache. | |
15994 | # It is not useful on other systems. If it contains results you don't | |
15995 | # want to keep, you may remove or edit it. | |
15996 | # | |
15997 | # config.status only pays attention to the cache file if you give it | |
15998 | # the --recheck option to rerun configure. | |
15999 | # | |
16000 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16001 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16002 | # following values. | |
16003 | ||
16004 | _ACEOF | |
16005 | ||
16006 | # The following way of writing the cache mishandles newlines in values, | |
16007 | # but we know of no workaround that is simple, portable, and efficient. | |
16008 | # So, we kill variables containing newlines. | |
16009 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16010 | # and sets the high bit in the cache file unless we assign to the vars. | |
16011 | ( | |
16012 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16013 | eval ac_val=\$$ac_var | |
16014 | case $ac_val in #( | |
16015 | *${as_nl}*) | |
16016 | case $ac_var in #( | |
16017 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16018 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16019 | esac | |
16020 | case $ac_var in #( | |
16021 | _ | IFS | as_nl) ;; #( | |
16022 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16023 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16024 | esac ;; | |
16025 | esac | |
16026 | done | |
16027 | ||
16028 | (set) 2>&1 | | |
16029 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16030 | *${as_nl}ac_space=\ *) | |
16031 | # `set' does not quote correctly, so add quotes: double-quote | |
16032 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16033 | sed -n \ | |
16034 | "s/'/'\\\\''/g; | |
16035 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16036 | ;; #( | |
16037 | *) | |
16038 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16039 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16040 | ;; | |
16041 | esac | | |
16042 | sort | |
16043 | ) | | |
16044 | sed ' | |
16045 | /^ac_cv_env_/b end | |
16046 | t clear | |
16047 | :clear | |
16048 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16049 | t end | |
16050 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16051 | :end' >>confcache | |
16052 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16053 | if test -w "$cache_file"; then | |
16054 | if test "x$cache_file" != "x/dev/null"; then | |
16055 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16056 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16057 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
16058 | cat confcache >"$cache_file" | |
16059 | else | |
16060 | case $cache_file in #( | |
16061 | */* | ?:*) | |
16062 | mv -f confcache "$cache_file"$$ && | |
16063 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16064 | *) | |
16065 | mv -f confcache "$cache_file" ;; | |
16066 | esac | |
16067 | fi | |
16068 | fi | |
16069 | else | |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16071 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16072 | fi | |
16073 | fi | |
16074 | rm -f confcache | |
16075 | ||
16076 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16077 | # Let make expand exec_prefix. | |
16078 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16079 | ||
16080 | DEFS=-DHAVE_CONFIG_H | |
16081 | ||
16082 | ac_libobjs= | |
16083 | ac_ltlibobjs= | |
16084 | U= | |
16085 | for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue | |
16086 | # 1. Remove the extension, and $U if already installed. | |
16087 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16088 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16089 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16090 | # will be set to the directory where LIBOBJS objects are built. | |
16091 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16092 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16093 | done | |
16094 | LIB@&t@OBJS=$ac_libobjs | |
16095 | ||
16096 | LTLIBOBJS=$ac_ltlibobjs | |
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | : "${CONFIG_STATUS=./config.status}" | |
16102 | ac_write_fail=0 | |
16103 | ac_clean_files_save=$ac_clean_files | |
16104 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16106 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16107 | as_write_fail=0 | |
16108 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16109 | #! $SHELL | |
16110 | # Generated by $as_me. | |
16111 | # Run this file to recreate the current configuration. | |
16112 | # Compiler output produced by configure, useful for debugging | |
16113 | # configure, is in config.log if it exists. | |
16114 | ||
16115 | debug=false | |
16116 | ac_cs_recheck=false | |
16117 | ac_cs_silent=false | |
16118 | ||
16119 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16120 | export SHELL | |
16121 | _ASEOF | |
16122 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16123 | ## -------------------- ## | |
16124 | ## M4sh Initialization. ## | |
16125 | ## -------------------- ## | |
16126 | ||
16127 | # Be more Bourne compatible | |
16128 | DUALCASE=1; export DUALCASE # for MKS sh | |
16129 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16130 | emulate sh | |
16131 | NULLCMD=: | |
16132 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16133 | # is contrary to our usage. Disable this feature. | |
16134 | alias -g '${1+"$@"}'='"$@"' | |
16135 | setopt NO_GLOB_SUBST | |
16136 | else | |
16137 | case `(set -o) 2>/dev/null` in @%:@( | |
16138 | *posix*) : | |
16139 | set -o posix ;; @%:@( | |
16140 | *) : | |
16141 | ;; | |
16142 | esac | |
16143 | fi | |
16144 | ||
16145 | ||
16146 | as_nl=' | |
16147 | ' | |
16148 | export as_nl | |
16149 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16150 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16151 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16152 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16153 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16154 | # but without wasting forks for bash or zsh. | |
16155 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16156 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16157 | as_echo='print -r --' | |
16158 | as_echo_n='print -rn --' | |
16159 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16160 | as_echo='printf %s\n' | |
16161 | as_echo_n='printf %s' | |
16162 | else | |
16163 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16164 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16165 | as_echo_n='/usr/ucb/echo -n' | |
16166 | else | |
16167 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16168 | as_echo_n_body='eval | |
16169 | arg=$1; | |
16170 | case $arg in @%:@( | |
16171 | *"$as_nl"*) | |
16172 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16173 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16174 | esac; | |
16175 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16176 | ' | |
16177 | export as_echo_n_body | |
16178 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16179 | fi | |
16180 | export as_echo_body | |
16181 | as_echo='sh -c $as_echo_body as_echo' | |
16182 | fi | |
16183 | ||
16184 | # The user is always right. | |
16185 | if test "${PATH_SEPARATOR+set}" != set; then | |
16186 | PATH_SEPARATOR=: | |
16187 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16188 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16189 | PATH_SEPARATOR=';' | |
16190 | } | |
16191 | fi | |
16192 | ||
16193 | ||
16194 | # IFS | |
16195 | # We need space, tab and new line, in precisely that order. Quoting is | |
16196 | # there to prevent editors from complaining about space-tab. | |
16197 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16198 | # splitting by setting IFS to empty value.) | |
16199 | IFS=" "" $as_nl" | |
16200 | ||
16201 | # Find who we are. Look in the path if we contain no directory separator. | |
16202 | as_myself= | |
16203 | case $0 in @%:@(( | |
16204 | *[\\/]* ) as_myself=$0 ;; | |
16205 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16206 | for as_dir in $PATH | |
16207 | do | |
16208 | IFS=$as_save_IFS | |
16209 | test -z "$as_dir" && as_dir=. | |
16210 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16211 | done | |
16212 | IFS=$as_save_IFS | |
16213 | ||
16214 | ;; | |
16215 | esac | |
16216 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16217 | # in which case we are not to be found in the path. | |
16218 | if test "x$as_myself" = x; then | |
16219 | as_myself=$0 | |
16220 | fi | |
16221 | if test ! -f "$as_myself"; then | |
16222 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16223 | exit 1 | |
16224 | fi | |
16225 | ||
16226 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16227 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16228 | # suppresses any "Segmentation fault" message there. '((' could | |
16229 | # trigger a bug in pdksh 5.2.14. | |
16230 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16231 | do eval test x\${$as_var+set} = xset \ | |
16232 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16233 | done | |
16234 | PS1='$ ' | |
16235 | PS2='> ' | |
16236 | PS4='+ ' | |
16237 | ||
16238 | # NLS nuisances. | |
16239 | LC_ALL=C | |
16240 | export LC_ALL | |
16241 | LANGUAGE=C | |
16242 | export LANGUAGE | |
16243 | ||
16244 | # CDPATH. | |
16245 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16246 | ||
16247 | ||
16248 | @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] | |
16249 | @%:@ ---------------------------------------- | |
16250 | @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16251 | @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16252 | @%:@ script with STATUS, using 1 if that was 0. | |
16253 | as_fn_error () | |
16254 | { | |
16255 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
16256 | if test "$4"; then | |
16257 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16258 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
16259 | fi | |
16260 | $as_echo "$as_me: error: $2" >&2 | |
16261 | as_fn_exit $as_status | |
16262 | } @%:@ as_fn_error | |
16263 | ||
16264 | ||
16265 | @%:@ as_fn_set_status STATUS | |
16266 | @%:@ ----------------------- | |
16267 | @%:@ Set @S|@? to STATUS, without forking. | |
16268 | as_fn_set_status () | |
16269 | { | |
16270 | return $1 | |
16271 | } @%:@ as_fn_set_status | |
16272 | ||
16273 | @%:@ as_fn_exit STATUS | |
16274 | @%:@ ----------------- | |
16275 | @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16276 | as_fn_exit () | |
16277 | { | |
16278 | set +e | |
16279 | as_fn_set_status $1 | |
16280 | exit $1 | |
16281 | } @%:@ as_fn_exit | |
16282 | ||
16283 | @%:@ as_fn_unset VAR | |
16284 | @%:@ --------------- | |
16285 | @%:@ Portably unset VAR. | |
16286 | as_fn_unset () | |
16287 | { | |
16288 | { eval $1=; unset $1;} | |
16289 | } | |
16290 | as_unset=as_fn_unset | |
16291 | @%:@ as_fn_append VAR VALUE | |
16292 | @%:@ ---------------------- | |
16293 | @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take | |
16294 | @%:@ advantage of any shell optimizations that allow amortized linear growth over | |
16295 | @%:@ repeated appends, instead of the typical quadratic growth present in naive | |
16296 | @%:@ implementations. | |
16297 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16298 | eval 'as_fn_append () | |
16299 | { | |
16300 | eval $1+=\$2 | |
16301 | }' | |
16302 | else | |
16303 | as_fn_append () | |
16304 | { | |
16305 | eval $1=\$$1\$2 | |
16306 | } | |
16307 | fi # as_fn_append | |
16308 | ||
16309 | @%:@ as_fn_arith ARG... | |
16310 | @%:@ ------------------ | |
16311 | @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the | |
16312 | @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments | |
16313 | @%:@ must be portable across @S|@(()) and expr. | |
16314 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16315 | eval 'as_fn_arith () | |
16316 | { | |
16317 | as_val=$(( $* )) | |
16318 | }' | |
16319 | else | |
16320 | as_fn_arith () | |
16321 | { | |
16322 | as_val=`expr "$@" || test $? -eq 1` | |
16323 | } | |
16324 | fi # as_fn_arith | |
16325 | ||
16326 | ||
16327 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16328 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16329 | as_expr=expr | |
16330 | else | |
16331 | as_expr=false | |
16332 | fi | |
16333 | ||
16334 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16335 | as_basename=basename | |
16336 | else | |
16337 | as_basename=false | |
16338 | fi | |
16339 | ||
16340 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16341 | as_dirname=dirname | |
16342 | else | |
16343 | as_dirname=false | |
16344 | fi | |
16345 | ||
16346 | as_me=`$as_basename -- "$0" || | |
16347 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16348 | X"$0" : 'X\(//\)$' \| \ | |
16349 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16350 | $as_echo X/"$0" | | |
16351 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16352 | s//\1/ | |
16353 | q | |
16354 | } | |
16355 | /^X\/\(\/\/\)$/{ | |
16356 | s//\1/ | |
16357 | q | |
16358 | } | |
16359 | /^X\/\(\/\).*/{ | |
16360 | s//\1/ | |
16361 | q | |
16362 | } | |
16363 | s/.*/./; q'` | |
16364 | ||
16365 | # Avoid depending upon Character Ranges. | |
16366 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16367 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16368 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16369 | as_cr_digits='0123456789' | |
16370 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16371 | ||
16372 | ECHO_C= ECHO_N= ECHO_T= | |
16373 | case `echo -n x` in @%:@((((( | |
16374 | -n*) | |
16375 | case `echo 'xy\c'` in | |
16376 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16377 | xy) ECHO_C='\c';; | |
16378 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16379 | ECHO_T=' ';; | |
16380 | esac;; | |
16381 | *) | |
16382 | ECHO_N='-n';; | |
16383 | esac | |
16384 | ||
16385 | rm -f conf$$ conf$$.exe conf$$.file | |
16386 | if test -d conf$$.dir; then | |
16387 | rm -f conf$$.dir/conf$$.file | |
16388 | else | |
16389 | rm -f conf$$.dir | |
16390 | mkdir conf$$.dir 2>/dev/null | |
16391 | fi | |
16392 | if (echo >conf$$.file) 2>/dev/null; then | |
16393 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16394 | as_ln_s='ln -s' | |
16395 | # ... but there are two gotchas: | |
16396 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16397 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16398 | # In both cases, we have to default to `cp -p'. | |
16399 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16400 | as_ln_s='cp -p' | |
16401 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16402 | as_ln_s=ln | |
16403 | else | |
16404 | as_ln_s='cp -p' | |
16405 | fi | |
16406 | else | |
16407 | as_ln_s='cp -p' | |
16408 | fi | |
16409 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16410 | rmdir conf$$.dir 2>/dev/null | |
16411 | ||
16412 | ||
16413 | @%:@ as_fn_mkdir_p | |
16414 | @%:@ ------------- | |
16415 | @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. | |
16416 | as_fn_mkdir_p () | |
16417 | { | |
16418 | ||
16419 | case $as_dir in #( | |
16420 | -*) as_dir=./$as_dir;; | |
16421 | esac | |
16422 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16423 | as_dirs= | |
16424 | while :; do | |
16425 | case $as_dir in #( | |
16426 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16427 | *) as_qdir=$as_dir;; | |
16428 | esac | |
16429 | as_dirs="'$as_qdir' $as_dirs" | |
16430 | as_dir=`$as_dirname -- "$as_dir" || | |
16431 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16432 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16433 | X"$as_dir" : 'X\(//\)$' \| \ | |
16434 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16435 | $as_echo X"$as_dir" | | |
16436 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16437 | s//\1/ | |
16438 | q | |
16439 | } | |
16440 | /^X\(\/\/\)[^/].*/{ | |
16441 | s//\1/ | |
16442 | q | |
16443 | } | |
16444 | /^X\(\/\/\)$/{ | |
16445 | s//\1/ | |
16446 | q | |
16447 | } | |
16448 | /^X\(\/\).*/{ | |
16449 | s//\1/ | |
16450 | q | |
16451 | } | |
16452 | s/.*/./; q'` | |
16453 | test -d "$as_dir" && break | |
16454 | done | |
16455 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16456 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
16457 | ||
16458 | ||
16459 | } @%:@ as_fn_mkdir_p | |
16460 | if mkdir -p . 2>/dev/null; then | |
16461 | as_mkdir_p='mkdir -p "$as_dir"' | |
16462 | else | |
16463 | test -d ./-p && rmdir ./-p | |
16464 | as_mkdir_p=false | |
16465 | fi | |
16466 | ||
16467 | if test -x / >/dev/null 2>&1; then | |
16468 | as_test_x='test -x' | |
16469 | else | |
16470 | if ls -dL / >/dev/null 2>&1; then | |
16471 | as_ls_L_option=L | |
16472 | else | |
16473 | as_ls_L_option= | |
16474 | fi | |
16475 | as_test_x=' | |
16476 | eval sh -c '\'' | |
16477 | if test -d "$1"; then | |
16478 | test -d "$1/."; | |
16479 | else | |
16480 | case $1 in @%:@( | |
16481 | -*)set "./$1";; | |
16482 | esac; | |
16483 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( | |
16484 | ???[sx]*):;;*)false;;esac;fi | |
16485 | '\'' sh | |
16486 | ' | |
16487 | fi | |
16488 | as_executable_p=$as_test_x | |
16489 | ||
16490 | # Sed expression to map a string onto a valid CPP name. | |
16491 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16492 | ||
16493 | # Sed expression to map a string onto a valid variable name. | |
16494 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16495 | ||
16496 | ||
16497 | exec 6>&1 | |
16498 | ## ----------------------------------- ## | |
16499 | ## Main body of $CONFIG_STATUS script. ## | |
16500 | ## ----------------------------------- ## | |
16501 | _ASEOF | |
16502 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16503 | ||
16504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16505 | # Save the log message, to keep $0 and so on meaningful, and to | |
16506 | # report actual input values of CONFIG_FILES etc. instead of their | |
16507 | # values after options handling. | |
16508 | ac_log=" | |
16509 | This file was extended by bash $as_me 4.3-alpha, which was | |
16510 | generated by GNU Autoconf 2.68. Invocation command line was | |
16511 | ||
16512 | CONFIG_FILES = $CONFIG_FILES | |
16513 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16514 | CONFIG_LINKS = $CONFIG_LINKS | |
16515 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16516 | $ $0 $@ | |
16517 | ||
16518 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16519 | " | |
16520 | ||
16521 | _ACEOF | |
16522 | ||
16523 | case $ac_config_files in *" | |
16524 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16525 | esac | |
16526 | ||
16527 | case $ac_config_headers in *" | |
16528 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16529 | esac | |
16530 | ||
16531 | ||
16532 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16533 | # Files that config.status was made for. | |
16534 | config_files="$ac_config_files" | |
16535 | config_headers="$ac_config_headers" | |
16536 | config_commands="$ac_config_commands" | |
16537 | ||
16538 | _ACEOF | |
16539 | ||
16540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16541 | ac_cs_usage="\ | |
16542 | \`$as_me' instantiates files and other configuration actions | |
16543 | from templates according to the current configuration. Unless the files | |
16544 | and actions are specified as TAGs, all are instantiated by default. | |
16545 | ||
16546 | Usage: $0 [OPTION]... [TAG]... | |
16547 | ||
16548 | -h, --help print this help, then exit | |
16549 | -V, --version print version number and configuration settings, then exit | |
16550 | --config print configuration, then exit | |
16551 | -q, --quiet, --silent | |
16552 | do not print progress messages | |
16553 | -d, --debug don't remove temporary files | |
16554 | --recheck update $as_me by reconfiguring in the same conditions | |
16555 | --file=FILE[:TEMPLATE] | |
16556 | instantiate the configuration file FILE | |
16557 | --header=FILE[:TEMPLATE] | |
16558 | instantiate the configuration header FILE | |
16559 | ||
16560 | Configuration files: | |
16561 | $config_files | |
16562 | ||
16563 | Configuration headers: | |
16564 | $config_headers | |
16565 | ||
16566 | Configuration commands: | |
16567 | $config_commands | |
16568 | ||
16569 | Report bugs to <bug-bash@gnu.org>." | |
16570 | ||
16571 | _ACEOF | |
16572 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16573 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
16574 | ac_cs_version="\\ | |
16575 | bash config.status 4.3-alpha | |
16576 | configured by $0, generated by GNU Autoconf 2.68, | |
16577 | with options \\"\$ac_cs_config\\" | |
16578 | ||
16579 | Copyright (C) 2010 Free Software Foundation, Inc. | |
16580 | This config.status script is free software; the Free Software Foundation | |
16581 | gives unlimited permission to copy, distribute and modify it." | |
16582 | ||
16583 | ac_pwd='$ac_pwd' | |
16584 | srcdir='$srcdir' | |
16585 | INSTALL='$INSTALL' | |
16586 | test -n "\$AWK" || AWK=awk | |
16587 | _ACEOF | |
16588 | ||
16589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16590 | # The default lists apply if the user does not specify any file. | |
16591 | ac_need_defaults=: | |
16592 | while test $# != 0 | |
16593 | do | |
16594 | case $1 in | |
16595 | --*=?*) | |
16596 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16597 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16598 | ac_shift=: | |
16599 | ;; | |
16600 | --*=) | |
16601 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16602 | ac_optarg= | |
16603 | ac_shift=: | |
16604 | ;; | |
16605 | *) | |
16606 | ac_option=$1 | |
16607 | ac_optarg=$2 | |
16608 | ac_shift=shift | |
16609 | ;; | |
16610 | esac | |
16611 | ||
16612 | case $ac_option in | |
16613 | # Handling of the options. | |
16614 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16615 | ac_cs_recheck=: ;; | |
16616 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16617 | $as_echo "$ac_cs_version"; exit ;; | |
16618 | --config | --confi | --conf | --con | --co | --c ) | |
16619 | $as_echo "$ac_cs_config"; exit ;; | |
16620 | --debug | --debu | --deb | --de | --d | -d ) | |
16621 | debug=: ;; | |
16622 | --file | --fil | --fi | --f ) | |
16623 | $ac_shift | |
16624 | case $ac_optarg in | |
16625 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16626 | '') as_fn_error $? "missing file argument" ;; | |
16627 | esac | |
16628 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16629 | ac_need_defaults=false;; | |
16630 | --header | --heade | --head | --hea ) | |
16631 | $ac_shift | |
16632 | case $ac_optarg in | |
16633 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16634 | esac | |
16635 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16636 | ac_need_defaults=false;; | |
16637 | --he | --h) | |
16638 | # Conflict between --help and --header | |
16639 | as_fn_error $? "ambiguous option: \`$1' | |
16640 | Try \`$0 --help' for more information.";; | |
16641 | --help | --hel | -h ) | |
16642 | $as_echo "$ac_cs_usage"; exit ;; | |
16643 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16644 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16645 | ac_cs_silent=: ;; | |
16646 | ||
16647 | # This is an error. | |
16648 | -*) as_fn_error $? "unrecognized option: \`$1' | |
16649 | Try \`$0 --help' for more information." ;; | |
16650 | ||
16651 | *) as_fn_append ac_config_targets " $1" | |
16652 | ac_need_defaults=false ;; | |
16653 | ||
16654 | esac | |
16655 | shift | |
16656 | done | |
16657 | ||
16658 | ac_configure_extra_args= | |
16659 | ||
16660 | if $ac_cs_silent; then | |
16661 | exec 6>/dev/null | |
16662 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16663 | fi | |
16664 | ||
16665 | _ACEOF | |
16666 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16667 | if \$ac_cs_recheck; then | |
16668 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16669 | shift | |
16670 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16671 | CONFIG_SHELL='$SHELL' | |
16672 | export CONFIG_SHELL | |
16673 | exec "\$@" | |
16674 | fi | |
16675 | ||
16676 | _ACEOF | |
16677 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16678 | exec 5>>config.log | |
16679 | { | |
16680 | echo | |
16681 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX | |
16682 | @%:@@%:@ Running $as_me. @%:@@%:@ | |
16683 | _ASBOX | |
16684 | $as_echo "$ac_log" | |
16685 | } >&5 | |
16686 | ||
16687 | _ACEOF | |
16688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16689 | # | |
16690 | # INIT-COMMANDS | |
16691 | # | |
16692 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | |
16693 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
16694 | # from automake. | |
16695 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
16696 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
16697 | LINGUAS="${LINGUAS-%UNSET%}" | |
16698 | ||
16699 | ||
16700 | _ACEOF | |
16701 | ||
16702 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16703 | ||
16704 | # Handling of arguments. | |
16705 | for ac_config_target in $ac_config_targets | |
16706 | do | |
16707 | case $ac_config_target in | |
16708 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
16709 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
16710 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16711 | "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;; | |
16712 | "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;; | |
16713 | "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;; | |
16714 | "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;; | |
16715 | "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;; | |
16716 | "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;; | |
16717 | "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;; | |
16718 | "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;; | |
16719 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
16720 | "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
16721 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
16722 | "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;; | |
16723 | "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;; | |
16724 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
16725 | ||
16726 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
16727 | esac | |
16728 | done | |
16729 | ||
16730 | ||
16731 | # If the user did not use the arguments to specify the items to instantiate, | |
16732 | # then the envvar interface is used. Set only those that are not. | |
16733 | # We use the long form for the default assignment because of an extremely | |
16734 | # bizarre bug on SunOS 4.1.3. | |
16735 | if $ac_need_defaults; then | |
16736 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16737 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16738 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16739 | fi | |
16740 | ||
16741 | # Have a temporary directory for convenience. Make it in the build tree | |
16742 | # simply because there is no reason against having it here, and in addition, | |
16743 | # creating and moving files from /tmp can sometimes cause problems. | |
16744 | # Hook for its removal unless debugging. | |
16745 | # Note that there is a small window in which the directory will not be cleaned: | |
16746 | # after its creation but before its name has been assigned to `$tmp'. | |
16747 | $debug || | |
16748 | { | |
16749 | tmp= ac_tmp= | |
16750 | trap 'exit_status=$? | |
16751 | : "${ac_tmp:=$tmp}" | |
16752 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
16753 | ' 0 | |
16754 | trap 'as_fn_exit 1' 1 2 13 15 | |
16755 | } | |
16756 | # Create a (secure) tmp directory for tmp files. | |
16757 | ||
16758 | { | |
16759 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
16760 | test -d "$tmp" | |
16761 | } || | |
16762 | { | |
16763 | tmp=./conf$$-$RANDOM | |
16764 | (umask 077 && mkdir "$tmp") | |
16765 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
16766 | ac_tmp=$tmp | |
16767 | ||
16768 | # Set up the scripts for CONFIG_FILES section. | |
16769 | # No need to generate them if there are no CONFIG_FILES. | |
16770 | # This happens for instance with `./config.status config.h'. | |
16771 | if test -n "$CONFIG_FILES"; then | |
16772 | ||
16773 | ||
16774 | ac_cr=`echo X | tr X '\015'` | |
16775 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16776 | # But we know of no other shell where ac_cr would be empty at this | |
16777 | # point, so we can use a bashism as a fallback. | |
16778 | if test "x$ac_cr" = x; then | |
16779 | eval ac_cr=\$\'\\r\' | |
16780 | fi | |
16781 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16782 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16783 | ac_cs_awk_cr='\\r' | |
16784 | else | |
16785 | ac_cs_awk_cr=$ac_cr | |
16786 | fi | |
16787 | ||
16788 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
16789 | _ACEOF | |
16790 | ||
16791 | ||
16792 | { | |
16793 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16794 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16795 | echo "_ACEOF" | |
16796 | } >conf$$subs.sh || | |
16797 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16798 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
16799 | ac_delim='%!_!# ' | |
16800 | for ac_last_try in false false false false false :; do | |
16801 | . ./conf$$subs.sh || | |
16802 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16803 | ||
16804 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16805 | if test $ac_delim_n = $ac_delim_num; then | |
16806 | break | |
16807 | elif $ac_last_try; then | |
16808 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16809 | else | |
16810 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16811 | fi | |
16812 | done | |
16813 | rm -f conf$$subs.sh | |
16814 | ||
16815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16816 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
16817 | _ACEOF | |
16818 | sed -n ' | |
16819 | h | |
16820 | s/^/S["/; s/!.*/"]=/ | |
16821 | p | |
16822 | g | |
16823 | s/^[^!]*!// | |
16824 | :repl | |
16825 | t repl | |
16826 | s/'"$ac_delim"'$// | |
16827 | t delim | |
16828 | :nl | |
16829 | h | |
16830 | s/\(.\{148\}\)..*/\1/ | |
16831 | t more1 | |
16832 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16833 | p | |
16834 | n | |
16835 | b repl | |
16836 | :more1 | |
16837 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16838 | p | |
16839 | g | |
16840 | s/.\{148\}// | |
16841 | t nl | |
16842 | :delim | |
16843 | h | |
16844 | s/\(.\{148\}\)..*/\1/ | |
16845 | t more2 | |
16846 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16847 | p | |
16848 | b | |
16849 | :more2 | |
16850 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16851 | p | |
16852 | g | |
16853 | s/.\{148\}// | |
16854 | t delim | |
16855 | ' <conf$$subs.awk | sed ' | |
16856 | /^[^""]/{ | |
16857 | N | |
16858 | s/\n// | |
16859 | } | |
16860 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16861 | rm -f conf$$subs.awk | |
16862 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16863 | _ACAWK | |
16864 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
16865 | for (key in S) S_is_set[key] = 1 | |
16866 | FS = "\a" | |
16867 | ||
16868 | } | |
16869 | { | |
16870 | line = $ 0 | |
16871 | nfields = split(line, field, "@") | |
16872 | substed = 0 | |
16873 | len = length(field[1]) | |
16874 | for (i = 2; i < nfields; i++) { | |
16875 | key = field[i] | |
16876 | keylen = length(key) | |
16877 | if (S_is_set[key]) { | |
16878 | value = S[key] | |
16879 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16880 | len += length(value) + length(field[++i]) | |
16881 | substed = 1 | |
16882 | } else | |
16883 | len += 1 + keylen | |
16884 | } | |
16885 | ||
16886 | print line | |
16887 | } | |
16888 | ||
16889 | _ACAWK | |
16890 | _ACEOF | |
16891 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16892 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16893 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16894 | else | |
16895 | cat | |
16896 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
16897 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
16898 | _ACEOF | |
16899 | ||
16900 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
16901 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
16902 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16903 | # (actually we leave an empty line to preserve line numbers). | |
16904 | if test "x$srcdir" = x.; then | |
16905 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
16906 | h | |
16907 | s/// | |
16908 | s/^/:/ | |
16909 | s/[ ]*$/:/ | |
16910 | s/:\$(srcdir):/:/g | |
16911 | s/:\${srcdir}:/:/g | |
16912 | s/:@srcdir@:/:/g | |
16913 | s/^:*// | |
16914 | s/:*$// | |
16915 | x | |
16916 | s/\(=[ ]*\).*/\1/ | |
16917 | G | |
16918 | s/\n// | |
16919 | s/^[^=]*=[ ]*$// | |
16920 | }' | |
16921 | fi | |
16922 | ||
16923 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16924 | fi # test -n "$CONFIG_FILES" | |
16925 | ||
16926 | # Set up the scripts for CONFIG_HEADERS section. | |
16927 | # No need to generate them if there are no CONFIG_HEADERS. | |
16928 | # This happens for instance with `./config.status Makefile'. | |
16929 | if test -n "$CONFIG_HEADERS"; then | |
16930 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
16931 | BEGIN { | |
16932 | _ACEOF | |
16933 | ||
16934 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16935 | # here-document in config.status, that substitutes the proper values into | |
16936 | # config.h.in to produce config.h. | |
16937 | ||
16938 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16939 | # handling of long lines. | |
16940 | ac_delim='%!_!# ' | |
16941 | for ac_last_try in false false :; do | |
16942 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
16943 | if test -z "$ac_tt"; then | |
16944 | break | |
16945 | elif $ac_last_try; then | |
16946 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
16947 | else | |
16948 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16949 | fi | |
16950 | done | |
16951 | ||
16952 | # For the awk script, D is an array of macro values keyed by name, | |
16953 | # likewise P contains macro parameters if any. Preserve backslash | |
16954 | # newline sequences. | |
16955 | ||
16956 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16957 | sed -n ' | |
16958 | s/.\{148\}/&'"$ac_delim"'/g | |
16959 | t rset | |
16960 | :rset | |
16961 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16962 | t def | |
16963 | d | |
16964 | :def | |
16965 | s/\\$// | |
16966 | t bsnl | |
16967 | s/["\\]/\\&/g | |
16968 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16969 | D["\1"]=" \3"/p | |
16970 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16971 | d | |
16972 | :bsnl | |
16973 | s/["\\]/\\&/g | |
16974 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16975 | D["\1"]=" \3\\\\\\n"\\/p | |
16976 | t cont | |
16977 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16978 | t cont | |
16979 | d | |
16980 | :cont | |
16981 | n | |
16982 | s/.\{148\}/&'"$ac_delim"'/g | |
16983 | t clear | |
16984 | :clear | |
16985 | s/\\$// | |
16986 | t bsnlc | |
16987 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16988 | d | |
16989 | :bsnlc | |
16990 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16991 | b cont | |
16992 | ' <confdefs.h | sed ' | |
16993 | s/'"$ac_delim"'/"\\\ | |
16994 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16995 | ||
16996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16997 | for (key in D) D_is_set[key] = 1 | |
16998 | FS = "\a" | |
16999 | } | |
17000 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17001 | line = \$ 0 | |
17002 | split(line, arg, " ") | |
17003 | if (arg[1] == "#") { | |
17004 | defundef = arg[2] | |
17005 | mac1 = arg[3] | |
17006 | } else { | |
17007 | defundef = substr(arg[1], 2) | |
17008 | mac1 = arg[2] | |
17009 | } | |
17010 | split(mac1, mac2, "(") #) | |
17011 | macro = mac2[1] | |
17012 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17013 | if (D_is_set[macro]) { | |
17014 | # Preserve the white space surrounding the "#". | |
17015 | print prefix "define", macro P[macro] D[macro] | |
17016 | next | |
17017 | } else { | |
17018 | # Replace #undef with comments. This is necessary, for example, | |
17019 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17020 | # on some systems where configure will not decide to define it. | |
17021 | if (defundef == "undef") { | |
17022 | print "/*", prefix defundef, macro, "*/" | |
17023 | next | |
17024 | } | |
17025 | } | |
17026 | } | |
17027 | { print } | |
17028 | _ACAWK | |
17029 | _ACEOF | |
17030 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17031 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
17032 | fi # test -n "$CONFIG_HEADERS" | |
17033 | ||
17034 | ||
17035 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
17036 | shift | |
17037 | for ac_tag | |
17038 | do | |
17039 | case $ac_tag in | |
17040 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17041 | esac | |
17042 | case $ac_mode$ac_tag in | |
17043 | :[FHL]*:*);; | |
17044 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17045 | :[FH]-) ac_tag=-:-;; | |
17046 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17047 | esac | |
17048 | ac_save_IFS=$IFS | |
17049 | IFS=: | |
17050 | set x $ac_tag | |
17051 | IFS=$ac_save_IFS | |
17052 | shift | |
17053 | ac_file=$1 | |
17054 | shift | |
17055 | ||
17056 | case $ac_mode in | |
17057 | :L) ac_source=$1;; | |
17058 | :[FH]) | |
17059 | ac_file_inputs= | |
17060 | for ac_f | |
17061 | do | |
17062 | case $ac_f in | |
17063 | -) ac_f="$ac_tmp/stdin";; | |
17064 | *) # Look for the file first in the build tree, then in the source tree | |
17065 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17066 | # because $ac_f cannot contain `:'. | |
17067 | test -f "$ac_f" || | |
17068 | case $ac_f in | |
17069 | [\\/$]*) false;; | |
17070 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17071 | esac || | |
17072 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17073 | esac | |
17074 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17075 | as_fn_append ac_file_inputs " '$ac_f'" | |
17076 | done | |
17077 | ||
17078 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17079 | # use $as_me), people would be surprised to read: | |
17080 | # /* config.h. Generated by config.status. */ | |
17081 | configure_input='Generated from '` | |
17082 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17083 | `' by configure.' | |
17084 | if test x"$ac_file" != x-; then | |
17085 | configure_input="$ac_file. $configure_input" | |
17086 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17087 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17088 | fi | |
17089 | # Neutralize special characters interpreted by sed in replacement strings. | |
17090 | case $configure_input in #( | |
17091 | *\&* | *\|* | *\\* ) | |
17092 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17093 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17094 | *) ac_sed_conf_input=$configure_input;; | |
17095 | esac | |
17096 | ||
17097 | case $ac_tag in | |
17098 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
17099 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
17100 | esac | |
17101 | ;; | |
17102 | esac | |
17103 | ||
17104 | ac_dir=`$as_dirname -- "$ac_file" || | |
17105 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17106 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17107 | X"$ac_file" : 'X\(//\)$' \| \ | |
17108 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17109 | $as_echo X"$ac_file" | | |
17110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17111 | s//\1/ | |
17112 | q | |
17113 | } | |
17114 | /^X\(\/\/\)[^/].*/{ | |
17115 | s//\1/ | |
17116 | q | |
17117 | } | |
17118 | /^X\(\/\/\)$/{ | |
17119 | s//\1/ | |
17120 | q | |
17121 | } | |
17122 | /^X\(\/\).*/{ | |
17123 | s//\1/ | |
17124 | q | |
17125 | } | |
17126 | s/.*/./; q'` | |
17127 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17128 | ac_builddir=. | |
17129 | ||
17130 | case "$ac_dir" in | |
17131 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17132 | *) | |
17133 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17134 | # A ".." for each directory in $ac_dir_suffix. | |
17135 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17136 | case $ac_top_builddir_sub in | |
17137 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17138 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17139 | esac ;; | |
17140 | esac | |
17141 | ac_abs_top_builddir=$ac_pwd | |
17142 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17143 | # for backward compatibility: | |
17144 | ac_top_builddir=$ac_top_build_prefix | |
17145 | ||
17146 | case $srcdir in | |
17147 | .) # We are building in place. | |
17148 | ac_srcdir=. | |
17149 | ac_top_srcdir=$ac_top_builddir_sub | |
17150 | ac_abs_top_srcdir=$ac_pwd ;; | |
17151 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17152 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17153 | ac_top_srcdir=$srcdir | |
17154 | ac_abs_top_srcdir=$srcdir ;; | |
17155 | *) # Relative name. | |
17156 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17157 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17158 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17159 | esac | |
17160 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17161 | ||
17162 | ||
17163 | case $ac_mode in | |
17164 | :F) | |
17165 | # | |
17166 | # CONFIG_FILE | |
17167 | # | |
17168 | ||
17169 | case $INSTALL in | |
17170 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17171 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17172 | esac | |
17173 | _ACEOF | |
17174 | ||
17175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17176 | # If the template does not know about datarootdir, expand it. | |
17177 | # FIXME: This hack should be removed a few years after 2.60. | |
17178 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17179 | ac_sed_dataroot=' | |
17180 | /datarootdir/ { | |
17181 | p | |
17182 | q | |
17183 | } | |
17184 | /@datadir@/p | |
17185 | /@docdir@/p | |
17186 | /@infodir@/p | |
17187 | /@localedir@/p | |
17188 | /@mandir@/p' | |
17189 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17190 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17191 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17193 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17194 | _ACEOF | |
17195 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17196 | ac_datarootdir_hack=' | |
17197 | s&@datadir@&$datadir&g | |
17198 | s&@docdir@&$docdir&g | |
17199 | s&@infodir@&$infodir&g | |
17200 | s&@localedir@&$localedir&g | |
17201 | s&@mandir@&$mandir&g | |
17202 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17203 | esac | |
17204 | _ACEOF | |
17205 | ||
17206 | # Neutralize VPATH when `$srcdir' = `.'. | |
17207 | # Shell code in configure.ac might set extrasub. | |
17208 | # FIXME: do we really want to maintain this feature? | |
17209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17210 | ac_sed_extra="$ac_vpsub | |
17211 | $extrasub | |
17212 | _ACEOF | |
17213 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17214 | :t | |
17215 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17216 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17217 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17218 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17219 | s&@srcdir@&$ac_srcdir&;t t | |
17220 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17221 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17222 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17223 | s&@builddir@&$ac_builddir&;t t | |
17224 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17225 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17226 | s&@INSTALL@&$ac_INSTALL&;t t | |
17227 | $ac_datarootdir_hack | |
17228 | " | |
17229 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
17230 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17231 | ||
17232 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17233 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
17234 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17235 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17237 | which seems to be undefined. Please make sure it is defined" >&5 | |
17238 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17239 | which seems to be undefined. Please make sure it is defined" >&2;} | |
17240 | ||
17241 | rm -f "$ac_tmp/stdin" | |
17242 | case $ac_file in | |
17243 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
17244 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
17245 | esac \ | |
17246 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17247 | ;; | |
17248 | :H) | |
17249 | # | |
17250 | # CONFIG_HEADER | |
17251 | # | |
17252 | if test x"$ac_file" != x-; then | |
17253 | { | |
17254 | $as_echo "/* $configure_input */" \ | |
17255 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
17256 | } >"$ac_tmp/config.h" \ | |
17257 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17258 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
17260 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
17261 | else | |
17262 | rm -f "$ac_file" | |
17263 | mv "$ac_tmp/config.h" "$ac_file" \ | |
17264 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17265 | fi | |
17266 | else | |
17267 | $as_echo "/* $configure_input */" \ | |
17268 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
17269 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
17270 | fi | |
17271 | ;; | |
17272 | ||
17273 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17274 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17275 | ;; | |
17276 | esac | |
17277 | ||
17278 | ||
17279 | case $ac_file$ac_mode in | |
17280 | "default-1":C) | |
17281 | for ac_file in $CONFIG_FILES; do | |
17282 | # Support "outfile[:infile[:infile...]]" | |
17283 | case "$ac_file" in | |
17284 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17285 | esac | |
17286 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17287 | case "$ac_file" in */Makefile.in) | |
17288 | # Adjust a relative srcdir. | |
17289 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
17290 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
17291 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
17292 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17293 | # In autoconf-2.50 it is called $srcdir. | |
17294 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17295 | case "$ac_given_srcdir" in | |
17296 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17297 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17298 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17299 | esac | |
17300 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17301 | rm -f "$ac_dir/POTFILES" | |
17302 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17303 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17304 | POMAKEFILEDEPS="POTFILES.in" | |
17305 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17306 | # on $ac_dir but don't depend on user-specified configuration | |
17307 | # parameters. | |
17308 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17309 | # The LINGUAS file contains the set of available languages. | |
17310 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
17311 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
17312 | fi | |
17313 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17314 | # Hide the ALL_LINGUAS assigment from automake. | |
17315 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17316 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17317 | else | |
17318 | # The set of available languages was given in configure.in. | |
17319 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
17320 | fi | |
17321 | case "$ac_given_srcdir" in | |
17322 | .) srcdirpre= ;; | |
17323 | *) srcdirpre='$(srcdir)/' ;; | |
17324 | esac | |
17325 | POFILES= | |
17326 | GMOFILES= | |
17327 | UPDATEPOFILES= | |
17328 | DUMMYPOFILES= | |
17329 | for lang in $ALL_LINGUAS; do | |
17330 | POFILES="$POFILES $srcdirpre$lang.po" | |
17331 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17332 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17333 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17334 | done | |
17335 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17336 | # environment variable. | |
17337 | INST_LINGUAS= | |
17338 | if test -n "$ALL_LINGUAS"; then | |
17339 | for presentlang in $ALL_LINGUAS; do | |
17340 | useit=no | |
17341 | if test "%UNSET%" != "$LINGUAS"; then | |
17342 | desiredlanguages="$LINGUAS" | |
17343 | else | |
17344 | desiredlanguages="$ALL_LINGUAS" | |
17345 | fi | |
17346 | for desiredlang in $desiredlanguages; do | |
17347 | # Use the presentlang catalog if desiredlang is | |
17348 | # a. equal to presentlang, or | |
17349 | # b. a variant of presentlang (because in this case, | |
17350 | # presentlang can be used as a fallback for messages | |
17351 | # which are not translated in the desiredlang catalog). | |
17352 | case "$desiredlang" in | |
17353 | "$presentlang"*) useit=yes;; | |
17354 | esac | |
17355 | done | |
17356 | if test $useit = yes; then | |
17357 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17358 | fi | |
17359 | done | |
17360 | fi | |
17361 | CATALOGS= | |
17362 | if test -n "$INST_LINGUAS"; then | |
17363 | for lang in $INST_LINGUAS; do | |
17364 | CATALOGS="$CATALOGS $lang.gmo" | |
17365 | done | |
17366 | fi | |
17367 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17368 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
17369 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17370 | if test -f "$f"; then | |
17371 | case "$f" in | |
17372 | *.orig | *.bak | *~) ;; | |
17373 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17374 | esac | |
17375 | fi | |
17376 | done | |
17377 | fi | |
17378 | ;; | |
17379 | esac | |
17380 | done ;; | |
17381 | "default":C) | |
17382 | # Makefile uses this timestamp file to record whether config.h is up to date. | |
17383 | echo timestamp > stamp-h | |
17384 | ;; | |
17385 | ||
17386 | esac | |
17387 | done # for ac_tag | |
17388 | ||
17389 | ||
17390 | as_fn_exit 0 | |
17391 | _ACEOF | |
17392 | ac_clean_files=$ac_clean_files_save | |
17393 | ||
17394 | test $ac_write_fail = 0 || | |
17395 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
17396 | ||
17397 | ||
17398 | # configure is writing to config.log, and then calls config.status. | |
17399 | # config.status does its own redirection, appending to config.log. | |
17400 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17401 | # by configure, so config.status won't be able to write to it; its | |
17402 | # output is simply discarded. So we exec the FD to /dev/null, | |
17403 | # effectively closing config.log, so it can be properly (re)opened and | |
17404 | # appended to by config.status. When coming back to configure, we | |
17405 | # need to make the FD available again. | |
17406 | if test "$no_create" != yes; then | |
17407 | ac_cs_success=: | |
17408 | ac_config_status_args= | |
17409 | test "$silent" = yes && | |
17410 | ac_config_status_args="$ac_config_status_args --quiet" | |
17411 | exec 5>/dev/null | |
17412 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17413 | exec 5>>config.log | |
17414 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17415 | # would make configure fail if this is the last instruction. | |
17416 | $ac_cs_success || as_fn_exit 1 | |
17417 | fi | |
17418 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17419 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17420 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17421 | fi | |
17422 |