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