Commit | Line | Data |
---|---|---|
d60d9f65 | 1 | #! /bin/sh |
cb41b9e7 | 2 | # From configure.ac for Readline 8.0, version 2.85. |
9255ee31 | 3 | # Guess values for system-dependent variables and create Makefiles. |
cb41b9e7 | 4 | # Generated by GNU Autoconf 2.69 for readline 8.0. |
9255ee31 EZ |
5 | # |
6 | # Report bugs to <bug-readline@gnu.org>. | |
7 | # | |
d0ac1c44 SM |
8 | # |
9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
10 | # | |
81ecdfbb | 11 | # |
9255ee31 EZ |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
d60d9f65 | 17 | |
81ecdfbb RW |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
25ed0b71 KW |
21 | emulate sh |
22 | NULLCMD=: | |
81ecdfbb | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
24 | # is contrary to our usage. Disable this feature. |
25 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
26 | setopt NO_GLOB_SUBST |
27 | else | |
28 | case `(set -o) 2>/dev/null` in #( | |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
33 | esac | |
25ed0b71 KW |
34 | fi |
35 | ||
81ecdfbb RW |
36 | |
37 | as_nl=' | |
38 | ' | |
39 | export as_nl | |
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
45 | # but without wasting forks for bash or zsh. | |
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='print -r --' | |
49 | as_echo_n='print -rn --' | |
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
57 | else | |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in #( | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
70 | fi | |
71 | export as_echo_body | |
72 | as_echo='sh -c $as_echo_body as_echo' | |
73 | fi | |
74 | ||
75 | # The user is always right. | |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
25ed0b71 KW |
82 | fi |
83 | ||
84 | ||
81ecdfbb RW |
85 | # IFS |
86 | # We need space, tab and new line, in precisely that order. Quoting is | |
87 | # there to prevent editors from complaining about space-tab. | |
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
89 | # splitting by setting IFS to empty value.) | |
90 | IFS=" "" $as_nl" | |
91 | ||
92 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 93 | as_myself= |
81ecdfbb RW |
94 | case $0 in #(( |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
25ed0b71 KW |
125 | PS1='$ ' |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
81ecdfbb RW |
130 | LC_ALL=C |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
d0ac1c44 SM |
138 | # Use a proper internal environment variable to ensure we don't fall |
139 | # into an infinite loop, continuously re-executing ourselves. | |
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
141 | _as_can_reexec=no; export _as_can_reexec; | |
142 | # We cannot yet assume a decent shell, so we have to provide a | |
143 | # neutralization value for shells without unset; and this also | |
144 | # works around shells that cannot unset nonexistent variables. | |
145 | # Preserve -v and -x to the replacement shell. | |
146 | BASH_ENV=/dev/null | |
147 | ENV=/dev/null | |
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
149 | case $- in # (((( | |
150 | *v*x* | *x*v* ) as_opts=-vx ;; | |
151 | *v* ) as_opts=-v ;; | |
152 | *x* ) as_opts=-x ;; | |
153 | * ) as_opts= ;; | |
154 | esac | |
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
156 | # Admittedly, this is quite paranoid, since all the known shells bail | |
157 | # out after a failed `exec'. | |
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
159 | as_fn_exit 255 | |
160 | fi | |
161 | # We don't want this to propagate to other subprocesses. | |
162 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
163 | if test "x$CONFIG_SHELL" = x; then |
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
165 | emulate sh | |
166 | NULLCMD=: | |
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
168 | # is contrary to our usage. Disable this feature. | |
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
170 | setopt NO_GLOB_SUBST | |
171 | else | |
172 | case \`(set -o) 2>/dev/null\` in #( | |
173 | *posix*) : | |
174 | set -o posix ;; #( | |
175 | *) : | |
176 | ;; | |
177 | esac | |
178 | fi | |
179 | " | |
180 | as_required="as_fn_return () { (exit \$1); } | |
181 | as_fn_success () { as_fn_return 0; } | |
182 | as_fn_failure () { as_fn_return 1; } | |
183 | as_fn_ret_success () { return 0; } | |
184 | as_fn_ret_failure () { return 1; } | |
185 | ||
186 | exitcode=0 | |
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
192 | ||
193 | else | |
194 | exitcode=1; echo positional parameters were not saved. | |
195 | fi | |
d0ac1c44 SM |
196 | test x\$exitcode = x0 || exit 1 |
197 | test -x / || exit 1" | |
81ecdfbb RW |
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
202 | test \$(( 1 + 1 )) = 2 || exit 1" | |
203 | if (eval "$as_required") 2>/dev/null; then : | |
204 | as_have_required=yes | |
205 | else | |
206 | as_have_required=no | |
207 | fi | |
208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
209 | ||
210 | else | |
211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212 | as_found=false | |
213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
25ed0b71 | 214 | do |
81ecdfbb RW |
215 | IFS=$as_save_IFS |
216 | test -z "$as_dir" && as_dir=. | |
217 | as_found=: | |
218 | case $as_dir in #( | |
219 | /*) | |
220 | for as_base in sh bash ksh sh5; do | |
221 | # Try only shells that exist, to save several forks. | |
222 | as_shell=$as_dir/$as_base | |
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | CONFIG_SHELL=$as_shell as_have_required=yes | |
226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
227 | break 2 | |
228 | fi | |
229 | fi | |
230 | done;; | |
231 | esac | |
232 | as_found=false | |
233 | done | |
234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
236 | CONFIG_SHELL=$SHELL as_have_required=yes | |
237 | fi; } | |
238 | IFS=$as_save_IFS | |
239 | ||
240 | ||
241 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
242 | export CONFIG_SHELL |
243 | # We cannot yet assume a decent shell, so we have to provide a | |
244 | # neutralization value for shells without unset; and this also | |
245 | # works around shells that cannot unset nonexistent variables. | |
246 | # Preserve -v and -x to the replacement shell. | |
247 | BASH_ENV=/dev/null | |
248 | ENV=/dev/null | |
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
250 | case $- in # (((( | |
251 | *v*x* | *x*v* ) as_opts=-vx ;; | |
252 | *v* ) as_opts=-v ;; | |
253 | *x* ) as_opts=-x ;; | |
254 | * ) as_opts= ;; | |
255 | esac | |
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
257 | # Admittedly, this is quite paranoid, since all the known shells bail | |
258 | # out after a failed `exec'. | |
259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
260 | exit 255 | |
81ecdfbb RW |
261 | fi |
262 | ||
263 | if test x$as_have_required = xno; then : | |
264 | $as_echo "$0: This script requires a shell more modern than all" | |
265 | $as_echo "$0: the shells that I found on your system." | |
266 | if test x${ZSH_VERSION+set} = xset ; then | |
267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
25ed0b71 | 269 | else |
81ecdfbb RW |
270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
271 | $0: bug-readline@gnu.org about your system, including any | |
272 | $0: error possibly output before this message. Then install | |
273 | $0: a modern shell, or manually run the script under such a | |
274 | $0: shell if you do have one." | |
25ed0b71 | 275 | fi |
81ecdfbb RW |
276 | exit 1 |
277 | fi | |
278 | fi | |
279 | fi | |
280 | SHELL=${CONFIG_SHELL-/bin/sh} | |
281 | export SHELL | |
282 | # Unset more variables known to interfere with behavior of common tools. | |
283 | CLICOLOR_FORCE= GREP_OPTIONS= | |
284 | unset CLICOLOR_FORCE GREP_OPTIONS | |
285 | ||
286 | ## --------------------- ## | |
287 | ## M4sh Shell Functions. ## | |
288 | ## --------------------- ## | |
289 | # as_fn_unset VAR | |
290 | # --------------- | |
291 | # Portably unset VAR. | |
292 | as_fn_unset () | |
293 | { | |
294 | { eval $1=; unset $1;} | |
295 | } | |
296 | as_unset=as_fn_unset | |
297 | ||
298 | # as_fn_set_status STATUS | |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
305 | ||
306 | # as_fn_exit STATUS | |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
315 | ||
316 | # as_fn_mkdir_p | |
317 | # ------------- | |
318 | # Create "$as_dir" as a directory, including parents if necessary. | |
319 | as_fn_mkdir_p () | |
320 | { | |
25ed0b71 | 321 | |
81ecdfbb RW |
322 | case $as_dir in #( |
323 | -*) as_dir=./$as_dir;; | |
324 | esac | |
325 | test -d "$as_dir" || eval $as_mkdir_p || { | |
326 | as_dirs= | |
327 | while :; do | |
328 | case $as_dir in #( | |
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
330 | *) as_qdir=$as_dir;; | |
331 | esac | |
332 | as_dirs="'$as_qdir' $as_dirs" | |
333 | as_dir=`$as_dirname -- "$as_dir" || | |
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
336 | X"$as_dir" : 'X\(//\)$' \| \ | |
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
338 | $as_echo X"$as_dir" | | |
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)[^/].*/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\).*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | s/.*/./; q'` | |
356 | test -d "$as_dir" && break | |
357 | done | |
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
360 | |
361 | ||
362 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
363 | |
364 | # as_fn_executable_p FILE | |
365 | # ----------------------- | |
366 | # Test if FILE is an executable regular file. | |
367 | as_fn_executable_p () | |
368 | { | |
369 | test -f "$1" && test -x "$1" | |
370 | } # as_fn_executable_p | |
81ecdfbb RW |
371 | # as_fn_append VAR VALUE |
372 | # ---------------------- | |
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
374 | # advantage of any shell optimizations that allow amortized linear growth over | |
375 | # repeated appends, instead of the typical quadratic growth present in naive | |
376 | # implementations. | |
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
378 | eval 'as_fn_append () | |
379 | { | |
380 | eval $1+=\$2 | |
381 | }' | |
382 | else | |
383 | as_fn_append () | |
384 | { | |
385 | eval $1=\$$1\$2 | |
386 | } | |
387 | fi # as_fn_append | |
388 | ||
389 | # as_fn_arith ARG... | |
390 | # ------------------ | |
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
393 | # must be portable across $(()) and expr. | |
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
395 | eval 'as_fn_arith () | |
396 | { | |
397 | as_val=$(( $* )) | |
398 | }' | |
399 | else | |
400 | as_fn_arith () | |
401 | { | |
402 | as_val=`expr "$@" || test $? -eq 1` | |
403 | } | |
404 | fi # as_fn_arith | |
405 | ||
406 | ||
d0ac1c44 SM |
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
408 | # ---------------------------------------- | |
81ecdfbb RW |
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 411 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
412 | as_fn_error () |
413 | { | |
d0ac1c44 SM |
414 | as_status=$1; test $as_status -eq 0 && as_status=1 |
415 | if test "$4"; then | |
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 418 | fi |
d0ac1c44 | 419 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
420 | as_fn_exit $as_status |
421 | } # as_fn_error | |
422 | ||
423 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
425 | as_expr=expr |
426 | else | |
427 | as_expr=false | |
428 | fi | |
429 | ||
81ecdfbb | 430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
431 | as_basename=basename |
432 | else | |
433 | as_basename=false | |
434 | fi | |
435 | ||
81ecdfbb RW |
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
437 | as_dirname=dirname | |
438 | else | |
439 | as_dirname=false | |
440 | fi | |
25ed0b71 | 441 | |
81ecdfbb | 442 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
444 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
446 | $as_echo X/"$0" | | |
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\/\)$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\).*/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | s/.*/./; q'` | |
25ed0b71 | 460 | |
9255ee31 EZ |
461 | # Avoid depending upon Character Ranges. |
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
465 | as_cr_digits='0123456789' | |
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d60d9f65 | 467 | |
25ed0b71 | 468 | |
81ecdfbb RW |
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
474 | sed -n ' | |
475 | p | |
476 | /[$]LINENO/= | |
477 | ' <$as_myself | | |
25ed0b71 | 478 | sed ' |
81ecdfbb RW |
479 | s/[$]LINENO.*/&-/ |
480 | t lineno | |
481 | b | |
482 | :lineno | |
25ed0b71 | 483 | N |
81ecdfbb RW |
484 | :loop |
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
25ed0b71 | 486 | t loop |
81ecdfbb | 487 | s/-\n.*// |
25ed0b71 | 488 | ' >$as_me.lineno && |
81ecdfbb RW |
489 | chmod +x "$as_me.lineno" || |
490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
25ed0b71 | 491 | |
d0ac1c44 SM |
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
493 | # already done that, so ensure we don't try to do so again and fall | |
494 | # in an infinite loop. This has already happened in practice. | |
495 | _as_can_reexec=no; export _as_can_reexec | |
25ed0b71 KW |
496 | # Don't try to exec as it changes $[0], causing all sort of problems |
497 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
498 | # original and so on. Autoconf is especially sensitive to this). |
499 | . "./$as_me.lineno" | |
25ed0b71 KW |
500 | # Exit status is that of the last command. |
501 | exit | |
502 | } | |
503 | ||
81ecdfbb RW |
504 | ECHO_C= ECHO_N= ECHO_T= |
505 | case `echo -n x` in #((((( | |
506 | -n*) | |
507 | case `echo 'xy\c'` in | |
508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
509 | xy) ECHO_C='\c';; | |
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
511 | ECHO_T=' ';; | |
512 | esac;; | |
513 | *) | |
514 | ECHO_N='-n';; | |
25ed0b71 | 515 | esac |
d60d9f65 | 516 | |
81ecdfbb RW |
517 | rm -f conf$$ conf$$.exe conf$$.file |
518 | if test -d conf$$.dir; then | |
519 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 520 | else |
81ecdfbb RW |
521 | rm -f conf$$.dir |
522 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 523 | fi |
81ecdfbb RW |
524 | if (echo >conf$$.file) 2>/dev/null; then |
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 526 | as_ln_s='ln -s' |
81ecdfbb RW |
527 | # ... but there are two gotchas: |
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 530 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
81ecdfbb RW |
533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
534 | as_ln_s=ln | |
535 | else | |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
9255ee31 | 537 | fi |
9255ee31 | 538 | else |
d0ac1c44 | 539 | as_ln_s='cp -pR' |
9255ee31 | 540 | fi |
81ecdfbb RW |
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
542 | rmdir conf$$.dir 2>/dev/null | |
d60d9f65 | 543 | |
25ed0b71 | 544 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 546 | else |
430b7832 | 547 | test -d ./-p && rmdir ./-p |
25ed0b71 | 548 | as_mkdir_p=false |
9255ee31 | 549 | fi |
d60d9f65 | 550 | |
d0ac1c44 SM |
551 | as_test_x='test -x' |
552 | as_executable_p=as_fn_executable_p | |
25ed0b71 KW |
553 | |
554 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
556 | |
557 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 559 | |
9255ee31 | 560 | |
d0ac1c44 SM |
561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
562 | exec 6>&1 | |
9255ee31 EZ |
563 | |
564 | # Name of the host. | |
d0ac1c44 | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
9255ee31 EZ |
566 | # so uname gets run too. |
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
568 | ||
d60d9f65 | 569 | # |
9255ee31 EZ |
570 | # Initializations. |
571 | # | |
d60d9f65 | 572 | ac_default_prefix=/usr/local |
81ecdfbb | 573 | ac_clean_files= |
25ed0b71 | 574 | ac_config_libobj_dir=. |
81ecdfbb | 575 | LIBOBJS= |
9255ee31 EZ |
576 | cross_compiling=no |
577 | subdirs= | |
25ed0b71 KW |
578 | MFLAGS= |
579 | MAKEFLAGS= | |
9255ee31 | 580 | |
25ed0b71 KW |
581 | # Identity of this package. |
582 | PACKAGE_NAME='readline' | |
583 | PACKAGE_TARNAME='readline' | |
cb41b9e7 TT |
584 | PACKAGE_VERSION='8.0' |
585 | PACKAGE_STRING='readline 8.0' | |
25ed0b71 | 586 | PACKAGE_BUGREPORT='bug-readline@gnu.org' |
81ecdfbb | 587 | PACKAGE_URL='' |
25ed0b71 | 588 | |
9255ee31 EZ |
589 | ac_unique_file="readline.h" |
590 | # Factoring default headers for most tests. | |
591 | ac_includes_default="\ | |
592 | #include <stdio.h> | |
81ecdfbb | 593 | #ifdef HAVE_SYS_TYPES_H |
9255ee31 EZ |
594 | # include <sys/types.h> |
595 | #endif | |
81ecdfbb | 596 | #ifdef HAVE_SYS_STAT_H |
9255ee31 EZ |
597 | # include <sys/stat.h> |
598 | #endif | |
81ecdfbb | 599 | #ifdef STDC_HEADERS |
9255ee31 EZ |
600 | # include <stdlib.h> |
601 | # include <stddef.h> | |
602 | #else | |
81ecdfbb | 603 | # ifdef HAVE_STDLIB_H |
9255ee31 EZ |
604 | # include <stdlib.h> |
605 | # endif | |
606 | #endif | |
81ecdfbb RW |
607 | #ifdef HAVE_STRING_H |
608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
9255ee31 EZ |
609 | # include <memory.h> |
610 | # endif | |
611 | # include <string.h> | |
612 | #endif | |
81ecdfbb | 613 | #ifdef HAVE_STRINGS_H |
9255ee31 EZ |
614 | # include <strings.h> |
615 | #endif | |
81ecdfbb | 616 | #ifdef HAVE_INTTYPES_H |
9255ee31 | 617 | # include <inttypes.h> |
9255ee31 | 618 | #endif |
81ecdfbb RW |
619 | #ifdef HAVE_STDINT_H |
620 | # include <stdint.h> | |
621 | #endif | |
622 | #ifdef HAVE_UNISTD_H | |
9255ee31 EZ |
623 | # include <unistd.h> |
624 | #endif" | |
d60d9f65 | 625 | |
81ecdfbb | 626 | ac_subst_vars='LTLIBOBJS |
cb41b9e7 | 627 | TERMCAP_PKG_CONFIG_LIB |
81ecdfbb RW |
628 | TERMCAP_LIB |
629 | LIBVERSION | |
630 | ARFLAGS | |
631 | LOCAL_DEFS | |
632 | LOCAL_LDFLAGS | |
633 | LOCAL_CFLAGS | |
634 | BUILD_DIR | |
cb41b9e7 | 635 | EXAMPLES_INSTALL_TARGET |
81ecdfbb RW |
636 | SHARED_INSTALL_TARGET |
637 | STATIC_INSTALL_TARGET | |
638 | SHARED_TARGET | |
639 | STATIC_TARGET | |
640 | SHLIB_MINOR | |
641 | SHLIB_MAJOR | |
642 | SHLIB_LIBS | |
643 | SHLIB_DLLVERSION | |
644 | SHLIB_LIBVERSION | |
645 | SHLIB_LIBSUFF | |
646 | SHLIB_LIBPREF | |
647 | SHLIB_DOT | |
648 | SHLIB_XLDFLAGS | |
649 | SHLIB_STATUS | |
650 | SHOBJ_STATUS | |
651 | SHOBJ_LIBS | |
652 | SHOBJ_XLDFLAGS | |
653 | SHOBJ_LDFLAGS | |
654 | SHOBJ_LD | |
655 | SHOBJ_CFLAGS | |
656 | SHOBJ_CC | |
cc88a640 | 657 | LIBOBJS |
81ecdfbb RW |
658 | MAKE_SHELL |
659 | RANLIB | |
660 | AR | |
661 | INSTALL_DATA | |
662 | INSTALL_SCRIPT | |
663 | INSTALL_PROGRAM | |
81ecdfbb RW |
664 | EGREP |
665 | GREP | |
666 | CPP | |
667 | OBJEXT | |
668 | EXEEXT | |
669 | ac_ct_CC | |
670 | CPPFLAGS | |
671 | LDFLAGS | |
672 | CFLAGS | |
673 | CC | |
674 | SET_MAKE | |
675 | CROSS_COMPILE | |
676 | host_os | |
677 | host_vendor | |
678 | host_cpu | |
679 | host | |
680 | build_os | |
681 | build_vendor | |
682 | build_cpu | |
683 | build | |
684 | target_alias | |
685 | host_alias | |
686 | build_alias | |
687 | LIBS | |
688 | ECHO_T | |
689 | ECHO_N | |
690 | ECHO_C | |
691 | DEFS | |
692 | mandir | |
693 | localedir | |
694 | libdir | |
695 | psdir | |
696 | pdfdir | |
697 | dvidir | |
698 | htmldir | |
699 | infodir | |
700 | docdir | |
701 | oldincludedir | |
702 | includedir | |
703 | localstatedir | |
704 | sharedstatedir | |
705 | sysconfdir | |
706 | datadir | |
707 | datarootdir | |
708 | libexecdir | |
709 | sbindir | |
710 | bindir | |
711 | program_transform_name | |
712 | prefix | |
713 | exec_prefix | |
714 | PACKAGE_URL | |
715 | PACKAGE_BUGREPORT | |
716 | PACKAGE_STRING | |
717 | PACKAGE_VERSION | |
718 | PACKAGE_TARNAME | |
719 | PACKAGE_NAME | |
720 | PATH_SEPARATOR | |
721 | SHELL' | |
25ed0b71 | 722 | ac_subst_files='' |
81ecdfbb RW |
723 | ac_user_opts=' |
724 | enable_option_checking | |
725 | with_curses | |
81ecdfbb RW |
726 | enable_multibyte |
727 | enable_static | |
cb41b9e7 | 728 | enable_install_examples |
cc88a640 | 729 | enable_largefile |
81ecdfbb RW |
730 | ' |
731 | ac_precious_vars='build_alias | |
732 | host_alias | |
733 | target_alias | |
734 | CC | |
735 | CFLAGS | |
736 | LDFLAGS | |
737 | LIBS | |
738 | CPPFLAGS | |
739 | CPP' | |
740 | ||
25ed0b71 | 741 | |
d60d9f65 | 742 | # Initialize some variables set by options. |
9255ee31 EZ |
743 | ac_init_help= |
744 | ac_init_version=false | |
81ecdfbb RW |
745 | ac_unrecognized_opts= |
746 | ac_unrecognized_sep= | |
d60d9f65 SS |
747 | # The variables have the same names as the options, with |
748 | # dashes changed to underlines. | |
9255ee31 | 749 | cache_file=/dev/null |
d60d9f65 | 750 | exec_prefix=NONE |
d60d9f65 | 751 | no_create= |
d60d9f65 SS |
752 | no_recursion= |
753 | prefix=NONE | |
754 | program_prefix=NONE | |
755 | program_suffix=NONE | |
756 | program_transform_name=s,x,x, | |
757 | silent= | |
758 | site= | |
759 | srcdir= | |
d60d9f65 SS |
760 | verbose= |
761 | x_includes=NONE | |
762 | x_libraries=NONE | |
9255ee31 EZ |
763 | |
764 | # Installation directory options. | |
765 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
766 | # and all the variables that are supposed to be based on exec_prefix | |
767 | # by default will actually change. | |
768 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 769 | # (The list follows the same order as the GNU Coding Standards.) |
d60d9f65 SS |
770 | bindir='${exec_prefix}/bin' |
771 | sbindir='${exec_prefix}/sbin' | |
772 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
773 | datarootdir='${prefix}/share' |
774 | datadir='${datarootdir}' | |
d60d9f65 SS |
775 | sysconfdir='${prefix}/etc' |
776 | sharedstatedir='${prefix}/com' | |
777 | localstatedir='${prefix}/var' | |
d60d9f65 SS |
778 | includedir='${prefix}/include' |
779 | oldincludedir='/usr/include' | |
81ecdfbb RW |
780 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
781 | infodir='${datarootdir}/info' | |
782 | htmldir='${docdir}' | |
783 | dvidir='${docdir}' | |
784 | pdfdir='${docdir}' | |
785 | psdir='${docdir}' | |
786 | libdir='${exec_prefix}/lib' | |
787 | localedir='${datarootdir}/locale' | |
788 | mandir='${datarootdir}/man' | |
d60d9f65 | 789 | |
d60d9f65 | 790 | ac_prev= |
81ecdfbb | 791 | ac_dashdash= |
d60d9f65 SS |
792 | for ac_option |
793 | do | |
d60d9f65 SS |
794 | # If the previous option needs an argument, assign it. |
795 | if test -n "$ac_prev"; then | |
81ecdfbb | 796 | eval $ac_prev=\$ac_option |
d60d9f65 SS |
797 | ac_prev= |
798 | continue | |
799 | fi | |
800 | ||
81ecdfbb | 801 | case $ac_option in |
d0ac1c44 SM |
802 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
803 | *=) ac_optarg= ;; | |
804 | *) ac_optarg=yes ;; | |
81ecdfbb | 805 | esac |
d60d9f65 SS |
806 | |
807 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
808 | ||
81ecdfbb RW |
809 | case $ac_dashdash$ac_option in |
810 | --) | |
811 | ac_dashdash=yes ;; | |
d60d9f65 SS |
812 | |
813 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
814 | ac_prev=bindir ;; | |
815 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 816 | bindir=$ac_optarg ;; |
d60d9f65 SS |
817 | |
818 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 819 | ac_prev=build_alias ;; |
d60d9f65 | 820 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 821 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
822 | |
823 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
824 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
825 | ac_prev=cache_file ;; | |
826 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
827 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
9255ee31 EZ |
828 | cache_file=$ac_optarg ;; |
829 | ||
830 | --config-cache | -C) | |
831 | cache_file=config.cache ;; | |
d60d9f65 | 832 | |
81ecdfbb | 833 | -datadir | --datadir | --datadi | --datad) |
d60d9f65 | 834 | ac_prev=datadir ;; |
81ecdfbb | 835 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
9255ee31 | 836 | datadir=$ac_optarg ;; |
d60d9f65 | 837 | |
81ecdfbb RW |
838 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
839 | | --dataroo | --dataro | --datar) | |
840 | ac_prev=datarootdir ;; | |
841 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
842 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
843 | datarootdir=$ac_optarg ;; | |
844 | ||
d60d9f65 | 845 | -disable-* | --disable-*) |
81ecdfbb | 846 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 847 | # Reject names that are not valid shell variable names. |
81ecdfbb | 848 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 849 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
850 | ac_useropt_orig=$ac_useropt |
851 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
852 | case $ac_user_opts in | |
853 | *" | |
854 | "enable_$ac_useropt" | |
855 | "*) ;; | |
856 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
857 | ac_unrecognized_sep=', ';; | |
858 | esac | |
859 | eval enable_$ac_useropt=no ;; | |
860 | ||
861 | -docdir | --docdir | --docdi | --doc | --do) | |
862 | ac_prev=docdir ;; | |
863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
864 | docdir=$ac_optarg ;; | |
865 | ||
866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
867 | ac_prev=dvidir ;; | |
868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
869 | dvidir=$ac_optarg ;; | |
d60d9f65 SS |
870 | |
871 | -enable-* | --enable-*) | |
81ecdfbb | 872 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 873 | # Reject names that are not valid shell variable names. |
81ecdfbb | 874 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 875 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
876 | ac_useropt_orig=$ac_useropt |
877 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
878 | case $ac_user_opts in | |
879 | *" | |
880 | "enable_$ac_useropt" | |
881 | "*) ;; | |
882 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
883 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 884 | esac |
81ecdfbb | 885 | eval enable_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
886 | |
887 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
888 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
889 | | --exec | --exe | --ex) | |
890 | ac_prev=exec_prefix ;; | |
891 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
892 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
893 | | --exec=* | --exe=* | --ex=*) | |
9255ee31 | 894 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
895 | |
896 | -gas | --gas | --ga | --g) | |
897 | # Obsolete; use --with-gas. | |
898 | with_gas=yes ;; | |
899 | ||
9255ee31 EZ |
900 | -help | --help | --hel | --he | -h) |
901 | ac_init_help=long ;; | |
902 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
903 | ac_init_help=recursive ;; | |
904 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
905 | ac_init_help=short ;; | |
d60d9f65 SS |
906 | |
907 | -host | --host | --hos | --ho) | |
9255ee31 | 908 | ac_prev=host_alias ;; |
d60d9f65 | 909 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 910 | host_alias=$ac_optarg ;; |
d60d9f65 | 911 | |
81ecdfbb RW |
912 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
913 | ac_prev=htmldir ;; | |
914 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
915 | | --ht=*) | |
916 | htmldir=$ac_optarg ;; | |
917 | ||
d60d9f65 SS |
918 | -includedir | --includedir | --includedi | --included | --include \ |
919 | | --includ | --inclu | --incl | --inc) | |
920 | ac_prev=includedir ;; | |
921 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
922 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
9255ee31 | 923 | includedir=$ac_optarg ;; |
d60d9f65 SS |
924 | |
925 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
926 | ac_prev=infodir ;; | |
927 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 928 | infodir=$ac_optarg ;; |
d60d9f65 SS |
929 | |
930 | -libdir | --libdir | --libdi | --libd) | |
931 | ac_prev=libdir ;; | |
932 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 933 | libdir=$ac_optarg ;; |
d60d9f65 SS |
934 | |
935 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
936 | | --libexe | --libex | --libe) | |
937 | ac_prev=libexecdir ;; | |
938 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
939 | | --libexe=* | --libex=* | --libe=*) | |
9255ee31 | 940 | libexecdir=$ac_optarg ;; |
d60d9f65 | 941 | |
81ecdfbb RW |
942 | -localedir | --localedir | --localedi | --localed | --locale) |
943 | ac_prev=localedir ;; | |
944 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
945 | localedir=$ac_optarg ;; | |
946 | ||
d60d9f65 | 947 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 948 | | --localstate | --localstat | --localsta | --localst | --locals) |
d60d9f65 SS |
949 | ac_prev=localstatedir ;; |
950 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 951 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
9255ee31 | 952 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
953 | |
954 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
955 | ac_prev=mandir ;; | |
956 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 957 | mandir=$ac_optarg ;; |
d60d9f65 SS |
958 | |
959 | -nfp | --nfp | --nf) | |
960 | # Obsolete; use --without-fp. | |
961 | with_fp=no ;; | |
962 | ||
963 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
25ed0b71 | 964 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
965 | no_create=yes ;; |
966 | ||
967 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
968 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
969 | no_recursion=yes ;; | |
970 | ||
971 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
972 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
973 | | --oldin | --oldi | --old | --ol | --o) | |
974 | ac_prev=oldincludedir ;; | |
975 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
976 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
977 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
9255ee31 | 978 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
979 | |
980 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
981 | ac_prev=prefix ;; | |
982 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 983 | prefix=$ac_optarg ;; |
d60d9f65 SS |
984 | |
985 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
986 | | --program-pre | --program-pr | --program-p) | |
987 | ac_prev=program_prefix ;; | |
988 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
989 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
9255ee31 | 990 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
991 | |
992 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
993 | | --program-suf | --program-su | --program-s) | |
994 | ac_prev=program_suffix ;; | |
995 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
996 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
9255ee31 | 997 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
998 | |
999 | -program-transform-name | --program-transform-name \ | |
1000 | | --program-transform-nam | --program-transform-na \ | |
1001 | | --program-transform-n | --program-transform- \ | |
1002 | | --program-transform | --program-transfor \ | |
1003 | | --program-transfo | --program-transf \ | |
1004 | | --program-trans | --program-tran \ | |
1005 | | --progr-tra | --program-tr | --program-t) | |
1006 | ac_prev=program_transform_name ;; | |
1007 | -program-transform-name=* | --program-transform-name=* \ | |
1008 | | --program-transform-nam=* | --program-transform-na=* \ | |
1009 | | --program-transform-n=* | --program-transform-=* \ | |
1010 | | --program-transform=* | --program-transfor=* \ | |
1011 | | --program-transfo=* | --program-transf=* \ | |
1012 | | --program-trans=* | --program-tran=* \ | |
1013 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
9255ee31 | 1014 | program_transform_name=$ac_optarg ;; |
d60d9f65 | 1015 | |
81ecdfbb RW |
1016 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1017 | ac_prev=pdfdir ;; | |
1018 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1019 | pdfdir=$ac_optarg ;; | |
1020 | ||
1021 | -psdir | --psdir | --psdi | --psd | --ps) | |
1022 | ac_prev=psdir ;; | |
1023 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1024 | psdir=$ac_optarg ;; | |
1025 | ||
d60d9f65 SS |
1026 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1027 | | -silent | --silent | --silen | --sile | --sil) | |
1028 | silent=yes ;; | |
1029 | ||
1030 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1031 | ac_prev=sbindir ;; | |
1032 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1033 | | --sbi=* | --sb=*) | |
9255ee31 | 1034 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
1035 | |
1036 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1037 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1038 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1039 | | --sha | --sh) | |
1040 | ac_prev=sharedstatedir ;; | |
1041 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1042 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1043 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1044 | | --sha=* | --sh=*) | |
9255ee31 | 1045 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
1046 | |
1047 | -site | --site | --sit) | |
1048 | ac_prev=site ;; | |
1049 | -site=* | --site=* | --sit=*) | |
9255ee31 | 1050 | site=$ac_optarg ;; |
d60d9f65 SS |
1051 | |
1052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1053 | ac_prev=srcdir ;; | |
1054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 1055 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
1056 | |
1057 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1058 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1059 | ac_prev=sysconfdir ;; | |
1060 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1061 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
9255ee31 | 1062 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
1063 | |
1064 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 1065 | ac_prev=target_alias ;; |
d60d9f65 | 1066 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 1067 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
1068 | |
1069 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1070 | verbose=yes ;; | |
1071 | ||
9255ee31 EZ |
1072 | -version | --version | --versio | --versi | --vers | -V) |
1073 | ac_init_version=: ;; | |
d60d9f65 SS |
1074 | |
1075 | -with-* | --with-*) | |
81ecdfbb | 1076 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 1077 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1078 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1079 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1080 | ac_useropt_orig=$ac_useropt |
1081 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1082 | case $ac_user_opts in | |
1083 | *" | |
1084 | "with_$ac_useropt" | |
1085 | "*) ;; | |
1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1087 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 1088 | esac |
81ecdfbb | 1089 | eval with_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
1090 | |
1091 | -without-* | --without-*) | |
81ecdfbb | 1092 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 1093 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1094 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1095 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1096 | ac_useropt_orig=$ac_useropt |
1097 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1098 | case $ac_user_opts in | |
1099 | *" | |
1100 | "with_$ac_useropt" | |
1101 | "*) ;; | |
1102 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1103 | ac_unrecognized_sep=', ';; | |
1104 | esac | |
1105 | eval with_$ac_useropt=no ;; | |
d60d9f65 SS |
1106 | |
1107 | --x) | |
1108 | # Obsolete; use --with-x. | |
1109 | with_x=yes ;; | |
1110 | ||
1111 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1112 | | --x-incl | --x-inc | --x-in | --x-i) | |
1113 | ac_prev=x_includes ;; | |
1114 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1115 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
9255ee31 | 1116 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
1117 | |
1118 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1119 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1120 | ac_prev=x_libraries ;; | |
1121 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1122 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
9255ee31 | 1123 | x_libraries=$ac_optarg ;; |
d60d9f65 | 1124 | |
d0ac1c44 SM |
1125 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1126 | Try \`$0 --help' for more information" | |
d60d9f65 SS |
1127 | ;; |
1128 | ||
9255ee31 EZ |
1129 | *=*) |
1130 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1131 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1132 | case $ac_envvar in #( |
1133 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1134 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1135 | esac |
1136 | eval $ac_envvar=\$ac_optarg | |
9255ee31 EZ |
1137 | export $ac_envvar ;; |
1138 | ||
d60d9f65 | 1139 | *) |
9255ee31 | 1140 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1141 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
9255ee31 | 1142 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1143 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1144 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d60d9f65 SS |
1145 | ;; |
1146 | ||
1147 | esac | |
1148 | done | |
1149 | ||
1150 | if test -n "$ac_prev"; then | |
9255ee31 | 1151 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1152 | as_fn_error $? "missing argument to $ac_option" |
d60d9f65 | 1153 | fi |
d60d9f65 | 1154 | |
81ecdfbb RW |
1155 | if test -n "$ac_unrecognized_opts"; then |
1156 | case $enable_option_checking in | |
1157 | no) ;; | |
d0ac1c44 | 1158 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1159 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
9255ee31 | 1160 | esac |
81ecdfbb | 1161 | fi |
d60d9f65 | 1162 | |
81ecdfbb RW |
1163 | # Check all directory arguments for consistency. |
1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1165 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1167 | libdir localedir mandir | |
d60d9f65 | 1168 | do |
81ecdfbb RW |
1169 | eval ac_val=\$$ac_var |
1170 | # Remove trailing slashes. | |
1171 | case $ac_val in | |
1172 | */ ) | |
1173 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1174 | eval $ac_var=\$ac_val;; | |
1175 | esac | |
1176 | # Be sure to have absolute directory names. | |
9255ee31 | 1177 | case $ac_val in |
81ecdfbb RW |
1178 | [\\/$]* | ?:[\\/]* ) continue;; |
1179 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d60d9f65 | 1180 | esac |
d0ac1c44 | 1181 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d60d9f65 SS |
1182 | done |
1183 | ||
9255ee31 EZ |
1184 | # There might be people who depend on the old broken behavior: `$host' |
1185 | # used to hold the argument of --host etc. | |
25ed0b71 | 1186 | # FIXME: To remove some day. |
9255ee31 EZ |
1187 | build=$build_alias |
1188 | host=$host_alias | |
1189 | target=$target_alias | |
1190 | ||
25ed0b71 | 1191 | # FIXME: To remove some day. |
9255ee31 EZ |
1192 | if test "x$host_alias" != x; then |
1193 | if test "x$build_alias" = x; then | |
1194 | cross_compiling=maybe | |
9255ee31 EZ |
1195 | elif test "x$build_alias" != "x$host_alias"; then |
1196 | cross_compiling=yes | |
1197 | fi | |
1198 | fi | |
d60d9f65 | 1199 | |
9255ee31 EZ |
1200 | ac_tool_prefix= |
1201 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 1202 | |
9255ee31 | 1203 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 1204 | |
25ed0b71 | 1205 | |
81ecdfbb RW |
1206 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1207 | ac_ls_di=`ls -di .` && | |
1208 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1209 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1210 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1211 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1212 | |
1213 | ||
d60d9f65 SS |
1214 | # Find the source files, if location was not specified. |
1215 | if test -z "$srcdir"; then | |
1216 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1217 | # Try the directory containing this script, then the parent directory. |
1218 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1219 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1220 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1221 | X"$as_myself" : 'X\(//\)$' \| \ | |
1222 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1223 | $as_echo X"$as_myself" | | |
1224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1225 | s//\1/ | |
1226 | q | |
1227 | } | |
1228 | /^X\(\/\/\)[^/].*/{ | |
1229 | s//\1/ | |
1230 | q | |
1231 | } | |
1232 | /^X\(\/\/\)$/{ | |
1233 | s//\1/ | |
1234 | q | |
1235 | } | |
1236 | /^X\(\/\).*/{ | |
1237 | s//\1/ | |
1238 | q | |
1239 | } | |
1240 | s/.*/./; q'` | |
d60d9f65 | 1241 | srcdir=$ac_confdir |
81ecdfbb | 1242 | if test ! -r "$srcdir/$ac_unique_file"; then |
d60d9f65 SS |
1243 | srcdir=.. |
1244 | fi | |
1245 | else | |
1246 | ac_srcdir_defaulted=no | |
1247 | fi | |
81ecdfbb RW |
1248 | if test ! -r "$srcdir/$ac_unique_file"; then |
1249 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1250 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1251 | fi |
1252 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1253 | ac_abs_confdir=`( | |
d0ac1c44 | 1254 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1255 | pwd)` |
1256 | # When building in place, set srcdir=. | |
1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1258 | srcdir=. | |
1259 | fi | |
1260 | # Remove unnecessary trailing slashes from srcdir. | |
1261 | # Double slashes in file names in object file debugging info | |
1262 | # mess up M-x gdb in Emacs. | |
1263 | case $srcdir in | |
1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1265 | esac | |
1266 | for ac_var in $ac_precious_vars; do | |
1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1268 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1271 | done | |
d60d9f65 | 1272 | |
9255ee31 EZ |
1273 | # |
1274 | # Report the --help message. | |
1275 | # | |
1276 | if test "$ac_init_help" = "long"; then | |
1277 | # Omit some internal or obsolete options to make the list less imposing. | |
1278 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 1279 | cat <<_ACEOF |
cb41b9e7 | 1280 | \`configure' configures readline 8.0 to adapt to many kinds of systems. |
d60d9f65 | 1281 | |
9255ee31 | 1282 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 1283 | |
9255ee31 EZ |
1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1285 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 1286 | |
9255ee31 | 1287 | Defaults for the options are specified in brackets. |
d60d9f65 | 1288 | |
9255ee31 EZ |
1289 | Configuration: |
1290 | -h, --help display this help and exit | |
1291 | --help=short display options specific to this package | |
1292 | --help=recursive display the short help of all the included packages | |
1293 | -V, --version display version information and exit | |
d0ac1c44 | 1294 | -q, --quiet, --silent do not print \`checking ...' messages |
9255ee31 EZ |
1295 | --cache-file=FILE cache test results in FILE [disabled] |
1296 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1297 | -n, --no-create do not create output files | |
1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 1299 | |
9255ee31 EZ |
1300 | Installation directories: |
1301 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1302 | [$ac_default_prefix] |
9255ee31 | 1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1304 | [PREFIX] |
9255ee31 EZ |
1305 | |
1306 | By default, \`make install' will install all the files in | |
1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1309 | for instance \`--prefix=\$HOME'. | |
1310 | ||
1311 | For better control, use the options below. | |
1312 | ||
1313 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1314 | --bindir=DIR user executables [EPREFIX/bin] |
1315 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1316 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1320 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1321 | --includedir=DIR C header files [PREFIX/include] | |
1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1325 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1327 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/readline] | |
1329 | --htmldir=DIR html documentation [DOCDIR] | |
1330 | --dvidir=DIR dvi documentation [DOCDIR] | |
1331 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1332 | --psdir=DIR ps documentation [DOCDIR] | |
25ed0b71 | 1333 | _ACEOF |
d60d9f65 | 1334 | |
25ed0b71 | 1335 | cat <<\_ACEOF |
d60d9f65 | 1336 | |
9255ee31 EZ |
1337 | System types: |
1338 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
1339 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1340 | _ACEOF | |
d60d9f65 | 1341 | fi |
d60d9f65 | 1342 | |
9255ee31 EZ |
1343 | if test -n "$ac_init_help"; then |
1344 | case $ac_init_help in | |
cb41b9e7 | 1345 | short | recursive ) echo "Configuration of readline 8.0:";; |
9255ee31 | 1346 | esac |
25ed0b71 | 1347 | cat <<\_ACEOF |
d60d9f65 | 1348 | |
9255ee31 | 1349 | Optional Features: |
81ecdfbb | 1350 | --disable-option-checking ignore unrecognized --enable/--with options |
9255ee31 EZ |
1351 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1352 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5bdf8622 | 1353 | --enable-multibyte enable multibyte characters if OS supports them |
d0ac1c44 | 1354 | --enable-static build static libraries [[default=YES]] |
cb41b9e7 TT |
1355 | --disable-install-examples |
1356 | don't install examples [[default=install]] | |
cc88a640 | 1357 | --disable-largefile omit support for large files |
d60d9f65 | 1358 | |
9255ee31 EZ |
1359 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1362 | --with-curses use the curses library instead of the termcap | |
1363 | library | |
1364 | ||
1365 | Some influential environment variables: | |
1366 | CC C compiler command | |
1367 | CFLAGS C compiler flags | |
1368 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1369 | nonstandard directory <lib dir> | |
81ecdfbb | 1370 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1371 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1372 | you have headers in a nonstandard directory <include dir> |
9255ee31 EZ |
1373 | CPP C preprocessor |
1374 | ||
1375 | Use these variables to override the choices made by `configure' or to help | |
1376 | it to find libraries and programs with nonstandard names/locations. | |
1377 | ||
1378 | Report bugs to <bug-readline@gnu.org>. | |
25ed0b71 | 1379 | _ACEOF |
81ecdfbb | 1380 | ac_status=$? |
9255ee31 | 1381 | fi |
d60d9f65 | 1382 | |
9255ee31 EZ |
1383 | if test "$ac_init_help" = "recursive"; then |
1384 | # If there are subdirs, report their specific --help. | |
25ed0b71 | 1385 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1386 | test -d "$ac_dir" || |
1387 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1388 | continue | |
25ed0b71 KW |
1389 | ac_builddir=. |
1390 | ||
81ecdfbb RW |
1391 | case "$ac_dir" in |
1392 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1393 | *) | |
1394 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1395 | # A ".." for each directory in $ac_dir_suffix. | |
1396 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1397 | case $ac_top_builddir_sub in | |
1398 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1399 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1400 | esac ;; | |
1401 | esac | |
1402 | ac_abs_top_builddir=$ac_pwd | |
1403 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1404 | # for backward compatibility: | |
1405 | ac_top_builddir=$ac_top_build_prefix | |
d60d9f65 | 1406 | |
25ed0b71 | 1407 | case $srcdir in |
81ecdfbb | 1408 | .) # We are building in place. |
25ed0b71 | 1409 | ac_srcdir=. |
81ecdfbb RW |
1410 | ac_top_srcdir=$ac_top_builddir_sub |
1411 | ac_abs_top_srcdir=$ac_pwd ;; | |
1412 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 1413 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1414 | ac_top_srcdir=$srcdir |
1415 | ac_abs_top_srcdir=$srcdir ;; | |
1416 | *) # Relative name. | |
1417 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1418 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1419 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
430b7832 | 1420 | esac |
81ecdfbb RW |
1421 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1422 | ||
1423 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1424 | # Check for guested configure. | |
1425 | if test -f "$ac_srcdir/configure.gnu"; then | |
1426 | echo && | |
1427 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1428 | elif test -f "$ac_srcdir/configure"; then | |
1429 | echo && | |
1430 | $SHELL "$ac_srcdir/configure" --help=recursive | |
9255ee31 | 1431 | else |
81ecdfbb RW |
1432 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1433 | fi || ac_status=$? | |
1434 | cd "$ac_pwd" || { ac_status=$?; break; } | |
9255ee31 | 1435 | done |
d60d9f65 SS |
1436 | fi |
1437 | ||
81ecdfbb | 1438 | test -n "$ac_init_help" && exit $ac_status |
9255ee31 | 1439 | if $ac_init_version; then |
25ed0b71 | 1440 | cat <<\_ACEOF |
cb41b9e7 | 1441 | readline configure 8.0 |
d0ac1c44 | 1442 | generated by GNU Autoconf 2.69 |
d60d9f65 | 1443 | |
d0ac1c44 | 1444 | Copyright (C) 2012 Free Software Foundation, Inc. |
9255ee31 EZ |
1445 | This configure script is free software; the Free Software Foundation |
1446 | gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 | 1447 | _ACEOF |
81ecdfbb | 1448 | exit |
d60d9f65 SS |
1449 | fi |
1450 | ||
81ecdfbb RW |
1451 | ## ------------------------ ## |
1452 | ## Autoconf initialization. ## | |
1453 | ## ------------------------ ## | |
9255ee31 | 1454 | |
81ecdfbb RW |
1455 | # ac_fn_c_try_compile LINENO |
1456 | # -------------------------- | |
1457 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1458 | ac_fn_c_try_compile () | |
9255ee31 | 1459 | { |
81ecdfbb RW |
1460 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1461 | rm -f conftest.$ac_objext | |
1462 | if { { ac_try="$ac_compile" | |
1463 | case "(($ac_try" in | |
1464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1465 | *) ac_try_echo=$ac_try;; | |
1466 | esac | |
1467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1468 | $as_echo "$ac_try_echo"; } >&5 | |
1469 | (eval "$ac_compile") 2>conftest.err | |
1470 | ac_status=$? | |
1471 | if test -s conftest.err; then | |
1472 | grep -v '^ *+' conftest.err >conftest.er1 | |
1473 | cat conftest.er1 >&5 | |
1474 | mv -f conftest.er1 conftest.err | |
1475 | fi | |
1476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1477 | test $ac_status = 0; } && { | |
1478 | test -z "$ac_c_werror_flag" || | |
1479 | test ! -s conftest.err | |
1480 | } && test -s conftest.$ac_objext; then : | |
1481 | ac_retval=0 | |
1482 | else | |
1483 | $as_echo "$as_me: failed program was:" >&5 | |
1484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1485 | |
81ecdfbb RW |
1486 | ac_retval=1 |
1487 | fi | |
d0ac1c44 SM |
1488 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1489 | as_fn_set_status $ac_retval | |
9255ee31 | 1490 | |
81ecdfbb | 1491 | } # ac_fn_c_try_compile |
9255ee31 | 1492 | |
81ecdfbb RW |
1493 | # ac_fn_c_try_cpp LINENO |
1494 | # ---------------------- | |
1495 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1496 | ac_fn_c_try_cpp () | |
1497 | { | |
1498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1499 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1500 | case "(($ac_try" in | |
1501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1502 | *) ac_try_echo=$ac_try;; | |
1503 | esac | |
1504 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1505 | $as_echo "$ac_try_echo"; } >&5 | |
1506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1507 | ac_status=$? | |
1508 | if test -s conftest.err; then | |
1509 | grep -v '^ *+' conftest.err >conftest.er1 | |
1510 | cat conftest.er1 >&5 | |
1511 | mv -f conftest.er1 conftest.err | |
1512 | fi | |
1513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1514 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1515 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1516 | test ! -s conftest.err | |
1517 | }; then : | |
1518 | ac_retval=0 | |
1519 | else | |
1520 | $as_echo "$as_me: failed program was:" >&5 | |
1521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1522 | |
81ecdfbb RW |
1523 | ac_retval=1 |
1524 | fi | |
d0ac1c44 SM |
1525 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1526 | as_fn_set_status $ac_retval | |
25ed0b71 | 1527 | |
81ecdfbb | 1528 | } # ac_fn_c_try_cpp |
25ed0b71 | 1529 | |
81ecdfbb RW |
1530 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1531 | # ------------------------------------------------------- | |
1532 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1533 | # the include files in INCLUDES and setting the cache variable VAR | |
1534 | # accordingly. | |
1535 | ac_fn_c_check_header_mongrel () | |
1536 | { | |
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1538 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1540 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1541 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1542 | $as_echo_n "(cached) " >&6 |
1543 | fi | |
1544 | eval ac_res=\$$3 | |
1545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1546 | $as_echo "$ac_res" >&6; } | |
1547 | else | |
1548 | # Is the header compilable? | |
1549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1550 | $as_echo_n "checking $2 usability... " >&6; } | |
1551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1552 | /* end confdefs.h. */ | |
1553 | $4 | |
1554 | #include <$2> | |
1555 | _ACEOF | |
1556 | if ac_fn_c_try_compile "$LINENO"; then : | |
1557 | ac_header_compiler=yes | |
1558 | else | |
1559 | ac_header_compiler=no | |
1560 | fi | |
1561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1563 | $as_echo "$ac_header_compiler" >&6; } | |
1564 | ||
1565 | # Is the header present? | |
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1567 | $as_echo_n "checking $2 presence... " >&6; } | |
1568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1569 | /* end confdefs.h. */ | |
1570 | #include <$2> | |
1571 | _ACEOF | |
1572 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1573 | ac_header_preproc=yes | |
1574 | else | |
1575 | ac_header_preproc=no | |
1576 | fi | |
d0ac1c44 | 1577 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1579 | $as_echo "$ac_header_preproc" >&6; } | |
1580 | ||
1581 | # So? What about this header? | |
1582 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1583 | yes:no: ) | |
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1585 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1587 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1588 | ;; | |
1589 | no:yes:* ) | |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1591 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1593 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1595 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1597 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1599 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d0ac1c44 | 1600 | ( $as_echo "## ----------------------------------- ## |
81ecdfbb | 1601 | ## Report this to bug-readline@gnu.org ## |
d0ac1c44 | 1602 | ## ----------------------------------- ##" |
81ecdfbb RW |
1603 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1604 | ;; | |
1605 | esac | |
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1607 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1608 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1609 | $as_echo_n "(cached) " >&6 |
1610 | else | |
1611 | eval "$3=\$ac_header_compiler" | |
1612 | fi | |
1613 | eval ac_res=\$$3 | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1615 | $as_echo "$ac_res" >&6; } | |
1616 | fi | |
d0ac1c44 | 1617 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1618 | |
1619 | } # ac_fn_c_check_header_mongrel | |
1620 | ||
1621 | # ac_fn_c_try_run LINENO | |
1622 | # ---------------------- | |
1623 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1624 | # that executables *can* be run. | |
1625 | ac_fn_c_try_run () | |
1626 | { | |
1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1628 | if { { ac_try="$ac_link" | |
1629 | case "(($ac_try" in | |
1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1631 | *) ac_try_echo=$ac_try;; | |
1632 | esac | |
1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1634 | $as_echo "$ac_try_echo"; } >&5 | |
1635 | (eval "$ac_link") 2>&5 | |
1636 | ac_status=$? | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1639 | { { case "(($ac_try" in | |
1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1641 | *) ac_try_echo=$ac_try;; | |
1642 | esac | |
1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1644 | $as_echo "$ac_try_echo"; } >&5 | |
1645 | (eval "$ac_try") 2>&5 | |
1646 | ac_status=$? | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1648 | test $ac_status = 0; }; }; then : | |
1649 | ac_retval=0 | |
1650 | else | |
1651 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1652 | $as_echo "$as_me: failed program was:" >&5 | |
1653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1654 | ||
1655 | ac_retval=$ac_status | |
1656 | fi | |
1657 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1658 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1659 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1660 | |
1661 | } # ac_fn_c_try_run | |
1662 | ||
1663 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1664 | # ------------------------------------------------------- | |
1665 | # Tests whether HEADER exists and can be compiled using the include files in | |
1666 | # INCLUDES, setting the cache variable VAR accordingly. | |
1667 | ac_fn_c_check_header_compile () | |
1668 | { | |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1671 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1672 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1673 | $as_echo_n "(cached) " >&6 |
1674 | else | |
1675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1676 | /* end confdefs.h. */ | |
1677 | $4 | |
1678 | #include <$2> | |
1679 | _ACEOF | |
1680 | if ac_fn_c_try_compile "$LINENO"; then : | |
1681 | eval "$3=yes" | |
1682 | else | |
1683 | eval "$3=no" | |
1684 | fi | |
1685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1686 | fi | |
1687 | eval ac_res=\$$3 | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1689 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1691 | |
1692 | } # ac_fn_c_check_header_compile | |
1693 | ||
1694 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1695 | # ------------------------------------------- | |
1696 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1697 | # variable VAR accordingly. | |
1698 | ac_fn_c_check_type () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1702 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1703 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1704 | $as_echo_n "(cached) " >&6 |
1705 | else | |
1706 | eval "$3=no" | |
1707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1708 | /* end confdefs.h. */ | |
1709 | $4 | |
1710 | int | |
1711 | main () | |
1712 | { | |
1713 | if (sizeof ($2)) | |
1714 | return 0; | |
1715 | ; | |
1716 | return 0; | |
1717 | } | |
1718 | _ACEOF | |
1719 | if ac_fn_c_try_compile "$LINENO"; then : | |
1720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1721 | /* end confdefs.h. */ | |
1722 | $4 | |
1723 | int | |
1724 | main () | |
1725 | { | |
1726 | if (sizeof (($2))) | |
1727 | return 0; | |
1728 | ; | |
1729 | return 0; | |
1730 | } | |
1731 | _ACEOF | |
1732 | if ac_fn_c_try_compile "$LINENO"; then : | |
1733 | ||
1734 | else | |
1735 | eval "$3=yes" | |
1736 | fi | |
1737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1738 | fi | |
1739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1740 | fi | |
1741 | eval ac_res=\$$3 | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1743 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1744 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1745 | |
1746 | } # ac_fn_c_check_type | |
1747 | ||
1748 | # ac_fn_c_try_link LINENO | |
1749 | # ----------------------- | |
1750 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1751 | ac_fn_c_try_link () | |
1752 | { | |
1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1755 | if { { ac_try="$ac_link" | |
1756 | case "(($ac_try" in | |
1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1758 | *) ac_try_echo=$ac_try;; | |
1759 | esac | |
1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1761 | $as_echo "$ac_try_echo"; } >&5 | |
1762 | (eval "$ac_link") 2>conftest.err | |
1763 | ac_status=$? | |
1764 | if test -s conftest.err; then | |
1765 | grep -v '^ *+' conftest.err >conftest.er1 | |
1766 | cat conftest.er1 >&5 | |
1767 | mv -f conftest.er1 conftest.err | |
1768 | fi | |
1769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1770 | test $ac_status = 0; } && { | |
1771 | test -z "$ac_c_werror_flag" || | |
1772 | test ! -s conftest.err | |
1773 | } && test -s conftest$ac_exeext && { | |
1774 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1775 | test -x conftest$ac_exeext |
81ecdfbb RW |
1776 | }; then : |
1777 | ac_retval=0 | |
1778 | else | |
1779 | $as_echo "$as_me: failed program was:" >&5 | |
1780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1781 | ||
1782 | ac_retval=1 | |
1783 | fi | |
1784 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1785 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1786 | # interfere with the next link command; also delete a directory that is | |
1787 | # left behind by Apple's compiler. We do this before executing the actions. | |
1788 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1790 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1791 | |
1792 | } # ac_fn_c_try_link | |
1793 | ||
1794 | # ac_fn_c_check_func LINENO FUNC VAR | |
1795 | # ---------------------------------- | |
1796 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1797 | ac_fn_c_check_func () | |
1798 | { | |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1802 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1803 | $as_echo_n "(cached) " >&6 |
1804 | else | |
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 | /* end confdefs.h. */ | |
1807 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1809 | #define $2 innocuous_$2 | |
1810 | ||
1811 | /* System header to define __stub macros and hopefully few prototypes, | |
1812 | which can conflict with char $2 (); below. | |
1813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1814 | <limits.h> exists even on freestanding compilers. */ | |
1815 | ||
1816 | #ifdef __STDC__ | |
1817 | # include <limits.h> | |
1818 | #else | |
1819 | # include <assert.h> | |
1820 | #endif | |
1821 | ||
1822 | #undef $2 | |
1823 | ||
1824 | /* Override any GCC internal prototype to avoid an error. | |
1825 | Use char because int might match the return type of a GCC | |
1826 | builtin and then its argument prototype would still apply. */ | |
1827 | #ifdef __cplusplus | |
1828 | extern "C" | |
1829 | #endif | |
1830 | char $2 (); | |
1831 | /* The GNU C library defines this for functions which it implements | |
1832 | to always fail with ENOSYS. Some functions are actually named | |
1833 | something starting with __ and the normal name is an alias. */ | |
1834 | #if defined __stub_$2 || defined __stub___$2 | |
1835 | choke me | |
1836 | #endif | |
1837 | ||
1838 | int | |
1839 | main () | |
1840 | { | |
1841 | return $2 (); | |
1842 | ; | |
1843 | return 0; | |
1844 | } | |
1845 | _ACEOF | |
1846 | if ac_fn_c_try_link "$LINENO"; then : | |
1847 | eval "$3=yes" | |
1848 | else | |
1849 | eval "$3=no" | |
1850 | fi | |
1851 | rm -f core conftest.err conftest.$ac_objext \ | |
1852 | conftest$ac_exeext conftest.$ac_ext | |
1853 | fi | |
1854 | eval ac_res=\$$3 | |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1856 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1858 | |
1859 | } # ac_fn_c_check_func | |
775e241e TT |
1860 | |
1861 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1862 | # --------------------------------------------- | |
1863 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1864 | # accordingly. | |
1865 | ac_fn_c_check_decl () | |
1866 | { | |
1867 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1868 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1869 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1871 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1872 | if eval \${$3+:} false; then : | |
1873 | $as_echo_n "(cached) " >&6 | |
1874 | else | |
1875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1876 | /* end confdefs.h. */ | |
1877 | $4 | |
1878 | int | |
1879 | main () | |
1880 | { | |
1881 | #ifndef $as_decl_name | |
1882 | #ifdef __cplusplus | |
1883 | (void) $as_decl_use; | |
1884 | #else | |
1885 | (void) $as_decl_name; | |
1886 | #endif | |
1887 | #endif | |
1888 | ||
1889 | ; | |
1890 | return 0; | |
1891 | } | |
1892 | _ACEOF | |
1893 | if ac_fn_c_try_compile "$LINENO"; then : | |
1894 | eval "$3=yes" | |
1895 | else | |
1896 | eval "$3=no" | |
1897 | fi | |
1898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1899 | fi | |
1900 | eval ac_res=\$$3 | |
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1902 | $as_echo "$ac_res" >&6; } | |
1903 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1904 | ||
1905 | } # ac_fn_c_check_decl | |
cb41b9e7 TT |
1906 | |
1907 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1908 | # -------------------------------------------- | |
1909 | # Tries to find the compile-time value of EXPR in a program that includes | |
1910 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1911 | # computed | |
1912 | ac_fn_c_compute_int () | |
1913 | { | |
1914 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1915 | if test "$cross_compiling" = yes; then | |
1916 | # Depending upon the size, compute the lo and hi bounds. | |
1917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1918 | /* end confdefs.h. */ | |
1919 | $4 | |
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1924 | test_array [0] = 0; | |
1925 | return test_array [0]; | |
1926 | ||
1927 | ; | |
1928 | return 0; | |
1929 | } | |
1930 | _ACEOF | |
1931 | if ac_fn_c_try_compile "$LINENO"; then : | |
1932 | ac_lo=0 ac_mid=0 | |
1933 | while :; do | |
1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1935 | /* end confdefs.h. */ | |
1936 | $4 | |
1937 | int | |
1938 | main () | |
1939 | { | |
1940 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1941 | test_array [0] = 0; | |
1942 | return test_array [0]; | |
1943 | ||
1944 | ; | |
1945 | return 0; | |
1946 | } | |
1947 | _ACEOF | |
1948 | if ac_fn_c_try_compile "$LINENO"; then : | |
1949 | ac_hi=$ac_mid; break | |
1950 | else | |
1951 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1952 | if test $ac_lo -le $ac_mid; then | |
1953 | ac_lo= ac_hi= | |
1954 | break | |
1955 | fi | |
1956 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1957 | fi | |
1958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1959 | done | |
1960 | else | |
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1962 | /* end confdefs.h. */ | |
1963 | $4 | |
1964 | int | |
1965 | main () | |
1966 | { | |
1967 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1968 | test_array [0] = 0; | |
1969 | return test_array [0]; | |
1970 | ||
1971 | ; | |
1972 | return 0; | |
1973 | } | |
1974 | _ACEOF | |
1975 | if ac_fn_c_try_compile "$LINENO"; then : | |
1976 | ac_hi=-1 ac_mid=-1 | |
1977 | while :; do | |
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1979 | /* end confdefs.h. */ | |
1980 | $4 | |
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1985 | test_array [0] = 0; | |
1986 | return test_array [0]; | |
1987 | ||
1988 | ; | |
1989 | return 0; | |
1990 | } | |
1991 | _ACEOF | |
1992 | if ac_fn_c_try_compile "$LINENO"; then : | |
1993 | ac_lo=$ac_mid; break | |
1994 | else | |
1995 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1996 | if test $ac_mid -le $ac_hi; then | |
1997 | ac_lo= ac_hi= | |
1998 | break | |
1999 | fi | |
2000 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2001 | fi | |
2002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2003 | done | |
2004 | else | |
2005 | ac_lo= ac_hi= | |
2006 | fi | |
2007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 | fi | |
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2010 | # Binary search between lo and hi bounds. | |
2011 | while test "x$ac_lo" != "x$ac_hi"; do | |
2012 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2014 | /* end confdefs.h. */ | |
2015 | $4 | |
2016 | int | |
2017 | main () | |
2018 | { | |
2019 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2020 | test_array [0] = 0; | |
2021 | return test_array [0]; | |
2022 | ||
2023 | ; | |
2024 | return 0; | |
2025 | } | |
2026 | _ACEOF | |
2027 | if ac_fn_c_try_compile "$LINENO"; then : | |
2028 | ac_hi=$ac_mid | |
2029 | else | |
2030 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2031 | fi | |
2032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2033 | done | |
2034 | case $ac_lo in #(( | |
2035 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2036 | '') ac_retval=1 ;; | |
2037 | esac | |
2038 | else | |
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2040 | /* end confdefs.h. */ | |
2041 | $4 | |
2042 | static long int longval () { return $2; } | |
2043 | static unsigned long int ulongval () { return $2; } | |
2044 | #include <stdio.h> | |
2045 | #include <stdlib.h> | |
2046 | int | |
2047 | main () | |
2048 | { | |
2049 | ||
2050 | FILE *f = fopen ("conftest.val", "w"); | |
2051 | if (! f) | |
2052 | return 1; | |
2053 | if (($2) < 0) | |
2054 | { | |
2055 | long int i = longval (); | |
2056 | if (i != ($2)) | |
2057 | return 1; | |
2058 | fprintf (f, "%ld", i); | |
2059 | } | |
2060 | else | |
2061 | { | |
2062 | unsigned long int i = ulongval (); | |
2063 | if (i != ($2)) | |
2064 | return 1; | |
2065 | fprintf (f, "%lu", i); | |
2066 | } | |
2067 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2068 | on some platforms. */ | |
2069 | return ferror (f) || fclose (f) != 0; | |
2070 | ||
2071 | ; | |
2072 | return 0; | |
2073 | } | |
2074 | _ACEOF | |
2075 | if ac_fn_c_try_run "$LINENO"; then : | |
2076 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2077 | else | |
2078 | ac_retval=1 | |
2079 | fi | |
2080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2081 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2082 | rm -f conftest.val | |
2083 | ||
2084 | fi | |
2085 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2086 | as_fn_set_status $ac_retval | |
2087 | ||
2088 | } # ac_fn_c_compute_int | |
81ecdfbb RW |
2089 | cat >config.log <<_ACEOF |
2090 | This file contains any messages produced by compilers while | |
2091 | running configure, to aid debugging if configure makes a mistake. | |
2092 | ||
cb41b9e7 | 2093 | It was created by readline $as_me 8.0, which was |
d0ac1c44 | 2094 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2095 | |
2096 | $ $0 $@ | |
2097 | ||
2098 | _ACEOF | |
2099 | exec 5>>config.log | |
2100 | { | |
2101 | cat <<_ASUNAME | |
2102 | ## --------- ## | |
2103 | ## Platform. ## | |
2104 | ## --------- ## | |
2105 | ||
2106 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2107 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2108 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2109 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2110 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2111 | ||
2112 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2113 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2114 | ||
2115 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2116 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2117 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2118 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2119 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2120 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2121 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2122 | ||
2123 | _ASUNAME | |
2124 | ||
2125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2126 | for as_dir in $PATH | |
2127 | do | |
2128 | IFS=$as_save_IFS | |
2129 | test -z "$as_dir" && as_dir=. | |
2130 | $as_echo "PATH: $as_dir" | |
2131 | done | |
2132 | IFS=$as_save_IFS | |
2133 | ||
2134 | } >&5 | |
9255ee31 | 2135 | |
25ed0b71 KW |
2136 | cat >&5 <<_ACEOF |
2137 | ||
2138 | ||
2139 | ## ----------- ## | |
2140 | ## Core tests. ## | |
2141 | ## ----------- ## | |
2142 | ||
2143 | _ACEOF | |
9255ee31 | 2144 | |
9255ee31 EZ |
2145 | |
2146 | # Keep a trace of the command line. | |
2147 | # Strip out --no-create and --no-recursion so they do not pile up. | |
25ed0b71 | 2148 | # Strip out --silent because we don't want to record it for future runs. |
9255ee31 | 2149 | # Also quote any args containing shell meta-characters. |
25ed0b71 | 2150 | # Make two passes to allow for proper duplicate-argument suppression. |
9255ee31 | 2151 | ac_configure_args= |
25ed0b71 KW |
2152 | ac_configure_args0= |
2153 | ac_configure_args1= | |
25ed0b71 KW |
2154 | ac_must_keep_next=false |
2155 | for ac_pass in 1 2 | |
9255ee31 | 2156 | do |
25ed0b71 KW |
2157 | for ac_arg |
2158 | do | |
2159 | case $ac_arg in | |
2160 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2162 | | -silent | --silent | --silen | --sile | --sil) | |
2163 | continue ;; | |
81ecdfbb RW |
2164 | *\'*) |
2165 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
25ed0b71 KW |
2166 | esac |
2167 | case $ac_pass in | |
81ecdfbb | 2168 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
25ed0b71 | 2169 | 2) |
81ecdfbb | 2170 | as_fn_append ac_configure_args1 " '$ac_arg'" |
25ed0b71 | 2171 | if test $ac_must_keep_next = true; then |
430b7832 | 2172 | ac_must_keep_next=false # Got value, back to normal. |
25ed0b71 | 2173 | else |
430b7832 MM |
2174 | case $ac_arg in |
2175 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2176 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2177 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2178 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2179 | case "$ac_configure_args0 " in | |
2180 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2181 | esac | |
2182 | ;; | |
2183 | -* ) ac_must_keep_next=true ;; | |
2184 | esac | |
25ed0b71 | 2185 | fi |
81ecdfbb | 2186 | as_fn_append ac_configure_args " '$ac_arg'" |
25ed0b71 KW |
2187 | ;; |
2188 | esac | |
2189 | done | |
9255ee31 | 2190 | done |
81ecdfbb RW |
2191 | { ac_configure_args0=; unset ac_configure_args0;} |
2192 | { ac_configure_args1=; unset ac_configure_args1;} | |
9255ee31 EZ |
2193 | |
2194 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2195 | # config.log. We remove comments because anyway the quotes in there | |
2196 | # would cause problems or look ugly. | |
81ecdfbb RW |
2197 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2198 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
9255ee31 EZ |
2199 | trap 'exit_status=$? |
2200 | # Save into config.log some information that might help in debugging. | |
25ed0b71 KW |
2201 | { |
2202 | echo | |
2203 | ||
d0ac1c44 | 2204 | $as_echo "## ---------------- ## |
25ed0b71 | 2205 | ## Cache variables. ## |
d0ac1c44 | 2206 | ## ---------------- ##" |
25ed0b71 KW |
2207 | echo |
2208 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2209 | ( |
2210 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2211 | eval ac_val=\$$ac_var | |
2212 | case $ac_val in #( | |
2213 | *${as_nl}*) | |
2214 | case $ac_var in #( | |
2215 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2216 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2217 | esac | |
2218 | case $ac_var in #( | |
2219 | _ | IFS | as_nl) ;; #( | |
2220 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2221 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2222 | esac ;; | |
2223 | esac | |
2224 | done | |
9255ee31 | 2225 | (set) 2>&1 | |
81ecdfbb RW |
2226 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2227 | *${as_nl}ac_space=\ *) | |
9255ee31 | 2228 | sed -n \ |
81ecdfbb RW |
2229 | "s/'\''/'\''\\\\'\'''\''/g; |
2230 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2231 | ;; #( | |
9255ee31 | 2232 | *) |
81ecdfbb | 2233 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 2234 | ;; |
81ecdfbb RW |
2235 | esac | |
2236 | sort | |
2237 | ) | |
25ed0b71 KW |
2238 | echo |
2239 | ||
d0ac1c44 | 2240 | $as_echo "## ----------------- ## |
25ed0b71 | 2241 | ## Output variables. ## |
d0ac1c44 | 2242 | ## ----------------- ##" |
25ed0b71 KW |
2243 | echo |
2244 | for ac_var in $ac_subst_vars | |
2245 | do | |
81ecdfbb RW |
2246 | eval ac_val=\$$ac_var |
2247 | case $ac_val in | |
2248 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2249 | esac | |
2250 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
2251 | done | sort |
2252 | echo | |
2253 | ||
2254 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2255 | $as_echo "## ------------------- ## |
81ecdfbb | 2256 | ## File substitutions. ## |
d0ac1c44 | 2257 | ## ------------------- ##" |
25ed0b71 KW |
2258 | echo |
2259 | for ac_var in $ac_subst_files | |
2260 | do | |
81ecdfbb RW |
2261 | eval ac_val=\$$ac_var |
2262 | case $ac_val in | |
2263 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2264 | esac | |
2265 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
2266 | done | sort |
2267 | echo | |
2268 | fi | |
2269 | ||
2270 | if test -s confdefs.h; then | |
d0ac1c44 | 2271 | $as_echo "## ----------- ## |
25ed0b71 | 2272 | ## confdefs.h. ## |
d0ac1c44 | 2273 | ## ----------- ##" |
25ed0b71 | 2274 | echo |
81ecdfbb | 2275 | cat confdefs.h |
25ed0b71 KW |
2276 | echo |
2277 | fi | |
2278 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2279 | $as_echo "$as_me: caught signal $ac_signal" |
2280 | $as_echo "$as_me: exit $exit_status" | |
25ed0b71 | 2281 | } >&5 |
81ecdfbb RW |
2282 | rm -f core *.core core.conftest.* && |
2283 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
9255ee31 | 2284 | exit $exit_status |
81ecdfbb | 2285 | ' 0 |
9255ee31 | 2286 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2287 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
9255ee31 EZ |
2288 | done |
2289 | ac_signal=0 | |
2290 | ||
2291 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2292 | rm -f -r conftest* confdefs.h |
2293 | ||
2294 | $as_echo "/* confdefs.h */" > confdefs.h | |
9255ee31 | 2295 | |
25ed0b71 KW |
2296 | # Predefined preprocessor variables. |
2297 | ||
2298 | cat >>confdefs.h <<_ACEOF | |
2299 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2300 | _ACEOF | |
2301 | ||
25ed0b71 KW |
2302 | cat >>confdefs.h <<_ACEOF |
2303 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2304 | _ACEOF | |
2305 | ||
25ed0b71 KW |
2306 | cat >>confdefs.h <<_ACEOF |
2307 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2308 | _ACEOF | |
2309 | ||
25ed0b71 KW |
2310 | cat >>confdefs.h <<_ACEOF |
2311 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2312 | _ACEOF | |
2313 | ||
25ed0b71 KW |
2314 | cat >>confdefs.h <<_ACEOF |
2315 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2316 | _ACEOF | |
2317 | ||
81ecdfbb RW |
2318 | cat >>confdefs.h <<_ACEOF |
2319 | #define PACKAGE_URL "$PACKAGE_URL" | |
2320 | _ACEOF | |
2321 | ||
25ed0b71 | 2322 | |
9255ee31 | 2323 | # Let the site file select an alternate cache file if it wants to. |
81ecdfbb RW |
2324 | # Prefer an explicitly selected file to automatically selected ones. |
2325 | ac_site_file1=NONE | |
2326 | ac_site_file2=NONE | |
2327 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2328 | # We do not want a PATH search for config.site. |
2329 | case $CONFIG_SITE in #(( | |
2330 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2331 | */*) ac_site_file1=$CONFIG_SITE;; | |
2332 | *) ac_site_file1=./$CONFIG_SITE;; | |
2333 | esac | |
81ecdfbb RW |
2334 | elif test "x$prefix" != xNONE; then |
2335 | ac_site_file1=$prefix/share/config.site | |
2336 | ac_site_file2=$prefix/etc/config.site | |
2337 | else | |
2338 | ac_site_file1=$ac_default_prefix/share/config.site | |
2339 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2340 | fi | |
2341 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2342 | do | |
2343 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2344 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2346 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
25ed0b71 | 2347 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2348 | . "$ac_site_file" \ |
2349 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2350 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2351 | as_fn_error $? "failed to load site script $ac_site_file | |
2352 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 EZ |
2353 | fi |
2354 | done | |
2355 | ||
2356 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2357 | # Some versions of bash will fail to source /dev/null (special files |
2358 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2359 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2361 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
9255ee31 | 2362 | case $cache_file in |
81ecdfbb RW |
2363 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2364 | *) . "./$cache_file";; | |
9255ee31 EZ |
2365 | esac |
2366 | fi | |
2367 | else | |
81ecdfbb RW |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2369 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
9255ee31 EZ |
2370 | >$cache_file |
2371 | fi | |
2372 | ||
2373 | # Check that the precious variables saved in the cache have kept the same | |
2374 | # value. | |
2375 | ac_cache_corrupted=false | |
81ecdfbb | 2376 | for ac_var in $ac_precious_vars; do |
9255ee31 EZ |
2377 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2378 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2379 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2380 | eval ac_new_val=\$ac_env_${ac_var}_value | |
9255ee31 EZ |
2381 | case $ac_old_set,$ac_new_set in |
2382 | set,) | |
81ecdfbb RW |
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2384 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
9255ee31 EZ |
2385 | ac_cache_corrupted=: ;; |
2386 | ,set) | |
81ecdfbb RW |
2387 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2388 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
9255ee31 EZ |
2389 | ac_cache_corrupted=: ;; |
2390 | ,);; | |
2391 | *) | |
2392 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2393 | # differences in whitespace do not lead to failure. |
2394 | ac_old_val_w=`echo x $ac_old_val` | |
2395 | ac_new_val_w=`echo x $ac_new_val` | |
2396 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2398 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2399 | ac_cache_corrupted=: | |
2400 | else | |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2402 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2403 | eval $ac_var=\$ac_old_val | |
2404 | fi | |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2406 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2408 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
9255ee31 EZ |
2409 | fi;; |
2410 | esac | |
25ed0b71 | 2411 | # Pass precious variables to config.status. |
9255ee31 EZ |
2412 | if test "$ac_new_set" = set; then |
2413 | case $ac_new_val in | |
81ecdfbb | 2414 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
25ed0b71 KW |
2415 | *) ac_arg=$ac_var=$ac_new_val ;; |
2416 | esac | |
2417 | case " $ac_configure_args " in | |
2418 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2419 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
9255ee31 EZ |
2420 | esac |
2421 | fi | |
2422 | done | |
2423 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2424 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2427 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2428 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
9255ee31 | 2429 | fi |
81ecdfbb RW |
2430 | ## -------------------- ## |
2431 | ## Main body of script. ## | |
2432 | ## -------------------- ## | |
9255ee31 EZ |
2433 | |
2434 | ac_ext=c | |
2435 | ac_cpp='$CPP $CPPFLAGS' | |
2436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2439 | ||
9255ee31 | 2440 | |
25ed0b71 KW |
2441 | |
2442 | ||
2443 | ||
2444 | ||
5836a818 PP |
2445 | |
2446 | ||
2447 | ||
9255ee31 | 2448 | ac_aux_dir= |
5836a818 | 2449 | for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do |
d0ac1c44 SM |
2450 | if test -f "$ac_dir/install-sh"; then |
2451 | ac_aux_dir=$ac_dir | |
2452 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2453 | break | |
2454 | elif test -f "$ac_dir/install.sh"; then | |
2455 | ac_aux_dir=$ac_dir | |
2456 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2457 | break | |
2458 | elif test -f "$ac_dir/shtool"; then | |
2459 | ac_aux_dir=$ac_dir | |
2460 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2461 | break | |
2462 | fi | |
9255ee31 EZ |
2463 | done |
2464 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2465 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5 |
9255ee31 | 2466 | fi |
9255ee31 | 2467 | |
81ecdfbb RW |
2468 | # These three variables are undocumented and unsupported, |
2469 | # and are intended to be withdrawn in a future Autoconf release. | |
2470 | # They can cause serious problems if a builder's source tree is in a directory | |
2471 | # whose full name contains unusual characters. | |
2472 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2473 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2474 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2475 | ||
2476 | ||
2477 | ac_config_headers="$ac_config_headers config.h" | |
5bdf8622 DJ |
2478 | |
2479 | ||
cb41b9e7 | 2480 | LIBVERSION=8.0 |
5bdf8622 | 2481 | |
9255ee31 | 2482 | # Make sure we can run config.sub. |
81ecdfbb | 2483 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2484 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2485 | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2487 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2488 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2489 | $as_echo_n "(cached) " >&6 |
2490 | else | |
2491 | ac_build_alias=$build_alias | |
2492 | test "x$ac_build_alias" = x && | |
2493 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2494 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2495 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2496 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2497 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2498 | |
2499 | fi | |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2501 | $as_echo "$ac_cv_build" >&6; } | |
2502 | case $ac_cv_build in | |
2503 | *-*-*) ;; | |
d0ac1c44 | 2504 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2505 | esac |
9255ee31 | 2506 | build=$ac_cv_build |
81ecdfbb RW |
2507 | ac_save_IFS=$IFS; IFS='-' |
2508 | set x $ac_cv_build | |
2509 | shift | |
2510 | build_cpu=$1 | |
2511 | build_vendor=$2 | |
2512 | shift; shift | |
2513 | # Remember, the first character of IFS is used to create $*, | |
2514 | # except with old shells: | |
2515 | build_os=$* | |
2516 | IFS=$ac_save_IFS | |
2517 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2518 | |
25ed0b71 | 2519 | |
81ecdfbb RW |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2521 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2522 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
2523 | $as_echo_n "(cached) " >&6 |
2524 | else | |
2525 | if test "x$host_alias" = x; then | |
2526 | ac_cv_host=$ac_cv_build | |
9255ee31 | 2527 | else |
81ecdfbb | 2528 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
d0ac1c44 | 2529 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2530 | fi |
9255ee31 EZ |
2531 | |
2532 | fi | |
81ecdfbb RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2534 | $as_echo "$ac_cv_host" >&6; } | |
2535 | case $ac_cv_host in | |
2536 | *-*-*) ;; | |
d0ac1c44 | 2537 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2538 | esac |
9255ee31 | 2539 | host=$ac_cv_host |
81ecdfbb RW |
2540 | ac_save_IFS=$IFS; IFS='-' |
2541 | set x $ac_cv_host | |
2542 | shift | |
2543 | host_cpu=$1 | |
2544 | host_vendor=$2 | |
2545 | shift; shift | |
2546 | # Remember, the first character of IFS is used to create $*, | |
2547 | # except with old shells: | |
2548 | host_os=$* | |
2549 | IFS=$ac_save_IFS | |
2550 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2551 | |
25ed0b71 KW |
2552 | |
2553 | ||
19ce2a29 | 2554 | |
9255ee31 EZ |
2555 | opt_curses=no |
2556 | ||
25ed0b71 | 2557 | |
81ecdfbb RW |
2558 | # Check whether --with-curses was given. |
2559 | if test "${with_curses+set}" = set; then : | |
2560 | withval=$with_curses; opt_curses=$withval | |
2561 | fi | |
2562 | ||
2563 | ||
9255ee31 EZ |
2564 | if test "$opt_curses" = "yes"; then |
2565 | prefer_curses=yes | |
2566 | fi | |
2567 | ||
5bdf8622 | 2568 | opt_multibyte=yes |
9255ee31 | 2569 | opt_static_libs=yes |
b558ff04 | 2570 | opt_shared_libs=no |
cb41b9e7 | 2571 | opt_install_examples=no |
9255ee31 | 2572 | |
81ecdfbb RW |
2573 | # Check whether --enable-multibyte was given. |
2574 | if test "${enable_multibyte+set}" = set; then : | |
2575 | enableval=$enable_multibyte; opt_multibyte=$enableval | |
2576 | fi | |
2577 | ||
2578 | # Check whether --enable-static was given. | |
2579 | if test "${enable_static+set}" = set; then : | |
2580 | enableval=$enable_static; opt_static_libs=$enableval | |
2581 | fi | |
2582 | ||
cb41b9e7 TT |
2583 | # Check whether --enable-install-examples was given. |
2584 | if test "${enable_install_examples+set}" = set; then : | |
2585 | enableval=$enable_install_examples; opt_install_examples=$enableval | |
2586 | fi | |
2587 | ||
9255ee31 | 2588 | |
5bdf8622 | 2589 | if test $opt_multibyte = no; then |
81ecdfbb | 2590 | $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h |
5bdf8622 DJ |
2591 | |
2592 | fi | |
2593 | ||
2594 | ||
2595 | ||
eeab5adb | 2596 | CROSS_COMPILE= |
5bdf8622 DJ |
2597 | if test "x$cross_compiling" = "xyes"; then |
2598 | case "${host}" in | |
2599 | *-cygwin*) | |
2600 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
2601 | ;; | |
2602 | *-mingw*) | |
2603 | cross_cache=${srcdir}/cross-build/mingw.cache | |
2604 | ;; | |
2605 | i[3456]86-*-beos*) | |
2606 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
2607 | ;; | |
2608 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
2609 | ;; | |
2610 | esac | |
2611 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
2612 | echo "loading cross-build cache file ${cross_cache}" | |
2613 | . ${cross_cache} | |
2614 | fi | |
2615 | unset cross_cache | |
2616 | CROSS_COMPILE='-DCROSS_COMPILING' | |
2617 | ||
2618 | fi | |
2619 | ||
9255ee31 EZ |
2620 | echo "" |
2621 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
2622 | echo "" | |
2623 | ||
2624 | # We want these before the checks, so the checks can modify their values. | |
2625 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
2626 | ||
81ecdfbb RW |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2628 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2629 | set x ${MAKE-make} | |
2630 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 2631 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 2632 | $as_echo_n "(cached) " >&6 |
9255ee31 | 2633 | else |
25ed0b71 | 2634 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 2635 | SHELL = /bin/sh |
9255ee31 | 2636 | all: |
81ecdfbb | 2637 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
25ed0b71 | 2638 | _ACEOF |
d0ac1c44 | 2639 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2640 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2641 | *@@@%%%=?*=@@@%%%*) | |
2642 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2643 | *) | |
2644 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2645 | esac | |
9255ee31 EZ |
2646 | rm -f conftest.make |
2647 | fi | |
81ecdfbb RW |
2648 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2650 | $as_echo "yes" >&6; } | |
9255ee31 EZ |
2651 | SET_MAKE= |
2652 | else | |
81ecdfbb RW |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2654 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2655 | SET_MAKE="MAKE=${MAKE-make}" |
2656 | fi | |
2657 | ||
2658 | ac_ext=c | |
2659 | ac_cpp='$CPP $CPPFLAGS' | |
2660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2663 | if test -n "$ac_tool_prefix"; then | |
2664 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2665 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2667 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2668 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2669 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2670 | else |
2671 | if test -n "$CC"; then | |
2672 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2673 | else | |
25ed0b71 KW |
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2675 | for as_dir in $PATH | |
2676 | do | |
2677 | IFS=$as_save_IFS | |
2678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2679 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2681 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2683 | break 2 |
2684 | fi | |
2685 | done | |
81ecdfbb RW |
2686 | done |
2687 | IFS=$as_save_IFS | |
9255ee31 | 2688 | |
d60d9f65 | 2689 | fi |
9255ee31 EZ |
2690 | fi |
2691 | CC=$ac_cv_prog_CC | |
d60d9f65 | 2692 | if test -n "$CC"; then |
81ecdfbb RW |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2694 | $as_echo "$CC" >&6; } | |
9255ee31 | 2695 | else |
81ecdfbb RW |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2697 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2698 | fi |
2699 | ||
81ecdfbb | 2700 | |
9255ee31 EZ |
2701 | fi |
2702 | if test -z "$ac_cv_prog_CC"; then | |
2703 | ac_ct_CC=$CC | |
2704 | # Extract the first word of "gcc", so it can be a program name with args. | |
2705 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2707 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2708 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2709 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2710 | else |
2711 | if test -n "$ac_ct_CC"; then | |
2712 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2713 | else | |
25ed0b71 KW |
2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2715 | for as_dir in $PATH | |
2716 | do | |
2717 | IFS=$as_save_IFS | |
2718 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2719 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2721 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2723 | break 2 |
2724 | fi | |
2725 | done | |
81ecdfbb RW |
2726 | done |
2727 | IFS=$as_save_IFS | |
9255ee31 EZ |
2728 | |
2729 | fi | |
2730 | fi | |
2731 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2732 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2734 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2735 | else |
81ecdfbb RW |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2737 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2738 | fi |
2739 | ||
81ecdfbb RW |
2740 | if test "x$ac_ct_CC" = x; then |
2741 | CC="" | |
2742 | else | |
2743 | case $cross_compiling:$ac_tool_warned in | |
2744 | yes:) | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2747 | ac_tool_warned=yes ;; | |
2748 | esac | |
2749 | CC=$ac_ct_CC | |
2750 | fi | |
d60d9f65 | 2751 | else |
9255ee31 | 2752 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
2753 | fi |
2754 | ||
2755 | if test -z "$CC"; then | |
81ecdfbb RW |
2756 | if test -n "$ac_tool_prefix"; then |
2757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9255ee31 | 2758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2761 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2762 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2763 | else |
2764 | if test -n "$CC"; then | |
2765 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2766 | else | |
25ed0b71 KW |
2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2768 | for as_dir in $PATH | |
2769 | do | |
2770 | IFS=$as_save_IFS | |
2771 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2772 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2776 | break 2 |
2777 | fi | |
2778 | done | |
81ecdfbb RW |
2779 | done |
2780 | IFS=$as_save_IFS | |
9255ee31 EZ |
2781 | |
2782 | fi | |
2783 | fi | |
2784 | CC=$ac_cv_prog_CC | |
2785 | if test -n "$CC"; then | |
81ecdfbb RW |
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2787 | $as_echo "$CC" >&6; } | |
9255ee31 | 2788 | else |
81ecdfbb RW |
2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2790 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2791 | fi |
2792 | ||
81ecdfbb RW |
2793 | |
2794 | fi | |
9255ee31 | 2795 | fi |
81ecdfbb | 2796 | if test -z "$CC"; then |
d60d9f65 SS |
2797 | # Extract the first word of "cc", so it can be a program name with args. |
2798 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2800 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2801 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2802 | $as_echo_n "(cached) " >&6 |
9255ee31 | 2803 | else |
81ecdfbb RW |
2804 | if test -n "$CC"; then |
2805 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9255ee31 | 2806 | else |
81ecdfbb | 2807 | ac_prog_rejected=no |
25ed0b71 KW |
2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2809 | for as_dir in $PATH | |
2810 | do | |
2811 | IFS=$as_save_IFS | |
2812 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2813 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2815 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2816 | ac_prog_rejected=yes | |
2817 | continue | |
2818 | fi | |
2819 | ac_cv_prog_CC="cc" | |
2820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25ed0b71 KW |
2821 | break 2 |
2822 | fi | |
2823 | done | |
81ecdfbb RW |
2824 | done |
2825 | IFS=$as_save_IFS | |
9255ee31 | 2826 | |
d60d9f65 SS |
2827 | if test $ac_prog_rejected = yes; then |
2828 | # We found a bogon in the path, so make sure we never use it. | |
2829 | set dummy $ac_cv_prog_CC | |
2830 | shift | |
9255ee31 | 2831 | if test $# != 0; then |
d60d9f65 SS |
2832 | # We chose a different compiler from the bogus one. |
2833 | # However, it has the same basename, so the bogon will be chosen | |
2834 | # first if we set CC to just the basename; use the full file name. | |
2835 | shift | |
25ed0b71 | 2836 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
2837 | fi |
2838 | fi | |
2839 | fi | |
2840 | fi | |
9255ee31 | 2841 | CC=$ac_cv_prog_CC |
d60d9f65 | 2842 | if test -n "$CC"; then |
81ecdfbb RW |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2844 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2845 | else |
81ecdfbb RW |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2847 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2848 | fi |
2849 | ||
81ecdfbb | 2850 | |
9255ee31 EZ |
2851 | fi |
2852 | if test -z "$CC"; then | |
2853 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2854 | for ac_prog in cl.exe |
9255ee31 EZ |
2855 | do |
2856 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2857 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2859 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2860 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2861 | $as_echo_n "(cached) " >&6 |
d60d9f65 SS |
2862 | else |
2863 | if test -n "$CC"; then | |
2864 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2865 | else | |
25ed0b71 KW |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2867 | for as_dir in $PATH | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2871 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2873 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2875 | break 2 |
2876 | fi | |
2877 | done | |
81ecdfbb RW |
2878 | done |
2879 | IFS=$as_save_IFS | |
9255ee31 | 2880 | |
d60d9f65 SS |
2881 | fi |
2882 | fi | |
9255ee31 | 2883 | CC=$ac_cv_prog_CC |
d60d9f65 | 2884 | if test -n "$CC"; then |
81ecdfbb RW |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2886 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2887 | else |
81ecdfbb RW |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2889 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2890 | fi |
2891 | ||
81ecdfbb | 2892 | |
9255ee31 EZ |
2893 | test -n "$CC" && break |
2894 | done | |
2895 | fi | |
2896 | if test -z "$CC"; then | |
2897 | ac_ct_CC=$CC | |
81ecdfbb | 2898 | for ac_prog in cl.exe |
9255ee31 EZ |
2899 | do |
2900 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2901 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2903 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2904 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2905 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2906 | else |
2907 | if test -n "$ac_ct_CC"; then | |
2908 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2909 | else | |
25ed0b71 KW |
2910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2911 | for as_dir in $PATH | |
2912 | do | |
2913 | IFS=$as_save_IFS | |
2914 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2915 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2917 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2919 | break 2 |
2920 | fi | |
2921 | done | |
81ecdfbb RW |
2922 | done |
2923 | IFS=$as_save_IFS | |
d60d9f65 | 2924 | |
9255ee31 EZ |
2925 | fi |
2926 | fi | |
2927 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2928 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2930 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2931 | else |
81ecdfbb RW |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2933 | $as_echo "no" >&6; } | |
9255ee31 | 2934 | fi |
d60d9f65 | 2935 | |
81ecdfbb | 2936 | |
9255ee31 EZ |
2937 | test -n "$ac_ct_CC" && break |
2938 | done | |
c862e87b | 2939 | |
81ecdfbb RW |
2940 | if test "x$ac_ct_CC" = x; then |
2941 | CC="" | |
2942 | else | |
2943 | case $cross_compiling:$ac_tool_warned in | |
2944 | yes:) | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2946 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2947 | ac_tool_warned=yes ;; | |
2948 | esac | |
2949 | CC=$ac_ct_CC | |
2950 | fi | |
9255ee31 EZ |
2951 | fi |
2952 | ||
2953 | fi | |
2954 | ||
25ed0b71 | 2955 | |
81ecdfbb RW |
2956 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2958 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2959 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 EZ |
2960 | |
2961 | # Provide some information about the compiler. | |
81ecdfbb RW |
2962 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2963 | set X $ac_compile | |
2964 | ac_compiler=$2 | |
2965 | for ac_option in --version -v -V -qversion; do | |
2966 | { { ac_try="$ac_compiler $ac_option >&5" | |
2967 | case "(($ac_try" in | |
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2969 | *) ac_try_echo=$ac_try;; | |
2970 | esac | |
2971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2972 | $as_echo "$ac_try_echo"; } >&5 | |
2973 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
9255ee31 | 2974 | ac_status=$? |
81ecdfbb RW |
2975 | if test -s conftest.err; then |
2976 | sed '10a\ | |
2977 | ... rest of stderr output deleted ... | |
2978 | 10q' conftest.err >conftest.er1 | |
2979 | cat conftest.er1 >&5 | |
81ecdfbb | 2980 | fi |
d0ac1c44 | 2981 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
2982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2983 | test $ac_status = 0; } | |
2984 | done | |
9255ee31 | 2985 | |
81ecdfbb | 2986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2987 | /* end confdefs.h. */ |
5836a818 | 2988 | |
9255ee31 EZ |
2989 | int |
2990 | main () | |
2991 | { | |
2992 | ||
2993 | ; | |
2994 | return 0; | |
2995 | } | |
2996 | _ACEOF | |
2997 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 2998 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
9255ee31 EZ |
2999 | # Try to create an executable without -o first, disregard a.out. |
3000 | # It will help us diagnose broken compilers, and finding out an intuition | |
3001 | # of exeext. | |
d0ac1c44 SM |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3003 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
3004 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3005 | ||
3006 | # The possible output files: | |
3007 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3008 | ||
3009 | ac_rmfiles= | |
3010 | for ac_file in $ac_files | |
3011 | do | |
3012 | case $ac_file in | |
3013 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3014 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3015 | esac | |
3016 | done | |
3017 | rm -f $ac_rmfiles | |
3018 | ||
3019 | if { { ac_try="$ac_link_default" | |
3020 | case "(($ac_try" in | |
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3022 | *) ac_try_echo=$ac_try;; | |
3023 | esac | |
3024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3025 | $as_echo "$ac_try_echo"; } >&5 | |
3026 | (eval "$ac_link_default") 2>&5 | |
3027 | ac_status=$? | |
3028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3029 | test $ac_status = 0; }; then : | |
3030 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3031 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3032 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3033 | # so that the user can short-circuit this test for compilers unknown to | |
3034 | # Autoconf. | |
3035 | for ac_file in $ac_files '' | |
25ed0b71 KW |
3036 | do |
3037 | test -f "$ac_file" || continue | |
9255ee31 | 3038 | case $ac_file in |
81ecdfbb | 3039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
430b7832 | 3040 | ;; |
25ed0b71 | 3041 | [ab].out ) |
430b7832 MM |
3042 | # We found the default executable, but exeext='' is most |
3043 | # certainly right. | |
3044 | break;; | |
25ed0b71 | 3045 | *.* ) |
81ecdfbb RW |
3046 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3047 | then :; else | |
3048 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3049 | fi | |
3050 | # We set ac_cv_exeext here because the later test for it is not | |
3051 | # safe: cross compilers may not add the suffix if given an `-o' | |
3052 | # argument, so we may need to know it at that point already. | |
3053 | # Even if this section looks crufty: it has the advantage of | |
3054 | # actually working. | |
430b7832 | 3055 | break;; |
25ed0b71 | 3056 | * ) |
430b7832 | 3057 | break;; |
9255ee31 EZ |
3058 | esac |
3059 | done | |
81ecdfbb RW |
3060 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3061 | ||
9255ee31 | 3062 | else |
81ecdfbb RW |
3063 | ac_file='' |
3064 | fi | |
81ecdfbb | 3065 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3067 | $as_echo "no" >&6; } | |
3068 | $as_echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
3070 | ||
81ecdfbb RW |
3071 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3072 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3073 | as_fn_error 77 "C compiler cannot create executables |
3074 | See \`config.log' for more details" "$LINENO" 5; } | |
3075 | else | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3077 | $as_echo "yes" >&6; } | |
9255ee31 | 3078 | fi |
d0ac1c44 SM |
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3080 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3082 | $as_echo "$ac_file" >&6; } | |
9255ee31 | 3083 | ac_exeext=$ac_cv_exeext |
9255ee31 | 3084 | |
d0ac1c44 | 3085 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
9255ee31 | 3086 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3088 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3089 | if { { ac_try="$ac_link" | |
3090 | case "(($ac_try" in | |
3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3092 | *) ac_try_echo=$ac_try;; | |
3093 | esac | |
3094 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3095 | $as_echo "$ac_try_echo"; } >&5 | |
3096 | (eval "$ac_link") 2>&5 | |
9255ee31 | 3097 | ac_status=$? |
81ecdfbb RW |
3098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3099 | test $ac_status = 0; }; then : | |
9255ee31 EZ |
3100 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3101 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3102 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3103 | # `rm'. | |
25ed0b71 KW |
3104 | for ac_file in conftest.exe conftest conftest.*; do |
3105 | test -f "$ac_file" || continue | |
9255ee31 | 3106 | case $ac_file in |
81ecdfbb | 3107 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
9255ee31 | 3108 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 | 3109 | break;; |
9255ee31 EZ |
3110 | * ) break;; |
3111 | esac | |
3112 | done | |
d60d9f65 | 3113 | else |
81ecdfbb RW |
3114 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3116 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3117 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 | 3118 | fi |
d0ac1c44 | 3119 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3121 | $as_echo "$ac_cv_exeext" >&6; } | |
9255ee31 EZ |
3122 | |
3123 | rm -f conftest.$ac_ext | |
3124 | EXEEXT=$ac_cv_exeext | |
3125 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3127 | /* end confdefs.h. */ | |
3128 | #include <stdio.h> | |
3129 | int | |
3130 | main () | |
3131 | { | |
3132 | FILE *f = fopen ("conftest.out", "w"); | |
3133 | return ferror (f) || fclose (f) != 0; | |
3134 | ||
3135 | ; | |
3136 | return 0; | |
3137 | } | |
3138 | _ACEOF | |
3139 | ac_clean_files="$ac_clean_files conftest.out" | |
3140 | # Check that the compiler produces executables we can run. If not, either | |
3141 | # the compiler is broken, or we cross compile. | |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3143 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3144 | if test "$cross_compiling" != yes; then | |
3145 | { { ac_try="$ac_link" | |
3146 | case "(($ac_try" in | |
3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3148 | *) ac_try_echo=$ac_try;; | |
3149 | esac | |
3150 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3151 | $as_echo "$ac_try_echo"; } >&5 | |
3152 | (eval "$ac_link") 2>&5 | |
3153 | ac_status=$? | |
3154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3155 | test $ac_status = 0; } | |
3156 | if { ac_try='./conftest$ac_cv_exeext' | |
3157 | { { case "(($ac_try" in | |
3158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3159 | *) ac_try_echo=$ac_try;; | |
3160 | esac | |
3161 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3162 | $as_echo "$ac_try_echo"; } >&5 | |
3163 | (eval "$ac_try") 2>&5 | |
3164 | ac_status=$? | |
3165 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3166 | test $ac_status = 0; }; }; then | |
3167 | cross_compiling=no | |
3168 | else | |
3169 | if test "$cross_compiling" = maybe; then | |
3170 | cross_compiling=yes | |
3171 | else | |
3172 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3173 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3174 | as_fn_error $? "cannot run C compiled programs. | |
3175 | If you meant to cross compile, use \`--host'. | |
3176 | See \`config.log' for more details" "$LINENO" 5; } | |
3177 | fi | |
3178 | fi | |
3179 | fi | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3181 | $as_echo "$cross_compiling" >&6; } | |
3182 | ||
3183 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3184 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3186 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3187 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3188 | $as_echo_n "(cached) " >&6 |
9255ee31 | 3189 | else |
81ecdfbb | 3190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3191 | /* end confdefs.h. */ |
d60d9f65 | 3192 | |
9255ee31 EZ |
3193 | int |
3194 | main () | |
3195 | { | |
d60d9f65 | 3196 | |
9255ee31 EZ |
3197 | ; |
3198 | return 0; | |
3199 | } | |
3200 | _ACEOF | |
3201 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3202 | if { { ac_try="$ac_compile" |
3203 | case "(($ac_try" in | |
3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3205 | *) ac_try_echo=$ac_try;; | |
3206 | esac | |
3207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3208 | $as_echo "$ac_try_echo"; } >&5 | |
3209 | (eval "$ac_compile") 2>&5 | |
3210 | ac_status=$? | |
3211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3212 | test $ac_status = 0; }; then : | |
3213 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3214 | test -f "$ac_file" || continue; | |
9255ee31 | 3215 | case $ac_file in |
81ecdfbb | 3216 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
9255ee31 EZ |
3217 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3218 | break;; | |
3219 | esac | |
3220 | done | |
d60d9f65 | 3221 | else |
81ecdfbb | 3222 | $as_echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
3224 | ||
81ecdfbb RW |
3225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3226 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3227 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3228 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 | 3229 | fi |
9255ee31 EZ |
3230 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3231 | fi | |
81ecdfbb RW |
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3233 | $as_echo "$ac_cv_objext" >&6; } | |
9255ee31 EZ |
3234 | OBJEXT=$ac_cv_objext |
3235 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3237 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3238 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3239 | $as_echo_n "(cached) " >&6 |
9255ee31 | 3240 | else |
81ecdfbb | 3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3242 | /* end confdefs.h. */ |
9255ee31 EZ |
3243 | |
3244 | int | |
3245 | main () | |
3246 | { | |
3247 | #ifndef __GNUC__ | |
3248 | choke me | |
3249 | #endif | |
d60d9f65 | 3250 | |
9255ee31 EZ |
3251 | ; |
3252 | return 0; | |
3253 | } | |
3254 | _ACEOF | |
81ecdfbb | 3255 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 EZ |
3256 | ac_compiler_gnu=yes |
3257 | else | |
81ecdfbb | 3258 | ac_compiler_gnu=no |
9255ee31 | 3259 | fi |
81ecdfbb | 3260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
3261 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3262 | ||
3263 | fi | |
81ecdfbb RW |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3265 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3266 | if test $ac_compiler_gnu = yes; then | |
3267 | GCC=yes | |
3268 | else | |
3269 | GCC= | |
3270 | fi | |
9255ee31 EZ |
3271 | ac_test_CFLAGS=${CFLAGS+set} |
3272 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3274 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3275 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3276 | $as_echo_n "(cached) " >&6 |
3277 | else | |
3278 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3279 | ac_c_werror_flag=yes | |
3280 | ac_cv_prog_cc_g=no | |
3281 | CFLAGS="-g" | |
3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 3283 | /* end confdefs.h. */ |
9255ee31 EZ |
3284 | |
3285 | int | |
3286 | main () | |
3287 | { | |
3288 | ||
3289 | ; | |
3290 | return 0; | |
3291 | } | |
3292 | _ACEOF | |
81ecdfbb | 3293 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 SS |
3294 | ac_cv_prog_cc_g=yes |
3295 | else | |
81ecdfbb RW |
3296 | CFLAGS="" |
3297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3298 | /* end confdefs.h. */ | |
3299 | ||
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | ||
3304 | ; | |
3305 | return 0; | |
3306 | } | |
3307 | _ACEOF | |
3308 | if ac_fn_c_try_compile "$LINENO"; then : | |
3309 | ||
3310 | else | |
3311 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3312 | CFLAGS="-g" | |
3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3314 | /* end confdefs.h. */ | |
3315 | ||
3316 | int | |
3317 | main () | |
3318 | { | |
25ed0b71 | 3319 | |
81ecdfbb RW |
3320 | ; |
3321 | return 0; | |
3322 | } | |
3323 | _ACEOF | |
3324 | if ac_fn_c_try_compile "$LINENO"; then : | |
3325 | ac_cv_prog_cc_g=yes | |
3326 | fi | |
3327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3328 | fi | |
3329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 3330 | fi |
81ecdfbb RW |
3331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3332 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d60d9f65 | 3333 | fi |
81ecdfbb RW |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3335 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d60d9f65 | 3336 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 3337 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
3338 | elif test $ac_cv_prog_cc_g = yes; then |
3339 | if test "$GCC" = yes; then | |
3340 | CFLAGS="-g -O2" | |
3341 | else | |
3342 | CFLAGS="-g" | |
3343 | fi | |
3344 | else | |
3345 | if test "$GCC" = yes; then | |
3346 | CFLAGS="-O2" | |
3347 | else | |
3348 | CFLAGS= | |
3349 | fi | |
3350 | fi | |
81ecdfbb RW |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3352 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3353 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3354 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3355 | else |
81ecdfbb | 3356 | ac_cv_prog_cc_c89=no |
25ed0b71 | 3357 | ac_save_CC=$CC |
81ecdfbb | 3358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3359 | /* end confdefs.h. */ |
3360 | #include <stdarg.h> | |
3361 | #include <stdio.h> | |
d0ac1c44 | 3362 | struct stat; |
25ed0b71 KW |
3363 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3364 | struct buf { int x; }; | |
3365 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3366 | static char *e (p, i) | |
3367 | char **p; | |
3368 | int i; | |
3369 | { | |
3370 | return p[i]; | |
3371 | } | |
3372 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3373 | { | |
3374 | char *s; | |
3375 | va_list v; | |
3376 | va_start (v,p); | |
3377 | s = g (p, va_arg (v,int)); | |
3378 | va_end (v); | |
3379 | return s; | |
3380 | } | |
430b7832 MM |
3381 | |
3382 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3383 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3384 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3385 | as 'x'. The following induces an error, until -std is added to get |
430b7832 MM |
3386 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3387 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3388 | that's true only with -std. */ |
430b7832 MM |
3389 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3390 | ||
81ecdfbb RW |
3391 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3392 | inside strings and character constants. */ | |
3393 | #define FOO(x) 'x' | |
3394 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3395 | ||
25ed0b71 KW |
3396 | int test (int i, double x); |
3397 | struct s1 {int (*f) (int a);}; | |
3398 | struct s2 {int (*f) (double a);}; | |
3399 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3400 | int argc; | |
3401 | char **argv; | |
3402 | int | |
3403 | main () | |
3404 | { | |
3405 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
81ecdfbb RW |
3410 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3411 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25ed0b71 KW |
3412 | do |
3413 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3414 | if ac_fn_c_try_compile "$LINENO"; then : |
3415 | ac_cv_prog_cc_c89=$ac_arg | |
25ed0b71 | 3416 | fi |
81ecdfbb RW |
3417 | rm -f core conftest.err conftest.$ac_objext |
3418 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25ed0b71 | 3419 | done |
81ecdfbb | 3420 | rm -f conftest.$ac_ext |
25ed0b71 KW |
3421 | CC=$ac_save_CC |
3422 | ||
3423 | fi | |
81ecdfbb RW |
3424 | # AC_CACHE_VAL |
3425 | case "x$ac_cv_prog_cc_c89" in | |
3426 | x) | |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3428 | $as_echo "none needed" >&6; } ;; | |
3429 | xno) | |
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3431 | $as_echo "unsupported" >&6; } ;; | |
25ed0b71 | 3432 | *) |
81ecdfbb RW |
3433 | CC="$CC $ac_cv_prog_cc_c89" |
3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3435 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
25ed0b71 | 3436 | esac |
81ecdfbb | 3437 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
25ed0b71 | 3438 | |
9255ee31 | 3439 | fi |
d60d9f65 | 3440 | |
9255ee31 EZ |
3441 | ac_ext=c |
3442 | ac_cpp='$CPP $CPPFLAGS' | |
3443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3446 | ||
25ed0b71 | 3447 | |
9255ee31 EZ |
3448 | ac_ext=c |
3449 | ac_cpp='$CPP $CPPFLAGS' | |
3450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3454 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d60d9f65 SS |
3455 | # On Suns, sometimes $CPP names a directory. |
3456 | if test -n "$CPP" && test -d "$CPP"; then | |
3457 | CPP= | |
3458 | fi | |
3459 | if test -z "$CPP"; then | |
d0ac1c44 | 3460 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 3461 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 3462 | else |
9255ee31 EZ |
3463 | # Double quotes because CPP needs to be expanded |
3464 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3465 | do | |
3466 | ac_preproc_ok=false | |
3467 | for ac_c_preproc_warn_flag in '' yes | |
3468 | do | |
3469 | # Use a header file that comes with gcc, so configuring glibc | |
3470 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3471 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3472 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 3473 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 | 3474 | # not just through cpp. "Syntax error" is here to catch this case. |
81ecdfbb | 3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3476 | /* end confdefs.h. */ |
3477 | #ifdef __STDC__ | |
3478 | # include <limits.h> | |
3479 | #else | |
3480 | # include <assert.h> | |
3481 | #endif | |
430b7832 | 3482 | Syntax error |
9255ee31 | 3483 | _ACEOF |
81ecdfbb | 3484 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3485 | |
81ecdfbb | 3486 | else |
9255ee31 EZ |
3487 | # Broken: fails on valid input. |
3488 | continue | |
3489 | fi | |
d0ac1c44 | 3490 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 | 3491 | |
81ecdfbb | 3492 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3493 | # can be detected and how. |
81ecdfbb | 3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3495 | /* end confdefs.h. */ |
9255ee31 EZ |
3496 | #include <ac_nonexistent.h> |
3497 | _ACEOF | |
81ecdfbb | 3498 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3499 | # Broken: success on invalid input. |
3500 | continue | |
d60d9f65 | 3501 | else |
9255ee31 EZ |
3502 | # Passes both tests. |
3503 | ac_preproc_ok=: | |
3504 | break | |
3505 | fi | |
d0ac1c44 | 3506 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 EZ |
3507 | |
3508 | done | |
3509 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 3510 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 3511 | if $ac_preproc_ok; then : |
9255ee31 EZ |
3512 | break |
3513 | fi | |
3514 | ||
3515 | done | |
3516 | ac_cv_prog_CPP=$CPP | |
3517 | ||
3518 | fi | |
3519 | CPP=$ac_cv_prog_CPP | |
3520 | else | |
3521 | ac_cv_prog_CPP=$CPP | |
3522 | fi | |
81ecdfbb RW |
3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3524 | $as_echo "$CPP" >&6; } | |
9255ee31 EZ |
3525 | ac_preproc_ok=false |
3526 | for ac_c_preproc_warn_flag in '' yes | |
3527 | do | |
3528 | # Use a header file that comes with gcc, so configuring glibc | |
3529 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3530 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3531 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
3532 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3533 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3535 | /* end confdefs.h. */ |
3536 | #ifdef __STDC__ | |
3537 | # include <limits.h> | |
3538 | #else | |
3539 | # include <assert.h> | |
3540 | #endif | |
430b7832 | 3541 | Syntax error |
9255ee31 | 3542 | _ACEOF |
81ecdfbb | 3543 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3544 | |
81ecdfbb | 3545 | else |
9255ee31 EZ |
3546 | # Broken: fails on valid input. |
3547 | continue | |
d60d9f65 | 3548 | fi |
d0ac1c44 | 3549 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 | 3550 | |
81ecdfbb | 3551 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3552 | # can be detected and how. |
81ecdfbb | 3553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3554 | /* end confdefs.h. */ |
9255ee31 EZ |
3555 | #include <ac_nonexistent.h> |
3556 | _ACEOF | |
81ecdfbb | 3557 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3558 | # Broken: success on invalid input. |
3559 | continue | |
3560 | else | |
9255ee31 EZ |
3561 | # Passes both tests. |
3562 | ac_preproc_ok=: | |
3563 | break | |
d60d9f65 | 3564 | fi |
d0ac1c44 | 3565 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 EZ |
3566 | |
3567 | done | |
3568 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 3569 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
3570 | if $ac_preproc_ok; then : |
3571 | ||
d60d9f65 | 3572 | else |
81ecdfbb RW |
3573 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3575 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3576 | See \`config.log' for more details" "$LINENO" 5; } | |
d60d9f65 | 3577 | fi |
d60d9f65 | 3578 | |
9255ee31 EZ |
3579 | ac_ext=c |
3580 | ac_cpp='$CPP $CPPFLAGS' | |
3581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3584 | ||
25ed0b71 | 3585 | |
81ecdfbb RW |
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3587 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 3588 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
3589 | $as_echo_n "(cached) " >&6 |
3590 | else | |
3591 | if test -z "$GREP"; then | |
3592 | ac_path_GREP_found=false | |
3593 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3595 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3596 | do | |
3597 | IFS=$as_save_IFS | |
3598 | test -z "$as_dir" && as_dir=. | |
3599 | for ac_prog in grep ggrep; do | |
3600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3601 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3602 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
3603 | # Check for GNU ac_path_GREP and select it if it is found. |
3604 | # Check for GNU $ac_path_GREP | |
3605 | case `"$ac_path_GREP" --version 2>&1` in | |
3606 | *GNU*) | |
3607 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3608 | *) | |
3609 | ac_count=0 | |
3610 | $as_echo_n 0123456789 >"conftest.in" | |
3611 | while : | |
3612 | do | |
3613 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3614 | mv "conftest.tmp" "conftest.in" | |
3615 | cp "conftest.in" "conftest.nl" | |
3616 | $as_echo 'GREP' >> "conftest.nl" | |
3617 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3618 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3619 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3620 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3621 | # Best one so far, save it but keep looking for a better one | |
3622 | ac_cv_path_GREP="$ac_path_GREP" | |
3623 | ac_path_GREP_max=$ac_count | |
3624 | fi | |
3625 | # 10*(2^10) chars as input seems more than enough | |
3626 | test $ac_count -gt 10 && break | |
3627 | done | |
3628 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3629 | esac | |
3630 | ||
3631 | $ac_path_GREP_found && break 3 | |
3632 | done | |
3633 | done | |
3634 | done | |
3635 | IFS=$as_save_IFS | |
3636 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 3637 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
3638 | fi |
3639 | else | |
3640 | ac_cv_path_GREP=$GREP | |
3641 | fi | |
3642 | ||
3643 | fi | |
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3645 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3646 | GREP="$ac_cv_path_GREP" | |
3647 | ||
3648 | ||
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3650 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 3651 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 3652 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 3653 | else |
81ecdfbb RW |
3654 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3655 | then ac_cv_path_EGREP="$GREP -E" | |
3656 | else | |
3657 | if test -z "$EGREP"; then | |
3658 | ac_path_EGREP_found=false | |
3659 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3661 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3662 | do | |
3663 | IFS=$as_save_IFS | |
3664 | test -z "$as_dir" && as_dir=. | |
3665 | for ac_prog in egrep; do | |
3666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3667 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 3668 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
3669 | # Check for GNU ac_path_EGREP and select it if it is found. |
3670 | # Check for GNU $ac_path_EGREP | |
3671 | case `"$ac_path_EGREP" --version 2>&1` in | |
3672 | *GNU*) | |
3673 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3674 | *) | |
3675 | ac_count=0 | |
3676 | $as_echo_n 0123456789 >"conftest.in" | |
3677 | while : | |
3678 | do | |
3679 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3680 | mv "conftest.tmp" "conftest.in" | |
3681 | cp "conftest.in" "conftest.nl" | |
3682 | $as_echo 'EGREP' >> "conftest.nl" | |
3683 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3684 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3685 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3686 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3687 | # Best one so far, save it but keep looking for a better one | |
3688 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3689 | ac_path_EGREP_max=$ac_count | |
25ed0b71 | 3690 | fi |
81ecdfbb RW |
3691 | # 10*(2^10) chars as input seems more than enough |
3692 | test $ac_count -gt 10 && break | |
3693 | done | |
3694 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3695 | esac | |
3696 | ||
3697 | $ac_path_EGREP_found && break 3 | |
3698 | done | |
3699 | done | |
3700 | done | |
3701 | IFS=$as_save_IFS | |
3702 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 3703 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
3704 | fi |
3705 | else | |
3706 | ac_cv_path_EGREP=$EGREP | |
3707 | fi | |
3708 | ||
3709 | fi | |
d60d9f65 | 3710 | fi |
81ecdfbb RW |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3712 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3713 | EGREP="$ac_cv_path_EGREP" | |
d60d9f65 | 3714 | |
9255ee31 | 3715 | |
81ecdfbb RW |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3717 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 3718 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 3719 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3720 | else |
81ecdfbb | 3721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3722 | /* end confdefs.h. */ |
3723 | #include <stdlib.h> | |
3724 | #include <stdarg.h> | |
3725 | #include <string.h> | |
3726 | #include <float.h> | |
d60d9f65 | 3727 | |
25ed0b71 KW |
3728 | int |
3729 | main () | |
3730 | { | |
d60d9f65 | 3731 | |
25ed0b71 KW |
3732 | ; |
3733 | return 0; | |
3734 | } | |
3735 | _ACEOF | |
81ecdfbb | 3736 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 KW |
3737 | ac_cv_header_stdc=yes |
3738 | else | |
81ecdfbb | 3739 | ac_cv_header_stdc=no |
d60d9f65 | 3740 | fi |
81ecdfbb | 3741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3742 | |
25ed0b71 KW |
3743 | if test $ac_cv_header_stdc = yes; then |
3744 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3746 | /* end confdefs.h. */ |
3747 | #include <string.h> | |
9255ee31 | 3748 | |
25ed0b71 KW |
3749 | _ACEOF |
3750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3751 | $EGREP "memchr" >/dev/null 2>&1; then : |
3752 | ||
d60d9f65 | 3753 | else |
25ed0b71 | 3754 | ac_cv_header_stdc=no |
d60d9f65 | 3755 | fi |
25ed0b71 | 3756 | rm -f conftest* |
d60d9f65 | 3757 | |
d60d9f65 SS |
3758 | fi |
3759 | ||
25ed0b71 KW |
3760 | if test $ac_cv_header_stdc = yes; then |
3761 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3763 | /* end confdefs.h. */ |
3764 | #include <stdlib.h> | |
d60d9f65 | 3765 | |
9255ee31 | 3766 | _ACEOF |
d60d9f65 | 3767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3768 | $EGREP "free" >/dev/null 2>&1; then : |
3769 | ||
25ed0b71 KW |
3770 | else |
3771 | ac_cv_header_stdc=no | |
d60d9f65 SS |
3772 | fi |
3773 | rm -f conftest* | |
3774 | ||
d60d9f65 SS |
3775 | fi |
3776 | ||
25ed0b71 KW |
3777 | if test $ac_cv_header_stdc = yes; then |
3778 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3779 | if test "$cross_compiling" = yes; then : |
25ed0b71 KW |
3780 | : |
3781 | else | |
81ecdfbb | 3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3783 | /* end confdefs.h. */ |
3784 | #include <ctype.h> | |
81ecdfbb | 3785 | #include <stdlib.h> |
25ed0b71 KW |
3786 | #if ((' ' & 0x0FF) == 0x020) |
3787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3789 | #else | |
3790 | # define ISLOWER(c) \ | |
430b7832 MM |
3791 | (('a' <= (c) && (c) <= 'i') \ |
3792 | || ('j' <= (c) && (c) <= 'r') \ | |
3793 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
3794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3795 | #endif | |
3796 | ||
3797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3798 | int | |
3799 | main () | |
3800 | { | |
3801 | int i; | |
3802 | for (i = 0; i < 256; i++) | |
3803 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 3804 | || toupper (i) != TOUPPER (i)) |
81ecdfbb RW |
3805 | return 2; |
3806 | return 0; | |
25ed0b71 KW |
3807 | } |
3808 | _ACEOF | |
81ecdfbb | 3809 | if ac_fn_c_try_run "$LINENO"; then : |
25ed0b71 | 3810 | |
81ecdfbb RW |
3811 | else |
3812 | ac_cv_header_stdc=no | |
25ed0b71 | 3813 | fi |
81ecdfbb RW |
3814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3815 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25ed0b71 | 3816 | fi |
81ecdfbb | 3817 | |
25ed0b71 KW |
3818 | fi |
3819 | fi | |
81ecdfbb RW |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3821 | $as_echo "$ac_cv_header_stdc" >&6; } | |
25ed0b71 KW |
3822 | if test $ac_cv_header_stdc = yes; then |
3823 | ||
81ecdfbb | 3824 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
25ed0b71 KW |
3825 | |
3826 | fi | |
3827 | ||
3828 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
3829 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3830 | inttypes.h stdint.h unistd.h | |
3831 | do : | |
3832 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3833 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3834 | " | |
d0ac1c44 | 3835 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
3836 | cat >>confdefs.h <<_ACEOF |
3837 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3838 | _ACEOF | |
25ed0b71 | 3839 | |
81ecdfbb | 3840 | fi |
25ed0b71 | 3841 | |
81ecdfbb | 3842 | done |
25ed0b71 KW |
3843 | |
3844 | ||
3845 | ||
81ecdfbb | 3846 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 3847 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
81ecdfbb RW |
3848 | MINIX=yes |
3849 | else | |
3850 | MINIX= | |
3851 | fi | |
25ed0b71 KW |
3852 | |
3853 | ||
81ecdfbb | 3854 | if test "$MINIX" = yes; then |
25ed0b71 | 3855 | |
81ecdfbb | 3856 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
25ed0b71 | 3857 | |
25ed0b71 | 3858 | |
81ecdfbb | 3859 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
25ed0b71 | 3860 | |
25ed0b71 | 3861 | |
81ecdfbb | 3862 | $as_echo "#define _MINIX 1" >>confdefs.h |
25ed0b71 | 3863 | |
81ecdfbb | 3864 | fi |
25ed0b71 KW |
3865 | |
3866 | ||
81ecdfbb RW |
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3868 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 3869 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 3870 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3871 | else |
81ecdfbb | 3872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3873 | /* end confdefs.h. */ |
25ed0b71 | 3874 | |
d0ac1c44 SM |
3875 | # define __EXTENSIONS__ 1 |
3876 | $ac_includes_default | |
81ecdfbb RW |
3877 | int |
3878 | main () | |
3879 | { | |
25ed0b71 | 3880 | |
81ecdfbb RW |
3881 | ; |
3882 | return 0; | |
3883 | } | |
25ed0b71 | 3884 | _ACEOF |
81ecdfbb RW |
3885 | if ac_fn_c_try_compile "$LINENO"; then : |
3886 | ac_cv_safe_to_define___extensions__=yes | |
25ed0b71 | 3887 | else |
81ecdfbb | 3888 | ac_cv_safe_to_define___extensions__=no |
25ed0b71 | 3889 | fi |
81ecdfbb | 3890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 3891 | fi |
81ecdfbb RW |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3893 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3894 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3895 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
25ed0b71 | 3896 | |
81ecdfbb | 3897 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
25ed0b71 | 3898 | |
81ecdfbb | 3899 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
25ed0b71 | 3900 | |
81ecdfbb | 3901 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
25ed0b71 | 3902 | |
81ecdfbb | 3903 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
25ed0b71 | 3904 | |
25ed0b71 | 3905 | |
25ed0b71 KW |
3906 | |
3907 | ||
25ed0b71 KW |
3908 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. |
3909 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3910 | ||
3911 | if test $ac_cv_c_compiler_gnu = yes; then | |
81ecdfbb RW |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
3913 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0ac1c44 | 3914 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
81ecdfbb | 3915 | $as_echo_n "(cached) " >&6 |
25ed0b71 KW |
3916 | else |
3917 | ac_pattern="Autoconf.*'x'" | |
81ecdfbb | 3918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3919 | /* end confdefs.h. */ |
3920 | #include <sgtty.h> | |
3921 | Autoconf TIOCGETP | |
3922 | _ACEOF | |
3923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3924 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3925 | ac_cv_prog_gcc_traditional=yes |
3926 | else | |
3927 | ac_cv_prog_gcc_traditional=no | |
3928 | fi | |
3929 | rm -f conftest* | |
3930 | ||
3931 | ||
3932 | if test $ac_cv_prog_gcc_traditional = no; then | |
81ecdfbb | 3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3934 | /* end confdefs.h. */ |
3935 | #include <termio.h> | |
3936 | Autoconf TCGETA | |
3937 | _ACEOF | |
3938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3939 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3940 | ac_cv_prog_gcc_traditional=yes |
3941 | fi | |
3942 | rm -f conftest* | |
3943 | ||
3944 | fi | |
3945 | fi | |
81ecdfbb RW |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
3947 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
25ed0b71 KW |
3948 | if test $ac_cv_prog_gcc_traditional = yes; then |
3949 | CC="$CC -traditional" | |
3950 | fi | |
3951 | fi | |
3952 | ||
3953 | # Find a good install program. We prefer a C program (faster), | |
3954 | # so one script is as good as another. But avoid the broken or | |
3955 | # incompatible versions: | |
3956 | # SysV /etc/install, /usr/sbin/install | |
3957 | # SunOS /usr/etc/install | |
3958 | # IRIX /sbin/install | |
3959 | # AIX /bin/install | |
3960 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3961 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3962 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3963 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3964 | # OS/2's system install, which has a completely different semantic |
25ed0b71 | 3965 | # ./install, which can be erroneously created by make from ./install.sh. |
81ecdfbb RW |
3966 | # Reject install programs that cannot install multiple files. |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3968 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
25ed0b71 | 3969 | if test -z "$INSTALL"; then |
d0ac1c44 | 3970 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 3971 | $as_echo_n "(cached) " >&6 |
25ed0b71 KW |
3972 | else |
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3974 | for as_dir in $PATH | |
3975 | do | |
3976 | IFS=$as_save_IFS | |
3977 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3978 | # Account for people who put trailing slashes in PATH elements. |
3979 | case $as_dir/ in #(( | |
3980 | ./ | .// | /[cC]/* | \ | |
25ed0b71 | 3981 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3982 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
25ed0b71 KW |
3983 | /usr/ucb/* ) ;; |
3984 | *) | |
3985 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3986 | # Don't use installbsd from OSF since it installs stuff as root | |
3987 | # by default. | |
3988 | for ac_prog in ginstall scoinst install; do | |
3989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 3990 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
430b7832 MM |
3991 | if test $ac_prog = install && |
3992 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3993 | # AIX install. It has an incompatible calling convention. | |
3994 | : | |
3995 | elif test $ac_prog = install && | |
3996 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3997 | # program-specific install script used by HP pwplus--don't use. | |
3998 | : | |
3999 | else | |
81ecdfbb RW |
4000 | rm -rf conftest.one conftest.two conftest.dir |
4001 | echo one > conftest.one | |
4002 | echo two > conftest.two | |
4003 | mkdir conftest.dir | |
4004 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4005 | test -s conftest.one && test -s conftest.two && | |
4006 | test -s conftest.dir/conftest.one && | |
4007 | test -s conftest.dir/conftest.two | |
4008 | then | |
4009 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4010 | break 3 | |
4011 | fi | |
430b7832 MM |
4012 | fi |
4013 | fi | |
25ed0b71 KW |
4014 | done |
4015 | done | |
4016 | ;; | |
4017 | esac | |
25ed0b71 | 4018 | |
81ecdfbb RW |
4019 | done |
4020 | IFS=$as_save_IFS | |
4021 | ||
4022 | rm -rf conftest.one conftest.two conftest.dir | |
d60d9f65 SS |
4023 | |
4024 | fi | |
4025 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 4026 | INSTALL=$ac_cv_path_install |
d60d9f65 | 4027 | else |
81ecdfbb RW |
4028 | # As a last resort, use the slow shell script. Don't cache a |
4029 | # value for INSTALL within a source directory, because that will | |
d60d9f65 | 4030 | # break other packages using the cache if that directory is |
81ecdfbb | 4031 | # removed, or if the value is a relative name. |
9255ee31 | 4032 | INSTALL=$ac_install_sh |
d60d9f65 SS |
4033 | fi |
4034 | fi | |
81ecdfbb RW |
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4036 | $as_echo "$INSTALL" >&6; } | |
d60d9f65 SS |
4037 | |
4038 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4039 | # It thinks the first close brace ends the variable substitution. | |
4040 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4041 | ||
9255ee31 | 4042 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 4043 | |
d60d9f65 SS |
4044 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4045 | ||
775e241e TT |
4046 | if test -n "$ac_tool_prefix"; then |
4047 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4048 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4050 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4051 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4052 | $as_echo_n "(cached) " >&6 |
c862e87b JM |
4053 | else |
4054 | if test -n "$AR"; then | |
4055 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4056 | else | |
25ed0b71 KW |
4057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4058 | for as_dir in $PATH | |
4059 | do | |
4060 | IFS=$as_save_IFS | |
4061 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4062 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
775e241e | 4064 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
4066 | break 2 |
4067 | fi | |
4068 | done | |
81ecdfbb RW |
4069 | done |
4070 | IFS=$as_save_IFS | |
9255ee31 | 4071 | |
9255ee31 EZ |
4072 | fi |
4073 | fi | |
4074 | AR=$ac_cv_prog_AR | |
4075 | if test -n "$AR"; then | |
81ecdfbb RW |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4077 | $as_echo "$AR" >&6; } | |
9255ee31 | 4078 | else |
81ecdfbb RW |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4080 | $as_echo "no" >&6; } | |
9255ee31 EZ |
4081 | fi |
4082 | ||
81ecdfbb | 4083 | |
775e241e TT |
4084 | fi |
4085 | if test -z "$ac_cv_prog_AR"; then | |
4086 | ac_ct_AR=$AR | |
4087 | # Extract the first word of "ar", so it can be a program name with args. | |
4088 | set dummy ar; ac_word=$2 | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4090 | $as_echo_n "checking for $ac_word... " >&6; } | |
4091 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4092 | $as_echo_n "(cached) " >&6 | |
4093 | else | |
4094 | if test -n "$ac_ct_AR"; then | |
4095 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4096 | else | |
4097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4098 | for as_dir in $PATH | |
4099 | do | |
4100 | IFS=$as_save_IFS | |
4101 | test -z "$as_dir" && as_dir=. | |
4102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4104 | ac_cv_prog_ac_ct_AR="ar" | |
4105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4106 | break 2 | |
4107 | fi | |
4108 | done | |
4109 | done | |
4110 | IFS=$as_save_IFS | |
4111 | ||
4112 | fi | |
4113 | fi | |
4114 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4115 | if test -n "$ac_ct_AR"; then | |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4117 | $as_echo "$ac_ct_AR" >&6; } | |
4118 | else | |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4120 | $as_echo "no" >&6; } | |
4121 | fi | |
4122 | ||
4123 | if test "x$ac_ct_AR" = x; then | |
4124 | AR="" | |
4125 | else | |
4126 | case $cross_compiling:$ac_tool_warned in | |
4127 | yes:) | |
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4129 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4130 | ac_tool_warned=yes ;; | |
4131 | esac | |
4132 | AR=$ac_ct_AR | |
4133 | fi | |
4134 | else | |
4135 | AR="$ac_cv_prog_AR" | |
4136 | fi | |
4137 | ||
9255ee31 EZ |
4138 | test -n "$ARFLAGS" || ARFLAGS="cr" |
4139 | if test -n "$ac_tool_prefix"; then | |
4140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4143 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4144 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4145 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
4146 | else |
4147 | if test -n "$RANLIB"; then | |
4148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4149 | else | |
25ed0b71 KW |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4155 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 4157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
4159 | break 2 |
4160 | fi | |
4161 | done | |
81ecdfbb RW |
4162 | done |
4163 | IFS=$as_save_IFS | |
9255ee31 EZ |
4164 | |
4165 | fi | |
4166 | fi | |
4167 | RANLIB=$ac_cv_prog_RANLIB | |
4168 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4170 | $as_echo "$RANLIB" >&6; } | |
9255ee31 | 4171 | else |
81ecdfbb RW |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4173 | $as_echo "no" >&6; } | |
9255ee31 EZ |
4174 | fi |
4175 | ||
81ecdfbb | 4176 | |
9255ee31 EZ |
4177 | fi |
4178 | if test -z "$ac_cv_prog_RANLIB"; then | |
4179 | ac_ct_RANLIB=$RANLIB | |
4180 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4181 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4184 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4185 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
4186 | else |
4187 | if test -n "$ac_ct_RANLIB"; then | |
4188 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4189 | else | |
25ed0b71 KW |
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4191 | for as_dir in $PATH | |
4192 | do | |
4193 | IFS=$as_save_IFS | |
4194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 4197 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
4199 | break 2 |
4200 | fi | |
4201 | done | |
81ecdfbb RW |
4202 | done |
4203 | IFS=$as_save_IFS | |
9255ee31 | 4204 | |
9255ee31 EZ |
4205 | fi |
4206 | fi | |
4207 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4208 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4210 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9255ee31 | 4211 | else |
81ecdfbb RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4213 | $as_echo "no" >&6; } | |
9255ee31 EZ |
4214 | fi |
4215 | ||
81ecdfbb RW |
4216 | if test "x$ac_ct_RANLIB" = x; then |
4217 | RANLIB=":" | |
4218 | else | |
4219 | case $cross_compiling:$ac_tool_warned in | |
4220 | yes:) | |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4223 | ac_tool_warned=yes ;; | |
4224 | esac | |
4225 | RANLIB=$ac_ct_RANLIB | |
4226 | fi | |
9255ee31 EZ |
4227 | else |
4228 | RANLIB="$ac_cv_prog_RANLIB" | |
4229 | fi | |
4230 | ||
9255ee31 | 4231 | |
25ed0b71 | 4232 | MAKE_SHELL=/bin/sh |
9255ee31 | 4233 | |
9255ee31 | 4234 | |
81ecdfbb RW |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
4236 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
d0ac1c44 | 4237 | if ${ac_cv_c_const+:} false; then : |
81ecdfbb | 4238 | $as_echo_n "(cached) " >&6 |
9255ee31 | 4239 | else |
81ecdfbb | 4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4241 | /* end confdefs.h. */ |
9255ee31 EZ |
4242 | |
4243 | int | |
4244 | main () | |
4245 | { | |
d0ac1c44 | 4246 | |
9255ee31 | 4247 | #ifndef __cplusplus |
d0ac1c44 | 4248 | /* Ultrix mips cc rejects this sort of thing. */ |
9255ee31 | 4249 | typedef int charset[2]; |
d0ac1c44 | 4250 | const charset cs = { 0, 0 }; |
9255ee31 | 4251 | /* SunOS 4.1.1 cc rejects this. */ |
81ecdfbb RW |
4252 | char const *const *pcpcc; |
4253 | char **ppc; | |
9255ee31 EZ |
4254 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4255 | struct point {int x, y;}; | |
4256 | static struct point const zero = {0,0}; | |
4257 | /* AIX XL C 1.02.0.0 rejects this. | |
4258 | It does not let you subtract one const X* pointer from another in | |
4259 | an arm of an if-expression whose if-part is not a constant | |
4260 | expression */ | |
4261 | const char *g = "string"; | |
81ecdfbb | 4262 | pcpcc = &g + (g ? g-g : 0); |
9255ee31 | 4263 | /* HPUX 7.0 cc rejects these. */ |
81ecdfbb RW |
4264 | ++pcpcc; |
4265 | ppc = (char**) pcpcc; | |
4266 | pcpcc = (char const *const *) ppc; | |
d0ac1c44 SM |
4267 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
4268 | char tx; | |
4269 | char *t = &tx; | |
9255ee31 EZ |
4270 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
4271 | ||
25ed0b71 | 4272 | *t++ = 0; |
81ecdfbb | 4273 | if (s) return 0; |
25ed0b71 KW |
4274 | } |
4275 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4276 | int x[] = {25, 17}; | |
4277 | const int *foo = &x[0]; | |
4278 | ++foo; | |
4279 | } | |
4280 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4281 | typedef const int *iptr; | |
4282 | iptr p = 0; | |
4283 | ++p; | |
4284 | } | |
d0ac1c44 | 4285 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
25ed0b71 | 4286 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
d0ac1c44 SM |
4287 | struct s { int j; const int *ap[3]; } bx; |
4288 | struct s *b = &bx; b->j = 5; | |
25ed0b71 KW |
4289 | } |
4290 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4291 | const int foo = 10; | |
81ecdfbb | 4292 | if (!foo) return 0; |
25ed0b71 | 4293 | } |
81ecdfbb | 4294 | return !cs[0] && !zero.x; |
25ed0b71 | 4295 | #endif |
9255ee31 | 4296 | |
25ed0b71 KW |
4297 | ; |
4298 | return 0; | |
4299 | } | |
9255ee31 | 4300 | _ACEOF |
81ecdfbb | 4301 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 | 4302 | ac_cv_c_const=yes |
9255ee31 | 4303 | else |
81ecdfbb | 4304 | ac_cv_c_const=no |
c862e87b | 4305 | fi |
81ecdfbb | 4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 4307 | fi |
81ecdfbb RW |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4309 | $as_echo "$ac_cv_c_const" >&6; } | |
25ed0b71 KW |
4310 | if test $ac_cv_c_const = no; then |
4311 | ||
81ecdfbb | 4312 | $as_echo "#define const /**/" >>confdefs.h |
9255ee31 | 4313 | |
c862e87b JM |
4314 | fi |
4315 | ||
81ecdfbb RW |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
4317 | $as_echo_n "checking for function prototypes... " >&6; } | |
4318 | if test "$ac_cv_prog_cc_c89" != no; then | |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4320 | $as_echo "yes" >&6; } | |
25ed0b71 | 4321 | |
81ecdfbb | 4322 | $as_echo "#define PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4323 | |
4324 | ||
81ecdfbb | 4325 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4326 | |
4327 | else | |
81ecdfbb RW |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4329 | $as_echo "no" >&6; } | |
25ed0b71 KW |
4330 | fi |
4331 | ||
81ecdfbb RW |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
4333 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
d0ac1c44 | 4334 | if ${ac_cv_c_char_unsigned+:} false; then : |
81ecdfbb | 4335 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4336 | else |
81ecdfbb | 4337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4338 | /* end confdefs.h. */ |
9255ee31 EZ |
4339 | $ac_includes_default |
4340 | int | |
4341 | main () | |
4342 | { | |
25ed0b71 | 4343 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
d0ac1c44 SM |
4344 | test_array [0] = 0; |
4345 | return test_array [0]; | |
25ed0b71 | 4346 | |
9255ee31 EZ |
4347 | ; |
4348 | return 0; | |
4349 | } | |
4350 | _ACEOF | |
81ecdfbb | 4351 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4352 | ac_cv_c_char_unsigned=no |
d60d9f65 | 4353 | else |
81ecdfbb | 4354 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 4355 | fi |
81ecdfbb | 4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4357 | fi |
81ecdfbb RW |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
4359 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
9255ee31 | 4360 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
81ecdfbb | 4361 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
d60d9f65 | 4362 | |
9255ee31 | 4363 | fi |
d60d9f65 | 4364 | |
cc88a640 JK |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
4366 | $as_echo_n "checking for working volatile... " >&6; } | |
d0ac1c44 | 4367 | if ${ac_cv_c_volatile+:} false; then : |
cc88a640 JK |
4368 | $as_echo_n "(cached) " >&6 |
4369 | else | |
4370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4371 | /* end confdefs.h. */ | |
4372 | ||
4373 | int | |
4374 | main () | |
4375 | { | |
4376 | ||
4377 | volatile int x; | |
4378 | int * volatile y = (int *) 0; | |
4379 | return !x && !y; | |
4380 | ; | |
4381 | return 0; | |
4382 | } | |
4383 | _ACEOF | |
4384 | if ac_fn_c_try_compile "$LINENO"; then : | |
4385 | ac_cv_c_volatile=yes | |
4386 | else | |
4387 | ac_cv_c_volatile=no | |
4388 | fi | |
4389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4390 | fi | |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | |
4392 | $as_echo "$ac_cv_c_volatile" >&6; } | |
4393 | if test $ac_cv_c_volatile = no; then | |
4394 | ||
4395 | $as_echo "#define volatile /**/" >>confdefs.h | |
4396 | ||
4397 | fi | |
4398 | ||
25ed0b71 | 4399 | |
81ecdfbb RW |
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
4401 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
d0ac1c44 | 4402 | if ${ac_cv_type_signal+:} false; then : |
81ecdfbb | 4403 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4404 | else |
81ecdfbb | 4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4406 | /* end confdefs.h. */ |
d60d9f65 SS |
4407 | #include <sys/types.h> |
4408 | #include <signal.h> | |
d60d9f65 | 4409 | |
9255ee31 EZ |
4410 | int |
4411 | main () | |
4412 | { | |
81ecdfbb | 4413 | return *(signal (0, 0)) (0) == 1; |
9255ee31 EZ |
4414 | ; |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
81ecdfbb RW |
4418 | if ac_fn_c_try_compile "$LINENO"; then : |
4419 | ac_cv_type_signal=int | |
d60d9f65 | 4420 | else |
81ecdfbb | 4421 | ac_cv_type_signal=void |
d60d9f65 | 4422 | fi |
81ecdfbb | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4424 | fi |
81ecdfbb RW |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
4426 | $as_echo "$ac_cv_type_signal" >&6; } | |
d60d9f65 | 4427 | |
25ed0b71 | 4428 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 4429 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
4430 | _ACEOF |
4431 | ||
d60d9f65 | 4432 | |
25ed0b71 | 4433 | |
81ecdfbb | 4434 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
d0ac1c44 | 4435 | if test "x$ac_cv_type_size_t" = xyes; then : |
25ed0b71 | 4436 | |
9255ee31 EZ |
4437 | else |
4438 | ||
25ed0b71 | 4439 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4440 | #define size_t unsigned int |
25ed0b71 | 4441 | _ACEOF |
9255ee31 EZ |
4442 | |
4443 | fi | |
4444 | ||
81ecdfbb | 4445 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
d0ac1c44 | 4446 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
25ed0b71 | 4447 | |
9255ee31 EZ |
4448 | else |
4449 | ||
25ed0b71 | 4450 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4451 | #define ssize_t int |
25ed0b71 | 4452 | _ACEOF |
d60d9f65 | 4453 | |
9255ee31 | 4454 | fi |
d60d9f65 | 4455 | |
25ed0b71 | 4456 | |
81ecdfbb RW |
4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4458 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4459 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 4460 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 4461 | else |
81ecdfbb | 4462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4463 | /* end confdefs.h. */ |
4464 | #include <stdlib.h> | |
4465 | #include <stdarg.h> | |
4466 | #include <string.h> | |
4467 | #include <float.h> | |
4468 | ||
4469 | int | |
4470 | main () | |
4471 | { | |
4472 | ||
4473 | ; | |
4474 | return 0; | |
4475 | } | |
4476 | _ACEOF | |
81ecdfbb | 4477 | if ac_fn_c_try_compile "$LINENO"; then : |
5bdf8622 DJ |
4478 | ac_cv_header_stdc=yes |
4479 | else | |
81ecdfbb | 4480 | ac_cv_header_stdc=no |
5bdf8622 | 4481 | fi |
81ecdfbb | 4482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 DJ |
4483 | |
4484 | if test $ac_cv_header_stdc = yes; then | |
4485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4487 | /* end confdefs.h. */ |
4488 | #include <string.h> | |
4489 | ||
4490 | _ACEOF | |
4491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4492 | $EGREP "memchr" >/dev/null 2>&1; then : |
4493 | ||
5bdf8622 DJ |
4494 | else |
4495 | ac_cv_header_stdc=no | |
4496 | fi | |
4497 | rm -f conftest* | |
4498 | ||
4499 | fi | |
4500 | ||
4501 | if test $ac_cv_header_stdc = yes; then | |
4502 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4504 | /* end confdefs.h. */ |
4505 | #include <stdlib.h> | |
4506 | ||
4507 | _ACEOF | |
4508 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4509 | $EGREP "free" >/dev/null 2>&1; then : |
4510 | ||
5bdf8622 DJ |
4511 | else |
4512 | ac_cv_header_stdc=no | |
4513 | fi | |
4514 | rm -f conftest* | |
4515 | ||
4516 | fi | |
4517 | ||
4518 | if test $ac_cv_header_stdc = yes; then | |
4519 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4520 | if test "$cross_compiling" = yes; then : |
5bdf8622 DJ |
4521 | : |
4522 | else | |
81ecdfbb | 4523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4524 | /* end confdefs.h. */ |
4525 | #include <ctype.h> | |
81ecdfbb | 4526 | #include <stdlib.h> |
5bdf8622 DJ |
4527 | #if ((' ' & 0x0FF) == 0x020) |
4528 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4529 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4530 | #else | |
4531 | # define ISLOWER(c) \ | |
4532 | (('a' <= (c) && (c) <= 'i') \ | |
4533 | || ('j' <= (c) && (c) <= 'r') \ | |
4534 | || ('s' <= (c) && (c) <= 'z')) | |
4535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4536 | #endif | |
4537 | ||
4538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4539 | int | |
4540 | main () | |
4541 | { | |
4542 | int i; | |
4543 | for (i = 0; i < 256; i++) | |
4544 | if (XOR (islower (i), ISLOWER (i)) | |
4545 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4546 | return 2; |
4547 | return 0; | |
5bdf8622 DJ |
4548 | } |
4549 | _ACEOF | |
81ecdfbb | 4550 | if ac_fn_c_try_run "$LINENO"; then : |
5bdf8622 | 4551 | |
81ecdfbb RW |
4552 | else |
4553 | ac_cv_header_stdc=no | |
5bdf8622 | 4554 | fi |
81ecdfbb RW |
4555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4556 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4557 | fi |
81ecdfbb | 4558 | |
5bdf8622 DJ |
4559 | fi |
4560 | fi | |
81ecdfbb RW |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4562 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5bdf8622 DJ |
4563 | if test $ac_cv_header_stdc = yes; then |
4564 | ||
81ecdfbb | 4565 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5bdf8622 DJ |
4566 | |
4567 | fi | |
4568 | ||
4569 | ||
81ecdfbb RW |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
4571 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
d0ac1c44 | 4572 | if ${ac_cv_header_stat_broken+:} false; then : |
81ecdfbb | 4573 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4574 | else |
81ecdfbb | 4575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4576 | /* end confdefs.h. */ |
d60d9f65 SS |
4577 | #include <sys/types.h> |
4578 | #include <sys/stat.h> | |
4579 | ||
81ecdfbb RW |
4580 | #if defined S_ISBLK && defined S_IFDIR |
4581 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
d60d9f65 SS |
4582 | #endif |
4583 | ||
81ecdfbb RW |
4584 | #if defined S_ISBLK && defined S_IFCHR |
4585 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
d60d9f65 SS |
4586 | #endif |
4587 | ||
81ecdfbb RW |
4588 | #if defined S_ISLNK && defined S_IFREG |
4589 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4590 | #endif |
4591 | ||
81ecdfbb RW |
4592 | #if defined S_ISSOCK && defined S_IFREG |
4593 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4594 | #endif |
4595 | ||
9255ee31 | 4596 | _ACEOF |
81ecdfbb | 4597 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 | 4598 | ac_cv_header_stat_broken=no |
81ecdfbb RW |
4599 | else |
4600 | ac_cv_header_stat_broken=yes | |
d60d9f65 | 4601 | fi |
81ecdfbb | 4602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4603 | fi |
81ecdfbb RW |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
4605 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
d60d9f65 | 4606 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 4607 | |
81ecdfbb | 4608 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
d60d9f65 SS |
4609 | |
4610 | fi | |
4611 | ||
4612 | ac_header_dirent=no | |
9255ee31 | 4613 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
4614 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4616 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0ac1c44 | 4617 | if eval \${$as_ac_Header+:} false; then : |
81ecdfbb RW |
4618 | $as_echo_n "(cached) " >&6 |
4619 | else | |
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 4621 | /* end confdefs.h. */ |
d60d9f65 SS |
4622 | #include <sys/types.h> |
4623 | #include <$ac_hdr> | |
9255ee31 EZ |
4624 | |
4625 | int | |
4626 | main () | |
4627 | { | |
4628 | if ((DIR *) 0) | |
4629 | return 0; | |
4630 | ; | |
4631 | return 0; | |
4632 | } | |
4633 | _ACEOF | |
81ecdfbb | 4634 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4635 | eval "$as_ac_Header=yes" |
d60d9f65 | 4636 | else |
81ecdfbb | 4637 | eval "$as_ac_Header=no" |
d60d9f65 | 4638 | fi |
81ecdfbb | 4639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4640 | fi |
81ecdfbb RW |
4641 | eval ac_res=\$$as_ac_Header |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4643 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 4644 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
25ed0b71 | 4645 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4646 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 4647 | _ACEOF |
9255ee31 EZ |
4648 | |
4649 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 4650 | fi |
9255ee31 | 4651 | |
d60d9f65 SS |
4652 | done |
4653 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4654 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4656 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0ac1c44 | 4657 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 4658 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4659 | else |
25ed0b71 | 4660 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4662 | /* end confdefs.h. */ |
9255ee31 | 4663 | |
81ecdfbb RW |
4664 | /* Override any GCC internal prototype to avoid an error. |
4665 | Use char because int might match the return type of a GCC | |
4666 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4667 | #ifdef __cplusplus |
4668 | extern "C" | |
4669 | #endif | |
9255ee31 EZ |
4670 | char opendir (); |
4671 | int | |
4672 | main () | |
4673 | { | |
81ecdfbb | 4674 | return opendir (); |
9255ee31 EZ |
4675 | ; |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
81ecdfbb RW |
4679 | for ac_lib in '' dir; do |
4680 | if test -z "$ac_lib"; then | |
4681 | ac_res="none required" | |
4682 | else | |
4683 | ac_res=-l$ac_lib | |
25ed0b71 | 4684 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4685 | fi |
4686 | if ac_fn_c_try_link "$LINENO"; then : | |
4687 | ac_cv_search_opendir=$ac_res | |
4688 | fi | |
4689 | rm -f core conftest.err conftest.$ac_objext \ | |
4690 | conftest$ac_exeext | |
d0ac1c44 | 4691 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
4692 | break |
4693 | fi | |
4694 | done | |
d0ac1c44 | 4695 | if ${ac_cv_search_opendir+:} false; then : |
25ed0b71 | 4696 | |
25ed0b71 | 4697 | else |
81ecdfbb | 4698 | ac_cv_search_opendir=no |
25ed0b71 | 4699 | fi |
81ecdfbb | 4700 | rm conftest.$ac_ext |
25ed0b71 | 4701 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4702 | fi |
81ecdfbb RW |
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4704 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4705 | ac_res=$ac_cv_search_opendir | |
4706 | if test "$ac_res" != no; then : | |
4707 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25ed0b71 | 4708 | |
d60d9f65 SS |
4709 | fi |
4710 | ||
4711 | else | |
81ecdfbb RW |
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4713 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0ac1c44 | 4714 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 4715 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4716 | else |
25ed0b71 | 4717 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4719 | /* end confdefs.h. */ |
9255ee31 | 4720 | |
81ecdfbb RW |
4721 | /* Override any GCC internal prototype to avoid an error. |
4722 | Use char because int might match the return type of a GCC | |
4723 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4724 | #ifdef __cplusplus |
4725 | extern "C" | |
4726 | #endif | |
9255ee31 EZ |
4727 | char opendir (); |
4728 | int | |
4729 | main () | |
4730 | { | |
81ecdfbb | 4731 | return opendir (); |
9255ee31 EZ |
4732 | ; |
4733 | return 0; | |
4734 | } | |
4735 | _ACEOF | |
81ecdfbb RW |
4736 | for ac_lib in '' x; do |
4737 | if test -z "$ac_lib"; then | |
4738 | ac_res="none required" | |
4739 | else | |
4740 | ac_res=-l$ac_lib | |
25ed0b71 | 4741 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4742 | fi |
4743 | if ac_fn_c_try_link "$LINENO"; then : | |
4744 | ac_cv_search_opendir=$ac_res | |
4745 | fi | |
4746 | rm -f core conftest.err conftest.$ac_objext \ | |
4747 | conftest$ac_exeext | |
d0ac1c44 | 4748 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
4749 | break |
4750 | fi | |
4751 | done | |
d0ac1c44 | 4752 | if ${ac_cv_search_opendir+:} false; then : |
25ed0b71 | 4753 | |
25ed0b71 | 4754 | else |
81ecdfbb | 4755 | ac_cv_search_opendir=no |
d60d9f65 | 4756 | fi |
81ecdfbb | 4757 | rm conftest.$ac_ext |
25ed0b71 | 4758 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4759 | fi |
81ecdfbb RW |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4761 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4762 | ac_res=$ac_cv_search_opendir | |
4763 | if test "$ac_res" != no; then : | |
4764 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d60d9f65 SS |
4765 | |
4766 | fi | |
4767 | ||
25ed0b71 KW |
4768 | fi |
4769 | ||
4770 | ||
775e241e | 4771 | for ac_func in fcntl kill lstat readlink |
81ecdfbb RW |
4772 | do : |
4773 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4774 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 4775 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4776 | cat >>confdefs.h <<_ACEOF |
4777 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4778 | _ACEOF | |
25ed0b71 | 4779 | |
81ecdfbb RW |
4780 | fi |
4781 | done | |
25ed0b71 | 4782 | |
cb41b9e7 | 4783 | for ac_func in fnmatch memmove pselect putenv select setenv setlocale \ |
81ecdfbb RW |
4784 | strcasecmp strpbrk tcgetattr vsnprintf |
4785 | do : | |
4786 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4787 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 4788 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4789 | cat >>confdefs.h <<_ACEOF |
4790 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4791 | _ACEOF | |
25ed0b71 | 4792 | |
81ecdfbb RW |
4793 | fi |
4794 | done | |
4795 | ||
4796 | for ac_func in isascii isxdigit | |
4797 | do : | |
4798 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4799 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 4800 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4801 | cat >>confdefs.h <<_ACEOF |
4802 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25ed0b71 | 4803 | _ACEOF |
430b7832 | 4804 | |
81ecdfbb RW |
4805 | fi |
4806 | done | |
430b7832 | 4807 | |
81ecdfbb RW |
4808 | for ac_func in getpwent getpwnam getpwuid |
4809 | do : | |
4810 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4811 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 4812 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4813 | cat >>confdefs.h <<_ACEOF |
4814 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4815 | _ACEOF | |
430b7832 | 4816 | |
81ecdfbb RW |
4817 | fi |
4818 | done | |
430b7832 | 4819 | |
d60d9f65 | 4820 | |
775e241e TT |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
4822 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
4823 | if ${ac_cv_type_uid_t+:} false; then : | |
4824 | $as_echo_n "(cached) " >&6 | |
4825 | else | |
4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4827 | /* end confdefs.h. */ | |
4828 | #include <sys/types.h> | |
4829 | ||
4830 | _ACEOF | |
4831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4832 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
4833 | ac_cv_type_uid_t=yes | |
4834 | else | |
4835 | ac_cv_type_uid_t=no | |
4836 | fi | |
4837 | rm -f conftest* | |
4838 | ||
4839 | fi | |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
4841 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
4842 | if test $ac_cv_type_uid_t = no; then | |
4843 | ||
4844 | $as_echo "#define uid_t int" >>confdefs.h | |
4845 | ||
4846 | ||
4847 | $as_echo "#define gid_t int" >>confdefs.h | |
4848 | ||
4849 | fi | |
4850 | ||
4851 | for ac_header in unistd.h | |
4852 | do : | |
4853 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
4854 | if test "x$ac_cv_header_unistd_h" = xyes; then : | |
4855 | cat >>confdefs.h <<_ACEOF | |
4856 | #define HAVE_UNISTD_H 1 | |
4857 | _ACEOF | |
4858 | ||
4859 | fi | |
4860 | ||
4861 | done | |
4862 | ||
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 | |
4864 | $as_echo_n "checking for working chown... " >&6; } | |
4865 | if ${ac_cv_func_chown_works+:} false; then : | |
4866 | $as_echo_n "(cached) " >&6 | |
4867 | else | |
4868 | if test "$cross_compiling" = yes; then : | |
4869 | ac_cv_func_chown_works=no | |
4870 | else | |
4871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4872 | /* end confdefs.h. */ | |
4873 | $ac_includes_default | |
4874 | #include <fcntl.h> | |
4875 | ||
4876 | int | |
4877 | main () | |
4878 | { | |
4879 | char *f = "conftest.chown"; | |
4880 | struct stat before, after; | |
4881 | ||
4882 | if (creat (f, 0600) < 0) | |
4883 | return 1; | |
4884 | if (stat (f, &before) < 0) | |
4885 | return 1; | |
4886 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
4887 | return 1; | |
4888 | if (stat (f, &after) < 0) | |
4889 | return 1; | |
4890 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
4891 | ||
4892 | ; | |
4893 | return 0; | |
4894 | } | |
4895 | _ACEOF | |
4896 | if ac_fn_c_try_run "$LINENO"; then : | |
4897 | ac_cv_func_chown_works=yes | |
4898 | else | |
4899 | ac_cv_func_chown_works=no | |
4900 | fi | |
4901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4902 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4903 | fi | |
4904 | ||
4905 | rm -f conftest.chown | |
4906 | ||
4907 | fi | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
4909 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
4910 | if test $ac_cv_func_chown_works = yes; then | |
4911 | ||
4912 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h | |
4913 | ||
4914 | fi | |
4915 | ||
81ecdfbb RW |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 |
4917 | $as_echo_n "checking for working strcoll... " >&6; } | |
d0ac1c44 | 4918 | if ${ac_cv_func_strcoll_works+:} false; then : |
81ecdfbb RW |
4919 | $as_echo_n "(cached) " >&6 |
4920 | else | |
4921 | if test "$cross_compiling" = yes; then : | |
4922 | ac_cv_func_strcoll_works=no | |
4923 | else | |
4924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4925 | /* end confdefs.h. */ | |
4926 | $ac_includes_default | |
25ed0b71 KW |
4927 | int |
4928 | main () | |
4929 | { | |
81ecdfbb RW |
4930 | return (strcoll ("abc", "def") >= 0 || |
4931 | strcoll ("ABC", "DEF") >= 0 || | |
4932 | strcoll ("123", "456") >= 0) | |
9255ee31 EZ |
4933 | ; |
4934 | return 0; | |
4935 | } | |
4936 | _ACEOF | |
81ecdfbb RW |
4937 | if ac_fn_c_try_run "$LINENO"; then : |
4938 | ac_cv_func_strcoll_works=yes | |
d60d9f65 | 4939 | else |
81ecdfbb RW |
4940 | ac_cv_func_strcoll_works=no |
4941 | fi | |
4942 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4943 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4944 | fi | |
25ed0b71 | 4945 | |
d60d9f65 | 4946 | fi |
81ecdfbb RW |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 |
4948 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
4949 | if test $ac_cv_func_strcoll_works = yes; then | |
4950 | ||
4951 | $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h | |
4952 | ||
d60d9f65 | 4953 | fi |
81ecdfbb RW |
4954 | |
4955 | ||
775e241e TT |
4956 | for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \ |
4957 | string.h strings.h \ | |
81ecdfbb RW |
4958 | limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h |
4959 | do : | |
4960 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4961 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 4962 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
25ed0b71 | 4963 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4964 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4965 | _ACEOF |
9255ee31 | 4966 | |
d60d9f65 | 4967 | fi |
81ecdfbb | 4968 | |
d60d9f65 SS |
4969 | done |
4970 | ||
775e241e | 4971 | for ac_header in sys/ioctl.h sys/pte.h sys/stream.h sys/select.h sys/file.h |
81ecdfbb RW |
4972 | do : |
4973 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4974 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d0ac1c44 | 4975 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
4976 | cat >>confdefs.h <<_ACEOF |
4977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4978 | _ACEOF | |
25ed0b71 | 4979 | |
81ecdfbb | 4980 | fi |
5bdf8622 | 4981 | |
81ecdfbb | 4982 | done |
5bdf8622 DJ |
4983 | |
4984 | ||
81ecdfbb RW |
4985 | for ac_header in sys/ptem.h |
4986 | do : | |
4987 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " | |
4988 | #if HAVE_SYS_STREAM_H | |
4989 | # include <sys/stream.h> | |
4990 | #endif | |
5bdf8622 | 4991 | |
81ecdfbb | 4992 | " |
d0ac1c44 | 4993 | if test "x$ac_cv_header_sys_ptem_h" = xyes; then : |
81ecdfbb RW |
4994 | cat >>confdefs.h <<_ACEOF |
4995 | #define HAVE_SYS_PTEM_H 1 | |
4996 | _ACEOF | |
5bdf8622 | 4997 | |
81ecdfbb | 4998 | fi |
5bdf8622 | 4999 | |
81ecdfbb | 5000 | done |
5bdf8622 DJ |
5001 | |
5002 | ||
cc88a640 JK |
5003 | # Check whether --enable-largefile was given. |
5004 | if test "${enable_largefile+set}" = set; then : | |
5005 | enableval=$enable_largefile; | |
5006 | fi | |
5007 | ||
5008 | if test "$enable_largefile" != no; then | |
5009 | ||
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
5011 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 5012 | if ${ac_cv_sys_largefile_CC+:} false; then : |
cc88a640 JK |
5013 | $as_echo_n "(cached) " >&6 |
5014 | else | |
5015 | ac_cv_sys_largefile_CC=no | |
5016 | if test "$GCC" != yes; then | |
5017 | ac_save_CC=$CC | |
5018 | while :; do | |
5019 | # IRIX 6.2 and later do not support large files by default, | |
5020 | # so use the C compiler's -n32 option if that helps. | |
5021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5022 | /* end confdefs.h. */ | |
5023 | #include <sys/types.h> | |
5024 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5025 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5026 | since some C++ compilers masquerading as C compilers | |
5027 | incorrectly reject 9223372036854775807. */ | |
5028 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5029 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5030 | && LARGE_OFF_T % 2147483647 == 1) | |
5031 | ? 1 : -1]; | |
5032 | int | |
5033 | main () | |
5034 | { | |
5035 | ||
5036 | ; | |
5037 | return 0; | |
5038 | } | |
5039 | _ACEOF | |
5040 | if ac_fn_c_try_compile "$LINENO"; then : | |
5041 | break | |
5042 | fi | |
5043 | rm -f core conftest.err conftest.$ac_objext | |
5044 | CC="$CC -n32" | |
5045 | if ac_fn_c_try_compile "$LINENO"; then : | |
5046 | ac_cv_sys_largefile_CC=' -n32'; break | |
5047 | fi | |
5048 | rm -f core conftest.err conftest.$ac_objext | |
5049 | break | |
5050 | done | |
5051 | CC=$ac_save_CC | |
5052 | rm -f conftest.$ac_ext | |
5053 | fi | |
5054 | fi | |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
5056 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
5057 | if test "$ac_cv_sys_largefile_CC" != no; then | |
5058 | CC=$CC$ac_cv_sys_largefile_CC | |
5059 | fi | |
5060 | ||
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5062 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 5063 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
cc88a640 JK |
5064 | $as_echo_n "(cached) " >&6 |
5065 | else | |
5066 | while :; do | |
5067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5068 | /* end confdefs.h. */ | |
5069 | #include <sys/types.h> | |
5070 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5071 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5072 | since some C++ compilers masquerading as C compilers | |
5073 | incorrectly reject 9223372036854775807. */ | |
5074 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5075 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5076 | && LARGE_OFF_T % 2147483647 == 1) | |
5077 | ? 1 : -1]; | |
5078 | int | |
5079 | main () | |
5080 | { | |
5081 | ||
5082 | ; | |
5083 | return 0; | |
5084 | } | |
5085 | _ACEOF | |
5086 | if ac_fn_c_try_compile "$LINENO"; then : | |
5087 | ac_cv_sys_file_offset_bits=no; break | |
5088 | fi | |
5089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5091 | /* end confdefs.h. */ | |
5092 | #define _FILE_OFFSET_BITS 64 | |
5093 | #include <sys/types.h> | |
5094 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5095 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5096 | since some C++ compilers masquerading as C compilers | |
5097 | incorrectly reject 9223372036854775807. */ | |
5098 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5099 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5100 | && LARGE_OFF_T % 2147483647 == 1) | |
5101 | ? 1 : -1]; | |
5102 | int | |
5103 | main () | |
5104 | { | |
5105 | ||
5106 | ; | |
5107 | return 0; | |
5108 | } | |
5109 | _ACEOF | |
5110 | if ac_fn_c_try_compile "$LINENO"; then : | |
5111 | ac_cv_sys_file_offset_bits=64; break | |
5112 | fi | |
5113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5114 | ac_cv_sys_file_offset_bits=unknown | |
5115 | break | |
5116 | done | |
5117 | fi | |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
5119 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5120 | case $ac_cv_sys_file_offset_bits in #( | |
5121 | no | unknown) ;; | |
5122 | *) | |
5123 | cat >>confdefs.h <<_ACEOF | |
5124 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5125 | _ACEOF | |
5126 | ;; | |
5127 | esac | |
5128 | rm -rf conftest* | |
5129 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5131 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 5132 | if ${ac_cv_sys_large_files+:} false; then : |
cc88a640 JK |
5133 | $as_echo_n "(cached) " >&6 |
5134 | else | |
5135 | while :; do | |
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 | /* end confdefs.h. */ | |
5138 | #include <sys/types.h> | |
5139 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5140 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5141 | since some C++ compilers masquerading as C compilers | |
5142 | incorrectly reject 9223372036854775807. */ | |
5143 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5144 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5145 | && LARGE_OFF_T % 2147483647 == 1) | |
5146 | ? 1 : -1]; | |
5147 | int | |
5148 | main () | |
5149 | { | |
5150 | ||
5151 | ; | |
5152 | return 0; | |
5153 | } | |
5154 | _ACEOF | |
5155 | if ac_fn_c_try_compile "$LINENO"; then : | |
5156 | ac_cv_sys_large_files=no; break | |
5157 | fi | |
5158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5160 | /* end confdefs.h. */ | |
5161 | #define _LARGE_FILES 1 | |
5162 | #include <sys/types.h> | |
5163 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5164 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5165 | since some C++ compilers masquerading as C compilers | |
5166 | incorrectly reject 9223372036854775807. */ | |
5167 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5168 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5169 | && LARGE_OFF_T % 2147483647 == 1) | |
5170 | ? 1 : -1]; | |
5171 | int | |
5172 | main () | |
5173 | { | |
5174 | ||
5175 | ; | |
5176 | return 0; | |
5177 | } | |
5178 | _ACEOF | |
5179 | if ac_fn_c_try_compile "$LINENO"; then : | |
5180 | ac_cv_sys_large_files=1; break | |
5181 | fi | |
5182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5183 | ac_cv_sys_large_files=unknown | |
5184 | break | |
5185 | done | |
5186 | fi | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
5188 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5189 | case $ac_cv_sys_large_files in #( | |
5190 | no | unknown) ;; | |
5191 | *) | |
5192 | cat >>confdefs.h <<_ACEOF | |
5193 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5194 | _ACEOF | |
5195 | ;; | |
5196 | esac | |
5197 | rm -rf conftest* | |
5198 | fi | |
d0ac1c44 SM |
5199 | |
5200 | ||
cc88a640 JK |
5201 | fi |
5202 | ||
5203 | ||
5bdf8622 | 5204 | |
81ecdfbb RW |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 |
5206 | $as_echo_n "checking for type of signal functions... " >&6; } | |
d0ac1c44 | 5207 | if ${bash_cv_signal_vintage+:} false; then : |
81ecdfbb RW |
5208 | $as_echo_n "(cached) " >&6 |
5209 | else | |
5bdf8622 | 5210 | |
81ecdfbb RW |
5211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5212 | /* end confdefs.h. */ | |
5213 | #include <signal.h> | |
5214 | int | |
5215 | main () | |
5216 | { | |
5217 | ||
5218 | sigset_t ss; | |
5219 | struct sigaction sa; | |
5220 | sigemptyset(&ss); sigsuspend(&ss); | |
5221 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
5222 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
5bdf8622 | 5223 | |
81ecdfbb RW |
5224 | ; |
5225 | return 0; | |
5226 | } | |
5227 | _ACEOF | |
5228 | if ac_fn_c_try_link "$LINENO"; then : | |
5229 | bash_cv_signal_vintage=posix | |
5230 | else | |
5bdf8622 | 5231 | |
81ecdfbb RW |
5232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5233 | /* end confdefs.h. */ | |
5234 | #include <signal.h> | |
5235 | int | |
5236 | main () | |
5bdf8622 | 5237 | { |
81ecdfbb RW |
5238 | |
5239 | int mask = sigmask(SIGINT); | |
5240 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
5241 | ||
5242 | ; | |
5243 | return 0; | |
5bdf8622 | 5244 | } |
81ecdfbb RW |
5245 | _ACEOF |
5246 | if ac_fn_c_try_link "$LINENO"; then : | |
5247 | bash_cv_signal_vintage=4.2bsd | |
5248 | else | |
5bdf8622 | 5249 | |
81ecdfbb RW |
5250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5251 | /* end confdefs.h. */ | |
5252 | ||
5253 | #include <signal.h> | |
5254 | RETSIGTYPE foo() { } | |
5bdf8622 DJ |
5255 | int |
5256 | main () | |
5257 | { | |
81ecdfbb RW |
5258 | |
5259 | int mask = sigmask(SIGINT); | |
5260 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
5261 | sighold(SIGINT); sigpause(SIGINT); | |
5262 | ||
5bdf8622 DJ |
5263 | ; |
5264 | return 0; | |
5265 | } | |
5266 | _ACEOF | |
81ecdfbb RW |
5267 | if ac_fn_c_try_link "$LINENO"; then : |
5268 | bash_cv_signal_vintage=svr3 | |
5bdf8622 | 5269 | else |
81ecdfbb | 5270 | bash_cv_signal_vintage=v7 |
5bdf8622 | 5271 | |
5bdf8622 | 5272 | fi |
81ecdfbb RW |
5273 | rm -f core conftest.err conftest.$ac_objext \ |
5274 | conftest$ac_exeext conftest.$ac_ext | |
5275 | ||
5bdf8622 | 5276 | fi |
81ecdfbb RW |
5277 | rm -f core conftest.err conftest.$ac_objext \ |
5278 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 DJ |
5279 | |
5280 | fi | |
81ecdfbb RW |
5281 | rm -f core conftest.err conftest.$ac_objext \ |
5282 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 5283 | |
81ecdfbb | 5284 | fi |
5bdf8622 | 5285 | |
81ecdfbb RW |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 |
5287 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
5288 | if test "$bash_cv_signal_vintage" = posix; then | |
5289 | $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 5290 | |
81ecdfbb RW |
5291 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
5292 | $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 5293 | |
81ecdfbb RW |
5294 | elif test "$bash_cv_signal_vintage" = svr3; then |
5295 | $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h | |
5bdf8622 | 5296 | |
81ecdfbb RW |
5297 | fi |
5298 | ||
5299 | ||
5300 | ||
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 | |
5302 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
d0ac1c44 | 5303 | if ${bash_cv_must_reinstall_sighandlers+:} false; then : |
81ecdfbb RW |
5304 | $as_echo_n "(cached) " >&6 |
5305 | else | |
5306 | if test "$cross_compiling" = yes; then : | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 | |
5308 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
5309 | bash_cv_must_reinstall_sighandlers=no | |
5310 | ||
5311 | else | |
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5313 | /* end confdefs.h. */ | |
5314 | ||
5315 | #include <signal.h> | |
5316 | #ifdef HAVE_UNISTD_H | |
5317 | #include <unistd.h> | |
5bdf8622 DJ |
5318 | #endif |
5319 | ||
81ecdfbb | 5320 | typedef RETSIGTYPE sigfunc(); |
5bdf8622 | 5321 | |
cb41b9e7 | 5322 | volatile int nsigint; |
81ecdfbb RW |
5323 | |
5324 | #ifdef HAVE_POSIX_SIGNALS | |
5325 | sigfunc * | |
5326 | set_signal_handler(sig, handler) | |
5327 | int sig; | |
5328 | sigfunc *handler; | |
5bdf8622 | 5329 | { |
81ecdfbb RW |
5330 | struct sigaction act, oact; |
5331 | act.sa_handler = handler; | |
5332 | act.sa_flags = 0; | |
5333 | sigemptyset (&act.sa_mask); | |
5334 | sigemptyset (&oact.sa_mask); | |
5335 | sigaction (sig, &act, &oact); | |
5336 | return (oact.sa_handler); | |
5337 | } | |
5bdf8622 | 5338 | #else |
81ecdfbb | 5339 | #define set_signal_handler(s, h) signal(s, h) |
5bdf8622 | 5340 | #endif |
81ecdfbb RW |
5341 | |
5342 | RETSIGTYPE | |
5343 | sigint(s) | |
5344 | int s; | |
5345 | { | |
5346 | nsigint++; | |
5bdf8622 | 5347 | } |
5bdf8622 | 5348 | |
81ecdfbb | 5349 | main() |
5bdf8622 | 5350 | { |
81ecdfbb RW |
5351 | nsigint = 0; |
5352 | set_signal_handler(SIGINT, sigint); | |
5353 | kill((int)getpid(), SIGINT); | |
5354 | kill((int)getpid(), SIGINT); | |
5355 | exit(nsigint != 2); | |
5bdf8622 | 5356 | } |
81ecdfbb | 5357 | |
5bdf8622 | 5358 | _ACEOF |
81ecdfbb RW |
5359 | if ac_fn_c_try_run "$LINENO"; then : |
5360 | bash_cv_must_reinstall_sighandlers=no | |
5bdf8622 | 5361 | else |
81ecdfbb | 5362 | bash_cv_must_reinstall_sighandlers=yes |
5bdf8622 | 5363 | fi |
81ecdfbb RW |
5364 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5365 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5366 | fi |
5bdf8622 DJ |
5367 | |
5368 | fi | |
5bdf8622 | 5369 | |
81ecdfbb RW |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 |
5371 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
5372 | if test $bash_cv_must_reinstall_sighandlers = yes; then | |
5373 | $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h | |
5bdf8622 | 5374 | |
81ecdfbb | 5375 | fi |
5bdf8622 DJ |
5376 | |
5377 | ||
5bdf8622 | 5378 | |
81ecdfbb RW |
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
5380 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
d0ac1c44 | 5381 | if ${bash_cv_func_sigsetjmp+:} false; then : |
81ecdfbb RW |
5382 | $as_echo_n "(cached) " >&6 |
5383 | else | |
5384 | if test "$cross_compiling" = yes; then : | |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 | |
5386 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
5387 | bash_cv_func_sigsetjmp=missing | |
5bdf8622 | 5388 | |
81ecdfbb RW |
5389 | else |
5390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5391 | /* end confdefs.h. */ | |
5bdf8622 | 5392 | |
81ecdfbb RW |
5393 | #ifdef HAVE_UNISTD_H |
5394 | #include <unistd.h> | |
5395 | #endif | |
5396 | #include <sys/types.h> | |
5397 | #include <signal.h> | |
5398 | #include <setjmp.h> | |
5bdf8622 | 5399 | |
81ecdfbb | 5400 | main() |
5bdf8622 | 5401 | { |
81ecdfbb RW |
5402 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
5403 | exit (1); | |
5bdf8622 | 5404 | #else |
5bdf8622 | 5405 | |
81ecdfbb RW |
5406 | int code; |
5407 | sigset_t set, oset; | |
5408 | sigjmp_buf xx; | |
5409 | ||
5410 | /* get the mask */ | |
5411 | sigemptyset(&set); | |
5412 | sigemptyset(&oset); | |
5413 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
5414 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
5415 | ||
5416 | /* save it */ | |
5417 | code = sigsetjmp(xx, 1); | |
5418 | if (code) | |
5419 | exit(0); /* could get sigmask and compare to oset here. */ | |
5420 | ||
5421 | /* change it */ | |
5422 | sigaddset(&set, SIGINT); | |
5423 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
5424 | ||
5425 | /* and siglongjmp */ | |
5426 | siglongjmp(xx, 10); | |
5427 | exit(1); | |
5428 | #endif | |
5bdf8622 DJ |
5429 | } |
5430 | _ACEOF | |
81ecdfbb RW |
5431 | if ac_fn_c_try_run "$LINENO"; then : |
5432 | bash_cv_func_sigsetjmp=present | |
5bdf8622 | 5433 | else |
81ecdfbb | 5434 | bash_cv_func_sigsetjmp=missing |
5bdf8622 | 5435 | fi |
81ecdfbb RW |
5436 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5437 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5438 | fi |
5bdf8622 DJ |
5439 | |
5440 | fi | |
5bdf8622 | 5441 | |
81ecdfbb RW |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 |
5443 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
5444 | if test $bash_cv_func_sigsetjmp = present; then | |
5445 | $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h | |
5bdf8622 | 5446 | |
81ecdfbb RW |
5447 | fi |
5448 | ||
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 | |
5450 | $as_echo_n "checking for lstat... " >&6; } | |
d0ac1c44 | 5451 | if ${bash_cv_func_lstat+:} false; then : |
81ecdfbb | 5452 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 5453 | else |
81ecdfbb | 5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5455 | /* end confdefs.h. */ |
81ecdfbb RW |
5456 | |
5457 | #include <sys/types.h> | |
5458 | #include <sys/stat.h> | |
5459 | ||
5bdf8622 DJ |
5460 | int |
5461 | main () | |
5462 | { | |
81ecdfbb | 5463 | lstat(".",(struct stat *)0); |
5bdf8622 DJ |
5464 | ; |
5465 | return 0; | |
5466 | } | |
5467 | _ACEOF | |
81ecdfbb RW |
5468 | if ac_fn_c_try_link "$LINENO"; then : |
5469 | bash_cv_func_lstat=yes | |
5bdf8622 | 5470 | else |
81ecdfbb | 5471 | bash_cv_func_lstat=no |
5bdf8622 | 5472 | fi |
81ecdfbb RW |
5473 | rm -f core conftest.err conftest.$ac_objext \ |
5474 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 5475 | fi |
81ecdfbb RW |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 |
5477 | $as_echo "$bash_cv_func_lstat" >&6; } | |
5478 | if test $bash_cv_func_lstat = yes; then | |
5479 | $as_echo "#define HAVE_LSTAT 1" >>confdefs.h | |
5bdf8622 DJ |
5480 | |
5481 | fi | |
5482 | ||
5483 | ||
81ecdfbb RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 |
5485 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
d0ac1c44 | 5486 | if ${bash_cv_func_strcoll_broken+:} false; then : |
81ecdfbb RW |
5487 | $as_echo_n "(cached) " >&6 |
5488 | else | |
5489 | if test "$cross_compiling" = yes; then : | |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 | |
5491 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
5492 | bash_cv_func_strcoll_broken=no | |
5bdf8622 | 5493 | |
81ecdfbb RW |
5494 | else |
5495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5496 | /* end confdefs.h. */ | |
5bdf8622 | 5497 | |
81ecdfbb RW |
5498 | #include <stdio.h> |
5499 | #if defined (HAVE_LOCALE_H) | |
5500 | #include <locale.h> | |
5501 | #endif | |
5bdf8622 | 5502 | |
81ecdfbb RW |
5503 | main(c, v) |
5504 | int c; | |
5505 | char *v[]; | |
5506 | { | |
5507 | int r1, r2; | |
5508 | char *deflocale, *defcoll; | |
5bdf8622 | 5509 | |
81ecdfbb RW |
5510 | #ifdef HAVE_SETLOCALE |
5511 | deflocale = setlocale(LC_ALL, ""); | |
5512 | defcoll = setlocale(LC_COLLATE, ""); | |
5513 | #endif | |
5bdf8622 | 5514 | |
81ecdfbb RW |
5515 | #ifdef HAVE_STRCOLL |
5516 | /* These two values are taken from tests/glob-test. */ | |
5517 | r1 = strcoll("abd", "aXd"); | |
5518 | #else | |
5519 | r1 = 0; | |
5520 | #endif | |
5521 | r2 = strcmp("abd", "aXd"); | |
5bdf8622 | 5522 | |
81ecdfbb RW |
5523 | /* These two should both be greater than 0. It is permissible for |
5524 | a system to return different values, as long as the sign is the | |
5525 | same. */ | |
5bdf8622 | 5526 | |
81ecdfbb RW |
5527 | /* Exit with 1 (failure) if these two values are both > 0, since |
5528 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
5529 | in the default locale. */ | |
5530 | exit (r1 > 0 && r2 > 0); | |
5531 | } | |
5bdf8622 | 5532 | |
81ecdfbb RW |
5533 | _ACEOF |
5534 | if ac_fn_c_try_run "$LINENO"; then : | |
5535 | bash_cv_func_strcoll_broken=yes | |
5536 | else | |
5537 | bash_cv_func_strcoll_broken=no | |
5538 | fi | |
5539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5540 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5541 | fi | |
5bdf8622 | 5542 | |
81ecdfbb | 5543 | fi |
5bdf8622 | 5544 | |
81ecdfbb RW |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 |
5546 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
5547 | if test $bash_cv_func_strcoll_broken = yes; then | |
5548 | $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h | |
5bdf8622 | 5549 | |
81ecdfbb | 5550 | fi |
5bdf8622 DJ |
5551 | |
5552 | ||
81ecdfbb RW |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 |
5554 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
d0ac1c44 | 5555 | if ${bash_cv_func_ctype_nonascii+:} false; then : |
81ecdfbb RW |
5556 | $as_echo_n "(cached) " >&6 |
5557 | else | |
5558 | if test "$cross_compiling" = yes; then : | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 | |
5560 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
5561 | bash_cv_func_ctype_nonascii=no | |
5bdf8622 | 5562 | |
5bdf8622 | 5563 | else |
81ecdfbb | 5564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5565 | /* end confdefs.h. */ |
5bdf8622 | 5566 | |
81ecdfbb RW |
5567 | #ifdef HAVE_LOCALE_H |
5568 | #include <locale.h> | |
5569 | #endif | |
5570 | #include <stdio.h> | |
5571 | #include <ctype.h> | |
5572 | ||
5573 | main(c, v) | |
5574 | int c; | |
5575 | char *v[]; | |
5576 | { | |
5577 | char *deflocale; | |
5578 | unsigned char x; | |
5579 | int r1, r2; | |
5580 | ||
5581 | #ifdef HAVE_SETLOCALE | |
5582 | /* We take a shot here. If that locale is not known, try the | |
5583 | system default. We try this one because '\342' (226) is | |
5584 | known to be a printable character in that locale. */ | |
5585 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
5586 | if (deflocale == 0) | |
5587 | deflocale = setlocale(LC_ALL, ""); | |
5588 | #endif | |
5589 | ||
5590 | x = '\342'; | |
5591 | r1 = isprint(x); | |
5592 | x -= 128; | |
5593 | r2 = isprint(x); | |
5594 | exit (r1 == 0 || r2 == 0); | |
5595 | } | |
5bdf8622 | 5596 | |
5bdf8622 | 5597 | _ACEOF |
81ecdfbb RW |
5598 | if ac_fn_c_try_run "$LINENO"; then : |
5599 | bash_cv_func_ctype_nonascii=yes | |
d60d9f65 | 5600 | else |
81ecdfbb RW |
5601 | bash_cv_func_ctype_nonascii=no |
5602 | fi | |
5603 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5604 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5605 | fi |
25ed0b71 | 5606 | |
d60d9f65 | 5607 | fi |
5bdf8622 | 5608 | |
81ecdfbb RW |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 |
5610 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
5611 | if test $bash_cv_func_ctype_nonascii = yes; then | |
5612 | $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h | |
d60d9f65 SS |
5613 | |
5614 | fi | |
5615 | ||
25ed0b71 | 5616 | |
81ecdfbb RW |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 |
5618 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
d0ac1c44 | 5619 | if ${bash_cv_getpw_declared+:} false; then : |
81ecdfbb | 5620 | $as_echo_n "(cached) " >&6 |
9255ee31 | 5621 | else |
81ecdfbb | 5622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5623 | /* end confdefs.h. */ |
25ed0b71 | 5624 | |
81ecdfbb RW |
5625 | #include <sys/types.h> |
5626 | #ifdef HAVE_UNISTD_H | |
5627 | # include <unistd.h> | |
5628 | #endif | |
5629 | #include <pwd.h> | |
25ed0b71 | 5630 | |
9255ee31 | 5631 | _ACEOF |
81ecdfbb RW |
5632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5633 | $EGREP "getpwuid" >/dev/null 2>&1; then : | |
5634 | bash_cv_getpw_declared=yes | |
9255ee31 | 5635 | else |
81ecdfbb | 5636 | bash_cv_getpw_declared=no |
9255ee31 | 5637 | fi |
81ecdfbb | 5638 | rm -f conftest* |
25ed0b71 | 5639 | |
25ed0b71 | 5640 | fi |
25ed0b71 | 5641 | |
81ecdfbb RW |
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 |
5643 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
5644 | if test $bash_cv_getpw_declared = yes; then | |
5645 | $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h | |
25ed0b71 KW |
5646 | |
5647 | fi | |
9255ee31 | 5648 | |
25ed0b71 | 5649 | |
81ecdfbb RW |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 |
5651 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
d0ac1c44 | 5652 | if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : |
81ecdfbb RW |
5653 | $as_echo_n "(cached) " >&6 |
5654 | else | |
5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5656 | /* end confdefs.h. */ | |
5657 | #include <sys/types.h> | |
5658 | #include <termios.h> | |
5659 | #ifdef TIOCGWINSZ | |
5660 | yes | |
5661 | #endif | |
d60d9f65 | 5662 | |
81ecdfbb RW |
5663 | _ACEOF |
5664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5665 | $EGREP "yes" >/dev/null 2>&1; then : | |
5666 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
5667 | else | |
5668 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5669 | fi | |
5670 | rm -f conftest* | |
25ed0b71 | 5671 | |
81ecdfbb RW |
5672 | fi |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 | |
5674 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
25ed0b71 | 5675 | |
81ecdfbb RW |
5676 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 | |
5678 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
d0ac1c44 | 5679 | if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : |
81ecdfbb RW |
5680 | $as_echo_n "(cached) " >&6 |
5681 | else | |
5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5bdf8622 | 5683 | /* end confdefs.h. */ |
81ecdfbb RW |
5684 | #include <sys/types.h> |
5685 | #include <sys/ioctl.h> | |
5686 | #ifdef TIOCGWINSZ | |
5687 | yes | |
5bdf8622 DJ |
5688 | #endif |
5689 | ||
5bdf8622 | 5690 | _ACEOF |
81ecdfbb RW |
5691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5692 | $EGREP "yes" >/dev/null 2>&1; then : | |
5693 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
5bdf8622 | 5694 | else |
81ecdfbb | 5695 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
5bdf8622 | 5696 | fi |
81ecdfbb | 5697 | rm -f conftest* |
5bdf8622 DJ |
5698 | |
5699 | fi | |
81ecdfbb RW |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
5701 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
5bdf8622 | 5702 | |
81ecdfbb | 5703 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5bdf8622 | 5704 | |
81ecdfbb RW |
5705 | $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h |
5706 | ||
5707 | fi | |
5708 | fi | |
5bdf8622 DJ |
5709 | |
5710 | ||
cc88a640 JK |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 |
5712 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
d0ac1c44 | 5713 | if ${ac_cv_have_sig_atomic_t+:} false; then : |
cc88a640 JK |
5714 | $as_echo_n "(cached) " >&6 |
5715 | else | |
5716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5717 | /* end confdefs.h. */ | |
5718 | ||
5719 | #include <signal.h> | |
5720 | ||
5721 | int | |
5722 | main () | |
5723 | { | |
5724 | sig_atomic_t x; | |
5725 | ; | |
5726 | return 0; | |
5727 | } | |
5728 | _ACEOF | |
5729 | if ac_fn_c_try_link "$LINENO"; then : | |
5730 | ac_cv_have_sig_atomic_t=yes | |
5731 | else | |
5732 | ac_cv_have_sig_atomic_t=no | |
5733 | fi | |
5734 | rm -f core conftest.err conftest.$ac_objext \ | |
5735 | conftest$ac_exeext conftest.$ac_ext | |
5736 | fi | |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 | |
5738 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
5739 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
5740 | then | |
5741 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" | |
d0ac1c44 | 5742 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
cc88a640 JK |
5743 | |
5744 | else | |
5745 | ||
5746 | cat >>confdefs.h <<_ACEOF | |
5747 | #define sig_atomic_t int | |
5748 | _ACEOF | |
5749 | ||
5750 | fi | |
5751 | ||
5752 | fi | |
5753 | ||
81ecdfbb RW |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 |
5755 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
d0ac1c44 | 5756 | if ${bash_cv_void_sighandler+:} false; then : |
81ecdfbb | 5757 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 5758 | else |
81ecdfbb | 5759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5760 | /* end confdefs.h. */ |
81ecdfbb | 5761 | #include <sys/types.h> |
d60d9f65 | 5762 | #include <signal.h> |
81ecdfbb RW |
5763 | #ifdef signal |
5764 | #undef signal | |
5765 | #endif | |
5766 | #ifdef __cplusplus | |
5767 | extern "C" | |
5768 | #endif | |
5769 | void (*signal ()) (); | |
9255ee31 EZ |
5770 | int |
5771 | main () | |
5772 | { | |
81ecdfbb | 5773 | int i; |
9255ee31 EZ |
5774 | ; |
5775 | return 0; | |
5776 | } | |
5777 | _ACEOF | |
81ecdfbb RW |
5778 | if ac_fn_c_try_compile "$LINENO"; then : |
5779 | bash_cv_void_sighandler=yes | |
d60d9f65 | 5780 | else |
81ecdfbb RW |
5781 | bash_cv_void_sighandler=no |
5782 | fi | |
5783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5784 | fi | |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 | |
5786 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
5787 | if test $bash_cv_void_sighandler = yes; then | |
5788 | $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h | |
25ed0b71 | 5789 | |
81ecdfbb | 5790 | fi |
9255ee31 | 5791 | |
cc88a640 | 5792 | |
81ecdfbb RW |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 |
5794 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
d0ac1c44 | 5795 | if ${bash_cv_tiocstat_in_ioctl+:} false; then : |
81ecdfbb RW |
5796 | $as_echo_n "(cached) " >&6 |
5797 | else | |
5798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5799 | /* end confdefs.h. */ |
81ecdfbb RW |
5800 | #include <sys/types.h> |
5801 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5802 | int |
5803 | main () | |
5804 | { | |
81ecdfbb | 5805 | int x = TIOCSTAT; |
9255ee31 EZ |
5806 | ; |
5807 | return 0; | |
5808 | } | |
5809 | _ACEOF | |
81ecdfbb RW |
5810 | if ac_fn_c_try_compile "$LINENO"; then : |
5811 | bash_cv_tiocstat_in_ioctl=yes | |
d60d9f65 | 5812 | else |
81ecdfbb RW |
5813 | bash_cv_tiocstat_in_ioctl=no |
5814 | fi | |
5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5816 | fi | |
5817 | ||
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 | |
5819 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
5820 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
5821 | $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h | |
25ed0b71 | 5822 | |
81ecdfbb | 5823 | fi |
9255ee31 | 5824 | |
81ecdfbb RW |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 |
5826 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
d0ac1c44 | 5827 | if ${bash_cv_fionread_in_ioctl+:} false; then : |
81ecdfbb RW |
5828 | $as_echo_n "(cached) " >&6 |
5829 | else | |
5830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5831 | /* end confdefs.h. */ |
81ecdfbb RW |
5832 | #include <sys/types.h> |
5833 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5834 | int |
5835 | main () | |
5836 | { | |
81ecdfbb | 5837 | int x = FIONREAD; |
9255ee31 EZ |
5838 | ; |
5839 | return 0; | |
5840 | } | |
5841 | _ACEOF | |
81ecdfbb RW |
5842 | if ac_fn_c_try_compile "$LINENO"; then : |
5843 | bash_cv_fionread_in_ioctl=yes | |
d60d9f65 | 5844 | else |
81ecdfbb | 5845 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5846 | fi |
81ecdfbb | 5847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5848 | fi |
d60d9f65 | 5849 | |
81ecdfbb RW |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 |
5851 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
5852 | if test $bash_cv_fionread_in_ioctl = yes; then | |
5853 | $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 SS |
5854 | |
5855 | fi | |
5856 | ||
81ecdfbb RW |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 |
5858 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
d0ac1c44 | 5859 | if ${bash_cv_speed_t_in_sys_types+:} false; then : |
81ecdfbb RW |
5860 | $as_echo_n "(cached) " >&6 |
5861 | else | |
5862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5863 | /* end confdefs.h. */ | |
5864 | #include <sys/types.h> | |
5865 | int | |
5866 | main () | |
5867 | { | |
5868 | speed_t x; | |
5869 | ; | |
5870 | return 0; | |
5871 | } | |
25ed0b71 | 5872 | _ACEOF |
81ecdfbb RW |
5873 | if ac_fn_c_try_compile "$LINENO"; then : |
5874 | bash_cv_speed_t_in_sys_types=yes | |
5875 | else | |
5876 | bash_cv_speed_t_in_sys_types=no | |
5877 | fi | |
5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 SS |
5879 | fi |
5880 | ||
81ecdfbb RW |
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 |
5882 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
5883 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
5884 | $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h | |
25ed0b71 | 5885 | |
81ecdfbb | 5886 | fi |
25ed0b71 | 5887 | |
81ecdfbb RW |
5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
5889 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
d0ac1c44 | 5890 | if ${bash_cv_struct_winsize_header+:} false; then : |
81ecdfbb | 5891 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 5892 | else |
81ecdfbb RW |
5893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5894 | /* end confdefs.h. */ | |
5895 | #include <sys/types.h> | |
5896 | #include <sys/ioctl.h> | |
5897 | int | |
5898 | main () | |
5899 | { | |
5900 | struct winsize x; | |
5901 | ; | |
5902 | return 0; | |
5903 | } | |
25ed0b71 | 5904 | _ACEOF |
81ecdfbb RW |
5905 | if ac_fn_c_try_compile "$LINENO"; then : |
5906 | bash_cv_struct_winsize_header=ioctl_h | |
5907 | else | |
5908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5909 | /* end confdefs.h. */ |
81ecdfbb RW |
5910 | #include <sys/types.h> |
5911 | #include <termios.h> | |
5912 | int | |
5913 | main () | |
5914 | { | |
5915 | struct winsize x; | |
5916 | ; | |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
5920 | if ac_fn_c_try_compile "$LINENO"; then : | |
5921 | bash_cv_struct_winsize_header=termios_h | |
5922 | else | |
5923 | bash_cv_struct_winsize_header=other | |
5924 | fi | |
5925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 5926 | |
81ecdfbb RW |
5927 | fi |
5928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5929 | fi | |
d60d9f65 | 5930 | |
81ecdfbb RW |
5931 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 | |
5933 | $as_echo "sys/ioctl.h" >&6; } | |
5934 | $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 | 5935 | |
81ecdfbb RW |
5936 | elif test $bash_cv_struct_winsize_header = termios_h; then |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 | |
5938 | $as_echo "termios.h" >&6; } | |
5939 | $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h | |
9255ee31 | 5940 | |
81ecdfbb RW |
5941 | else |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5943 | $as_echo "not found" >&6; } | |
9255ee31 | 5944 | fi |
25ed0b71 | 5945 | |
25ed0b71 | 5946 | |
81ecdfbb RW |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 |
5948 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
d0ac1c44 | 5949 | if ${bash_cv_dirent_has_dino+:} false; then : |
81ecdfbb | 5950 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 5951 | else |
81ecdfbb | 5952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5953 | /* end confdefs.h. */ |
5bdf8622 | 5954 | |
81ecdfbb RW |
5955 | #include <stdio.h> |
5956 | #include <sys/types.h> | |
5957 | #ifdef HAVE_UNISTD_H | |
5958 | # include <unistd.h> | |
5959 | #endif /* HAVE_UNISTD_H */ | |
5960 | #if defined(HAVE_DIRENT_H) | |
5961 | # include <dirent.h> | |
5bdf8622 | 5962 | #else |
81ecdfbb RW |
5963 | # define dirent direct |
5964 | # ifdef HAVE_SYS_NDIR_H | |
5965 | # include <sys/ndir.h> | |
5966 | # endif /* SYSNDIR */ | |
5967 | # ifdef HAVE_SYS_DIR_H | |
5968 | # include <sys/dir.h> | |
5969 | # endif /* SYSDIR */ | |
5970 | # ifdef HAVE_NDIR_H | |
5971 | # include <ndir.h> | |
5972 | # endif | |
5973 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5974 | |
5975 | int | |
5976 | main () | |
5977 | { | |
81ecdfbb RW |
5978 | |
5979 | struct dirent d; int z; z = d.d_ino; | |
5980 | ||
5bdf8622 DJ |
5981 | ; |
5982 | return 0; | |
5983 | } | |
5984 | _ACEOF | |
81ecdfbb RW |
5985 | if ac_fn_c_try_compile "$LINENO"; then : |
5986 | bash_cv_dirent_has_dino=yes | |
5bdf8622 | 5987 | else |
81ecdfbb | 5988 | bash_cv_dirent_has_dino=no |
25ed0b71 | 5989 | fi |
81ecdfbb | 5990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 | 5991 | fi |
81ecdfbb RW |
5992 | |
5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 | |
5994 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
5995 | if test $bash_cv_dirent_has_dino = yes; then | |
5996 | $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h | |
5bdf8622 DJ |
5997 | |
5998 | fi | |
5999 | ||
81ecdfbb RW |
6000 | |
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 | |
6002 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
d0ac1c44 | 6003 | if ${bash_cv_dirent_has_d_fileno+:} false; then : |
81ecdfbb | 6004 | $as_echo_n "(cached) " >&6 |
9255ee31 | 6005 | else |
81ecdfbb | 6006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6007 | /* end confdefs.h. */ |
5bdf8622 | 6008 | |
81ecdfbb RW |
6009 | #include <stdio.h> |
6010 | #include <sys/types.h> | |
6011 | #ifdef HAVE_UNISTD_H | |
6012 | # include <unistd.h> | |
6013 | #endif /* HAVE_UNISTD_H */ | |
6014 | #if defined(HAVE_DIRENT_H) | |
6015 | # include <dirent.h> | |
5bdf8622 | 6016 | #else |
81ecdfbb RW |
6017 | # define dirent direct |
6018 | # ifdef HAVE_SYS_NDIR_H | |
6019 | # include <sys/ndir.h> | |
6020 | # endif /* SYSNDIR */ | |
6021 | # ifdef HAVE_SYS_DIR_H | |
6022 | # include <sys/dir.h> | |
6023 | # endif /* SYSDIR */ | |
6024 | # ifdef HAVE_NDIR_H | |
6025 | # include <ndir.h> | |
6026 | # endif | |
6027 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
6028 | |
6029 | int | |
6030 | main () | |
6031 | { | |
81ecdfbb RW |
6032 | |
6033 | struct dirent d; int z; z = d.d_fileno; | |
6034 | ||
5bdf8622 DJ |
6035 | ; |
6036 | return 0; | |
6037 | } | |
25ed0b71 | 6038 | _ACEOF |
81ecdfbb RW |
6039 | if ac_fn_c_try_compile "$LINENO"; then : |
6040 | bash_cv_dirent_has_d_fileno=yes | |
9255ee31 | 6041 | else |
81ecdfbb | 6042 | bash_cv_dirent_has_d_fileno=no |
9255ee31 | 6043 | fi |
81ecdfbb | 6044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 6045 | fi |
9255ee31 | 6046 | |
81ecdfbb RW |
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 |
6048 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
6049 | if test $bash_cv_dirent_has_d_fileno = yes; then | |
6050 | $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h | |
25ed0b71 | 6051 | |
81ecdfbb | 6052 | fi |
430b7832 | 6053 | |
430b7832 | 6054 | |
775e241e TT |
6055 | for ac_header in libaudit.h |
6056 | do : | |
6057 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | |
6058 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | |
6059 | cat >>confdefs.h <<_ACEOF | |
6060 | #define HAVE_LIBAUDIT_H 1 | |
6061 | _ACEOF | |
6062 | ||
6063 | fi | |
6064 | ||
6065 | done | |
6066 | ||
6067 | ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h> | |
6068 | " | |
6069 | if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then : | |
6070 | ac_have_decl=1 | |
6071 | else | |
6072 | ac_have_decl=0 | |
6073 | fi | |
6074 | ||
6075 | cat >>confdefs.h <<_ACEOF | |
6076 | #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl | |
6077 | _ACEOF | |
6078 | ||
6079 | ||
81ecdfbb RW |
6080 | case "$host_os" in |
6081 | aix*) prefer_curses=yes ;; | |
6082 | esac | |
430b7832 | 6083 | |
81ecdfbb RW |
6084 | if test "X$bash_cv_termcap_lib" = "X"; then |
6085 | _bash_needmsg=yes | |
6086 | else | |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
6088 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
6089 | _bash_needmsg= | |
6090 | fi | |
d0ac1c44 | 6091 | if ${bash_cv_termcap_lib+:} false; then : |
81ecdfbb RW |
6092 | $as_echo_n "(cached) " >&6 |
6093 | else | |
6094 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
d0ac1c44 | 6095 | if test "x$ac_cv_func_tgetent" = xyes; then : |
81ecdfbb RW |
6096 | bash_cv_termcap_lib=libc |
6097 | else | |
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
6099 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
d0ac1c44 | 6100 | if ${ac_cv_lib_termcap_tgetent+:} false; then : |
81ecdfbb RW |
6101 | $as_echo_n "(cached) " >&6 |
6102 | else | |
6103 | ac_check_lib_save_LIBS=$LIBS | |
6104 | LIBS="-ltermcap $LIBS" | |
6105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6106 | /* end confdefs.h. */ | |
430b7832 | 6107 | |
81ecdfbb RW |
6108 | /* Override any GCC internal prototype to avoid an error. |
6109 | Use char because int might match the return type of a GCC | |
832a9484 | 6110 | builtin and then its argument prototype would still apply. */ |
832a9484 | 6111 | #ifdef __cplusplus |
81ecdfbb | 6112 | extern "C" |
832a9484 | 6113 | #endif |
81ecdfbb | 6114 | char tgetent (); |
832a9484 JB |
6115 | int |
6116 | main () | |
6117 | { | |
81ecdfbb | 6118 | return tgetent (); |
832a9484 JB |
6119 | ; |
6120 | return 0; | |
6121 | } | |
6122 | _ACEOF | |
81ecdfbb RW |
6123 | if ac_fn_c_try_link "$LINENO"; then : |
6124 | ac_cv_lib_termcap_tgetent=yes | |
832a9484 | 6125 | else |
81ecdfbb | 6126 | ac_cv_lib_termcap_tgetent=no |
832a9484 | 6127 | fi |
81ecdfbb RW |
6128 | rm -f core conftest.err conftest.$ac_objext \ |
6129 | conftest$ac_exeext conftest.$ac_ext | |
6130 | LIBS=$ac_check_lib_save_LIBS | |
832a9484 | 6131 | fi |
81ecdfbb RW |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
6133 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
d0ac1c44 | 6134 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : |
81ecdfbb | 6135 | bash_cv_termcap_lib=libtermcap |
9255ee31 | 6136 | else |
81ecdfbb RW |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
6138 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
d0ac1c44 | 6139 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : |
81ecdfbb RW |
6140 | $as_echo_n "(cached) " >&6 |
6141 | else | |
6142 | ac_check_lib_save_LIBS=$LIBS | |
6143 | LIBS="-ltinfo $LIBS" | |
6144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 6145 | /* end confdefs.h. */ |
430b7832 | 6146 | |
81ecdfbb RW |
6147 | /* Override any GCC internal prototype to avoid an error. |
6148 | Use char because int might match the return type of a GCC | |
9255ee31 | 6149 | builtin and then its argument prototype would still apply. */ |
25ed0b71 | 6150 | #ifdef __cplusplus |
81ecdfbb | 6151 | extern "C" |
9255ee31 | 6152 | #endif |
81ecdfbb | 6153 | char tgetent (); |
25ed0b71 KW |
6154 | int |
6155 | main () | |
6156 | { | |
81ecdfbb | 6157 | return tgetent (); |
9255ee31 EZ |
6158 | ; |
6159 | return 0; | |
6160 | } | |
6161 | _ACEOF | |
81ecdfbb RW |
6162 | if ac_fn_c_try_link "$LINENO"; then : |
6163 | ac_cv_lib_tinfo_tgetent=yes | |
d60d9f65 | 6164 | else |
81ecdfbb | 6165 | ac_cv_lib_tinfo_tgetent=no |
9255ee31 | 6166 | fi |
81ecdfbb RW |
6167 | rm -f core conftest.err conftest.$ac_objext \ |
6168 | conftest$ac_exeext conftest.$ac_ext | |
6169 | LIBS=$ac_check_lib_save_LIBS | |
d60d9f65 | 6170 | fi |
81ecdfbb RW |
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
6172 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
d0ac1c44 | 6173 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : |
81ecdfbb | 6174 | bash_cv_termcap_lib=libtinfo |
d60d9f65 | 6175 | else |
81ecdfbb RW |
6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
6177 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
d0ac1c44 | 6178 | if ${ac_cv_lib_curses_tgetent+:} false; then : |
81ecdfbb RW |
6179 | $as_echo_n "(cached) " >&6 |
6180 | else | |
6181 | ac_check_lib_save_LIBS=$LIBS | |
6182 | LIBS="-lcurses $LIBS" | |
6183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 6184 | /* end confdefs.h. */ |
430b7832 | 6185 | |
81ecdfbb RW |
6186 | /* Override any GCC internal prototype to avoid an error. |
6187 | Use char because int might match the return type of a GCC | |
6188 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
6189 | #ifdef __cplusplus |
6190 | extern "C" | |
25ed0b71 | 6191 | #endif |
81ecdfbb RW |
6192 | char tgetent (); |
6193 | int | |
6194 | main () | |
6195 | { | |
6196 | return tgetent (); | |
6197 | ; | |
6198 | return 0; | |
6199 | } | |
6200 | _ACEOF | |
6201 | if ac_fn_c_try_link "$LINENO"; then : | |
6202 | ac_cv_lib_curses_tgetent=yes | |
6203 | else | |
6204 | ac_cv_lib_curses_tgetent=no | |
6205 | fi | |
6206 | rm -f core conftest.err conftest.$ac_objext \ | |
6207 | conftest$ac_exeext conftest.$ac_ext | |
6208 | LIBS=$ac_check_lib_save_LIBS | |
6209 | fi | |
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
6211 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
d0ac1c44 | 6212 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : |
81ecdfbb RW |
6213 | bash_cv_termcap_lib=libcurses |
6214 | else | |
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
6216 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
d0ac1c44 | 6217 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : |
81ecdfbb RW |
6218 | $as_echo_n "(cached) " >&6 |
6219 | else | |
6220 | ac_check_lib_save_LIBS=$LIBS | |
6221 | LIBS="-lncurses $LIBS" | |
6222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6223 | /* end confdefs.h. */ | |
6224 | ||
6225 | /* Override any GCC internal prototype to avoid an error. | |
6226 | Use char because int might match the return type of a GCC | |
6227 | builtin and then its argument prototype would still apply. */ | |
25ed0b71 | 6228 | #ifdef __cplusplus |
81ecdfbb | 6229 | extern "C" |
9255ee31 | 6230 | #endif |
81ecdfbb | 6231 | char tgetent (); |
25ed0b71 KW |
6232 | int |
6233 | main () | |
6234 | { | |
81ecdfbb | 6235 | return tgetent (); |
9255ee31 EZ |
6236 | ; |
6237 | return 0; | |
6238 | } | |
6239 | _ACEOF | |
81ecdfbb RW |
6240 | if ac_fn_c_try_link "$LINENO"; then : |
6241 | ac_cv_lib_ncurses_tgetent=yes | |
d60d9f65 | 6242 | else |
81ecdfbb RW |
6243 | ac_cv_lib_ncurses_tgetent=no |
6244 | fi | |
6245 | rm -f core conftest.err conftest.$ac_objext \ | |
6246 | conftest$ac_exeext conftest.$ac_ext | |
6247 | LIBS=$ac_check_lib_save_LIBS | |
6248 | fi | |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
6250 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
d0ac1c44 | 6251 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : |
81ecdfbb | 6252 | bash_cv_termcap_lib=libncurses |
cb41b9e7 TT |
6253 | else |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5 | |
6255 | $as_echo_n "checking for tgetent in -lncursesw... " >&6; } | |
6256 | if ${ac_cv_lib_ncursesw_tgetent+:} false; then : | |
6257 | $as_echo_n "(cached) " >&6 | |
6258 | else | |
6259 | ac_check_lib_save_LIBS=$LIBS | |
6260 | LIBS="-lncursesw $LIBS" | |
6261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6262 | /* end confdefs.h. */ | |
6263 | ||
6264 | /* Override any GCC internal prototype to avoid an error. | |
6265 | Use char because int might match the return type of a GCC | |
6266 | builtin and then its argument prototype would still apply. */ | |
6267 | #ifdef __cplusplus | |
6268 | extern "C" | |
6269 | #endif | |
6270 | char tgetent (); | |
6271 | int | |
6272 | main () | |
6273 | { | |
6274 | return tgetent (); | |
6275 | ; | |
6276 | return 0; | |
6277 | } | |
6278 | _ACEOF | |
6279 | if ac_fn_c_try_link "$LINENO"; then : | |
6280 | ac_cv_lib_ncursesw_tgetent=yes | |
6281 | else | |
6282 | ac_cv_lib_ncursesw_tgetent=no | |
6283 | fi | |
6284 | rm -f core conftest.err conftest.$ac_objext \ | |
6285 | conftest$ac_exeext conftest.$ac_ext | |
6286 | LIBS=$ac_check_lib_save_LIBS | |
6287 | fi | |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5 | |
6289 | $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; } | |
6290 | if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then : | |
6291 | bash_cv_termcap_lib=libncursesw | |
81ecdfbb RW |
6292 | else |
6293 | bash_cv_termcap_lib=gnutermcap | |
6294 | fi | |
6295 | ||
6296 | fi | |
25ed0b71 | 6297 | |
d60d9f65 | 6298 | fi |
81ecdfbb RW |
6299 | |
6300 | fi | |
6301 | ||
9255ee31 | 6302 | fi |
25ed0b71 | 6303 | |
05bc3370 | 6304 | fi |
25ed0b71 | 6305 | |
cb41b9e7 TT |
6306 | fi |
6307 | ||
81ecdfbb RW |
6308 | if test "X$_bash_needmsg" = "Xyes"; then |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
6310 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
6311 | fi | |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
6313 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
6314 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
6315 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
6316 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
6317 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
6318 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
6319 | TERMCAP_LIB=-ltermcap | |
6320 | TERMCAP_DEP= | |
6321 | elif test $bash_cv_termcap_lib = libtinfo; then | |
6322 | TERMCAP_LIB=-ltinfo | |
6323 | TERMCAP_DEP= | |
6324 | elif test $bash_cv_termcap_lib = libncurses; then | |
6325 | TERMCAP_LIB=-lncurses | |
6326 | TERMCAP_DEP= | |
6327 | elif test $bash_cv_termcap_lib = libc; then | |
6328 | TERMCAP_LIB= | |
6329 | TERMCAP_DEP= | |
5bdf8622 | 6330 | else |
81ecdfbb RW |
6331 | TERMCAP_LIB=-lcurses |
6332 | TERMCAP_DEP= | |
6333 | fi | |
6334 | ||
6335 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
6336 | if test "$prefer_curses" = yes; then | |
6337 | TERMCAP_LIB=-lcurses | |
6338 | else | |
6339 | TERMCAP_LIB=-ltermcap #default | |
6340 | fi | |
6341 | fi | |
775e241e | 6342 | # Windows ncurses installation |
7f3c5ec8 | 6343 | if test "$TERMCAP_LIB" = "-lncurses"; then |
d0ac1c44 | 6344 | for ac_header in ncurses/termcap.h |
7f3c5ec8 | 6345 | do : |
d0ac1c44 SM |
6346 | ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default" |
6347 | if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then : | |
7f3c5ec8 | 6348 | cat >>confdefs.h <<_ACEOF |
d0ac1c44 | 6349 | #define HAVE_NCURSES_TERMCAP_H 1 |
7f3c5ec8 EZ |
6350 | _ACEOF |
6351 | ||
6352 | fi | |
6353 | ||
6354 | done | |
6355 | ||
6356 | fi | |
81ecdfbb | 6357 | |
cb41b9e7 TT |
6358 | case "$TERMCAP_LIB" in |
6359 | -ltinfo) TERMCAP_PKG_CONFIG_LIB=tinfo ;; | |
6360 | -lcurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; | |
6361 | -lncurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; | |
6362 | -ltermcap) TERMCAP_PKG_CONFIG_LIB=termcap ;; | |
6363 | *) TERMCAP_PKG_CONFIG_LIB=termcap ;; | |
6364 | esac | |
6365 | ||
d0ac1c44 | 6366 | |
81ecdfbb RW |
6367 | for ac_header in wctype.h |
6368 | do : | |
6369 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" | |
d0ac1c44 | 6370 | if test "x$ac_cv_header_wctype_h" = xyes; then : |
81ecdfbb RW |
6371 | cat >>confdefs.h <<_ACEOF |
6372 | #define HAVE_WCTYPE_H 1 | |
5bdf8622 | 6373 | _ACEOF |
5bdf8622 | 6374 | |
81ecdfbb | 6375 | fi |
5bdf8622 | 6376 | |
81ecdfbb | 6377 | done |
5bdf8622 | 6378 | |
81ecdfbb RW |
6379 | for ac_header in wchar.h |
6380 | do : | |
6381 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
d0ac1c44 | 6382 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
81ecdfbb RW |
6383 | cat >>confdefs.h <<_ACEOF |
6384 | #define HAVE_WCHAR_H 1 | |
6385 | _ACEOF | |
5bdf8622 | 6386 | |
81ecdfbb | 6387 | fi |
5bdf8622 | 6388 | |
81ecdfbb RW |
6389 | done |
6390 | ||
6391 | for ac_header in langinfo.h | |
6392 | do : | |
6393 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
d0ac1c44 | 6394 | if test "x$ac_cv_header_langinfo_h" = xyes; then : |
81ecdfbb RW |
6395 | cat >>confdefs.h <<_ACEOF |
6396 | #define HAVE_LANGINFO_H 1 | |
5bdf8622 | 6397 | _ACEOF |
5bdf8622 | 6398 | |
5bdf8622 | 6399 | fi |
81ecdfbb RW |
6400 | |
6401 | done | |
6402 | ||
6403 | ||
775e241e TT |
6404 | for ac_header in mbstr.h |
6405 | do : | |
6406 | ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default" | |
6407 | if test "x$ac_cv_header_mbstr_h" = xyes; then : | |
6408 | cat >>confdefs.h <<_ACEOF | |
6409 | #define HAVE_MBSTR_H 1 | |
6410 | _ACEOF | |
6411 | ||
6412 | fi | |
6413 | ||
6414 | done | |
6415 | ||
6416 | ||
cc88a640 | 6417 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" |
d0ac1c44 | 6418 | if test "x$ac_cv_func_mbrlen" = xyes; then : |
cc88a640 JK |
6419 | $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h |
6420 | ||
6421 | fi | |
6422 | ||
6423 | ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" | |
d0ac1c44 | 6424 | if test "x$ac_cv_func_mbscasecmp" = xyes; then : |
cc88a640 JK |
6425 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
6426 | ||
6427 | fi | |
6428 | ||
6429 | ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" | |
d0ac1c44 | 6430 | if test "x$ac_cv_func_mbscmp" = xyes; then : |
cc88a640 JK |
6431 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
6432 | ||
6433 | fi | |
6434 | ||
6435 | ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" | |
d0ac1c44 | 6436 | if test "x$ac_cv_func_mbsnrtowcs" = xyes; then : |
cc88a640 JK |
6437 | $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h |
6438 | ||
6439 | fi | |
6440 | ||
81ecdfbb | 6441 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" |
d0ac1c44 | 6442 | if test "x$ac_cv_func_mbsrtowcs" = xyes; then : |
81ecdfbb RW |
6443 | $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h |
6444 | ||
6445 | fi | |
6446 | ||
cc88a640 | 6447 | |
d0ac1c44 SM |
6448 | ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" |
6449 | if test "x$ac_cv_func_mbschr" = xyes; then : | |
6450 | $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h | |
cc88a640 JK |
6451 | |
6452 | else | |
6453 | case " $LIBOBJS " in | |
d0ac1c44 SM |
6454 | *" mbschr.$ac_objext "* ) ;; |
6455 | *) LIBOBJS="$LIBOBJS mbschr.$ac_objext" | |
cc88a640 JK |
6456 | ;; |
6457 | esac | |
81ecdfbb | 6458 | |
5bdf8622 | 6459 | fi |
81ecdfbb | 6460 | |
cc88a640 JK |
6461 | |
6462 | ||
6463 | ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" | |
d0ac1c44 | 6464 | if test "x$ac_cv_func_wcrtomb" = xyes; then : |
cc88a640 | 6465 | $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h |
81ecdfbb RW |
6466 | |
6467 | fi | |
6468 | ||
cc88a640 | 6469 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
d0ac1c44 | 6470 | if test "x$ac_cv_func_wcscoll" = xyes; then : |
cc88a640 JK |
6471 | $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h |
6472 | ||
6473 | fi | |
6474 | ||
6475 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" | |
d0ac1c44 | 6476 | if test "x$ac_cv_func_wcsdup" = xyes; then : |
cc88a640 | 6477 | $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h |
81ecdfbb RW |
6478 | |
6479 | fi | |
6480 | ||
6481 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" | |
d0ac1c44 | 6482 | if test "x$ac_cv_func_wcwidth" = xyes; then : |
81ecdfbb RW |
6483 | $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h |
6484 | ||
6485 | fi | |
6486 | ||
cc88a640 | 6487 | ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" |
d0ac1c44 | 6488 | if test "x$ac_cv_func_wctype" = xyes; then : |
cc88a640 | 6489 | $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h |
5bdf8622 DJ |
6490 | |
6491 | fi | |
6492 | ||
6493 | ||
d0ac1c44 SM |
6494 | ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" |
6495 | if test "x$ac_cv_func_wcswidth" = xyes; then : | |
6496 | $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h | |
cc88a640 | 6497 | |
05bc3370 | 6498 | else |
cc88a640 | 6499 | case " $LIBOBJS " in |
d0ac1c44 SM |
6500 | *" wcswidth.$ac_objext "* ) ;; |
6501 | *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext" | |
cc88a640 JK |
6502 | ;; |
6503 | esac | |
6504 | ||
d60d9f65 | 6505 | fi |
cc88a640 | 6506 | |
9255ee31 | 6507 | |
05bc3370 | 6508 | |
cc88a640 JK |
6509 | |
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 | |
6511 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
d0ac1c44 | 6512 | if ${ac_cv_func_mbrtowc+:} false; then : |
81ecdfbb | 6513 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 6514 | else |
81ecdfbb | 6515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6516 | /* end confdefs.h. */ |
9255ee31 EZ |
6517 | #include <wchar.h> |
6518 | int | |
6519 | main () | |
430b7832 | 6520 | { |
cc88a640 JK |
6521 | wchar_t wc; |
6522 | char const s[] = ""; | |
6523 | size_t n = 1; | |
6524 | mbstate_t state; | |
6525 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
430b7832 MM |
6526 | ; |
6527 | return 0; | |
9255ee31 EZ |
6528 | } |
6529 | _ACEOF | |
cc88a640 JK |
6530 | if ac_fn_c_try_link "$LINENO"; then : |
6531 | ac_cv_func_mbrtowc=yes | |
d60d9f65 | 6532 | else |
cc88a640 | 6533 | ac_cv_func_mbrtowc=no |
d60d9f65 | 6534 | fi |
cc88a640 JK |
6535 | rm -f core conftest.err conftest.$ac_objext \ |
6536 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6537 | fi |
cc88a640 JK |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 |
6539 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
6540 | if test $ac_cv_func_mbrtowc = yes; then | |
6541 | ||
6542 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h | |
6543 | ||
6544 | fi | |
6545 | ||
6546 | if test $ac_cv_func_mbrtowc = yes; then | |
81ecdfbb | 6547 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
d60d9f65 SS |
6548 | |
6549 | fi | |
6550 | ||
cc88a640 JK |
6551 | for ac_func in iswlower iswupper towlower towupper iswctype |
6552 | do : | |
6553 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6554 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 6555 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
cc88a640 JK |
6556 | cat >>confdefs.h <<_ACEOF |
6557 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6558 | _ACEOF | |
6559 | ||
6560 | fi | |
6561 | done | |
6562 | ||
6563 | ||
81ecdfbb RW |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
6565 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
d0ac1c44 | 6566 | if ${bash_cv_langinfo_codeset+:} false; then : |
81ecdfbb | 6567 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 6568 | else |
81ecdfbb | 6569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6570 | /* end confdefs.h. */ |
9255ee31 EZ |
6571 | #include <langinfo.h> |
6572 | int | |
6573 | main () | |
6574 | { | |
6575 | char* cs = nl_langinfo(CODESET); | |
6576 | ; | |
6577 | return 0; | |
6578 | } | |
6579 | _ACEOF | |
81ecdfbb | 6580 | if ac_fn_c_try_link "$LINENO"; then : |
9255ee31 EZ |
6581 | bash_cv_langinfo_codeset=yes |
6582 | else | |
81ecdfbb | 6583 | bash_cv_langinfo_codeset=no |
9255ee31 | 6584 | fi |
81ecdfbb RW |
6585 | rm -f core conftest.err conftest.$ac_objext \ |
6586 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6587 | fi |
81ecdfbb RW |
6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 |
6589 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
9255ee31 | 6590 | if test $bash_cv_langinfo_codeset = yes; then |
81ecdfbb | 6591 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
d60d9f65 | 6592 | |
d60d9f65 SS |
6593 | fi |
6594 | ||
cc88a640 JK |
6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 |
6596 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
d0ac1c44 | 6597 | if ${bash_cv_type_wchar_t+:} false; then : |
cc88a640 JK |
6598 | $as_echo_n "(cached) " >&6 |
6599 | else | |
6600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6601 | /* end confdefs.h. */ | |
6602 | #include <wchar.h> | |
6603 | ||
6604 | int | |
6605 | main () | |
6606 | { | |
6607 | ||
6608 | wchar_t foo; | |
6609 | foo = 0; | |
6610 | ||
6611 | ; | |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
6615 | if ac_fn_c_try_compile "$LINENO"; then : | |
6616 | bash_cv_type_wchar_t=yes | |
6617 | else | |
6618 | bash_cv_type_wchar_t=no | |
6619 | fi | |
6620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6621 | fi | |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 | |
6623 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
6624 | if test $bash_cv_type_wchar_t = yes; then | |
6625 | ||
6626 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
6627 | ||
6628 | fi | |
6629 | ||
6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 | |
6631 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
d0ac1c44 | 6632 | if ${bash_cv_type_wctype_t+:} false; then : |
cc88a640 JK |
6633 | $as_echo_n "(cached) " >&6 |
6634 | else | |
6635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6636 | /* end confdefs.h. */ | |
6637 | #include <wctype.h> | |
6638 | int | |
6639 | main () | |
6640 | { | |
6641 | ||
6642 | wctype_t foo; | |
6643 | foo = 0; | |
6644 | ||
6645 | ; | |
6646 | return 0; | |
6647 | } | |
6648 | _ACEOF | |
6649 | if ac_fn_c_try_compile "$LINENO"; then : | |
6650 | bash_cv_type_wctype_t=yes | |
6651 | else | |
6652 | bash_cv_type_wctype_t=no | |
6653 | fi | |
6654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6655 | fi | |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 | |
6657 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
6658 | if test $bash_cv_type_wctype_t = yes; then | |
6659 | ||
6660 | $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h | |
6661 | ||
6662 | fi | |
6663 | ||
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 | |
6665 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
d0ac1c44 | 6666 | if ${bash_cv_type_wint_t+:} false; then : |
cc88a640 JK |
6667 | $as_echo_n "(cached) " >&6 |
6668 | else | |
6669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6670 | /* end confdefs.h. */ | |
6671 | #include <wctype.h> | |
6672 | int | |
6673 | main () | |
6674 | { | |
6675 | ||
6676 | wint_t foo; | |
6677 | foo = 0; | |
6678 | ||
6679 | ; | |
6680 | return 0; | |
6681 | } | |
6682 | _ACEOF | |
6683 | if ac_fn_c_try_compile "$LINENO"; then : | |
6684 | bash_cv_type_wint_t=yes | |
6685 | else | |
6686 | bash_cv_type_wint_t=no | |
6687 | fi | |
6688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6689 | fi | |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 | |
6691 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
6692 | if test $bash_cv_type_wint_t = yes; then | |
6693 | ||
6694 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h | |
6695 | ||
6696 | fi | |
6697 | ||
775e241e TT |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5 |
6699 | $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; } | |
6700 | if ${bash_cv_wcwidth_broken+:} false; then : | |
6701 | $as_echo_n "(cached) " >&6 | |
6702 | else | |
6703 | if test "$cross_compiling" = yes; then : | |
6704 | bash_cv_wcwidth_broken=no | |
6705 | else | |
6706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6707 | /* end confdefs.h. */ | |
6708 | ||
6709 | #include <unistd.h> | |
6710 | #include <stdlib.h> | |
6711 | #include <stdio.h> | |
6712 | ||
6713 | #include <locale.h> | |
6714 | #include <wchar.h> | |
6715 | ||
6716 | main(c, v) | |
6717 | int c; | |
6718 | char **v; | |
6719 | { | |
6720 | int w; | |
6721 | ||
6722 | setlocale(LC_ALL, "en_US.UTF-8"); | |
6723 | w = wcwidth (0x0301); | |
6724 | exit (w == 0); /* exit 0 if wcwidth broken */ | |
6725 | } | |
6726 | ||
6727 | _ACEOF | |
6728 | if ac_fn_c_try_run "$LINENO"; then : | |
6729 | bash_cv_wcwidth_broken=yes | |
6730 | else | |
6731 | bash_cv_wcwidth_broken=no | |
6732 | fi | |
6733 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6734 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6735 | fi | |
6736 | ||
6737 | fi | |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5 | |
6739 | $as_echo "$bash_cv_wcwidth_broken" >&6; } | |
6740 | if test "$bash_cv_wcwidth_broken" = yes; then | |
6741 | ||
6742 | $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h | |
6743 | ||
6744 | fi | |
6745 | ||
cc88a640 JK |
6746 | if test "$am_cv_func_iconv" = yes; then |
6747 | OLDLIBS="$LIBS" | |
775e241e | 6748 | LIBS="$LIBS $LIBINTL $LIBICONV" |
cc88a640 JK |
6749 | for ac_func in locale_charset |
6750 | do : | |
6751 | ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" | |
d0ac1c44 | 6752 | if test "x$ac_cv_func_locale_charset" = xyes; then : |
cc88a640 JK |
6753 | cat >>confdefs.h <<_ACEOF |
6754 | #define HAVE_LOCALE_CHARSET 1 | |
6755 | _ACEOF | |
6756 | ||
6757 | fi | |
6758 | done | |
6759 | ||
6760 | LIBS="$OLDLIBS" | |
6761 | fi | |
6762 | ||
cb41b9e7 TT |
6763 | # The cast to long int works around a bug in the HP C Compiler |
6764 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6765 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6766 | # This bug is HP SR number 8606223364. | |
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | |
6768 | $as_echo_n "checking size of wchar_t... " >&6; } | |
6769 | if ${ac_cv_sizeof_wchar_t+:} false; then : | |
6770 | $as_echo_n "(cached) " >&6 | |
6771 | else | |
6772 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : | |
6773 | ||
6774 | else | |
6775 | if test "$ac_cv_type_wchar_t" = yes; then | |
6776 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6778 | as_fn_error 77 "cannot compute sizeof (wchar_t) | |
6779 | See \`config.log' for more details" "$LINENO" 5; } | |
6780 | else | |
6781 | ac_cv_sizeof_wchar_t=0 | |
6782 | fi | |
6783 | fi | |
6784 | ||
6785 | fi | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 | |
6787 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | |
6788 | ||
6789 | ||
6790 | ||
6791 | cat >>confdefs.h <<_ACEOF | |
6792 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
6793 | _ACEOF | |
6794 | ||
6795 | ||
6796 | ||
25ed0b71 KW |
6797 | |
6798 | ||
d60d9f65 SS |
6799 | case "$host_cpu" in |
6800 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 6801 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
6802 | esac |
6803 | ||
6804 | case "$host_os" in | |
6805 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
6806 | esac | |
6807 | ||
c862e87b JM |
6808 | # shared library configuration section |
6809 | # | |
6810 | # Shared object configuration section. These values are generated by | |
6811 | # ${srcdir}/support/shobj-conf | |
6812 | # | |
6813 | if test -f ${srcdir}/support/shobj-conf; then | |
81ecdfbb RW |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5 |
6815 | $as_echo_n "checking configuration for building shared libraries... " >&6; } | |
5bdf8622 DJ |
6816 | eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
6817 | ||
6818 | # case "$SHLIB_LIBS" in | |
6819 | # *curses*|*termcap*|*termlib*) ;; | |
6820 | # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | |
6821 | # esac | |
6822 | ||
6823 | ||
6824 | ||
6825 | ||
9255ee31 | 6826 | |
25ed0b71 KW |
6827 | |
6828 | ||
6829 | ||
6830 | ||
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
81ecdfbb RW |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5 |
6839 | $as_echo "$SHLIB_STATUS" >&6; } | |
9255ee31 EZ |
6840 | |
6841 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
6842 | # `unsupported', turn off any default shared library building | |
6843 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
6844 | opt_shared_libs=no | |
6845 | fi | |
1b17e766 EZ |
6846 | |
6847 | # shared library versioning | |
6848 | # quoted for m4 so I can use character classes | |
6849 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
6850 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 6851 | |
25ed0b71 | 6852 | |
9255ee31 EZ |
6853 | fi |
6854 | ||
6855 | if test "$opt_static_libs" = "yes"; then | |
6856 | STATIC_TARGET=static | |
6857 | STATIC_INSTALL_TARGET=install-static | |
6858 | fi | |
6859 | if test "$opt_shared_libs" = "yes"; then | |
6860 | SHARED_TARGET=shared | |
6861 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
6862 | fi |
6863 | ||
25ed0b71 KW |
6864 | |
6865 | ||
6866 | ||
6867 | ||
6868 | ||
cb41b9e7 TT |
6869 | if test "$opt_install_examples" = "yes"; then |
6870 | EXAMPLES_INSTALL_TARGET=install-examples | |
6871 | fi | |
6872 | ||
6873 | ||
19ce2a29 | 6874 | case "$build_os" in |
1b17e766 EZ |
6875 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file |
6876 | *) BUILD_DIR=`pwd` ;; | |
6877 | esac | |
6878 | ||
5bdf8622 DJ |
6879 | case "$BUILD_DIR" in |
6880 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
6881 | *) ;; | |
6882 | esac | |
6883 | ||
6884 | ||
25ed0b71 KW |
6885 | |
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
cb41b9e7 | 6901 | |
775e241e | 6902 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc" |
81ecdfbb RW |
6903 | |
6904 | ac_config_commands="$ac_config_commands default" | |
6905 | ||
9255ee31 | 6906 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
6907 | # This file is a shell script that caches the results of configure |
6908 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
6909 | # scripts and configure runs, see configure's option --config-cache. |
6910 | # It is not useful on other systems. If it contains results you don't | |
6911 | # want to keep, you may remove or edit it. | |
d60d9f65 | 6912 | # |
9255ee31 EZ |
6913 | # config.status only pays attention to the cache file if you give it |
6914 | # the --recheck option to rerun configure. | |
d60d9f65 | 6915 | # |
25ed0b71 | 6916 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
6917 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6918 | # following values. | |
6919 | ||
6920 | _ACEOF | |
6921 | ||
d60d9f65 SS |
6922 | # The following way of writing the cache mishandles newlines in values, |
6923 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 6924 | # So, we kill variables containing newlines. |
d60d9f65 SS |
6925 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6926 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
6927 | ( |
6928 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6929 | eval ac_val=\$$ac_var | |
6930 | case $ac_val in #( | |
6931 | *${as_nl}*) | |
6932 | case $ac_var in #( | |
6933 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6934 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6935 | esac | |
6936 | case $ac_var in #( | |
6937 | _ | IFS | as_nl) ;; #( | |
6938 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6939 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6940 | esac ;; | |
6941 | esac | |
6942 | done | |
6943 | ||
9255ee31 | 6944 | (set) 2>&1 | |
81ecdfbb RW |
6945 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6946 | *${as_nl}ac_space=\ *) | |
6947 | # `set' does not quote correctly, so add quotes: double-quote | |
6948 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9255ee31 | 6949 | sed -n \ |
430b7832 MM |
6950 | "s/'/'\\\\''/g; |
6951 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 6952 | ;; #( |
9255ee31 EZ |
6953 | *) |
6954 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 6955 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 6956 | ;; |
81ecdfbb RW |
6957 | esac | |
6958 | sort | |
6959 | ) | | |
9255ee31 | 6960 | sed ' |
81ecdfbb | 6961 | /^ac_cv_env_/b end |
9255ee31 | 6962 | t clear |
81ecdfbb | 6963 | :clear |
9255ee31 EZ |
6964 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6965 | t end | |
81ecdfbb RW |
6966 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6967 | :end' >>confcache | |
6968 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6969 | if test -w "$cache_file"; then | |
d0ac1c44 | 6970 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6972 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
6973 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6974 | cat confcache >"$cache_file" | |
6975 | else | |
6976 | case $cache_file in #( | |
6977 | */* | ?:*) | |
6978 | mv -f confcache "$cache_file"$$ && | |
6979 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6980 | *) | |
6981 | mv -f confcache "$cache_file" ;; | |
6982 | esac | |
6983 | fi | |
6984 | fi | |
d60d9f65 | 6985 | else |
81ecdfbb RW |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6987 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d60d9f65 SS |
6988 | fi |
6989 | fi | |
6990 | rm -f confcache | |
6991 | ||
d60d9f65 SS |
6992 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6993 | # Let make expand exec_prefix. | |
6994 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6995 | ||
d60d9f65 SS |
6996 | DEFS=-DHAVE_CONFIG_H |
6997 | ||
25ed0b71 KW |
6998 | ac_libobjs= |
6999 | ac_ltlibobjs= | |
d0ac1c44 | 7000 | U= |
25ed0b71 KW |
7001 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7002 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
7003 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7004 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7005 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7006 | # will be set to the directory where LIBOBJS objects are built. | |
7007 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7008 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
25ed0b71 KW |
7009 | done |
7010 | LIBOBJS=$ac_libobjs | |
7011 | ||
7012 | LTLIBOBJS=$ac_ltlibobjs | |
7013 | ||
7014 | ||
7015 | ||
d0ac1c44 | 7016 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 7017 | ac_write_fail=0 |
9255ee31 EZ |
7018 | ac_clean_files_save=$ac_clean_files |
7019 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7021 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7022 | as_write_fail=0 | |
7023 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
9255ee31 | 7024 | #! $SHELL |
25ed0b71 | 7025 | # Generated by $as_me. |
d60d9f65 | 7026 | # Run this file to recreate the current configuration. |
d60d9f65 | 7027 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 7028 | # configure, is in config.log if it exists. |
d60d9f65 | 7029 | |
9255ee31 | 7030 | debug=false |
25ed0b71 KW |
7031 | ac_cs_recheck=false |
7032 | ac_cs_silent=false | |
9255ee31 | 7033 | |
81ecdfbb RW |
7034 | SHELL=\${CONFIG_SHELL-$SHELL} |
7035 | export SHELL | |
7036 | _ASEOF | |
7037 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7038 | ## -------------------- ## | |
7039 | ## M4sh Initialization. ## | |
7040 | ## -------------------- ## | |
7041 | ||
7042 | # Be more Bourne compatible | |
7043 | DUALCASE=1; export DUALCASE # for MKS sh | |
7044 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
9255ee31 EZ |
7045 | emulate sh |
7046 | NULLCMD=: | |
81ecdfbb | 7047 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
7048 | # is contrary to our usage. Disable this feature. |
7049 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
7050 | setopt NO_GLOB_SUBST |
7051 | else | |
7052 | case `(set -o) 2>/dev/null` in #( | |
7053 | *posix*) : | |
7054 | set -o posix ;; #( | |
7055 | *) : | |
7056 | ;; | |
7057 | esac | |
9255ee31 EZ |
7058 | fi |
7059 | ||
81ecdfbb RW |
7060 | |
7061 | as_nl=' | |
7062 | ' | |
7063 | export as_nl | |
7064 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7065 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7066 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7067 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7068 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7069 | # but without wasting forks for bash or zsh. | |
7070 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7071 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7072 | as_echo='print -r --' | |
7073 | as_echo_n='print -rn --' | |
7074 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7075 | as_echo='printf %s\n' | |
7076 | as_echo_n='printf %s' | |
7077 | else | |
7078 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7079 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7080 | as_echo_n='/usr/ucb/echo -n' | |
7081 | else | |
7082 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7083 | as_echo_n_body='eval | |
7084 | arg=$1; | |
7085 | case $arg in #( | |
7086 | *"$as_nl"*) | |
7087 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7088 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7089 | esac; | |
7090 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7091 | ' | |
7092 | export as_echo_n_body | |
7093 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7094 | fi | |
7095 | export as_echo_body | |
7096 | as_echo='sh -c $as_echo_body as_echo' | |
7097 | fi | |
7098 | ||
7099 | # The user is always right. | |
7100 | if test "${PATH_SEPARATOR+set}" != set; then | |
7101 | PATH_SEPARATOR=: | |
7102 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7103 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7104 | PATH_SEPARATOR=';' | |
7105 | } | |
25ed0b71 KW |
7106 | fi |
7107 | ||
7108 | ||
81ecdfbb RW |
7109 | # IFS |
7110 | # We need space, tab and new line, in precisely that order. Quoting is | |
7111 | # there to prevent editors from complaining about space-tab. | |
7112 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7113 | # splitting by setting IFS to empty value.) | |
7114 | IFS=" "" $as_nl" | |
7115 | ||
7116 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 7117 | as_myself= |
81ecdfbb RW |
7118 | case $0 in #(( |
7119 | *[\\/]* ) as_myself=$0 ;; | |
7120 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7121 | for as_dir in $PATH | |
7122 | do | |
7123 | IFS=$as_save_IFS | |
7124 | test -z "$as_dir" && as_dir=. | |
7125 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7126 | done | |
7127 | IFS=$as_save_IFS | |
7128 | ||
7129 | ;; | |
7130 | esac | |
7131 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7132 | # in which case we are not to be found in the path. | |
7133 | if test "x$as_myself" = x; then | |
7134 | as_myself=$0 | |
7135 | fi | |
7136 | if test ! -f "$as_myself"; then | |
7137 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7138 | exit 1 | |
7139 | fi | |
7140 | ||
7141 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7142 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7143 | # suppresses any "Segmentation fault" message there. '((' could | |
7144 | # trigger a bug in pdksh 5.2.14. | |
7145 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7146 | do eval test x\${$as_var+set} = xset \ | |
7147 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7148 | done | |
25ed0b71 KW |
7149 | PS1='$ ' |
7150 | PS2='> ' | |
7151 | PS4='+ ' | |
7152 | ||
7153 | # NLS nuisances. | |
81ecdfbb RW |
7154 | LC_ALL=C |
7155 | export LC_ALL | |
7156 | LANGUAGE=C | |
7157 | export LANGUAGE | |
7158 | ||
7159 | # CDPATH. | |
7160 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7161 | ||
7162 | ||
d0ac1c44 SM |
7163 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7164 | # ---------------------------------------- | |
81ecdfbb RW |
7165 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7166 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 7167 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
7168 | as_fn_error () |
7169 | { | |
d0ac1c44 SM |
7170 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7171 | if test "$4"; then | |
7172 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7173 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
25ed0b71 | 7174 | fi |
d0ac1c44 | 7175 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
7176 | as_fn_exit $as_status |
7177 | } # as_fn_error | |
25ed0b71 | 7178 | |
81ecdfbb RW |
7179 | |
7180 | # as_fn_set_status STATUS | |
7181 | # ----------------------- | |
7182 | # Set $? to STATUS, without forking. | |
7183 | as_fn_set_status () | |
7184 | { | |
7185 | return $1 | |
7186 | } # as_fn_set_status | |
7187 | ||
7188 | # as_fn_exit STATUS | |
7189 | # ----------------- | |
7190 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7191 | as_fn_exit () | |
7192 | { | |
7193 | set +e | |
7194 | as_fn_set_status $1 | |
7195 | exit $1 | |
7196 | } # as_fn_exit | |
7197 | ||
7198 | # as_fn_unset VAR | |
7199 | # --------------- | |
7200 | # Portably unset VAR. | |
7201 | as_fn_unset () | |
7202 | { | |
7203 | { eval $1=; unset $1;} | |
7204 | } | |
7205 | as_unset=as_fn_unset | |
7206 | # as_fn_append VAR VALUE | |
7207 | # ---------------------- | |
7208 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7209 | # advantage of any shell optimizations that allow amortized linear growth over | |
7210 | # repeated appends, instead of the typical quadratic growth present in naive | |
7211 | # implementations. | |
7212 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7213 | eval 'as_fn_append () | |
7214 | { | |
7215 | eval $1+=\$2 | |
7216 | }' | |
7217 | else | |
7218 | as_fn_append () | |
7219 | { | |
7220 | eval $1=\$$1\$2 | |
7221 | } | |
7222 | fi # as_fn_append | |
7223 | ||
7224 | # as_fn_arith ARG... | |
7225 | # ------------------ | |
7226 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7227 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7228 | # must be portable across $(()) and expr. | |
7229 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7230 | eval 'as_fn_arith () | |
7231 | { | |
7232 | as_val=$(( $* )) | |
7233 | }' | |
7234 | else | |
7235 | as_fn_arith () | |
7236 | { | |
7237 | as_val=`expr "$@" || test $? -eq 1` | |
7238 | } | |
7239 | fi # as_fn_arith | |
7240 | ||
7241 | ||
7242 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7243 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
7244 | as_expr=expr |
7245 | else | |
7246 | as_expr=false | |
7247 | fi | |
7248 | ||
81ecdfbb | 7249 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
7250 | as_basename=basename |
7251 | else | |
7252 | as_basename=false | |
7253 | fi | |
7254 | ||
81ecdfbb RW |
7255 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7256 | as_dirname=dirname | |
7257 | else | |
7258 | as_dirname=false | |
7259 | fi | |
25ed0b71 | 7260 | |
81ecdfbb | 7261 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
7262 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7263 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7264 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7265 | $as_echo X/"$0" | | |
7266 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7267 | s//\1/ | |
7268 | q | |
7269 | } | |
7270 | /^X\/\(\/\/\)$/{ | |
7271 | s//\1/ | |
7272 | q | |
7273 | } | |
7274 | /^X\/\(\/\).*/{ | |
7275 | s//\1/ | |
7276 | q | |
7277 | } | |
7278 | s/.*/./; q'` | |
25ed0b71 | 7279 | |
25ed0b71 KW |
7280 | # Avoid depending upon Character Ranges. |
7281 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7282 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7283 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7284 | as_cr_digits='0123456789' | |
7285 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7286 | ||
81ecdfbb RW |
7287 | ECHO_C= ECHO_N= ECHO_T= |
7288 | case `echo -n x` in #((((( | |
7289 | -n*) | |
7290 | case `echo 'xy\c'` in | |
7291 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7292 | xy) ECHO_C='\c';; | |
7293 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7294 | ECHO_T=' ';; | |
7295 | esac;; | |
7296 | *) | |
7297 | ECHO_N='-n';; | |
25ed0b71 | 7298 | esac |
9255ee31 | 7299 | |
81ecdfbb RW |
7300 | rm -f conf$$ conf$$.exe conf$$.file |
7301 | if test -d conf$$.dir; then | |
7302 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 7303 | else |
81ecdfbb RW |
7304 | rm -f conf$$.dir |
7305 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 7306 | fi |
81ecdfbb RW |
7307 | if (echo >conf$$.file) 2>/dev/null; then |
7308 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 7309 | as_ln_s='ln -s' |
81ecdfbb RW |
7310 | # ... but there are two gotchas: |
7311 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7312 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 7313 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 7314 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 7315 | as_ln_s='cp -pR' |
81ecdfbb RW |
7316 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7317 | as_ln_s=ln | |
7318 | else | |
d0ac1c44 | 7319 | as_ln_s='cp -pR' |
9255ee31 | 7320 | fi |
9255ee31 | 7321 | else |
d0ac1c44 | 7322 | as_ln_s='cp -pR' |
9255ee31 | 7323 | fi |
81ecdfbb RW |
7324 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7325 | rmdir conf$$.dir 2>/dev/null | |
7326 | ||
7327 | ||
7328 | # as_fn_mkdir_p | |
7329 | # ------------- | |
7330 | # Create "$as_dir" as a directory, including parents if necessary. | |
7331 | as_fn_mkdir_p () | |
7332 | { | |
7333 | ||
7334 | case $as_dir in #( | |
7335 | -*) as_dir=./$as_dir;; | |
7336 | esac | |
7337 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7338 | as_dirs= | |
7339 | while :; do | |
7340 | case $as_dir in #( | |
7341 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7342 | *) as_qdir=$as_dir;; | |
7343 | esac | |
7344 | as_dirs="'$as_qdir' $as_dirs" | |
7345 | as_dir=`$as_dirname -- "$as_dir" || | |
7346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7347 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7348 | X"$as_dir" : 'X\(//\)$' \| \ | |
7349 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7350 | $as_echo X"$as_dir" | | |
7351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7352 | s//\1/ | |
7353 | q | |
7354 | } | |
7355 | /^X\(\/\/\)[^/].*/{ | |
7356 | s//\1/ | |
7357 | q | |
7358 | } | |
7359 | /^X\(\/\/\)$/{ | |
7360 | s//\1/ | |
7361 | q | |
7362 | } | |
7363 | /^X\(\/\).*/{ | |
7364 | s//\1/ | |
7365 | q | |
7366 | } | |
7367 | s/.*/./; q'` | |
7368 | test -d "$as_dir" && break | |
7369 | done | |
7370 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 7371 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9255ee31 | 7372 | |
81ecdfbb RW |
7373 | |
7374 | } # as_fn_mkdir_p | |
25ed0b71 | 7375 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7376 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 7377 | else |
430b7832 | 7378 | test -d ./-p && rmdir ./-p |
25ed0b71 | 7379 | as_mkdir_p=false |
9255ee31 EZ |
7380 | fi |
7381 | ||
d0ac1c44 SM |
7382 | |
7383 | # as_fn_executable_p FILE | |
7384 | # ----------------------- | |
7385 | # Test if FILE is an executable regular file. | |
7386 | as_fn_executable_p () | |
7387 | { | |
7388 | test -f "$1" && test -x "$1" | |
7389 | } # as_fn_executable_p | |
7390 | as_test_x='test -x' | |
7391 | as_executable_p=as_fn_executable_p | |
25ed0b71 KW |
7392 | |
7393 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 7394 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
7395 | |
7396 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 7397 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 7398 | |
9255ee31 | 7399 | |
9255ee31 | 7400 | exec 6>&1 |
81ecdfbb RW |
7401 | ## ----------------------------------- ## |
7402 | ## Main body of $CONFIG_STATUS script. ## | |
7403 | ## ----------------------------------- ## | |
7404 | _ASEOF | |
7405 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9255ee31 | 7406 | |
81ecdfbb RW |
7407 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7408 | # Save the log message, to keep $0 and so on meaningful, and to | |
25ed0b71 | 7409 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7410 | # values after options handling. |
7411 | ac_log=" | |
cb41b9e7 | 7412 | This file was extended by readline $as_me 8.0, which was |
d0ac1c44 | 7413 | generated by GNU Autoconf 2.69. Invocation command line was |
25ed0b71 KW |
7414 | |
7415 | CONFIG_FILES = $CONFIG_FILES | |
7416 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7417 | CONFIG_LINKS = $CONFIG_LINKS | |
7418 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7419 | $ $0 $@ | |
7420 | ||
81ecdfbb RW |
7421 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7422 | " | |
7423 | ||
9255ee31 EZ |
7424 | _ACEOF |
7425 | ||
81ecdfbb RW |
7426 | case $ac_config_files in *" |
7427 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7428 | esac | |
9255ee31 | 7429 | |
81ecdfbb RW |
7430 | case $ac_config_headers in *" |
7431 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7432 | esac | |
9255ee31 | 7433 | |
9255ee31 | 7434 | |
81ecdfbb RW |
7435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7436 | # Files that config.status was made for. | |
7437 | config_files="$ac_config_files" | |
7438 | config_headers="$ac_config_headers" | |
7439 | config_commands="$ac_config_commands" | |
9255ee31 | 7440 | |
81ecdfbb | 7441 | _ACEOF |
9255ee31 | 7442 | |
81ecdfbb | 7443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 | 7444 | ac_cs_usage="\ |
81ecdfbb RW |
7445 | \`$as_me' instantiates files and other configuration actions |
7446 | from templates according to the current configuration. Unless the files | |
7447 | and actions are specified as TAGs, all are instantiated by default. | |
9255ee31 | 7448 | |
81ecdfbb | 7449 | Usage: $0 [OPTION]... [TAG]... |
9255ee31 EZ |
7450 | |
7451 | -h, --help print this help, then exit | |
81ecdfbb | 7452 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 7453 | --config print configuration, then exit |
81ecdfbb RW |
7454 | -q, --quiet, --silent |
7455 | do not print progress messages | |
9255ee31 EZ |
7456 | -d, --debug don't remove temporary files |
7457 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7458 | --file=FILE[:TEMPLATE] |
7459 | instantiate the configuration file FILE | |
7460 | --header=FILE[:TEMPLATE] | |
7461 | instantiate the configuration header FILE | |
9255ee31 EZ |
7462 | |
7463 | Configuration files: | |
7464 | $config_files | |
7465 | ||
7466 | Configuration headers: | |
7467 | $config_headers | |
7468 | ||
7469 | Configuration commands: | |
7470 | $config_commands | |
7471 | ||
81ecdfbb | 7472 | Report bugs to <bug-readline@gnu.org>." |
9255ee31 | 7473 | |
81ecdfbb RW |
7474 | _ACEOF |
7475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 7476 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9255ee31 | 7477 | ac_cs_version="\\ |
cb41b9e7 | 7478 | readline config.status 8.0 |
d0ac1c44 SM |
7479 | configured by $0, generated by GNU Autoconf 2.69, |
7480 | with options \\"\$ac_cs_config\\" | |
9255ee31 | 7481 | |
d0ac1c44 | 7482 | Copyright (C) 2012 Free Software Foundation, Inc. |
9255ee31 EZ |
7483 | This config.status script is free software; the Free Software Foundation |
7484 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7485 | |
7486 | ac_pwd='$ac_pwd' | |
7487 | srcdir='$srcdir' | |
7488 | INSTALL='$INSTALL' | |
7489 | test -n "\$AWK" || AWK=awk | |
25ed0b71 | 7490 | _ACEOF |
9255ee31 | 7491 | |
81ecdfbb RW |
7492 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7493 | # The default lists apply if the user does not specify any file. | |
9255ee31 EZ |
7494 | ac_need_defaults=: |
7495 | while test $# != 0 | |
d60d9f65 | 7496 | do |
9255ee31 | 7497 | case $1 in |
d0ac1c44 | 7498 | --*=?*) |
81ecdfbb RW |
7499 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7500 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25ed0b71 KW |
7501 | ac_shift=: |
7502 | ;; | |
d0ac1c44 SM |
7503 | --*=) |
7504 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7505 | ac_optarg= | |
7506 | ac_shift=: | |
7507 | ;; | |
81ecdfbb | 7508 | *) |
25ed0b71 KW |
7509 | ac_option=$1 |
7510 | ac_optarg=$2 | |
7511 | ac_shift=shift | |
9255ee31 | 7512 | ;; |
9255ee31 EZ |
7513 | esac |
7514 | ||
25ed0b71 | 7515 | case $ac_option in |
9255ee31 | 7516 | # Handling of the options. |
d60d9f65 | 7517 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 7518 | ac_cs_recheck=: ;; |
81ecdfbb RW |
7519 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7520 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
7521 | --config | --confi | --conf | --con | --co | --c ) |
7522 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 7523 | --debug | --debu | --deb | --de | --d | -d ) |
9255ee31 EZ |
7524 | debug=: ;; |
7525 | --file | --fil | --fi | --f ) | |
25ed0b71 | 7526 | $ac_shift |
81ecdfbb RW |
7527 | case $ac_optarg in |
7528 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 7529 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
7530 | esac |
7531 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
9255ee31 EZ |
7532 | ac_need_defaults=false;; |
7533 | --header | --heade | --head | --hea ) | |
25ed0b71 | 7534 | $ac_shift |
81ecdfbb RW |
7535 | case $ac_optarg in |
7536 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7537 | esac | |
7538 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
9255ee31 | 7539 | ac_need_defaults=false;; |
81ecdfbb RW |
7540 | --he | --h) |
7541 | # Conflict between --help and --header | |
d0ac1c44 | 7542 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
7543 | Try \`$0 --help' for more information.";; |
7544 | --help | --hel | -h ) | |
7545 | $as_echo "$ac_cs_usage"; exit ;; | |
25ed0b71 KW |
7546 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7547 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7548 | ac_cs_silent=: ;; | |
9255ee31 EZ |
7549 | |
7550 | # This is an error. | |
d0ac1c44 | 7551 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 7552 | Try \`$0 --help' for more information." ;; |
9255ee31 | 7553 | |
81ecdfbb RW |
7554 | *) as_fn_append ac_config_targets " $1" |
7555 | ac_need_defaults=false ;; | |
9255ee31 | 7556 | |
d60d9f65 | 7557 | esac |
9255ee31 | 7558 | shift |
d60d9f65 SS |
7559 | done |
7560 | ||
25ed0b71 | 7561 | ac_configure_extra_args= |
9255ee31 | 7562 | |
25ed0b71 KW |
7563 | if $ac_cs_silent; then |
7564 | exec 6>/dev/null | |
7565 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7566 | fi | |
9255ee31 | 7567 | |
25ed0b71 | 7568 | _ACEOF |
81ecdfbb | 7569 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25ed0b71 | 7570 | if \$ac_cs_recheck; then |
d0ac1c44 | 7571 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
7572 | shift |
7573 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7574 | CONFIG_SHELL='$SHELL' | |
7575 | export CONFIG_SHELL | |
7576 | exec "\$@" | |
25ed0b71 | 7577 | fi |
d60d9f65 | 7578 | |
9255ee31 | 7579 | _ACEOF |
81ecdfbb RW |
7580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7581 | exec 5>>config.log | |
7582 | { | |
7583 | echo | |
7584 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7585 | ## Running $as_me. ## | |
7586 | _ASBOX | |
7587 | $as_echo "$ac_log" | |
7588 | } >&5 | |
d60d9f65 | 7589 | |
81ecdfbb RW |
7590 | _ACEOF |
7591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7592 | _ACEOF | |
25ed0b71 | 7593 | |
81ecdfbb | 7594 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25ed0b71 | 7595 | |
81ecdfbb | 7596 | # Handling of arguments. |
9255ee31 EZ |
7597 | for ac_config_target in $ac_config_targets |
7598 | do | |
81ecdfbb RW |
7599 | case $ac_config_target in |
7600 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7601 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7602 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7603 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
7604 | "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
775e241e | 7605 | "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;; |
81ecdfbb RW |
7606 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
7607 | ||
d0ac1c44 | 7608 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9255ee31 EZ |
7609 | esac |
7610 | done | |
7611 | ||
81ecdfbb | 7612 | |
9255ee31 EZ |
7613 | # If the user did not use the arguments to specify the items to instantiate, |
7614 | # then the envvar interface is used. Set only those that are not. | |
7615 | # We use the long form for the default assignment because of an extremely | |
7616 | # bizarre bug on SunOS 4.1.3. | |
7617 | if $ac_need_defaults; then | |
7618 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7619 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7620 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7621 | fi | |
7622 | ||
25ed0b71 | 7623 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 7624 | # simply because there is no reason against having it here, and in addition, |
25ed0b71 | 7625 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7626 | # Hook for its removal unless debugging. |
7627 | # Note that there is a small window in which the directory will not be cleaned: | |
7628 | # after its creation but before its name has been assigned to `$tmp'. | |
9255ee31 EZ |
7629 | $debug || |
7630 | { | |
d0ac1c44 | 7631 | tmp= ac_tmp= |
81ecdfbb | 7632 | trap 'exit_status=$? |
d0ac1c44 SM |
7633 | : "${ac_tmp:=$tmp}" |
7634 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
7635 | ' 0 |
7636 | trap 'as_fn_exit 1' 1 2 13 15 | |
9255ee31 | 7637 | } |
9255ee31 | 7638 | # Create a (secure) tmp directory for tmp files. |
25ed0b71 | 7639 | |
9255ee31 | 7640 | { |
81ecdfbb | 7641 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 7642 | test -d "$tmp" |
9255ee31 EZ |
7643 | } || |
7644 | { | |
81ecdfbb RW |
7645 | tmp=./conf$$-$RANDOM |
7646 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
7647 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
7648 | ac_tmp=$tmp | |
81ecdfbb RW |
7649 | |
7650 | # Set up the scripts for CONFIG_FILES section. | |
7651 | # No need to generate them if there are no CONFIG_FILES. | |
7652 | # This happens for instance with `./config.status config.h'. | |
7653 | if test -n "$CONFIG_FILES"; then | |
7654 | ||
7655 | ||
7656 | ac_cr=`echo X | tr X '\015'` | |
7657 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7658 | # But we know of no other shell where ac_cr would be empty at this | |
7659 | # point, so we can use a bashism as a fallback. | |
7660 | if test "x$ac_cr" = x; then | |
7661 | eval ac_cr=\$\'\\r\' | |
7662 | fi | |
7663 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7664 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 7665 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
7666 | else |
7667 | ac_cs_awk_cr=$ac_cr | |
7668 | fi | |
7669 | ||
d0ac1c44 | 7670 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
7671 | _ACEOF |
7672 | ||
7673 | ||
9255ee31 | 7674 | { |
81ecdfbb RW |
7675 | echo "cat >conf$$subs.awk <<_ACEOF" && |
7676 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7677 | echo "_ACEOF" | |
7678 | } >conf$$subs.sh || | |
d0ac1c44 SM |
7679 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7680 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
7681 | ac_delim='%!_!# ' |
7682 | for ac_last_try in false false false false false :; do | |
7683 | . ./conf$$subs.sh || | |
d0ac1c44 | 7684 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7685 | |
7686 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7687 | if test $ac_delim_n = $ac_delim_num; then | |
7688 | break | |
7689 | elif $ac_last_try; then | |
d0ac1c44 | 7690 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7691 | else |
7692 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7693 | fi | |
7694 | done | |
7695 | rm -f conf$$subs.sh | |
7696 | ||
7697 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 7698 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
7699 | _ACEOF |
7700 | sed -n ' | |
7701 | h | |
7702 | s/^/S["/; s/!.*/"]=/ | |
7703 | p | |
7704 | g | |
7705 | s/^[^!]*!// | |
7706 | :repl | |
7707 | t repl | |
7708 | s/'"$ac_delim"'$// | |
7709 | t delim | |
7710 | :nl | |
7711 | h | |
d0ac1c44 | 7712 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7713 | t more1 |
7714 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7715 | p | |
7716 | n | |
7717 | b repl | |
7718 | :more1 | |
7719 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7720 | p | |
7721 | g | |
7722 | s/.\{148\}// | |
7723 | t nl | |
7724 | :delim | |
7725 | h | |
d0ac1c44 | 7726 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7727 | t more2 |
7728 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7729 | p | |
7730 | b | |
7731 | :more2 | |
7732 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7733 | p | |
7734 | g | |
7735 | s/.\{148\}// | |
7736 | t delim | |
7737 | ' <conf$$subs.awk | sed ' | |
7738 | /^[^""]/{ | |
7739 | N | |
7740 | s/\n// | |
9255ee31 | 7741 | } |
81ecdfbb RW |
7742 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7743 | rm -f conf$$subs.awk | |
7744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7745 | _ACAWK | |
d0ac1c44 | 7746 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
7747 | for (key in S) S_is_set[key] = 1 |
7748 | FS = "\a" | |
d60d9f65 | 7749 | |
81ecdfbb RW |
7750 | } |
7751 | { | |
7752 | line = $ 0 | |
7753 | nfields = split(line, field, "@") | |
7754 | substed = 0 | |
7755 | len = length(field[1]) | |
7756 | for (i = 2; i < nfields; i++) { | |
7757 | key = field[i] | |
7758 | keylen = length(key) | |
7759 | if (S_is_set[key]) { | |
7760 | value = S[key] | |
7761 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7762 | len += length(value) + length(field[++i]) | |
7763 | substed = 1 | |
7764 | } else | |
7765 | len += 1 + keylen | |
7766 | } | |
d60d9f65 | 7767 | |
81ecdfbb RW |
7768 | print line |
7769 | } | |
d60d9f65 | 7770 | |
81ecdfbb RW |
7771 | _ACAWK |
7772 | _ACEOF | |
7773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7774 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7775 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7776 | else | |
7777 | cat | |
d0ac1c44 SM |
7778 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
7779 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
7780 | _ACEOF |
7781 | ||
d0ac1c44 SM |
7782 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7783 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
7784 | # trailing colons and then remove the whole line if VPATH becomes empty |
7785 | # (actually we leave an empty line to preserve line numbers). | |
7786 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
7787 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7788 | h | |
7789 | s/// | |
7790 | s/^/:/ | |
7791 | s/[ ]*$/:/ | |
7792 | s/:\$(srcdir):/:/g | |
7793 | s/:\${srcdir}:/:/g | |
7794 | s/:@srcdir@:/:/g | |
7795 | s/^:*// | |
81ecdfbb | 7796 | s/:*$// |
d0ac1c44 SM |
7797 | x |
7798 | s/\(=[ ]*\).*/\1/ | |
7799 | G | |
7800 | s/\n// | |
81ecdfbb RW |
7801 | s/^[^=]*=[ ]*$// |
7802 | }' | |
7803 | fi | |
9255ee31 | 7804 | |
81ecdfbb RW |
7805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7806 | fi # test -n "$CONFIG_FILES" | |
9255ee31 | 7807 | |
81ecdfbb RW |
7808 | # Set up the scripts for CONFIG_HEADERS section. |
7809 | # No need to generate them if there are no CONFIG_HEADERS. | |
7810 | # This happens for instance with `./config.status Makefile'. | |
7811 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 7812 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 7813 | BEGIN { |
25ed0b71 | 7814 | _ACEOF |
9255ee31 | 7815 | |
81ecdfbb RW |
7816 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7817 | # here-document in config.status, that substitutes the proper values into | |
7818 | # config.h.in to produce config.h. | |
7819 | ||
7820 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7821 | # handling of long lines. | |
7822 | ac_delim='%!_!# ' | |
7823 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
7824 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
7825 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
7826 | break |
7827 | elif $ac_last_try; then | |
d0ac1c44 | 7828 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
7829 | else |
7830 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d60d9f65 | 7831 | fi |
81ecdfbb | 7832 | done |
d60d9f65 | 7833 | |
81ecdfbb RW |
7834 | # For the awk script, D is an array of macro values keyed by name, |
7835 | # likewise P contains macro parameters if any. Preserve backslash | |
7836 | # newline sequences. | |
7837 | ||
7838 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7839 | sed -n ' | |
7840 | s/.\{148\}/&'"$ac_delim"'/g | |
7841 | t rset | |
7842 | :rset | |
7843 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7844 | t def | |
7845 | d | |
7846 | :def | |
7847 | s/\\$// | |
7848 | t bsnl | |
7849 | s/["\\]/\\&/g | |
7850 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7851 | D["\1"]=" \3"/p | |
7852 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7853 | d | |
7854 | :bsnl | |
7855 | s/["\\]/\\&/g | |
7856 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7857 | D["\1"]=" \3\\\\\\n"\\/p | |
7858 | t cont | |
7859 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7860 | t cont | |
7861 | d | |
7862 | :cont | |
7863 | n | |
7864 | s/.\{148\}/&'"$ac_delim"'/g | |
7865 | t clear | |
7866 | :clear | |
7867 | s/\\$// | |
7868 | t bsnlc | |
7869 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7870 | d | |
7871 | :bsnlc | |
7872 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7873 | b cont | |
7874 | ' <confdefs.h | sed ' | |
7875 | s/'"$ac_delim"'/"\\\ | |
7876 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7877 | ||
7878 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7879 | for (key in D) D_is_set[key] = 1 | |
7880 | FS = "\a" | |
7881 | } | |
7882 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7883 | line = \$ 0 | |
7884 | split(line, arg, " ") | |
7885 | if (arg[1] == "#") { | |
7886 | defundef = arg[2] | |
7887 | mac1 = arg[3] | |
7888 | } else { | |
7889 | defundef = substr(arg[1], 2) | |
7890 | mac1 = arg[2] | |
7891 | } | |
7892 | split(mac1, mac2, "(") #) | |
7893 | macro = mac2[1] | |
7894 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7895 | if (D_is_set[macro]) { | |
7896 | # Preserve the white space surrounding the "#". | |
7897 | print prefix "define", macro P[macro] D[macro] | |
7898 | next | |
7899 | } else { | |
7900 | # Replace #undef with comments. This is necessary, for example, | |
7901 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7902 | # on some systems where configure will not decide to define it. | |
7903 | if (defundef == "undef") { | |
7904 | print "/*", prefix defundef, macro, "*/" | |
7905 | next | |
7906 | } | |
7907 | } | |
7908 | } | |
7909 | { print } | |
7910 | _ACAWK | |
25ed0b71 | 7911 | _ACEOF |
81ecdfbb | 7912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 7913 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
7914 | fi # test -n "$CONFIG_HEADERS" |
7915 | ||
7916 | ||
7917 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7918 | shift | |
7919 | for ac_tag | |
7920 | do | |
7921 | case $ac_tag in | |
7922 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7923 | esac | |
7924 | case $ac_mode$ac_tag in | |
7925 | :[FHL]*:*);; | |
d0ac1c44 | 7926 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
7927 | :[FH]-) ac_tag=-:-;; |
7928 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7929 | esac | |
7930 | ac_save_IFS=$IFS | |
7931 | IFS=: | |
7932 | set x $ac_tag | |
7933 | IFS=$ac_save_IFS | |
7934 | shift | |
7935 | ac_file=$1 | |
7936 | shift | |
7937 | ||
7938 | case $ac_mode in | |
7939 | :L) ac_source=$1;; | |
7940 | :[FH]) | |
7941 | ac_file_inputs= | |
7942 | for ac_f | |
7943 | do | |
7944 | case $ac_f in | |
d0ac1c44 | 7945 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
7946 | *) # Look for the file first in the build tree, then in the source tree |
7947 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7948 | # because $ac_f cannot contain `:'. | |
7949 | test -f "$ac_f" || | |
7950 | case $ac_f in | |
7951 | [\\/$]*) false;; | |
7952 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7953 | esac || | |
d0ac1c44 | 7954 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
7955 | esac |
7956 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7957 | as_fn_append ac_file_inputs " '$ac_f'" | |
7958 | done | |
7959 | ||
7960 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7961 | # use $as_me), people would be surprised to read: | |
7962 | # /* config.h. Generated by config.status. */ | |
7963 | configure_input='Generated from '` | |
7964 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7965 | `' by configure.' | |
7966 | if test x"$ac_file" != x-; then | |
7967 | configure_input="$ac_file. $configure_input" | |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7969 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7970 | fi | |
7971 | # Neutralize special characters interpreted by sed in replacement strings. | |
7972 | case $configure_input in #( | |
7973 | *\&* | *\|* | *\\* ) | |
7974 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7975 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7976 | *) ac_sed_conf_input=$configure_input;; | |
7977 | esac | |
7978 | ||
7979 | case $ac_tag in | |
d0ac1c44 SM |
7980 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7981 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
7982 | esac |
7983 | ;; | |
d60d9f65 SS |
7984 | esac |
7985 | ||
81ecdfbb | 7986 | ac_dir=`$as_dirname -- "$ac_file" || |
25ed0b71 | 7987 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
430b7832 MM |
7988 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7989 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7990 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7991 | $as_echo X"$ac_file" | | |
7992 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7993 | s//\1/ | |
7994 | q | |
7995 | } | |
7996 | /^X\(\/\/\)[^/].*/{ | |
7997 | s//\1/ | |
7998 | q | |
7999 | } | |
8000 | /^X\(\/\/\)$/{ | |
8001 | s//\1/ | |
8002 | q | |
8003 | } | |
8004 | /^X\(\/\).*/{ | |
8005 | s//\1/ | |
8006 | q | |
8007 | } | |
8008 | s/.*/./; q'` | |
8009 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25ed0b71 KW |
8010 | ac_builddir=. |
8011 | ||
81ecdfbb RW |
8012 | case "$ac_dir" in |
8013 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8014 | *) | |
8015 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8016 | # A ".." for each directory in $ac_dir_suffix. | |
8017 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8018 | case $ac_top_builddir_sub in | |
8019 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8020 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8021 | esac ;; | |
8022 | esac | |
8023 | ac_abs_top_builddir=$ac_pwd | |
8024 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8025 | # for backward compatibility: | |
8026 | ac_top_builddir=$ac_top_build_prefix | |
25ed0b71 KW |
8027 | |
8028 | case $srcdir in | |
81ecdfbb | 8029 | .) # We are building in place. |
25ed0b71 | 8030 | ac_srcdir=. |
81ecdfbb RW |
8031 | ac_top_srcdir=$ac_top_builddir_sub |
8032 | ac_abs_top_srcdir=$ac_pwd ;; | |
8033 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 8034 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8035 | ac_top_srcdir=$srcdir |
8036 | ac_abs_top_srcdir=$srcdir ;; | |
8037 | *) # Relative name. | |
8038 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8039 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8040 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25ed0b71 | 8041 | esac |
81ecdfbb | 8042 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
430b7832 | 8043 | |
25ed0b71 | 8044 | |
81ecdfbb RW |
8045 | case $ac_mode in |
8046 | :F) | |
8047 | # | |
8048 | # CONFIG_FILE | |
8049 | # | |
d60d9f65 | 8050 | |
9255ee31 EZ |
8051 | case $INSTALL in |
8052 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 8053 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d60d9f65 | 8054 | esac |
81ecdfbb | 8055 | _ACEOF |
d60d9f65 | 8056 | |
81ecdfbb RW |
8057 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8058 | # If the template does not know about datarootdir, expand it. | |
8059 | # FIXME: This hack should be removed a few years after 2.60. | |
8060 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8061 | ac_sed_dataroot=' | |
8062 | /datarootdir/ { | |
8063 | p | |
8064 | q | |
8065 | } | |
8066 | /@datadir@/p | |
8067 | /@docdir@/p | |
8068 | /@infodir@/p | |
8069 | /@localedir@/p | |
8070 | /@mandir@/p' | |
8071 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8072 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8073 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8075 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8076 | _ACEOF | |
8077 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8078 | ac_datarootdir_hack=' | |
8079 | s&@datadir@&$datadir&g | |
8080 | s&@docdir@&$docdir&g | |
8081 | s&@infodir@&$infodir&g | |
8082 | s&@localedir@&$localedir&g | |
8083 | s&@mandir@&$mandir&g | |
8084 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8085 | esac | |
25ed0b71 | 8086 | _ACEOF |
81ecdfbb RW |
8087 | |
8088 | # Neutralize VPATH when `$srcdir' = `.'. | |
8089 | # Shell code in configure.ac might set extrasub. | |
8090 | # FIXME: do we really want to maintain this feature? | |
8091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8092 | ac_sed_extra="$ac_vpsub | |
9255ee31 | 8093 | $extrasub |
25ed0b71 | 8094 | _ACEOF |
81ecdfbb | 8095 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 EZ |
8096 | :t |
8097 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8098 | s|@configure_input@|$ac_sed_conf_input|;t t |
8099 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8100 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8101 | s&@srcdir@&$ac_srcdir&;t t | |
8102 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8103 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8104 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8105 | s&@builddir@&$ac_builddir&;t t | |
8106 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8107 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8108 | s&@INSTALL@&$ac_INSTALL&;t t | |
8109 | $ac_datarootdir_hack | |
8110 | " | |
d0ac1c44 SM |
8111 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8112 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
8113 | |
8114 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
8115 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8116 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8117 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 8119 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 8120 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 8121 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 8122 | |
d0ac1c44 | 8123 | rm -f "$ac_tmp/stdin" |
9255ee31 | 8124 | case $ac_file in |
d0ac1c44 SM |
8125 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8126 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 8127 | esac \ |
d0ac1c44 | 8128 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
8129 | ;; |
8130 | :H) | |
8131 | # | |
8132 | # CONFIG_HEADER | |
8133 | # | |
9255ee31 | 8134 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
8135 | { |
8136 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
8137 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8138 | } >"$ac_tmp/config.h" \ | |
8139 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8140 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8142 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
9255ee31 | 8143 | else |
81ecdfbb | 8144 | rm -f "$ac_file" |
d0ac1c44 SM |
8145 | mv "$ac_tmp/config.h" "$ac_file" \ |
8146 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d60d9f65 | 8147 | fi |
9255ee31 | 8148 | else |
81ecdfbb | 8149 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
8150 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8151 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d60d9f65 | 8152 | fi |
81ecdfbb | 8153 | ;; |
430b7832 | 8154 | |
81ecdfbb RW |
8155 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8156 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8157 | ;; | |
8158 | esac | |
25ed0b71 | 8159 | |
d60d9f65 | 8160 | |
81ecdfbb RW |
8161 | case $ac_file$ac_mode in |
8162 | "default":C) | |
d60d9f65 SS |
8163 | # Makefile uses this timestamp file to record whether config.h is up to date. |
8164 | echo > stamp-h | |
9255ee31 | 8165 | ;; |
81ecdfbb | 8166 | |
9255ee31 | 8167 | esac |
81ecdfbb | 8168 | done # for ac_tag |
d60d9f65 | 8169 | |
9255ee31 | 8170 | |
81ecdfbb | 8171 | as_fn_exit 0 |
25ed0b71 | 8172 | _ACEOF |
9255ee31 EZ |
8173 | ac_clean_files=$ac_clean_files_save |
8174 | ||
81ecdfbb | 8175 | test $ac_write_fail = 0 || |
d0ac1c44 | 8176 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 8177 | |
25ed0b71 | 8178 | |
9255ee31 EZ |
8179 | # configure is writing to config.log, and then calls config.status. |
8180 | # config.status does its own redirection, appending to config.log. | |
8181 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8182 | # by configure, so config.status won't be able to write to it; its | |
8183 | # output is simply discarded. So we exec the FD to /dev/null, | |
8184 | # effectively closing config.log, so it can be properly (re)opened and | |
8185 | # appended to by config.status. When coming back to configure, we | |
8186 | # need to make the FD available again. | |
8187 | if test "$no_create" != yes; then | |
8188 | ac_cs_success=: | |
25ed0b71 KW |
8189 | ac_config_status_args= |
8190 | test "$silent" = yes && | |
8191 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 8192 | exec 5>/dev/null |
25ed0b71 | 8193 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
8194 | exec 5>>config.log |
8195 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8196 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 8197 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
8198 | fi |
8199 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8201 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9255ee31 | 8202 | fi |
d60d9f65 | 8203 |