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