]>
Commit | Line | Data |
---|---|---|
d60d9f65 | 1 | #! /bin/sh |
5836a818 | 2 | # From configure.in for Readline 6.2, version 2.67. |
9255ee31 | 3 | # Guess values for system-dependent variables and create Makefiles. |
63a9e923 | 4 | # Generated by GNU Autoconf 2.69 for readline 6.2. |
9255ee31 EZ |
5 | # |
6 | # Report bugs to <bug-readline@gnu.org>. | |
7 | # | |
63a9e923 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. | |
63a9e923 | 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 | ||
63a9e923 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 | |
63a9e923 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 : | |
63a9e923 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" | |
63a9e923 | 359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
360 | |
361 | ||
362 | } # as_fn_mkdir_p | |
63a9e923 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 | ||
63a9e923 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 | |
63a9e923 | 411 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
412 | as_fn_error () |
413 | { | |
63a9e923 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 |
63a9e923 | 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 | |
63a9e923 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. | |
63a9e923 | 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 || |
63a9e923 | 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 | |
63a9e923 | 536 | as_ln_s='cp -pR' |
9255ee31 | 537 | fi |
9255ee31 | 538 | else |
63a9e923 | 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 | |
63a9e923 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 | |
63a9e923 SM |
561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
562 | exec 6>&1 | |
9255ee31 EZ |
563 | |
564 | # Name of the host. | |
63a9e923 | 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' | |
5836a818 PP |
584 | PACKAGE_VERSION='6.2' |
585 | PACKAGE_STRING='readline 6.2' | |
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 |
81ecdfbb RW |
627 | TERMCAP_LIB |
628 | LIBVERSION | |
629 | ARFLAGS | |
630 | LOCAL_DEFS | |
631 | LOCAL_LDFLAGS | |
632 | LOCAL_CFLAGS | |
633 | BUILD_DIR | |
634 | PURIFY | |
635 | SHARED_INSTALL_TARGET | |
636 | STATIC_INSTALL_TARGET | |
637 | SHARED_TARGET | |
638 | STATIC_TARGET | |
639 | SHLIB_MINOR | |
640 | SHLIB_MAJOR | |
641 | SHLIB_LIBS | |
642 | SHLIB_DLLVERSION | |
643 | SHLIB_LIBVERSION | |
644 | SHLIB_LIBSUFF | |
645 | SHLIB_LIBPREF | |
646 | SHLIB_DOT | |
647 | SHLIB_XLDFLAGS | |
648 | SHLIB_STATUS | |
649 | SHOBJ_STATUS | |
650 | SHOBJ_LIBS | |
651 | SHOBJ_XLDFLAGS | |
652 | SHOBJ_LDFLAGS | |
653 | SHOBJ_LD | |
654 | SHOBJ_CFLAGS | |
655 | SHOBJ_CC | |
cc88a640 | 656 | LIBOBJS |
81ecdfbb RW |
657 | MAKE_SHELL |
658 | RANLIB | |
659 | AR | |
660 | INSTALL_DATA | |
661 | INSTALL_SCRIPT | |
662 | INSTALL_PROGRAM | |
81ecdfbb RW |
663 | EGREP |
664 | GREP | |
665 | CPP | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
673 | SET_MAKE | |
674 | CROSS_COMPILE | |
675 | host_os | |
676 | host_vendor | |
677 | host_cpu | |
678 | host | |
679 | build_os | |
680 | build_vendor | |
681 | build_cpu | |
682 | build | |
683 | target_alias | |
684 | host_alias | |
685 | build_alias | |
686 | LIBS | |
687 | ECHO_T | |
688 | ECHO_N | |
689 | ECHO_C | |
690 | DEFS | |
691 | mandir | |
692 | localedir | |
693 | libdir | |
694 | psdir | |
695 | pdfdir | |
696 | dvidir | |
697 | htmldir | |
698 | infodir | |
699 | docdir | |
700 | oldincludedir | |
701 | includedir | |
702 | localstatedir | |
703 | sharedstatedir | |
704 | sysconfdir | |
705 | datadir | |
706 | datarootdir | |
707 | libexecdir | |
708 | sbindir | |
709 | bindir | |
710 | program_transform_name | |
711 | prefix | |
712 | exec_prefix | |
713 | PACKAGE_URL | |
714 | PACKAGE_BUGREPORT | |
715 | PACKAGE_STRING | |
716 | PACKAGE_VERSION | |
717 | PACKAGE_TARNAME | |
718 | PACKAGE_NAME | |
719 | PATH_SEPARATOR | |
720 | SHELL' | |
25ed0b71 | 721 | ac_subst_files='' |
81ecdfbb RW |
722 | ac_user_opts=' |
723 | enable_option_checking | |
724 | with_curses | |
725 | with_purify | |
726 | enable_multibyte | |
727 | enable_static | |
cc88a640 | 728 | enable_largefile |
81ecdfbb RW |
729 | ' |
730 | ac_precious_vars='build_alias | |
731 | host_alias | |
732 | target_alias | |
733 | CC | |
734 | CFLAGS | |
735 | LDFLAGS | |
736 | LIBS | |
737 | CPPFLAGS | |
738 | CPP' | |
739 | ||
25ed0b71 | 740 | |
d60d9f65 | 741 | # Initialize some variables set by options. |
9255ee31 EZ |
742 | ac_init_help= |
743 | ac_init_version=false | |
81ecdfbb RW |
744 | ac_unrecognized_opts= |
745 | ac_unrecognized_sep= | |
d60d9f65 SS |
746 | # The variables have the same names as the options, with |
747 | # dashes changed to underlines. | |
9255ee31 | 748 | cache_file=/dev/null |
d60d9f65 | 749 | exec_prefix=NONE |
d60d9f65 | 750 | no_create= |
d60d9f65 SS |
751 | no_recursion= |
752 | prefix=NONE | |
753 | program_prefix=NONE | |
754 | program_suffix=NONE | |
755 | program_transform_name=s,x,x, | |
756 | silent= | |
757 | site= | |
758 | srcdir= | |
d60d9f65 SS |
759 | verbose= |
760 | x_includes=NONE | |
761 | x_libraries=NONE | |
9255ee31 EZ |
762 | |
763 | # Installation directory options. | |
764 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
765 | # and all the variables that are supposed to be based on exec_prefix | |
766 | # by default will actually change. | |
767 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 768 | # (The list follows the same order as the GNU Coding Standards.) |
d60d9f65 SS |
769 | bindir='${exec_prefix}/bin' |
770 | sbindir='${exec_prefix}/sbin' | |
771 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
772 | datarootdir='${prefix}/share' |
773 | datadir='${datarootdir}' | |
d60d9f65 SS |
774 | sysconfdir='${prefix}/etc' |
775 | sharedstatedir='${prefix}/com' | |
776 | localstatedir='${prefix}/var' | |
d60d9f65 SS |
777 | includedir='${prefix}/include' |
778 | oldincludedir='/usr/include' | |
81ecdfbb RW |
779 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
780 | infodir='${datarootdir}/info' | |
781 | htmldir='${docdir}' | |
782 | dvidir='${docdir}' | |
783 | pdfdir='${docdir}' | |
784 | psdir='${docdir}' | |
785 | libdir='${exec_prefix}/lib' | |
786 | localedir='${datarootdir}/locale' | |
787 | mandir='${datarootdir}/man' | |
d60d9f65 | 788 | |
d60d9f65 | 789 | ac_prev= |
81ecdfbb | 790 | ac_dashdash= |
d60d9f65 SS |
791 | for ac_option |
792 | do | |
d60d9f65 SS |
793 | # If the previous option needs an argument, assign it. |
794 | if test -n "$ac_prev"; then | |
81ecdfbb | 795 | eval $ac_prev=\$ac_option |
d60d9f65 SS |
796 | ac_prev= |
797 | continue | |
798 | fi | |
799 | ||
81ecdfbb | 800 | case $ac_option in |
63a9e923 SM |
801 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
802 | *=) ac_optarg= ;; | |
803 | *) ac_optarg=yes ;; | |
81ecdfbb | 804 | esac |
d60d9f65 SS |
805 | |
806 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
807 | ||
81ecdfbb RW |
808 | case $ac_dashdash$ac_option in |
809 | --) | |
810 | ac_dashdash=yes ;; | |
d60d9f65 SS |
811 | |
812 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
813 | ac_prev=bindir ;; | |
814 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 815 | bindir=$ac_optarg ;; |
d60d9f65 SS |
816 | |
817 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 818 | ac_prev=build_alias ;; |
d60d9f65 | 819 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 820 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
821 | |
822 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
823 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
824 | ac_prev=cache_file ;; | |
825 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
826 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
9255ee31 EZ |
827 | cache_file=$ac_optarg ;; |
828 | ||
829 | --config-cache | -C) | |
830 | cache_file=config.cache ;; | |
d60d9f65 | 831 | |
81ecdfbb | 832 | -datadir | --datadir | --datadi | --datad) |
d60d9f65 | 833 | ac_prev=datadir ;; |
81ecdfbb | 834 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
9255ee31 | 835 | datadir=$ac_optarg ;; |
d60d9f65 | 836 | |
81ecdfbb RW |
837 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
838 | | --dataroo | --dataro | --datar) | |
839 | ac_prev=datarootdir ;; | |
840 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
841 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
842 | datarootdir=$ac_optarg ;; | |
843 | ||
d60d9f65 | 844 | -disable-* | --disable-*) |
81ecdfbb | 845 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 846 | # Reject names that are not valid shell variable names. |
81ecdfbb | 847 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 848 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
849 | ac_useropt_orig=$ac_useropt |
850 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
851 | case $ac_user_opts in | |
852 | *" | |
853 | "enable_$ac_useropt" | |
854 | "*) ;; | |
855 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
856 | ac_unrecognized_sep=', ';; | |
857 | esac | |
858 | eval enable_$ac_useropt=no ;; | |
859 | ||
860 | -docdir | --docdir | --docdi | --doc | --do) | |
861 | ac_prev=docdir ;; | |
862 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
863 | docdir=$ac_optarg ;; | |
864 | ||
865 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
866 | ac_prev=dvidir ;; | |
867 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
868 | dvidir=$ac_optarg ;; | |
d60d9f65 SS |
869 | |
870 | -enable-* | --enable-*) | |
81ecdfbb | 871 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 872 | # Reject names that are not valid shell variable names. |
81ecdfbb | 873 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 874 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
875 | ac_useropt_orig=$ac_useropt |
876 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
877 | case $ac_user_opts in | |
878 | *" | |
879 | "enable_$ac_useropt" | |
880 | "*) ;; | |
881 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
882 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 883 | esac |
81ecdfbb | 884 | eval enable_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
885 | |
886 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
887 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
888 | | --exec | --exe | --ex) | |
889 | ac_prev=exec_prefix ;; | |
890 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
891 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
892 | | --exec=* | --exe=* | --ex=*) | |
9255ee31 | 893 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
894 | |
895 | -gas | --gas | --ga | --g) | |
896 | # Obsolete; use --with-gas. | |
897 | with_gas=yes ;; | |
898 | ||
9255ee31 EZ |
899 | -help | --help | --hel | --he | -h) |
900 | ac_init_help=long ;; | |
901 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
902 | ac_init_help=recursive ;; | |
903 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
904 | ac_init_help=short ;; | |
d60d9f65 SS |
905 | |
906 | -host | --host | --hos | --ho) | |
9255ee31 | 907 | ac_prev=host_alias ;; |
d60d9f65 | 908 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 909 | host_alias=$ac_optarg ;; |
d60d9f65 | 910 | |
81ecdfbb RW |
911 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
912 | ac_prev=htmldir ;; | |
913 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
914 | | --ht=*) | |
915 | htmldir=$ac_optarg ;; | |
916 | ||
d60d9f65 SS |
917 | -includedir | --includedir | --includedi | --included | --include \ |
918 | | --includ | --inclu | --incl | --inc) | |
919 | ac_prev=includedir ;; | |
920 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
921 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
9255ee31 | 922 | includedir=$ac_optarg ;; |
d60d9f65 SS |
923 | |
924 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
925 | ac_prev=infodir ;; | |
926 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 927 | infodir=$ac_optarg ;; |
d60d9f65 SS |
928 | |
929 | -libdir | --libdir | --libdi | --libd) | |
930 | ac_prev=libdir ;; | |
931 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 932 | libdir=$ac_optarg ;; |
d60d9f65 SS |
933 | |
934 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
935 | | --libexe | --libex | --libe) | |
936 | ac_prev=libexecdir ;; | |
937 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
938 | | --libexe=* | --libex=* | --libe=*) | |
9255ee31 | 939 | libexecdir=$ac_optarg ;; |
d60d9f65 | 940 | |
81ecdfbb RW |
941 | -localedir | --localedir | --localedi | --localed | --locale) |
942 | ac_prev=localedir ;; | |
943 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
944 | localedir=$ac_optarg ;; | |
945 | ||
d60d9f65 | 946 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 947 | | --localstate | --localstat | --localsta | --localst | --locals) |
d60d9f65 SS |
948 | ac_prev=localstatedir ;; |
949 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 950 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
9255ee31 | 951 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
952 | |
953 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
954 | ac_prev=mandir ;; | |
955 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 956 | mandir=$ac_optarg ;; |
d60d9f65 SS |
957 | |
958 | -nfp | --nfp | --nf) | |
959 | # Obsolete; use --without-fp. | |
960 | with_fp=no ;; | |
961 | ||
962 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
25ed0b71 | 963 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
964 | no_create=yes ;; |
965 | ||
966 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
967 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
968 | no_recursion=yes ;; | |
969 | ||
970 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
971 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
972 | | --oldin | --oldi | --old | --ol | --o) | |
973 | ac_prev=oldincludedir ;; | |
974 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
975 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
976 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
9255ee31 | 977 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
978 | |
979 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
980 | ac_prev=prefix ;; | |
981 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 982 | prefix=$ac_optarg ;; |
d60d9f65 SS |
983 | |
984 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
985 | | --program-pre | --program-pr | --program-p) | |
986 | ac_prev=program_prefix ;; | |
987 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
988 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
9255ee31 | 989 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
990 | |
991 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
992 | | --program-suf | --program-su | --program-s) | |
993 | ac_prev=program_suffix ;; | |
994 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
995 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
9255ee31 | 996 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
997 | |
998 | -program-transform-name | --program-transform-name \ | |
999 | | --program-transform-nam | --program-transform-na \ | |
1000 | | --program-transform-n | --program-transform- \ | |
1001 | | --program-transform | --program-transfor \ | |
1002 | | --program-transfo | --program-transf \ | |
1003 | | --program-trans | --program-tran \ | |
1004 | | --progr-tra | --program-tr | --program-t) | |
1005 | ac_prev=program_transform_name ;; | |
1006 | -program-transform-name=* | --program-transform-name=* \ | |
1007 | | --program-transform-nam=* | --program-transform-na=* \ | |
1008 | | --program-transform-n=* | --program-transform-=* \ | |
1009 | | --program-transform=* | --program-transfor=* \ | |
1010 | | --program-transfo=* | --program-transf=* \ | |
1011 | | --program-trans=* | --program-tran=* \ | |
1012 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
9255ee31 | 1013 | program_transform_name=$ac_optarg ;; |
d60d9f65 | 1014 | |
81ecdfbb RW |
1015 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1016 | ac_prev=pdfdir ;; | |
1017 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1018 | pdfdir=$ac_optarg ;; | |
1019 | ||
1020 | -psdir | --psdir | --psdi | --psd | --ps) | |
1021 | ac_prev=psdir ;; | |
1022 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1023 | psdir=$ac_optarg ;; | |
1024 | ||
d60d9f65 SS |
1025 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1026 | | -silent | --silent | --silen | --sile | --sil) | |
1027 | silent=yes ;; | |
1028 | ||
1029 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1030 | ac_prev=sbindir ;; | |
1031 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1032 | | --sbi=* | --sb=*) | |
9255ee31 | 1033 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
1034 | |
1035 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1036 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1037 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1038 | | --sha | --sh) | |
1039 | ac_prev=sharedstatedir ;; | |
1040 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1041 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1042 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1043 | | --sha=* | --sh=*) | |
9255ee31 | 1044 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
1045 | |
1046 | -site | --site | --sit) | |
1047 | ac_prev=site ;; | |
1048 | -site=* | --site=* | --sit=*) | |
9255ee31 | 1049 | site=$ac_optarg ;; |
d60d9f65 SS |
1050 | |
1051 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1052 | ac_prev=srcdir ;; | |
1053 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 1054 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
1055 | |
1056 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1057 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1058 | ac_prev=sysconfdir ;; | |
1059 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1060 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
9255ee31 | 1061 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
1062 | |
1063 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 1064 | ac_prev=target_alias ;; |
d60d9f65 | 1065 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 1066 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
1067 | |
1068 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1069 | verbose=yes ;; | |
1070 | ||
9255ee31 EZ |
1071 | -version | --version | --versio | --versi | --vers | -V) |
1072 | ac_init_version=: ;; | |
d60d9f65 SS |
1073 | |
1074 | -with-* | --with-*) | |
81ecdfbb | 1075 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 1076 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 1078 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1079 | ac_useropt_orig=$ac_useropt |
1080 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1081 | case $ac_user_opts in | |
1082 | *" | |
1083 | "with_$ac_useropt" | |
1084 | "*) ;; | |
1085 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1086 | ac_unrecognized_sep=', ';; | |
d60d9f65 | 1087 | esac |
81ecdfbb | 1088 | eval with_$ac_useropt=\$ac_optarg ;; |
d60d9f65 SS |
1089 | |
1090 | -without-* | --without-*) | |
81ecdfbb | 1091 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 1092 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1093 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 1094 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1095 | ac_useropt_orig=$ac_useropt |
1096 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1097 | case $ac_user_opts in | |
1098 | *" | |
1099 | "with_$ac_useropt" | |
1100 | "*) ;; | |
1101 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1102 | ac_unrecognized_sep=', ';; | |
1103 | esac | |
1104 | eval with_$ac_useropt=no ;; | |
d60d9f65 SS |
1105 | |
1106 | --x) | |
1107 | # Obsolete; use --with-x. | |
1108 | with_x=yes ;; | |
1109 | ||
1110 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1111 | | --x-incl | --x-inc | --x-in | --x-i) | |
1112 | ac_prev=x_includes ;; | |
1113 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1114 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
9255ee31 | 1115 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
1116 | |
1117 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1118 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1119 | ac_prev=x_libraries ;; | |
1120 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1121 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
9255ee31 | 1122 | x_libraries=$ac_optarg ;; |
d60d9f65 | 1123 | |
63a9e923 SM |
1124 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1125 | Try \`$0 --help' for more information" | |
d60d9f65 SS |
1126 | ;; |
1127 | ||
9255ee31 EZ |
1128 | *=*) |
1129 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1130 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1131 | case $ac_envvar in #( |
1132 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
63a9e923 | 1133 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1134 | esac |
1135 | eval $ac_envvar=\$ac_optarg | |
9255ee31 EZ |
1136 | export $ac_envvar ;; |
1137 | ||
d60d9f65 | 1138 | *) |
9255ee31 | 1139 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1140 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
9255ee31 | 1141 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1142 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
63a9e923 | 1143 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d60d9f65 SS |
1144 | ;; |
1145 | ||
1146 | esac | |
1147 | done | |
1148 | ||
1149 | if test -n "$ac_prev"; then | |
9255ee31 | 1150 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
63a9e923 | 1151 | as_fn_error $? "missing argument to $ac_option" |
d60d9f65 | 1152 | fi |
d60d9f65 | 1153 | |
81ecdfbb RW |
1154 | if test -n "$ac_unrecognized_opts"; then |
1155 | case $enable_option_checking in | |
1156 | no) ;; | |
63a9e923 | 1157 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1158 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
9255ee31 | 1159 | esac |
81ecdfbb | 1160 | fi |
d60d9f65 | 1161 | |
81ecdfbb RW |
1162 | # Check all directory arguments for consistency. |
1163 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1164 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1165 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1166 | libdir localedir mandir | |
d60d9f65 | 1167 | do |
81ecdfbb RW |
1168 | eval ac_val=\$$ac_var |
1169 | # Remove trailing slashes. | |
1170 | case $ac_val in | |
1171 | */ ) | |
1172 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1173 | eval $ac_var=\$ac_val;; | |
1174 | esac | |
1175 | # Be sure to have absolute directory names. | |
9255ee31 | 1176 | case $ac_val in |
81ecdfbb RW |
1177 | [\\/$]* | ?:[\\/]* ) continue;; |
1178 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d60d9f65 | 1179 | esac |
63a9e923 | 1180 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d60d9f65 SS |
1181 | done |
1182 | ||
9255ee31 EZ |
1183 | # There might be people who depend on the old broken behavior: `$host' |
1184 | # used to hold the argument of --host etc. | |
25ed0b71 | 1185 | # FIXME: To remove some day. |
9255ee31 EZ |
1186 | build=$build_alias |
1187 | host=$host_alias | |
1188 | target=$target_alias | |
1189 | ||
25ed0b71 | 1190 | # FIXME: To remove some day. |
9255ee31 EZ |
1191 | if test "x$host_alias" != x; then |
1192 | if test "x$build_alias" = x; then | |
1193 | cross_compiling=maybe | |
9255ee31 EZ |
1194 | elif test "x$build_alias" != "x$host_alias"; then |
1195 | cross_compiling=yes | |
1196 | fi | |
1197 | fi | |
d60d9f65 | 1198 | |
9255ee31 EZ |
1199 | ac_tool_prefix= |
1200 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 1201 | |
9255ee31 | 1202 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 1203 | |
25ed0b71 | 1204 | |
81ecdfbb RW |
1205 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1206 | ac_ls_di=`ls -di .` && | |
1207 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
63a9e923 | 1208 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
63a9e923 | 1210 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1211 | |
1212 | ||
d60d9f65 SS |
1213 | # Find the source files, if location was not specified. |
1214 | if test -z "$srcdir"; then | |
1215 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1216 | # Try the directory containing this script, then the parent directory. |
1217 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1218 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1219 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1220 | X"$as_myself" : 'X\(//\)$' \| \ | |
1221 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1222 | $as_echo X"$as_myself" | | |
1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\/\)[^/].*/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | /^X\(\/\/\)$/{ | |
1232 | s//\1/ | |
1233 | q | |
1234 | } | |
1235 | /^X\(\/\).*/{ | |
1236 | s//\1/ | |
1237 | q | |
1238 | } | |
1239 | s/.*/./; q'` | |
d60d9f65 | 1240 | srcdir=$ac_confdir |
81ecdfbb | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
d60d9f65 SS |
1242 | srcdir=.. |
1243 | fi | |
1244 | else | |
1245 | ac_srcdir_defaulted=no | |
1246 | fi | |
81ecdfbb RW |
1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
63a9e923 | 1249 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1250 | fi |
1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1252 | ac_abs_confdir=`( | |
63a9e923 | 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1254 | pwd)` |
1255 | # When building in place, set srcdir=. | |
1256 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1257 | srcdir=. | |
1258 | fi | |
1259 | # Remove unnecessary trailing slashes from srcdir. | |
1260 | # Double slashes in file names in object file debugging info | |
1261 | # mess up M-x gdb in Emacs. | |
1262 | case $srcdir in | |
1263 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1264 | esac | |
1265 | for ac_var in $ac_precious_vars; do | |
1266 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1267 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1268 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1269 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1270 | done | |
d60d9f65 | 1271 | |
9255ee31 EZ |
1272 | # |
1273 | # Report the --help message. | |
1274 | # | |
1275 | if test "$ac_init_help" = "long"; then | |
1276 | # Omit some internal or obsolete options to make the list less imposing. | |
1277 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 1278 | cat <<_ACEOF |
5836a818 | 1279 | \`configure' configures readline 6.2 to adapt to many kinds of systems. |
d60d9f65 | 1280 | |
9255ee31 | 1281 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 1282 | |
9255ee31 EZ |
1283 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1284 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 1285 | |
9255ee31 | 1286 | Defaults for the options are specified in brackets. |
d60d9f65 | 1287 | |
9255ee31 EZ |
1288 | Configuration: |
1289 | -h, --help display this help and exit | |
1290 | --help=short display options specific to this package | |
1291 | --help=recursive display the short help of all the included packages | |
1292 | -V, --version display version information and exit | |
63a9e923 | 1293 | -q, --quiet, --silent do not print \`checking ...' messages |
9255ee31 EZ |
1294 | --cache-file=FILE cache test results in FILE [disabled] |
1295 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1296 | -n, --no-create do not create output files | |
1297 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 1298 | |
9255ee31 EZ |
1299 | Installation directories: |
1300 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1301 | [$ac_default_prefix] |
9255ee31 | 1302 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1303 | [PREFIX] |
9255ee31 EZ |
1304 | |
1305 | By default, \`make install' will install all the files in | |
1306 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1307 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1308 | for instance \`--prefix=\$HOME'. | |
1309 | ||
1310 | For better control, use the options below. | |
1311 | ||
1312 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1313 | --bindir=DIR user executables [EPREFIX/bin] |
1314 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1315 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1316 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1317 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1318 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1319 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1320 | --includedir=DIR C header files [PREFIX/include] | |
1321 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1322 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1323 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1324 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1325 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1326 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1327 | --docdir=DIR documentation root [DATAROOTDIR/doc/readline] | |
1328 | --htmldir=DIR html documentation [DOCDIR] | |
1329 | --dvidir=DIR dvi documentation [DOCDIR] | |
1330 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1331 | --psdir=DIR ps documentation [DOCDIR] | |
25ed0b71 | 1332 | _ACEOF |
d60d9f65 | 1333 | |
25ed0b71 | 1334 | cat <<\_ACEOF |
d60d9f65 | 1335 | |
9255ee31 EZ |
1336 | System types: |
1337 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
1338 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1339 | _ACEOF | |
d60d9f65 | 1340 | fi |
d60d9f65 | 1341 | |
9255ee31 EZ |
1342 | if test -n "$ac_init_help"; then |
1343 | case $ac_init_help in | |
5836a818 | 1344 | short | recursive ) echo "Configuration of readline 6.2:";; |
9255ee31 | 1345 | esac |
25ed0b71 | 1346 | cat <<\_ACEOF |
d60d9f65 | 1347 | |
9255ee31 | 1348 | Optional Features: |
81ecdfbb | 1349 | --disable-option-checking ignore unrecognized --enable/--with options |
9255ee31 EZ |
1350 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1351 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5bdf8622 | 1352 | --enable-multibyte enable multibyte characters if OS supports them |
63a9e923 | 1353 | --enable-static build static libraries [[default=YES]] |
cc88a640 | 1354 | --disable-largefile omit support for large files |
d60d9f65 | 1355 | |
9255ee31 EZ |
1356 | Optional Packages: |
1357 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1358 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1359 | --with-curses use the curses library instead of the termcap | |
1360 | library | |
5bdf8622 | 1361 | --with-purify configure to postprocess with purify |
9255ee31 EZ |
1362 | |
1363 | Some influential environment variables: | |
1364 | CC C compiler command | |
1365 | CFLAGS C compiler flags | |
1366 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1367 | nonstandard directory <lib dir> | |
81ecdfbb | 1368 | LIBS libraries to pass to the linker, e.g. -l<library> |
63a9e923 | 1369 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1370 | you have headers in a nonstandard directory <include dir> |
9255ee31 EZ |
1371 | CPP C preprocessor |
1372 | ||
1373 | Use these variables to override the choices made by `configure' or to help | |
1374 | it to find libraries and programs with nonstandard names/locations. | |
1375 | ||
1376 | Report bugs to <bug-readline@gnu.org>. | |
25ed0b71 | 1377 | _ACEOF |
81ecdfbb | 1378 | ac_status=$? |
9255ee31 | 1379 | fi |
d60d9f65 | 1380 | |
9255ee31 EZ |
1381 | if test "$ac_init_help" = "recursive"; then |
1382 | # If there are subdirs, report their specific --help. | |
25ed0b71 | 1383 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1384 | test -d "$ac_dir" || |
1385 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1386 | continue | |
25ed0b71 KW |
1387 | ac_builddir=. |
1388 | ||
81ecdfbb RW |
1389 | case "$ac_dir" in |
1390 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1391 | *) | |
1392 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1393 | # A ".." for each directory in $ac_dir_suffix. | |
1394 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1395 | case $ac_top_builddir_sub in | |
1396 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1397 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1398 | esac ;; | |
1399 | esac | |
1400 | ac_abs_top_builddir=$ac_pwd | |
1401 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1402 | # for backward compatibility: | |
1403 | ac_top_builddir=$ac_top_build_prefix | |
d60d9f65 | 1404 | |
25ed0b71 | 1405 | case $srcdir in |
81ecdfbb | 1406 | .) # We are building in place. |
25ed0b71 | 1407 | ac_srcdir=. |
81ecdfbb RW |
1408 | ac_top_srcdir=$ac_top_builddir_sub |
1409 | ac_abs_top_srcdir=$ac_pwd ;; | |
1410 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 1411 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1412 | ac_top_srcdir=$srcdir |
1413 | ac_abs_top_srcdir=$srcdir ;; | |
1414 | *) # Relative name. | |
1415 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1416 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1417 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
430b7832 | 1418 | esac |
81ecdfbb RW |
1419 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1420 | ||
1421 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1422 | # Check for guested configure. | |
1423 | if test -f "$ac_srcdir/configure.gnu"; then | |
1424 | echo && | |
1425 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1426 | elif test -f "$ac_srcdir/configure"; then | |
1427 | echo && | |
1428 | $SHELL "$ac_srcdir/configure" --help=recursive | |
9255ee31 | 1429 | else |
81ecdfbb RW |
1430 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1431 | fi || ac_status=$? | |
1432 | cd "$ac_pwd" || { ac_status=$?; break; } | |
9255ee31 | 1433 | done |
d60d9f65 SS |
1434 | fi |
1435 | ||
81ecdfbb | 1436 | test -n "$ac_init_help" && exit $ac_status |
9255ee31 | 1437 | if $ac_init_version; then |
25ed0b71 | 1438 | cat <<\_ACEOF |
5836a818 | 1439 | readline configure 6.2 |
63a9e923 | 1440 | generated by GNU Autoconf 2.69 |
d60d9f65 | 1441 | |
63a9e923 | 1442 | Copyright (C) 2012 Free Software Foundation, Inc. |
9255ee31 EZ |
1443 | This configure script is free software; the Free Software Foundation |
1444 | gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 | 1445 | _ACEOF |
81ecdfbb | 1446 | exit |
d60d9f65 SS |
1447 | fi |
1448 | ||
81ecdfbb RW |
1449 | ## ------------------------ ## |
1450 | ## Autoconf initialization. ## | |
1451 | ## ------------------------ ## | |
9255ee31 | 1452 | |
81ecdfbb RW |
1453 | # ac_fn_c_try_compile LINENO |
1454 | # -------------------------- | |
1455 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1456 | ac_fn_c_try_compile () | |
9255ee31 | 1457 | { |
81ecdfbb RW |
1458 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1459 | rm -f conftest.$ac_objext | |
1460 | if { { ac_try="$ac_compile" | |
1461 | case "(($ac_try" in | |
1462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1463 | *) ac_try_echo=$ac_try;; | |
1464 | esac | |
1465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1466 | $as_echo "$ac_try_echo"; } >&5 | |
1467 | (eval "$ac_compile") 2>conftest.err | |
1468 | ac_status=$? | |
1469 | if test -s conftest.err; then | |
1470 | grep -v '^ *+' conftest.err >conftest.er1 | |
1471 | cat conftest.er1 >&5 | |
1472 | mv -f conftest.er1 conftest.err | |
1473 | fi | |
1474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1475 | test $ac_status = 0; } && { | |
1476 | test -z "$ac_c_werror_flag" || | |
1477 | test ! -s conftest.err | |
1478 | } && test -s conftest.$ac_objext; then : | |
1479 | ac_retval=0 | |
1480 | else | |
1481 | $as_echo "$as_me: failed program was:" >&5 | |
1482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1483 | |
81ecdfbb RW |
1484 | ac_retval=1 |
1485 | fi | |
63a9e923 SM |
1486 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1487 | as_fn_set_status $ac_retval | |
9255ee31 | 1488 | |
81ecdfbb | 1489 | } # ac_fn_c_try_compile |
9255ee31 | 1490 | |
81ecdfbb RW |
1491 | # ac_fn_c_try_cpp LINENO |
1492 | # ---------------------- | |
1493 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1494 | ac_fn_c_try_cpp () | |
1495 | { | |
1496 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1497 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1498 | case "(($ac_try" in | |
1499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1500 | *) ac_try_echo=$ac_try;; | |
1501 | esac | |
1502 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1503 | $as_echo "$ac_try_echo"; } >&5 | |
1504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1505 | ac_status=$? | |
1506 | if test -s conftest.err; then | |
1507 | grep -v '^ *+' conftest.err >conftest.er1 | |
1508 | cat conftest.er1 >&5 | |
1509 | mv -f conftest.er1 conftest.err | |
1510 | fi | |
1511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
63a9e923 | 1512 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1514 | test ! -s conftest.err | |
1515 | }; then : | |
1516 | ac_retval=0 | |
1517 | else | |
1518 | $as_echo "$as_me: failed program was:" >&5 | |
1519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9255ee31 | 1520 | |
81ecdfbb RW |
1521 | ac_retval=1 |
1522 | fi | |
63a9e923 SM |
1523 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1524 | as_fn_set_status $ac_retval | |
25ed0b71 | 1525 | |
81ecdfbb | 1526 | } # ac_fn_c_try_cpp |
25ed0b71 | 1527 | |
81ecdfbb RW |
1528 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1529 | # ------------------------------------------------------- | |
1530 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1531 | # the include files in INCLUDES and setting the cache variable VAR | |
1532 | # accordingly. | |
1533 | ac_fn_c_check_header_mongrel () | |
1534 | { | |
1535 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
63a9e923 | 1536 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1538 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1539 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1540 | $as_echo_n "(cached) " >&6 |
1541 | fi | |
1542 | eval ac_res=\$$3 | |
1543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1544 | $as_echo "$ac_res" >&6; } | |
1545 | else | |
1546 | # Is the header compilable? | |
1547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1548 | $as_echo_n "checking $2 usability... " >&6; } | |
1549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1550 | /* end confdefs.h. */ | |
1551 | $4 | |
1552 | #include <$2> | |
1553 | _ACEOF | |
1554 | if ac_fn_c_try_compile "$LINENO"; then : | |
1555 | ac_header_compiler=yes | |
1556 | else | |
1557 | ac_header_compiler=no | |
1558 | fi | |
1559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1561 | $as_echo "$ac_header_compiler" >&6; } | |
1562 | ||
1563 | # Is the header present? | |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1565 | $as_echo_n "checking $2 presence... " >&6; } | |
1566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1567 | /* end confdefs.h. */ | |
1568 | #include <$2> | |
1569 | _ACEOF | |
1570 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1571 | ac_header_preproc=yes | |
1572 | else | |
1573 | ac_header_preproc=no | |
1574 | fi | |
63a9e923 | 1575 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1577 | $as_echo "$ac_header_preproc" >&6; } | |
1578 | ||
1579 | # So? What about this header? | |
1580 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1581 | yes:no: ) | |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1583 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1585 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1586 | ;; | |
1587 | no:yes:* ) | |
1588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1589 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1591 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1593 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1595 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1597 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
63a9e923 | 1598 | ( $as_echo "## ----------------------------------- ## |
81ecdfbb | 1599 | ## Report this to bug-readline@gnu.org ## |
63a9e923 | 1600 | ## ----------------------------------- ##" |
81ecdfbb RW |
1601 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1602 | ;; | |
1603 | esac | |
1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1605 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1606 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1607 | $as_echo_n "(cached) " >&6 |
1608 | else | |
1609 | eval "$3=\$ac_header_compiler" | |
1610 | fi | |
1611 | eval ac_res=\$$3 | |
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1613 | $as_echo "$ac_res" >&6; } | |
1614 | fi | |
63a9e923 | 1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1616 | |
1617 | } # ac_fn_c_check_header_mongrel | |
1618 | ||
1619 | # ac_fn_c_try_run LINENO | |
1620 | # ---------------------- | |
1621 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1622 | # that executables *can* be run. | |
1623 | ac_fn_c_try_run () | |
1624 | { | |
1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1626 | if { { ac_try="$ac_link" | |
1627 | case "(($ac_try" in | |
1628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1629 | *) ac_try_echo=$ac_try;; | |
1630 | esac | |
1631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1632 | $as_echo "$ac_try_echo"; } >&5 | |
1633 | (eval "$ac_link") 2>&5 | |
1634 | ac_status=$? | |
1635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1636 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1637 | { { case "(($ac_try" in | |
1638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1639 | *) ac_try_echo=$ac_try;; | |
1640 | esac | |
1641 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1642 | $as_echo "$ac_try_echo"; } >&5 | |
1643 | (eval "$ac_try") 2>&5 | |
1644 | ac_status=$? | |
1645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1646 | test $ac_status = 0; }; }; then : | |
1647 | ac_retval=0 | |
1648 | else | |
1649 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1650 | $as_echo "$as_me: failed program was:" >&5 | |
1651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1652 | ||
1653 | ac_retval=$ac_status | |
1654 | fi | |
1655 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
63a9e923 SM |
1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1657 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1658 | |
1659 | } # ac_fn_c_try_run | |
1660 | ||
1661 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1662 | # ------------------------------------------------------- | |
1663 | # Tests whether HEADER exists and can be compiled using the include files in | |
1664 | # INCLUDES, setting the cache variable VAR accordingly. | |
1665 | ac_fn_c_check_header_compile () | |
1666 | { | |
1667 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1669 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1670 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1671 | $as_echo_n "(cached) " >&6 |
1672 | else | |
1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1674 | /* end confdefs.h. */ | |
1675 | $4 | |
1676 | #include <$2> | |
1677 | _ACEOF | |
1678 | if ac_fn_c_try_compile "$LINENO"; then : | |
1679 | eval "$3=yes" | |
1680 | else | |
1681 | eval "$3=no" | |
1682 | fi | |
1683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1684 | fi | |
1685 | eval ac_res=\$$3 | |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1687 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1689 | |
1690 | } # ac_fn_c_check_header_compile | |
1691 | ||
1692 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1693 | # ------------------------------------------- | |
1694 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1695 | # variable VAR accordingly. | |
1696 | ac_fn_c_check_type () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1700 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1701 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1702 | $as_echo_n "(cached) " >&6 |
1703 | else | |
1704 | eval "$3=no" | |
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1706 | /* end confdefs.h. */ | |
1707 | $4 | |
1708 | int | |
1709 | main () | |
1710 | { | |
1711 | if (sizeof ($2)) | |
1712 | return 0; | |
1713 | ; | |
1714 | return 0; | |
1715 | } | |
1716 | _ACEOF | |
1717 | if ac_fn_c_try_compile "$LINENO"; then : | |
1718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1719 | /* end confdefs.h. */ | |
1720 | $4 | |
1721 | int | |
1722 | main () | |
1723 | { | |
1724 | if (sizeof (($2))) | |
1725 | return 0; | |
1726 | ; | |
1727 | return 0; | |
1728 | } | |
1729 | _ACEOF | |
1730 | if ac_fn_c_try_compile "$LINENO"; then : | |
1731 | ||
1732 | else | |
1733 | eval "$3=yes" | |
1734 | fi | |
1735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1736 | fi | |
1737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1738 | fi | |
1739 | eval ac_res=\$$3 | |
1740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1741 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1743 | |
1744 | } # ac_fn_c_check_type | |
1745 | ||
1746 | # ac_fn_c_try_link LINENO | |
1747 | # ----------------------- | |
1748 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1749 | ac_fn_c_try_link () | |
1750 | { | |
1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1753 | if { { ac_try="$ac_link" | |
1754 | case "(($ac_try" in | |
1755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1756 | *) ac_try_echo=$ac_try;; | |
1757 | esac | |
1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1759 | $as_echo "$ac_try_echo"; } >&5 | |
1760 | (eval "$ac_link") 2>conftest.err | |
1761 | ac_status=$? | |
1762 | if test -s conftest.err; then | |
1763 | grep -v '^ *+' conftest.err >conftest.er1 | |
1764 | cat conftest.er1 >&5 | |
1765 | mv -f conftest.er1 conftest.err | |
1766 | fi | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1768 | test $ac_status = 0; } && { | |
1769 | test -z "$ac_c_werror_flag" || | |
1770 | test ! -s conftest.err | |
1771 | } && test -s conftest$ac_exeext && { | |
1772 | test "$cross_compiling" = yes || | |
63a9e923 | 1773 | test -x conftest$ac_exeext |
81ecdfbb RW |
1774 | }; then : |
1775 | ac_retval=0 | |
1776 | else | |
1777 | $as_echo "$as_me: failed program was:" >&5 | |
1778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1779 | ||
1780 | ac_retval=1 | |
1781 | fi | |
1782 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1783 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1784 | # interfere with the next link command; also delete a directory that is | |
1785 | # left behind by Apple's compiler. We do this before executing the actions. | |
1786 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
63a9e923 SM |
1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1788 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1789 | |
1790 | } # ac_fn_c_try_link | |
1791 | ||
1792 | # ac_fn_c_check_func LINENO FUNC VAR | |
1793 | # ---------------------------------- | |
1794 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1795 | ac_fn_c_check_func () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1799 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1800 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1801 | $as_echo_n "(cached) " >&6 |
1802 | else | |
1803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1804 | /* end confdefs.h. */ | |
1805 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1807 | #define $2 innocuous_$2 | |
1808 | ||
1809 | /* System header to define __stub macros and hopefully few prototypes, | |
1810 | which can conflict with char $2 (); below. | |
1811 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1812 | <limits.h> exists even on freestanding compilers. */ | |
1813 | ||
1814 | #ifdef __STDC__ | |
1815 | # include <limits.h> | |
1816 | #else | |
1817 | # include <assert.h> | |
1818 | #endif | |
1819 | ||
1820 | #undef $2 | |
1821 | ||
1822 | /* Override any GCC internal prototype to avoid an error. | |
1823 | Use char because int might match the return type of a GCC | |
1824 | builtin and then its argument prototype would still apply. */ | |
1825 | #ifdef __cplusplus | |
1826 | extern "C" | |
1827 | #endif | |
1828 | char $2 (); | |
1829 | /* The GNU C library defines this for functions which it implements | |
1830 | to always fail with ENOSYS. Some functions are actually named | |
1831 | something starting with __ and the normal name is an alias. */ | |
1832 | #if defined __stub_$2 || defined __stub___$2 | |
1833 | choke me | |
1834 | #endif | |
1835 | ||
1836 | int | |
1837 | main () | |
1838 | { | |
1839 | return $2 (); | |
1840 | ; | |
1841 | return 0; | |
1842 | } | |
1843 | _ACEOF | |
1844 | if ac_fn_c_try_link "$LINENO"; then : | |
1845 | eval "$3=yes" | |
1846 | else | |
1847 | eval "$3=no" | |
1848 | fi | |
1849 | rm -f core conftest.err conftest.$ac_objext \ | |
1850 | conftest$ac_exeext conftest.$ac_ext | |
1851 | fi | |
1852 | eval ac_res=\$$3 | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1854 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1855 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1856 | |
1857 | } # ac_fn_c_check_func | |
1858 | cat >config.log <<_ACEOF | |
1859 | This file contains any messages produced by compilers while | |
1860 | running configure, to aid debugging if configure makes a mistake. | |
1861 | ||
5836a818 | 1862 | It was created by readline $as_me 6.2, which was |
63a9e923 | 1863 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1864 | |
1865 | $ $0 $@ | |
1866 | ||
1867 | _ACEOF | |
1868 | exec 5>>config.log | |
1869 | { | |
1870 | cat <<_ASUNAME | |
1871 | ## --------- ## | |
1872 | ## Platform. ## | |
1873 | ## --------- ## | |
1874 | ||
1875 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1876 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1877 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1878 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1879 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1880 | ||
1881 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1882 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1883 | ||
1884 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1885 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1886 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1887 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1888 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1889 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1890 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1891 | ||
1892 | _ASUNAME | |
1893 | ||
1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1895 | for as_dir in $PATH | |
1896 | do | |
1897 | IFS=$as_save_IFS | |
1898 | test -z "$as_dir" && as_dir=. | |
1899 | $as_echo "PATH: $as_dir" | |
1900 | done | |
1901 | IFS=$as_save_IFS | |
1902 | ||
1903 | } >&5 | |
9255ee31 | 1904 | |
25ed0b71 KW |
1905 | cat >&5 <<_ACEOF |
1906 | ||
1907 | ||
1908 | ## ----------- ## | |
1909 | ## Core tests. ## | |
1910 | ## ----------- ## | |
1911 | ||
1912 | _ACEOF | |
9255ee31 | 1913 | |
9255ee31 EZ |
1914 | |
1915 | # Keep a trace of the command line. | |
1916 | # Strip out --no-create and --no-recursion so they do not pile up. | |
25ed0b71 | 1917 | # Strip out --silent because we don't want to record it for future runs. |
9255ee31 | 1918 | # Also quote any args containing shell meta-characters. |
25ed0b71 | 1919 | # Make two passes to allow for proper duplicate-argument suppression. |
9255ee31 | 1920 | ac_configure_args= |
25ed0b71 KW |
1921 | ac_configure_args0= |
1922 | ac_configure_args1= | |
25ed0b71 KW |
1923 | ac_must_keep_next=false |
1924 | for ac_pass in 1 2 | |
9255ee31 | 1925 | do |
25ed0b71 KW |
1926 | for ac_arg |
1927 | do | |
1928 | case $ac_arg in | |
1929 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1930 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1931 | | -silent | --silent | --silen | --sile | --sil) | |
1932 | continue ;; | |
81ecdfbb RW |
1933 | *\'*) |
1934 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
25ed0b71 KW |
1935 | esac |
1936 | case $ac_pass in | |
81ecdfbb | 1937 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
25ed0b71 | 1938 | 2) |
81ecdfbb | 1939 | as_fn_append ac_configure_args1 " '$ac_arg'" |
25ed0b71 | 1940 | if test $ac_must_keep_next = true; then |
430b7832 | 1941 | ac_must_keep_next=false # Got value, back to normal. |
25ed0b71 | 1942 | else |
430b7832 MM |
1943 | case $ac_arg in |
1944 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1945 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1946 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1947 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1948 | case "$ac_configure_args0 " in | |
1949 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1950 | esac | |
1951 | ;; | |
1952 | -* ) ac_must_keep_next=true ;; | |
1953 | esac | |
25ed0b71 | 1954 | fi |
81ecdfbb | 1955 | as_fn_append ac_configure_args " '$ac_arg'" |
25ed0b71 KW |
1956 | ;; |
1957 | esac | |
1958 | done | |
9255ee31 | 1959 | done |
81ecdfbb RW |
1960 | { ac_configure_args0=; unset ac_configure_args0;} |
1961 | { ac_configure_args1=; unset ac_configure_args1;} | |
9255ee31 EZ |
1962 | |
1963 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1964 | # config.log. We remove comments because anyway the quotes in there | |
1965 | # would cause problems or look ugly. | |
81ecdfbb RW |
1966 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1967 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
9255ee31 EZ |
1968 | trap 'exit_status=$? |
1969 | # Save into config.log some information that might help in debugging. | |
25ed0b71 KW |
1970 | { |
1971 | echo | |
1972 | ||
63a9e923 | 1973 | $as_echo "## ---------------- ## |
25ed0b71 | 1974 | ## Cache variables. ## |
63a9e923 | 1975 | ## ---------------- ##" |
25ed0b71 KW |
1976 | echo |
1977 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1978 | ( |
1979 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1980 | eval ac_val=\$$ac_var | |
1981 | case $ac_val in #( | |
1982 | *${as_nl}*) | |
1983 | case $ac_var in #( | |
1984 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1985 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1986 | esac | |
1987 | case $ac_var in #( | |
1988 | _ | IFS | as_nl) ;; #( | |
1989 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1990 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1991 | esac ;; | |
1992 | esac | |
1993 | done | |
9255ee31 | 1994 | (set) 2>&1 | |
81ecdfbb RW |
1995 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1996 | *${as_nl}ac_space=\ *) | |
9255ee31 | 1997 | sed -n \ |
81ecdfbb RW |
1998 | "s/'\''/'\''\\\\'\'''\''/g; |
1999 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2000 | ;; #( | |
9255ee31 | 2001 | *) |
81ecdfbb | 2002 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 2003 | ;; |
81ecdfbb RW |
2004 | esac | |
2005 | sort | |
2006 | ) | |
25ed0b71 KW |
2007 | echo |
2008 | ||
63a9e923 | 2009 | $as_echo "## ----------------- ## |
25ed0b71 | 2010 | ## Output variables. ## |
63a9e923 | 2011 | ## ----------------- ##" |
25ed0b71 KW |
2012 | echo |
2013 | for ac_var in $ac_subst_vars | |
2014 | do | |
81ecdfbb RW |
2015 | eval ac_val=\$$ac_var |
2016 | case $ac_val in | |
2017 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2018 | esac | |
2019 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
2020 | done | sort |
2021 | echo | |
2022 | ||
2023 | if test -n "$ac_subst_files"; then | |
63a9e923 | 2024 | $as_echo "## ------------------- ## |
81ecdfbb | 2025 | ## File substitutions. ## |
63a9e923 | 2026 | ## ------------------- ##" |
25ed0b71 KW |
2027 | echo |
2028 | for ac_var in $ac_subst_files | |
2029 | do | |
81ecdfbb RW |
2030 | eval ac_val=\$$ac_var |
2031 | case $ac_val in | |
2032 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2033 | esac | |
2034 | $as_echo "$ac_var='\''$ac_val'\''" | |
25ed0b71 KW |
2035 | done | sort |
2036 | echo | |
2037 | fi | |
2038 | ||
2039 | if test -s confdefs.h; then | |
63a9e923 | 2040 | $as_echo "## ----------- ## |
25ed0b71 | 2041 | ## confdefs.h. ## |
63a9e923 | 2042 | ## ----------- ##" |
25ed0b71 | 2043 | echo |
81ecdfbb | 2044 | cat confdefs.h |
25ed0b71 KW |
2045 | echo |
2046 | fi | |
2047 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2048 | $as_echo "$as_me: caught signal $ac_signal" |
2049 | $as_echo "$as_me: exit $exit_status" | |
25ed0b71 | 2050 | } >&5 |
81ecdfbb RW |
2051 | rm -f core *.core core.conftest.* && |
2052 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
9255ee31 | 2053 | exit $exit_status |
81ecdfbb | 2054 | ' 0 |
9255ee31 | 2055 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2056 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
9255ee31 EZ |
2057 | done |
2058 | ac_signal=0 | |
2059 | ||
2060 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2061 | rm -f -r conftest* confdefs.h |
2062 | ||
2063 | $as_echo "/* confdefs.h */" > confdefs.h | |
9255ee31 | 2064 | |
25ed0b71 KW |
2065 | # Predefined preprocessor variables. |
2066 | ||
2067 | cat >>confdefs.h <<_ACEOF | |
2068 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2069 | _ACEOF | |
2070 | ||
25ed0b71 KW |
2071 | cat >>confdefs.h <<_ACEOF |
2072 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2073 | _ACEOF | |
2074 | ||
25ed0b71 KW |
2075 | cat >>confdefs.h <<_ACEOF |
2076 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2077 | _ACEOF | |
2078 | ||
25ed0b71 KW |
2079 | cat >>confdefs.h <<_ACEOF |
2080 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2081 | _ACEOF | |
2082 | ||
25ed0b71 KW |
2083 | cat >>confdefs.h <<_ACEOF |
2084 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2085 | _ACEOF | |
2086 | ||
81ecdfbb RW |
2087 | cat >>confdefs.h <<_ACEOF |
2088 | #define PACKAGE_URL "$PACKAGE_URL" | |
2089 | _ACEOF | |
2090 | ||
25ed0b71 | 2091 | |
9255ee31 | 2092 | # Let the site file select an alternate cache file if it wants to. |
81ecdfbb RW |
2093 | # Prefer an explicitly selected file to automatically selected ones. |
2094 | ac_site_file1=NONE | |
2095 | ac_site_file2=NONE | |
2096 | if test -n "$CONFIG_SITE"; then | |
63a9e923 SM |
2097 | # We do not want a PATH search for config.site. |
2098 | case $CONFIG_SITE in #(( | |
2099 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2100 | */*) ac_site_file1=$CONFIG_SITE;; | |
2101 | *) ac_site_file1=./$CONFIG_SITE;; | |
2102 | esac | |
81ecdfbb RW |
2103 | elif test "x$prefix" != xNONE; then |
2104 | ac_site_file1=$prefix/share/config.site | |
2105 | ac_site_file2=$prefix/etc/config.site | |
2106 | else | |
2107 | ac_site_file1=$ac_default_prefix/share/config.site | |
2108 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2109 | fi | |
2110 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2111 | do | |
2112 | test "x$ac_site_file" = xNONE && continue | |
63a9e923 | 2113 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2115 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
25ed0b71 | 2116 | sed 's/^/| /' "$ac_site_file" >&5 |
63a9e923 SM |
2117 | . "$ac_site_file" \ |
2118 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2120 | as_fn_error $? "failed to load site script $ac_site_file | |
2121 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 EZ |
2122 | fi |
2123 | done | |
2124 | ||
2125 | if test -r "$cache_file"; then | |
63a9e923 SM |
2126 | # Some versions of bash will fail to source /dev/null (special files |
2127 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2128 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2130 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
9255ee31 | 2131 | case $cache_file in |
81ecdfbb RW |
2132 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2133 | *) . "./$cache_file";; | |
9255ee31 EZ |
2134 | esac |
2135 | fi | |
2136 | else | |
81ecdfbb RW |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2138 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
9255ee31 EZ |
2139 | >$cache_file |
2140 | fi | |
2141 | ||
2142 | # Check that the precious variables saved in the cache have kept the same | |
2143 | # value. | |
2144 | ac_cache_corrupted=false | |
81ecdfbb | 2145 | for ac_var in $ac_precious_vars; do |
9255ee31 EZ |
2146 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2147 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2148 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2149 | eval ac_new_val=\$ac_env_${ac_var}_value | |
9255ee31 EZ |
2150 | case $ac_old_set,$ac_new_set in |
2151 | set,) | |
81ecdfbb RW |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2153 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
9255ee31 EZ |
2154 | ac_cache_corrupted=: ;; |
2155 | ,set) | |
81ecdfbb RW |
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2157 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
9255ee31 EZ |
2158 | ac_cache_corrupted=: ;; |
2159 | ,);; | |
2160 | *) | |
2161 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2162 | # differences in whitespace do not lead to failure. |
2163 | ac_old_val_w=`echo x $ac_old_val` | |
2164 | ac_new_val_w=`echo x $ac_new_val` | |
2165 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2167 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2168 | ac_cache_corrupted=: | |
2169 | else | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2171 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2172 | eval $ac_var=\$ac_old_val | |
2173 | fi | |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2175 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2177 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
9255ee31 EZ |
2178 | fi;; |
2179 | esac | |
25ed0b71 | 2180 | # Pass precious variables to config.status. |
9255ee31 EZ |
2181 | if test "$ac_new_set" = set; then |
2182 | case $ac_new_val in | |
81ecdfbb | 2183 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
25ed0b71 KW |
2184 | *) ac_arg=$ac_var=$ac_new_val ;; |
2185 | esac | |
2186 | case " $ac_configure_args " in | |
2187 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2188 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
9255ee31 EZ |
2189 | esac |
2190 | fi | |
2191 | done | |
2192 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2196 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
63a9e923 | 2197 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
9255ee31 | 2198 | fi |
81ecdfbb RW |
2199 | ## -------------------- ## |
2200 | ## Main body of script. ## | |
2201 | ## -------------------- ## | |
9255ee31 EZ |
2202 | |
2203 | ac_ext=c | |
2204 | ac_cpp='$CPP $CPPFLAGS' | |
2205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2208 | ||
9255ee31 | 2209 | |
25ed0b71 KW |
2210 | |
2211 | ||
2212 | ||
2213 | ||
5836a818 PP |
2214 | |
2215 | ||
2216 | ||
9255ee31 | 2217 | ac_aux_dir= |
5836a818 | 2218 | for ac_dir in `cd $srcdir;pwd`/.. "$srcdir"/`cd $srcdir;pwd`/..; do |
63a9e923 SM |
2219 | if test -f "$ac_dir/install-sh"; then |
2220 | ac_aux_dir=$ac_dir | |
2221 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2222 | break | |
2223 | elif test -f "$ac_dir/install.sh"; then | |
2224 | ac_aux_dir=$ac_dir | |
2225 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2226 | break | |
2227 | elif test -f "$ac_dir/shtool"; then | |
2228 | ac_aux_dir=$ac_dir | |
2229 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2230 | break | |
2231 | fi | |
9255ee31 EZ |
2232 | done |
2233 | if test -z "$ac_aux_dir"; then | |
63a9e923 | 2234 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`cd $srcdir;pwd\`/.. \"$srcdir\"/\`cd $srcdir;pwd\`/.." "$LINENO" 5 |
9255ee31 | 2235 | fi |
9255ee31 | 2236 | |
81ecdfbb RW |
2237 | # These three variables are undocumented and unsupported, |
2238 | # and are intended to be withdrawn in a future Autoconf release. | |
2239 | # They can cause serious problems if a builder's source tree is in a directory | |
2240 | # whose full name contains unusual characters. | |
2241 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2242 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2243 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2244 | ||
2245 | ||
2246 | ac_config_headers="$ac_config_headers config.h" | |
5bdf8622 DJ |
2247 | |
2248 | ||
5836a818 | 2249 | LIBVERSION=6.2 |
5bdf8622 | 2250 | |
9255ee31 | 2251 | # Make sure we can run config.sub. |
81ecdfbb | 2252 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
63a9e923 | 2253 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2254 | |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2256 | $as_echo_n "checking build system type... " >&6; } | |
63a9e923 | 2257 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2258 | $as_echo_n "(cached) " >&6 |
2259 | else | |
2260 | ac_build_alias=$build_alias | |
2261 | test "x$ac_build_alias" = x && | |
2262 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2263 | test "x$ac_build_alias" = x && | |
63a9e923 | 2264 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2265 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
63a9e923 | 2266 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2267 | |
2268 | fi | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2270 | $as_echo "$ac_cv_build" >&6; } | |
2271 | case $ac_cv_build in | |
2272 | *-*-*) ;; | |
63a9e923 | 2273 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2274 | esac |
9255ee31 | 2275 | build=$ac_cv_build |
81ecdfbb RW |
2276 | ac_save_IFS=$IFS; IFS='-' |
2277 | set x $ac_cv_build | |
2278 | shift | |
2279 | build_cpu=$1 | |
2280 | build_vendor=$2 | |
2281 | shift; shift | |
2282 | # Remember, the first character of IFS is used to create $*, | |
2283 | # except with old shells: | |
2284 | build_os=$* | |
2285 | IFS=$ac_save_IFS | |
2286 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2287 | |
25ed0b71 | 2288 | |
81ecdfbb RW |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2290 | $as_echo_n "checking host system type... " >&6; } | |
63a9e923 | 2291 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
2292 | $as_echo_n "(cached) " >&6 |
2293 | else | |
2294 | if test "x$host_alias" = x; then | |
2295 | ac_cv_host=$ac_cv_build | |
9255ee31 | 2296 | else |
81ecdfbb | 2297 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
63a9e923 | 2298 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2299 | fi |
9255ee31 EZ |
2300 | |
2301 | fi | |
81ecdfbb RW |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2303 | $as_echo "$ac_cv_host" >&6; } | |
2304 | case $ac_cv_host in | |
2305 | *-*-*) ;; | |
63a9e923 | 2306 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2307 | esac |
9255ee31 | 2308 | host=$ac_cv_host |
81ecdfbb RW |
2309 | ac_save_IFS=$IFS; IFS='-' |
2310 | set x $ac_cv_host | |
2311 | shift | |
2312 | host_cpu=$1 | |
2313 | host_vendor=$2 | |
2314 | shift; shift | |
2315 | # Remember, the first character of IFS is used to create $*, | |
2316 | # except with old shells: | |
2317 | host_os=$* | |
2318 | IFS=$ac_save_IFS | |
2319 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
9255ee31 | 2320 | |
25ed0b71 KW |
2321 | |
2322 | ||
19ce2a29 | 2323 | |
9255ee31 | 2324 | opt_curses=no |
5bdf8622 | 2325 | opt_purify=no |
9255ee31 | 2326 | |
25ed0b71 | 2327 | |
81ecdfbb RW |
2328 | # Check whether --with-curses was given. |
2329 | if test "${with_curses+set}" = set; then : | |
2330 | withval=$with_curses; opt_curses=$withval | |
2331 | fi | |
2332 | ||
2333 | ||
2334 | # Check whether --with-purify was given. | |
2335 | if test "${with_purify+set}" = set; then : | |
2336 | withval=$with_purify; opt_purify=$withval | |
2337 | fi | |
9255ee31 | 2338 | |
5bdf8622 | 2339 | |
9255ee31 EZ |
2340 | if test "$opt_curses" = "yes"; then |
2341 | prefer_curses=yes | |
2342 | fi | |
2343 | ||
5bdf8622 DJ |
2344 | if test "$opt_purify" = yes; then |
2345 | PURIFY="purify" | |
2346 | else | |
2347 | PURIFY= | |
2348 | fi | |
2349 | ||
2350 | opt_multibyte=yes | |
9255ee31 | 2351 | opt_static_libs=yes |
b558ff04 | 2352 | opt_shared_libs=no |
9255ee31 | 2353 | |
81ecdfbb RW |
2354 | # Check whether --enable-multibyte was given. |
2355 | if test "${enable_multibyte+set}" = set; then : | |
2356 | enableval=$enable_multibyte; opt_multibyte=$enableval | |
2357 | fi | |
2358 | ||
2359 | # Check whether --enable-static was given. | |
2360 | if test "${enable_static+set}" = set; then : | |
2361 | enableval=$enable_static; opt_static_libs=$enableval | |
2362 | fi | |
2363 | ||
9255ee31 | 2364 | |
5bdf8622 | 2365 | if test $opt_multibyte = no; then |
81ecdfbb | 2366 | $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h |
5bdf8622 DJ |
2367 | |
2368 | fi | |
2369 | ||
2370 | ||
2371 | ||
eeab5adb | 2372 | CROSS_COMPILE= |
5bdf8622 DJ |
2373 | if test "x$cross_compiling" = "xyes"; then |
2374 | case "${host}" in | |
2375 | *-cygwin*) | |
2376 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
2377 | ;; | |
2378 | *-mingw*) | |
2379 | cross_cache=${srcdir}/cross-build/mingw.cache | |
2380 | ;; | |
2381 | i[3456]86-*-beos*) | |
2382 | cross_cache=${srcdir}/cross-build/x86-beos.cache | |
2383 | ;; | |
2384 | *) echo "configure: cross-compiling for $host is not supported" >&2 | |
2385 | ;; | |
2386 | esac | |
2387 | if test -n "${cross_cache}" && test -r "${cross_cache}"; then | |
2388 | echo "loading cross-build cache file ${cross_cache}" | |
2389 | . ${cross_cache} | |
2390 | fi | |
2391 | unset cross_cache | |
2392 | CROSS_COMPILE='-DCROSS_COMPILING' | |
2393 | ||
2394 | fi | |
2395 | ||
9255ee31 EZ |
2396 | echo "" |
2397 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
2398 | echo "" | |
2399 | ||
2400 | # We want these before the checks, so the checks can modify their values. | |
2401 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
2402 | ||
81ecdfbb RW |
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2404 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2405 | set x ${MAKE-make} | |
2406 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
63a9e923 | 2407 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 2408 | $as_echo_n "(cached) " >&6 |
9255ee31 | 2409 | else |
25ed0b71 | 2410 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 2411 | SHELL = /bin/sh |
9255ee31 | 2412 | all: |
81ecdfbb | 2413 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
25ed0b71 | 2414 | _ACEOF |
63a9e923 | 2415 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
2416 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2417 | *@@@%%%=?*=@@@%%%*) | |
2418 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2419 | *) | |
2420 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2421 | esac | |
9255ee31 EZ |
2422 | rm -f conftest.make |
2423 | fi | |
81ecdfbb RW |
2424 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2426 | $as_echo "yes" >&6; } | |
9255ee31 EZ |
2427 | SET_MAKE= |
2428 | else | |
81ecdfbb RW |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2430 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2431 | SET_MAKE="MAKE=${MAKE-make}" |
2432 | fi | |
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 | if test -n "$ac_tool_prefix"; then | |
2440 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2441 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2443 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2444 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2445 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2446 | else |
2447 | if test -n "$CC"; then | |
2448 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2449 | else | |
25ed0b71 KW |
2450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2451 | for as_dir in $PATH | |
2452 | do | |
2453 | IFS=$as_save_IFS | |
2454 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2455 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2457 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2459 | break 2 |
2460 | fi | |
2461 | done | |
81ecdfbb RW |
2462 | done |
2463 | IFS=$as_save_IFS | |
9255ee31 | 2464 | |
d60d9f65 | 2465 | fi |
9255ee31 EZ |
2466 | fi |
2467 | CC=$ac_cv_prog_CC | |
d60d9f65 | 2468 | if test -n "$CC"; then |
81ecdfbb RW |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2470 | $as_echo "$CC" >&6; } | |
9255ee31 | 2471 | else |
81ecdfbb RW |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2473 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2474 | fi |
2475 | ||
81ecdfbb | 2476 | |
9255ee31 EZ |
2477 | fi |
2478 | if test -z "$ac_cv_prog_CC"; then | |
2479 | ac_ct_CC=$CC | |
2480 | # Extract the first word of "gcc", so it can be a program name with args. | |
2481 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2483 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2484 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2485 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2486 | else |
2487 | if test -n "$ac_ct_CC"; then | |
2488 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2489 | else | |
25ed0b71 KW |
2490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2491 | for as_dir in $PATH | |
2492 | do | |
2493 | IFS=$as_save_IFS | |
2494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2495 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2497 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2499 | break 2 |
2500 | fi | |
2501 | done | |
81ecdfbb RW |
2502 | done |
2503 | IFS=$as_save_IFS | |
9255ee31 EZ |
2504 | |
2505 | fi | |
2506 | fi | |
2507 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2508 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2510 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2511 | else |
81ecdfbb RW |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2513 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2514 | fi |
2515 | ||
81ecdfbb RW |
2516 | if test "x$ac_ct_CC" = x; then |
2517 | CC="" | |
2518 | else | |
2519 | case $cross_compiling:$ac_tool_warned in | |
2520 | yes:) | |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2522 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2523 | ac_tool_warned=yes ;; | |
2524 | esac | |
2525 | CC=$ac_ct_CC | |
2526 | fi | |
d60d9f65 | 2527 | else |
9255ee31 | 2528 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
2529 | fi |
2530 | ||
2531 | if test -z "$CC"; then | |
81ecdfbb RW |
2532 | if test -n "$ac_tool_prefix"; then |
2533 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9255ee31 | 2534 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2536 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2537 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2538 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2539 | else |
2540 | if test -n "$CC"; then | |
2541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2542 | else | |
25ed0b71 KW |
2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2544 | for as_dir in $PATH | |
2545 | do | |
2546 | IFS=$as_save_IFS | |
2547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2549 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2550 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2552 | break 2 |
2553 | fi | |
2554 | done | |
81ecdfbb RW |
2555 | done |
2556 | IFS=$as_save_IFS | |
9255ee31 EZ |
2557 | |
2558 | fi | |
2559 | fi | |
2560 | CC=$ac_cv_prog_CC | |
2561 | if test -n "$CC"; then | |
81ecdfbb RW |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2563 | $as_echo "$CC" >&6; } | |
9255ee31 | 2564 | else |
81ecdfbb RW |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2566 | $as_echo "no" >&6; } | |
9255ee31 EZ |
2567 | fi |
2568 | ||
81ecdfbb RW |
2569 | |
2570 | fi | |
9255ee31 | 2571 | fi |
81ecdfbb | 2572 | if test -z "$CC"; then |
d60d9f65 SS |
2573 | # Extract the first word of "cc", so it can be a program name with args. |
2574 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2576 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2577 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2578 | $as_echo_n "(cached) " >&6 |
9255ee31 | 2579 | else |
81ecdfbb RW |
2580 | if test -n "$CC"; then |
2581 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9255ee31 | 2582 | else |
81ecdfbb | 2583 | ac_prog_rejected=no |
25ed0b71 KW |
2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2585 | for as_dir in $PATH | |
2586 | do | |
2587 | IFS=$as_save_IFS | |
2588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2590 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2591 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2592 | ac_prog_rejected=yes | |
2593 | continue | |
2594 | fi | |
2595 | ac_cv_prog_CC="cc" | |
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25ed0b71 KW |
2597 | break 2 |
2598 | fi | |
2599 | done | |
81ecdfbb RW |
2600 | done |
2601 | IFS=$as_save_IFS | |
9255ee31 | 2602 | |
d60d9f65 SS |
2603 | if test $ac_prog_rejected = yes; then |
2604 | # We found a bogon in the path, so make sure we never use it. | |
2605 | set dummy $ac_cv_prog_CC | |
2606 | shift | |
9255ee31 | 2607 | if test $# != 0; then |
d60d9f65 SS |
2608 | # We chose a different compiler from the bogus one. |
2609 | # However, it has the same basename, so the bogon will be chosen | |
2610 | # first if we set CC to just the basename; use the full file name. | |
2611 | shift | |
25ed0b71 | 2612 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
2613 | fi |
2614 | fi | |
2615 | fi | |
2616 | fi | |
9255ee31 | 2617 | CC=$ac_cv_prog_CC |
d60d9f65 | 2618 | if test -n "$CC"; then |
81ecdfbb RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2620 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2621 | else |
81ecdfbb RW |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2623 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2624 | fi |
2625 | ||
81ecdfbb | 2626 | |
9255ee31 EZ |
2627 | fi |
2628 | if test -z "$CC"; then | |
2629 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2630 | for ac_prog in cl.exe |
9255ee31 EZ |
2631 | do |
2632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2635 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2636 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2637 | $as_echo_n "(cached) " >&6 |
d60d9f65 SS |
2638 | else |
2639 | if test -n "$CC"; then | |
2640 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2641 | else | |
25ed0b71 KW |
2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2643 | for as_dir in $PATH | |
2644 | do | |
2645 | IFS=$as_save_IFS | |
2646 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2648 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2649 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2651 | break 2 |
2652 | fi | |
2653 | done | |
81ecdfbb RW |
2654 | done |
2655 | IFS=$as_save_IFS | |
9255ee31 | 2656 | |
d60d9f65 SS |
2657 | fi |
2658 | fi | |
9255ee31 | 2659 | CC=$ac_cv_prog_CC |
d60d9f65 | 2660 | if test -n "$CC"; then |
81ecdfbb RW |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2662 | $as_echo "$CC" >&6; } | |
d60d9f65 | 2663 | else |
81ecdfbb RW |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2665 | $as_echo "no" >&6; } | |
d60d9f65 SS |
2666 | fi |
2667 | ||
81ecdfbb | 2668 | |
9255ee31 EZ |
2669 | test -n "$CC" && break |
2670 | done | |
2671 | fi | |
2672 | if test -z "$CC"; then | |
2673 | ac_ct_CC=$CC | |
81ecdfbb | 2674 | for ac_prog in cl.exe |
9255ee31 EZ |
2675 | do |
2676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2677 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2679 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 2680 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2681 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
2682 | else |
2683 | if test -n "$ac_ct_CC"; then | |
2684 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2685 | else | |
25ed0b71 KW |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 2692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 2693 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
2695 | break 2 |
2696 | fi | |
2697 | done | |
81ecdfbb RW |
2698 | done |
2699 | IFS=$as_save_IFS | |
d60d9f65 | 2700 | |
9255ee31 EZ |
2701 | fi |
2702 | fi | |
2703 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2704 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2706 | $as_echo "$ac_ct_CC" >&6; } | |
9255ee31 | 2707 | else |
81ecdfbb RW |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2709 | $as_echo "no" >&6; } | |
9255ee31 | 2710 | fi |
d60d9f65 | 2711 | |
81ecdfbb | 2712 | |
9255ee31 EZ |
2713 | test -n "$ac_ct_CC" && break |
2714 | done | |
c862e87b | 2715 | |
81ecdfbb RW |
2716 | if test "x$ac_ct_CC" = x; then |
2717 | CC="" | |
2718 | else | |
2719 | case $cross_compiling:$ac_tool_warned in | |
2720 | yes:) | |
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2723 | ac_tool_warned=yes ;; | |
2724 | esac | |
2725 | CC=$ac_ct_CC | |
2726 | fi | |
9255ee31 EZ |
2727 | fi |
2728 | ||
2729 | fi | |
2730 | ||
25ed0b71 | 2731 | |
81ecdfbb RW |
2732 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
2734 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2735 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 EZ |
2736 | |
2737 | # Provide some information about the compiler. | |
81ecdfbb RW |
2738 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2739 | set X $ac_compile | |
2740 | ac_compiler=$2 | |
2741 | for ac_option in --version -v -V -qversion; do | |
2742 | { { ac_try="$ac_compiler $ac_option >&5" | |
2743 | case "(($ac_try" in | |
2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2745 | *) ac_try_echo=$ac_try;; | |
2746 | esac | |
2747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2748 | $as_echo "$ac_try_echo"; } >&5 | |
2749 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
9255ee31 | 2750 | ac_status=$? |
81ecdfbb RW |
2751 | if test -s conftest.err; then |
2752 | sed '10a\ | |
2753 | ... rest of stderr output deleted ... | |
2754 | 10q' conftest.err >conftest.er1 | |
2755 | cat conftest.er1 >&5 | |
81ecdfbb | 2756 | fi |
63a9e923 | 2757 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2759 | test $ac_status = 0; } | |
2760 | done | |
9255ee31 | 2761 | |
81ecdfbb | 2762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2763 | /* end confdefs.h. */ |
5836a818 | 2764 | |
9255ee31 EZ |
2765 | int |
2766 | main () | |
2767 | { | |
2768 | ||
2769 | ; | |
2770 | return 0; | |
2771 | } | |
2772 | _ACEOF | |
2773 | ac_clean_files_save=$ac_clean_files | |
63a9e923 | 2774 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
9255ee31 EZ |
2775 | # Try to create an executable without -o first, disregard a.out. |
2776 | # It will help us diagnose broken compilers, and finding out an intuition | |
2777 | # of exeext. | |
63a9e923 SM |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2779 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
2780 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2781 | ||
2782 | # The possible output files: | |
2783 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2784 | ||
2785 | ac_rmfiles= | |
2786 | for ac_file in $ac_files | |
2787 | do | |
2788 | case $ac_file in | |
2789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2790 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2791 | esac | |
2792 | done | |
2793 | rm -f $ac_rmfiles | |
2794 | ||
2795 | if { { ac_try="$ac_link_default" | |
2796 | case "(($ac_try" in | |
2797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2798 | *) ac_try_echo=$ac_try;; | |
2799 | esac | |
2800 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2801 | $as_echo "$ac_try_echo"; } >&5 | |
2802 | (eval "$ac_link_default") 2>&5 | |
2803 | ac_status=$? | |
2804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2805 | test $ac_status = 0; }; then : | |
2806 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2807 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2808 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2809 | # so that the user can short-circuit this test for compilers unknown to | |
2810 | # Autoconf. | |
2811 | for ac_file in $ac_files '' | |
25ed0b71 KW |
2812 | do |
2813 | test -f "$ac_file" || continue | |
9255ee31 | 2814 | case $ac_file in |
81ecdfbb | 2815 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
430b7832 | 2816 | ;; |
25ed0b71 | 2817 | [ab].out ) |
430b7832 MM |
2818 | # We found the default executable, but exeext='' is most |
2819 | # certainly right. | |
2820 | break;; | |
25ed0b71 | 2821 | *.* ) |
81ecdfbb RW |
2822 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2823 | then :; else | |
2824 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2825 | fi | |
2826 | # We set ac_cv_exeext here because the later test for it is not | |
2827 | # safe: cross compilers may not add the suffix if given an `-o' | |
2828 | # argument, so we may need to know it at that point already. | |
2829 | # Even if this section looks crufty: it has the advantage of | |
2830 | # actually working. | |
430b7832 | 2831 | break;; |
25ed0b71 | 2832 | * ) |
430b7832 | 2833 | break;; |
9255ee31 EZ |
2834 | esac |
2835 | done | |
81ecdfbb RW |
2836 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2837 | ||
9255ee31 | 2838 | else |
81ecdfbb RW |
2839 | ac_file='' |
2840 | fi | |
81ecdfbb | 2841 | if test -z "$ac_file"; then : |
63a9e923 SM |
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2843 | $as_echo "no" >&6; } | |
2844 | $as_echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2845 | sed 's/^/| /' conftest.$ac_ext >&5 |
2846 | ||
81ecdfbb RW |
2847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2848 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
2849 | as_fn_error 77 "C compiler cannot create executables |
2850 | See \`config.log' for more details" "$LINENO" 5; } | |
2851 | else | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2853 | $as_echo "yes" >&6; } | |
9255ee31 | 2854 | fi |
63a9e923 SM |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2856 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2858 | $as_echo "$ac_file" >&6; } | |
9255ee31 | 2859 | ac_exeext=$ac_cv_exeext |
9255ee31 | 2860 | |
63a9e923 | 2861 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
9255ee31 | 2862 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2864 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2865 | if { { ac_try="$ac_link" | |
2866 | case "(($ac_try" in | |
2867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2868 | *) ac_try_echo=$ac_try;; | |
2869 | esac | |
2870 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2871 | $as_echo "$ac_try_echo"; } >&5 | |
2872 | (eval "$ac_link") 2>&5 | |
9255ee31 | 2873 | ac_status=$? |
81ecdfbb RW |
2874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2875 | test $ac_status = 0; }; then : | |
9255ee31 EZ |
2876 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2877 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2878 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2879 | # `rm'. | |
25ed0b71 KW |
2880 | for ac_file in conftest.exe conftest conftest.*; do |
2881 | test -f "$ac_file" || continue | |
9255ee31 | 2882 | case $ac_file in |
81ecdfbb | 2883 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
9255ee31 | 2884 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 | 2885 | break;; |
9255ee31 EZ |
2886 | * ) break;; |
2887 | esac | |
2888 | done | |
d60d9f65 | 2889 | else |
81ecdfbb RW |
2890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
2892 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2893 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 | 2894 | fi |
63a9e923 | 2895 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2897 | $as_echo "$ac_cv_exeext" >&6; } | |
9255ee31 EZ |
2898 | |
2899 | rm -f conftest.$ac_ext | |
2900 | EXEEXT=$ac_cv_exeext | |
2901 | ac_exeext=$EXEEXT | |
63a9e923 SM |
2902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2903 | /* end confdefs.h. */ | |
2904 | #include <stdio.h> | |
2905 | int | |
2906 | main () | |
2907 | { | |
2908 | FILE *f = fopen ("conftest.out", "w"); | |
2909 | return ferror (f) || fclose (f) != 0; | |
2910 | ||
2911 | ; | |
2912 | return 0; | |
2913 | } | |
2914 | _ACEOF | |
2915 | ac_clean_files="$ac_clean_files conftest.out" | |
2916 | # Check that the compiler produces executables we can run. If not, either | |
2917 | # the compiler is broken, or we cross compile. | |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2919 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2920 | if test "$cross_compiling" != yes; then | |
2921 | { { ac_try="$ac_link" | |
2922 | case "(($ac_try" in | |
2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2924 | *) ac_try_echo=$ac_try;; | |
2925 | esac | |
2926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2927 | $as_echo "$ac_try_echo"; } >&5 | |
2928 | (eval "$ac_link") 2>&5 | |
2929 | ac_status=$? | |
2930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2931 | test $ac_status = 0; } | |
2932 | if { ac_try='./conftest$ac_cv_exeext' | |
2933 | { { case "(($ac_try" in | |
2934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2935 | *) ac_try_echo=$ac_try;; | |
2936 | esac | |
2937 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2938 | $as_echo "$ac_try_echo"; } >&5 | |
2939 | (eval "$ac_try") 2>&5 | |
2940 | ac_status=$? | |
2941 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2942 | test $ac_status = 0; }; }; then | |
2943 | cross_compiling=no | |
2944 | else | |
2945 | if test "$cross_compiling" = maybe; then | |
2946 | cross_compiling=yes | |
2947 | else | |
2948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2950 | as_fn_error $? "cannot run C compiled programs. | |
2951 | If you meant to cross compile, use \`--host'. | |
2952 | See \`config.log' for more details" "$LINENO" 5; } | |
2953 | fi | |
2954 | fi | |
2955 | fi | |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2957 | $as_echo "$cross_compiling" >&6; } | |
2958 | ||
2959 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2960 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2962 | $as_echo_n "checking for suffix of object files... " >&6; } | |
63a9e923 | 2963 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 2964 | $as_echo_n "(cached) " >&6 |
9255ee31 | 2965 | else |
81ecdfbb | 2966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 2967 | /* end confdefs.h. */ |
d60d9f65 | 2968 | |
9255ee31 EZ |
2969 | int |
2970 | main () | |
2971 | { | |
d60d9f65 | 2972 | |
9255ee31 EZ |
2973 | ; |
2974 | return 0; | |
2975 | } | |
2976 | _ACEOF | |
2977 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2978 | if { { ac_try="$ac_compile" |
2979 | case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
2983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2984 | $as_echo "$ac_try_echo"; } >&5 | |
2985 | (eval "$ac_compile") 2>&5 | |
2986 | ac_status=$? | |
2987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2988 | test $ac_status = 0; }; then : | |
2989 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2990 | test -f "$ac_file" || continue; | |
9255ee31 | 2991 | case $ac_file in |
81ecdfbb | 2992 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
9255ee31 EZ |
2993 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2994 | break;; | |
2995 | esac | |
2996 | done | |
d60d9f65 | 2997 | else |
81ecdfbb | 2998 | $as_echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2999 | sed 's/^/| /' conftest.$ac_ext >&5 |
3000 | ||
81ecdfbb RW |
3001 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3002 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
3003 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3004 | See \`config.log' for more details" "$LINENO" 5; } | |
9255ee31 | 3005 | fi |
9255ee31 EZ |
3006 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3007 | fi | |
81ecdfbb RW |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3009 | $as_echo "$ac_cv_objext" >&6; } | |
9255ee31 EZ |
3010 | OBJEXT=$ac_cv_objext |
3011 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3013 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
63a9e923 | 3014 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3015 | $as_echo_n "(cached) " >&6 |
9255ee31 | 3016 | else |
81ecdfbb | 3017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3018 | /* end confdefs.h. */ |
9255ee31 EZ |
3019 | |
3020 | int | |
3021 | main () | |
3022 | { | |
3023 | #ifndef __GNUC__ | |
3024 | choke me | |
3025 | #endif | |
d60d9f65 | 3026 | |
9255ee31 EZ |
3027 | ; |
3028 | return 0; | |
3029 | } | |
3030 | _ACEOF | |
81ecdfbb | 3031 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 EZ |
3032 | ac_compiler_gnu=yes |
3033 | else | |
81ecdfbb | 3034 | ac_compiler_gnu=no |
9255ee31 | 3035 | fi |
81ecdfbb | 3036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
3037 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3038 | ||
3039 | fi | |
81ecdfbb RW |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3041 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3042 | if test $ac_compiler_gnu = yes; then | |
3043 | GCC=yes | |
3044 | else | |
3045 | GCC= | |
3046 | fi | |
9255ee31 EZ |
3047 | ac_test_CFLAGS=${CFLAGS+set} |
3048 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3050 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
63a9e923 | 3051 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
3052 | $as_echo_n "(cached) " >&6 |
3053 | else | |
3054 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3055 | ac_c_werror_flag=yes | |
3056 | ac_cv_prog_cc_g=no | |
3057 | CFLAGS="-g" | |
3058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 3059 | /* end confdefs.h. */ |
9255ee31 EZ |
3060 | |
3061 | int | |
3062 | main () | |
3063 | { | |
3064 | ||
3065 | ; | |
3066 | return 0; | |
3067 | } | |
3068 | _ACEOF | |
81ecdfbb | 3069 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 SS |
3070 | ac_cv_prog_cc_g=yes |
3071 | else | |
81ecdfbb RW |
3072 | CFLAGS="" |
3073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3074 | /* end confdefs.h. */ | |
3075 | ||
3076 | int | |
3077 | main () | |
3078 | { | |
3079 | ||
3080 | ; | |
3081 | return 0; | |
3082 | } | |
3083 | _ACEOF | |
3084 | if ac_fn_c_try_compile "$LINENO"; then : | |
3085 | ||
3086 | else | |
3087 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3088 | CFLAGS="-g" | |
3089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3090 | /* end confdefs.h. */ | |
3091 | ||
3092 | int | |
3093 | main () | |
3094 | { | |
25ed0b71 | 3095 | |
81ecdfbb RW |
3096 | ; |
3097 | return 0; | |
3098 | } | |
3099 | _ACEOF | |
3100 | if ac_fn_c_try_compile "$LINENO"; then : | |
3101 | ac_cv_prog_cc_g=yes | |
3102 | fi | |
3103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3104 | fi | |
3105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 3106 | fi |
81ecdfbb RW |
3107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3108 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d60d9f65 | 3109 | fi |
81ecdfbb RW |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3111 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d60d9f65 | 3112 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 3113 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
3114 | elif test $ac_cv_prog_cc_g = yes; then |
3115 | if test "$GCC" = yes; then | |
3116 | CFLAGS="-g -O2" | |
3117 | else | |
3118 | CFLAGS="-g" | |
3119 | fi | |
3120 | else | |
3121 | if test "$GCC" = yes; then | |
3122 | CFLAGS="-O2" | |
3123 | else | |
3124 | CFLAGS= | |
3125 | fi | |
3126 | fi | |
81ecdfbb RW |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3128 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
63a9e923 | 3129 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3130 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3131 | else |
81ecdfbb | 3132 | ac_cv_prog_cc_c89=no |
25ed0b71 | 3133 | ac_save_CC=$CC |
81ecdfbb | 3134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3135 | /* end confdefs.h. */ |
3136 | #include <stdarg.h> | |
3137 | #include <stdio.h> | |
63a9e923 | 3138 | struct stat; |
25ed0b71 KW |
3139 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3140 | struct buf { int x; }; | |
3141 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3142 | static char *e (p, i) | |
3143 | char **p; | |
3144 | int i; | |
3145 | { | |
3146 | return p[i]; | |
3147 | } | |
3148 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3149 | { | |
3150 | char *s; | |
3151 | va_list v; | |
3152 | va_start (v,p); | |
3153 | s = g (p, va_arg (v,int)); | |
3154 | va_end (v); | |
3155 | return s; | |
3156 | } | |
430b7832 MM |
3157 | |
3158 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3159 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3160 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3161 | as 'x'. The following induces an error, until -std is added to get |
430b7832 MM |
3162 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3163 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3164 | that's true only with -std. */ |
430b7832 MM |
3165 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3166 | ||
81ecdfbb RW |
3167 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3168 | inside strings and character constants. */ | |
3169 | #define FOO(x) 'x' | |
3170 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3171 | ||
25ed0b71 KW |
3172 | int test (int i, double x); |
3173 | struct s1 {int (*f) (int a);}; | |
3174 | struct s2 {int (*f) (double a);}; | |
3175 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3176 | int argc; | |
3177 | char **argv; | |
3178 | int | |
3179 | main () | |
3180 | { | |
3181 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3182 | ; | |
3183 | return 0; | |
3184 | } | |
3185 | _ACEOF | |
81ecdfbb RW |
3186 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3187 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
25ed0b71 KW |
3188 | do |
3189 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3190 | if ac_fn_c_try_compile "$LINENO"; then : |
3191 | ac_cv_prog_cc_c89=$ac_arg | |
25ed0b71 | 3192 | fi |
81ecdfbb RW |
3193 | rm -f core conftest.err conftest.$ac_objext |
3194 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
25ed0b71 | 3195 | done |
81ecdfbb | 3196 | rm -f conftest.$ac_ext |
25ed0b71 KW |
3197 | CC=$ac_save_CC |
3198 | ||
3199 | fi | |
81ecdfbb RW |
3200 | # AC_CACHE_VAL |
3201 | case "x$ac_cv_prog_cc_c89" in | |
3202 | x) | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3204 | $as_echo "none needed" >&6; } ;; | |
3205 | xno) | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3207 | $as_echo "unsupported" >&6; } ;; | |
25ed0b71 | 3208 | *) |
81ecdfbb RW |
3209 | CC="$CC $ac_cv_prog_cc_c89" |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3211 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
25ed0b71 | 3212 | esac |
81ecdfbb | 3213 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
25ed0b71 | 3214 | |
9255ee31 | 3215 | fi |
d60d9f65 | 3216 | |
9255ee31 EZ |
3217 | ac_ext=c |
3218 | ac_cpp='$CPP $CPPFLAGS' | |
3219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3222 | ||
25ed0b71 | 3223 | |
9255ee31 EZ |
3224 | ac_ext=c |
3225 | ac_cpp='$CPP $CPPFLAGS' | |
3226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3230 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d60d9f65 SS |
3231 | # On Suns, sometimes $CPP names a directory. |
3232 | if test -n "$CPP" && test -d "$CPP"; then | |
3233 | CPP= | |
3234 | fi | |
3235 | if test -z "$CPP"; then | |
63a9e923 | 3236 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 3237 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 3238 | else |
9255ee31 EZ |
3239 | # Double quotes because CPP needs to be expanded |
3240 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3241 | do | |
3242 | ac_preproc_ok=false | |
3243 | for ac_c_preproc_warn_flag in '' yes | |
3244 | do | |
3245 | # Use a header file that comes with gcc, so configuring glibc | |
3246 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3247 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3248 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 3249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 | 3250 | # not just through cpp. "Syntax error" is here to catch this case. |
81ecdfbb | 3251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3252 | /* end confdefs.h. */ |
3253 | #ifdef __STDC__ | |
3254 | # include <limits.h> | |
3255 | #else | |
3256 | # include <assert.h> | |
3257 | #endif | |
430b7832 | 3258 | Syntax error |
9255ee31 | 3259 | _ACEOF |
81ecdfbb | 3260 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3261 | |
81ecdfbb | 3262 | else |
9255ee31 EZ |
3263 | # Broken: fails on valid input. |
3264 | continue | |
3265 | fi | |
63a9e923 | 3266 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 | 3267 | |
81ecdfbb | 3268 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3269 | # can be detected and how. |
81ecdfbb | 3270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3271 | /* end confdefs.h. */ |
9255ee31 EZ |
3272 | #include <ac_nonexistent.h> |
3273 | _ACEOF | |
81ecdfbb | 3274 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3275 | # Broken: success on invalid input. |
3276 | continue | |
d60d9f65 | 3277 | else |
9255ee31 EZ |
3278 | # Passes both tests. |
3279 | ac_preproc_ok=: | |
3280 | break | |
3281 | fi | |
63a9e923 | 3282 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 EZ |
3283 | |
3284 | done | |
3285 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
63a9e923 | 3286 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 3287 | if $ac_preproc_ok; then : |
9255ee31 EZ |
3288 | break |
3289 | fi | |
3290 | ||
3291 | done | |
3292 | ac_cv_prog_CPP=$CPP | |
3293 | ||
3294 | fi | |
3295 | CPP=$ac_cv_prog_CPP | |
3296 | else | |
3297 | ac_cv_prog_CPP=$CPP | |
3298 | fi | |
81ecdfbb RW |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3300 | $as_echo "$CPP" >&6; } | |
9255ee31 EZ |
3301 | ac_preproc_ok=false |
3302 | for ac_c_preproc_warn_flag in '' yes | |
3303 | do | |
3304 | # Use a header file that comes with gcc, so configuring glibc | |
3305 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
3306 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3307 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
3308 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3309 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3311 | /* end confdefs.h. */ |
3312 | #ifdef __STDC__ | |
3313 | # include <limits.h> | |
3314 | #else | |
3315 | # include <assert.h> | |
3316 | #endif | |
430b7832 | 3317 | Syntax error |
9255ee31 | 3318 | _ACEOF |
81ecdfbb | 3319 | if ac_fn_c_try_cpp "$LINENO"; then : |
25ed0b71 | 3320 | |
81ecdfbb | 3321 | else |
9255ee31 EZ |
3322 | # Broken: fails on valid input. |
3323 | continue | |
d60d9f65 | 3324 | fi |
63a9e923 | 3325 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 | 3326 | |
81ecdfbb | 3327 | # OK, works on sane cases. Now check whether nonexistent headers |
9255ee31 | 3328 | # can be detected and how. |
81ecdfbb | 3329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3330 | /* end confdefs.h. */ |
9255ee31 EZ |
3331 | #include <ac_nonexistent.h> |
3332 | _ACEOF | |
81ecdfbb | 3333 | if ac_fn_c_try_cpp "$LINENO"; then : |
9255ee31 EZ |
3334 | # Broken: success on invalid input. |
3335 | continue | |
3336 | else | |
9255ee31 EZ |
3337 | # Passes both tests. |
3338 | ac_preproc_ok=: | |
3339 | break | |
d60d9f65 | 3340 | fi |
63a9e923 | 3341 | rm -f conftest.err conftest.i conftest.$ac_ext |
9255ee31 EZ |
3342 | |
3343 | done | |
3344 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
63a9e923 | 3345 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
3346 | if $ac_preproc_ok; then : |
3347 | ||
d60d9f65 | 3348 | else |
81ecdfbb RW |
3349 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3350 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
3351 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3352 | See \`config.log' for more details" "$LINENO" 5; } | |
d60d9f65 | 3353 | fi |
d60d9f65 | 3354 | |
9255ee31 EZ |
3355 | ac_ext=c |
3356 | ac_cpp='$CPP $CPPFLAGS' | |
3357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3360 | ||
25ed0b71 | 3361 | |
81ecdfbb RW |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3363 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
63a9e923 | 3364 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
3365 | $as_echo_n "(cached) " >&6 |
3366 | else | |
3367 | if test -z "$GREP"; then | |
3368 | ac_path_GREP_found=false | |
3369 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3371 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3372 | do | |
3373 | IFS=$as_save_IFS | |
3374 | test -z "$as_dir" && as_dir=. | |
3375 | for ac_prog in grep ggrep; do | |
3376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3377 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
63a9e923 | 3378 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
3379 | # Check for GNU ac_path_GREP and select it if it is found. |
3380 | # Check for GNU $ac_path_GREP | |
3381 | case `"$ac_path_GREP" --version 2>&1` in | |
3382 | *GNU*) | |
3383 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3384 | *) | |
3385 | ac_count=0 | |
3386 | $as_echo_n 0123456789 >"conftest.in" | |
3387 | while : | |
3388 | do | |
3389 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3390 | mv "conftest.tmp" "conftest.in" | |
3391 | cp "conftest.in" "conftest.nl" | |
3392 | $as_echo 'GREP' >> "conftest.nl" | |
3393 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3394 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3395 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3396 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3397 | # Best one so far, save it but keep looking for a better one | |
3398 | ac_cv_path_GREP="$ac_path_GREP" | |
3399 | ac_path_GREP_max=$ac_count | |
3400 | fi | |
3401 | # 10*(2^10) chars as input seems more than enough | |
3402 | test $ac_count -gt 10 && break | |
3403 | done | |
3404 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3405 | esac | |
3406 | ||
3407 | $ac_path_GREP_found && break 3 | |
3408 | done | |
3409 | done | |
3410 | done | |
3411 | IFS=$as_save_IFS | |
3412 | if test -z "$ac_cv_path_GREP"; then | |
63a9e923 | 3413 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
3414 | fi |
3415 | else | |
3416 | ac_cv_path_GREP=$GREP | |
3417 | fi | |
3418 | ||
3419 | fi | |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3421 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3422 | GREP="$ac_cv_path_GREP" | |
3423 | ||
3424 | ||
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3426 | $as_echo_n "checking for egrep... " >&6; } | |
63a9e923 | 3427 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 3428 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 3429 | else |
81ecdfbb RW |
3430 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3431 | then ac_cv_path_EGREP="$GREP -E" | |
3432 | else | |
3433 | if test -z "$EGREP"; then | |
3434 | ac_path_EGREP_found=false | |
3435 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3437 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3438 | do | |
3439 | IFS=$as_save_IFS | |
3440 | test -z "$as_dir" && as_dir=. | |
3441 | for ac_prog in egrep; do | |
3442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3443 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
63a9e923 | 3444 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
3445 | # Check for GNU ac_path_EGREP and select it if it is found. |
3446 | # Check for GNU $ac_path_EGREP | |
3447 | case `"$ac_path_EGREP" --version 2>&1` in | |
3448 | *GNU*) | |
3449 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3450 | *) | |
3451 | ac_count=0 | |
3452 | $as_echo_n 0123456789 >"conftest.in" | |
3453 | while : | |
3454 | do | |
3455 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3456 | mv "conftest.tmp" "conftest.in" | |
3457 | cp "conftest.in" "conftest.nl" | |
3458 | $as_echo 'EGREP' >> "conftest.nl" | |
3459 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3460 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3461 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3462 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3463 | # Best one so far, save it but keep looking for a better one | |
3464 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3465 | ac_path_EGREP_max=$ac_count | |
25ed0b71 | 3466 | fi |
81ecdfbb RW |
3467 | # 10*(2^10) chars as input seems more than enough |
3468 | test $ac_count -gt 10 && break | |
3469 | done | |
3470 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3471 | esac | |
3472 | ||
3473 | $ac_path_EGREP_found && break 3 | |
3474 | done | |
3475 | done | |
3476 | done | |
3477 | IFS=$as_save_IFS | |
3478 | if test -z "$ac_cv_path_EGREP"; then | |
63a9e923 | 3479 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
3480 | fi |
3481 | else | |
3482 | ac_cv_path_EGREP=$EGREP | |
3483 | fi | |
3484 | ||
3485 | fi | |
d60d9f65 | 3486 | fi |
81ecdfbb RW |
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3488 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3489 | EGREP="$ac_cv_path_EGREP" | |
d60d9f65 | 3490 | |
9255ee31 | 3491 | |
81ecdfbb RW |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3493 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
63a9e923 | 3494 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 3495 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3496 | else |
81ecdfbb | 3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3498 | /* end confdefs.h. */ |
3499 | #include <stdlib.h> | |
3500 | #include <stdarg.h> | |
3501 | #include <string.h> | |
3502 | #include <float.h> | |
d60d9f65 | 3503 | |
25ed0b71 KW |
3504 | int |
3505 | main () | |
3506 | { | |
d60d9f65 | 3507 | |
25ed0b71 KW |
3508 | ; |
3509 | return 0; | |
3510 | } | |
3511 | _ACEOF | |
81ecdfbb | 3512 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 KW |
3513 | ac_cv_header_stdc=yes |
3514 | else | |
81ecdfbb | 3515 | ac_cv_header_stdc=no |
d60d9f65 | 3516 | fi |
81ecdfbb | 3517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3518 | |
25ed0b71 KW |
3519 | if test $ac_cv_header_stdc = yes; then |
3520 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3522 | /* end confdefs.h. */ |
3523 | #include <string.h> | |
9255ee31 | 3524 | |
25ed0b71 KW |
3525 | _ACEOF |
3526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3527 | $EGREP "memchr" >/dev/null 2>&1; then : |
3528 | ||
d60d9f65 | 3529 | else |
25ed0b71 | 3530 | ac_cv_header_stdc=no |
d60d9f65 | 3531 | fi |
25ed0b71 | 3532 | rm -f conftest* |
d60d9f65 | 3533 | |
d60d9f65 SS |
3534 | fi |
3535 | ||
25ed0b71 KW |
3536 | if test $ac_cv_header_stdc = yes; then |
3537 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3539 | /* end confdefs.h. */ |
3540 | #include <stdlib.h> | |
d60d9f65 | 3541 | |
9255ee31 | 3542 | _ACEOF |
d60d9f65 | 3543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb RW |
3544 | $EGREP "free" >/dev/null 2>&1; then : |
3545 | ||
25ed0b71 KW |
3546 | else |
3547 | ac_cv_header_stdc=no | |
d60d9f65 SS |
3548 | fi |
3549 | rm -f conftest* | |
3550 | ||
d60d9f65 SS |
3551 | fi |
3552 | ||
25ed0b71 KW |
3553 | if test $ac_cv_header_stdc = yes; then |
3554 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3555 | if test "$cross_compiling" = yes; then : |
25ed0b71 KW |
3556 | : |
3557 | else | |
81ecdfbb | 3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3559 | /* end confdefs.h. */ |
3560 | #include <ctype.h> | |
81ecdfbb | 3561 | #include <stdlib.h> |
25ed0b71 KW |
3562 | #if ((' ' & 0x0FF) == 0x020) |
3563 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3564 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3565 | #else | |
3566 | # define ISLOWER(c) \ | |
430b7832 MM |
3567 | (('a' <= (c) && (c) <= 'i') \ |
3568 | || ('j' <= (c) && (c) <= 'r') \ | |
3569 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
3570 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3571 | #endif | |
3572 | ||
3573 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3574 | int | |
3575 | main () | |
3576 | { | |
3577 | int i; | |
3578 | for (i = 0; i < 256; i++) | |
3579 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 3580 | || toupper (i) != TOUPPER (i)) |
81ecdfbb RW |
3581 | return 2; |
3582 | return 0; | |
25ed0b71 KW |
3583 | } |
3584 | _ACEOF | |
81ecdfbb | 3585 | if ac_fn_c_try_run "$LINENO"; then : |
25ed0b71 | 3586 | |
81ecdfbb RW |
3587 | else |
3588 | ac_cv_header_stdc=no | |
25ed0b71 | 3589 | fi |
81ecdfbb RW |
3590 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3591 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
25ed0b71 | 3592 | fi |
81ecdfbb | 3593 | |
25ed0b71 KW |
3594 | fi |
3595 | fi | |
81ecdfbb RW |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3597 | $as_echo "$ac_cv_header_stdc" >&6; } | |
25ed0b71 KW |
3598 | if test $ac_cv_header_stdc = yes; then |
3599 | ||
81ecdfbb | 3600 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
25ed0b71 KW |
3601 | |
3602 | fi | |
3603 | ||
3604 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
81ecdfbb RW |
3605 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3606 | inttypes.h stdint.h unistd.h | |
3607 | do : | |
3608 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3609 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3610 | " | |
63a9e923 | 3611 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
3612 | cat >>confdefs.h <<_ACEOF |
3613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3614 | _ACEOF | |
25ed0b71 | 3615 | |
81ecdfbb | 3616 | fi |
25ed0b71 | 3617 | |
81ecdfbb | 3618 | done |
25ed0b71 KW |
3619 | |
3620 | ||
3621 | ||
81ecdfbb | 3622 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
63a9e923 | 3623 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
81ecdfbb RW |
3624 | MINIX=yes |
3625 | else | |
3626 | MINIX= | |
3627 | fi | |
25ed0b71 KW |
3628 | |
3629 | ||
81ecdfbb | 3630 | if test "$MINIX" = yes; then |
25ed0b71 | 3631 | |
81ecdfbb | 3632 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
25ed0b71 | 3633 | |
25ed0b71 | 3634 | |
81ecdfbb | 3635 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
25ed0b71 | 3636 | |
25ed0b71 | 3637 | |
81ecdfbb | 3638 | $as_echo "#define _MINIX 1" >>confdefs.h |
25ed0b71 | 3639 | |
81ecdfbb | 3640 | fi |
25ed0b71 KW |
3641 | |
3642 | ||
81ecdfbb RW |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3644 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
63a9e923 | 3645 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 3646 | $as_echo_n "(cached) " >&6 |
25ed0b71 | 3647 | else |
81ecdfbb | 3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3649 | /* end confdefs.h. */ |
25ed0b71 | 3650 | |
63a9e923 SM |
3651 | # define __EXTENSIONS__ 1 |
3652 | $ac_includes_default | |
81ecdfbb RW |
3653 | int |
3654 | main () | |
3655 | { | |
25ed0b71 | 3656 | |
81ecdfbb RW |
3657 | ; |
3658 | return 0; | |
3659 | } | |
25ed0b71 | 3660 | _ACEOF |
81ecdfbb RW |
3661 | if ac_fn_c_try_compile "$LINENO"; then : |
3662 | ac_cv_safe_to_define___extensions__=yes | |
25ed0b71 | 3663 | else |
81ecdfbb | 3664 | ac_cv_safe_to_define___extensions__=no |
25ed0b71 | 3665 | fi |
81ecdfbb | 3666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 3667 | fi |
81ecdfbb RW |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3669 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3670 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3671 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
25ed0b71 | 3672 | |
81ecdfbb | 3673 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
25ed0b71 | 3674 | |
81ecdfbb | 3675 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
25ed0b71 | 3676 | |
81ecdfbb | 3677 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
25ed0b71 | 3678 | |
81ecdfbb | 3679 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
25ed0b71 | 3680 | |
25ed0b71 | 3681 | |
25ed0b71 KW |
3682 | |
3683 | ||
25ed0b71 KW |
3684 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. |
3685 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3686 | ||
3687 | if test $ac_cv_c_compiler_gnu = yes; then | |
81ecdfbb RW |
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
3689 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
63a9e923 | 3690 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
81ecdfbb | 3691 | $as_echo_n "(cached) " >&6 |
25ed0b71 KW |
3692 | else |
3693 | ac_pattern="Autoconf.*'x'" | |
81ecdfbb | 3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3695 | /* end confdefs.h. */ |
3696 | #include <sgtty.h> | |
3697 | Autoconf TIOCGETP | |
3698 | _ACEOF | |
3699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3700 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3701 | ac_cv_prog_gcc_traditional=yes |
3702 | else | |
3703 | ac_cv_prog_gcc_traditional=no | |
3704 | fi | |
3705 | rm -f conftest* | |
3706 | ||
3707 | ||
3708 | if test $ac_cv_prog_gcc_traditional = no; then | |
81ecdfbb | 3709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 KW |
3710 | /* end confdefs.h. */ |
3711 | #include <termio.h> | |
3712 | Autoconf TCGETA | |
3713 | _ACEOF | |
3714 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb | 3715 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
25ed0b71 KW |
3716 | ac_cv_prog_gcc_traditional=yes |
3717 | fi | |
3718 | rm -f conftest* | |
3719 | ||
3720 | fi | |
3721 | fi | |
81ecdfbb RW |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
3723 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
25ed0b71 KW |
3724 | if test $ac_cv_prog_gcc_traditional = yes; then |
3725 | CC="$CC -traditional" | |
3726 | fi | |
3727 | fi | |
3728 | ||
3729 | # Find a good install program. We prefer a C program (faster), | |
3730 | # so one script is as good as another. But avoid the broken or | |
3731 | # incompatible versions: | |
3732 | # SysV /etc/install, /usr/sbin/install | |
3733 | # SunOS /usr/etc/install | |
3734 | # IRIX /sbin/install | |
3735 | # AIX /bin/install | |
3736 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3737 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3738 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3739 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3740 | # OS/2's system install, which has a completely different semantic |
25ed0b71 | 3741 | # ./install, which can be erroneously created by make from ./install.sh. |
81ecdfbb RW |
3742 | # Reject install programs that cannot install multiple files. |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3744 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
25ed0b71 | 3745 | if test -z "$INSTALL"; then |
63a9e923 | 3746 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 3747 | $as_echo_n "(cached) " >&6 |
25ed0b71 KW |
3748 | else |
3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3750 | for as_dir in $PATH | |
3751 | do | |
3752 | IFS=$as_save_IFS | |
3753 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3754 | # Account for people who put trailing slashes in PATH elements. |
3755 | case $as_dir/ in #(( | |
3756 | ./ | .// | /[cC]/* | \ | |
25ed0b71 | 3757 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3758 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
25ed0b71 KW |
3759 | /usr/ucb/* ) ;; |
3760 | *) | |
3761 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3762 | # Don't use installbsd from OSF since it installs stuff as root | |
3763 | # by default. | |
3764 | for ac_prog in ginstall scoinst install; do | |
3765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
63a9e923 | 3766 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
430b7832 MM |
3767 | if test $ac_prog = install && |
3768 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3769 | # AIX install. It has an incompatible calling convention. | |
3770 | : | |
3771 | elif test $ac_prog = install && | |
3772 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3773 | # program-specific install script used by HP pwplus--don't use. | |
3774 | : | |
3775 | else | |
81ecdfbb RW |
3776 | rm -rf conftest.one conftest.two conftest.dir |
3777 | echo one > conftest.one | |
3778 | echo two > conftest.two | |
3779 | mkdir conftest.dir | |
3780 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3781 | test -s conftest.one && test -s conftest.two && | |
3782 | test -s conftest.dir/conftest.one && | |
3783 | test -s conftest.dir/conftest.two | |
3784 | then | |
3785 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3786 | break 3 | |
3787 | fi | |
430b7832 MM |
3788 | fi |
3789 | fi | |
25ed0b71 KW |
3790 | done |
3791 | done | |
3792 | ;; | |
3793 | esac | |
25ed0b71 | 3794 | |
81ecdfbb RW |
3795 | done |
3796 | IFS=$as_save_IFS | |
3797 | ||
3798 | rm -rf conftest.one conftest.two conftest.dir | |
d60d9f65 SS |
3799 | |
3800 | fi | |
3801 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 3802 | INSTALL=$ac_cv_path_install |
d60d9f65 | 3803 | else |
81ecdfbb RW |
3804 | # As a last resort, use the slow shell script. Don't cache a |
3805 | # value for INSTALL within a source directory, because that will | |
d60d9f65 | 3806 | # break other packages using the cache if that directory is |
81ecdfbb | 3807 | # removed, or if the value is a relative name. |
9255ee31 | 3808 | INSTALL=$ac_install_sh |
d60d9f65 SS |
3809 | fi |
3810 | fi | |
81ecdfbb RW |
3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3812 | $as_echo "$INSTALL" >&6; } | |
d60d9f65 SS |
3813 | |
3814 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3815 | # It thinks the first close brace ends the variable substitution. | |
3816 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3817 | ||
9255ee31 | 3818 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 3819 | |
d60d9f65 SS |
3820 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3821 | ||
5836a818 PP |
3822 | # Extract the first word of "ar", so it can be a program name with args. |
3823 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3825 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 3826 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 3827 | $as_echo_n "(cached) " >&6 |
c862e87b JM |
3828 | else |
3829 | if test -n "$AR"; then | |
3830 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3831 | else | |
25ed0b71 KW |
3832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3833 | for as_dir in $PATH | |
3834 | do | |
3835 | IFS=$as_save_IFS | |
3836 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3837 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 3838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5836a818 | 3839 | ac_cv_prog_AR="" |
81ecdfbb | 3840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3841 | break 2 |
3842 | fi | |
3843 | done | |
81ecdfbb RW |
3844 | done |
3845 | IFS=$as_save_IFS | |
9255ee31 | 3846 | |
5836a818 | 3847 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9255ee31 EZ |
3848 | fi |
3849 | fi | |
3850 | AR=$ac_cv_prog_AR | |
3851 | if test -n "$AR"; then | |
81ecdfbb RW |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
3853 | $as_echo "$AR" >&6; } | |
9255ee31 | 3854 | else |
81ecdfbb RW |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3856 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3857 | fi |
3858 | ||
81ecdfbb | 3859 | |
9255ee31 EZ |
3860 | test -n "$ARFLAGS" || ARFLAGS="cr" |
3861 | if test -n "$ac_tool_prefix"; then | |
3862 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3863 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3865 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 3866 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 3867 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
3868 | else |
3869 | if test -n "$RANLIB"; then | |
3870 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3871 | else | |
25ed0b71 KW |
3872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3873 | for as_dir in $PATH | |
3874 | do | |
3875 | IFS=$as_save_IFS | |
3876 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3877 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 3878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 3879 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 3880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3881 | break 2 |
3882 | fi | |
3883 | done | |
81ecdfbb RW |
3884 | done |
3885 | IFS=$as_save_IFS | |
9255ee31 EZ |
3886 | |
3887 | fi | |
3888 | fi | |
3889 | RANLIB=$ac_cv_prog_RANLIB | |
3890 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3892 | $as_echo "$RANLIB" >&6; } | |
9255ee31 | 3893 | else |
81ecdfbb RW |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3895 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3896 | fi |
3897 | ||
81ecdfbb | 3898 | |
9255ee31 EZ |
3899 | fi |
3900 | if test -z "$ac_cv_prog_RANLIB"; then | |
3901 | ac_ct_RANLIB=$RANLIB | |
3902 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3903 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3905 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 3906 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 3907 | $as_echo_n "(cached) " >&6 |
9255ee31 EZ |
3908 | else |
3909 | if test -n "$ac_ct_RANLIB"; then | |
3910 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3911 | else | |
25ed0b71 KW |
3912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3913 | for as_dir in $PATH | |
3914 | do | |
3915 | IFS=$as_save_IFS | |
3916 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3917 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 3918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
25ed0b71 | 3919 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 3920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25ed0b71 KW |
3921 | break 2 |
3922 | fi | |
3923 | done | |
81ecdfbb RW |
3924 | done |
3925 | IFS=$as_save_IFS | |
9255ee31 | 3926 | |
9255ee31 EZ |
3927 | fi |
3928 | fi | |
3929 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3930 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
3932 | $as_echo "$ac_ct_RANLIB" >&6; } | |
9255ee31 | 3933 | else |
81ecdfbb RW |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3935 | $as_echo "no" >&6; } | |
9255ee31 EZ |
3936 | fi |
3937 | ||
81ecdfbb RW |
3938 | if test "x$ac_ct_RANLIB" = x; then |
3939 | RANLIB=":" | |
3940 | else | |
3941 | case $cross_compiling:$ac_tool_warned in | |
3942 | yes:) | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3944 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3945 | ac_tool_warned=yes ;; | |
3946 | esac | |
3947 | RANLIB=$ac_ct_RANLIB | |
3948 | fi | |
9255ee31 EZ |
3949 | else |
3950 | RANLIB="$ac_cv_prog_RANLIB" | |
3951 | fi | |
3952 | ||
9255ee31 | 3953 | |
25ed0b71 | 3954 | MAKE_SHELL=/bin/sh |
9255ee31 | 3955 | |
9255ee31 | 3956 | |
81ecdfbb RW |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
3958 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
63a9e923 | 3959 | if ${ac_cv_c_const+:} false; then : |
81ecdfbb | 3960 | $as_echo_n "(cached) " >&6 |
9255ee31 | 3961 | else |
81ecdfbb | 3962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 3963 | /* end confdefs.h. */ |
9255ee31 EZ |
3964 | |
3965 | int | |
3966 | main () | |
3967 | { | |
63a9e923 | 3968 | |
9255ee31 | 3969 | #ifndef __cplusplus |
63a9e923 | 3970 | /* Ultrix mips cc rejects this sort of thing. */ |
9255ee31 | 3971 | typedef int charset[2]; |
63a9e923 | 3972 | const charset cs = { 0, 0 }; |
9255ee31 | 3973 | /* SunOS 4.1.1 cc rejects this. */ |
81ecdfbb RW |
3974 | char const *const *pcpcc; |
3975 | char **ppc; | |
9255ee31 EZ |
3976 | /* NEC SVR4.0.2 mips cc rejects this. */ |
3977 | struct point {int x, y;}; | |
3978 | static struct point const zero = {0,0}; | |
3979 | /* AIX XL C 1.02.0.0 rejects this. | |
3980 | It does not let you subtract one const X* pointer from another in | |
3981 | an arm of an if-expression whose if-part is not a constant | |
3982 | expression */ | |
3983 | const char *g = "string"; | |
81ecdfbb | 3984 | pcpcc = &g + (g ? g-g : 0); |
9255ee31 | 3985 | /* HPUX 7.0 cc rejects these. */ |
81ecdfbb RW |
3986 | ++pcpcc; |
3987 | ppc = (char**) pcpcc; | |
3988 | pcpcc = (char const *const *) ppc; | |
63a9e923 SM |
3989 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
3990 | char tx; | |
3991 | char *t = &tx; | |
9255ee31 EZ |
3992 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
3993 | ||
25ed0b71 | 3994 | *t++ = 0; |
81ecdfbb | 3995 | if (s) return 0; |
25ed0b71 KW |
3996 | } |
3997 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3998 | int x[] = {25, 17}; | |
3999 | const int *foo = &x[0]; | |
4000 | ++foo; | |
4001 | } | |
4002 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4003 | typedef const int *iptr; | |
4004 | iptr p = 0; | |
4005 | ++p; | |
4006 | } | |
63a9e923 | 4007 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
25ed0b71 | 4008 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
63a9e923 SM |
4009 | struct s { int j; const int *ap[3]; } bx; |
4010 | struct s *b = &bx; b->j = 5; | |
25ed0b71 KW |
4011 | } |
4012 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4013 | const int foo = 10; | |
81ecdfbb | 4014 | if (!foo) return 0; |
25ed0b71 | 4015 | } |
81ecdfbb | 4016 | return !cs[0] && !zero.x; |
25ed0b71 | 4017 | #endif |
9255ee31 | 4018 | |
25ed0b71 KW |
4019 | ; |
4020 | return 0; | |
4021 | } | |
9255ee31 | 4022 | _ACEOF |
81ecdfbb | 4023 | if ac_fn_c_try_compile "$LINENO"; then : |
25ed0b71 | 4024 | ac_cv_c_const=yes |
9255ee31 | 4025 | else |
81ecdfbb | 4026 | ac_cv_c_const=no |
c862e87b | 4027 | fi |
81ecdfbb | 4028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 4029 | fi |
81ecdfbb RW |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4031 | $as_echo "$ac_cv_c_const" >&6; } | |
25ed0b71 KW |
4032 | if test $ac_cv_c_const = no; then |
4033 | ||
81ecdfbb | 4034 | $as_echo "#define const /**/" >>confdefs.h |
9255ee31 | 4035 | |
c862e87b JM |
4036 | fi |
4037 | ||
81ecdfbb RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
4039 | $as_echo_n "checking for function prototypes... " >&6; } | |
4040 | if test "$ac_cv_prog_cc_c89" != no; then | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4042 | $as_echo "yes" >&6; } | |
25ed0b71 | 4043 | |
81ecdfbb | 4044 | $as_echo "#define PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4045 | |
4046 | ||
81ecdfbb | 4047 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
25ed0b71 KW |
4048 | |
4049 | else | |
81ecdfbb RW |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4051 | $as_echo "no" >&6; } | |
25ed0b71 KW |
4052 | fi |
4053 | ||
81ecdfbb RW |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
4055 | $as_echo_n "checking whether char is unsigned... " >&6; } | |
63a9e923 | 4056 | if ${ac_cv_c_char_unsigned+:} false; then : |
81ecdfbb | 4057 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4058 | else |
81ecdfbb | 4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4060 | /* end confdefs.h. */ |
9255ee31 EZ |
4061 | $ac_includes_default |
4062 | int | |
4063 | main () | |
4064 | { | |
25ed0b71 | 4065 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
63a9e923 SM |
4066 | test_array [0] = 0; |
4067 | return test_array [0]; | |
25ed0b71 | 4068 | |
9255ee31 EZ |
4069 | ; |
4070 | return 0; | |
4071 | } | |
4072 | _ACEOF | |
81ecdfbb | 4073 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4074 | ac_cv_c_char_unsigned=no |
d60d9f65 | 4075 | else |
81ecdfbb | 4076 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 4077 | fi |
81ecdfbb | 4078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4079 | fi |
81ecdfbb RW |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
4081 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | |
9255ee31 | 4082 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
81ecdfbb | 4083 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
d60d9f65 | 4084 | |
9255ee31 | 4085 | fi |
d60d9f65 | 4086 | |
cc88a640 JK |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
4088 | $as_echo_n "checking for working volatile... " >&6; } | |
63a9e923 | 4089 | if ${ac_cv_c_volatile+:} false; then : |
cc88a640 JK |
4090 | $as_echo_n "(cached) " >&6 |
4091 | else | |
4092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4093 | /* end confdefs.h. */ | |
4094 | ||
4095 | int | |
4096 | main () | |
4097 | { | |
4098 | ||
4099 | volatile int x; | |
4100 | int * volatile y = (int *) 0; | |
4101 | return !x && !y; | |
4102 | ; | |
4103 | return 0; | |
4104 | } | |
4105 | _ACEOF | |
4106 | if ac_fn_c_try_compile "$LINENO"; then : | |
4107 | ac_cv_c_volatile=yes | |
4108 | else | |
4109 | ac_cv_c_volatile=no | |
4110 | fi | |
4111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4112 | fi | |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | |
4114 | $as_echo "$ac_cv_c_volatile" >&6; } | |
4115 | if test $ac_cv_c_volatile = no; then | |
4116 | ||
4117 | $as_echo "#define volatile /**/" >>confdefs.h | |
4118 | ||
4119 | fi | |
4120 | ||
25ed0b71 | 4121 | |
81ecdfbb RW |
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
4123 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
63a9e923 | 4124 | if ${ac_cv_type_signal+:} false; then : |
81ecdfbb | 4125 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4126 | else |
81ecdfbb | 4127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4128 | /* end confdefs.h. */ |
d60d9f65 SS |
4129 | #include <sys/types.h> |
4130 | #include <signal.h> | |
d60d9f65 | 4131 | |
9255ee31 EZ |
4132 | int |
4133 | main () | |
4134 | { | |
81ecdfbb | 4135 | return *(signal (0, 0)) (0) == 1; |
9255ee31 EZ |
4136 | ; |
4137 | return 0; | |
4138 | } | |
4139 | _ACEOF | |
81ecdfbb RW |
4140 | if ac_fn_c_try_compile "$LINENO"; then : |
4141 | ac_cv_type_signal=int | |
d60d9f65 | 4142 | else |
81ecdfbb | 4143 | ac_cv_type_signal=void |
d60d9f65 | 4144 | fi |
81ecdfbb | 4145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4146 | fi |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
4148 | $as_echo "$ac_cv_type_signal" >&6; } | |
d60d9f65 | 4149 | |
25ed0b71 | 4150 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 4151 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
4152 | _ACEOF |
4153 | ||
d60d9f65 | 4154 | |
25ed0b71 | 4155 | |
81ecdfbb | 4156 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
63a9e923 | 4157 | if test "x$ac_cv_type_size_t" = xyes; then : |
25ed0b71 | 4158 | |
9255ee31 EZ |
4159 | else |
4160 | ||
25ed0b71 | 4161 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4162 | #define size_t unsigned int |
25ed0b71 | 4163 | _ACEOF |
9255ee31 EZ |
4164 | |
4165 | fi | |
4166 | ||
81ecdfbb | 4167 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
63a9e923 | 4168 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
25ed0b71 | 4169 | |
9255ee31 EZ |
4170 | else |
4171 | ||
25ed0b71 | 4172 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4173 | #define ssize_t int |
25ed0b71 | 4174 | _ACEOF |
d60d9f65 | 4175 | |
9255ee31 | 4176 | fi |
d60d9f65 | 4177 | |
25ed0b71 | 4178 | |
81ecdfbb RW |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4180 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
63a9e923 | 4181 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 4182 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 4183 | else |
81ecdfbb | 4184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4185 | /* end confdefs.h. */ |
4186 | #include <stdlib.h> | |
4187 | #include <stdarg.h> | |
4188 | #include <string.h> | |
4189 | #include <float.h> | |
4190 | ||
4191 | int | |
4192 | main () | |
4193 | { | |
4194 | ||
4195 | ; | |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
81ecdfbb | 4199 | if ac_fn_c_try_compile "$LINENO"; then : |
5bdf8622 DJ |
4200 | ac_cv_header_stdc=yes |
4201 | else | |
81ecdfbb | 4202 | ac_cv_header_stdc=no |
5bdf8622 | 4203 | fi |
81ecdfbb | 4204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 DJ |
4205 | |
4206 | if test $ac_cv_header_stdc = yes; then | |
4207 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4209 | /* end confdefs.h. */ |
4210 | #include <string.h> | |
4211 | ||
4212 | _ACEOF | |
4213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4214 | $EGREP "memchr" >/dev/null 2>&1; then : |
4215 | ||
5bdf8622 DJ |
4216 | else |
4217 | ac_cv_header_stdc=no | |
4218 | fi | |
4219 | rm -f conftest* | |
4220 | ||
4221 | fi | |
4222 | ||
4223 | if test $ac_cv_header_stdc = yes; then | |
4224 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4226 | /* end confdefs.h. */ |
4227 | #include <stdlib.h> | |
4228 | ||
4229 | _ACEOF | |
4230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4231 | $EGREP "free" >/dev/null 2>&1; then : |
4232 | ||
5bdf8622 DJ |
4233 | else |
4234 | ac_cv_header_stdc=no | |
4235 | fi | |
4236 | rm -f conftest* | |
4237 | ||
4238 | fi | |
4239 | ||
4240 | if test $ac_cv_header_stdc = yes; then | |
4241 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4242 | if test "$cross_compiling" = yes; then : |
5bdf8622 DJ |
4243 | : |
4244 | else | |
81ecdfbb | 4245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 DJ |
4246 | /* end confdefs.h. */ |
4247 | #include <ctype.h> | |
81ecdfbb | 4248 | #include <stdlib.h> |
5bdf8622 DJ |
4249 | #if ((' ' & 0x0FF) == 0x020) |
4250 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4251 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4252 | #else | |
4253 | # define ISLOWER(c) \ | |
4254 | (('a' <= (c) && (c) <= 'i') \ | |
4255 | || ('j' <= (c) && (c) <= 'r') \ | |
4256 | || ('s' <= (c) && (c) <= 'z')) | |
4257 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4258 | #endif | |
4259 | ||
4260 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4261 | int | |
4262 | main () | |
4263 | { | |
4264 | int i; | |
4265 | for (i = 0; i < 256; i++) | |
4266 | if (XOR (islower (i), ISLOWER (i)) | |
4267 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4268 | return 2; |
4269 | return 0; | |
5bdf8622 DJ |
4270 | } |
4271 | _ACEOF | |
81ecdfbb | 4272 | if ac_fn_c_try_run "$LINENO"; then : |
5bdf8622 | 4273 | |
81ecdfbb RW |
4274 | else |
4275 | ac_cv_header_stdc=no | |
5bdf8622 | 4276 | fi |
81ecdfbb RW |
4277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4278 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4279 | fi |
81ecdfbb | 4280 | |
5bdf8622 DJ |
4281 | fi |
4282 | fi | |
81ecdfbb RW |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4284 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5bdf8622 DJ |
4285 | if test $ac_cv_header_stdc = yes; then |
4286 | ||
81ecdfbb | 4287 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5bdf8622 DJ |
4288 | |
4289 | fi | |
4290 | ||
4291 | ||
81ecdfbb RW |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
4293 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
63a9e923 | 4294 | if ${ac_cv_header_stat_broken+:} false; then : |
81ecdfbb | 4295 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4296 | else |
81ecdfbb | 4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4298 | /* end confdefs.h. */ |
d60d9f65 SS |
4299 | #include <sys/types.h> |
4300 | #include <sys/stat.h> | |
4301 | ||
81ecdfbb RW |
4302 | #if defined S_ISBLK && defined S_IFDIR |
4303 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
d60d9f65 SS |
4304 | #endif |
4305 | ||
81ecdfbb RW |
4306 | #if defined S_ISBLK && defined S_IFCHR |
4307 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
d60d9f65 SS |
4308 | #endif |
4309 | ||
81ecdfbb RW |
4310 | #if defined S_ISLNK && defined S_IFREG |
4311 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4312 | #endif |
4313 | ||
81ecdfbb RW |
4314 | #if defined S_ISSOCK && defined S_IFREG |
4315 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
d60d9f65 SS |
4316 | #endif |
4317 | ||
9255ee31 | 4318 | _ACEOF |
81ecdfbb | 4319 | if ac_fn_c_try_compile "$LINENO"; then : |
d60d9f65 | 4320 | ac_cv_header_stat_broken=no |
81ecdfbb RW |
4321 | else |
4322 | ac_cv_header_stat_broken=yes | |
d60d9f65 | 4323 | fi |
81ecdfbb | 4324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4325 | fi |
81ecdfbb RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
4327 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
d60d9f65 | 4328 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 4329 | |
81ecdfbb | 4330 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
d60d9f65 SS |
4331 | |
4332 | fi | |
4333 | ||
4334 | ac_header_dirent=no | |
9255ee31 | 4335 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
4336 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4338 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
63a9e923 | 4339 | if eval \${$as_ac_Header+:} false; then : |
81ecdfbb RW |
4340 | $as_echo_n "(cached) " >&6 |
4341 | else | |
4342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 4343 | /* end confdefs.h. */ |
d60d9f65 SS |
4344 | #include <sys/types.h> |
4345 | #include <$ac_hdr> | |
9255ee31 EZ |
4346 | |
4347 | int | |
4348 | main () | |
4349 | { | |
4350 | if ((DIR *) 0) | |
4351 | return 0; | |
4352 | ; | |
4353 | return 0; | |
4354 | } | |
4355 | _ACEOF | |
81ecdfbb | 4356 | if ac_fn_c_try_compile "$LINENO"; then : |
9255ee31 | 4357 | eval "$as_ac_Header=yes" |
d60d9f65 | 4358 | else |
81ecdfbb | 4359 | eval "$as_ac_Header=no" |
d60d9f65 | 4360 | fi |
81ecdfbb | 4361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4362 | fi |
81ecdfbb RW |
4363 | eval ac_res=\$$as_ac_Header |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4365 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 4366 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
25ed0b71 | 4367 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4368 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 4369 | _ACEOF |
9255ee31 EZ |
4370 | |
4371 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 4372 | fi |
9255ee31 | 4373 | |
d60d9f65 SS |
4374 | done |
4375 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4376 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4378 | $as_echo_n "checking for library containing opendir... " >&6; } | |
63a9e923 | 4379 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 4380 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4381 | else |
25ed0b71 | 4382 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4384 | /* end confdefs.h. */ |
9255ee31 | 4385 | |
81ecdfbb RW |
4386 | /* Override any GCC internal prototype to avoid an error. |
4387 | Use char because int might match the return type of a GCC | |
4388 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4389 | #ifdef __cplusplus |
4390 | extern "C" | |
4391 | #endif | |
9255ee31 EZ |
4392 | char opendir (); |
4393 | int | |
4394 | main () | |
4395 | { | |
81ecdfbb | 4396 | return opendir (); |
9255ee31 EZ |
4397 | ; |
4398 | return 0; | |
4399 | } | |
4400 | _ACEOF | |
81ecdfbb RW |
4401 | for ac_lib in '' dir; do |
4402 | if test -z "$ac_lib"; then | |
4403 | ac_res="none required" | |
4404 | else | |
4405 | ac_res=-l$ac_lib | |
25ed0b71 | 4406 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4407 | fi |
4408 | if ac_fn_c_try_link "$LINENO"; then : | |
4409 | ac_cv_search_opendir=$ac_res | |
4410 | fi | |
4411 | rm -f core conftest.err conftest.$ac_objext \ | |
4412 | conftest$ac_exeext | |
63a9e923 | 4413 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
4414 | break |
4415 | fi | |
4416 | done | |
63a9e923 | 4417 | if ${ac_cv_search_opendir+:} false; then : |
25ed0b71 | 4418 | |
25ed0b71 | 4419 | else |
81ecdfbb | 4420 | ac_cv_search_opendir=no |
25ed0b71 | 4421 | fi |
81ecdfbb | 4422 | rm conftest.$ac_ext |
25ed0b71 | 4423 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4424 | fi |
81ecdfbb RW |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4426 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4427 | ac_res=$ac_cv_search_opendir | |
4428 | if test "$ac_res" != no; then : | |
4429 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
25ed0b71 | 4430 | |
d60d9f65 SS |
4431 | fi |
4432 | ||
4433 | else | |
81ecdfbb RW |
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
4435 | $as_echo_n "checking for library containing opendir... " >&6; } | |
63a9e923 | 4436 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 4437 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 4438 | else |
25ed0b71 | 4439 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 4441 | /* end confdefs.h. */ |
9255ee31 | 4442 | |
81ecdfbb RW |
4443 | /* Override any GCC internal prototype to avoid an error. |
4444 | Use char because int might match the return type of a GCC | |
4445 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
4446 | #ifdef __cplusplus |
4447 | extern "C" | |
4448 | #endif | |
9255ee31 EZ |
4449 | char opendir (); |
4450 | int | |
4451 | main () | |
4452 | { | |
81ecdfbb | 4453 | return opendir (); |
9255ee31 EZ |
4454 | ; |
4455 | return 0; | |
4456 | } | |
4457 | _ACEOF | |
81ecdfbb RW |
4458 | for ac_lib in '' x; do |
4459 | if test -z "$ac_lib"; then | |
4460 | ac_res="none required" | |
4461 | else | |
4462 | ac_res=-l$ac_lib | |
25ed0b71 | 4463 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
4464 | fi |
4465 | if ac_fn_c_try_link "$LINENO"; then : | |
4466 | ac_cv_search_opendir=$ac_res | |
4467 | fi | |
4468 | rm -f core conftest.err conftest.$ac_objext \ | |
4469 | conftest$ac_exeext | |
63a9e923 | 4470 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
4471 | break |
4472 | fi | |
4473 | done | |
63a9e923 | 4474 | if ${ac_cv_search_opendir+:} false; then : |
25ed0b71 | 4475 | |
25ed0b71 | 4476 | else |
81ecdfbb | 4477 | ac_cv_search_opendir=no |
d60d9f65 | 4478 | fi |
81ecdfbb | 4479 | rm conftest.$ac_ext |
25ed0b71 | 4480 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4481 | fi |
81ecdfbb RW |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4483 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4484 | ac_res=$ac_cv_search_opendir | |
4485 | if test "$ac_res" != no; then : | |
4486 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d60d9f65 SS |
4487 | |
4488 | fi | |
4489 | ||
25ed0b71 KW |
4490 | fi |
4491 | ||
4492 | ||
5836a818 | 4493 | for ac_func in fcntl kill lstat |
81ecdfbb RW |
4494 | do : |
4495 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4496 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 4497 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4498 | cat >>confdefs.h <<_ACEOF |
4499 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4500 | _ACEOF | |
25ed0b71 | 4501 | |
81ecdfbb RW |
4502 | fi |
4503 | done | |
25ed0b71 | 4504 | |
5836a818 | 4505 | for ac_func in memmove putenv select setenv setlocale \ |
81ecdfbb RW |
4506 | strcasecmp strpbrk tcgetattr vsnprintf |
4507 | do : | |
4508 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4509 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 4510 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4511 | cat >>confdefs.h <<_ACEOF |
4512 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4513 | _ACEOF | |
25ed0b71 | 4514 | |
81ecdfbb RW |
4515 | fi |
4516 | done | |
4517 | ||
4518 | for ac_func in isascii isxdigit | |
4519 | do : | |
4520 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4521 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 4522 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4523 | cat >>confdefs.h <<_ACEOF |
4524 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25ed0b71 | 4525 | _ACEOF |
430b7832 | 4526 | |
81ecdfbb RW |
4527 | fi |
4528 | done | |
430b7832 | 4529 | |
81ecdfbb RW |
4530 | for ac_func in getpwent getpwnam getpwuid |
4531 | do : | |
4532 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4533 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 4534 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
4535 | cat >>confdefs.h <<_ACEOF |
4536 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4537 | _ACEOF | |
430b7832 | 4538 | |
81ecdfbb RW |
4539 | fi |
4540 | done | |
430b7832 | 4541 | |
d60d9f65 | 4542 | |
81ecdfbb RW |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 |
4544 | $as_echo_n "checking for working strcoll... " >&6; } | |
63a9e923 | 4545 | if ${ac_cv_func_strcoll_works+:} false; then : |
81ecdfbb RW |
4546 | $as_echo_n "(cached) " >&6 |
4547 | else | |
4548 | if test "$cross_compiling" = yes; then : | |
4549 | ac_cv_func_strcoll_works=no | |
4550 | else | |
4551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4552 | /* end confdefs.h. */ | |
4553 | $ac_includes_default | |
25ed0b71 KW |
4554 | int |
4555 | main () | |
4556 | { | |
81ecdfbb RW |
4557 | return (strcoll ("abc", "def") >= 0 || |
4558 | strcoll ("ABC", "DEF") >= 0 || | |
4559 | strcoll ("123", "456") >= 0) | |
9255ee31 EZ |
4560 | ; |
4561 | return 0; | |
4562 | } | |
4563 | _ACEOF | |
81ecdfbb RW |
4564 | if ac_fn_c_try_run "$LINENO"; then : |
4565 | ac_cv_func_strcoll_works=yes | |
d60d9f65 | 4566 | else |
81ecdfbb RW |
4567 | ac_cv_func_strcoll_works=no |
4568 | fi | |
4569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4570 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4571 | fi | |
25ed0b71 | 4572 | |
d60d9f65 | 4573 | fi |
81ecdfbb RW |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 |
4575 | $as_echo "$ac_cv_func_strcoll_works" >&6; } | |
4576 | if test $ac_cv_func_strcoll_works = yes; then | |
4577 | ||
4578 | $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h | |
4579 | ||
d60d9f65 | 4580 | fi |
81ecdfbb RW |
4581 | |
4582 | ||
5836a818 | 4583 | for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ |
81ecdfbb RW |
4584 | limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h |
4585 | do : | |
4586 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4587 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
63a9e923 | 4588 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
25ed0b71 | 4589 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4590 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4591 | _ACEOF |
9255ee31 | 4592 | |
d60d9f65 | 4593 | fi |
81ecdfbb | 4594 | |
d60d9f65 SS |
4595 | done |
4596 | ||
5836a818 | 4597 | for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h |
81ecdfbb RW |
4598 | do : |
4599 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4600 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
63a9e923 | 4601 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
4602 | cat >>confdefs.h <<_ACEOF |
4603 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4604 | _ACEOF | |
25ed0b71 | 4605 | |
81ecdfbb | 4606 | fi |
5bdf8622 | 4607 | |
81ecdfbb | 4608 | done |
5bdf8622 DJ |
4609 | |
4610 | ||
81ecdfbb RW |
4611 | for ac_header in sys/ptem.h |
4612 | do : | |
4613 | ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " | |
4614 | #if HAVE_SYS_STREAM_H | |
4615 | # include <sys/stream.h> | |
4616 | #endif | |
5bdf8622 | 4617 | |
81ecdfbb | 4618 | " |
63a9e923 | 4619 | if test "x$ac_cv_header_sys_ptem_h" = xyes; then : |
81ecdfbb RW |
4620 | cat >>confdefs.h <<_ACEOF |
4621 | #define HAVE_SYS_PTEM_H 1 | |
4622 | _ACEOF | |
5bdf8622 | 4623 | |
81ecdfbb | 4624 | fi |
5bdf8622 | 4625 | |
81ecdfbb | 4626 | done |
5bdf8622 DJ |
4627 | |
4628 | ||
cc88a640 JK |
4629 | # Check whether --enable-largefile was given. |
4630 | if test "${enable_largefile+set}" = set; then : | |
4631 | enableval=$enable_largefile; | |
4632 | fi | |
4633 | ||
4634 | if test "$enable_largefile" != no; then | |
4635 | ||
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4637 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
63a9e923 | 4638 | if ${ac_cv_sys_largefile_CC+:} false; then : |
cc88a640 JK |
4639 | $as_echo_n "(cached) " >&6 |
4640 | else | |
4641 | ac_cv_sys_largefile_CC=no | |
4642 | if test "$GCC" != yes; then | |
4643 | ac_save_CC=$CC | |
4644 | while :; do | |
4645 | # IRIX 6.2 and later do not support large files by default, | |
4646 | # so use the C compiler's -n32 option if that helps. | |
4647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4648 | /* end confdefs.h. */ | |
4649 | #include <sys/types.h> | |
4650 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4651 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4652 | since some C++ compilers masquerading as C compilers | |
4653 | incorrectly reject 9223372036854775807. */ | |
4654 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4655 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4656 | && LARGE_OFF_T % 2147483647 == 1) | |
4657 | ? 1 : -1]; | |
4658 | int | |
4659 | main () | |
4660 | { | |
4661 | ||
4662 | ; | |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
4666 | if ac_fn_c_try_compile "$LINENO"; then : | |
4667 | break | |
4668 | fi | |
4669 | rm -f core conftest.err conftest.$ac_objext | |
4670 | CC="$CC -n32" | |
4671 | if ac_fn_c_try_compile "$LINENO"; then : | |
4672 | ac_cv_sys_largefile_CC=' -n32'; break | |
4673 | fi | |
4674 | rm -f core conftest.err conftest.$ac_objext | |
4675 | break | |
4676 | done | |
4677 | CC=$ac_save_CC | |
4678 | rm -f conftest.$ac_ext | |
4679 | fi | |
4680 | fi | |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4682 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4683 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4684 | CC=$CC$ac_cv_sys_largefile_CC | |
4685 | fi | |
4686 | ||
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4688 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
63a9e923 | 4689 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
cc88a640 JK |
4690 | $as_echo_n "(cached) " >&6 |
4691 | else | |
4692 | while :; do | |
4693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4694 | /* end confdefs.h. */ | |
4695 | #include <sys/types.h> | |
4696 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4697 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4698 | since some C++ compilers masquerading as C compilers | |
4699 | incorrectly reject 9223372036854775807. */ | |
4700 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4701 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4702 | && LARGE_OFF_T % 2147483647 == 1) | |
4703 | ? 1 : -1]; | |
4704 | int | |
4705 | main () | |
4706 | { | |
4707 | ||
4708 | ; | |
4709 | return 0; | |
4710 | } | |
4711 | _ACEOF | |
4712 | if ac_fn_c_try_compile "$LINENO"; then : | |
4713 | ac_cv_sys_file_offset_bits=no; break | |
4714 | fi | |
4715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4717 | /* end confdefs.h. */ | |
4718 | #define _FILE_OFFSET_BITS 64 | |
4719 | #include <sys/types.h> | |
4720 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4721 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4722 | since some C++ compilers masquerading as C compilers | |
4723 | incorrectly reject 9223372036854775807. */ | |
4724 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4725 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4726 | && LARGE_OFF_T % 2147483647 == 1) | |
4727 | ? 1 : -1]; | |
4728 | int | |
4729 | main () | |
4730 | { | |
4731 | ||
4732 | ; | |
4733 | return 0; | |
4734 | } | |
4735 | _ACEOF | |
4736 | if ac_fn_c_try_compile "$LINENO"; then : | |
4737 | ac_cv_sys_file_offset_bits=64; break | |
4738 | fi | |
4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4740 | ac_cv_sys_file_offset_bits=unknown | |
4741 | break | |
4742 | done | |
4743 | fi | |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4745 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4746 | case $ac_cv_sys_file_offset_bits in #( | |
4747 | no | unknown) ;; | |
4748 | *) | |
4749 | cat >>confdefs.h <<_ACEOF | |
4750 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4751 | _ACEOF | |
4752 | ;; | |
4753 | esac | |
4754 | rm -rf conftest* | |
4755 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4757 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
63a9e923 | 4758 | if ${ac_cv_sys_large_files+:} false; then : |
cc88a640 JK |
4759 | $as_echo_n "(cached) " >&6 |
4760 | else | |
4761 | while :; do | |
4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4763 | /* end confdefs.h. */ | |
4764 | #include <sys/types.h> | |
4765 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4766 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4767 | since some C++ compilers masquerading as C compilers | |
4768 | incorrectly reject 9223372036854775807. */ | |
4769 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4770 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4771 | && LARGE_OFF_T % 2147483647 == 1) | |
4772 | ? 1 : -1]; | |
4773 | int | |
4774 | main () | |
4775 | { | |
4776 | ||
4777 | ; | |
4778 | return 0; | |
4779 | } | |
4780 | _ACEOF | |
4781 | if ac_fn_c_try_compile "$LINENO"; then : | |
4782 | ac_cv_sys_large_files=no; break | |
4783 | fi | |
4784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4786 | /* end confdefs.h. */ | |
4787 | #define _LARGE_FILES 1 | |
4788 | #include <sys/types.h> | |
4789 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4790 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4791 | since some C++ compilers masquerading as C compilers | |
4792 | incorrectly reject 9223372036854775807. */ | |
4793 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4794 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4795 | && LARGE_OFF_T % 2147483647 == 1) | |
4796 | ? 1 : -1]; | |
4797 | int | |
4798 | main () | |
4799 | { | |
4800 | ||
4801 | ; | |
4802 | return 0; | |
4803 | } | |
4804 | _ACEOF | |
4805 | if ac_fn_c_try_compile "$LINENO"; then : | |
4806 | ac_cv_sys_large_files=1; break | |
4807 | fi | |
4808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4809 | ac_cv_sys_large_files=unknown | |
4810 | break | |
4811 | done | |
4812 | fi | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4814 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4815 | case $ac_cv_sys_large_files in #( | |
4816 | no | unknown) ;; | |
4817 | *) | |
4818 | cat >>confdefs.h <<_ACEOF | |
4819 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4820 | _ACEOF | |
4821 | ;; | |
4822 | esac | |
4823 | rm -rf conftest* | |
4824 | fi | |
63a9e923 SM |
4825 | |
4826 | ||
cc88a640 JK |
4827 | fi |
4828 | ||
4829 | ||
5bdf8622 | 4830 | |
81ecdfbb RW |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 |
4832 | $as_echo_n "checking for type of signal functions... " >&6; } | |
63a9e923 | 4833 | if ${bash_cv_signal_vintage+:} false; then : |
81ecdfbb RW |
4834 | $as_echo_n "(cached) " >&6 |
4835 | else | |
5bdf8622 | 4836 | |
81ecdfbb RW |
4837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4838 | /* end confdefs.h. */ | |
4839 | #include <signal.h> | |
4840 | int | |
4841 | main () | |
4842 | { | |
4843 | ||
4844 | sigset_t ss; | |
4845 | struct sigaction sa; | |
4846 | sigemptyset(&ss); sigsuspend(&ss); | |
4847 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
4848 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
5bdf8622 | 4849 | |
81ecdfbb RW |
4850 | ; |
4851 | return 0; | |
4852 | } | |
4853 | _ACEOF | |
4854 | if ac_fn_c_try_link "$LINENO"; then : | |
4855 | bash_cv_signal_vintage=posix | |
4856 | else | |
5bdf8622 | 4857 | |
81ecdfbb RW |
4858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4859 | /* end confdefs.h. */ | |
4860 | #include <signal.h> | |
4861 | int | |
4862 | main () | |
5bdf8622 | 4863 | { |
81ecdfbb RW |
4864 | |
4865 | int mask = sigmask(SIGINT); | |
4866 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
4867 | ||
4868 | ; | |
4869 | return 0; | |
5bdf8622 | 4870 | } |
81ecdfbb RW |
4871 | _ACEOF |
4872 | if ac_fn_c_try_link "$LINENO"; then : | |
4873 | bash_cv_signal_vintage=4.2bsd | |
4874 | else | |
5bdf8622 | 4875 | |
81ecdfbb RW |
4876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4877 | /* end confdefs.h. */ | |
4878 | ||
4879 | #include <signal.h> | |
4880 | RETSIGTYPE foo() { } | |
5bdf8622 DJ |
4881 | int |
4882 | main () | |
4883 | { | |
81ecdfbb RW |
4884 | |
4885 | int mask = sigmask(SIGINT); | |
4886 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
4887 | sighold(SIGINT); sigpause(SIGINT); | |
4888 | ||
5bdf8622 DJ |
4889 | ; |
4890 | return 0; | |
4891 | } | |
4892 | _ACEOF | |
81ecdfbb RW |
4893 | if ac_fn_c_try_link "$LINENO"; then : |
4894 | bash_cv_signal_vintage=svr3 | |
5bdf8622 | 4895 | else |
81ecdfbb | 4896 | bash_cv_signal_vintage=v7 |
5bdf8622 | 4897 | |
5bdf8622 | 4898 | fi |
81ecdfbb RW |
4899 | rm -f core conftest.err conftest.$ac_objext \ |
4900 | conftest$ac_exeext conftest.$ac_ext | |
4901 | ||
5bdf8622 | 4902 | fi |
81ecdfbb RW |
4903 | rm -f core conftest.err conftest.$ac_objext \ |
4904 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 DJ |
4905 | |
4906 | fi | |
81ecdfbb RW |
4907 | rm -f core conftest.err conftest.$ac_objext \ |
4908 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 4909 | |
81ecdfbb | 4910 | fi |
5bdf8622 | 4911 | |
81ecdfbb RW |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 |
4913 | $as_echo "$bash_cv_signal_vintage" >&6; } | |
4914 | if test "$bash_cv_signal_vintage" = posix; then | |
4915 | $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4916 | |
81ecdfbb RW |
4917 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
4918 | $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h | |
5bdf8622 | 4919 | |
81ecdfbb RW |
4920 | elif test "$bash_cv_signal_vintage" = svr3; then |
4921 | $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h | |
5bdf8622 | 4922 | |
81ecdfbb RW |
4923 | fi |
4924 | ||
4925 | ||
4926 | ||
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 | |
4928 | $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } | |
63a9e923 | 4929 | if ${bash_cv_must_reinstall_sighandlers+:} false; then : |
81ecdfbb RW |
4930 | $as_echo_n "(cached) " >&6 |
4931 | else | |
4932 | if test "$cross_compiling" = yes; then : | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 | |
4934 | $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} | |
4935 | bash_cv_must_reinstall_sighandlers=no | |
4936 | ||
4937 | else | |
4938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4939 | /* end confdefs.h. */ | |
4940 | ||
4941 | #include <signal.h> | |
4942 | #ifdef HAVE_UNISTD_H | |
4943 | #include <unistd.h> | |
5bdf8622 DJ |
4944 | #endif |
4945 | ||
81ecdfbb | 4946 | typedef RETSIGTYPE sigfunc(); |
5bdf8622 | 4947 | |
81ecdfbb RW |
4948 | int nsigint; |
4949 | ||
4950 | #ifdef HAVE_POSIX_SIGNALS | |
4951 | sigfunc * | |
4952 | set_signal_handler(sig, handler) | |
4953 | int sig; | |
4954 | sigfunc *handler; | |
5bdf8622 | 4955 | { |
81ecdfbb RW |
4956 | struct sigaction act, oact; |
4957 | act.sa_handler = handler; | |
4958 | act.sa_flags = 0; | |
4959 | sigemptyset (&act.sa_mask); | |
4960 | sigemptyset (&oact.sa_mask); | |
4961 | sigaction (sig, &act, &oact); | |
4962 | return (oact.sa_handler); | |
4963 | } | |
5bdf8622 | 4964 | #else |
81ecdfbb | 4965 | #define set_signal_handler(s, h) signal(s, h) |
5bdf8622 | 4966 | #endif |
81ecdfbb RW |
4967 | |
4968 | RETSIGTYPE | |
4969 | sigint(s) | |
4970 | int s; | |
4971 | { | |
4972 | nsigint++; | |
5bdf8622 | 4973 | } |
5bdf8622 | 4974 | |
81ecdfbb | 4975 | main() |
5bdf8622 | 4976 | { |
81ecdfbb RW |
4977 | nsigint = 0; |
4978 | set_signal_handler(SIGINT, sigint); | |
4979 | kill((int)getpid(), SIGINT); | |
4980 | kill((int)getpid(), SIGINT); | |
4981 | exit(nsigint != 2); | |
5bdf8622 | 4982 | } |
81ecdfbb | 4983 | |
5bdf8622 | 4984 | _ACEOF |
81ecdfbb RW |
4985 | if ac_fn_c_try_run "$LINENO"; then : |
4986 | bash_cv_must_reinstall_sighandlers=no | |
5bdf8622 | 4987 | else |
81ecdfbb | 4988 | bash_cv_must_reinstall_sighandlers=yes |
5bdf8622 | 4989 | fi |
81ecdfbb RW |
4990 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4991 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 4992 | fi |
5bdf8622 DJ |
4993 | |
4994 | fi | |
5bdf8622 | 4995 | |
81ecdfbb RW |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 |
4997 | $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } | |
4998 | if test $bash_cv_must_reinstall_sighandlers = yes; then | |
4999 | $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h | |
5bdf8622 | 5000 | |
81ecdfbb | 5001 | fi |
5bdf8622 DJ |
5002 | |
5003 | ||
5bdf8622 | 5004 | |
81ecdfbb RW |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
5006 | $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } | |
63a9e923 | 5007 | if ${bash_cv_func_sigsetjmp+:} false; then : |
81ecdfbb RW |
5008 | $as_echo_n "(cached) " >&6 |
5009 | else | |
5010 | if test "$cross_compiling" = yes; then : | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 | |
5012 | $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} | |
5013 | bash_cv_func_sigsetjmp=missing | |
5bdf8622 | 5014 | |
81ecdfbb RW |
5015 | else |
5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5017 | /* end confdefs.h. */ | |
5bdf8622 | 5018 | |
81ecdfbb RW |
5019 | #ifdef HAVE_UNISTD_H |
5020 | #include <unistd.h> | |
5021 | #endif | |
5022 | #include <sys/types.h> | |
5023 | #include <signal.h> | |
5024 | #include <setjmp.h> | |
5bdf8622 | 5025 | |
81ecdfbb | 5026 | main() |
5bdf8622 | 5027 | { |
81ecdfbb RW |
5028 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
5029 | exit (1); | |
5bdf8622 | 5030 | #else |
5bdf8622 | 5031 | |
81ecdfbb RW |
5032 | int code; |
5033 | sigset_t set, oset; | |
5034 | sigjmp_buf xx; | |
5035 | ||
5036 | /* get the mask */ | |
5037 | sigemptyset(&set); | |
5038 | sigemptyset(&oset); | |
5039 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
5040 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
5041 | ||
5042 | /* save it */ | |
5043 | code = sigsetjmp(xx, 1); | |
5044 | if (code) | |
5045 | exit(0); /* could get sigmask and compare to oset here. */ | |
5046 | ||
5047 | /* change it */ | |
5048 | sigaddset(&set, SIGINT); | |
5049 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
5050 | ||
5051 | /* and siglongjmp */ | |
5052 | siglongjmp(xx, 10); | |
5053 | exit(1); | |
5054 | #endif | |
5bdf8622 DJ |
5055 | } |
5056 | _ACEOF | |
81ecdfbb RW |
5057 | if ac_fn_c_try_run "$LINENO"; then : |
5058 | bash_cv_func_sigsetjmp=present | |
5bdf8622 | 5059 | else |
81ecdfbb | 5060 | bash_cv_func_sigsetjmp=missing |
5bdf8622 | 5061 | fi |
81ecdfbb RW |
5062 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5063 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5064 | fi |
5bdf8622 DJ |
5065 | |
5066 | fi | |
5bdf8622 | 5067 | |
81ecdfbb RW |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 |
5069 | $as_echo "$bash_cv_func_sigsetjmp" >&6; } | |
5070 | if test $bash_cv_func_sigsetjmp = present; then | |
5071 | $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h | |
5bdf8622 | 5072 | |
81ecdfbb RW |
5073 | fi |
5074 | ||
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 | |
5076 | $as_echo_n "checking for lstat... " >&6; } | |
63a9e923 | 5077 | if ${bash_cv_func_lstat+:} false; then : |
81ecdfbb | 5078 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 5079 | else |
81ecdfbb | 5080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5081 | /* end confdefs.h. */ |
81ecdfbb RW |
5082 | |
5083 | #include <sys/types.h> | |
5084 | #include <sys/stat.h> | |
5085 | ||
5bdf8622 DJ |
5086 | int |
5087 | main () | |
5088 | { | |
81ecdfbb | 5089 | lstat(".",(struct stat *)0); |
5bdf8622 DJ |
5090 | ; |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
81ecdfbb RW |
5094 | if ac_fn_c_try_link "$LINENO"; then : |
5095 | bash_cv_func_lstat=yes | |
5bdf8622 | 5096 | else |
81ecdfbb | 5097 | bash_cv_func_lstat=no |
5bdf8622 | 5098 | fi |
81ecdfbb RW |
5099 | rm -f core conftest.err conftest.$ac_objext \ |
5100 | conftest$ac_exeext conftest.$ac_ext | |
5bdf8622 | 5101 | fi |
81ecdfbb RW |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 |
5103 | $as_echo "$bash_cv_func_lstat" >&6; } | |
5104 | if test $bash_cv_func_lstat = yes; then | |
5105 | $as_echo "#define HAVE_LSTAT 1" >>confdefs.h | |
5bdf8622 DJ |
5106 | |
5107 | fi | |
5108 | ||
5109 | ||
81ecdfbb RW |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 |
5111 | $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } | |
63a9e923 | 5112 | if ${bash_cv_func_strcoll_broken+:} false; then : |
81ecdfbb RW |
5113 | $as_echo_n "(cached) " >&6 |
5114 | else | |
5115 | if test "$cross_compiling" = yes; then : | |
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 | |
5117 | $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} | |
5118 | bash_cv_func_strcoll_broken=no | |
5bdf8622 | 5119 | |
81ecdfbb RW |
5120 | else |
5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5122 | /* end confdefs.h. */ | |
5bdf8622 | 5123 | |
81ecdfbb RW |
5124 | #include <stdio.h> |
5125 | #if defined (HAVE_LOCALE_H) | |
5126 | #include <locale.h> | |
5127 | #endif | |
5bdf8622 | 5128 | |
81ecdfbb RW |
5129 | main(c, v) |
5130 | int c; | |
5131 | char *v[]; | |
5132 | { | |
5133 | int r1, r2; | |
5134 | char *deflocale, *defcoll; | |
5bdf8622 | 5135 | |
81ecdfbb RW |
5136 | #ifdef HAVE_SETLOCALE |
5137 | deflocale = setlocale(LC_ALL, ""); | |
5138 | defcoll = setlocale(LC_COLLATE, ""); | |
5139 | #endif | |
5bdf8622 | 5140 | |
81ecdfbb RW |
5141 | #ifdef HAVE_STRCOLL |
5142 | /* These two values are taken from tests/glob-test. */ | |
5143 | r1 = strcoll("abd", "aXd"); | |
5144 | #else | |
5145 | r1 = 0; | |
5146 | #endif | |
5147 | r2 = strcmp("abd", "aXd"); | |
5bdf8622 | 5148 | |
81ecdfbb RW |
5149 | /* These two should both be greater than 0. It is permissible for |
5150 | a system to return different values, as long as the sign is the | |
5151 | same. */ | |
5bdf8622 | 5152 | |
81ecdfbb RW |
5153 | /* Exit with 1 (failure) if these two values are both > 0, since |
5154 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
5155 | in the default locale. */ | |
5156 | exit (r1 > 0 && r2 > 0); | |
5157 | } | |
5bdf8622 | 5158 | |
81ecdfbb RW |
5159 | _ACEOF |
5160 | if ac_fn_c_try_run "$LINENO"; then : | |
5161 | bash_cv_func_strcoll_broken=yes | |
5162 | else | |
5163 | bash_cv_func_strcoll_broken=no | |
5164 | fi | |
5165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5166 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5167 | fi | |
5bdf8622 | 5168 | |
81ecdfbb | 5169 | fi |
5bdf8622 | 5170 | |
81ecdfbb RW |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 |
5172 | $as_echo "$bash_cv_func_strcoll_broken" >&6; } | |
5173 | if test $bash_cv_func_strcoll_broken = yes; then | |
5174 | $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h | |
5bdf8622 | 5175 | |
81ecdfbb | 5176 | fi |
5bdf8622 DJ |
5177 | |
5178 | ||
81ecdfbb RW |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ctype macros accept non-ascii characters" >&5 |
5180 | $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; } | |
63a9e923 | 5181 | if ${bash_cv_func_ctype_nonascii+:} false; then : |
81ecdfbb RW |
5182 | $as_echo_n "(cached) " >&6 |
5183 | else | |
5184 | if test "$cross_compiling" = yes; then : | |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 | |
5186 | $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} | |
5187 | bash_cv_func_ctype_nonascii=no | |
5bdf8622 | 5188 | |
5bdf8622 | 5189 | else |
81ecdfbb | 5190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5191 | /* end confdefs.h. */ |
5bdf8622 | 5192 | |
81ecdfbb RW |
5193 | #ifdef HAVE_LOCALE_H |
5194 | #include <locale.h> | |
5195 | #endif | |
5196 | #include <stdio.h> | |
5197 | #include <ctype.h> | |
5198 | ||
5199 | main(c, v) | |
5200 | int c; | |
5201 | char *v[]; | |
5202 | { | |
5203 | char *deflocale; | |
5204 | unsigned char x; | |
5205 | int r1, r2; | |
5206 | ||
5207 | #ifdef HAVE_SETLOCALE | |
5208 | /* We take a shot here. If that locale is not known, try the | |
5209 | system default. We try this one because '\342' (226) is | |
5210 | known to be a printable character in that locale. */ | |
5211 | deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); | |
5212 | if (deflocale == 0) | |
5213 | deflocale = setlocale(LC_ALL, ""); | |
5214 | #endif | |
5215 | ||
5216 | x = '\342'; | |
5217 | r1 = isprint(x); | |
5218 | x -= 128; | |
5219 | r2 = isprint(x); | |
5220 | exit (r1 == 0 || r2 == 0); | |
5221 | } | |
5bdf8622 | 5222 | |
5bdf8622 | 5223 | _ACEOF |
81ecdfbb RW |
5224 | if ac_fn_c_try_run "$LINENO"; then : |
5225 | bash_cv_func_ctype_nonascii=yes | |
d60d9f65 | 5226 | else |
81ecdfbb RW |
5227 | bash_cv_func_ctype_nonascii=no |
5228 | fi | |
5229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5230 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5bdf8622 | 5231 | fi |
25ed0b71 | 5232 | |
d60d9f65 | 5233 | fi |
5bdf8622 | 5234 | |
81ecdfbb RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_ctype_nonascii" >&5 |
5236 | $as_echo "$bash_cv_func_ctype_nonascii" >&6; } | |
5237 | if test $bash_cv_func_ctype_nonascii = yes; then | |
5238 | $as_echo "#define CTYPE_NON_ASCII 1" >>confdefs.h | |
d60d9f65 SS |
5239 | |
5240 | fi | |
5241 | ||
25ed0b71 | 5242 | |
81ecdfbb RW |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 |
5244 | $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } | |
63a9e923 | 5245 | if ${bash_cv_getpw_declared+:} false; then : |
81ecdfbb | 5246 | $as_echo_n "(cached) " >&6 |
9255ee31 | 5247 | else |
81ecdfbb | 5248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5249 | /* end confdefs.h. */ |
25ed0b71 | 5250 | |
81ecdfbb RW |
5251 | #include <sys/types.h> |
5252 | #ifdef HAVE_UNISTD_H | |
5253 | # include <unistd.h> | |
5254 | #endif | |
5255 | #include <pwd.h> | |
25ed0b71 | 5256 | |
9255ee31 | 5257 | _ACEOF |
81ecdfbb RW |
5258 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5259 | $EGREP "getpwuid" >/dev/null 2>&1; then : | |
5260 | bash_cv_getpw_declared=yes | |
9255ee31 | 5261 | else |
81ecdfbb | 5262 | bash_cv_getpw_declared=no |
9255ee31 | 5263 | fi |
81ecdfbb | 5264 | rm -f conftest* |
25ed0b71 | 5265 | |
25ed0b71 | 5266 | fi |
25ed0b71 | 5267 | |
81ecdfbb RW |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 |
5269 | $as_echo "$bash_cv_getpw_declared" >&6; } | |
5270 | if test $bash_cv_getpw_declared = yes; then | |
5271 | $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h | |
25ed0b71 KW |
5272 | |
5273 | fi | |
9255ee31 | 5274 | |
25ed0b71 | 5275 | |
81ecdfbb RW |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 |
5277 | $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } | |
63a9e923 | 5278 | if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : |
81ecdfbb RW |
5279 | $as_echo_n "(cached) " >&6 |
5280 | else | |
5281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5282 | /* end confdefs.h. */ | |
5283 | #include <sys/types.h> | |
5284 | #include <termios.h> | |
5285 | #ifdef TIOCGWINSZ | |
5286 | yes | |
5287 | #endif | |
d60d9f65 | 5288 | |
81ecdfbb RW |
5289 | _ACEOF |
5290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5291 | $EGREP "yes" >/dev/null 2>&1; then : | |
5292 | ac_cv_sys_tiocgwinsz_in_termios_h=yes | |
5293 | else | |
5294 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5295 | fi | |
5296 | rm -f conftest* | |
25ed0b71 | 5297 | |
81ecdfbb RW |
5298 | fi |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 | |
5300 | $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } | |
25ed0b71 | 5301 | |
81ecdfbb RW |
5302 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 | |
5304 | $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } | |
63a9e923 | 5305 | if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : |
81ecdfbb RW |
5306 | $as_echo_n "(cached) " >&6 |
5307 | else | |
5308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5bdf8622 | 5309 | /* end confdefs.h. */ |
81ecdfbb RW |
5310 | #include <sys/types.h> |
5311 | #include <sys/ioctl.h> | |
5312 | #ifdef TIOCGWINSZ | |
5313 | yes | |
5bdf8622 DJ |
5314 | #endif |
5315 | ||
5bdf8622 | 5316 | _ACEOF |
81ecdfbb RW |
5317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5318 | $EGREP "yes" >/dev/null 2>&1; then : | |
5319 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes | |
5bdf8622 | 5320 | else |
81ecdfbb | 5321 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
5bdf8622 | 5322 | fi |
81ecdfbb | 5323 | rm -f conftest* |
5bdf8622 DJ |
5324 | |
5325 | fi | |
81ecdfbb RW |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
5327 | $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } | |
5bdf8622 | 5328 | |
81ecdfbb | 5329 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5bdf8622 | 5330 | |
81ecdfbb RW |
5331 | $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h |
5332 | ||
5333 | fi | |
5334 | fi | |
5bdf8622 DJ |
5335 | |
5336 | ||
cc88a640 JK |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 |
5338 | $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } | |
63a9e923 | 5339 | if ${ac_cv_have_sig_atomic_t+:} false; then : |
cc88a640 JK |
5340 | $as_echo_n "(cached) " >&6 |
5341 | else | |
5342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5343 | /* end confdefs.h. */ | |
5344 | ||
5345 | #include <signal.h> | |
5346 | ||
5347 | int | |
5348 | main () | |
5349 | { | |
5350 | sig_atomic_t x; | |
5351 | ; | |
5352 | return 0; | |
5353 | } | |
5354 | _ACEOF | |
5355 | if ac_fn_c_try_link "$LINENO"; then : | |
5356 | ac_cv_have_sig_atomic_t=yes | |
5357 | else | |
5358 | ac_cv_have_sig_atomic_t=no | |
5359 | fi | |
5360 | rm -f core conftest.err conftest.$ac_objext \ | |
5361 | conftest$ac_exeext conftest.$ac_ext | |
5362 | fi | |
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 | |
5364 | $as_echo "$ac_cv_have_sig_atomic_t" >&6; } | |
5365 | if test "$ac_cv_have_sig_atomic_t" = "no" | |
5366 | then | |
5367 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" | |
63a9e923 | 5368 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
cc88a640 JK |
5369 | |
5370 | else | |
5371 | ||
5372 | cat >>confdefs.h <<_ACEOF | |
5373 | #define sig_atomic_t int | |
5374 | _ACEOF | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | fi | |
5379 | ||
81ecdfbb RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers are of type void" >&5 |
5381 | $as_echo_n "checking whether signal handlers are of type void... " >&6; } | |
63a9e923 | 5382 | if ${bash_cv_void_sighandler+:} false; then : |
81ecdfbb | 5383 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 5384 | else |
81ecdfbb | 5385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5386 | /* end confdefs.h. */ |
81ecdfbb | 5387 | #include <sys/types.h> |
d60d9f65 | 5388 | #include <signal.h> |
81ecdfbb RW |
5389 | #ifdef signal |
5390 | #undef signal | |
5391 | #endif | |
5392 | #ifdef __cplusplus | |
5393 | extern "C" | |
5394 | #endif | |
5395 | void (*signal ()) (); | |
9255ee31 EZ |
5396 | int |
5397 | main () | |
5398 | { | |
81ecdfbb | 5399 | int i; |
9255ee31 EZ |
5400 | ; |
5401 | return 0; | |
5402 | } | |
5403 | _ACEOF | |
81ecdfbb RW |
5404 | if ac_fn_c_try_compile "$LINENO"; then : |
5405 | bash_cv_void_sighandler=yes | |
d60d9f65 | 5406 | else |
81ecdfbb RW |
5407 | bash_cv_void_sighandler=no |
5408 | fi | |
5409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5410 | fi | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_void_sighandler" >&5 | |
5412 | $as_echo "$bash_cv_void_sighandler" >&6; } | |
5413 | if test $bash_cv_void_sighandler = yes; then | |
5414 | $as_echo "#define VOID_SIGHANDLER 1" >>confdefs.h | |
25ed0b71 | 5415 | |
81ecdfbb | 5416 | fi |
9255ee31 | 5417 | |
cc88a640 | 5418 | |
81ecdfbb RW |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 |
5420 | $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } | |
63a9e923 | 5421 | if ${bash_cv_tiocstat_in_ioctl+:} false; then : |
81ecdfbb RW |
5422 | $as_echo_n "(cached) " >&6 |
5423 | else | |
5424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5425 | /* end confdefs.h. */ |
81ecdfbb RW |
5426 | #include <sys/types.h> |
5427 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5428 | int |
5429 | main () | |
5430 | { | |
81ecdfbb | 5431 | int x = TIOCSTAT; |
9255ee31 EZ |
5432 | ; |
5433 | return 0; | |
5434 | } | |
5435 | _ACEOF | |
81ecdfbb RW |
5436 | if ac_fn_c_try_compile "$LINENO"; then : |
5437 | bash_cv_tiocstat_in_ioctl=yes | |
d60d9f65 | 5438 | else |
81ecdfbb RW |
5439 | bash_cv_tiocstat_in_ioctl=no |
5440 | fi | |
5441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5442 | fi | |
5443 | ||
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 | |
5445 | $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } | |
5446 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
5447 | $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h | |
25ed0b71 | 5448 | |
81ecdfbb | 5449 | fi |
9255ee31 | 5450 | |
81ecdfbb RW |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 |
5452 | $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } | |
63a9e923 | 5453 | if ${bash_cv_fionread_in_ioctl+:} false; then : |
81ecdfbb RW |
5454 | $as_echo_n "(cached) " >&6 |
5455 | else | |
5456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5457 | /* end confdefs.h. */ |
81ecdfbb RW |
5458 | #include <sys/types.h> |
5459 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5460 | int |
5461 | main () | |
5462 | { | |
81ecdfbb | 5463 | int x = FIONREAD; |
9255ee31 EZ |
5464 | ; |
5465 | return 0; | |
5466 | } | |
5467 | _ACEOF | |
81ecdfbb RW |
5468 | if ac_fn_c_try_compile "$LINENO"; then : |
5469 | bash_cv_fionread_in_ioctl=yes | |
d60d9f65 | 5470 | else |
81ecdfbb | 5471 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5472 | fi |
81ecdfbb | 5473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5474 | fi |
d60d9f65 | 5475 | |
81ecdfbb RW |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 |
5477 | $as_echo "$bash_cv_fionread_in_ioctl" >&6; } | |
5478 | if test $bash_cv_fionread_in_ioctl = yes; then | |
5479 | $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 SS |
5480 | |
5481 | fi | |
5482 | ||
81ecdfbb RW |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 |
5484 | $as_echo_n "checking for speed_t in sys/types.h... " >&6; } | |
63a9e923 | 5485 | if ${bash_cv_speed_t_in_sys_types+:} false; then : |
81ecdfbb RW |
5486 | $as_echo_n "(cached) " >&6 |
5487 | else | |
5488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5489 | /* end confdefs.h. */ | |
5490 | #include <sys/types.h> | |
5491 | int | |
5492 | main () | |
5493 | { | |
5494 | speed_t x; | |
5495 | ; | |
5496 | return 0; | |
5497 | } | |
25ed0b71 | 5498 | _ACEOF |
81ecdfbb RW |
5499 | if ac_fn_c_try_compile "$LINENO"; then : |
5500 | bash_cv_speed_t_in_sys_types=yes | |
5501 | else | |
5502 | bash_cv_speed_t_in_sys_types=no | |
5503 | fi | |
5504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 SS |
5505 | fi |
5506 | ||
81ecdfbb RW |
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 |
5508 | $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } | |
5509 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
5510 | $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h | |
25ed0b71 | 5511 | |
81ecdfbb | 5512 | fi |
25ed0b71 | 5513 | |
81ecdfbb RW |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
5515 | $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } | |
63a9e923 | 5516 | if ${bash_cv_struct_winsize_header+:} false; then : |
81ecdfbb | 5517 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 5518 | else |
81ecdfbb RW |
5519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5520 | /* end confdefs.h. */ | |
5521 | #include <sys/types.h> | |
5522 | #include <sys/ioctl.h> | |
5523 | int | |
5524 | main () | |
5525 | { | |
5526 | struct winsize x; | |
5527 | ; | |
5528 | return 0; | |
5529 | } | |
25ed0b71 | 5530 | _ACEOF |
81ecdfbb RW |
5531 | if ac_fn_c_try_compile "$LINENO"; then : |
5532 | bash_cv_struct_winsize_header=ioctl_h | |
5533 | else | |
5534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5535 | /* end confdefs.h. */ |
81ecdfbb RW |
5536 | #include <sys/types.h> |
5537 | #include <termios.h> | |
5538 | int | |
5539 | main () | |
5540 | { | |
5541 | struct winsize x; | |
5542 | ; | |
5543 | return 0; | |
5544 | } | |
5545 | _ACEOF | |
5546 | if ac_fn_c_try_compile "$LINENO"; then : | |
5547 | bash_cv_struct_winsize_header=termios_h | |
5548 | else | |
5549 | bash_cv_struct_winsize_header=other | |
5550 | fi | |
5551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d60d9f65 | 5552 | |
81ecdfbb RW |
5553 | fi |
5554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5555 | fi | |
d60d9f65 | 5556 | |
81ecdfbb RW |
5557 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 | |
5559 | $as_echo "sys/ioctl.h" >&6; } | |
5560 | $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h | |
d60d9f65 | 5561 | |
81ecdfbb RW |
5562 | elif test $bash_cv_struct_winsize_header = termios_h; then |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 | |
5564 | $as_echo "termios.h" >&6; } | |
5565 | $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h | |
9255ee31 | 5566 | |
81ecdfbb RW |
5567 | else |
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5569 | $as_echo "not found" >&6; } | |
9255ee31 | 5570 | fi |
25ed0b71 | 5571 | |
25ed0b71 | 5572 | |
81ecdfbb RW |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 |
5574 | $as_echo_n "checking for struct dirent.d_ino... " >&6; } | |
63a9e923 | 5575 | if ${bash_cv_dirent_has_dino+:} false; then : |
81ecdfbb | 5576 | $as_echo_n "(cached) " >&6 |
5bdf8622 | 5577 | else |
81ecdfbb | 5578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5bdf8622 | 5579 | /* end confdefs.h. */ |
5bdf8622 | 5580 | |
81ecdfbb RW |
5581 | #include <stdio.h> |
5582 | #include <sys/types.h> | |
5583 | #ifdef HAVE_UNISTD_H | |
5584 | # include <unistd.h> | |
5585 | #endif /* HAVE_UNISTD_H */ | |
5586 | #if defined(HAVE_DIRENT_H) | |
5587 | # include <dirent.h> | |
5bdf8622 | 5588 | #else |
81ecdfbb RW |
5589 | # define dirent direct |
5590 | # ifdef HAVE_SYS_NDIR_H | |
5591 | # include <sys/ndir.h> | |
5592 | # endif /* SYSNDIR */ | |
5593 | # ifdef HAVE_SYS_DIR_H | |
5594 | # include <sys/dir.h> | |
5595 | # endif /* SYSDIR */ | |
5596 | # ifdef HAVE_NDIR_H | |
5597 | # include <ndir.h> | |
5598 | # endif | |
5599 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5600 | |
5601 | int | |
5602 | main () | |
5603 | { | |
81ecdfbb RW |
5604 | |
5605 | struct dirent d; int z; z = d.d_ino; | |
5606 | ||
5bdf8622 DJ |
5607 | ; |
5608 | return 0; | |
5609 | } | |
5610 | _ACEOF | |
81ecdfbb RW |
5611 | if ac_fn_c_try_compile "$LINENO"; then : |
5612 | bash_cv_dirent_has_dino=yes | |
5bdf8622 | 5613 | else |
81ecdfbb | 5614 | bash_cv_dirent_has_dino=no |
25ed0b71 | 5615 | fi |
81ecdfbb | 5616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5bdf8622 | 5617 | fi |
81ecdfbb RW |
5618 | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_dino" >&5 | |
5620 | $as_echo "$bash_cv_dirent_has_dino" >&6; } | |
5621 | if test $bash_cv_dirent_has_dino = yes; then | |
5622 | $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h | |
5bdf8622 DJ |
5623 | |
5624 | fi | |
5625 | ||
81ecdfbb RW |
5626 | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 | |
5628 | $as_echo_n "checking for struct dirent.d_fileno... " >&6; } | |
63a9e923 | 5629 | if ${bash_cv_dirent_has_d_fileno+:} false; then : |
81ecdfbb | 5630 | $as_echo_n "(cached) " >&6 |
9255ee31 | 5631 | else |
81ecdfbb | 5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 5633 | /* end confdefs.h. */ |
5bdf8622 | 5634 | |
81ecdfbb RW |
5635 | #include <stdio.h> |
5636 | #include <sys/types.h> | |
5637 | #ifdef HAVE_UNISTD_H | |
5638 | # include <unistd.h> | |
5639 | #endif /* HAVE_UNISTD_H */ | |
5640 | #if defined(HAVE_DIRENT_H) | |
5641 | # include <dirent.h> | |
5bdf8622 | 5642 | #else |
81ecdfbb RW |
5643 | # define dirent direct |
5644 | # ifdef HAVE_SYS_NDIR_H | |
5645 | # include <sys/ndir.h> | |
5646 | # endif /* SYSNDIR */ | |
5647 | # ifdef HAVE_SYS_DIR_H | |
5648 | # include <sys/dir.h> | |
5649 | # endif /* SYSDIR */ | |
5650 | # ifdef HAVE_NDIR_H | |
5651 | # include <ndir.h> | |
5652 | # endif | |
5653 | #endif /* HAVE_DIRENT_H */ | |
5bdf8622 DJ |
5654 | |
5655 | int | |
5656 | main () | |
5657 | { | |
81ecdfbb RW |
5658 | |
5659 | struct dirent d; int z; z = d.d_fileno; | |
5660 | ||
5bdf8622 DJ |
5661 | ; |
5662 | return 0; | |
5663 | } | |
25ed0b71 | 5664 | _ACEOF |
81ecdfbb RW |
5665 | if ac_fn_c_try_compile "$LINENO"; then : |
5666 | bash_cv_dirent_has_d_fileno=yes | |
9255ee31 | 5667 | else |
81ecdfbb | 5668 | bash_cv_dirent_has_d_fileno=no |
9255ee31 | 5669 | fi |
81ecdfbb | 5670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 | 5671 | fi |
9255ee31 | 5672 | |
81ecdfbb RW |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 |
5674 | $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } | |
5675 | if test $bash_cv_dirent_has_d_fileno = yes; then | |
5676 | $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h | |
25ed0b71 | 5677 | |
81ecdfbb | 5678 | fi |
430b7832 | 5679 | |
430b7832 | 5680 | |
81ecdfbb RW |
5681 | case "$host_os" in |
5682 | aix*) prefer_curses=yes ;; | |
5683 | esac | |
430b7832 | 5684 | |
81ecdfbb RW |
5685 | if test "X$bash_cv_termcap_lib" = "X"; then |
5686 | _bash_needmsg=yes | |
5687 | else | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5689 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5690 | _bash_needmsg= | |
5691 | fi | |
63a9e923 | 5692 | if ${bash_cv_termcap_lib+:} false; then : |
81ecdfbb RW |
5693 | $as_echo_n "(cached) " >&6 |
5694 | else | |
5695 | ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" | |
63a9e923 | 5696 | if test "x$ac_cv_func_tgetent" = xyes; then : |
81ecdfbb RW |
5697 | bash_cv_termcap_lib=libc |
5698 | else | |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 | |
5700 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
63a9e923 | 5701 | if ${ac_cv_lib_termcap_tgetent+:} false; then : |
81ecdfbb RW |
5702 | $as_echo_n "(cached) " >&6 |
5703 | else | |
5704 | ac_check_lib_save_LIBS=$LIBS | |
5705 | LIBS="-ltermcap $LIBS" | |
5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5707 | /* end confdefs.h. */ | |
430b7832 | 5708 | |
81ecdfbb RW |
5709 | /* Override any GCC internal prototype to avoid an error. |
5710 | Use char because int might match the return type of a GCC | |
832a9484 | 5711 | builtin and then its argument prototype would still apply. */ |
832a9484 | 5712 | #ifdef __cplusplus |
81ecdfbb | 5713 | extern "C" |
832a9484 | 5714 | #endif |
81ecdfbb | 5715 | char tgetent (); |
832a9484 JB |
5716 | int |
5717 | main () | |
5718 | { | |
81ecdfbb | 5719 | return tgetent (); |
832a9484 JB |
5720 | ; |
5721 | return 0; | |
5722 | } | |
5723 | _ACEOF | |
81ecdfbb RW |
5724 | if ac_fn_c_try_link "$LINENO"; then : |
5725 | ac_cv_lib_termcap_tgetent=yes | |
832a9484 | 5726 | else |
81ecdfbb | 5727 | ac_cv_lib_termcap_tgetent=no |
832a9484 | 5728 | fi |
81ecdfbb RW |
5729 | rm -f core conftest.err conftest.$ac_objext \ |
5730 | conftest$ac_exeext conftest.$ac_ext | |
5731 | LIBS=$ac_check_lib_save_LIBS | |
832a9484 | 5732 | fi |
81ecdfbb RW |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
5734 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
63a9e923 | 5735 | if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : |
81ecdfbb | 5736 | bash_cv_termcap_lib=libtermcap |
9255ee31 | 5737 | else |
81ecdfbb RW |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 |
5739 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
63a9e923 | 5740 | if ${ac_cv_lib_tinfo_tgetent+:} false; then : |
81ecdfbb RW |
5741 | $as_echo_n "(cached) " >&6 |
5742 | else | |
5743 | ac_check_lib_save_LIBS=$LIBS | |
5744 | LIBS="-ltinfo $LIBS" | |
5745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5746 | /* end confdefs.h. */ |
430b7832 | 5747 | |
81ecdfbb RW |
5748 | /* Override any GCC internal prototype to avoid an error. |
5749 | Use char because int might match the return type of a GCC | |
9255ee31 | 5750 | builtin and then its argument prototype would still apply. */ |
25ed0b71 | 5751 | #ifdef __cplusplus |
81ecdfbb | 5752 | extern "C" |
9255ee31 | 5753 | #endif |
81ecdfbb | 5754 | char tgetent (); |
25ed0b71 KW |
5755 | int |
5756 | main () | |
5757 | { | |
81ecdfbb | 5758 | return tgetent (); |
9255ee31 EZ |
5759 | ; |
5760 | return 0; | |
5761 | } | |
5762 | _ACEOF | |
81ecdfbb RW |
5763 | if ac_fn_c_try_link "$LINENO"; then : |
5764 | ac_cv_lib_tinfo_tgetent=yes | |
d60d9f65 | 5765 | else |
81ecdfbb | 5766 | ac_cv_lib_tinfo_tgetent=no |
9255ee31 | 5767 | fi |
81ecdfbb RW |
5768 | rm -f core conftest.err conftest.$ac_objext \ |
5769 | conftest$ac_exeext conftest.$ac_ext | |
5770 | LIBS=$ac_check_lib_save_LIBS | |
d60d9f65 | 5771 | fi |
81ecdfbb RW |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5773 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
63a9e923 | 5774 | if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : |
81ecdfbb | 5775 | bash_cv_termcap_lib=libtinfo |
d60d9f65 | 5776 | else |
81ecdfbb RW |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 |
5778 | $as_echo_n "checking for tgetent in -lcurses... " >&6; } | |
63a9e923 | 5779 | if ${ac_cv_lib_curses_tgetent+:} false; then : |
81ecdfbb RW |
5780 | $as_echo_n "(cached) " >&6 |
5781 | else | |
5782 | ac_check_lib_save_LIBS=$LIBS | |
5783 | LIBS="-lcurses $LIBS" | |
5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25ed0b71 | 5785 | /* end confdefs.h. */ |
430b7832 | 5786 | |
81ecdfbb RW |
5787 | /* Override any GCC internal prototype to avoid an error. |
5788 | Use char because int might match the return type of a GCC | |
5789 | builtin and then its argument prototype would still apply. */ | |
9255ee31 EZ |
5790 | #ifdef __cplusplus |
5791 | extern "C" | |
25ed0b71 | 5792 | #endif |
81ecdfbb RW |
5793 | char tgetent (); |
5794 | int | |
5795 | main () | |
5796 | { | |
5797 | return tgetent (); | |
5798 | ; | |
5799 | return 0; | |
5800 | } | |
5801 | _ACEOF | |
5802 | if ac_fn_c_try_link "$LINENO"; then : | |
5803 | ac_cv_lib_curses_tgetent=yes | |
5804 | else | |
5805 | ac_cv_lib_curses_tgetent=no | |
5806 | fi | |
5807 | rm -f core conftest.err conftest.$ac_objext \ | |
5808 | conftest$ac_exeext conftest.$ac_ext | |
5809 | LIBS=$ac_check_lib_save_LIBS | |
5810 | fi | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 | |
5812 | $as_echo "$ac_cv_lib_curses_tgetent" >&6; } | |
63a9e923 | 5813 | if test "x$ac_cv_lib_curses_tgetent" = xyes; then : |
81ecdfbb RW |
5814 | bash_cv_termcap_lib=libcurses |
5815 | else | |
5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 | |
5817 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
63a9e923 | 5818 | if ${ac_cv_lib_ncurses_tgetent+:} false; then : |
81ecdfbb RW |
5819 | $as_echo_n "(cached) " >&6 |
5820 | else | |
5821 | ac_check_lib_save_LIBS=$LIBS | |
5822 | LIBS="-lncurses $LIBS" | |
5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5824 | /* end confdefs.h. */ | |
5825 | ||
5826 | /* Override any GCC internal prototype to avoid an error. | |
5827 | Use char because int might match the return type of a GCC | |
5828 | builtin and then its argument prototype would still apply. */ | |
25ed0b71 | 5829 | #ifdef __cplusplus |
81ecdfbb | 5830 | extern "C" |
9255ee31 | 5831 | #endif |
81ecdfbb | 5832 | char tgetent (); |
25ed0b71 KW |
5833 | int |
5834 | main () | |
5835 | { | |
81ecdfbb | 5836 | return tgetent (); |
9255ee31 EZ |
5837 | ; |
5838 | return 0; | |
5839 | } | |
5840 | _ACEOF | |
81ecdfbb RW |
5841 | if ac_fn_c_try_link "$LINENO"; then : |
5842 | ac_cv_lib_ncurses_tgetent=yes | |
d60d9f65 | 5843 | else |
81ecdfbb RW |
5844 | ac_cv_lib_ncurses_tgetent=no |
5845 | fi | |
5846 | rm -f core conftest.err conftest.$ac_objext \ | |
5847 | conftest$ac_exeext conftest.$ac_ext | |
5848 | LIBS=$ac_check_lib_save_LIBS | |
5849 | fi | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 | |
5851 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
63a9e923 | 5852 | if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : |
81ecdfbb RW |
5853 | bash_cv_termcap_lib=libncurses |
5854 | else | |
5855 | bash_cv_termcap_lib=gnutermcap | |
5856 | fi | |
5857 | ||
5858 | fi | |
25ed0b71 | 5859 | |
d60d9f65 | 5860 | fi |
81ecdfbb RW |
5861 | |
5862 | fi | |
5863 | ||
9255ee31 | 5864 | fi |
25ed0b71 | 5865 | |
05bc3370 | 5866 | fi |
25ed0b71 | 5867 | |
81ecdfbb RW |
5868 | if test "X$_bash_needmsg" = "Xyes"; then |
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 | |
5870 | $as_echo_n "checking which library has the termcap functions... " >&6; } | |
5871 | fi | |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 | |
5873 | $as_echo "using $bash_cv_termcap_lib" >&6; } | |
5874 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5875 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5876 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5877 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5878 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5879 | TERMCAP_LIB=-ltermcap | |
5880 | TERMCAP_DEP= | |
5881 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5882 | TERMCAP_LIB=-ltinfo | |
5883 | TERMCAP_DEP= | |
5884 | elif test $bash_cv_termcap_lib = libncurses; then | |
5885 | TERMCAP_LIB=-lncurses | |
5886 | TERMCAP_DEP= | |
5887 | elif test $bash_cv_termcap_lib = libc; then | |
5888 | TERMCAP_LIB= | |
5889 | TERMCAP_DEP= | |
5bdf8622 | 5890 | else |
81ecdfbb RW |
5891 | TERMCAP_LIB=-lcurses |
5892 | TERMCAP_DEP= | |
5893 | fi | |
5894 | ||
5895 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
5896 | if test "$prefer_curses" = yes; then | |
5897 | TERMCAP_LIB=-lcurses | |
5898 | else | |
5899 | TERMCAP_LIB=-ltermcap #default | |
5900 | fi | |
5901 | fi | |
7f3c5ec8 | 5902 | if test "$TERMCAP_LIB" = "-lncurses"; then |
63a9e923 | 5903 | for ac_header in ncurses/termcap.h |
7f3c5ec8 | 5904 | do : |
63a9e923 SM |
5905 | ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default" |
5906 | if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then : | |
7f3c5ec8 | 5907 | cat >>confdefs.h <<_ACEOF |
63a9e923 | 5908 | #define HAVE_NCURSES_TERMCAP_H 1 |
7f3c5ec8 EZ |
5909 | _ACEOF |
5910 | ||
5911 | fi | |
5912 | ||
5913 | done | |
5914 | ||
5915 | fi | |
81ecdfbb | 5916 | |
63a9e923 | 5917 | |
81ecdfbb RW |
5918 | for ac_header in wctype.h |
5919 | do : | |
5920 | ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" | |
63a9e923 | 5921 | if test "x$ac_cv_header_wctype_h" = xyes; then : |
81ecdfbb RW |
5922 | cat >>confdefs.h <<_ACEOF |
5923 | #define HAVE_WCTYPE_H 1 | |
5bdf8622 | 5924 | _ACEOF |
5bdf8622 | 5925 | |
81ecdfbb | 5926 | fi |
5bdf8622 | 5927 | |
81ecdfbb | 5928 | done |
5bdf8622 | 5929 | |
81ecdfbb RW |
5930 | for ac_header in wchar.h |
5931 | do : | |
5932 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" | |
63a9e923 | 5933 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
81ecdfbb RW |
5934 | cat >>confdefs.h <<_ACEOF |
5935 | #define HAVE_WCHAR_H 1 | |
5936 | _ACEOF | |
5bdf8622 | 5937 | |
81ecdfbb | 5938 | fi |
5bdf8622 | 5939 | |
81ecdfbb RW |
5940 | done |
5941 | ||
5942 | for ac_header in langinfo.h | |
5943 | do : | |
5944 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
63a9e923 | 5945 | if test "x$ac_cv_header_langinfo_h" = xyes; then : |
81ecdfbb RW |
5946 | cat >>confdefs.h <<_ACEOF |
5947 | #define HAVE_LANGINFO_H 1 | |
5bdf8622 | 5948 | _ACEOF |
5bdf8622 | 5949 | |
5bdf8622 | 5950 | fi |
81ecdfbb RW |
5951 | |
5952 | done | |
5953 | ||
5954 | ||
cc88a640 | 5955 | ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" |
63a9e923 | 5956 | if test "x$ac_cv_func_mbrlen" = xyes; then : |
cc88a640 JK |
5957 | $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h |
5958 | ||
5959 | fi | |
5960 | ||
5961 | ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" | |
63a9e923 | 5962 | if test "x$ac_cv_func_mbscasecmp" = xyes; then : |
cc88a640 JK |
5963 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
5964 | ||
5965 | fi | |
5966 | ||
5967 | ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" | |
63a9e923 | 5968 | if test "x$ac_cv_func_mbscmp" = xyes; then : |
cc88a640 JK |
5969 | $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h |
5970 | ||
5971 | fi | |
5972 | ||
5973 | ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" | |
63a9e923 | 5974 | if test "x$ac_cv_func_mbsnrtowcs" = xyes; then : |
cc88a640 JK |
5975 | $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h |
5976 | ||
5977 | fi | |
5978 | ||
81ecdfbb | 5979 | ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" |
63a9e923 | 5980 | if test "x$ac_cv_func_mbsrtowcs" = xyes; then : |
81ecdfbb RW |
5981 | $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h |
5982 | ||
5983 | fi | |
5984 | ||
cc88a640 | 5985 | |
5836a818 | 5986 | |
63a9e923 SM |
5987 | ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" |
5988 | if test "x$ac_cv_func_mbschr" = xyes; then : | |
5989 | $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h | |
cc88a640 JK |
5990 | |
5991 | else | |
5992 | case " $LIBOBJS " in | |
63a9e923 SM |
5993 | *" mbschr.$ac_objext "* ) ;; |
5994 | *) LIBOBJS="$LIBOBJS mbschr.$ac_objext" | |
cc88a640 JK |
5995 | ;; |
5996 | esac | |
81ecdfbb | 5997 | |
5bdf8622 | 5998 | fi |
81ecdfbb | 5999 | |
cc88a640 JK |
6000 | |
6001 | ||
6002 | ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" | |
63a9e923 | 6003 | if test "x$ac_cv_func_wcrtomb" = xyes; then : |
cc88a640 | 6004 | $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h |
81ecdfbb RW |
6005 | |
6006 | fi | |
6007 | ||
cc88a640 | 6008 | ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" |
63a9e923 | 6009 | if test "x$ac_cv_func_wcscoll" = xyes; then : |
cc88a640 JK |
6010 | $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h |
6011 | ||
6012 | fi | |
6013 | ||
6014 | ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" | |
63a9e923 | 6015 | if test "x$ac_cv_func_wcsdup" = xyes; then : |
cc88a640 | 6016 | $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h |
81ecdfbb RW |
6017 | |
6018 | fi | |
6019 | ||
6020 | ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" | |
63a9e923 | 6021 | if test "x$ac_cv_func_wcwidth" = xyes; then : |
81ecdfbb RW |
6022 | $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h |
6023 | ||
6024 | fi | |
6025 | ||
cc88a640 | 6026 | ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" |
63a9e923 | 6027 | if test "x$ac_cv_func_wctype" = xyes; then : |
cc88a640 | 6028 | $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h |
5bdf8622 DJ |
6029 | |
6030 | fi | |
6031 | ||
6032 | ||
63a9e923 SM |
6033 | ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" |
6034 | if test "x$ac_cv_func_wcswidth" = xyes; then : | |
6035 | $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h | |
cc88a640 | 6036 | |
05bc3370 | 6037 | else |
cc88a640 | 6038 | case " $LIBOBJS " in |
63a9e923 SM |
6039 | *" wcswidth.$ac_objext "* ) ;; |
6040 | *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext" | |
cc88a640 JK |
6041 | ;; |
6042 | esac | |
6043 | ||
d60d9f65 | 6044 | fi |
cc88a640 | 6045 | |
9255ee31 | 6046 | |
05bc3370 | 6047 | |
cc88a640 JK |
6048 | |
6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 | |
6050 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } | |
63a9e923 | 6051 | if ${ac_cv_func_mbrtowc+:} false; then : |
81ecdfbb | 6052 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 6053 | else |
81ecdfbb | 6054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6055 | /* end confdefs.h. */ |
9255ee31 EZ |
6056 | #include <wchar.h> |
6057 | int | |
6058 | main () | |
430b7832 | 6059 | { |
cc88a640 JK |
6060 | wchar_t wc; |
6061 | char const s[] = ""; | |
6062 | size_t n = 1; | |
6063 | mbstate_t state; | |
6064 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); | |
430b7832 MM |
6065 | ; |
6066 | return 0; | |
9255ee31 EZ |
6067 | } |
6068 | _ACEOF | |
cc88a640 JK |
6069 | if ac_fn_c_try_link "$LINENO"; then : |
6070 | ac_cv_func_mbrtowc=yes | |
d60d9f65 | 6071 | else |
cc88a640 | 6072 | ac_cv_func_mbrtowc=no |
d60d9f65 | 6073 | fi |
cc88a640 JK |
6074 | rm -f core conftest.err conftest.$ac_objext \ |
6075 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6076 | fi |
cc88a640 JK |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 |
6078 | $as_echo "$ac_cv_func_mbrtowc" >&6; } | |
6079 | if test $ac_cv_func_mbrtowc = yes; then | |
6080 | ||
6081 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h | |
6082 | ||
6083 | fi | |
6084 | ||
6085 | if test $ac_cv_func_mbrtowc = yes; then | |
81ecdfbb | 6086 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
d60d9f65 SS |
6087 | |
6088 | fi | |
6089 | ||
cc88a640 JK |
6090 | for ac_func in iswlower iswupper towlower towupper iswctype |
6091 | do : | |
6092 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6093 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 6094 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
cc88a640 JK |
6095 | cat >>confdefs.h <<_ACEOF |
6096 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6097 | _ACEOF | |
6098 | ||
6099 | fi | |
6100 | done | |
6101 | ||
6102 | ||
81ecdfbb RW |
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
6104 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
63a9e923 | 6105 | if ${bash_cv_langinfo_codeset+:} false; then : |
81ecdfbb | 6106 | $as_echo_n "(cached) " >&6 |
d60d9f65 | 6107 | else |
81ecdfbb | 6108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25ed0b71 | 6109 | /* end confdefs.h. */ |
9255ee31 EZ |
6110 | #include <langinfo.h> |
6111 | int | |
6112 | main () | |
6113 | { | |
6114 | char* cs = nl_langinfo(CODESET); | |
6115 | ; | |
6116 | return 0; | |
6117 | } | |
6118 | _ACEOF | |
81ecdfbb | 6119 | if ac_fn_c_try_link "$LINENO"; then : |
9255ee31 EZ |
6120 | bash_cv_langinfo_codeset=yes |
6121 | else | |
81ecdfbb | 6122 | bash_cv_langinfo_codeset=no |
9255ee31 | 6123 | fi |
81ecdfbb RW |
6124 | rm -f core conftest.err conftest.$ac_objext \ |
6125 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6126 | fi |
81ecdfbb RW |
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_langinfo_codeset" >&5 |
6128 | $as_echo "$bash_cv_langinfo_codeset" >&6; } | |
9255ee31 | 6129 | if test $bash_cv_langinfo_codeset = yes; then |
81ecdfbb | 6130 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
d60d9f65 | 6131 | |
d60d9f65 SS |
6132 | fi |
6133 | ||
cc88a640 JK |
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 |
6135 | $as_echo_n "checking for wchar_t in wchar.h... " >&6; } | |
63a9e923 | 6136 | if ${bash_cv_type_wchar_t+:} false; then : |
cc88a640 JK |
6137 | $as_echo_n "(cached) " >&6 |
6138 | else | |
6139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6140 | /* end confdefs.h. */ | |
6141 | #include <wchar.h> | |
6142 | ||
6143 | int | |
6144 | main () | |
6145 | { | |
6146 | ||
6147 | wchar_t foo; | |
6148 | foo = 0; | |
6149 | ||
6150 | ; | |
6151 | return 0; | |
6152 | } | |
6153 | _ACEOF | |
6154 | if ac_fn_c_try_compile "$LINENO"; then : | |
6155 | bash_cv_type_wchar_t=yes | |
6156 | else | |
6157 | bash_cv_type_wchar_t=no | |
6158 | fi | |
6159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6160 | fi | |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 | |
6162 | $as_echo "$bash_cv_type_wchar_t" >&6; } | |
6163 | if test $bash_cv_type_wchar_t = yes; then | |
6164 | ||
6165 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h | |
6166 | ||
6167 | fi | |
6168 | ||
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 | |
6170 | $as_echo_n "checking for wctype_t in wctype.h... " >&6; } | |
63a9e923 | 6171 | if ${bash_cv_type_wctype_t+:} false; then : |
cc88a640 JK |
6172 | $as_echo_n "(cached) " >&6 |
6173 | else | |
6174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6175 | /* end confdefs.h. */ | |
6176 | #include <wctype.h> | |
6177 | int | |
6178 | main () | |
6179 | { | |
6180 | ||
6181 | wctype_t foo; | |
6182 | foo = 0; | |
6183 | ||
6184 | ; | |
6185 | return 0; | |
6186 | } | |
6187 | _ACEOF | |
6188 | if ac_fn_c_try_compile "$LINENO"; then : | |
6189 | bash_cv_type_wctype_t=yes | |
6190 | else | |
6191 | bash_cv_type_wctype_t=no | |
6192 | fi | |
6193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6194 | fi | |
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 | |
6196 | $as_echo "$bash_cv_type_wctype_t" >&6; } | |
6197 | if test $bash_cv_type_wctype_t = yes; then | |
6198 | ||
6199 | $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h | |
6200 | ||
6201 | fi | |
6202 | ||
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 | |
6204 | $as_echo_n "checking for wint_t in wctype.h... " >&6; } | |
63a9e923 | 6205 | if ${bash_cv_type_wint_t+:} false; then : |
cc88a640 JK |
6206 | $as_echo_n "(cached) " >&6 |
6207 | else | |
6208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6209 | /* end confdefs.h. */ | |
6210 | #include <wctype.h> | |
6211 | int | |
6212 | main () | |
6213 | { | |
6214 | ||
6215 | wint_t foo; | |
6216 | foo = 0; | |
6217 | ||
6218 | ; | |
6219 | return 0; | |
6220 | } | |
6221 | _ACEOF | |
6222 | if ac_fn_c_try_compile "$LINENO"; then : | |
6223 | bash_cv_type_wint_t=yes | |
6224 | else | |
6225 | bash_cv_type_wint_t=no | |
6226 | fi | |
6227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6228 | fi | |
6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 | |
6230 | $as_echo "$bash_cv_type_wint_t" >&6; } | |
6231 | if test $bash_cv_type_wint_t = yes; then | |
6232 | ||
6233 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h | |
6234 | ||
6235 | fi | |
6236 | ||
6237 | if test "$am_cv_func_iconv" = yes; then | |
6238 | OLDLIBS="$LIBS" | |
5836a818 | 6239 | LIBS="$LIBS $LIBICONV" |
cc88a640 JK |
6240 | for ac_func in locale_charset |
6241 | do : | |
6242 | ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" | |
63a9e923 | 6243 | if test "x$ac_cv_func_locale_charset" = xyes; then : |
cc88a640 JK |
6244 | cat >>confdefs.h <<_ACEOF |
6245 | #define HAVE_LOCALE_CHARSET 1 | |
6246 | _ACEOF | |
6247 | ||
6248 | fi | |
6249 | done | |
6250 | ||
6251 | LIBS="$OLDLIBS" | |
6252 | fi | |
6253 | ||
25ed0b71 KW |
6254 | |
6255 | ||
d60d9f65 SS |
6256 | case "$host_cpu" in |
6257 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 6258 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
6259 | esac |
6260 | ||
6261 | case "$host_os" in | |
6262 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
6263 | esac | |
6264 | ||
c862e87b JM |
6265 | # shared library configuration section |
6266 | # | |
6267 | # Shared object configuration section. These values are generated by | |
6268 | # ${srcdir}/support/shobj-conf | |
6269 | # | |
6270 | if test -f ${srcdir}/support/shobj-conf; then | |
81ecdfbb RW |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5 |
6272 | $as_echo_n "checking configuration for building shared libraries... " >&6; } | |
5bdf8622 DJ |
6273 | eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
6274 | ||
6275 | # case "$SHLIB_LIBS" in | |
6276 | # *curses*|*termcap*|*termlib*) ;; | |
6277 | # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | |
6278 | # esac | |
6279 | ||
6280 | ||
6281 | ||
6282 | ||
9255ee31 | 6283 | |
25ed0b71 KW |
6284 | |
6285 | ||
6286 | ||
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
81ecdfbb RW |
6295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5 |
6296 | $as_echo "$SHLIB_STATUS" >&6; } | |
9255ee31 EZ |
6297 | |
6298 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
6299 | # `unsupported', turn off any default shared library building | |
6300 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
6301 | opt_shared_libs=no | |
6302 | fi | |
1b17e766 EZ |
6303 | |
6304 | # shared library versioning | |
6305 | # quoted for m4 so I can use character classes | |
6306 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
6307 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 6308 | |
25ed0b71 | 6309 | |
9255ee31 EZ |
6310 | fi |
6311 | ||
6312 | if test "$opt_static_libs" = "yes"; then | |
6313 | STATIC_TARGET=static | |
6314 | STATIC_INSTALL_TARGET=install-static | |
6315 | fi | |
6316 | if test "$opt_shared_libs" = "yes"; then | |
6317 | SHARED_TARGET=shared | |
6318 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
6319 | fi |
6320 | ||
25ed0b71 KW |
6321 | |
6322 | ||
6323 | ||
6324 | ||
6325 | ||
19ce2a29 | 6326 | case "$build_os" in |
1b17e766 EZ |
6327 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file |
6328 | *) BUILD_DIR=`pwd` ;; | |
6329 | esac | |
6330 | ||
5bdf8622 DJ |
6331 | case "$BUILD_DIR" in |
6332 | *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; | |
6333 | *) ;; | |
6334 | esac | |
6335 | ||
6336 | ||
25ed0b71 KW |
6337 | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
5836a818 | 6354 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" |
81ecdfbb RW |
6355 | |
6356 | ac_config_commands="$ac_config_commands default" | |
6357 | ||
9255ee31 | 6358 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
6359 | # This file is a shell script that caches the results of configure |
6360 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
6361 | # scripts and configure runs, see configure's option --config-cache. |
6362 | # It is not useful on other systems. If it contains results you don't | |
6363 | # want to keep, you may remove or edit it. | |
d60d9f65 | 6364 | # |
9255ee31 EZ |
6365 | # config.status only pays attention to the cache file if you give it |
6366 | # the --recheck option to rerun configure. | |
d60d9f65 | 6367 | # |
25ed0b71 | 6368 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
6369 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6370 | # following values. | |
6371 | ||
6372 | _ACEOF | |
6373 | ||
d60d9f65 SS |
6374 | # The following way of writing the cache mishandles newlines in values, |
6375 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 6376 | # So, we kill variables containing newlines. |
d60d9f65 SS |
6377 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6378 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
6379 | ( |
6380 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6381 | eval ac_val=\$$ac_var | |
6382 | case $ac_val in #( | |
6383 | *${as_nl}*) | |
6384 | case $ac_var in #( | |
6385 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6386 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6387 | esac | |
6388 | case $ac_var in #( | |
6389 | _ | IFS | as_nl) ;; #( | |
6390 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6391 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6392 | esac ;; | |
6393 | esac | |
6394 | done | |
6395 | ||
9255ee31 | 6396 | (set) 2>&1 | |
81ecdfbb RW |
6397 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6398 | *${as_nl}ac_space=\ *) | |
6399 | # `set' does not quote correctly, so add quotes: double-quote | |
6400 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9255ee31 | 6401 | sed -n \ |
430b7832 MM |
6402 | "s/'/'\\\\''/g; |
6403 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 6404 | ;; #( |
9255ee31 EZ |
6405 | *) |
6406 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 6407 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
9255ee31 | 6408 | ;; |
81ecdfbb RW |
6409 | esac | |
6410 | sort | |
6411 | ) | | |
9255ee31 | 6412 | sed ' |
81ecdfbb | 6413 | /^ac_cv_env_/b end |
9255ee31 | 6414 | t clear |
81ecdfbb | 6415 | :clear |
9255ee31 EZ |
6416 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6417 | t end | |
81ecdfbb RW |
6418 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6419 | :end' >>confcache | |
6420 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6421 | if test -w "$cache_file"; then | |
63a9e923 | 6422 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6424 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
63a9e923 SM |
6425 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6426 | cat confcache >"$cache_file" | |
6427 | else | |
6428 | case $cache_file in #( | |
6429 | */* | ?:*) | |
6430 | mv -f confcache "$cache_file"$$ && | |
6431 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6432 | *) | |
6433 | mv -f confcache "$cache_file" ;; | |
6434 | esac | |
6435 | fi | |
6436 | fi | |
d60d9f65 | 6437 | else |
81ecdfbb RW |
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6439 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d60d9f65 SS |
6440 | fi |
6441 | fi | |
6442 | rm -f confcache | |
6443 | ||
d60d9f65 SS |
6444 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6445 | # Let make expand exec_prefix. | |
6446 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6447 | ||
d60d9f65 SS |
6448 | DEFS=-DHAVE_CONFIG_H |
6449 | ||
25ed0b71 KW |
6450 | ac_libobjs= |
6451 | ac_ltlibobjs= | |
63a9e923 | 6452 | U= |
25ed0b71 KW |
6453 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6454 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6455 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6456 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6457 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6458 | # will be set to the directory where LIBOBJS objects are built. | |
6459 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6460 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
25ed0b71 KW |
6461 | done |
6462 | LIBOBJS=$ac_libobjs | |
6463 | ||
6464 | LTLIBOBJS=$ac_ltlibobjs | |
6465 | ||
6466 | ||
6467 | ||
63a9e923 | 6468 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 6469 | ac_write_fail=0 |
9255ee31 EZ |
6470 | ac_clean_files_save=$ac_clean_files |
6471 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6473 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6474 | as_write_fail=0 | |
6475 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
9255ee31 | 6476 | #! $SHELL |
25ed0b71 | 6477 | # Generated by $as_me. |
d60d9f65 | 6478 | # Run this file to recreate the current configuration. |
d60d9f65 | 6479 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 6480 | # configure, is in config.log if it exists. |
d60d9f65 | 6481 | |
9255ee31 | 6482 | debug=false |
25ed0b71 KW |
6483 | ac_cs_recheck=false |
6484 | ac_cs_silent=false | |
9255ee31 | 6485 | |
81ecdfbb RW |
6486 | SHELL=\${CONFIG_SHELL-$SHELL} |
6487 | export SHELL | |
6488 | _ASEOF | |
6489 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6490 | ## -------------------- ## | |
6491 | ## M4sh Initialization. ## | |
6492 | ## -------------------- ## | |
6493 | ||
6494 | # Be more Bourne compatible | |
6495 | DUALCASE=1; export DUALCASE # for MKS sh | |
6496 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
9255ee31 EZ |
6497 | emulate sh |
6498 | NULLCMD=: | |
81ecdfbb | 6499 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25ed0b71 KW |
6500 | # is contrary to our usage. Disable this feature. |
6501 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6502 | setopt NO_GLOB_SUBST |
6503 | else | |
6504 | case `(set -o) 2>/dev/null` in #( | |
6505 | *posix*) : | |
6506 | set -o posix ;; #( | |
6507 | *) : | |
6508 | ;; | |
6509 | esac | |
9255ee31 EZ |
6510 | fi |
6511 | ||
81ecdfbb RW |
6512 | |
6513 | as_nl=' | |
6514 | ' | |
6515 | export as_nl | |
6516 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6517 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6518 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6519 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6520 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6521 | # but without wasting forks for bash or zsh. | |
6522 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6523 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6524 | as_echo='print -r --' | |
6525 | as_echo_n='print -rn --' | |
6526 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6527 | as_echo='printf %s\n' | |
6528 | as_echo_n='printf %s' | |
6529 | else | |
6530 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6531 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6532 | as_echo_n='/usr/ucb/echo -n' | |
6533 | else | |
6534 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6535 | as_echo_n_body='eval | |
6536 | arg=$1; | |
6537 | case $arg in #( | |
6538 | *"$as_nl"*) | |
6539 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6540 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6541 | esac; | |
6542 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6543 | ' | |
6544 | export as_echo_n_body | |
6545 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6546 | fi | |
6547 | export as_echo_body | |
6548 | as_echo='sh -c $as_echo_body as_echo' | |
6549 | fi | |
6550 | ||
6551 | # The user is always right. | |
6552 | if test "${PATH_SEPARATOR+set}" != set; then | |
6553 | PATH_SEPARATOR=: | |
6554 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6555 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6556 | PATH_SEPARATOR=';' | |
6557 | } | |
25ed0b71 KW |
6558 | fi |
6559 | ||
6560 | ||
81ecdfbb RW |
6561 | # IFS |
6562 | # We need space, tab and new line, in precisely that order. Quoting is | |
6563 | # there to prevent editors from complaining about space-tab. | |
6564 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6565 | # splitting by setting IFS to empty value.) | |
6566 | IFS=" "" $as_nl" | |
6567 | ||
6568 | # Find who we are. Look in the path if we contain no directory separator. | |
63a9e923 | 6569 | as_myself= |
81ecdfbb RW |
6570 | case $0 in #(( |
6571 | *[\\/]* ) as_myself=$0 ;; | |
6572 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6573 | for as_dir in $PATH | |
6574 | do | |
6575 | IFS=$as_save_IFS | |
6576 | test -z "$as_dir" && as_dir=. | |
6577 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6578 | done | |
6579 | IFS=$as_save_IFS | |
6580 | ||
6581 | ;; | |
6582 | esac | |
6583 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6584 | # in which case we are not to be found in the path. | |
6585 | if test "x$as_myself" = x; then | |
6586 | as_myself=$0 | |
6587 | fi | |
6588 | if test ! -f "$as_myself"; then | |
6589 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6590 | exit 1 | |
6591 | fi | |
6592 | ||
6593 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6594 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6595 | # suppresses any "Segmentation fault" message there. '((' could | |
6596 | # trigger a bug in pdksh 5.2.14. | |
6597 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6598 | do eval test x\${$as_var+set} = xset \ | |
6599 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6600 | done | |
25ed0b71 KW |
6601 | PS1='$ ' |
6602 | PS2='> ' | |
6603 | PS4='+ ' | |
6604 | ||
6605 | # NLS nuisances. | |
81ecdfbb RW |
6606 | LC_ALL=C |
6607 | export LC_ALL | |
6608 | LANGUAGE=C | |
6609 | export LANGUAGE | |
6610 | ||
6611 | # CDPATH. | |
6612 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6613 | ||
6614 | ||
63a9e923 SM |
6615 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
6616 | # ---------------------------------------- | |
81ecdfbb RW |
6617 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
6618 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
63a9e923 | 6619 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
6620 | as_fn_error () |
6621 | { | |
63a9e923 SM |
6622 | as_status=$1; test $as_status -eq 0 && as_status=1 |
6623 | if test "$4"; then | |
6624 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6625 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
25ed0b71 | 6626 | fi |
63a9e923 | 6627 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
6628 | as_fn_exit $as_status |
6629 | } # as_fn_error | |
25ed0b71 | 6630 | |
81ecdfbb RW |
6631 | |
6632 | # as_fn_set_status STATUS | |
6633 | # ----------------------- | |
6634 | # Set $? to STATUS, without forking. | |
6635 | as_fn_set_status () | |
6636 | { | |
6637 | return $1 | |
6638 | } # as_fn_set_status | |
6639 | ||
6640 | # as_fn_exit STATUS | |
6641 | # ----------------- | |
6642 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6643 | as_fn_exit () | |
6644 | { | |
6645 | set +e | |
6646 | as_fn_set_status $1 | |
6647 | exit $1 | |
6648 | } # as_fn_exit | |
6649 | ||
6650 | # as_fn_unset VAR | |
6651 | # --------------- | |
6652 | # Portably unset VAR. | |
6653 | as_fn_unset () | |
6654 | { | |
6655 | { eval $1=; unset $1;} | |
6656 | } | |
6657 | as_unset=as_fn_unset | |
6658 | # as_fn_append VAR VALUE | |
6659 | # ---------------------- | |
6660 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6661 | # advantage of any shell optimizations that allow amortized linear growth over | |
6662 | # repeated appends, instead of the typical quadratic growth present in naive | |
6663 | # implementations. | |
6664 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6665 | eval 'as_fn_append () | |
6666 | { | |
6667 | eval $1+=\$2 | |
6668 | }' | |
6669 | else | |
6670 | as_fn_append () | |
6671 | { | |
6672 | eval $1=\$$1\$2 | |
6673 | } | |
6674 | fi # as_fn_append | |
6675 | ||
6676 | # as_fn_arith ARG... | |
6677 | # ------------------ | |
6678 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6679 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6680 | # must be portable across $(()) and expr. | |
6681 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6682 | eval 'as_fn_arith () | |
6683 | { | |
6684 | as_val=$(( $* )) | |
6685 | }' | |
6686 | else | |
6687 | as_fn_arith () | |
6688 | { | |
6689 | as_val=`expr "$@" || test $? -eq 1` | |
6690 | } | |
6691 | fi # as_fn_arith | |
6692 | ||
6693 | ||
6694 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6695 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
25ed0b71 KW |
6696 | as_expr=expr |
6697 | else | |
6698 | as_expr=false | |
6699 | fi | |
6700 | ||
81ecdfbb | 6701 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25ed0b71 KW |
6702 | as_basename=basename |
6703 | else | |
6704 | as_basename=false | |
6705 | fi | |
6706 | ||
81ecdfbb RW |
6707 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6708 | as_dirname=dirname | |
6709 | else | |
6710 | as_dirname=false | |
6711 | fi | |
25ed0b71 | 6712 | |
81ecdfbb | 6713 | as_me=`$as_basename -- "$0" || |
25ed0b71 KW |
6714 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6715 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6716 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6717 | $as_echo X/"$0" | | |
6718 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6719 | s//\1/ | |
6720 | q | |
6721 | } | |
6722 | /^X\/\(\/\/\)$/{ | |
6723 | s//\1/ | |
6724 | q | |
6725 | } | |
6726 | /^X\/\(\/\).*/{ | |
6727 | s//\1/ | |
6728 | q | |
6729 | } | |
6730 | s/.*/./; q'` | |
25ed0b71 | 6731 | |
25ed0b71 KW |
6732 | # Avoid depending upon Character Ranges. |
6733 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6734 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6735 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6736 | as_cr_digits='0123456789' | |
6737 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6738 | ||
81ecdfbb RW |
6739 | ECHO_C= ECHO_N= ECHO_T= |
6740 | case `echo -n x` in #((((( | |
6741 | -n*) | |
6742 | case `echo 'xy\c'` in | |
6743 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6744 | xy) ECHO_C='\c';; | |
6745 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6746 | ECHO_T=' ';; | |
6747 | esac;; | |
6748 | *) | |
6749 | ECHO_N='-n';; | |
25ed0b71 | 6750 | esac |
9255ee31 | 6751 | |
81ecdfbb RW |
6752 | rm -f conf$$ conf$$.exe conf$$.file |
6753 | if test -d conf$$.dir; then | |
6754 | rm -f conf$$.dir/conf$$.file | |
9255ee31 | 6755 | else |
81ecdfbb RW |
6756 | rm -f conf$$.dir |
6757 | mkdir conf$$.dir 2>/dev/null | |
9255ee31 | 6758 | fi |
81ecdfbb RW |
6759 | if (echo >conf$$.file) 2>/dev/null; then |
6760 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9255ee31 | 6761 | as_ln_s='ln -s' |
81ecdfbb RW |
6762 | # ... but there are two gotchas: |
6763 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6764 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
63a9e923 | 6765 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 6766 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
63a9e923 | 6767 | as_ln_s='cp -pR' |
81ecdfbb RW |
6768 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6769 | as_ln_s=ln | |
6770 | else | |
63a9e923 | 6771 | as_ln_s='cp -pR' |
9255ee31 | 6772 | fi |
9255ee31 | 6773 | else |
63a9e923 | 6774 | as_ln_s='cp -pR' |
9255ee31 | 6775 | fi |
81ecdfbb RW |
6776 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6777 | rmdir conf$$.dir 2>/dev/null | |
6778 | ||
6779 | ||
6780 | # as_fn_mkdir_p | |
6781 | # ------------- | |
6782 | # Create "$as_dir" as a directory, including parents if necessary. | |
6783 | as_fn_mkdir_p () | |
6784 | { | |
6785 | ||
6786 | case $as_dir in #( | |
6787 | -*) as_dir=./$as_dir;; | |
6788 | esac | |
6789 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6790 | as_dirs= | |
6791 | while :; do | |
6792 | case $as_dir in #( | |
6793 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6794 | *) as_qdir=$as_dir;; | |
6795 | esac | |
6796 | as_dirs="'$as_qdir' $as_dirs" | |
6797 | as_dir=`$as_dirname -- "$as_dir" || | |
6798 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6799 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6800 | X"$as_dir" : 'X\(//\)$' \| \ | |
6801 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6802 | $as_echo X"$as_dir" | | |
6803 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6804 | s//\1/ | |
6805 | q | |
6806 | } | |
6807 | /^X\(\/\/\)[^/].*/{ | |
6808 | s//\1/ | |
6809 | q | |
6810 | } | |
6811 | /^X\(\/\/\)$/{ | |
6812 | s//\1/ | |
6813 | q | |
6814 | } | |
6815 | /^X\(\/\).*/{ | |
6816 | s//\1/ | |
6817 | q | |
6818 | } | |
6819 | s/.*/./; q'` | |
6820 | test -d "$as_dir" && break | |
6821 | done | |
6822 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
63a9e923 | 6823 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9255ee31 | 6824 | |
81ecdfbb RW |
6825 | |
6826 | } # as_fn_mkdir_p | |
25ed0b71 | 6827 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6828 | as_mkdir_p='mkdir -p "$as_dir"' |
9255ee31 | 6829 | else |
430b7832 | 6830 | test -d ./-p && rmdir ./-p |
25ed0b71 | 6831 | as_mkdir_p=false |
9255ee31 EZ |
6832 | fi |
6833 | ||
63a9e923 SM |
6834 | |
6835 | # as_fn_executable_p FILE | |
6836 | # ----------------------- | |
6837 | # Test if FILE is an executable regular file. | |
6838 | as_fn_executable_p () | |
6839 | { | |
6840 | test -f "$1" && test -x "$1" | |
6841 | } # as_fn_executable_p | |
6842 | as_test_x='test -x' | |
6843 | as_executable_p=as_fn_executable_p | |
25ed0b71 KW |
6844 | |
6845 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 6846 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
6847 | |
6848 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 6849 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 6850 | |
9255ee31 | 6851 | |
9255ee31 | 6852 | exec 6>&1 |
81ecdfbb RW |
6853 | ## ----------------------------------- ## |
6854 | ## Main body of $CONFIG_STATUS script. ## | |
6855 | ## ----------------------------------- ## | |
6856 | _ASEOF | |
6857 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9255ee31 | 6858 | |
81ecdfbb RW |
6859 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6860 | # Save the log message, to keep $0 and so on meaningful, and to | |
25ed0b71 | 6861 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6862 | # values after options handling. |
6863 | ac_log=" | |
5836a818 | 6864 | This file was extended by readline $as_me 6.2, which was |
63a9e923 | 6865 | generated by GNU Autoconf 2.69. Invocation command line was |
25ed0b71 KW |
6866 | |
6867 | CONFIG_FILES = $CONFIG_FILES | |
6868 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6869 | CONFIG_LINKS = $CONFIG_LINKS | |
6870 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6871 | $ $0 $@ | |
6872 | ||
81ecdfbb RW |
6873 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6874 | " | |
6875 | ||
9255ee31 EZ |
6876 | _ACEOF |
6877 | ||
81ecdfbb RW |
6878 | case $ac_config_files in *" |
6879 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6880 | esac | |
9255ee31 | 6881 | |
81ecdfbb RW |
6882 | case $ac_config_headers in *" |
6883 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6884 | esac | |
9255ee31 | 6885 | |
9255ee31 | 6886 | |
81ecdfbb RW |
6887 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6888 | # Files that config.status was made for. | |
6889 | config_files="$ac_config_files" | |
6890 | config_headers="$ac_config_headers" | |
6891 | config_commands="$ac_config_commands" | |
9255ee31 | 6892 | |
81ecdfbb | 6893 | _ACEOF |
9255ee31 | 6894 | |
81ecdfbb | 6895 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 | 6896 | ac_cs_usage="\ |
81ecdfbb RW |
6897 | \`$as_me' instantiates files and other configuration actions |
6898 | from templates according to the current configuration. Unless the files | |
6899 | and actions are specified as TAGs, all are instantiated by default. | |
9255ee31 | 6900 | |
81ecdfbb | 6901 | Usage: $0 [OPTION]... [TAG]... |
9255ee31 EZ |
6902 | |
6903 | -h, --help print this help, then exit | |
81ecdfbb | 6904 | -V, --version print version number and configuration settings, then exit |
63a9e923 | 6905 | --config print configuration, then exit |
81ecdfbb RW |
6906 | -q, --quiet, --silent |
6907 | do not print progress messages | |
9255ee31 EZ |
6908 | -d, --debug don't remove temporary files |
6909 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6910 | --file=FILE[:TEMPLATE] |
6911 | instantiate the configuration file FILE | |
6912 | --header=FILE[:TEMPLATE] | |
6913 | instantiate the configuration header FILE | |
9255ee31 EZ |
6914 | |
6915 | Configuration files: | |
6916 | $config_files | |
6917 | ||
6918 | Configuration headers: | |
6919 | $config_headers | |
6920 | ||
6921 | Configuration commands: | |
6922 | $config_commands | |
6923 | ||
81ecdfbb | 6924 | Report bugs to <bug-readline@gnu.org>." |
9255ee31 | 6925 | |
81ecdfbb RW |
6926 | _ACEOF |
6927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
63a9e923 | 6928 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9255ee31 | 6929 | ac_cs_version="\\ |
5836a818 | 6930 | readline config.status 6.2 |
63a9e923 SM |
6931 | configured by $0, generated by GNU Autoconf 2.69, |
6932 | with options \\"\$ac_cs_config\\" | |
9255ee31 | 6933 | |
63a9e923 | 6934 | Copyright (C) 2012 Free Software Foundation, Inc. |
9255ee31 EZ |
6935 | This config.status script is free software; the Free Software Foundation |
6936 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6937 | |
6938 | ac_pwd='$ac_pwd' | |
6939 | srcdir='$srcdir' | |
6940 | INSTALL='$INSTALL' | |
6941 | test -n "\$AWK" || AWK=awk | |
25ed0b71 | 6942 | _ACEOF |
9255ee31 | 6943 | |
81ecdfbb RW |
6944 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6945 | # The default lists apply if the user does not specify any file. | |
9255ee31 EZ |
6946 | ac_need_defaults=: |
6947 | while test $# != 0 | |
d60d9f65 | 6948 | do |
9255ee31 | 6949 | case $1 in |
63a9e923 | 6950 | --*=?*) |
81ecdfbb RW |
6951 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6952 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
25ed0b71 KW |
6953 | ac_shift=: |
6954 | ;; | |
63a9e923 SM |
6955 | --*=) |
6956 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6957 | ac_optarg= | |
6958 | ac_shift=: | |
6959 | ;; | |
81ecdfbb | 6960 | *) |
25ed0b71 KW |
6961 | ac_option=$1 |
6962 | ac_optarg=$2 | |
6963 | ac_shift=shift | |
9255ee31 | 6964 | ;; |
9255ee31 EZ |
6965 | esac |
6966 | ||
25ed0b71 | 6967 | case $ac_option in |
9255ee31 | 6968 | # Handling of the options. |
d60d9f65 | 6969 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 6970 | ac_cs_recheck=: ;; |
81ecdfbb RW |
6971 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6972 | $as_echo "$ac_cs_version"; exit ;; | |
63a9e923 SM |
6973 | --config | --confi | --conf | --con | --co | --c ) |
6974 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 6975 | --debug | --debu | --deb | --de | --d | -d ) |
9255ee31 EZ |
6976 | debug=: ;; |
6977 | --file | --fil | --fi | --f ) | |
25ed0b71 | 6978 | $ac_shift |
81ecdfbb RW |
6979 | case $ac_optarg in |
6980 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
63a9e923 | 6981 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
6982 | esac |
6983 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
9255ee31 EZ |
6984 | ac_need_defaults=false;; |
6985 | --header | --heade | --head | --hea ) | |
25ed0b71 | 6986 | $ac_shift |
81ecdfbb RW |
6987 | case $ac_optarg in |
6988 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6989 | esac | |
6990 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
9255ee31 | 6991 | ac_need_defaults=false;; |
81ecdfbb RW |
6992 | --he | --h) |
6993 | # Conflict between --help and --header | |
63a9e923 | 6994 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
6995 | Try \`$0 --help' for more information.";; |
6996 | --help | --hel | -h ) | |
6997 | $as_echo "$ac_cs_usage"; exit ;; | |
25ed0b71 KW |
6998 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6999 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7000 | ac_cs_silent=: ;; | |
9255ee31 EZ |
7001 | |
7002 | # This is an error. | |
63a9e923 | 7003 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 7004 | Try \`$0 --help' for more information." ;; |
9255ee31 | 7005 | |
81ecdfbb RW |
7006 | *) as_fn_append ac_config_targets " $1" |
7007 | ac_need_defaults=false ;; | |
9255ee31 | 7008 | |
d60d9f65 | 7009 | esac |
9255ee31 | 7010 | shift |
d60d9f65 SS |
7011 | done |
7012 | ||
25ed0b71 | 7013 | ac_configure_extra_args= |
9255ee31 | 7014 | |
25ed0b71 KW |
7015 | if $ac_cs_silent; then |
7016 | exec 6>/dev/null | |
7017 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7018 | fi | |
9255ee31 | 7019 | |
25ed0b71 | 7020 | _ACEOF |
81ecdfbb | 7021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25ed0b71 | 7022 | if \$ac_cs_recheck; then |
63a9e923 | 7023 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
7024 | shift |
7025 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7026 | CONFIG_SHELL='$SHELL' | |
7027 | export CONFIG_SHELL | |
7028 | exec "\$@" | |
25ed0b71 | 7029 | fi |
d60d9f65 | 7030 | |
9255ee31 | 7031 | _ACEOF |
81ecdfbb RW |
7032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7033 | exec 5>>config.log | |
7034 | { | |
7035 | echo | |
7036 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7037 | ## Running $as_me. ## | |
7038 | _ASBOX | |
7039 | $as_echo "$ac_log" | |
7040 | } >&5 | |
d60d9f65 | 7041 | |
81ecdfbb RW |
7042 | _ACEOF |
7043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7044 | _ACEOF | |
25ed0b71 | 7045 | |
81ecdfbb | 7046 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25ed0b71 | 7047 | |
81ecdfbb | 7048 | # Handling of arguments. |
9255ee31 EZ |
7049 | for ac_config_target in $ac_config_targets |
7050 | do | |
81ecdfbb RW |
7051 | case $ac_config_target in |
7052 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7053 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7054 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7055 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
7056 | "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
7057 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7058 | ||
63a9e923 | 7059 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9255ee31 EZ |
7060 | esac |
7061 | done | |
7062 | ||
81ecdfbb | 7063 | |
9255ee31 EZ |
7064 | # If the user did not use the arguments to specify the items to instantiate, |
7065 | # then the envvar interface is used. Set only those that are not. | |
7066 | # We use the long form for the default assignment because of an extremely | |
7067 | # bizarre bug on SunOS 4.1.3. | |
7068 | if $ac_need_defaults; then | |
7069 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7070 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7071 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7072 | fi | |
7073 | ||
25ed0b71 | 7074 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 7075 | # simply because there is no reason against having it here, and in addition, |
25ed0b71 | 7076 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7077 | # Hook for its removal unless debugging. |
7078 | # Note that there is a small window in which the directory will not be cleaned: | |
7079 | # after its creation but before its name has been assigned to `$tmp'. | |
9255ee31 EZ |
7080 | $debug || |
7081 | { | |
63a9e923 | 7082 | tmp= ac_tmp= |
81ecdfbb | 7083 | trap 'exit_status=$? |
63a9e923 SM |
7084 | : "${ac_tmp:=$tmp}" |
7085 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
7086 | ' 0 |
7087 | trap 'as_fn_exit 1' 1 2 13 15 | |
9255ee31 | 7088 | } |
9255ee31 | 7089 | # Create a (secure) tmp directory for tmp files. |
25ed0b71 | 7090 | |
9255ee31 | 7091 | { |
81ecdfbb | 7092 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
63a9e923 | 7093 | test -d "$tmp" |
9255ee31 EZ |
7094 | } || |
7095 | { | |
81ecdfbb RW |
7096 | tmp=./conf$$-$RANDOM |
7097 | (umask 077 && mkdir "$tmp") | |
63a9e923 SM |
7098 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
7099 | ac_tmp=$tmp | |
81ecdfbb RW |
7100 | |
7101 | # Set up the scripts for CONFIG_FILES section. | |
7102 | # No need to generate them if there are no CONFIG_FILES. | |
7103 | # This happens for instance with `./config.status config.h'. | |
7104 | if test -n "$CONFIG_FILES"; then | |
7105 | ||
7106 | ||
7107 | ac_cr=`echo X | tr X '\015'` | |
7108 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7109 | # But we know of no other shell where ac_cr would be empty at this | |
7110 | # point, so we can use a bashism as a fallback. | |
7111 | if test "x$ac_cr" = x; then | |
7112 | eval ac_cr=\$\'\\r\' | |
7113 | fi | |
7114 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7115 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
63a9e923 | 7116 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
7117 | else |
7118 | ac_cs_awk_cr=$ac_cr | |
7119 | fi | |
7120 | ||
63a9e923 | 7121 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
7122 | _ACEOF |
7123 | ||
7124 | ||
9255ee31 | 7125 | { |
81ecdfbb RW |
7126 | echo "cat >conf$$subs.awk <<_ACEOF" && |
7127 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7128 | echo "_ACEOF" | |
7129 | } >conf$$subs.sh || | |
63a9e923 SM |
7130 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7131 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
7132 | ac_delim='%!_!# ' |
7133 | for ac_last_try in false false false false false :; do | |
7134 | . ./conf$$subs.sh || | |
63a9e923 | 7135 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7136 | |
7137 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7138 | if test $ac_delim_n = $ac_delim_num; then | |
7139 | break | |
7140 | elif $ac_last_try; then | |
63a9e923 | 7141 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7142 | else |
7143 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7144 | fi | |
7145 | done | |
7146 | rm -f conf$$subs.sh | |
7147 | ||
7148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
63a9e923 | 7149 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
7150 | _ACEOF |
7151 | sed -n ' | |
7152 | h | |
7153 | s/^/S["/; s/!.*/"]=/ | |
7154 | p | |
7155 | g | |
7156 | s/^[^!]*!// | |
7157 | :repl | |
7158 | t repl | |
7159 | s/'"$ac_delim"'$// | |
7160 | t delim | |
7161 | :nl | |
7162 | h | |
63a9e923 | 7163 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7164 | t more1 |
7165 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7166 | p | |
7167 | n | |
7168 | b repl | |
7169 | :more1 | |
7170 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7171 | p | |
7172 | g | |
7173 | s/.\{148\}// | |
7174 | t nl | |
7175 | :delim | |
7176 | h | |
63a9e923 | 7177 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7178 | t more2 |
7179 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7180 | p | |
7181 | b | |
7182 | :more2 | |
7183 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7184 | p | |
7185 | g | |
7186 | s/.\{148\}// | |
7187 | t delim | |
7188 | ' <conf$$subs.awk | sed ' | |
7189 | /^[^""]/{ | |
7190 | N | |
7191 | s/\n// | |
9255ee31 | 7192 | } |
81ecdfbb RW |
7193 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7194 | rm -f conf$$subs.awk | |
7195 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7196 | _ACAWK | |
63a9e923 | 7197 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
7198 | for (key in S) S_is_set[key] = 1 |
7199 | FS = "\a" | |
d60d9f65 | 7200 | |
81ecdfbb RW |
7201 | } |
7202 | { | |
7203 | line = $ 0 | |
7204 | nfields = split(line, field, "@") | |
7205 | substed = 0 | |
7206 | len = length(field[1]) | |
7207 | for (i = 2; i < nfields; i++) { | |
7208 | key = field[i] | |
7209 | keylen = length(key) | |
7210 | if (S_is_set[key]) { | |
7211 | value = S[key] | |
7212 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7213 | len += length(value) + length(field[++i]) | |
7214 | substed = 1 | |
7215 | } else | |
7216 | len += 1 + keylen | |
7217 | } | |
d60d9f65 | 7218 | |
81ecdfbb RW |
7219 | print line |
7220 | } | |
d60d9f65 | 7221 | |
81ecdfbb RW |
7222 | _ACAWK |
7223 | _ACEOF | |
7224 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7225 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7226 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7227 | else | |
7228 | cat | |
63a9e923 SM |
7229 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
7230 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
7231 | _ACEOF |
7232 | ||
63a9e923 SM |
7233 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7234 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
7235 | # trailing colons and then remove the whole line if VPATH becomes empty |
7236 | # (actually we leave an empty line to preserve line numbers). | |
7237 | if test "x$srcdir" = x.; then | |
63a9e923 SM |
7238 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7239 | h | |
7240 | s/// | |
7241 | s/^/:/ | |
7242 | s/[ ]*$/:/ | |
7243 | s/:\$(srcdir):/:/g | |
7244 | s/:\${srcdir}:/:/g | |
7245 | s/:@srcdir@:/:/g | |
7246 | s/^:*// | |
81ecdfbb | 7247 | s/:*$// |
63a9e923 SM |
7248 | x |
7249 | s/\(=[ ]*\).*/\1/ | |
7250 | G | |
7251 | s/\n// | |
81ecdfbb RW |
7252 | s/^[^=]*=[ ]*$// |
7253 | }' | |
7254 | fi | |
9255ee31 | 7255 | |
81ecdfbb RW |
7256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7257 | fi # test -n "$CONFIG_FILES" | |
9255ee31 | 7258 | |
81ecdfbb RW |
7259 | # Set up the scripts for CONFIG_HEADERS section. |
7260 | # No need to generate them if there are no CONFIG_HEADERS. | |
7261 | # This happens for instance with `./config.status Makefile'. | |
7262 | if test -n "$CONFIG_HEADERS"; then | |
63a9e923 | 7263 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 7264 | BEGIN { |
25ed0b71 | 7265 | _ACEOF |
9255ee31 | 7266 | |
81ecdfbb RW |
7267 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7268 | # here-document in config.status, that substitutes the proper values into | |
7269 | # config.h.in to produce config.h. | |
7270 | ||
7271 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7272 | # handling of long lines. | |
7273 | ac_delim='%!_!# ' | |
7274 | for ac_last_try in false false :; do | |
63a9e923 SM |
7275 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
7276 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
7277 | break |
7278 | elif $ac_last_try; then | |
63a9e923 | 7279 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
7280 | else |
7281 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d60d9f65 | 7282 | fi |
81ecdfbb | 7283 | done |
d60d9f65 | 7284 | |
81ecdfbb RW |
7285 | # For the awk script, D is an array of macro values keyed by name, |
7286 | # likewise P contains macro parameters if any. Preserve backslash | |
7287 | # newline sequences. | |
7288 | ||
7289 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7290 | sed -n ' | |
7291 | s/.\{148\}/&'"$ac_delim"'/g | |
7292 | t rset | |
7293 | :rset | |
7294 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7295 | t def | |
7296 | d | |
7297 | :def | |
7298 | s/\\$// | |
7299 | t bsnl | |
7300 | s/["\\]/\\&/g | |
7301 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7302 | D["\1"]=" \3"/p | |
7303 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7304 | d | |
7305 | :bsnl | |
7306 | s/["\\]/\\&/g | |
7307 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7308 | D["\1"]=" \3\\\\\\n"\\/p | |
7309 | t cont | |
7310 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7311 | t cont | |
7312 | d | |
7313 | :cont | |
7314 | n | |
7315 | s/.\{148\}/&'"$ac_delim"'/g | |
7316 | t clear | |
7317 | :clear | |
7318 | s/\\$// | |
7319 | t bsnlc | |
7320 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7321 | d | |
7322 | :bsnlc | |
7323 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7324 | b cont | |
7325 | ' <confdefs.h | sed ' | |
7326 | s/'"$ac_delim"'/"\\\ | |
7327 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7328 | ||
7329 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7330 | for (key in D) D_is_set[key] = 1 | |
7331 | FS = "\a" | |
7332 | } | |
7333 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7334 | line = \$ 0 | |
7335 | split(line, arg, " ") | |
7336 | if (arg[1] == "#") { | |
7337 | defundef = arg[2] | |
7338 | mac1 = arg[3] | |
7339 | } else { | |
7340 | defundef = substr(arg[1], 2) | |
7341 | mac1 = arg[2] | |
7342 | } | |
7343 | split(mac1, mac2, "(") #) | |
7344 | macro = mac2[1] | |
7345 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7346 | if (D_is_set[macro]) { | |
7347 | # Preserve the white space surrounding the "#". | |
7348 | print prefix "define", macro P[macro] D[macro] | |
7349 | next | |
7350 | } else { | |
7351 | # Replace #undef with comments. This is necessary, for example, | |
7352 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7353 | # on some systems where configure will not decide to define it. | |
7354 | if (defundef == "undef") { | |
7355 | print "/*", prefix defundef, macro, "*/" | |
7356 | next | |
7357 | } | |
7358 | } | |
7359 | } | |
7360 | { print } | |
7361 | _ACAWK | |
25ed0b71 | 7362 | _ACEOF |
81ecdfbb | 7363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
63a9e923 | 7364 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
7365 | fi # test -n "$CONFIG_HEADERS" |
7366 | ||
7367 | ||
7368 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7369 | shift | |
7370 | for ac_tag | |
7371 | do | |
7372 | case $ac_tag in | |
7373 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7374 | esac | |
7375 | case $ac_mode$ac_tag in | |
7376 | :[FHL]*:*);; | |
63a9e923 | 7377 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
7378 | :[FH]-) ac_tag=-:-;; |
7379 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7380 | esac | |
7381 | ac_save_IFS=$IFS | |
7382 | IFS=: | |
7383 | set x $ac_tag | |
7384 | IFS=$ac_save_IFS | |
7385 | shift | |
7386 | ac_file=$1 | |
7387 | shift | |
7388 | ||
7389 | case $ac_mode in | |
7390 | :L) ac_source=$1;; | |
7391 | :[FH]) | |
7392 | ac_file_inputs= | |
7393 | for ac_f | |
7394 | do | |
7395 | case $ac_f in | |
63a9e923 | 7396 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
7397 | *) # Look for the file first in the build tree, then in the source tree |
7398 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7399 | # because $ac_f cannot contain `:'. | |
7400 | test -f "$ac_f" || | |
7401 | case $ac_f in | |
7402 | [\\/$]*) false;; | |
7403 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7404 | esac || | |
63a9e923 | 7405 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
7406 | esac |
7407 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7408 | as_fn_append ac_file_inputs " '$ac_f'" | |
7409 | done | |
7410 | ||
7411 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7412 | # use $as_me), people would be surprised to read: | |
7413 | # /* config.h. Generated by config.status. */ | |
7414 | configure_input='Generated from '` | |
7415 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7416 | `' by configure.' | |
7417 | if test x"$ac_file" != x-; then | |
7418 | configure_input="$ac_file. $configure_input" | |
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7420 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7421 | fi | |
7422 | # Neutralize special characters interpreted by sed in replacement strings. | |
7423 | case $configure_input in #( | |
7424 | *\&* | *\|* | *\\* ) | |
7425 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7426 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7427 | *) ac_sed_conf_input=$configure_input;; | |
7428 | esac | |
7429 | ||
7430 | case $ac_tag in | |
63a9e923 SM |
7431 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7432 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
7433 | esac |
7434 | ;; | |
d60d9f65 SS |
7435 | esac |
7436 | ||
81ecdfbb | 7437 | ac_dir=`$as_dirname -- "$ac_file" || |
25ed0b71 | 7438 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
430b7832 MM |
7439 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7440 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7441 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7442 | $as_echo X"$ac_file" | | |
7443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7444 | s//\1/ | |
7445 | q | |
7446 | } | |
7447 | /^X\(\/\/\)[^/].*/{ | |
7448 | s//\1/ | |
7449 | q | |
7450 | } | |
7451 | /^X\(\/\/\)$/{ | |
7452 | s//\1/ | |
7453 | q | |
7454 | } | |
7455 | /^X\(\/\).*/{ | |
7456 | s//\1/ | |
7457 | q | |
7458 | } | |
7459 | s/.*/./; q'` | |
7460 | as_dir="$ac_dir"; as_fn_mkdir_p | |
25ed0b71 KW |
7461 | ac_builddir=. |
7462 | ||
81ecdfbb RW |
7463 | case "$ac_dir" in |
7464 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7465 | *) | |
7466 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7467 | # A ".." for each directory in $ac_dir_suffix. | |
7468 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7469 | case $ac_top_builddir_sub in | |
7470 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7471 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7472 | esac ;; | |
7473 | esac | |
7474 | ac_abs_top_builddir=$ac_pwd | |
7475 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7476 | # for backward compatibility: | |
7477 | ac_top_builddir=$ac_top_build_prefix | |
25ed0b71 KW |
7478 | |
7479 | case $srcdir in | |
81ecdfbb | 7480 | .) # We are building in place. |
25ed0b71 | 7481 | ac_srcdir=. |
81ecdfbb RW |
7482 | ac_top_srcdir=$ac_top_builddir_sub |
7483 | ac_abs_top_srcdir=$ac_pwd ;; | |
7484 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25ed0b71 | 7485 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7486 | ac_top_srcdir=$srcdir |
7487 | ac_abs_top_srcdir=$srcdir ;; | |
7488 | *) # Relative name. | |
7489 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7490 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7491 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25ed0b71 | 7492 | esac |
81ecdfbb | 7493 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
430b7832 | 7494 | |
25ed0b71 | 7495 | |
81ecdfbb RW |
7496 | case $ac_mode in |
7497 | :F) | |
7498 | # | |
7499 | # CONFIG_FILE | |
7500 | # | |
d60d9f65 | 7501 | |
9255ee31 EZ |
7502 | case $INSTALL in |
7503 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 7504 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d60d9f65 | 7505 | esac |
81ecdfbb | 7506 | _ACEOF |
d60d9f65 | 7507 | |
81ecdfbb RW |
7508 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7509 | # If the template does not know about datarootdir, expand it. | |
7510 | # FIXME: This hack should be removed a few years after 2.60. | |
7511 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7512 | ac_sed_dataroot=' | |
7513 | /datarootdir/ { | |
7514 | p | |
7515 | q | |
7516 | } | |
7517 | /@datadir@/p | |
7518 | /@docdir@/p | |
7519 | /@infodir@/p | |
7520 | /@localedir@/p | |
7521 | /@mandir@/p' | |
7522 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7523 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7524 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7526 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7527 | _ACEOF | |
7528 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7529 | ac_datarootdir_hack=' | |
7530 | s&@datadir@&$datadir&g | |
7531 | s&@docdir@&$docdir&g | |
7532 | s&@infodir@&$infodir&g | |
7533 | s&@localedir@&$localedir&g | |
7534 | s&@mandir@&$mandir&g | |
7535 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7536 | esac | |
25ed0b71 | 7537 | _ACEOF |
81ecdfbb RW |
7538 | |
7539 | # Neutralize VPATH when `$srcdir' = `.'. | |
7540 | # Shell code in configure.ac might set extrasub. | |
7541 | # FIXME: do we really want to maintain this feature? | |
7542 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7543 | ac_sed_extra="$ac_vpsub | |
9255ee31 | 7544 | $extrasub |
25ed0b71 | 7545 | _ACEOF |
81ecdfbb | 7546 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9255ee31 EZ |
7547 | :t |
7548 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
7549 | s|@configure_input@|$ac_sed_conf_input|;t t |
7550 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7551 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7552 | s&@srcdir@&$ac_srcdir&;t t | |
7553 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7554 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7555 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7556 | s&@builddir@&$ac_builddir&;t t | |
7557 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7558 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7559 | s&@INSTALL@&$ac_INSTALL&;t t | |
7560 | $ac_datarootdir_hack | |
7561 | " | |
63a9e923 SM |
7562 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
7563 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
7564 | |
7565 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
63a9e923 SM |
7566 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
7567 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
7568 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
63a9e923 | 7570 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 7571 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
63a9e923 | 7572 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 7573 | |
63a9e923 | 7574 | rm -f "$ac_tmp/stdin" |
9255ee31 | 7575 | case $ac_file in |
63a9e923 SM |
7576 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
7577 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 7578 | esac \ |
63a9e923 | 7579 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
7580 | ;; |
7581 | :H) | |
7582 | # | |
7583 | # CONFIG_HEADER | |
7584 | # | |
9255ee31 | 7585 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
7586 | { |
7587 | $as_echo "/* $configure_input */" \ | |
63a9e923 SM |
7588 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
7589 | } >"$ac_tmp/config.h" \ | |
7590 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7591 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
7593 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
9255ee31 | 7594 | else |
81ecdfbb | 7595 | rm -f "$ac_file" |
63a9e923 SM |
7596 | mv "$ac_tmp/config.h" "$ac_file" \ |
7597 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d60d9f65 | 7598 | fi |
9255ee31 | 7599 | else |
81ecdfbb | 7600 | $as_echo "/* $configure_input */" \ |
63a9e923 SM |
7601 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
7602 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d60d9f65 | 7603 | fi |
81ecdfbb | 7604 | ;; |
430b7832 | 7605 | |
81ecdfbb RW |
7606 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
7607 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7608 | ;; | |
7609 | esac | |
25ed0b71 | 7610 | |
d60d9f65 | 7611 | |
81ecdfbb RW |
7612 | case $ac_file$ac_mode in |
7613 | "default":C) | |
d60d9f65 SS |
7614 | # Makefile uses this timestamp file to record whether config.h is up to date. |
7615 | echo > stamp-h | |
9255ee31 | 7616 | ;; |
81ecdfbb | 7617 | |
9255ee31 | 7618 | esac |
81ecdfbb | 7619 | done # for ac_tag |
d60d9f65 | 7620 | |
9255ee31 | 7621 | |
81ecdfbb | 7622 | as_fn_exit 0 |
25ed0b71 | 7623 | _ACEOF |
9255ee31 EZ |
7624 | ac_clean_files=$ac_clean_files_save |
7625 | ||
81ecdfbb | 7626 | test $ac_write_fail = 0 || |
63a9e923 | 7627 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 7628 | |
25ed0b71 | 7629 | |
9255ee31 EZ |
7630 | # configure is writing to config.log, and then calls config.status. |
7631 | # config.status does its own redirection, appending to config.log. | |
7632 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7633 | # by configure, so config.status won't be able to write to it; its | |
7634 | # output is simply discarded. So we exec the FD to /dev/null, | |
7635 | # effectively closing config.log, so it can be properly (re)opened and | |
7636 | # appended to by config.status. When coming back to configure, we | |
7637 | # need to make the FD available again. | |
7638 | if test "$no_create" != yes; then | |
7639 | ac_cs_success=: | |
25ed0b71 KW |
7640 | ac_config_status_args= |
7641 | test "$silent" = yes && | |
7642 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 7643 | exec 5>/dev/null |
25ed0b71 | 7644 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
7645 | exec 5>>config.log |
7646 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7647 | # would make configure fail if this is the last instruction. | |
63a9e923 | 7648 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
7649 | fi |
7650 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7652 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
9255ee31 | 7653 | fi |
d60d9f65 | 7654 |