]>
Commit | Line | Data |
---|---|---|
6eb95e99 ZW |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
6eb95e99 | 8 | # |
6eb95e99 ZW |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
79035f0d | 14 | |
5213506e RW |
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 : | |
79035f0d NN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
79035f0d NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
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 | |
79035f0d NN |
31 | fi |
32 | ||
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
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 | } | |
79035f0d NN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
79035f0d NN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
79035f0d | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
79035f0d | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
79035f0d | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
79035f0d | 317 | |
5213506e RW |
318 | case $as_dir in #( |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
79035f0d NN |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
79035f0d NN |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
79035f0d | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
79035f0d NN |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
79035f0d | 456 | |
79035f0d NN |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
79035f0d | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
79035f0d | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
79035f0d | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
79035f0d | 482 | t loop |
5213506e | 483 | s/-\n.*// |
79035f0d | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
79035f0d | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
79035f0d NN |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
79035f0d NN |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
79035f0d NN |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
79035f0d | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
79035f0d | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
79035f0d | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
79035f0d | 533 | fi |
79035f0d | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
79035f0d | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
79035f0d NN |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
79035f0d | 542 | else |
8ab705be | 543 | test -d ./-p && rmdir ./-p |
79035f0d NN |
544 | as_mkdir_p=false |
545 | fi | |
6eb95e99 | 546 | |
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
79035f0d NN |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
8ab705be | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
552 | |
553 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
555 | |
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
79035f0d NN |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
79035f0d NN |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
79035f0d NN |
565 | # |
566 | # Initializations. | |
567 | # | |
6eb95e99 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
79035f0d | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
79035f0d NN |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
79035f0d NN |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
79035f0d | 584 | |
79035f0d NN |
585 | # Factoring default headers for most tests. |
586 | ac_includes_default="\ | |
587 | #include <stdio.h> | |
5213506e | 588 | #ifdef HAVE_SYS_TYPES_H |
79035f0d NN |
589 | # include <sys/types.h> |
590 | #endif | |
5213506e | 591 | #ifdef HAVE_SYS_STAT_H |
79035f0d NN |
592 | # include <sys/stat.h> |
593 | #endif | |
5213506e | 594 | #ifdef STDC_HEADERS |
79035f0d NN |
595 | # include <stdlib.h> |
596 | # include <stddef.h> | |
597 | #else | |
5213506e | 598 | # ifdef HAVE_STDLIB_H |
79035f0d NN |
599 | # include <stdlib.h> |
600 | # endif | |
601 | #endif | |
5213506e RW |
602 | #ifdef HAVE_STRING_H |
603 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
79035f0d NN |
604 | # include <memory.h> |
605 | # endif | |
606 | # include <string.h> | |
607 | #endif | |
5213506e | 608 | #ifdef HAVE_STRINGS_H |
79035f0d NN |
609 | # include <strings.h> |
610 | #endif | |
5213506e | 611 | #ifdef HAVE_INTTYPES_H |
79035f0d | 612 | # include <inttypes.h> |
79035f0d | 613 | #endif |
5213506e RW |
614 | #ifdef HAVE_STDINT_H |
615 | # include <stdint.h> | |
616 | #endif | |
617 | #ifdef HAVE_UNISTD_H | |
79035f0d NN |
618 | # include <unistd.h> |
619 | #endif" | |
620 | ||
22e05272 JM |
621 | ac_unique_file="gettext.c" |
622 | ac_header_list= | |
5213506e RW |
623 | ac_subst_vars='LTLIBOBJS |
624 | LIBOBJS | |
4a1493f0 | 625 | PICFLAG |
2ca17e0a JJ |
626 | BISON3_NO |
627 | BISON3_YES | |
5213506e RW |
628 | INCINTL |
629 | LIBINTL_DEP | |
630 | MAINT | |
631 | AUTOHEADER | |
632 | AUTOCONF | |
633 | ACLOCAL | |
634 | POSUB | |
635 | LTLIBINTL | |
636 | LIBINTL | |
637 | INTLLIBS | |
638 | INTL_LIBTOOL_SUFFIX_PREFIX | |
639 | INTLOBJS | |
640 | GENCAT | |
641 | INSTOBJEXT | |
642 | DATADIRNAME | |
643 | CATOBJEXT | |
644 | USE_INCLUDED_LIBINTL | |
645 | BUILD_INCLUDED_LIBINTL | |
646 | INTLBISON | |
84c1b9d3 MK |
647 | LTLIBICONV |
648 | LIBICONV | |
5213506e RW |
649 | GLIBC21 |
650 | ALLOCA | |
5213506e RW |
651 | RANLIB |
652 | host_os | |
653 | host_vendor | |
654 | host_cpu | |
655 | host | |
656 | build_os | |
657 | build_vendor | |
658 | build_cpu | |
659 | build | |
5213506e RW |
660 | MSGMERGE |
661 | XGETTEXT | |
662 | GMSGFMT | |
663 | MSGFMT | |
664 | USE_NLS | |
665 | MKINSTALLDIRS | |
666 | INSTALL_DATA | |
667 | INSTALL_SCRIPT | |
668 | INSTALL_PROGRAM | |
669 | SET_MAKE | |
22e05272 JM |
670 | EGREP |
671 | GREP | |
672 | CPP | |
673 | OBJEXT | |
674 | EXEEXT | |
675 | ac_ct_CC | |
676 | CPPFLAGS | |
677 | LDFLAGS | |
678 | CFLAGS | |
679 | CC | |
5213506e RW |
680 | target_alias |
681 | host_alias | |
682 | build_alias | |
683 | LIBS | |
684 | ECHO_T | |
685 | ECHO_N | |
686 | ECHO_C | |
687 | DEFS | |
688 | mandir | |
689 | localedir | |
690 | libdir | |
691 | psdir | |
692 | pdfdir | |
693 | dvidir | |
694 | htmldir | |
695 | infodir | |
696 | docdir | |
697 | oldincludedir | |
698 | includedir | |
699 | localstatedir | |
700 | sharedstatedir | |
701 | sysconfdir | |
702 | datadir | |
703 | datarootdir | |
704 | libexecdir | |
705 | sbindir | |
706 | bindir | |
707 | program_transform_name | |
708 | prefix | |
709 | exec_prefix | |
710 | PACKAGE_URL | |
711 | PACKAGE_BUGREPORT | |
712 | PACKAGE_STRING | |
713 | PACKAGE_VERSION | |
714 | PACKAGE_TARNAME | |
715 | PACKAGE_NAME | |
716 | PATH_SEPARATOR | |
717 | SHELL' | |
79035f0d | 718 | ac_subst_files='' |
5213506e RW |
719 | ac_user_opts=' |
720 | enable_option_checking | |
721 | enable_nls | |
722 | with_gnu_ld | |
723 | enable_rpath | |
84c1b9d3 | 724 | with_libiconv_prefix |
20fa702b | 725 | with_libiconv_type |
5213506e RW |
726 | with_included_gettext |
727 | with_libintl_prefix | |
20fa702b | 728 | with_libintl_type |
5213506e | 729 | enable_maintainer_mode |
4a1493f0 | 730 | enable_host_shared |
5213506e RW |
731 | ' |
732 | ac_precious_vars='build_alias | |
733 | host_alias | |
734 | target_alias | |
735 | CC | |
736 | CFLAGS | |
737 | LDFLAGS | |
738 | LIBS | |
739 | CPPFLAGS | |
740 | CPP' | |
741 | ||
6eb95e99 ZW |
742 | |
743 | # Initialize some variables set by options. | |
79035f0d NN |
744 | ac_init_help= |
745 | ac_init_version=false | |
5213506e RW |
746 | ac_unrecognized_opts= |
747 | ac_unrecognized_sep= | |
6eb95e99 ZW |
748 | # The variables have the same names as the options, with |
749 | # dashes changed to underlines. | |
79035f0d | 750 | cache_file=/dev/null |
6eb95e99 ZW |
751 | exec_prefix=NONE |
752 | no_create= | |
753 | no_recursion= | |
754 | prefix=NONE | |
755 | program_prefix=NONE | |
756 | program_suffix=NONE | |
757 | program_transform_name=s,x,x, | |
758 | silent= | |
759 | site= | |
760 | srcdir= | |
761 | verbose= | |
762 | x_includes=NONE | |
763 | x_libraries=NONE | |
79035f0d NN |
764 | |
765 | # Installation directory options. | |
766 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
767 | # and all the variables that are supposed to be based on exec_prefix | |
768 | # by default will actually change. | |
769 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 770 | # (The list follows the same order as the GNU Coding Standards.) |
6eb95e99 ZW |
771 | bindir='${exec_prefix}/bin' |
772 | sbindir='${exec_prefix}/sbin' | |
773 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
774 | datarootdir='${prefix}/share' |
775 | datadir='${datarootdir}' | |
6eb95e99 ZW |
776 | sysconfdir='${prefix}/etc' |
777 | sharedstatedir='${prefix}/com' | |
778 | localstatedir='${prefix}/var' | |
6eb95e99 ZW |
779 | includedir='${prefix}/include' |
780 | oldincludedir='/usr/include' | |
5213506e RW |
781 | docdir='${datarootdir}/doc/${PACKAGE}' |
782 | infodir='${datarootdir}/info' | |
783 | htmldir='${docdir}' | |
784 | dvidir='${docdir}' | |
785 | pdfdir='${docdir}' | |
786 | psdir='${docdir}' | |
787 | libdir='${exec_prefix}/lib' | |
788 | localedir='${datarootdir}/locale' | |
789 | mandir='${datarootdir}/man' | |
6eb95e99 ZW |
790 | |
791 | ac_prev= | |
5213506e | 792 | ac_dashdash= |
6eb95e99 ZW |
793 | for ac_option |
794 | do | |
795 | # If the previous option needs an argument, assign it. | |
796 | if test -n "$ac_prev"; then | |
5213506e | 797 | eval $ac_prev=\$ac_option |
6eb95e99 ZW |
798 | ac_prev= |
799 | continue | |
800 | fi | |
801 | ||
5213506e | 802 | case $ac_option in |
22e05272 JM |
803 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
804 | *=) ac_optarg= ;; | |
805 | *) ac_optarg=yes ;; | |
5213506e | 806 | esac |
6eb95e99 ZW |
807 | |
808 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
809 | ||
5213506e RW |
810 | case $ac_dashdash$ac_option in |
811 | --) | |
812 | ac_dashdash=yes ;; | |
6eb95e99 ZW |
813 | |
814 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
815 | ac_prev=bindir ;; | |
816 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
79035f0d | 817 | bindir=$ac_optarg ;; |
6eb95e99 ZW |
818 | |
819 | -build | --build | --buil | --bui | --bu) | |
79035f0d | 820 | ac_prev=build_alias ;; |
6eb95e99 | 821 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
79035f0d | 822 | build_alias=$ac_optarg ;; |
6eb95e99 ZW |
823 | |
824 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
825 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
826 | ac_prev=cache_file ;; | |
827 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
828 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
79035f0d NN |
829 | cache_file=$ac_optarg ;; |
830 | ||
831 | --config-cache | -C) | |
832 | cache_file=config.cache ;; | |
6eb95e99 | 833 | |
5213506e | 834 | -datadir | --datadir | --datadi | --datad) |
6eb95e99 | 835 | ac_prev=datadir ;; |
5213506e | 836 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
79035f0d | 837 | datadir=$ac_optarg ;; |
6eb95e99 | 838 | |
5213506e RW |
839 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
840 | | --dataroo | --dataro | --datar) | |
841 | ac_prev=datarootdir ;; | |
842 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
843 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
844 | datarootdir=$ac_optarg ;; | |
845 | ||
6eb95e99 | 846 | -disable-* | --disable-*) |
5213506e | 847 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6eb95e99 | 848 | # Reject names that are not valid shell variable names. |
5213506e | 849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 850 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
851 | ac_useropt_orig=$ac_useropt |
852 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
853 | case $ac_user_opts in | |
854 | *" | |
855 | "enable_$ac_useropt" | |
856 | "*) ;; | |
857 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
858 | ac_unrecognized_sep=', ';; | |
859 | esac | |
860 | eval enable_$ac_useropt=no ;; | |
861 | ||
862 | -docdir | --docdir | --docdi | --doc | --do) | |
863 | ac_prev=docdir ;; | |
864 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
865 | docdir=$ac_optarg ;; | |
866 | ||
867 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
868 | ac_prev=dvidir ;; | |
869 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
870 | dvidir=$ac_optarg ;; | |
6eb95e99 ZW |
871 | |
872 | -enable-* | --enable-*) | |
5213506e | 873 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6eb95e99 | 874 | # Reject names that are not valid shell variable names. |
5213506e | 875 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 876 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
877 | ac_useropt_orig=$ac_useropt |
878 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
879 | case $ac_user_opts in | |
880 | *" | |
881 | "enable_$ac_useropt" | |
882 | "*) ;; | |
883 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
884 | ac_unrecognized_sep=', ';; | |
6eb95e99 | 885 | esac |
5213506e | 886 | eval enable_$ac_useropt=\$ac_optarg ;; |
6eb95e99 ZW |
887 | |
888 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
889 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
890 | | --exec | --exe | --ex) | |
891 | ac_prev=exec_prefix ;; | |
892 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
893 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
894 | | --exec=* | --exe=* | --ex=*) | |
79035f0d | 895 | exec_prefix=$ac_optarg ;; |
6eb95e99 ZW |
896 | |
897 | -gas | --gas | --ga | --g) | |
898 | # Obsolete; use --with-gas. | |
899 | with_gas=yes ;; | |
900 | ||
79035f0d NN |
901 | -help | --help | --hel | --he | -h) |
902 | ac_init_help=long ;; | |
903 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
904 | ac_init_help=recursive ;; | |
905 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
906 | ac_init_help=short ;; | |
6eb95e99 ZW |
907 | |
908 | -host | --host | --hos | --ho) | |
79035f0d | 909 | ac_prev=host_alias ;; |
6eb95e99 | 910 | -host=* | --host=* | --hos=* | --ho=*) |
79035f0d | 911 | host_alias=$ac_optarg ;; |
6eb95e99 | 912 | |
5213506e RW |
913 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
914 | ac_prev=htmldir ;; | |
915 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
916 | | --ht=*) | |
917 | htmldir=$ac_optarg ;; | |
918 | ||
6eb95e99 ZW |
919 | -includedir | --includedir | --includedi | --included | --include \ |
920 | | --includ | --inclu | --incl | --inc) | |
921 | ac_prev=includedir ;; | |
922 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
923 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
79035f0d | 924 | includedir=$ac_optarg ;; |
6eb95e99 ZW |
925 | |
926 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
927 | ac_prev=infodir ;; | |
928 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
79035f0d | 929 | infodir=$ac_optarg ;; |
6eb95e99 ZW |
930 | |
931 | -libdir | --libdir | --libdi | --libd) | |
932 | ac_prev=libdir ;; | |
933 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
79035f0d | 934 | libdir=$ac_optarg ;; |
6eb95e99 ZW |
935 | |
936 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
937 | | --libexe | --libex | --libe) | |
938 | ac_prev=libexecdir ;; | |
939 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
940 | | --libexe=* | --libex=* | --libe=*) | |
79035f0d | 941 | libexecdir=$ac_optarg ;; |
6eb95e99 | 942 | |
5213506e RW |
943 | -localedir | --localedir | --localedi | --localed | --locale) |
944 | ac_prev=localedir ;; | |
945 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
946 | localedir=$ac_optarg ;; | |
947 | ||
6eb95e99 | 948 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 949 | | --localstate | --localstat | --localsta | --localst | --locals) |
6eb95e99 ZW |
950 | ac_prev=localstatedir ;; |
951 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 952 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
79035f0d | 953 | localstatedir=$ac_optarg ;; |
6eb95e99 ZW |
954 | |
955 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
956 | ac_prev=mandir ;; | |
957 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
79035f0d | 958 | mandir=$ac_optarg ;; |
6eb95e99 ZW |
959 | |
960 | -nfp | --nfp | --nf) | |
961 | # Obsolete; use --without-fp. | |
962 | with_fp=no ;; | |
963 | ||
964 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
79035f0d | 965 | | --no-cr | --no-c | -n) |
6eb95e99 ZW |
966 | no_create=yes ;; |
967 | ||
968 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
969 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
970 | no_recursion=yes ;; | |
971 | ||
972 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
973 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
974 | | --oldin | --oldi | --old | --ol | --o) | |
975 | ac_prev=oldincludedir ;; | |
976 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
977 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
978 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
79035f0d | 979 | oldincludedir=$ac_optarg ;; |
6eb95e99 ZW |
980 | |
981 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
982 | ac_prev=prefix ;; | |
983 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
79035f0d | 984 | prefix=$ac_optarg ;; |
6eb95e99 ZW |
985 | |
986 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
987 | | --program-pre | --program-pr | --program-p) | |
988 | ac_prev=program_prefix ;; | |
989 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
990 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
79035f0d | 991 | program_prefix=$ac_optarg ;; |
6eb95e99 ZW |
992 | |
993 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
994 | | --program-suf | --program-su | --program-s) | |
995 | ac_prev=program_suffix ;; | |
996 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
997 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
79035f0d | 998 | program_suffix=$ac_optarg ;; |
6eb95e99 ZW |
999 | |
1000 | -program-transform-name | --program-transform-name \ | |
1001 | | --program-transform-nam | --program-transform-na \ | |
1002 | | --program-transform-n | --program-transform- \ | |
1003 | | --program-transform | --program-transfor \ | |
1004 | | --program-transfo | --program-transf \ | |
1005 | | --program-trans | --program-tran \ | |
1006 | | --progr-tra | --program-tr | --program-t) | |
1007 | ac_prev=program_transform_name ;; | |
1008 | -program-transform-name=* | --program-transform-name=* \ | |
1009 | | --program-transform-nam=* | --program-transform-na=* \ | |
1010 | | --program-transform-n=* | --program-transform-=* \ | |
1011 | | --program-transform=* | --program-transfor=* \ | |
1012 | | --program-transfo=* | --program-transf=* \ | |
1013 | | --program-trans=* | --program-tran=* \ | |
1014 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
79035f0d | 1015 | program_transform_name=$ac_optarg ;; |
6eb95e99 | 1016 | |
5213506e RW |
1017 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1018 | ac_prev=pdfdir ;; | |
1019 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1020 | pdfdir=$ac_optarg ;; | |
1021 | ||
1022 | -psdir | --psdir | --psdi | --psd | --ps) | |
1023 | ac_prev=psdir ;; | |
1024 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1025 | psdir=$ac_optarg ;; | |
1026 | ||
6eb95e99 ZW |
1027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1028 | | -silent | --silent | --silen | --sile | --sil) | |
1029 | silent=yes ;; | |
1030 | ||
1031 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1032 | ac_prev=sbindir ;; | |
1033 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1034 | | --sbi=* | --sb=*) | |
79035f0d | 1035 | sbindir=$ac_optarg ;; |
6eb95e99 ZW |
1036 | |
1037 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1038 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1039 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1040 | | --sha | --sh) | |
1041 | ac_prev=sharedstatedir ;; | |
1042 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1043 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1044 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1045 | | --sha=* | --sh=*) | |
79035f0d | 1046 | sharedstatedir=$ac_optarg ;; |
6eb95e99 ZW |
1047 | |
1048 | -site | --site | --sit) | |
1049 | ac_prev=site ;; | |
1050 | -site=* | --site=* | --sit=*) | |
79035f0d | 1051 | site=$ac_optarg ;; |
6eb95e99 ZW |
1052 | |
1053 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1054 | ac_prev=srcdir ;; | |
1055 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
79035f0d | 1056 | srcdir=$ac_optarg ;; |
6eb95e99 ZW |
1057 | |
1058 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1059 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1060 | ac_prev=sysconfdir ;; | |
1061 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1062 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
79035f0d | 1063 | sysconfdir=$ac_optarg ;; |
6eb95e99 ZW |
1064 | |
1065 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
79035f0d | 1066 | ac_prev=target_alias ;; |
6eb95e99 | 1067 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
79035f0d | 1068 | target_alias=$ac_optarg ;; |
6eb95e99 ZW |
1069 | |
1070 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1071 | verbose=yes ;; | |
1072 | ||
79035f0d NN |
1073 | -version | --version | --versio | --versi | --vers | -V) |
1074 | ac_init_version=: ;; | |
6eb95e99 ZW |
1075 | |
1076 | -with-* | --with-*) | |
5213506e | 1077 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6eb95e99 | 1078 | # Reject names that are not valid shell variable names. |
5213506e | 1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1080 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1081 | ac_useropt_orig=$ac_useropt |
1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1083 | case $ac_user_opts in | |
1084 | *" | |
1085 | "with_$ac_useropt" | |
1086 | "*) ;; | |
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1088 | ac_unrecognized_sep=', ';; | |
6eb95e99 | 1089 | esac |
5213506e | 1090 | eval with_$ac_useropt=\$ac_optarg ;; |
6eb95e99 ZW |
1091 | |
1092 | -without-* | --without-*) | |
5213506e | 1093 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6eb95e99 | 1094 | # Reject names that are not valid shell variable names. |
5213506e | 1095 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1096 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1097 | ac_useropt_orig=$ac_useropt |
1098 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1099 | case $ac_user_opts in | |
1100 | *" | |
1101 | "with_$ac_useropt" | |
1102 | "*) ;; | |
1103 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1104 | ac_unrecognized_sep=', ';; | |
1105 | esac | |
1106 | eval with_$ac_useropt=no ;; | |
6eb95e99 ZW |
1107 | |
1108 | --x) | |
1109 | # Obsolete; use --with-x. | |
1110 | with_x=yes ;; | |
1111 | ||
1112 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1113 | | --x-incl | --x-inc | --x-in | --x-i) | |
1114 | ac_prev=x_includes ;; | |
1115 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1116 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
79035f0d | 1117 | x_includes=$ac_optarg ;; |
6eb95e99 ZW |
1118 | |
1119 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1120 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1121 | ac_prev=x_libraries ;; | |
1122 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1123 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
79035f0d | 1124 | x_libraries=$ac_optarg ;; |
6eb95e99 | 1125 | |
22e05272 JM |
1126 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1127 | Try \`$0 --help' for more information" | |
6eb95e99 ZW |
1128 | ;; |
1129 | ||
79035f0d NN |
1130 | *=*) |
1131 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1132 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1133 | case $ac_envvar in #( |
1134 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1135 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1136 | esac |
1137 | eval $ac_envvar=\$ac_optarg | |
79035f0d NN |
1138 | export $ac_envvar ;; |
1139 | ||
6eb95e99 | 1140 | *) |
79035f0d | 1141 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1142 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
79035f0d | 1143 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1144 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1145 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6eb95e99 ZW |
1146 | ;; |
1147 | ||
1148 | esac | |
1149 | done | |
1150 | ||
1151 | if test -n "$ac_prev"; then | |
79035f0d | 1152 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1153 | as_fn_error $? "missing argument to $ac_option" |
6eb95e99 ZW |
1154 | fi |
1155 | ||
5213506e RW |
1156 | if test -n "$ac_unrecognized_opts"; then |
1157 | case $enable_option_checking in | |
1158 | no) ;; | |
22e05272 | 1159 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1160 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
79035f0d | 1161 | esac |
5213506e | 1162 | fi |
6eb95e99 | 1163 | |
5213506e RW |
1164 | # Check all directory arguments for consistency. |
1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1168 | libdir localedir mandir | |
6eb95e99 | 1169 | do |
5213506e RW |
1170 | eval ac_val=\$$ac_var |
1171 | # Remove trailing slashes. | |
1172 | case $ac_val in | |
1173 | */ ) | |
1174 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1175 | eval $ac_var=\$ac_val;; | |
1176 | esac | |
1177 | # Be sure to have absolute directory names. | |
79035f0d | 1178 | case $ac_val in |
5213506e RW |
1179 | [\\/$]* | ?:[\\/]* ) continue;; |
1180 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6eb95e99 | 1181 | esac |
22e05272 | 1182 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6eb95e99 ZW |
1183 | done |
1184 | ||
79035f0d NN |
1185 | # There might be people who depend on the old broken behavior: `$host' |
1186 | # used to hold the argument of --host etc. | |
1187 | # FIXME: To remove some day. | |
1188 | build=$build_alias | |
1189 | host=$host_alias | |
1190 | target=$target_alias | |
1191 | ||
1192 | # FIXME: To remove some day. | |
1193 | if test "x$host_alias" != x; then | |
1194 | if test "x$build_alias" = x; then | |
1195 | cross_compiling=maybe | |
79035f0d NN |
1196 | elif test "x$build_alias" != "x$host_alias"; then |
1197 | cross_compiling=yes | |
1198 | fi | |
1199 | fi | |
6eb95e99 | 1200 | |
79035f0d NN |
1201 | ac_tool_prefix= |
1202 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1203 | ||
1204 | test "$silent" = yes && exec 6>/dev/null | |
6eb95e99 ZW |
1205 | |
1206 | ||
5213506e RW |
1207 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1208 | ac_ls_di=`ls -di .` && | |
1209 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1210 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1211 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1212 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1213 | |
1214 | ||
6eb95e99 ZW |
1215 | # Find the source files, if location was not specified. |
1216 | if test -z "$srcdir"; then | |
1217 | ac_srcdir_defaulted=yes | |
5213506e RW |
1218 | # Try the directory containing this script, then the parent directory. |
1219 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1220 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1221 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1222 | X"$as_myself" : 'X\(//\)$' \| \ | |
1223 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1224 | $as_echo X"$as_myself" | | |
1225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1226 | s//\1/ | |
1227 | q | |
1228 | } | |
1229 | /^X\(\/\/\)[^/].*/{ | |
1230 | s//\1/ | |
1231 | q | |
1232 | } | |
1233 | /^X\(\/\/\)$/{ | |
1234 | s//\1/ | |
1235 | q | |
1236 | } | |
1237 | /^X\(\/\).*/{ | |
1238 | s//\1/ | |
1239 | q | |
1240 | } | |
1241 | s/.*/./; q'` | |
6eb95e99 | 1242 | srcdir=$ac_confdir |
5213506e | 1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
6eb95e99 ZW |
1244 | srcdir=.. |
1245 | fi | |
1246 | else | |
1247 | ac_srcdir_defaulted=no | |
1248 | fi | |
5213506e RW |
1249 | if test ! -r "$srcdir/$ac_unique_file"; then |
1250 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1251 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1252 | fi |
1253 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1254 | ac_abs_confdir=`( | |
22e05272 | 1255 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1256 | pwd)` |
1257 | # When building in place, set srcdir=. | |
1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1259 | srcdir=. | |
1260 | fi | |
1261 | # Remove unnecessary trailing slashes from srcdir. | |
1262 | # Double slashes in file names in object file debugging info | |
1263 | # mess up M-x gdb in Emacs. | |
1264 | case $srcdir in | |
1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1266 | esac | |
1267 | for ac_var in $ac_precious_vars; do | |
1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1269 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1272 | done | |
79035f0d NN |
1273 | |
1274 | # | |
1275 | # Report the --help message. | |
1276 | # | |
1277 | if test "$ac_init_help" = "long"; then | |
1278 | # Omit some internal or obsolete options to make the list less imposing. | |
1279 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1280 | cat <<_ACEOF | |
1281 | \`configure' configures this package to adapt to many kinds of systems. | |
1282 | ||
1283 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1284 | ||
1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1286 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1287 | ||
1288 | Defaults for the options are specified in brackets. | |
1289 | ||
1290 | Configuration: | |
1291 | -h, --help display this help and exit | |
1292 | --help=short display options specific to this package | |
1293 | --help=recursive display the short help of all the included packages | |
1294 | -V, --version display version information and exit | |
22e05272 | 1295 | -q, --quiet, --silent do not print \`checking ...' messages |
79035f0d NN |
1296 | --cache-file=FILE cache test results in FILE [disabled] |
1297 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1298 | -n, --no-create do not create output files | |
1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1300 | ||
79035f0d NN |
1301 | Installation directories: |
1302 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1303 | [$ac_default_prefix] |
79035f0d | 1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1305 | [PREFIX] |
79035f0d NN |
1306 | |
1307 | By default, \`make install' will install all the files in | |
1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1310 | for instance \`--prefix=\$HOME'. | |
1311 | ||
1312 | For better control, use the options below. | |
1313 | ||
1314 | Fine tuning of the installation directories: | |
5213506e RW |
1315 | --bindir=DIR user executables [EPREFIX/bin] |
1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1317 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1321 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1322 | --includedir=DIR C header files [PREFIX/include] | |
1323 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1324 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1325 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1326 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1327 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1328 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1329 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1330 | --htmldir=DIR html documentation [DOCDIR] | |
1331 | --dvidir=DIR dvi documentation [DOCDIR] | |
1332 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1333 | --psdir=DIR ps documentation [DOCDIR] | |
79035f0d NN |
1334 | _ACEOF |
1335 | ||
1336 | cat <<\_ACEOF | |
1337 | ||
1338 | System types: | |
1339 | --build=BUILD configure for building on BUILD [guessed] | |
1340 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1341 | _ACEOF | |
1342 | fi | |
1343 | ||
1344 | if test -n "$ac_init_help"; then | |
1345 | ||
1346 | cat <<\_ACEOF | |
1347 | ||
1348 | Optional Features: | |
5213506e | 1349 | --disable-option-checking ignore unrecognized --enable/--with options |
79035f0d NN |
1350 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1351 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1352 | --disable-nls do not use Native Language Support | |
1353 | --disable-rpath do not hardcode runtime library paths | |
88fa57d7 | 1354 | --enable-maintainer-mode enable rules only needed by maintainers |
4a1493f0 | 1355 | --enable-host-shared build host code as shared libraries |
79035f0d NN |
1356 | |
1357 | Optional Packages: | |
1358 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1359 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1360 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
84c1b9d3 MK |
1361 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1362 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
20fa702b | 1363 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) |
79035f0d NN |
1364 | --with-included-gettext use the GNU gettext library included here |
1365 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1366 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
20fa702b | 1367 | --with-libintl-type=TYPE type of library to search for (auto/static/shared) |
79035f0d NN |
1368 | |
1369 | Some influential environment variables: | |
1370 | CC C compiler command | |
1371 | CFLAGS C compiler flags | |
1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1373 | nonstandard directory <lib dir> | |
5213506e | 1374 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1375 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1376 | you have headers in a nonstandard directory <include dir> |
79035f0d NN |
1377 | CPP C preprocessor |
1378 | ||
1379 | Use these variables to override the choices made by `configure' or to help | |
1380 | it to find libraries and programs with nonstandard names/locations. | |
1381 | ||
5213506e | 1382 | Report bugs to the package provider. |
79035f0d | 1383 | _ACEOF |
5213506e | 1384 | ac_status=$? |
79035f0d NN |
1385 | fi |
1386 | ||
1387 | if test "$ac_init_help" = "recursive"; then | |
1388 | # If there are subdirs, report their specific --help. | |
79035f0d | 1389 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1390 | test -d "$ac_dir" || |
1391 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1392 | continue | |
79035f0d NN |
1393 | ac_builddir=. |
1394 | ||
5213506e RW |
1395 | case "$ac_dir" in |
1396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1397 | *) | |
1398 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1399 | # A ".." for each directory in $ac_dir_suffix. | |
1400 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1401 | case $ac_top_builddir_sub in | |
1402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1404 | esac ;; | |
1405 | esac | |
1406 | ac_abs_top_builddir=$ac_pwd | |
1407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1408 | # for backward compatibility: | |
1409 | ac_top_builddir=$ac_top_build_prefix | |
79035f0d NN |
1410 | |
1411 | case $srcdir in | |
5213506e | 1412 | .) # We are building in place. |
79035f0d | 1413 | ac_srcdir=. |
5213506e RW |
1414 | ac_top_srcdir=$ac_top_builddir_sub |
1415 | ac_abs_top_srcdir=$ac_pwd ;; | |
1416 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
79035f0d | 1417 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1418 | ac_top_srcdir=$srcdir |
1419 | ac_abs_top_srcdir=$srcdir ;; | |
1420 | *) # Relative name. | |
1421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1422 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8ab705be | 1424 | esac |
5213506e RW |
1425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1426 | ||
1427 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1428 | # Check for guested configure. | |
1429 | if test -f "$ac_srcdir/configure.gnu"; then | |
1430 | echo && | |
1431 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1432 | elif test -f "$ac_srcdir/configure"; then | |
1433 | echo && | |
1434 | $SHELL "$ac_srcdir/configure" --help=recursive | |
79035f0d | 1435 | else |
5213506e RW |
1436 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1437 | fi || ac_status=$? | |
1438 | cd "$ac_pwd" || { ac_status=$?; break; } | |
79035f0d NN |
1439 | done |
1440 | fi | |
1441 | ||
5213506e | 1442 | test -n "$ac_init_help" && exit $ac_status |
79035f0d NN |
1443 | if $ac_init_version; then |
1444 | cat <<\_ACEOF | |
5213506e | 1445 | configure |
22e05272 | 1446 | generated by GNU Autoconf 2.69 |
79035f0d | 1447 | |
22e05272 | 1448 | Copyright (C) 2012 Free Software Foundation, Inc. |
79035f0d NN |
1449 | This configure script is free software; the Free Software Foundation |
1450 | gives unlimited permission to copy, distribute and modify it. | |
1451 | _ACEOF | |
5213506e | 1452 | exit |
79035f0d | 1453 | fi |
79035f0d | 1454 | |
5213506e RW |
1455 | ## ------------------------ ## |
1456 | ## Autoconf initialization. ## | |
1457 | ## ------------------------ ## | |
6eb95e99 | 1458 | |
5213506e RW |
1459 | # ac_fn_c_try_compile LINENO |
1460 | # -------------------------- | |
1461 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1462 | ac_fn_c_try_compile () | |
79035f0d | 1463 | { |
5213506e RW |
1464 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1465 | rm -f conftest.$ac_objext | |
1466 | if { { ac_try="$ac_compile" | |
1467 | case "(($ac_try" in | |
1468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1469 | *) ac_try_echo=$ac_try;; | |
1470 | esac | |
1471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1472 | $as_echo "$ac_try_echo"; } >&5 | |
1473 | (eval "$ac_compile") 2>conftest.err | |
1474 | ac_status=$? | |
1475 | if test -s conftest.err; then | |
1476 | grep -v '^ *+' conftest.err >conftest.er1 | |
1477 | cat conftest.er1 >&5 | |
1478 | mv -f conftest.er1 conftest.err | |
1479 | fi | |
1480 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1481 | test $ac_status = 0; } && { | |
1482 | test -z "$ac_c_werror_flag" || | |
1483 | test ! -s conftest.err | |
1484 | } && test -s conftest.$ac_objext; then : | |
1485 | ac_retval=0 | |
1486 | else | |
1487 | $as_echo "$as_me: failed program was:" >&5 | |
1488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
79035f0d | 1489 | |
5213506e RW |
1490 | ac_retval=1 |
1491 | fi | |
22e05272 JM |
1492 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1493 | as_fn_set_status $ac_retval | |
79035f0d | 1494 | |
5213506e | 1495 | } # ac_fn_c_try_compile |
79035f0d | 1496 | |
5213506e RW |
1497 | # ac_fn_c_try_cpp LINENO |
1498 | # ---------------------- | |
1499 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1500 | ac_fn_c_try_cpp () | |
1501 | { | |
1502 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1503 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1504 | case "(($ac_try" in | |
1505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1506 | *) ac_try_echo=$ac_try;; | |
1507 | esac | |
1508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1509 | $as_echo "$ac_try_echo"; } >&5 | |
1510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1511 | ac_status=$? | |
1512 | if test -s conftest.err; then | |
1513 | grep -v '^ *+' conftest.err >conftest.er1 | |
1514 | cat conftest.er1 >&5 | |
1515 | mv -f conftest.er1 conftest.err | |
1516 | fi | |
1517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1518 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1519 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1520 | test ! -s conftest.err | |
1521 | }; then : | |
1522 | ac_retval=0 | |
1523 | else | |
1524 | $as_echo "$as_me: failed program was:" >&5 | |
1525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1526 | ||
1527 | ac_retval=1 | |
1528 | fi | |
22e05272 JM |
1529 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1530 | as_fn_set_status $ac_retval | |
5213506e RW |
1531 | |
1532 | } # ac_fn_c_try_cpp | |
1533 | ||
22e05272 JM |
1534 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1535 | # ------------------------------------------------------- | |
1536 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1537 | # the include files in INCLUDES and setting the cache variable VAR | |
1538 | # accordingly. | |
1539 | ac_fn_c_check_header_mongrel () | |
1540 | { | |
1541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1542 | if eval \${$3+:} false; then : | |
1543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1544 | $as_echo_n "checking for $2... " >&6; } | |
1545 | if eval \${$3+:} false; then : | |
1546 | $as_echo_n "(cached) " >&6 | |
1547 | fi | |
1548 | eval ac_res=\$$3 | |
1549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1550 | $as_echo "$ac_res" >&6; } | |
1551 | else | |
1552 | # Is the header compilable? | |
1553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1554 | $as_echo_n "checking $2 usability... " >&6; } | |
1555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1556 | /* end confdefs.h. */ | |
1557 | $4 | |
1558 | #include <$2> | |
1559 | _ACEOF | |
1560 | if ac_fn_c_try_compile "$LINENO"; then : | |
1561 | ac_header_compiler=yes | |
1562 | else | |
1563 | ac_header_compiler=no | |
1564 | fi | |
1565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1567 | $as_echo "$ac_header_compiler" >&6; } | |
1568 | ||
1569 | # Is the header present? | |
1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1571 | $as_echo_n "checking $2 presence... " >&6; } | |
1572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1573 | /* end confdefs.h. */ | |
1574 | #include <$2> | |
1575 | _ACEOF | |
1576 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1577 | ac_header_preproc=yes | |
1578 | else | |
1579 | ac_header_preproc=no | |
1580 | fi | |
1581 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1583 | $as_echo "$ac_header_preproc" >&6; } | |
1584 | ||
1585 | # So? What about this header? | |
1586 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1587 | yes:no: ) | |
1588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1589 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1591 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1592 | ;; | |
1593 | no:yes:* ) | |
1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1595 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1597 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1599 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1601 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1603 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1604 | ;; | |
1605 | esac | |
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1607 | $as_echo_n "checking for $2... " >&6; } | |
1608 | if eval \${$3+:} false; then : | |
1609 | $as_echo_n "(cached) " >&6 | |
1610 | else | |
1611 | eval "$3=\$ac_header_compiler" | |
1612 | fi | |
1613 | eval ac_res=\$$3 | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1615 | $as_echo "$ac_res" >&6; } | |
1616 | fi | |
1617 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1618 | ||
1619 | } # ac_fn_c_check_header_mongrel | |
1620 | ||
5213506e RW |
1621 | # ac_fn_c_try_run LINENO |
1622 | # ---------------------- | |
1623 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1624 | # that executables *can* be run. | |
1625 | ac_fn_c_try_run () | |
1626 | { | |
1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1628 | if { { ac_try="$ac_link" | |
1629 | case "(($ac_try" in | |
1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1631 | *) ac_try_echo=$ac_try;; | |
1632 | esac | |
1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1634 | $as_echo "$ac_try_echo"; } >&5 | |
1635 | (eval "$ac_link") 2>&5 | |
1636 | ac_status=$? | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1639 | { { case "(($ac_try" in | |
1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1641 | *) ac_try_echo=$ac_try;; | |
1642 | esac | |
1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1644 | $as_echo "$ac_try_echo"; } >&5 | |
1645 | (eval "$ac_try") 2>&5 | |
1646 | ac_status=$? | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1648 | test $ac_status = 0; }; }; then : | |
1649 | ac_retval=0 | |
1650 | else | |
1651 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1652 | $as_echo "$as_me: failed program was:" >&5 | |
1653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1654 | ||
1655 | ac_retval=$ac_status | |
1656 | fi | |
1657 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1658 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1659 | as_fn_set_status $ac_retval | |
5213506e RW |
1660 | |
1661 | } # ac_fn_c_try_run | |
1662 | ||
22e05272 JM |
1663 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1664 | # ------------------------------------------------------- | |
1665 | # Tests whether HEADER exists and can be compiled using the include files in | |
1666 | # INCLUDES, setting the cache variable VAR accordingly. | |
1667 | ac_fn_c_check_header_compile () | |
1668 | { | |
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1671 | $as_echo_n "checking for $2... " >&6; } | |
1672 | if eval \${$3+:} false; then : | |
1673 | $as_echo_n "(cached) " >&6 | |
1674 | else | |
1675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1676 | /* end confdefs.h. */ | |
1677 | $4 | |
1678 | #include <$2> | |
1679 | _ACEOF | |
1680 | if ac_fn_c_try_compile "$LINENO"; then : | |
1681 | eval "$3=yes" | |
1682 | else | |
1683 | eval "$3=no" | |
1684 | fi | |
1685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1686 | fi | |
1687 | eval ac_res=\$$3 | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1689 | $as_echo "$ac_res" >&6; } | |
1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1691 | ||
1692 | } # ac_fn_c_check_header_compile | |
1693 | ||
1694 | # ac_fn_c_try_link LINENO | |
1695 | # ----------------------- | |
1696 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1697 | ac_fn_c_try_link () | |
1698 | { | |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1701 | if { { ac_try="$ac_link" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_link") 2>conftest.err | |
1709 | ac_status=$? | |
1710 | if test -s conftest.err; then | |
1711 | grep -v '^ *+' conftest.err >conftest.er1 | |
1712 | cat conftest.er1 >&5 | |
1713 | mv -f conftest.er1 conftest.err | |
1714 | fi | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1716 | test $ac_status = 0; } && { | |
1717 | test -z "$ac_c_werror_flag" || | |
1718 | test ! -s conftest.err | |
1719 | } && test -s conftest$ac_exeext && { | |
1720 | test "$cross_compiling" = yes || | |
1721 | test -x conftest$ac_exeext | |
1722 | }; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=1 | |
1729 | fi | |
1730 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1731 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1732 | # interfere with the next link command; also delete a directory that is | |
1733 | # left behind by Apple's compiler. We do this before executing the actions. | |
1734 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1735 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1736 | as_fn_set_status $ac_retval | |
1737 | ||
1738 | } # ac_fn_c_try_link | |
1739 | ||
5213506e RW |
1740 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1741 | # ------------------------------------------- | |
1742 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1743 | # variable VAR accordingly. | |
1744 | ac_fn_c_check_type () | |
1745 | { | |
1746 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1748 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1749 | if eval \${$3+:} false; then : |
5213506e RW |
1750 | $as_echo_n "(cached) " >&6 |
1751 | else | |
1752 | eval "$3=no" | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1754 | /* end confdefs.h. */ | |
1755 | $4 | |
1756 | int | |
1757 | main () | |
1758 | { | |
1759 | if (sizeof ($2)) | |
1760 | return 0; | |
1761 | ; | |
1762 | return 0; | |
1763 | } | |
1764 | _ACEOF | |
1765 | if ac_fn_c_try_compile "$LINENO"; then : | |
1766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1767 | /* end confdefs.h. */ | |
1768 | $4 | |
1769 | int | |
1770 | main () | |
1771 | { | |
1772 | if (sizeof (($2))) | |
1773 | return 0; | |
1774 | ; | |
1775 | return 0; | |
1776 | } | |
1777 | _ACEOF | |
1778 | if ac_fn_c_try_compile "$LINENO"; then : | |
1779 | ||
1780 | else | |
1781 | eval "$3=yes" | |
1782 | fi | |
1783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1784 | fi | |
1785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1786 | fi | |
1787 | eval ac_res=\$$3 | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1789 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1790 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1791 | |
1792 | } # ac_fn_c_check_type | |
1793 | ||
22e05272 JM |
1794 | # ac_fn_c_check_func LINENO FUNC VAR |
1795 | # ---------------------------------- | |
1796 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1797 | ac_fn_c_check_func () | |
5213506e RW |
1798 | { |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1802 | if eval \${$3+:} false; then : |
5213506e RW |
1803 | $as_echo_n "(cached) " >&6 |
1804 | else | |
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 | /* end confdefs.h. */ | |
1807 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1809 | #define $2 innocuous_$2 | |
1810 | ||
1811 | /* System header to define __stub macros and hopefully few prototypes, | |
1812 | which can conflict with char $2 (); below. | |
1813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1814 | <limits.h> exists even on freestanding compilers. */ | |
1815 | ||
1816 | #ifdef __STDC__ | |
1817 | # include <limits.h> | |
1818 | #else | |
1819 | # include <assert.h> | |
1820 | #endif | |
1821 | ||
1822 | #undef $2 | |
1823 | ||
1824 | /* Override any GCC internal prototype to avoid an error. | |
1825 | Use char because int might match the return type of a GCC | |
1826 | builtin and then its argument prototype would still apply. */ | |
1827 | #ifdef __cplusplus | |
1828 | extern "C" | |
1829 | #endif | |
1830 | char $2 (); | |
1831 | /* The GNU C library defines this for functions which it implements | |
1832 | to always fail with ENOSYS. Some functions are actually named | |
1833 | something starting with __ and the normal name is an alias. */ | |
1834 | #if defined __stub_$2 || defined __stub___$2 | |
1835 | choke me | |
1836 | #endif | |
1837 | ||
1838 | int | |
1839 | main () | |
1840 | { | |
1841 | return $2 (); | |
1842 | ; | |
1843 | return 0; | |
1844 | } | |
1845 | _ACEOF | |
1846 | if ac_fn_c_try_link "$LINENO"; then : | |
1847 | eval "$3=yes" | |
1848 | else | |
1849 | eval "$3=no" | |
1850 | fi | |
1851 | rm -f core conftest.err conftest.$ac_objext \ | |
1852 | conftest$ac_exeext conftest.$ac_ext | |
1853 | fi | |
1854 | eval ac_res=\$$3 | |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1856 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5213506e RW |
1858 | |
1859 | } # ac_fn_c_check_func | |
5213506e RW |
1860 | cat >config.log <<_ACEOF |
1861 | This file contains any messages produced by compilers while | |
1862 | running configure, to aid debugging if configure makes a mistake. | |
1863 | ||
1864 | It was created by $as_me, which was | |
22e05272 | 1865 | generated by GNU Autoconf 2.69. Invocation command line was |
5213506e RW |
1866 | |
1867 | $ $0 $@ | |
1868 | ||
1869 | _ACEOF | |
1870 | exec 5>>config.log | |
1871 | { | |
1872 | cat <<_ASUNAME | |
1873 | ## --------- ## | |
1874 | ## Platform. ## | |
1875 | ## --------- ## | |
1876 | ||
1877 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1878 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1879 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1880 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1881 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1882 | ||
1883 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1884 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1885 | ||
1886 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1887 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1888 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1889 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1890 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1891 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1892 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1893 | ||
1894 | _ASUNAME | |
1895 | ||
1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1897 | for as_dir in $PATH | |
1898 | do | |
1899 | IFS=$as_save_IFS | |
1900 | test -z "$as_dir" && as_dir=. | |
1901 | $as_echo "PATH: $as_dir" | |
1902 | done | |
1903 | IFS=$as_save_IFS | |
1904 | ||
1905 | } >&5 | |
1906 | ||
1907 | cat >&5 <<_ACEOF | |
79035f0d NN |
1908 | |
1909 | ||
1910 | ## ----------- ## | |
1911 | ## Core tests. ## | |
1912 | ## ----------- ## | |
1913 | ||
1914 | _ACEOF | |
1915 | ||
1916 | ||
1917 | # Keep a trace of the command line. | |
1918 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1919 | # Strip out --silent because we don't want to record it for future runs. | |
1920 | # Also quote any args containing shell meta-characters. | |
1921 | # Make two passes to allow for proper duplicate-argument suppression. | |
1922 | ac_configure_args= | |
1923 | ac_configure_args0= | |
1924 | ac_configure_args1= | |
79035f0d NN |
1925 | ac_must_keep_next=false |
1926 | for ac_pass in 1 2 | |
1927 | do | |
1928 | for ac_arg | |
1929 | do | |
1930 | case $ac_arg in | |
1931 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1932 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1933 | | -silent | --silent | --silen | --sile | --sil) | |
1934 | continue ;; | |
5213506e RW |
1935 | *\'*) |
1936 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
79035f0d NN |
1937 | esac |
1938 | case $ac_pass in | |
5213506e | 1939 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
79035f0d | 1940 | 2) |
5213506e | 1941 | as_fn_append ac_configure_args1 " '$ac_arg'" |
79035f0d | 1942 | if test $ac_must_keep_next = true; then |
8ab705be | 1943 | ac_must_keep_next=false # Got value, back to normal. |
79035f0d | 1944 | else |
8ab705be KC |
1945 | case $ac_arg in |
1946 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1947 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1948 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1949 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1950 | case "$ac_configure_args0 " in | |
1951 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1952 | esac | |
1953 | ;; | |
1954 | -* ) ac_must_keep_next=true ;; | |
1955 | esac | |
79035f0d | 1956 | fi |
5213506e | 1957 | as_fn_append ac_configure_args " '$ac_arg'" |
79035f0d NN |
1958 | ;; |
1959 | esac | |
1960 | done | |
1961 | done | |
5213506e RW |
1962 | { ac_configure_args0=; unset ac_configure_args0;} |
1963 | { ac_configure_args1=; unset ac_configure_args1;} | |
79035f0d NN |
1964 | |
1965 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1966 | # config.log. We remove comments because anyway the quotes in there | |
1967 | # would cause problems or look ugly. | |
5213506e RW |
1968 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1969 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
79035f0d NN |
1970 | trap 'exit_status=$? |
1971 | # Save into config.log some information that might help in debugging. | |
1972 | { | |
1973 | echo | |
1974 | ||
22e05272 | 1975 | $as_echo "## ---------------- ## |
79035f0d | 1976 | ## Cache variables. ## |
22e05272 | 1977 | ## ---------------- ##" |
79035f0d NN |
1978 | echo |
1979 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1980 | ( |
1981 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1982 | eval ac_val=\$$ac_var | |
1983 | case $ac_val in #( | |
1984 | *${as_nl}*) | |
1985 | case $ac_var in #( | |
1986 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1987 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1988 | esac | |
1989 | case $ac_var in #( | |
1990 | _ | IFS | as_nl) ;; #( | |
1991 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1992 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1993 | esac ;; | |
1994 | esac | |
1995 | done | |
79035f0d | 1996 | (set) 2>&1 | |
5213506e RW |
1997 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1998 | *${as_nl}ac_space=\ *) | |
79035f0d | 1999 | sed -n \ |
5213506e RW |
2000 | "s/'\''/'\''\\\\'\'''\''/g; |
2001 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2002 | ;; #( | |
79035f0d | 2003 | *) |
5213506e | 2004 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
79035f0d | 2005 | ;; |
5213506e RW |
2006 | esac | |
2007 | sort | |
2008 | ) | |
79035f0d NN |
2009 | echo |
2010 | ||
22e05272 | 2011 | $as_echo "## ----------------- ## |
79035f0d | 2012 | ## Output variables. ## |
22e05272 | 2013 | ## ----------------- ##" |
79035f0d NN |
2014 | echo |
2015 | for ac_var in $ac_subst_vars | |
2016 | do | |
5213506e RW |
2017 | eval ac_val=\$$ac_var |
2018 | case $ac_val in | |
2019 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2020 | esac | |
2021 | $as_echo "$ac_var='\''$ac_val'\''" | |
79035f0d NN |
2022 | done | sort |
2023 | echo | |
2024 | ||
2025 | if test -n "$ac_subst_files"; then | |
22e05272 | 2026 | $as_echo "## ------------------- ## |
5213506e | 2027 | ## File substitutions. ## |
22e05272 | 2028 | ## ------------------- ##" |
79035f0d NN |
2029 | echo |
2030 | for ac_var in $ac_subst_files | |
2031 | do | |
5213506e RW |
2032 | eval ac_val=\$$ac_var |
2033 | case $ac_val in | |
2034 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2035 | esac | |
2036 | $as_echo "$ac_var='\''$ac_val'\''" | |
79035f0d NN |
2037 | done | sort |
2038 | echo | |
2039 | fi | |
2040 | ||
2041 | if test -s confdefs.h; then | |
22e05272 | 2042 | $as_echo "## ----------- ## |
79035f0d | 2043 | ## confdefs.h. ## |
22e05272 | 2044 | ## ----------- ##" |
79035f0d | 2045 | echo |
5213506e | 2046 | cat confdefs.h |
79035f0d NN |
2047 | echo |
2048 | fi | |
2049 | test "$ac_signal" != 0 && | |
5213506e RW |
2050 | $as_echo "$as_me: caught signal $ac_signal" |
2051 | $as_echo "$as_me: exit $exit_status" | |
79035f0d | 2052 | } >&5 |
5213506e RW |
2053 | rm -f core *.core core.conftest.* && |
2054 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
79035f0d | 2055 | exit $exit_status |
5213506e | 2056 | ' 0 |
79035f0d | 2057 | for ac_signal in 1 2 13 15; do |
5213506e | 2058 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
79035f0d NN |
2059 | done |
2060 | ac_signal=0 | |
2061 | ||
2062 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2063 | rm -f -r conftest* confdefs.h |
2064 | ||
2065 | $as_echo "/* confdefs.h */" > confdefs.h | |
79035f0d NN |
2066 | |
2067 | # Predefined preprocessor variables. | |
2068 | ||
2069 | cat >>confdefs.h <<_ACEOF | |
2070 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2071 | _ACEOF | |
2072 | ||
79035f0d NN |
2073 | cat >>confdefs.h <<_ACEOF |
2074 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2075 | _ACEOF | |
2076 | ||
79035f0d NN |
2077 | cat >>confdefs.h <<_ACEOF |
2078 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2079 | _ACEOF | |
2080 | ||
79035f0d NN |
2081 | cat >>confdefs.h <<_ACEOF |
2082 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2083 | _ACEOF | |
2084 | ||
79035f0d NN |
2085 | cat >>confdefs.h <<_ACEOF |
2086 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2087 | _ACEOF | |
2088 | ||
5213506e RW |
2089 | cat >>confdefs.h <<_ACEOF |
2090 | #define PACKAGE_URL "$PACKAGE_URL" | |
2091 | _ACEOF | |
2092 | ||
79035f0d NN |
2093 | |
2094 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2095 | # Prefer an explicitly selected file to automatically selected ones. |
2096 | ac_site_file1=NONE | |
2097 | ac_site_file2=NONE | |
2098 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2099 | # We do not want a PATH search for config.site. |
2100 | case $CONFIG_SITE in #(( | |
2101 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2102 | */*) ac_site_file1=$CONFIG_SITE;; | |
2103 | *) ac_site_file1=./$CONFIG_SITE;; | |
2104 | esac | |
5213506e RW |
2105 | elif test "x$prefix" != xNONE; then |
2106 | ac_site_file1=$prefix/share/config.site | |
2107 | ac_site_file2=$prefix/etc/config.site | |
2108 | else | |
2109 | ac_site_file1=$ac_default_prefix/share/config.site | |
2110 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2111 | fi | |
2112 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2113 | do | |
2114 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2115 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2117 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
79035f0d | 2118 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2119 | . "$ac_site_file" \ |
2120 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2122 | as_fn_error $? "failed to load site script $ac_site_file | |
2123 | See \`config.log' for more details" "$LINENO" 5; } | |
6eb95e99 ZW |
2124 | fi |
2125 | done | |
2126 | ||
2127 | if test -r "$cache_file"; then | |
22e05272 JM |
2128 | # Some versions of bash will fail to source /dev/null (special files |
2129 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2130 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2132 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
79035f0d | 2133 | case $cache_file in |
5213506e RW |
2134 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2135 | *) . "./$cache_file";; | |
79035f0d NN |
2136 | esac |
2137 | fi | |
6eb95e99 | 2138 | else |
5213506e RW |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2140 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
79035f0d NN |
2141 | >$cache_file |
2142 | fi | |
2143 | ||
22e05272 JM |
2144 | as_fn_append ac_header_list " stdlib.h" |
2145 | as_fn_append ac_header_list " unistd.h" | |
2146 | as_fn_append ac_header_list " sys/param.h" | |
79035f0d NN |
2147 | # Check that the precious variables saved in the cache have kept the same |
2148 | # value. | |
2149 | ac_cache_corrupted=false | |
5213506e | 2150 | for ac_var in $ac_precious_vars; do |
79035f0d NN |
2151 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2152 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2153 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2154 | eval ac_new_val=\$ac_env_${ac_var}_value | |
79035f0d NN |
2155 | case $ac_old_set,$ac_new_set in |
2156 | set,) | |
5213506e RW |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2158 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
79035f0d NN |
2159 | ac_cache_corrupted=: ;; |
2160 | ,set) | |
5213506e RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2162 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
79035f0d NN |
2163 | ac_cache_corrupted=: ;; |
2164 | ,);; | |
2165 | *) | |
2166 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2167 | # differences in whitespace do not lead to failure. |
2168 | ac_old_val_w=`echo x $ac_old_val` | |
2169 | ac_new_val_w=`echo x $ac_new_val` | |
2170 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2172 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2173 | ac_cache_corrupted=: | |
2174 | else | |
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2176 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2177 | eval $ac_var=\$ac_old_val | |
2178 | fi | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2180 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2182 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
79035f0d NN |
2183 | fi;; |
2184 | esac | |
2185 | # Pass precious variables to config.status. | |
2186 | if test "$ac_new_set" = set; then | |
2187 | case $ac_new_val in | |
5213506e | 2188 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
79035f0d NN |
2189 | *) ac_arg=$ac_var=$ac_new_val ;; |
2190 | esac | |
2191 | case " $ac_configure_args " in | |
2192 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2193 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
79035f0d NN |
2194 | esac |
2195 | fi | |
2196 | done | |
2197 | if $ac_cache_corrupted; then | |
5213506e RW |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2201 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2202 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
6eb95e99 | 2203 | fi |
5213506e RW |
2204 | ## -------------------- ## |
2205 | ## Main body of script. ## | |
2206 | ## -------------------- ## | |
6eb95e99 ZW |
2207 | |
2208 | ac_ext=c | |
2209 | ac_cpp='$CPP $CPPFLAGS' | |
79035f0d NN |
2210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6eb95e99 ZW |
2213 | |
2214 | ||
2215 | ||
2216 | ||
56694dd9 | 2217 | |
22e05272 JM |
2218 | ac_ext=c |
2219 | ac_cpp='$CPP $CPPFLAGS' | |
2220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2223 | if test -n "$ac_tool_prefix"; then | |
2224 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2225 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2227 | $as_echo_n "checking for $ac_word... " >&6; } | |
2228 | if ${ac_cv_prog_CC+:} false; then : | |
5213506e | 2229 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 2230 | else |
22e05272 JM |
2231 | if test -n "$CC"; then |
2232 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2233 | else | |
2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2235 | for as_dir in $PATH | |
2236 | do | |
2237 | IFS=$as_save_IFS | |
2238 | test -z "$as_dir" && as_dir=. | |
2239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2241 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2243 | break 2 | |
2244 | fi | |
2245 | done | |
2246 | done | |
2247 | IFS=$as_save_IFS | |
2248 | ||
6eb95e99 | 2249 | fi |
22e05272 JM |
2250 | fi |
2251 | CC=$ac_cv_prog_CC | |
2252 | if test -n "$CC"; then | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2254 | $as_echo "$CC" >&6; } | |
6eb95e99 | 2255 | else |
5213506e RW |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2257 | $as_echo "no" >&6; } | |
79035f0d | 2258 | fi |
5213506e | 2259 | |
79035f0d | 2260 | |
22e05272 JM |
2261 | fi |
2262 | if test -z "$ac_cv_prog_CC"; then | |
2263 | ac_ct_CC=$CC | |
2264 | # Extract the first word of "gcc", so it can be a program name with args. | |
2265 | set dummy gcc; ac_word=$2 | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2267 | $as_echo_n "checking for $ac_word... " >&6; } | |
2268 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
5213506e | 2269 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 2270 | else |
22e05272 JM |
2271 | if test -n "$ac_ct_CC"; then |
2272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2273 | else | |
2274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
79035f0d NN |
2275 | for as_dir in $PATH |
2276 | do | |
2277 | IFS=$as_save_IFS | |
2278 | test -z "$as_dir" && as_dir=. | |
22e05272 JM |
2279 | for ac_exec_ext in '' $ac_executable_extensions; do |
2280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2281 | ac_cv_prog_ac_ct_CC="gcc" | |
2282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2283 | break 2 | |
2284 | fi | |
2285 | done | |
5213506e RW |
2286 | done |
2287 | IFS=$as_save_IFS | |
79035f0d | 2288 | |
6eb95e99 | 2289 | fi |
6eb95e99 | 2290 | fi |
22e05272 JM |
2291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2292 | if test -n "$ac_ct_CC"; then | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2294 | $as_echo "$ac_ct_CC" >&6; } | |
6eb95e99 | 2295 | else |
22e05272 JM |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2297 | $as_echo "no" >&6; } | |
5213506e RW |
2298 | fi |
2299 | ||
22e05272 JM |
2300 | if test "x$ac_ct_CC" = x; then |
2301 | CC="" | |
79035f0d | 2302 | else |
22e05272 JM |
2303 | case $cross_compiling:$ac_tool_warned in |
2304 | yes:) | |
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2306 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2307 | ac_tool_warned=yes ;; | |
2308 | esac | |
2309 | CC=$ac_ct_CC | |
79035f0d | 2310 | fi |
79035f0d | 2311 | else |
22e05272 | 2312 | CC="$ac_cv_prog_CC" |
79035f0d | 2313 | fi |
79035f0d | 2314 | |
22e05272 JM |
2315 | if test -z "$CC"; then |
2316 | if test -n "$ac_tool_prefix"; then | |
2317 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2318 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5213506e RW |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2320 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2321 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2322 | $as_echo_n "(cached) " >&6 |
79035f0d | 2323 | else |
22e05272 JM |
2324 | if test -n "$CC"; then |
2325 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2326 | else | |
2327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2328 | for as_dir in $PATH | |
2329 | do | |
2330 | IFS=$as_save_IFS | |
2331 | test -z "$as_dir" && as_dir=. | |
2332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2334 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2336 | break 2 | |
2337 | fi | |
2338 | done | |
2339 | done | |
2340 | IFS=$as_save_IFS | |
2341 | ||
79035f0d | 2342 | fi |
22e05272 JM |
2343 | fi |
2344 | CC=$ac_cv_prog_CC | |
2345 | if test -n "$CC"; then | |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2347 | $as_echo "$CC" >&6; } | |
79035f0d | 2348 | else |
5213506e RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2350 | $as_echo "no" >&6; } | |
79035f0d NN |
2351 | fi |
2352 | ||
22e05272 JM |
2353 | |
2354 | fi | |
2355 | fi | |
2356 | if test -z "$CC"; then | |
2357 | # Extract the first word of "cc", so it can be a program name with args. | |
2358 | set dummy cc; ac_word=$2 | |
5213506e RW |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2360 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2361 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2362 | $as_echo_n "(cached) " >&6 |
79035f0d | 2363 | else |
22e05272 JM |
2364 | if test -n "$CC"; then |
2365 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2366 | else | |
2367 | ac_prog_rejected=no | |
2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
79035f0d NN |
2369 | for as_dir in $PATH |
2370 | do | |
2371 | IFS=$as_save_IFS | |
2372 | test -z "$as_dir" && as_dir=. | |
5213506e | 2373 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2375 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2376 | ac_prog_rejected=yes | |
2377 | continue | |
2378 | fi | |
2379 | ac_cv_prog_CC="cc" | |
5213506e | 2380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2381 | break 2 |
2382 | fi | |
2383 | done | |
5213506e RW |
2384 | done |
2385 | IFS=$as_save_IFS | |
79035f0d | 2386 | |
22e05272 JM |
2387 | if test $ac_prog_rejected = yes; then |
2388 | # We found a bogon in the path, so make sure we never use it. | |
2389 | set dummy $ac_cv_prog_CC | |
2390 | shift | |
2391 | if test $# != 0; then | |
2392 | # We chose a different compiler from the bogus one. | |
2393 | # However, it has the same basename, so the bogon will be chosen | |
2394 | # first if we set CC to just the basename; use the full file name. | |
2395 | shift | |
2396 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2397 | fi | |
79035f0d | 2398 | fi |
22e05272 JM |
2399 | fi |
2400 | fi | |
2401 | CC=$ac_cv_prog_CC | |
2402 | if test -n "$CC"; then | |
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2404 | $as_echo "$CC" >&6; } | |
79035f0d | 2405 | else |
5213506e RW |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2407 | $as_echo "no" >&6; } | |
79035f0d NN |
2408 | fi |
2409 | ||
2410 | ||
79035f0d | 2411 | fi |
22e05272 JM |
2412 | if test -z "$CC"; then |
2413 | if test -n "$ac_tool_prefix"; then | |
2414 | for ac_prog in cl.exe | |
2415 | do | |
2416 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2417 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2419 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2420 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2421 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
2422 | else |
2423 | if test -n "$CC"; then | |
2424 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2425 | else | |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2427 | for as_dir in $PATH | |
2428 | do | |
2429 | IFS=$as_save_IFS | |
2430 | test -z "$as_dir" && as_dir=. | |
5213506e | 2431 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2433 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5213506e | 2434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2435 | break 2 |
2436 | fi | |
2437 | done | |
5213506e RW |
2438 | done |
2439 | IFS=$as_save_IFS | |
79035f0d NN |
2440 | |
2441 | fi | |
2442 | fi | |
2443 | CC=$ac_cv_prog_CC | |
2444 | if test -n "$CC"; then | |
5213506e RW |
2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2446 | $as_echo "$CC" >&6; } | |
79035f0d | 2447 | else |
5213506e RW |
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2449 | $as_echo "no" >&6; } | |
79035f0d NN |
2450 | fi |
2451 | ||
5213506e | 2452 | |
22e05272 JM |
2453 | test -n "$CC" && break |
2454 | done | |
79035f0d | 2455 | fi |
22e05272 | 2456 | if test -z "$CC"; then |
79035f0d | 2457 | ac_ct_CC=$CC |
22e05272 JM |
2458 | for ac_prog in cl.exe |
2459 | do | |
2460 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2461 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2463 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2464 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 2465 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
2466 | else |
2467 | if test -n "$ac_ct_CC"; then | |
2468 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2469 | else | |
2470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2471 | for as_dir in $PATH | |
2472 | do | |
2473 | IFS=$as_save_IFS | |
2474 | test -z "$as_dir" && as_dir=. | |
5213506e | 2475 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 JM |
2476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2477 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5213506e | 2478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
2479 | break 2 |
2480 | fi | |
2481 | done | |
5213506e RW |
2482 | done |
2483 | IFS=$as_save_IFS | |
79035f0d NN |
2484 | |
2485 | fi | |
2486 | fi | |
2487 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2488 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2490 | $as_echo "$ac_ct_CC" >&6; } | |
79035f0d | 2491 | else |
5213506e RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2493 | $as_echo "no" >&6; } | |
79035f0d NN |
2494 | fi |
2495 | ||
22e05272 JM |
2496 | |
2497 | test -n "$ac_ct_CC" && break | |
2498 | done | |
2499 | ||
5213506e RW |
2500 | if test "x$ac_ct_CC" = x; then |
2501 | CC="" | |
2502 | else | |
2503 | case $cross_compiling:$ac_tool_warned in | |
2504 | yes:) | |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2507 | ac_tool_warned=yes ;; | |
2508 | esac | |
2509 | CC=$ac_ct_CC | |
2510 | fi | |
79035f0d NN |
2511 | fi |
2512 | ||
79035f0d NN |
2513 | fi |
2514 | ||
5213506e | 2515 | |
22e05272 JM |
2516 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2518 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2519 | See \`config.log' for more details" "$LINENO" 5; } | |
2520 | ||
2521 | # Provide some information about the compiler. | |
2522 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2523 | set X $ac_compile | |
2524 | ac_compiler=$2 | |
2525 | for ac_option in --version -v -V -qversion; do | |
2526 | { { ac_try="$ac_compiler $ac_option >&5" | |
2527 | case "(($ac_try" in | |
2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2529 | *) ac_try_echo=$ac_try;; | |
2530 | esac | |
2531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2532 | $as_echo "$ac_try_echo"; } >&5 | |
2533 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2534 | ac_status=$? | |
2535 | if test -s conftest.err; then | |
2536 | sed '10a\ | |
2537 | ... rest of stderr output deleted ... | |
2538 | 10q' conftest.err >conftest.er1 | |
2539 | cat conftest.er1 >&5 | |
5213506e | 2540 | fi |
22e05272 JM |
2541 | rm -f conftest.er1 conftest.err |
2542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2543 | test $ac_status = 0; } | |
79035f0d | 2544 | done |
79035f0d | 2545 | |
22e05272 JM |
2546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2547 | /* end confdefs.h. */ | |
6eb95e99 | 2548 | |
22e05272 JM |
2549 | int |
2550 | main () | |
2551 | { | |
79035f0d NN |
2552 | |
2553 | ; | |
2554 | return 0; | |
2555 | } | |
2556 | _ACEOF | |
2557 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 2558 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
79035f0d NN |
2559 | # Try to create an executable without -o first, disregard a.out. |
2560 | # It will help us diagnose broken compilers, and finding out an intuition | |
2561 | # of exeext. | |
22e05272 JM |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2563 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
2564 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2565 | ||
2566 | # The possible output files: | |
2567 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2568 | ||
2569 | ac_rmfiles= | |
2570 | for ac_file in $ac_files | |
2571 | do | |
2572 | case $ac_file in | |
2573 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2574 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2575 | esac | |
2576 | done | |
2577 | rm -f $ac_rmfiles | |
2578 | ||
2579 | if { { ac_try="$ac_link_default" | |
2580 | case "(($ac_try" in | |
2581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2582 | *) ac_try_echo=$ac_try;; | |
2583 | esac | |
2584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2585 | $as_echo "$ac_try_echo"; } >&5 | |
2586 | (eval "$ac_link_default") 2>&5 | |
79035f0d | 2587 | ac_status=$? |
5213506e RW |
2588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2589 | test $ac_status = 0; }; then : | |
2590 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2591 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2592 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2593 | # so that the user can short-circuit this test for compilers unknown to | |
2594 | # Autoconf. | |
2595 | for ac_file in $ac_files '' | |
79035f0d NN |
2596 | do |
2597 | test -f "$ac_file" || continue | |
2598 | case $ac_file in | |
5213506e | 2599 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8ab705be | 2600 | ;; |
79035f0d | 2601 | [ab].out ) |
8ab705be KC |
2602 | # We found the default executable, but exeext='' is most |
2603 | # certainly right. | |
2604 | break;; | |
79035f0d | 2605 | *.* ) |
5213506e RW |
2606 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2607 | then :; else | |
2608 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2609 | fi | |
2610 | # We set ac_cv_exeext here because the later test for it is not | |
2611 | # safe: cross compilers may not add the suffix if given an `-o' | |
2612 | # argument, so we may need to know it at that point already. | |
2613 | # Even if this section looks crufty: it has the advantage of | |
2614 | # actually working. | |
8ab705be | 2615 | break;; |
79035f0d | 2616 | * ) |
8ab705be | 2617 | break;; |
79035f0d NN |
2618 | esac |
2619 | done | |
5213506e RW |
2620 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2621 | ||
79035f0d | 2622 | else |
5213506e RW |
2623 | ac_file='' |
2624 | fi | |
5213506e | 2625 | if test -z "$ac_file"; then : |
22e05272 JM |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2627 | $as_echo "no" >&6; } | |
2628 | $as_echo "$as_me: failed program was:" >&5 | |
79035f0d NN |
2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
2630 | ||
5213506e RW |
2631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2632 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2633 | as_fn_error 77 "C compiler cannot create executables |
2634 | See \`config.log' for more details" "$LINENO" 5; } | |
2635 | else | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2637 | $as_echo "yes" >&6; } | |
79035f0d | 2638 | fi |
22e05272 JM |
2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2640 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2642 | $as_echo "$ac_file" >&6; } | |
79035f0d | 2643 | ac_exeext=$ac_cv_exeext |
79035f0d | 2644 | |
22e05272 | 2645 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
79035f0d | 2646 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2648 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2649 | if { { ac_try="$ac_link" | |
2650 | case "(($ac_try" in | |
2651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2652 | *) ac_try_echo=$ac_try;; | |
2653 | esac | |
2654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2655 | $as_echo "$ac_try_echo"; } >&5 | |
2656 | (eval "$ac_link") 2>&5 | |
79035f0d | 2657 | ac_status=$? |
5213506e RW |
2658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2659 | test $ac_status = 0; }; then : | |
79035f0d NN |
2660 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2661 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2662 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2663 | # `rm'. | |
2664 | for ac_file in conftest.exe conftest conftest.*; do | |
2665 | test -f "$ac_file" || continue | |
2666 | case $ac_file in | |
5213506e | 2667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
79035f0d | 2668 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8ab705be | 2669 | break;; |
79035f0d NN |
2670 | * ) break;; |
2671 | esac | |
2672 | done | |
2673 | else | |
5213506e RW |
2674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2676 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2677 | See \`config.log' for more details" "$LINENO" 5; } | |
79035f0d | 2678 | fi |
22e05272 | 2679 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2681 | $as_echo "$ac_cv_exeext" >&6; } | |
79035f0d NN |
2682 | |
2683 | rm -f conftest.$ac_ext | |
2684 | EXEEXT=$ac_cv_exeext | |
2685 | ac_exeext=$EXEEXT | |
22e05272 JM |
2686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2687 | /* end confdefs.h. */ | |
2688 | #include <stdio.h> | |
2689 | int | |
2690 | main () | |
2691 | { | |
2692 | FILE *f = fopen ("conftest.out", "w"); | |
2693 | return ferror (f) || fclose (f) != 0; | |
2694 | ||
2695 | ; | |
2696 | return 0; | |
2697 | } | |
2698 | _ACEOF | |
2699 | ac_clean_files="$ac_clean_files conftest.out" | |
2700 | # Check that the compiler produces executables we can run. If not, either | |
2701 | # the compiler is broken, or we cross compile. | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2703 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2704 | if test "$cross_compiling" != yes; then | |
2705 | { { ac_try="$ac_link" | |
2706 | case "(($ac_try" in | |
2707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2708 | *) ac_try_echo=$ac_try;; | |
2709 | esac | |
2710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2711 | $as_echo "$ac_try_echo"; } >&5 | |
2712 | (eval "$ac_link") 2>&5 | |
2713 | ac_status=$? | |
2714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2715 | test $ac_status = 0; } | |
2716 | if { ac_try='./conftest$ac_cv_exeext' | |
2717 | { { case "(($ac_try" in | |
2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2719 | *) ac_try_echo=$ac_try;; | |
2720 | esac | |
2721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2722 | $as_echo "$ac_try_echo"; } >&5 | |
2723 | (eval "$ac_try") 2>&5 | |
2724 | ac_status=$? | |
2725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2726 | test $ac_status = 0; }; }; then | |
2727 | cross_compiling=no | |
2728 | else | |
2729 | if test "$cross_compiling" = maybe; then | |
2730 | cross_compiling=yes | |
2731 | else | |
2732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2734 | as_fn_error $? "cannot run C compiled programs. | |
2735 | If you meant to cross compile, use \`--host'. | |
2736 | See \`config.log' for more details" "$LINENO" 5; } | |
2737 | fi | |
2738 | fi | |
2739 | fi | |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2741 | $as_echo "$cross_compiling" >&6; } | |
2742 | ||
2743 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2744 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2746 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 2747 | if ${ac_cv_objext+:} false; then : |
5213506e | 2748 | $as_echo_n "(cached) " >&6 |
79035f0d | 2749 | else |
5213506e | 2750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2751 | /* end confdefs.h. */ |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | ||
2757 | ; | |
2758 | return 0; | |
2759 | } | |
2760 | _ACEOF | |
2761 | rm -f conftest.o conftest.obj | |
5213506e RW |
2762 | if { { ac_try="$ac_compile" |
2763 | case "(($ac_try" in | |
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2765 | *) ac_try_echo=$ac_try;; | |
2766 | esac | |
2767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2768 | $as_echo "$ac_try_echo"; } >&5 | |
2769 | (eval "$ac_compile") 2>&5 | |
79035f0d | 2770 | ac_status=$? |
5213506e RW |
2771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2772 | test $ac_status = 0; }; then : | |
2773 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2774 | test -f "$ac_file" || continue; | |
79035f0d | 2775 | case $ac_file in |
5213506e | 2776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
79035f0d NN |
2777 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2778 | break;; | |
2779 | esac | |
2780 | done | |
2781 | else | |
5213506e | 2782 | $as_echo "$as_me: failed program was:" >&5 |
79035f0d NN |
2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
2784 | ||
5213506e RW |
2785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2787 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2788 | See \`config.log' for more details" "$LINENO" 5; } | |
79035f0d | 2789 | fi |
79035f0d NN |
2790 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2791 | fi | |
5213506e RW |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2793 | $as_echo "$ac_cv_objext" >&6; } | |
79035f0d NN |
2794 | OBJEXT=$ac_cv_objext |
2795 | ac_objext=$OBJEXT | |
5213506e RW |
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2797 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 2798 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 2799 | $as_echo_n "(cached) " >&6 |
79035f0d | 2800 | else |
5213506e | 2801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2802 | /* end confdefs.h. */ |
2803 | ||
2804 | int | |
2805 | main () | |
2806 | { | |
2807 | #ifndef __GNUC__ | |
2808 | choke me | |
2809 | #endif | |
2810 | ||
2811 | ; | |
2812 | return 0; | |
2813 | } | |
2814 | _ACEOF | |
5213506e | 2815 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
2816 | ac_compiler_gnu=yes |
2817 | else | |
5213506e | 2818 | ac_compiler_gnu=no |
79035f0d | 2819 | fi |
5213506e | 2820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d NN |
2821 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2822 | ||
2823 | fi | |
5213506e RW |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2825 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2826 | if test $ac_compiler_gnu = yes; then | |
2827 | GCC=yes | |
2828 | else | |
2829 | GCC= | |
2830 | fi | |
79035f0d NN |
2831 | ac_test_CFLAGS=${CFLAGS+set} |
2832 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2834 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 2835 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
2836 | $as_echo_n "(cached) " >&6 |
2837 | else | |
2838 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2839 | ac_c_werror_flag=yes | |
2840 | ac_cv_prog_cc_g=no | |
2841 | CFLAGS="-g" | |
2842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
79035f0d NN |
2843 | /* end confdefs.h. */ |
2844 | ||
2845 | int | |
2846 | main () | |
2847 | { | |
2848 | ||
2849 | ; | |
2850 | return 0; | |
2851 | } | |
2852 | _ACEOF | |
5213506e | 2853 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
2854 | ac_cv_prog_cc_g=yes |
2855 | else | |
5213506e RW |
2856 | CFLAGS="" |
2857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2858 | /* end confdefs.h. */ | |
2859 | ||
2860 | int | |
2861 | main () | |
2862 | { | |
2863 | ||
2864 | ; | |
2865 | return 0; | |
2866 | } | |
2867 | _ACEOF | |
2868 | if ac_fn_c_try_compile "$LINENO"; then : | |
2869 | ||
2870 | else | |
2871 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2872 | CFLAGS="-g" | |
2873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2874 | /* end confdefs.h. */ | |
2875 | ||
2876 | int | |
2877 | main () | |
2878 | { | |
79035f0d | 2879 | |
5213506e RW |
2880 | ; |
2881 | return 0; | |
2882 | } | |
2883 | _ACEOF | |
2884 | if ac_fn_c_try_compile "$LINENO"; then : | |
2885 | ac_cv_prog_cc_g=yes | |
2886 | fi | |
2887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
79035f0d | 2888 | fi |
5213506e | 2889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 2890 | fi |
5213506e RW |
2891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2892 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2893 | fi | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2895 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
79035f0d NN |
2896 | if test "$ac_test_CFLAGS" = set; then |
2897 | CFLAGS=$ac_save_CFLAGS | |
2898 | elif test $ac_cv_prog_cc_g = yes; then | |
2899 | if test "$GCC" = yes; then | |
2900 | CFLAGS="-g -O2" | |
2901 | else | |
2902 | CFLAGS="-g" | |
2903 | fi | |
2904 | else | |
2905 | if test "$GCC" = yes; then | |
2906 | CFLAGS="-O2" | |
2907 | else | |
2908 | CFLAGS= | |
2909 | fi | |
2910 | fi | |
5213506e RW |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2912 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 2913 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 2914 | $as_echo_n "(cached) " >&6 |
79035f0d | 2915 | else |
5213506e | 2916 | ac_cv_prog_cc_c89=no |
79035f0d | 2917 | ac_save_CC=$CC |
5213506e | 2918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
2919 | /* end confdefs.h. */ |
2920 | #include <stdarg.h> | |
2921 | #include <stdio.h> | |
22e05272 | 2922 | struct stat; |
79035f0d NN |
2923 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2924 | struct buf { int x; }; | |
2925 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2926 | static char *e (p, i) | |
2927 | char **p; | |
2928 | int i; | |
2929 | { | |
2930 | return p[i]; | |
2931 | } | |
2932 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2933 | { | |
2934 | char *s; | |
2935 | va_list v; | |
2936 | va_start (v,p); | |
2937 | s = g (p, va_arg (v,int)); | |
2938 | va_end (v); | |
2939 | return s; | |
2940 | } | |
8ab705be KC |
2941 | |
2942 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2943 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2944 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 2945 | as 'x'. The following induces an error, until -std is added to get |
8ab705be KC |
2946 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2947 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 2948 | that's true only with -std. */ |
8ab705be KC |
2949 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2950 | ||
5213506e RW |
2951 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2952 | inside strings and character constants. */ | |
2953 | #define FOO(x) 'x' | |
2954 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2955 | ||
79035f0d NN |
2956 | int test (int i, double x); |
2957 | struct s1 {int (*f) (int a);}; | |
2958 | struct s2 {int (*f) (double a);}; | |
2959 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2960 | int argc; | |
2961 | char **argv; | |
2962 | int | |
2963 | main () | |
2964 | { | |
2965 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2966 | ; | |
2967 | return 0; | |
2968 | } | |
2969 | _ACEOF | |
5213506e RW |
2970 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2971 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
79035f0d NN |
2972 | do |
2973 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
2974 | if ac_fn_c_try_compile "$LINENO"; then : |
2975 | ac_cv_prog_cc_c89=$ac_arg | |
79035f0d | 2976 | fi |
5213506e RW |
2977 | rm -f core conftest.err conftest.$ac_objext |
2978 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
79035f0d | 2979 | done |
5213506e | 2980 | rm -f conftest.$ac_ext |
79035f0d NN |
2981 | CC=$ac_save_CC |
2982 | ||
2983 | fi | |
5213506e RW |
2984 | # AC_CACHE_VAL |
2985 | case "x$ac_cv_prog_cc_c89" in | |
2986 | x) | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2988 | $as_echo "none needed" >&6; } ;; | |
2989 | xno) | |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2991 | $as_echo "unsupported" >&6; } ;; | |
79035f0d | 2992 | *) |
5213506e RW |
2993 | CC="$CC $ac_cv_prog_cc_c89" |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2995 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
79035f0d | 2996 | esac |
5213506e | 2997 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
79035f0d | 2998 | |
79035f0d NN |
2999 | fi |
3000 | ||
79035f0d NN |
3001 | ac_ext=c |
3002 | ac_cpp='$CPP $CPPFLAGS' | |
3003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3006 | ||
5213506e | 3007 | |
22e05272 JM |
3008 | ac_ext=c |
3009 | ac_cpp='$CPP $CPPFLAGS' | |
3010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3014 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3015 | # On Suns, sometimes $CPP names a directory. | |
3016 | if test -n "$CPP" && test -d "$CPP"; then | |
3017 | CPP= | |
3018 | fi | |
3019 | if test -z "$CPP"; then | |
3020 | if ${ac_cv_prog_CPP+:} false; then : | |
5213506e | 3021 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
3022 | else |
3023 | # Double quotes because CPP needs to be expanded | |
3024 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3025 | do | |
3026 | ac_preproc_ok=false | |
3027 | for ac_c_preproc_warn_flag in '' yes | |
3028 | do | |
3029 | # Use a header file that comes with gcc, so configuring glibc | |
3030 | # with a fresh cross-compiler works. | |
3031 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3032 | # <limits.h> exists even on freestanding compilers. | |
3033 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3034 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3036 | /* end confdefs.h. */ |
3037 | #ifdef __STDC__ | |
3038 | # include <limits.h> | |
3039 | #else | |
3040 | # include <assert.h> | |
3041 | #endif | |
8ab705be | 3042 | Syntax error |
79035f0d | 3043 | _ACEOF |
5213506e | 3044 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d | 3045 | |
5213506e | 3046 | else |
79035f0d NN |
3047 | # Broken: fails on valid input. |
3048 | continue | |
3049 | fi | |
22e05272 | 3050 | rm -f conftest.err conftest.i conftest.$ac_ext |
79035f0d | 3051 | |
5213506e | 3052 | # OK, works on sane cases. Now check whether nonexistent headers |
79035f0d | 3053 | # can be detected and how. |
5213506e | 3054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3055 | /* end confdefs.h. */ |
3056 | #include <ac_nonexistent.h> | |
3057 | _ACEOF | |
5213506e | 3058 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d NN |
3059 | # Broken: success on invalid input. |
3060 | continue | |
3061 | else | |
79035f0d NN |
3062 | # Passes both tests. |
3063 | ac_preproc_ok=: | |
3064 | break | |
6eb95e99 | 3065 | fi |
22e05272 | 3066 | rm -f conftest.err conftest.i conftest.$ac_ext |
6eb95e99 | 3067 | |
79035f0d NN |
3068 | done |
3069 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3070 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 3071 | if $ac_preproc_ok; then : |
79035f0d | 3072 | break |
6eb95e99 ZW |
3073 | fi |
3074 | ||
79035f0d NN |
3075 | done |
3076 | ac_cv_prog_CPP=$CPP | |
6eb95e99 ZW |
3077 | |
3078 | fi | |
79035f0d | 3079 | CPP=$ac_cv_prog_CPP |
56694dd9 | 3080 | else |
79035f0d | 3081 | ac_cv_prog_CPP=$CPP |
56694dd9 | 3082 | fi |
5213506e RW |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3084 | $as_echo "$CPP" >&6; } | |
79035f0d NN |
3085 | ac_preproc_ok=false |
3086 | for ac_c_preproc_warn_flag in '' yes | |
3087 | do | |
3088 | # Use a header file that comes with gcc, so configuring glibc | |
3089 | # with a fresh cross-compiler works. | |
3090 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3091 | # <limits.h> exists even on freestanding compilers. | |
3092 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3093 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3095 | /* end confdefs.h. */ |
3096 | #ifdef __STDC__ | |
3097 | # include <limits.h> | |
3098 | #else | |
3099 | # include <assert.h> | |
3100 | #endif | |
8ab705be | 3101 | Syntax error |
79035f0d | 3102 | _ACEOF |
5213506e | 3103 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d | 3104 | |
5213506e | 3105 | else |
79035f0d NN |
3106 | # Broken: fails on valid input. |
3107 | continue | |
3108 | fi | |
22e05272 | 3109 | rm -f conftest.err conftest.i conftest.$ac_ext |
79035f0d | 3110 | |
5213506e | 3111 | # OK, works on sane cases. Now check whether nonexistent headers |
79035f0d | 3112 | # can be detected and how. |
5213506e | 3113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
3114 | /* end confdefs.h. */ |
3115 | #include <ac_nonexistent.h> | |
3116 | _ACEOF | |
5213506e | 3117 | if ac_fn_c_try_cpp "$LINENO"; then : |
79035f0d NN |
3118 | # Broken: success on invalid input. |
3119 | continue | |
3120 | else | |
79035f0d NN |
3121 | # Passes both tests. |
3122 | ac_preproc_ok=: | |
3123 | break | |
6eb95e99 | 3124 | fi |
22e05272 | 3125 | rm -f conftest.err conftest.i conftest.$ac_ext |
6eb95e99 | 3126 | |
79035f0d NN |
3127 | done |
3128 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3129 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
3130 | if $ac_preproc_ok; then : |
3131 | ||
6eb95e99 | 3132 | else |
5213506e RW |
3133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3135 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3136 | See \`config.log' for more details" "$LINENO" 5; } | |
6eb95e99 ZW |
3137 | fi |
3138 | ||
79035f0d NN |
3139 | ac_ext=c |
3140 | ac_cpp='$CPP $CPPFLAGS' | |
3141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6eb95e99 ZW |
3144 | |
3145 | ||
5213506e RW |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3147 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 3148 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 3149 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 3150 | else |
5213506e RW |
3151 | if test -z "$GREP"; then |
3152 | ac_path_GREP_found=false | |
3153 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3155 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3156 | do | |
3157 | IFS=$as_save_IFS | |
3158 | test -z "$as_dir" && as_dir=. | |
3159 | for ac_prog in grep ggrep; do | |
3160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3161 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3162 | as_fn_executable_p "$ac_path_GREP" || continue |
5213506e RW |
3163 | # Check for GNU ac_path_GREP and select it if it is found. |
3164 | # Check for GNU $ac_path_GREP | |
3165 | case `"$ac_path_GREP" --version 2>&1` in | |
3166 | *GNU*) | |
3167 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3168 | *) | |
3169 | ac_count=0 | |
3170 | $as_echo_n 0123456789 >"conftest.in" | |
3171 | while : | |
3172 | do | |
3173 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3174 | mv "conftest.tmp" "conftest.in" | |
3175 | cp "conftest.in" "conftest.nl" | |
3176 | $as_echo 'GREP' >> "conftest.nl" | |
3177 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3178 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3179 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3180 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3181 | # Best one so far, save it but keep looking for a better one | |
3182 | ac_cv_path_GREP="$ac_path_GREP" | |
3183 | ac_path_GREP_max=$ac_count | |
79035f0d | 3184 | fi |
5213506e RW |
3185 | # 10*(2^10) chars as input seems more than enough |
3186 | test $ac_count -gt 10 && break | |
3187 | done | |
3188 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3189 | esac | |
3190 | ||
3191 | $ac_path_GREP_found && break 3 | |
3192 | done | |
3193 | done | |
3194 | done | |
3195 | IFS=$as_save_IFS | |
3196 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 3197 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
3198 | fi |
3199 | else | |
3200 | ac_cv_path_GREP=$GREP | |
3201 | fi | |
3202 | ||
6eb95e99 | 3203 | fi |
5213506e RW |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3205 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3206 | GREP="$ac_cv_path_GREP" | |
6eb95e99 ZW |
3207 | |
3208 | ||
5213506e RW |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3210 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 3211 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 3212 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 3213 | else |
5213506e RW |
3214 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3215 | then ac_cv_path_EGREP="$GREP -E" | |
3216 | else | |
3217 | if test -z "$EGREP"; then | |
3218 | ac_path_EGREP_found=false | |
3219 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3221 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3222 | do | |
3223 | IFS=$as_save_IFS | |
3224 | test -z "$as_dir" && as_dir=. | |
3225 | for ac_prog in egrep; do | |
3226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3227 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3228 | as_fn_executable_p "$ac_path_EGREP" || continue |
5213506e RW |
3229 | # Check for GNU ac_path_EGREP and select it if it is found. |
3230 | # Check for GNU $ac_path_EGREP | |
3231 | case `"$ac_path_EGREP" --version 2>&1` in | |
3232 | *GNU*) | |
3233 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3234 | *) | |
3235 | ac_count=0 | |
3236 | $as_echo_n 0123456789 >"conftest.in" | |
3237 | while : | |
3238 | do | |
3239 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3240 | mv "conftest.tmp" "conftest.in" | |
3241 | cp "conftest.in" "conftest.nl" | |
3242 | $as_echo 'EGREP' >> "conftest.nl" | |
3243 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3244 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3245 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3246 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3247 | # Best one so far, save it but keep looking for a better one | |
3248 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3249 | ac_path_EGREP_max=$ac_count | |
3250 | fi | |
3251 | # 10*(2^10) chars as input seems more than enough | |
3252 | test $ac_count -gt 10 && break | |
3253 | done | |
3254 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3255 | esac | |
3256 | ||
3257 | $ac_path_EGREP_found && break 3 | |
3258 | done | |
3259 | done | |
3260 | done | |
3261 | IFS=$as_save_IFS | |
3262 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 3263 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
3264 | fi |
3265 | else | |
3266 | ac_cv_path_EGREP=$EGREP | |
3267 | fi | |
3268 | ||
3269 | fi | |
3270 | fi | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3272 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3273 | EGREP="$ac_cv_path_EGREP" | |
3274 | ||
3275 | ||
22e05272 JM |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3277 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3278 | if ${ac_cv_header_stdc+:} false; then : | |
3279 | $as_echo_n "(cached) " >&6 | |
3280 | else | |
3281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3282 | /* end confdefs.h. */ | |
3283 | #include <stdlib.h> | |
3284 | #include <stdarg.h> | |
3285 | #include <string.h> | |
3286 | #include <float.h> | |
3287 | ||
3288 | int | |
3289 | main () | |
3290 | { | |
3291 | ||
3292 | ; | |
3293 | return 0; | |
3294 | } | |
3295 | _ACEOF | |
3296 | if ac_fn_c_try_compile "$LINENO"; then : | |
3297 | ac_cv_header_stdc=yes | |
3298 | else | |
3299 | ac_cv_header_stdc=no | |
3300 | fi | |
3301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3302 | ||
3303 | if test $ac_cv_header_stdc = yes; then | |
3304 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3306 | /* end confdefs.h. */ | |
3307 | #include <string.h> | |
3308 | ||
3309 | _ACEOF | |
3310 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3311 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3312 | ||
3313 | else | |
3314 | ac_cv_header_stdc=no | |
3315 | fi | |
3316 | rm -f conftest* | |
3317 | ||
3318 | fi | |
3319 | ||
3320 | if test $ac_cv_header_stdc = yes; then | |
3321 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3323 | /* end confdefs.h. */ | |
3324 | #include <stdlib.h> | |
3325 | ||
3326 | _ACEOF | |
3327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3328 | $EGREP "free" >/dev/null 2>&1; then : | |
3329 | ||
3330 | else | |
3331 | ac_cv_header_stdc=no | |
3332 | fi | |
3333 | rm -f conftest* | |
3334 | ||
3335 | fi | |
3336 | ||
3337 | if test $ac_cv_header_stdc = yes; then | |
3338 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3339 | if test "$cross_compiling" = yes; then : | |
3340 | : | |
3341 | else | |
3342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3343 | /* end confdefs.h. */ | |
3344 | #include <ctype.h> | |
3345 | #include <stdlib.h> | |
3346 | #if ((' ' & 0x0FF) == 0x020) | |
3347 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3348 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3349 | #else | |
3350 | # define ISLOWER(c) \ | |
3351 | (('a' <= (c) && (c) <= 'i') \ | |
3352 | || ('j' <= (c) && (c) <= 'r') \ | |
3353 | || ('s' <= (c) && (c) <= 'z')) | |
3354 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3355 | #endif | |
3356 | ||
3357 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3358 | int | |
3359 | main () | |
3360 | { | |
3361 | int i; | |
3362 | for (i = 0; i < 256; i++) | |
3363 | if (XOR (islower (i), ISLOWER (i)) | |
3364 | || toupper (i) != TOUPPER (i)) | |
3365 | return 2; | |
3366 | return 0; | |
3367 | } | |
3368 | _ACEOF | |
3369 | if ac_fn_c_try_run "$LINENO"; then : | |
3370 | ||
3371 | else | |
3372 | ac_cv_header_stdc=no | |
3373 | fi | |
3374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3375 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3376 | fi | |
3377 | ||
3378 | fi | |
3379 | fi | |
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3381 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3382 | if test $ac_cv_header_stdc = yes; then | |
3383 | ||
3384 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3385 | ||
3386 | fi | |
3387 | ||
3388 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3389 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3390 | inttypes.h stdint.h unistd.h | |
3391 | do : | |
3392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3393 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3394 | " | |
3395 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3396 | cat >>confdefs.h <<_ACEOF | |
3397 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3398 | _ACEOF | |
3399 | ||
3400 | fi | |
3401 | ||
3402 | done | |
3403 | ||
3404 | ||
3405 | ||
3406 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3407 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3408 | MINIX=yes | |
3409 | else | |
3410 | MINIX= | |
3411 | fi | |
3412 | ||
3413 | ||
3414 | if test "$MINIX" = yes; then | |
3415 | ||
3416 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3417 | ||
3418 | ||
3419 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3420 | ||
3421 | ||
3422 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3423 | ||
3424 | fi | |
3425 | ||
3426 | ||
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3428 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3429 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
3430 | $as_echo_n "(cached) " >&6 | |
3431 | else | |
3432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3433 | /* end confdefs.h. */ | |
3434 | ||
3435 | # define __EXTENSIONS__ 1 | |
3436 | $ac_includes_default | |
3437 | int | |
3438 | main () | |
3439 | { | |
3440 | ||
3441 | ; | |
3442 | return 0; | |
3443 | } | |
3444 | _ACEOF | |
3445 | if ac_fn_c_try_compile "$LINENO"; then : | |
3446 | ac_cv_safe_to_define___extensions__=yes | |
3447 | else | |
3448 | ac_cv_safe_to_define___extensions__=no | |
3449 | fi | |
3450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3451 | fi | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3453 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3454 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3455 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3456 | ||
3457 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3458 | ||
3459 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3460 | ||
3461 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3462 | ||
3463 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3464 | ||
3465 | ||
3466 | ||
3467 | ac_config_headers="$ac_config_headers config.h" | |
3468 | ||
3469 | ||
3470 | ||
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3472 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3473 | set x ${MAKE-make} | |
3474 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3475 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3476 | $as_echo_n "(cached) " >&6 | |
3477 | else | |
3478 | cat >conftest.make <<\_ACEOF | |
3479 | SHELL = /bin/sh | |
3480 | all: | |
3481 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3482 | _ACEOF | |
3483 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3484 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3485 | *@@@%%%=?*=@@@%%%*) | |
3486 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3487 | *) | |
3488 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3489 | esac | |
3490 | rm -f conftest.make | |
3491 | fi | |
3492 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3494 | $as_echo "yes" >&6; } | |
3495 | SET_MAKE= | |
3496 | else | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3498 | $as_echo "no" >&6; } | |
3499 | SET_MAKE="MAKE=${MAKE-make}" | |
3500 | fi | |
3501 | ||
3502 | ac_aux_dir= | |
3503 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3504 | if test -f "$ac_dir/install-sh"; then | |
3505 | ac_aux_dir=$ac_dir | |
3506 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3507 | break | |
3508 | elif test -f "$ac_dir/install.sh"; then | |
3509 | ac_aux_dir=$ac_dir | |
3510 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3511 | break | |
3512 | elif test -f "$ac_dir/shtool"; then | |
3513 | ac_aux_dir=$ac_dir | |
3514 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3515 | break | |
3516 | fi | |
3517 | done | |
3518 | if test -z "$ac_aux_dir"; then | |
3519 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3520 | fi | |
3521 | ||
3522 | # These three variables are undocumented and unsupported, | |
3523 | # and are intended to be withdrawn in a future Autoconf release. | |
3524 | # They can cause serious problems if a builder's source tree is in a directory | |
3525 | # whose full name contains unusual characters. | |
3526 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3527 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3528 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3529 | ||
3530 | ||
3531 | # Find a good install program. We prefer a C program (faster), | |
3532 | # so one script is as good as another. But avoid the broken or | |
3533 | # incompatible versions: | |
3534 | # SysV /etc/install, /usr/sbin/install | |
3535 | # SunOS /usr/etc/install | |
3536 | # IRIX /sbin/install | |
3537 | # AIX /bin/install | |
3538 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3539 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3540 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3541 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3542 | # OS/2's system install, which has a completely different semantic | |
3543 | # ./install, which can be erroneously created by make from ./install.sh. | |
3544 | # Reject install programs that cannot install multiple files. | |
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3546 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3547 | if test -z "$INSTALL"; then | |
3548 | if ${ac_cv_path_install+:} false; then : | |
3549 | $as_echo_n "(cached) " >&6 | |
3550 | else | |
3551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3552 | for as_dir in $PATH | |
3553 | do | |
3554 | IFS=$as_save_IFS | |
3555 | test -z "$as_dir" && as_dir=. | |
3556 | # Account for people who put trailing slashes in PATH elements. | |
3557 | case $as_dir/ in #(( | |
3558 | ./ | .// | /[cC]/* | \ | |
3559 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3560 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3561 | /usr/ucb/* ) ;; | |
3562 | *) | |
3563 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3564 | # Don't use installbsd from OSF since it installs stuff as root | |
3565 | # by default. | |
3566 | for ac_prog in ginstall scoinst install; do | |
3567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3568 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3569 | if test $ac_prog = install && | |
3570 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3571 | # AIX install. It has an incompatible calling convention. | |
3572 | : | |
3573 | elif test $ac_prog = install && | |
3574 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3575 | # program-specific install script used by HP pwplus--don't use. | |
3576 | : | |
3577 | else | |
3578 | rm -rf conftest.one conftest.two conftest.dir | |
3579 | echo one > conftest.one | |
3580 | echo two > conftest.two | |
3581 | mkdir conftest.dir | |
3582 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3583 | test -s conftest.one && test -s conftest.two && | |
3584 | test -s conftest.dir/conftest.one && | |
3585 | test -s conftest.dir/conftest.two | |
3586 | then | |
3587 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3588 | break 3 | |
3589 | fi | |
3590 | fi | |
3591 | fi | |
3592 | done | |
3593 | done | |
3594 | ;; | |
3595 | esac | |
3596 | ||
3597 | done | |
3598 | IFS=$as_save_IFS | |
3599 | ||
3600 | rm -rf conftest.one conftest.two conftest.dir | |
3601 | ||
3602 | fi | |
3603 | if test "${ac_cv_path_install+set}" = set; then | |
3604 | INSTALL=$ac_cv_path_install | |
3605 | else | |
3606 | # As a last resort, use the slow shell script. Don't cache a | |
3607 | # value for INSTALL within a source directory, because that will | |
3608 | # break other packages using the cache if that directory is | |
3609 | # removed, or if the value is a relative name. | |
3610 | INSTALL=$ac_install_sh | |
3611 | fi | |
3612 | fi | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3614 | $as_echo "$INSTALL" >&6; } | |
3615 | ||
3616 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3617 | # It thinks the first close brace ends the variable substitution. | |
3618 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3619 | ||
3620 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3621 | ||
3622 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3623 | ||
3624 | ||
3625 | MKINSTALLDIRS= | |
3626 | if test -n "$ac_aux_dir"; then | |
3627 | case "$ac_aux_dir" in | |
3628 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
3629 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
3630 | esac | |
3631 | fi | |
3632 | if test -z "$MKINSTALLDIRS"; then | |
3633 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
3634 | fi | |
3635 | ||
3636 | ||
3637 | ||
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
3639 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
3640 | # Check whether --enable-nls was given. | |
3641 | if test "${enable_nls+set}" = set; then : | |
3642 | enableval=$enable_nls; USE_NLS=$enableval | |
3643 | else | |
3644 | USE_NLS=yes | |
3645 | fi | |
3646 | ||
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
3648 | $as_echo "$USE_NLS" >&6; } | |
3649 | ||
3650 | ||
3651 | ||
3652 | ||
3653 | ||
3654 | ||
3655 | # Prepare PATH_SEPARATOR. | |
3656 | # The user is always right. | |
3657 | if test "${PATH_SEPARATOR+set}" != set; then | |
3658 | echo "#! /bin/sh" >conf$$.sh | |
3659 | echo "exit 0" >>conf$$.sh | |
3660 | chmod +x conf$$.sh | |
3661 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3662 | PATH_SEPARATOR=';' | |
3663 | else | |
3664 | PATH_SEPARATOR=: | |
3665 | fi | |
3666 | rm -f conf$$.sh | |
3667 | fi | |
3668 | ||
3669 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3670 | # as systems may use methods other than mode bits to determine executability. | |
3671 | cat >conf$$.file <<_ASEOF | |
3672 | #! /bin/sh | |
3673 | exit 0 | |
3674 | _ASEOF | |
3675 | chmod +x conf$$.file | |
3676 | if test -x conf$$.file >/dev/null 2>&1; then | |
3677 | ac_executable_p="test -x" | |
3678 | else | |
3679 | ac_executable_p="test -f" | |
3680 | fi | |
3681 | rm -f conf$$.file | |
3682 | ||
3683 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3684 | set dummy msgfmt; ac_word=$2 | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3686 | $as_echo_n "checking for $ac_word... " >&6; } | |
3687 | if ${ac_cv_path_MSGFMT+:} false; then : | |
3688 | $as_echo_n "(cached) " >&6 | |
3689 | else | |
3690 | case "$MSGFMT" in | |
3691 | [\\/]* | ?:[\\/]*) | |
3692 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3693 | ;; | |
3694 | *) | |
3695 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3696 | for ac_dir in $PATH; do | |
3697 | IFS="$ac_save_IFS" | |
3698 | test -z "$ac_dir" && ac_dir=. | |
3699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3700 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3701 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
3702 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3703 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
3704 | break 2 | |
3705 | fi | |
3706 | fi | |
3707 | done | |
3708 | done | |
3709 | IFS="$ac_save_IFS" | |
3710 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
3711 | ;; | |
3712 | esac | |
3713 | fi | |
3714 | MSGFMT="$ac_cv_path_MSGFMT" | |
3715 | if test "$MSGFMT" != ":"; then | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
3717 | $as_echo "$MSGFMT" >&6; } | |
3718 | else | |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3720 | $as_echo "no" >&6; } | |
3721 | fi | |
3722 | ||
3723 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3724 | set dummy gmsgfmt; ac_word=$2 | |
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3726 | $as_echo_n "checking for $ac_word... " >&6; } | |
3727 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
3728 | $as_echo_n "(cached) " >&6 | |
3729 | else | |
3730 | case $GMSGFMT in | |
3731 | [\\/]* | ?:[\\/]*) | |
3732 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3733 | ;; | |
3734 | *) | |
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3736 | for as_dir in $PATH | |
3737 | do | |
3738 | IFS=$as_save_IFS | |
3739 | test -z "$as_dir" && as_dir=. | |
3740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3742 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
3743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3744 | break 2 | |
3745 | fi | |
3746 | done | |
3747 | done | |
3748 | IFS=$as_save_IFS | |
3749 | ||
3750 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3751 | ;; | |
3752 | esac | |
3753 | fi | |
3754 | GMSGFMT=$ac_cv_path_GMSGFMT | |
3755 | if test -n "$GMSGFMT"; then | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
3757 | $as_echo "$GMSGFMT" >&6; } | |
3758 | else | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3760 | $as_echo "no" >&6; } | |
3761 | fi | |
3762 | ||
3763 | ||
3764 | ||
3765 | ||
3766 | # Prepare PATH_SEPARATOR. | |
3767 | # The user is always right. | |
3768 | if test "${PATH_SEPARATOR+set}" != set; then | |
3769 | echo "#! /bin/sh" >conf$$.sh | |
3770 | echo "exit 0" >>conf$$.sh | |
3771 | chmod +x conf$$.sh | |
3772 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3773 | PATH_SEPARATOR=';' | |
3774 | else | |
3775 | PATH_SEPARATOR=: | |
3776 | fi | |
3777 | rm -f conf$$.sh | |
3778 | fi | |
3779 | ||
3780 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3781 | # as systems may use methods other than mode bits to determine executability. | |
3782 | cat >conf$$.file <<_ASEOF | |
3783 | #! /bin/sh | |
3784 | exit 0 | |
3785 | _ASEOF | |
3786 | chmod +x conf$$.file | |
3787 | if test -x conf$$.file >/dev/null 2>&1; then | |
3788 | ac_executable_p="test -x" | |
3789 | else | |
3790 | ac_executable_p="test -f" | |
3791 | fi | |
3792 | rm -f conf$$.file | |
3793 | ||
3794 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3795 | set dummy xgettext; ac_word=$2 | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3797 | $as_echo_n "checking for $ac_word... " >&6; } | |
3798 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
3799 | $as_echo_n "(cached) " >&6 | |
3800 | else | |
3801 | case "$XGETTEXT" in | |
3802 | [\\/]* | ?:[\\/]*) | |
3803 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3804 | ;; | |
3805 | *) | |
3806 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3807 | for ac_dir in $PATH; do | |
3808 | IFS="$ac_save_IFS" | |
3809 | test -z "$ac_dir" && ac_dir=. | |
3810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3811 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3812 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3813 | (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 | |
3814 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
3815 | break 2 | |
3816 | fi | |
3817 | fi | |
3818 | done | |
3819 | done | |
3820 | IFS="$ac_save_IFS" | |
3821 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3822 | ;; | |
3823 | esac | |
3824 | fi | |
3825 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3826 | if test "$XGETTEXT" != ":"; then | |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
3828 | $as_echo "$XGETTEXT" >&6; } | |
3829 | else | |
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3831 | $as_echo "no" >&6; } | |
3832 | fi | |
3833 | ||
3834 | rm -f messages.po | |
3835 | ||
3836 | ||
3837 | # Prepare PATH_SEPARATOR. | |
3838 | # The user is always right. | |
3839 | if test "${PATH_SEPARATOR+set}" != set; then | |
3840 | echo "#! /bin/sh" >conf$$.sh | |
3841 | echo "exit 0" >>conf$$.sh | |
3842 | chmod +x conf$$.sh | |
3843 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3844 | PATH_SEPARATOR=';' | |
3845 | else | |
3846 | PATH_SEPARATOR=: | |
3847 | fi | |
3848 | rm -f conf$$.sh | |
3849 | fi | |
3850 | ||
3851 | # Find out how to test for executable files. Don't use a zero-byte file, | |
3852 | # as systems may use methods other than mode bits to determine executability. | |
3853 | cat >conf$$.file <<_ASEOF | |
3854 | #! /bin/sh | |
3855 | exit 0 | |
3856 | _ASEOF | |
3857 | chmod +x conf$$.file | |
3858 | if test -x conf$$.file >/dev/null 2>&1; then | |
3859 | ac_executable_p="test -x" | |
3860 | else | |
3861 | ac_executable_p="test -f" | |
3862 | fi | |
3863 | rm -f conf$$.file | |
3864 | ||
3865 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
3866 | set dummy msgmerge; ac_word=$2 | |
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3868 | $as_echo_n "checking for $ac_word... " >&6; } | |
3869 | if ${ac_cv_path_MSGMERGE+:} false; then : | |
3870 | $as_echo_n "(cached) " >&6 | |
3871 | else | |
3872 | case "$MSGMERGE" in | |
3873 | [\\/]* | ?:[\\/]*) | |
3874 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
3875 | ;; | |
3876 | *) | |
3877 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
3878 | for ac_dir in $PATH; do | |
3879 | IFS="$ac_save_IFS" | |
3880 | test -z "$ac_dir" && ac_dir=. | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
3883 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
3884 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
3885 | break 2 | |
3886 | fi | |
3887 | fi | |
3888 | done | |
3889 | done | |
3890 | IFS="$ac_save_IFS" | |
3891 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
3892 | ;; | |
3893 | esac | |
3894 | fi | |
3895 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
3896 | if test "$MSGMERGE" != ":"; then | |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
3898 | $as_echo "$MSGMERGE" >&6; } | |
3899 | else | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3901 | $as_echo "no" >&6; } | |
3902 | fi | |
3903 | ||
3904 | ||
3905 | if test "$GMSGFMT" != ":"; then | |
3906 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
3907 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
3908 | : ; | |
3909 | else | |
3910 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
3912 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
3913 | GMSGFMT=":" | |
3914 | fi | |
3915 | fi | |
3916 | ||
3917 | if test "$XGETTEXT" != ":"; then | |
3918 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
3919 | (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 | |
3920 | : ; | |
3921 | else | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
3923 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
3924 | XGETTEXT=":" | |
3925 | fi | |
3926 | rm -f messages.po | |
3927 | fi | |
3928 | ||
3929 | ac_config_commands="$ac_config_commands default-1" | |
3930 | ||
3931 | ||
3932 | # Make sure we can run config.sub. | |
3933 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3934 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3935 | ||
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3937 | $as_echo_n "checking build system type... " >&6; } | |
3938 | if ${ac_cv_build+:} false; then : | |
3939 | $as_echo_n "(cached) " >&6 | |
3940 | else | |
3941 | ac_build_alias=$build_alias | |
3942 | test "x$ac_build_alias" = x && | |
3943 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3944 | test "x$ac_build_alias" = x && | |
3945 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3946 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3947 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3948 | ||
3949 | fi | |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3951 | $as_echo "$ac_cv_build" >&6; } | |
3952 | case $ac_cv_build in | |
3953 | *-*-*) ;; | |
3954 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3955 | esac | |
3956 | build=$ac_cv_build | |
3957 | ac_save_IFS=$IFS; IFS='-' | |
3958 | set x $ac_cv_build | |
3959 | shift | |
3960 | build_cpu=$1 | |
3961 | build_vendor=$2 | |
3962 | shift; shift | |
3963 | # Remember, the first character of IFS is used to create $*, | |
3964 | # except with old shells: | |
3965 | build_os=$* | |
3966 | IFS=$ac_save_IFS | |
3967 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3968 | ||
3969 | ||
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3971 | $as_echo_n "checking host system type... " >&6; } | |
3972 | if ${ac_cv_host+:} false; then : | |
3973 | $as_echo_n "(cached) " >&6 | |
3974 | else | |
3975 | if test "x$host_alias" = x; then | |
3976 | ac_cv_host=$ac_cv_build | |
3977 | else | |
3978 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3979 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3980 | fi | |
3981 | ||
3982 | fi | |
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3984 | $as_echo "$ac_cv_host" >&6; } | |
3985 | case $ac_cv_host in | |
3986 | *-*-*) ;; | |
3987 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3988 | esac | |
3989 | host=$ac_cv_host | |
3990 | ac_save_IFS=$IFS; IFS='-' | |
3991 | set x $ac_cv_host | |
3992 | shift | |
3993 | host_cpu=$1 | |
3994 | host_vendor=$2 | |
3995 | shift; shift | |
3996 | # Remember, the first character of IFS is used to create $*, | |
3997 | # except with old shells: | |
3998 | host_os=$* | |
3999 | IFS=$ac_save_IFS | |
4000 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4001 | ||
4002 | ||
4003 | if test -n "$ac_tool_prefix"; then | |
4004 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4005 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4007 | $as_echo_n "checking for $ac_word... " >&6; } | |
4008 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5213506e RW |
4009 | $as_echo_n "(cached) " >&6 |
4010 | else | |
22e05272 JM |
4011 | if test -n "$RANLIB"; then |
4012 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4013 | else | |
4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4015 | for as_dir in $PATH | |
4016 | do | |
4017 | IFS=$as_save_IFS | |
4018 | test -z "$as_dir" && as_dir=. | |
4019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4021 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4023 | break 2 | |
4024 | fi | |
4025 | done | |
4026 | done | |
4027 | IFS=$as_save_IFS | |
79035f0d | 4028 | |
22e05272 JM |
4029 | fi |
4030 | fi | |
4031 | RANLIB=$ac_cv_prog_RANLIB | |
4032 | if test -n "$RANLIB"; then | |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4034 | $as_echo "$RANLIB" >&6; } | |
6eb95e99 | 4035 | else |
22e05272 JM |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4037 | $as_echo "no" >&6; } | |
6eb95e99 | 4038 | fi |
6eb95e99 | 4039 | |
5213506e | 4040 | |
6eb95e99 | 4041 | fi |
22e05272 JM |
4042 | if test -z "$ac_cv_prog_RANLIB"; then |
4043 | ac_ct_RANLIB=$RANLIB | |
4044 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4045 | set dummy ranlib; ac_word=$2 | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4047 | $as_echo_n "checking for $ac_word... " >&6; } | |
4048 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
4049 | $as_echo_n "(cached) " >&6 | |
4050 | else | |
4051 | if test -n "$ac_ct_RANLIB"; then | |
4052 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4053 | else | |
4054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4055 | for as_dir in $PATH | |
4056 | do | |
4057 | IFS=$as_save_IFS | |
4058 | test -z "$as_dir" && as_dir=. | |
4059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4061 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4063 | break 2 | |
4064 | fi | |
4065 | done | |
4066 | done | |
4067 | IFS=$as_save_IFS | |
6eb95e99 ZW |
4068 | |
4069 | fi | |
22e05272 JM |
4070 | fi |
4071 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4072 | if test -n "$ac_ct_RANLIB"; then | |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4074 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6eb95e99 | 4075 | else |
22e05272 JM |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4077 | $as_echo "no" >&6; } | |
6eb95e99 | 4078 | fi |
6eb95e99 | 4079 | |
22e05272 JM |
4080 | if test "x$ac_ct_RANLIB" = x; then |
4081 | RANLIB=":" | |
4082 | else | |
4083 | case $cross_compiling:$ac_tool_warned in | |
4084 | yes:) | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4087 | ac_tool_warned=yes ;; | |
4088 | esac | |
4089 | RANLIB=$ac_ct_RANLIB | |
4090 | fi | |
4091 | else | |
4092 | RANLIB="$ac_cv_prog_RANLIB" | |
6eb95e99 ZW |
4093 | fi |
4094 | ||
22e05272 JM |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4096 | $as_echo_n "checking for library containing strerror... " >&6; } | |
4097 | if ${ac_cv_search_strerror+:} false; then : | |
4098 | $as_echo_n "(cached) " >&6 | |
6eb95e99 | 4099 | else |
22e05272 JM |
4100 | ac_func_search_save_LIBS=$LIBS |
4101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
79035f0d | 4102 | /* end confdefs.h. */ |
56694dd9 | 4103 | |
22e05272 JM |
4104 | /* Override any GCC internal prototype to avoid an error. |
4105 | Use char because int might match the return type of a GCC | |
4106 | builtin and then its argument prototype would still apply. */ | |
4107 | #ifdef __cplusplus | |
4108 | extern "C" | |
4109 | #endif | |
4110 | char strerror (); | |
79035f0d NN |
4111 | int |
4112 | main () | |
4113 | { | |
22e05272 JM |
4114 | return strerror (); |
4115 | ; | |
5213506e | 4116 | return 0; |
79035f0d NN |
4117 | } |
4118 | _ACEOF | |
22e05272 JM |
4119 | for ac_lib in '' cposix; do |
4120 | if test -z "$ac_lib"; then | |
4121 | ac_res="none required" | |
4122 | else | |
4123 | ac_res=-l$ac_lib | |
4124 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4125 | fi | |
4126 | if ac_fn_c_try_link "$LINENO"; then : | |
4127 | ac_cv_search_strerror=$ac_res | |
6eb95e99 | 4128 | fi |
22e05272 JM |
4129 | rm -f core conftest.err conftest.$ac_objext \ |
4130 | conftest$ac_exeext | |
4131 | if ${ac_cv_search_strerror+:} false; then : | |
4132 | break | |
6eb95e99 | 4133 | fi |
22e05272 JM |
4134 | done |
4135 | if ${ac_cv_search_strerror+:} false; then : | |
5213506e | 4136 | |
22e05272 JM |
4137 | else |
4138 | ac_cv_search_strerror=no | |
6eb95e99 | 4139 | fi |
22e05272 JM |
4140 | rm conftest.$ac_ext |
4141 | LIBS=$ac_func_search_save_LIBS | |
6eb95e99 | 4142 | fi |
22e05272 JM |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
4144 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4145 | ac_res=$ac_cv_search_strerror | |
4146 | if test "$ac_res" != no; then : | |
4147 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
79035f0d NN |
4148 | |
4149 | fi | |
56694dd9 | 4150 | |
5213506e RW |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
4152 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
22e05272 | 4153 | if ${ac_cv_c_const+:} false; then : |
5213506e | 4154 | $as_echo_n "(cached) " >&6 |
79035f0d | 4155 | else |
5213506e | 4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4157 | /* end confdefs.h. */ |
4158 | ||
4159 | int | |
4160 | main () | |
4161 | { | |
22e05272 | 4162 | |
79035f0d | 4163 | #ifndef __cplusplus |
22e05272 | 4164 | /* Ultrix mips cc rejects this sort of thing. */ |
79035f0d | 4165 | typedef int charset[2]; |
22e05272 | 4166 | const charset cs = { 0, 0 }; |
79035f0d | 4167 | /* SunOS 4.1.1 cc rejects this. */ |
5213506e RW |
4168 | char const *const *pcpcc; |
4169 | char **ppc; | |
79035f0d NN |
4170 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4171 | struct point {int x, y;}; | |
4172 | static struct point const zero = {0,0}; | |
4173 | /* AIX XL C 1.02.0.0 rejects this. | |
4174 | It does not let you subtract one const X* pointer from another in | |
4175 | an arm of an if-expression whose if-part is not a constant | |
4176 | expression */ | |
4177 | const char *g = "string"; | |
5213506e | 4178 | pcpcc = &g + (g ? g-g : 0); |
79035f0d | 4179 | /* HPUX 7.0 cc rejects these. */ |
5213506e RW |
4180 | ++pcpcc; |
4181 | ppc = (char**) pcpcc; | |
4182 | pcpcc = (char const *const *) ppc; | |
22e05272 JM |
4183 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
4184 | char tx; | |
4185 | char *t = &tx; | |
79035f0d NN |
4186 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
4187 | ||
4188 | *t++ = 0; | |
5213506e | 4189 | if (s) return 0; |
79035f0d NN |
4190 | } |
4191 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4192 | int x[] = {25, 17}; | |
4193 | const int *foo = &x[0]; | |
4194 | ++foo; | |
4195 | } | |
4196 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4197 | typedef const int *iptr; | |
4198 | iptr p = 0; | |
4199 | ++p; | |
4200 | } | |
22e05272 | 4201 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
79035f0d | 4202 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
22e05272 JM |
4203 | struct s { int j; const int *ap[3]; } bx; |
4204 | struct s *b = &bx; b->j = 5; | |
79035f0d NN |
4205 | } |
4206 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4207 | const int foo = 10; | |
5213506e | 4208 | if (!foo) return 0; |
79035f0d | 4209 | } |
5213506e | 4210 | return !cs[0] && !zero.x; |
79035f0d NN |
4211 | #endif |
4212 | ||
4213 | ; | |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
5213506e | 4217 | if ac_fn_c_try_compile "$LINENO"; then : |
6eb95e99 ZW |
4218 | ac_cv_c_const=yes |
4219 | else | |
5213506e | 4220 | ac_cv_c_const=no |
6eb95e99 | 4221 | fi |
5213506e | 4222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 | 4223 | fi |
5213506e RW |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
4225 | $as_echo "$ac_cv_c_const" >&6; } | |
56694dd9 | 4226 | if test $ac_cv_c_const = no; then |
79035f0d | 4227 | |
5213506e | 4228 | $as_echo "#define const /**/" >>confdefs.h |
6eb95e99 ZW |
4229 | |
4230 | fi | |
4231 | ||
5213506e RW |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4233 | $as_echo_n "checking for inline... " >&6; } | |
22e05272 | 4234 | if ${ac_cv_c_inline+:} false; then : |
5213506e | 4235 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
4236 | else |
4237 | ac_cv_c_inline=no | |
4238 | for ac_kw in inline __inline__ __inline; do | |
5213506e | 4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4240 | /* end confdefs.h. */ |
4241 | #ifndef __cplusplus | |
4242 | typedef int foo_t; | |
4243 | static $ac_kw foo_t static_foo () {return 0; } | |
4244 | $ac_kw foo_t foo () {return 0; } | |
4245 | #endif | |
4246 | ||
4247 | _ACEOF | |
5213506e RW |
4248 | if ac_fn_c_try_compile "$LINENO"; then : |
4249 | ac_cv_c_inline=$ac_kw | |
6eb95e99 | 4250 | fi |
5213506e RW |
4251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4252 | test "$ac_cv_c_inline" != no && break | |
6eb95e99 ZW |
4253 | done |
4254 | ||
4255 | fi | |
5213506e RW |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
4257 | $as_echo "$ac_cv_c_inline" >&6; } | |
8ab705be | 4258 | |
79035f0d | 4259 | case $ac_cv_c_inline in |
6eb95e99 | 4260 | inline | yes) ;; |
8ab705be KC |
4261 | *) |
4262 | case $ac_cv_c_inline in | |
4263 | no) ac_val=;; | |
4264 | *) ac_val=$ac_cv_c_inline;; | |
4265 | esac | |
4266 | cat >>confdefs.h <<_ACEOF | |
4267 | #ifndef __cplusplus | |
4268 | #define inline $ac_val | |
4269 | #endif | |
79035f0d | 4270 | _ACEOF |
8ab705be | 4271 | ;; |
6eb95e99 ZW |
4272 | esac |
4273 | ||
5213506e | 4274 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 4275 | if test "x$ac_cv_type_off_t" = xyes; then : |
6eb95e99 | 4276 | |
79035f0d NN |
4277 | else |
4278 | ||
4279 | cat >>confdefs.h <<_ACEOF | |
5213506e | 4280 | #define off_t long int |
79035f0d | 4281 | _ACEOF |
6eb95e99 ZW |
4282 | |
4283 | fi | |
4284 | ||
5213506e | 4285 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
22e05272 | 4286 | if test "x$ac_cv_type_size_t" = xyes; then : |
6eb95e99 | 4287 | |
79035f0d NN |
4288 | else |
4289 | ||
4290 | cat >>confdefs.h <<_ACEOF | |
5213506e | 4291 | #define size_t unsigned int |
79035f0d | 4292 | _ACEOF |
6eb95e99 ZW |
4293 | |
4294 | fi | |
4295 | ||
4296 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4297 | # for constant arguments. Useless! | |
5213506e RW |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
4299 | $as_echo_n "checking for working alloca.h... " >&6; } | |
22e05272 | 4300 | if ${ac_cv_working_alloca_h+:} false; then : |
5213506e | 4301 | $as_echo_n "(cached) " >&6 |
79035f0d | 4302 | else |
5213506e | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4304 | /* end confdefs.h. */ |
6eb95e99 | 4305 | #include <alloca.h> |
79035f0d NN |
4306 | int |
4307 | main () | |
4308 | { | |
4309 | char *p = (char *) alloca (2 * sizeof (int)); | |
5213506e | 4310 | if (p) return 0; |
79035f0d NN |
4311 | ; |
4312 | return 0; | |
4313 | } | |
4314 | _ACEOF | |
5213506e | 4315 | if ac_fn_c_try_link "$LINENO"; then : |
79035f0d NN |
4316 | ac_cv_working_alloca_h=yes |
4317 | else | |
5213506e | 4318 | ac_cv_working_alloca_h=no |
79035f0d | 4319 | fi |
5213506e RW |
4320 | rm -f core conftest.err conftest.$ac_objext \ |
4321 | conftest$ac_exeext conftest.$ac_ext | |
79035f0d | 4322 | fi |
5213506e RW |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
4324 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
79035f0d NN |
4325 | if test $ac_cv_working_alloca_h = yes; then |
4326 | ||
5213506e | 4327 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
6eb95e99 ZW |
4328 | |
4329 | fi | |
4330 | ||
5213506e RW |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
4332 | $as_echo_n "checking for alloca... " >&6; } | |
22e05272 | 4333 | if ${ac_cv_func_alloca_works+:} false; then : |
5213506e | 4334 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4335 | else |
5213506e | 4336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4337 | /* end confdefs.h. */ |
6eb95e99 ZW |
4338 | #ifdef __GNUC__ |
4339 | # define alloca __builtin_alloca | |
4340 | #else | |
4341 | # ifdef _MSC_VER | |
4342 | # include <malloc.h> | |
4343 | # define alloca _alloca | |
4344 | # else | |
5213506e | 4345 | # ifdef HAVE_ALLOCA_H |
6eb95e99 ZW |
4346 | # include <alloca.h> |
4347 | # else | |
4348 | # ifdef _AIX | |
4349 | #pragma alloca | |
4350 | # else | |
4351 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
22e05272 | 4352 | void *alloca (size_t); |
6eb95e99 ZW |
4353 | # endif |
4354 | # endif | |
4355 | # endif | |
4356 | # endif | |
4357 | #endif | |
4358 | ||
79035f0d NN |
4359 | int |
4360 | main () | |
4361 | { | |
4362 | char *p = (char *) alloca (1); | |
5213506e | 4363 | if (p) return 0; |
79035f0d NN |
4364 | ; |
4365 | return 0; | |
4366 | } | |
4367 | _ACEOF | |
5213506e | 4368 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
4369 | ac_cv_func_alloca_works=yes |
4370 | else | |
5213506e | 4371 | ac_cv_func_alloca_works=no |
6eb95e99 | 4372 | fi |
5213506e RW |
4373 | rm -f core conftest.err conftest.$ac_objext \ |
4374 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 4375 | fi |
5213506e RW |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
4377 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
6eb95e99 ZW |
4378 | |
4379 | if test $ac_cv_func_alloca_works = yes; then | |
6eb95e99 | 4380 | |
5213506e | 4381 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
6eb95e99 | 4382 | |
79035f0d | 4383 | else |
56694dd9 | 4384 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
79035f0d NN |
4385 | # that cause trouble. Some versions do not even contain alloca or |
4386 | # contain a buggy version. If you still want to use their alloca, | |
4387 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4388 | ||
5213506e | 4389 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
79035f0d | 4390 | |
5213506e | 4391 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
6eb95e99 ZW |
4392 | |
4393 | ||
5213506e RW |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
4395 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
22e05272 | 4396 | if ${ac_cv_os_cray+:} false; then : |
5213506e | 4397 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4398 | else |
5213506e | 4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4400 | /* end confdefs.h. */ |
5213506e | 4401 | #if defined CRAY && ! defined CRAY2 |
6eb95e99 ZW |
4402 | webecray |
4403 | #else | |
4404 | wenotbecray | |
4405 | #endif | |
4406 | ||
79035f0d | 4407 | _ACEOF |
6eb95e99 | 4408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5213506e | 4409 | $EGREP "webecray" >/dev/null 2>&1; then : |
6eb95e99 ZW |
4410 | ac_cv_os_cray=yes |
4411 | else | |
4412 | ac_cv_os_cray=no | |
4413 | fi | |
4414 | rm -f conftest* | |
4415 | ||
4416 | fi | |
5213506e RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
4418 | $as_echo "$ac_cv_os_cray" >&6; } | |
6eb95e99 | 4419 | if test $ac_cv_os_cray = yes; then |
79035f0d | 4420 | for ac_func in _getb67 GETB67 getb67; do |
5213506e RW |
4421 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4422 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 4423 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
79035f0d NN |
4424 | |
4425 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4426 | #define CRAY_STACKSEG_END $ac_func |
79035f0d | 4427 | _ACEOF |
6eb95e99 | 4428 | |
79035f0d | 4429 | break |
6eb95e99 ZW |
4430 | fi |
4431 | ||
79035f0d | 4432 | done |
6eb95e99 ZW |
4433 | fi |
4434 | ||
5213506e RW |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
4436 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
22e05272 | 4437 | if ${ac_cv_c_stack_direction+:} false; then : |
5213506e | 4438 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4439 | else |
5213506e | 4440 | if test "$cross_compiling" = yes; then : |
6eb95e99 ZW |
4441 | ac_cv_c_stack_direction=0 |
4442 | else | |
5213506e | 4443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4444 | /* end confdefs.h. */ |
5213506e | 4445 | $ac_includes_default |
79035f0d | 4446 | int |
22e05272 | 4447 | find_stack_direction (int *addr, int depth) |
6eb95e99 | 4448 | { |
22e05272 JM |
4449 | int dir, dummy = 0; |
4450 | if (! addr) | |
4451 | addr = &dummy; | |
4452 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
4453 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
4454 | return dir + dummy; | |
6eb95e99 | 4455 | } |
79035f0d NN |
4456 | |
4457 | int | |
22e05272 | 4458 | main (int argc, char **argv) |
6eb95e99 | 4459 | { |
22e05272 | 4460 | return find_stack_direction (0, argc + !argv + 20) < 0; |
6eb95e99 | 4461 | } |
79035f0d | 4462 | _ACEOF |
5213506e | 4463 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4464 | ac_cv_c_stack_direction=1 |
4465 | else | |
5213506e | 4466 | ac_cv_c_stack_direction=-1 |
6eb95e99 | 4467 | fi |
5213506e RW |
4468 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4469 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 | 4470 | fi |
6eb95e99 | 4471 | |
5213506e RW |
4472 | fi |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
4474 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
79035f0d | 4475 | cat >>confdefs.h <<_ACEOF |
6eb95e99 | 4476 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
79035f0d NN |
4477 | _ACEOF |
4478 | ||
6eb95e99 ZW |
4479 | |
4480 | fi | |
4481 | ||
22e05272 JM |
4482 | |
4483 | ||
4484 | ||
4485 | for ac_header in $ac_header_list | |
5213506e RW |
4486 | do : |
4487 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22e05272 JM |
4488 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4489 | " | |
4490 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5213506e RW |
4491 | cat >>confdefs.h <<_ACEOF |
4492 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
79035f0d | 4493 | _ACEOF |
79035f0d | 4494 | |
79035f0d | 4495 | fi |
79035f0d | 4496 | |
5213506e RW |
4497 | done |
4498 | ||
22e05272 JM |
4499 | |
4500 | ||
4501 | ||
4502 | ||
4503 | ||
4504 | ||
4505 | ||
5213506e RW |
4506 | for ac_func in getpagesize |
4507 | do : | |
4508 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
22e05272 | 4509 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
5213506e RW |
4510 | cat >>confdefs.h <<_ACEOF |
4511 | #define HAVE_GETPAGESIZE 1 | |
79035f0d | 4512 | _ACEOF |
79035f0d | 4513 | |
79035f0d | 4514 | fi |
5213506e | 4515 | done |
79035f0d | 4516 | |
5213506e RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
4518 | $as_echo_n "checking for working mmap... " >&6; } | |
22e05272 | 4519 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
5213506e | 4520 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4521 | else |
5213506e | 4522 | if test "$cross_compiling" = yes; then : |
6eb95e99 ZW |
4523 | ac_cv_func_mmap_fixed_mapped=no |
4524 | else | |
5213506e | 4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4526 | /* end confdefs.h. */ |
4527 | $ac_includes_default | |
4528 | /* malloc might have been renamed as rpl_malloc. */ | |
4529 | #undef malloc | |
6eb95e99 ZW |
4530 | |
4531 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4532 | Here is a matrix of mmap possibilities: | |
4533 | mmap private not fixed | |
4534 | mmap private fixed at somewhere currently unmapped | |
4535 | mmap private fixed at somewhere already mapped | |
4536 | mmap shared not fixed | |
4537 | mmap shared fixed at somewhere currently unmapped | |
4538 | mmap shared fixed at somewhere already mapped | |
4539 | For private mappings, we should verify that changes cannot be read() | |
4540 | back from the file, nor mmap's back from the file at a different | |
4541 | address. (There have been systems where private was not correctly | |
4542 | implemented like the infamous i386 svr4.0, and systems where the | |
79035f0d | 4543 | VM page cache was not coherent with the file system buffer cache |
6eb95e99 ZW |
4544 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
4545 | For shared mappings, we should conversely verify that changes get | |
79035f0d | 4546 | propagated back to all the places they're supposed to be. |
6eb95e99 ZW |
4547 | |
4548 | Grep wants private fixed already mapped. | |
4549 | The main things grep needs to know about mmap are: | |
4550 | * does it exist and is it safe to write into the mmap'd area | |
4551 | * how to use it (BSD variants) */ | |
79035f0d | 4552 | |
6eb95e99 ZW |
4553 | #include <fcntl.h> |
4554 | #include <sys/mman.h> | |
4555 | ||
5213506e | 4556 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
79035f0d NN |
4557 | char *malloc (); |
4558 | #endif | |
56694dd9 | 4559 | |
79035f0d | 4560 | /* This mess was copied from the GNU getpagesize.h. */ |
5213506e | 4561 | #ifndef HAVE_GETPAGESIZE |
6eb95e99 ZW |
4562 | # ifdef _SC_PAGESIZE |
4563 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4564 | # else /* no _SC_PAGESIZE */ | |
5213506e | 4565 | # ifdef HAVE_SYS_PARAM_H |
6eb95e99 ZW |
4566 | # include <sys/param.h> |
4567 | # ifdef EXEC_PAGESIZE | |
4568 | # define getpagesize() EXEC_PAGESIZE | |
4569 | # else /* no EXEC_PAGESIZE */ | |
4570 | # ifdef NBPG | |
4571 | # define getpagesize() NBPG * CLSIZE | |
4572 | # ifndef CLSIZE | |
4573 | # define CLSIZE 1 | |
4574 | # endif /* no CLSIZE */ | |
4575 | # else /* no NBPG */ | |
4576 | # ifdef NBPC | |
4577 | # define getpagesize() NBPC | |
4578 | # else /* no NBPC */ | |
4579 | # ifdef PAGESIZE | |
4580 | # define getpagesize() PAGESIZE | |
4581 | # endif /* PAGESIZE */ | |
4582 | # endif /* no NBPC */ | |
4583 | # endif /* no NBPG */ | |
4584 | # endif /* no EXEC_PAGESIZE */ | |
4585 | # else /* no HAVE_SYS_PARAM_H */ | |
4586 | # define getpagesize() 8192 /* punt totally */ | |
4587 | # endif /* no HAVE_SYS_PARAM_H */ | |
4588 | # endif /* no _SC_PAGESIZE */ | |
4589 | ||
4590 | #endif /* no HAVE_GETPAGESIZE */ | |
4591 | ||
4592 | int | |
79035f0d | 4593 | main () |
6eb95e99 | 4594 | { |
79035f0d | 4595 | char *data, *data2, *data3; |
22e05272 | 4596 | const char *cdata2; |
79035f0d | 4597 | int i, pagesize; |
22e05272 | 4598 | int fd, fd2; |
79035f0d NN |
4599 | |
4600 | pagesize = getpagesize (); | |
4601 | ||
4602 | /* First, make a file with some known garbage in it. */ | |
4603 | data = (char *) malloc (pagesize); | |
4604 | if (!data) | |
5213506e | 4605 | return 1; |
79035f0d NN |
4606 | for (i = 0; i < pagesize; ++i) |
4607 | *(data + i) = rand (); | |
4608 | umask (0); | |
4609 | fd = creat ("conftest.mmap", 0600); | |
4610 | if (fd < 0) | |
22e05272 | 4611 | return 2; |
79035f0d | 4612 | if (write (fd, data, pagesize) != pagesize) |
22e05272 | 4613 | return 3; |
79035f0d NN |
4614 | close (fd); |
4615 | ||
22e05272 JM |
4616 | /* Next, check that the tail of a page is zero-filled. File must have |
4617 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
4618 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
4619 | if (fd2 < 0) | |
4620 | return 4; | |
4621 | cdata2 = ""; | |
4622 | if (write (fd2, cdata2, 1) != 1) | |
4623 | return 5; | |
4624 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
4625 | if (data2 == MAP_FAILED) | |
4626 | return 6; | |
4627 | for (i = 0; i < pagesize; ++i) | |
4628 | if (*(data2 + i)) | |
4629 | return 7; | |
4630 | close (fd2); | |
4631 | if (munmap (data2, pagesize)) | |
4632 | return 8; | |
4633 | ||
79035f0d NN |
4634 | /* Next, try to mmap the file at a fixed address which already has |
4635 | something else allocated at it. If we can, also make sure that | |
4636 | we see the same garbage. */ | |
4637 | fd = open ("conftest.mmap", O_RDWR); | |
4638 | if (fd < 0) | |
22e05272 | 4639 | return 9; |
79035f0d | 4640 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8ab705be | 4641 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
22e05272 | 4642 | return 10; |
79035f0d NN |
4643 | for (i = 0; i < pagesize; ++i) |
4644 | if (*(data + i) != *(data2 + i)) | |
22e05272 | 4645 | return 11; |
79035f0d NN |
4646 | |
4647 | /* Finally, make sure that changes to the mapped area do not | |
4648 | percolate back to the file as seen by read(). (This is a bug on | |
4649 | some variants of i386 svr4.0.) */ | |
4650 | for (i = 0; i < pagesize; ++i) | |
4651 | *(data2 + i) = *(data2 + i) + 1; | |
4652 | data3 = (char *) malloc (pagesize); | |
4653 | if (!data3) | |
22e05272 | 4654 | return 12; |
79035f0d | 4655 | if (read (fd, data3, pagesize) != pagesize) |
22e05272 | 4656 | return 13; |
79035f0d NN |
4657 | for (i = 0; i < pagesize; ++i) |
4658 | if (*(data + i) != *(data3 + i)) | |
22e05272 | 4659 | return 14; |
79035f0d | 4660 | close (fd); |
5213506e | 4661 | return 0; |
6eb95e99 | 4662 | } |
79035f0d | 4663 | _ACEOF |
5213506e | 4664 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4665 | ac_cv_func_mmap_fixed_mapped=yes |
4666 | else | |
5213506e | 4667 | ac_cv_func_mmap_fixed_mapped=no |
6eb95e99 | 4668 | fi |
5213506e RW |
4669 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4670 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 | 4671 | fi |
5213506e | 4672 | |
6eb95e99 | 4673 | fi |
5213506e RW |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
4675 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
56694dd9 | 4676 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
79035f0d | 4677 | |
5213506e | 4678 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
6eb95e99 ZW |
4679 | |
4680 | fi | |
22e05272 | 4681 | rm -f conftest.mmap conftest.txt |
6eb95e99 ZW |
4682 | |
4683 | ||
5213506e RW |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
4685 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } | |
22e05272 | 4686 | if ${ac_cv_gnu_library_2_1+:} false; then : |
5213506e | 4687 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4688 | else |
5213506e | 4689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4690 | /* end confdefs.h. */ |
6eb95e99 ZW |
4691 | |
4692 | #include <features.h> | |
4693 | #ifdef __GNU_LIBRARY__ | |
4694 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
4695 | Lucky GNU user | |
4696 | #endif | |
4697 | #endif | |
79035f0d NN |
4698 | |
4699 | _ACEOF | |
6eb95e99 | 4700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5213506e | 4701 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
6eb95e99 ZW |
4702 | ac_cv_gnu_library_2_1=yes |
4703 | else | |
4704 | ac_cv_gnu_library_2_1=no | |
4705 | fi | |
4706 | rm -f conftest* | |
4707 | ||
79035f0d NN |
4708 | |
4709 | ||
6eb95e99 | 4710 | fi |
5213506e RW |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
4712 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
6eb95e99 ZW |
4713 | |
4714 | GLIBC21="$ac_cv_gnu_library_2_1" | |
4715 | ||
4716 | ||
79035f0d NN |
4717 | |
4718 | ||
5213506e RW |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
4720 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
22e05272 | 4721 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
5213506e | 4722 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4723 | else |
79035f0d | 4724 | |
5213506e | 4725 | if test "$cross_compiling" = yes; then : |
79035f0d | 4726 | |
6eb95e99 ZW |
4727 | # Guess based on the CPU. |
4728 | case "$host_cpu" in | |
4729 | alpha* | i3456786 | m68k | s390*) | |
4730 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
4731 | *) | |
4732 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
4733 | esac | |
79035f0d | 4734 | |
6eb95e99 | 4735 | else |
5213506e | 4736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4737 | /* end confdefs.h. */ |
6eb95e99 ZW |
4738 | |
4739 | #include <stdlib.h> | |
4740 | #include <signal.h> | |
4741 | ||
4742 | static void | |
4743 | #ifdef __cplusplus | |
4744 | sigfpe_handler (int sig) | |
4745 | #else | |
4746 | sigfpe_handler (sig) int sig; | |
4747 | #endif | |
4748 | { | |
4749 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
4750 | exit (sig != SIGFPE); | |
4751 | } | |
4752 | ||
4753 | int x = 1; | |
4754 | int y = 0; | |
4755 | int z; | |
4756 | int nan; | |
4757 | ||
4758 | int main () | |
4759 | { | |
4760 | signal (SIGFPE, sigfpe_handler); | |
4761 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
4762 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
4763 | signal (SIGTRAP, sigfpe_handler); | |
4764 | #endif | |
4765 | /* Linux/SPARC yields signal SIGILL. */ | |
4766 | #if defined (__sparc__) && defined (__linux__) | |
4767 | signal (SIGILL, sigfpe_handler); | |
4768 | #endif | |
4769 | ||
4770 | z = x / y; | |
4771 | nan = y / y; | |
4772 | exit (1); | |
4773 | } | |
4774 | ||
79035f0d | 4775 | _ACEOF |
5213506e | 4776 | if ac_fn_c_try_run "$LINENO"; then : |
6eb95e99 ZW |
4777 | gt_cv_int_divbyzero_sigfpe=yes |
4778 | else | |
5213506e | 4779 | gt_cv_int_divbyzero_sigfpe=no |
6eb95e99 | 4780 | fi |
5213506e RW |
4781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4782 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6eb95e99 ZW |
4783 | fi |
4784 | ||
5213506e | 4785 | |
6eb95e99 | 4786 | fi |
5213506e RW |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
4788 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
6eb95e99 ZW |
4789 | case "$gt_cv_int_divbyzero_sigfpe" in |
4790 | *yes) value=1;; | |
4791 | *) value=0;; | |
4792 | esac | |
79035f0d NN |
4793 | |
4794 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4795 | #define INTDIV0_RAISES_SIGFPE $value |
79035f0d NN |
4796 | _ACEOF |
4797 | ||
4798 | ||
4799 | ||
5213506e RW |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
4801 | $as_echo_n "checking for inttypes.h... " >&6; } | |
22e05272 | 4802 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
5213506e | 4803 | $as_echo_n "(cached) " >&6 |
79035f0d | 4804 | else |
5213506e | 4805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4806 | /* end confdefs.h. */ |
4807 | #include <sys/types.h> | |
4808 | #include <inttypes.h> | |
4809 | int | |
4810 | main () | |
4811 | { | |
4812 | uintmax_t i = (uintmax_t) -1; | |
4813 | ; | |
4814 | return 0; | |
4815 | } | |
4816 | _ACEOF | |
5213506e | 4817 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4818 | jm_ac_cv_header_inttypes_h=yes |
4819 | else | |
5213506e | 4820 | jm_ac_cv_header_inttypes_h=no |
79035f0d | 4821 | fi |
5213506e | 4822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 4823 | fi |
5213506e RW |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
4825 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } | |
79035f0d NN |
4826 | if test $jm_ac_cv_header_inttypes_h = yes; then |
4827 | ||
4828 | cat >>confdefs.h <<_ACEOF | |
4829 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
4830 | _ACEOF | |
4831 | ||
4832 | fi | |
4833 | ||
4834 | ||
5213506e RW |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
4836 | $as_echo_n "checking for stdint.h... " >&6; } | |
22e05272 | 4837 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
5213506e | 4838 | $as_echo_n "(cached) " >&6 |
79035f0d | 4839 | else |
5213506e | 4840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4841 | /* end confdefs.h. */ |
4842 | #include <sys/types.h> | |
4843 | #include <stdint.h> | |
4844 | int | |
4845 | main () | |
4846 | { | |
4847 | uintmax_t i = (uintmax_t) -1; | |
4848 | ; | |
4849 | return 0; | |
4850 | } | |
4851 | _ACEOF | |
5213506e | 4852 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4853 | jm_ac_cv_header_stdint_h=yes |
4854 | else | |
5213506e | 4855 | jm_ac_cv_header_stdint_h=no |
79035f0d | 4856 | fi |
5213506e | 4857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d | 4858 | fi |
5213506e RW |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
4860 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } | |
79035f0d NN |
4861 | if test $jm_ac_cv_header_stdint_h = yes; then |
4862 | ||
4863 | cat >>confdefs.h <<_ACEOF | |
4864 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
4865 | _ACEOF | |
4866 | ||
4867 | fi | |
4868 | ||
4869 | ||
5213506e RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
4871 | $as_echo_n "checking for unsigned long long... " >&6; } | |
22e05272 | 4872 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
5213506e | 4873 | $as_echo_n "(cached) " >&6 |
79035f0d | 4874 | else |
5213506e | 4875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d NN |
4876 | /* end confdefs.h. */ |
4877 | unsigned long long ull = 1; int i = 63; | |
4878 | int | |
4879 | main () | |
4880 | { | |
4881 | unsigned long long ullmax = (unsigned long long) -1; | |
4882 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; | |
4883 | ; | |
4884 | return 0; | |
4885 | } | |
4886 | _ACEOF | |
5213506e | 4887 | if ac_fn_c_try_link "$LINENO"; then : |
79035f0d NN |
4888 | ac_cv_type_unsigned_long_long=yes |
4889 | else | |
5213506e | 4890 | ac_cv_type_unsigned_long_long=no |
79035f0d | 4891 | fi |
5213506e RW |
4892 | rm -f core conftest.err conftest.$ac_objext \ |
4893 | conftest$ac_exeext conftest.$ac_ext | |
79035f0d | 4894 | fi |
5213506e RW |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
4896 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | |
79035f0d NN |
4897 | if test $ac_cv_type_unsigned_long_long = yes; then |
4898 | ||
5213506e | 4899 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
79035f0d NN |
4900 | |
4901 | fi | |
4902 | ||
6eb95e99 ZW |
4903 | |
4904 | ||
4905 | ||
4906 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | |
79035f0d | 4907 | |
6eb95e99 ZW |
4908 | test $ac_cv_type_unsigned_long_long = yes \ |
4909 | && ac_type='unsigned long long' \ | |
4910 | || ac_type='unsigned long' | |
79035f0d NN |
4911 | |
4912 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 4913 | #define uintmax_t $ac_type |
79035f0d | 4914 | _ACEOF |
6eb95e99 ZW |
4915 | |
4916 | else | |
79035f0d | 4917 | |
5213506e | 4918 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
6eb95e99 | 4919 | |
6eb95e99 | 4920 | fi |
6eb95e99 | 4921 | |
6eb95e99 | 4922 | |
5213506e RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
4924 | $as_echo_n "checking for inttypes.h... " >&6; } | |
22e05272 | 4925 | if ${gt_cv_header_inttypes_h+:} false; then : |
5213506e | 4926 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 4927 | else |
79035f0d | 4928 | |
5213506e | 4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4930 | /* end confdefs.h. */ |
56694dd9 ZW |
4931 | #include <sys/types.h> |
4932 | #include <inttypes.h> | |
79035f0d NN |
4933 | int |
4934 | main () | |
4935 | { | |
56694dd9 | 4936 | |
79035f0d NN |
4937 | ; |
4938 | return 0; | |
4939 | } | |
4940 | _ACEOF | |
5213506e | 4941 | if ac_fn_c_try_compile "$LINENO"; then : |
56694dd9 ZW |
4942 | gt_cv_header_inttypes_h=yes |
4943 | else | |
5213506e | 4944 | gt_cv_header_inttypes_h=no |
6eb95e99 | 4945 | fi |
5213506e | 4946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 | 4947 | |
79035f0d | 4948 | fi |
5213506e RW |
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
4950 | $as_echo "$gt_cv_header_inttypes_h" >&6; } | |
56694dd9 | 4951 | if test $gt_cv_header_inttypes_h = yes; then |
79035f0d NN |
4952 | |
4953 | cat >>confdefs.h <<_ACEOF | |
56694dd9 | 4954 | #define HAVE_INTTYPES_H 1 |
79035f0d | 4955 | _ACEOF |
6eb95e99 | 4956 | |
56694dd9 | 4957 | fi |
6eb95e99 | 4958 | |
6eb95e99 | 4959 | |
79035f0d | 4960 | |
56694dd9 | 4961 | if test $gt_cv_header_inttypes_h = yes; then |
5213506e RW |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
4963 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
22e05272 | 4964 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
5213506e | 4965 | $as_echo_n "(cached) " >&6 |
79035f0d NN |
4966 | else |
4967 | ||
5213506e | 4968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 4969 | /* end confdefs.h. */ |
56694dd9 ZW |
4970 | #include <inttypes.h> |
4971 | #ifdef PRId32 | |
4972 | char *p = PRId32; | |
4973 | #endif | |
6eb95e99 | 4974 | |
79035f0d NN |
4975 | int |
4976 | main () | |
4977 | { | |
4978 | ||
4979 | ; | |
4980 | return 0; | |
4981 | } | |
4982 | _ACEOF | |
5213506e | 4983 | if ac_fn_c_try_compile "$LINENO"; then : |
79035f0d NN |
4984 | gt_cv_inttypes_pri_broken=no |
4985 | else | |
5213506e | 4986 | gt_cv_inttypes_pri_broken=yes |
79035f0d | 4987 | fi |
5213506e | 4988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
79035f0d NN |
4989 | |
4990 | fi | |
5213506e RW |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
4992 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
79035f0d NN |
4993 | fi |
4994 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
4995 | ||
4996 | cat >>confdefs.h <<_ACEOF | |
4997 | #define PRI_MACROS_BROKEN 1 | |
4998 | _ACEOF | |
4999 | ||
5000 | fi | |
5001 | ||
5002 | ||
84c1b9d3 MK |
5003 | if test "X$prefix" = "XNONE"; then |
5004 | acl_final_prefix="$ac_default_prefix" | |
5005 | else | |
5006 | acl_final_prefix="$prefix" | |
5007 | fi | |
5008 | if test "X$exec_prefix" = "XNONE"; then | |
5009 | acl_final_exec_prefix='${prefix}' | |
5010 | else | |
5011 | acl_final_exec_prefix="$exec_prefix" | |
5012 | fi | |
5013 | acl_save_prefix="$prefix" | |
5014 | prefix="$acl_final_prefix" | |
5015 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5016 | prefix="$acl_save_prefix" | |
5017 | ||
5018 | ||
5019 | # Check whether --with-gnu-ld was given. | |
5020 | if test "${with_gnu_ld+set}" = set; then : | |
5021 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5022 | else | |
5023 | with_gnu_ld=no | |
5024 | fi | |
5025 | ||
5026 | # Prepare PATH_SEPARATOR. | |
5027 | # The user is always right. | |
5028 | if test "${PATH_SEPARATOR+set}" != set; then | |
5029 | echo "#! /bin/sh" >conf$$.sh | |
5030 | echo "exit 0" >>conf$$.sh | |
5031 | chmod +x conf$$.sh | |
5032 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5033 | PATH_SEPARATOR=';' | |
5034 | else | |
5035 | PATH_SEPARATOR=: | |
5036 | fi | |
5037 | rm -f conf$$.sh | |
5038 | fi | |
5039 | ac_prog=ld | |
5040 | if test "$GCC" = yes; then | |
5041 | # Check if gcc -print-prog-name=ld gives a path. | |
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
5043 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
5044 | case $host in | |
5045 | *-*-mingw*) | |
5046 | # gcc leaves a trailing carriage return which upsets mingw | |
5047 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5048 | *) | |
5049 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5050 | esac | |
5051 | case $ac_prog in | |
5052 | # Accept absolute paths. | |
5053 | [\\/]* | [A-Za-z]:[\\/]*) | |
5054 | re_direlt='/[^/][^/]*/\.\./' | |
5055 | # Canonicalize the path of ld | |
5056 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5057 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5058 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5059 | done | |
5060 | test -z "$LD" && LD="$ac_prog" | |
5061 | ;; | |
5062 | "") | |
5063 | # If it fails, then pretend we aren't using GCC. | |
5064 | ac_prog=ld | |
5065 | ;; | |
5066 | *) | |
5067 | # If it is relative, then search for the first ld in PATH. | |
5068 | with_gnu_ld=unknown | |
5069 | ;; | |
5070 | esac | |
5071 | elif test "$with_gnu_ld" = yes; then | |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5073 | $as_echo_n "checking for GNU ld... " >&6; } | |
5074 | else | |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5076 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5077 | fi | |
22e05272 | 5078 | if ${acl_cv_path_LD+:} false; then : |
84c1b9d3 MK |
5079 | $as_echo_n "(cached) " >&6 |
5080 | else | |
5081 | if test -z "$LD"; then | |
5082 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5083 | for ac_dir in $PATH; do | |
5084 | test -z "$ac_dir" && ac_dir=. | |
5085 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5086 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5087 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5088 | # but apparently some GNU ld's only accept -v. | |
5089 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5090 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5091 | test "$with_gnu_ld" != no && break | |
5092 | else | |
5093 | test "$with_gnu_ld" != yes && break | |
5094 | fi | |
5095 | fi | |
5096 | done | |
5097 | IFS="$ac_save_ifs" | |
5098 | else | |
5099 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5100 | fi | |
5101 | fi | |
5102 | ||
5103 | LD="$acl_cv_path_LD" | |
5104 | if test -n "$LD"; then | |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5106 | $as_echo "$LD" >&6; } | |
5107 | else | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5109 | $as_echo "no" >&6; } | |
5110 | fi | |
22e05272 | 5111 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
84c1b9d3 MK |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5113 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5114 | if ${acl_cv_prog_gnu_ld+:} false; then : |
84c1b9d3 MK |
5115 | $as_echo_n "(cached) " >&6 |
5116 | else | |
5117 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5118 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5119 | acl_cv_prog_gnu_ld=yes | |
5120 | else | |
5121 | acl_cv_prog_gnu_ld=no | |
5122 | fi | |
5123 | fi | |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
5125 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
5126 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5127 | ||
5128 | ||
5129 | ||
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
5131 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
22e05272 | 5132 | if ${acl_cv_rpath+:} false; then : |
84c1b9d3 MK |
5133 | $as_echo_n "(cached) " >&6 |
5134 | else | |
5135 | ||
5136 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5137 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5138 | . ./conftest.sh | |
5139 | rm -f ./conftest.sh | |
5140 | acl_cv_rpath=done | |
5141 | ||
5142 | fi | |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
5144 | $as_echo "$acl_cv_rpath" >&6; } | |
5145 | wl="$acl_cv_wl" | |
5146 | libext="$acl_cv_libext" | |
5147 | shlibext="$acl_cv_shlibext" | |
5148 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5149 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5150 | hardcode_direct="$acl_cv_hardcode_direct" | |
5151 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5152 | # Check whether --enable-rpath was given. | |
5153 | if test "${enable_rpath+set}" = set; then : | |
5154 | enableval=$enable_rpath; : | |
5155 | else | |
5156 | enable_rpath=yes | |
5157 | fi | |
5158 | ||
5159 | ||
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | use_additional=yes | |
5167 | ||
5168 | acl_save_prefix="$prefix" | |
5169 | prefix="$acl_final_prefix" | |
5170 | acl_save_exec_prefix="$exec_prefix" | |
5171 | exec_prefix="$acl_final_exec_prefix" | |
5172 | ||
5173 | eval additional_includedir=\"$includedir\" | |
5174 | eval additional_libdir=\"$libdir\" | |
5175 | ||
5176 | exec_prefix="$acl_save_exec_prefix" | |
5177 | prefix="$acl_save_prefix" | |
5178 | ||
5179 | ||
5180 | # Check whether --with-libiconv-prefix was given. | |
5181 | if test "${with_libiconv_prefix+set}" = set; then : | |
5182 | withval=$with_libiconv_prefix; | |
5183 | if test "X$withval" = "Xno"; then | |
5184 | use_additional=no | |
5185 | else | |
5186 | if test "X$withval" = "X"; then | |
5187 | ||
5188 | acl_save_prefix="$prefix" | |
5189 | prefix="$acl_final_prefix" | |
5190 | acl_save_exec_prefix="$exec_prefix" | |
5191 | exec_prefix="$acl_final_exec_prefix" | |
5192 | ||
5193 | eval additional_includedir=\"$includedir\" | |
5194 | eval additional_libdir=\"$libdir\" | |
5195 | ||
5196 | exec_prefix="$acl_save_exec_prefix" | |
5197 | prefix="$acl_save_prefix" | |
5198 | ||
5199 | else | |
5200 | additional_includedir="$withval/include" | |
5201 | additional_libdir="$withval/lib" | |
5202 | fi | |
5203 | fi | |
5204 | ||
5205 | fi | |
5206 | ||
20fa702b AB |
5207 | |
5208 | # Check whether --with-libiconv-type was given. | |
5209 | if test "${with_libiconv_type+set}" = set; then : | |
5210 | withval=$with_libiconv_type; with_libiconv_type=$withval | |
5211 | else | |
5212 | with_libiconv_type=auto | |
5213 | fi | |
5214 | ||
5215 | lib_type=`eval echo \$with_libiconv_type` | |
5216 | ||
84c1b9d3 MK |
5217 | LIBICONV= |
5218 | LTLIBICONV= | |
5219 | INCICONV= | |
5220 | rpathdirs= | |
5221 | ltrpathdirs= | |
5222 | names_already_handled= | |
5223 | names_next_round='iconv ' | |
5224 | while test -n "$names_next_round"; do | |
5225 | names_this_round="$names_next_round" | |
5226 | names_next_round= | |
5227 | for name in $names_this_round; do | |
5228 | already_handled= | |
5229 | for n in $names_already_handled; do | |
5230 | if test "$n" = "$name"; then | |
5231 | already_handled=yes | |
5232 | break | |
5233 | fi | |
5234 | done | |
5235 | if test -z "$already_handled"; then | |
5236 | names_already_handled="$names_already_handled $name" | |
5237 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5238 | eval value=\"\$HAVE_LIB$uppername\" | |
5239 | if test -n "$value"; then | |
5240 | if test "$value" = yes; then | |
5241 | eval value=\"\$LIB$uppername\" | |
5242 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
5243 | eval value=\"\$LTLIB$uppername\" | |
5244 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
5245 | else | |
5246 | : | |
5247 | fi | |
5248 | else | |
5249 | found_dir= | |
5250 | found_la= | |
5251 | found_so= | |
5252 | found_a= | |
5253 | if test $use_additional = yes; then | |
20fa702b | 5254 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
84c1b9d3 MK |
5255 | found_dir="$additional_libdir" |
5256 | found_so="$additional_libdir/lib$name.$shlibext" | |
5257 | if test -f "$additional_libdir/lib$name.la"; then | |
5258 | found_la="$additional_libdir/lib$name.la" | |
5259 | fi | |
20fa702b | 5260 | elif test x$lib_type != xshared; then |
84c1b9d3 MK |
5261 | if test -f "$additional_libdir/lib$name.$libext"; then |
5262 | found_dir="$additional_libdir" | |
5263 | found_a="$additional_libdir/lib$name.$libext" | |
5264 | if test -f "$additional_libdir/lib$name.la"; then | |
5265 | found_la="$additional_libdir/lib$name.la" | |
5266 | fi | |
5267 | fi | |
5268 | fi | |
5269 | fi | |
5270 | if test "X$found_dir" = "X"; then | |
5271 | for x in $LDFLAGS $LTLIBICONV; do | |
5272 | ||
5273 | acl_save_prefix="$prefix" | |
5274 | prefix="$acl_final_prefix" | |
5275 | acl_save_exec_prefix="$exec_prefix" | |
5276 | exec_prefix="$acl_final_exec_prefix" | |
5277 | eval x=\"$x\" | |
5278 | exec_prefix="$acl_save_exec_prefix" | |
5279 | prefix="$acl_save_prefix" | |
5280 | ||
5281 | case "$x" in | |
5282 | -L*) | |
5283 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
20fa702b | 5284 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
84c1b9d3 MK |
5285 | found_dir="$dir" |
5286 | found_so="$dir/lib$name.$shlibext" | |
5287 | if test -f "$dir/lib$name.la"; then | |
5288 | found_la="$dir/lib$name.la" | |
5289 | fi | |
20fa702b | 5290 | elif test x$lib_type != xshared; then |
84c1b9d3 MK |
5291 | if test -f "$dir/lib$name.$libext"; then |
5292 | found_dir="$dir" | |
5293 | found_a="$dir/lib$name.$libext" | |
5294 | if test -f "$dir/lib$name.la"; then | |
5295 | found_la="$dir/lib$name.la" | |
5296 | fi | |
5297 | fi | |
5298 | fi | |
5299 | ;; | |
5300 | esac | |
5301 | if test "X$found_dir" != "X"; then | |
5302 | break | |
5303 | fi | |
5304 | done | |
5305 | fi | |
5306 | if test "X$found_dir" != "X"; then | |
5307 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
5308 | if test "X$found_so" != "X"; then | |
5309 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
5310 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5311 | else | |
5312 | haveit= | |
5313 | for x in $ltrpathdirs; do | |
5314 | if test "X$x" = "X$found_dir"; then | |
5315 | haveit=yes | |
5316 | break | |
5317 | fi | |
5318 | done | |
5319 | if test -z "$haveit"; then | |
5320 | ltrpathdirs="$ltrpathdirs $found_dir" | |
5321 | fi | |
5322 | if test "$hardcode_direct" = yes; then | |
5323 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5324 | else | |
5325 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
5326 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5327 | haveit= | |
5328 | for x in $rpathdirs; do | |
5329 | if test "X$x" = "X$found_dir"; then | |
5330 | haveit=yes | |
5331 | break | |
5332 | fi | |
5333 | done | |
5334 | if test -z "$haveit"; then | |
5335 | rpathdirs="$rpathdirs $found_dir" | |
5336 | fi | |
5337 | else | |
5338 | haveit= | |
5339 | for x in $LDFLAGS $LIBICONV; do | |
5340 | ||
5341 | acl_save_prefix="$prefix" | |
5342 | prefix="$acl_final_prefix" | |
5343 | acl_save_exec_prefix="$exec_prefix" | |
5344 | exec_prefix="$acl_final_exec_prefix" | |
5345 | eval x=\"$x\" | |
5346 | exec_prefix="$acl_save_exec_prefix" | |
5347 | prefix="$acl_save_prefix" | |
5348 | ||
5349 | if test "X$x" = "X-L$found_dir"; then | |
5350 | haveit=yes | |
5351 | break | |
5352 | fi | |
5353 | done | |
5354 | if test -z "$haveit"; then | |
5355 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
5356 | fi | |
5357 | if test "$hardcode_minus_L" != no; then | |
5358 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5359 | else | |
5360 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5361 | fi | |
5362 | fi | |
5363 | fi | |
5364 | fi | |
5365 | else | |
5366 | if test "X$found_a" != "X"; then | |
5367 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
5368 | else | |
5369 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
5370 | fi | |
5371 | fi | |
5372 | additional_includedir= | |
5373 | case "$found_dir" in | |
5374 | */lib | */lib/) | |
5375 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
5376 | additional_includedir="$basedir/include" | |
5377 | ;; | |
5378 | esac | |
5379 | if test "X$additional_includedir" != "X"; then | |
5380 | if test "X$additional_includedir" != "X/usr/include"; then | |
5381 | haveit= | |
5382 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
5383 | if test -n "$GCC"; then | |
5384 | case $host_os in | |
5385 | linux*) haveit=yes;; | |
5386 | esac | |
5387 | fi | |
5388 | fi | |
5389 | if test -z "$haveit"; then | |
5390 | for x in $CPPFLAGS $INCICONV; do | |
5391 | ||
5392 | acl_save_prefix="$prefix" | |
5393 | prefix="$acl_final_prefix" | |
5394 | acl_save_exec_prefix="$exec_prefix" | |
5395 | exec_prefix="$acl_final_exec_prefix" | |
5396 | eval x=\"$x\" | |
5397 | exec_prefix="$acl_save_exec_prefix" | |
5398 | prefix="$acl_save_prefix" | |
5399 | ||
5400 | if test "X$x" = "X-I$additional_includedir"; then | |
5401 | haveit=yes | |
5402 | break | |
5403 | fi | |
5404 | done | |
5405 | if test -z "$haveit"; then | |
5406 | if test -d "$additional_includedir"; then | |
5407 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
5408 | fi | |
5409 | fi | |
5410 | fi | |
5411 | fi | |
5412 | fi | |
5413 | if test -n "$found_la"; then | |
5414 | save_libdir="$libdir" | |
5415 | case "$found_la" in | |
5416 | */* | *\\*) . "$found_la" ;; | |
5417 | *) . "./$found_la" ;; | |
5418 | esac | |
5419 | libdir="$save_libdir" | |
5420 | for dep in $dependency_libs; do | |
5421 | case "$dep" in | |
5422 | -L*) | |
5423 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
5424 | if test "X$additional_libdir" != "X/usr/lib"; then | |
5425 | haveit= | |
5426 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
5427 | if test -n "$GCC"; then | |
5428 | case $host_os in | |
5429 | linux*) haveit=yes;; | |
5430 | esac | |
5431 | fi | |
5432 | fi | |
5433 | if test -z "$haveit"; then | |
5434 | haveit= | |
5435 | for x in $LDFLAGS $LIBICONV; do | |
5436 | ||
5437 | acl_save_prefix="$prefix" | |
5438 | prefix="$acl_final_prefix" | |
5439 | acl_save_exec_prefix="$exec_prefix" | |
5440 | exec_prefix="$acl_final_exec_prefix" | |
5441 | eval x=\"$x\" | |
5442 | exec_prefix="$acl_save_exec_prefix" | |
5443 | prefix="$acl_save_prefix" | |
5444 | ||
5445 | if test "X$x" = "X-L$additional_libdir"; then | |
5446 | haveit=yes | |
5447 | break | |
5448 | fi | |
5449 | done | |
5450 | if test -z "$haveit"; then | |
5451 | if test -d "$additional_libdir"; then | |
5452 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
5453 | fi | |
5454 | fi | |
5455 | haveit= | |
5456 | for x in $LDFLAGS $LTLIBICONV; do | |
5457 | ||
5458 | acl_save_prefix="$prefix" | |
5459 | prefix="$acl_final_prefix" | |
5460 | acl_save_exec_prefix="$exec_prefix" | |
5461 | exec_prefix="$acl_final_exec_prefix" | |
5462 | eval x=\"$x\" | |
5463 | exec_prefix="$acl_save_exec_prefix" | |
5464 | prefix="$acl_save_prefix" | |
5465 | ||
5466 | if test "X$x" = "X-L$additional_libdir"; then | |
5467 | haveit=yes | |
5468 | break | |
5469 | fi | |
5470 | done | |
5471 | if test -z "$haveit"; then | |
5472 | if test -d "$additional_libdir"; then | |
5473 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
5474 | fi | |
5475 | fi | |
5476 | fi | |
5477 | fi | |
5478 | ;; | |
5479 | -R*) | |
5480 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
5481 | if test "$enable_rpath" != no; then | |
5482 | haveit= | |
5483 | for x in $rpathdirs; do | |
5484 | if test "X$x" = "X$dir"; then | |
5485 | haveit=yes | |
5486 | break | |
5487 | fi | |
5488 | done | |
5489 | if test -z "$haveit"; then | |
5490 | rpathdirs="$rpathdirs $dir" | |
5491 | fi | |
5492 | haveit= | |
5493 | for x in $ltrpathdirs; do | |
5494 | if test "X$x" = "X$dir"; then | |
5495 | haveit=yes | |
5496 | break | |
5497 | fi | |
5498 | done | |
5499 | if test -z "$haveit"; then | |
5500 | ltrpathdirs="$ltrpathdirs $dir" | |
5501 | fi | |
5502 | fi | |
5503 | ;; | |
5504 | -l*) | |
5505 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
5506 | ;; | |
5507 | *.la) | |
5508 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
5509 | ;; | |
5510 | *) | |
5511 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
5512 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
5513 | ;; | |
5514 | esac | |
5515 | done | |
5516 | fi | |
5517 | else | |
20fa702b AB |
5518 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then |
5519 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5520 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
5521 | else | |
5522 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" | |
5523 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" | |
5524 | fi | |
84c1b9d3 MK |
5525 | fi |
5526 | fi | |
5527 | fi | |
5528 | done | |
5529 | done | |
5530 | if test "X$rpathdirs" != "X"; then | |
5531 | if test -n "$hardcode_libdir_separator"; then | |
5532 | alldirs= | |
5533 | for found_dir in $rpathdirs; do | |
5534 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
5535 | done | |
5536 | acl_save_libdir="$libdir" | |
5537 | libdir="$alldirs" | |
5538 | eval flag=\"$hardcode_libdir_flag_spec\" | |
5539 | libdir="$acl_save_libdir" | |
5540 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5541 | else | |
5542 | for found_dir in $rpathdirs; do | |
5543 | acl_save_libdir="$libdir" | |
5544 | libdir="$found_dir" | |
5545 | eval flag=\"$hardcode_libdir_flag_spec\" | |
5546 | libdir="$acl_save_libdir" | |
5547 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5548 | done | |
5549 | fi | |
5550 | fi | |
5551 | if test "X$ltrpathdirs" != "X"; then | |
5552 | for found_dir in $ltrpathdirs; do | |
5553 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
5554 | done | |
5555 | fi | |
5556 | ||
5557 | ||
5558 | ||
79035f0d | 5559 | |
5213506e | 5560 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
6eb95e99 | 5561 | stdlib.h string.h unistd.h sys/param.h |
5213506e RW |
5562 | do : |
5563 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5564 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 5565 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
79035f0d | 5566 | cat >>confdefs.h <<_ACEOF |
5213506e | 5567 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
79035f0d NN |
5568 | _ACEOF |
5569 | ||
6eb95e99 | 5570 | fi |
79035f0d | 5571 | |
6eb95e99 ZW |
5572 | done |
5573 | ||
5213506e | 5574 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
6eb95e99 ZW |
5575 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
5576 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
5577 | __fsetlocking | |
5213506e RW |
5578 | do : |
5579 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5580 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 5581 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
79035f0d | 5582 | cat >>confdefs.h <<_ACEOF |
5213506e | 5583 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
79035f0d | 5584 | _ACEOF |
6eb95e99 ZW |
5585 | |
5586 | fi | |
5587 | done | |
5588 | ||
5589 | ||
79035f0d NN |
5590 | |
5591 | ||
5592 | ||
6eb95e99 ZW |
5593 | |
5594 | ||
5213506e RW |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
5596 | $as_echo_n "checking for iconv... " >&6; } | |
22e05272 | 5597 | if ${am_cv_func_iconv+:} false; then : |
5213506e | 5598 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5599 | else |
79035f0d | 5600 | |
6eb95e99 ZW |
5601 | am_cv_func_iconv="no, consider installing GNU libiconv" |
5602 | am_cv_lib_iconv=no | |
84c1b9d3 MK |
5603 | am_save_CPPFLAGS="$CPPFLAGS" |
5604 | CPPFLAGS="$CPPFLAGS $INCICONV" | |
5213506e | 5605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5606 | /* end confdefs.h. */ |
6eb95e99 ZW |
5607 | #include <stdlib.h> |
5608 | #include <iconv.h> | |
79035f0d NN |
5609 | int |
5610 | main () | |
5611 | { | |
6eb95e99 | 5612 | iconv_t cd = iconv_open("",""); |
84c1b9d3 MK |
5613 | iconv(cd,NULL,NULL,NULL,NULL); |
5614 | iconv_close(cd); | |
79035f0d NN |
5615 | ; |
5616 | return 0; | |
5617 | } | |
5618 | _ACEOF | |
5213506e | 5619 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 | 5620 | am_cv_func_iconv=yes |
6eb95e99 | 5621 | fi |
5213506e RW |
5622 | rm -f core conftest.err conftest.$ac_objext \ |
5623 | conftest$ac_exeext conftest.$ac_ext | |
84c1b9d3 | 5624 | CPPFLAGS="$am_save_CPPFLAGS" |
bf5372e7 | 5625 | |
bf5372e7 | 5626 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then |
84c1b9d3 | 5627 | for _libs in .libs _libs; do |
bf5372e7 | 5628 | am_save_CPPFLAGS="$CPPFLAGS" |
84c1b9d3 MK |
5629 | am_save_LIBS="$LIBS" |
5630 | CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
5631 | LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
bf5372e7 YS |
5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5633 | /* end confdefs.h. */ | |
5634 | #include <stdlib.h> | |
5635 | #include <iconv.h> | |
5636 | int | |
5637 | main () | |
5638 | { | |
5639 | iconv_t cd = iconv_open("",""); | |
5640 | iconv(cd,NULL,NULL,NULL,NULL); | |
5641 | iconv_close(cd); | |
5642 | ; | |
5643 | return 0; | |
5644 | } | |
5645 | _ACEOF | |
5646 | if ac_fn_c_try_link "$LINENO"; then : | |
84c1b9d3 MK |
5647 | INCICONV="-I../libiconv/include" |
5648 | LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
5649 | LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
bf5372e7 YS |
5650 | am_cv_lib_iconv=yes |
5651 | am_cv_func_iconv=yes | |
5652 | fi | |
5653 | rm -f core conftest.err conftest.$ac_objext \ | |
5654 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 5655 | CPPFLAGS="$am_save_CPPFLAGS" |
84c1b9d3 MK |
5656 | LIBS="$am_save_LIBS" |
5657 | if test "$am_cv_func_iconv" = "yes"; then | |
bf5372e7 YS |
5658 | break |
5659 | fi | |
5660 | done | |
5661 | fi | |
5662 | ||
6eb95e99 | 5663 | if test "$am_cv_func_iconv" != yes; then |
bf5372e7 | 5664 | am_save_CPPFLAGS="$CPPFLAGS" |
6eb95e99 | 5665 | am_save_LIBS="$LIBS" |
e9f3803d | 5666 | CPPFLAGS="$CPPFLAGS $INCICONV" |
84c1b9d3 | 5667 | LIBS="$LIBS $LIBICONV" |
5213506e | 5668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5669 | /* end confdefs.h. */ |
6eb95e99 ZW |
5670 | #include <stdlib.h> |
5671 | #include <iconv.h> | |
79035f0d NN |
5672 | int |
5673 | main () | |
5674 | { | |
6eb95e99 ZW |
5675 | iconv_t cd = iconv_open("",""); |
5676 | iconv(cd,NULL,NULL,NULL,NULL); | |
5677 | iconv_close(cd); | |
79035f0d NN |
5678 | ; |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
5213506e | 5682 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5683 | am_cv_lib_iconv=yes |
5684 | am_cv_func_iconv=yes | |
6eb95e99 | 5685 | fi |
5213506e RW |
5686 | rm -f core conftest.err conftest.$ac_objext \ |
5687 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 5688 | CPPFLAGS="$am_save_CPPFLAGS" |
84c1b9d3 | 5689 | LIBS="$am_save_LIBS" |
6eb95e99 | 5690 | fi |
6eb95e99 | 5691 | |
79035f0d | 5692 | fi |
5213506e RW |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
5694 | $as_echo "$am_cv_func_iconv" >&6; } | |
84c1b9d3 MK |
5695 | if test "$am_cv_func_iconv" = yes; then |
5696 | ||
5697 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
79035f0d | 5698 | |
84c1b9d3 | 5699 | fi |
6eb95e99 | 5700 | if test "$am_cv_lib_iconv" = yes; then |
84c1b9d3 MK |
5701 | |
5702 | for element in $INCICONV; do | |
5703 | haveit= | |
5704 | for x in $CPPFLAGS; do | |
5705 | ||
5706 | acl_save_prefix="$prefix" | |
5707 | prefix="$acl_final_prefix" | |
5708 | acl_save_exec_prefix="$exec_prefix" | |
5709 | exec_prefix="$acl_final_exec_prefix" | |
5710 | eval x=\"$x\" | |
5711 | exec_prefix="$acl_save_exec_prefix" | |
5712 | prefix="$acl_save_prefix" | |
5713 | ||
5714 | if test "X$x" = "X$element"; then | |
5715 | haveit=yes | |
5716 | break | |
5717 | fi | |
5718 | done | |
5719 | if test -z "$haveit"; then | |
5720 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
5721 | fi | |
5722 | done | |
5723 | ||
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
5725 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
5727 | $as_echo "$LIBICONV" >&6; } | |
6eb95e99 | 5728 | else |
84c1b9d3 MK |
5729 | LIBICONV= |
5730 | LTLIBICONV= | |
6eb95e99 | 5731 | fi |
79035f0d NN |
5732 | |
5733 | ||
6eb95e99 | 5734 | |
84c1b9d3 | 5735 | if test "$am_cv_func_iconv" = yes; then |
5213506e RW |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
5737 | $as_echo_n "checking for iconv declaration... " >&6; } | |
22e05272 | 5738 | if ${am_cv_proto_iconv+:} false; then : |
5213506e | 5739 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5740 | else |
79035f0d | 5741 | |
5213506e | 5742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5743 | /* end confdefs.h. */ |
6eb95e99 ZW |
5744 | |
5745 | #include <stdlib.h> | |
5746 | #include <iconv.h> | |
5747 | extern | |
5748 | #ifdef __cplusplus | |
5749 | "C" | |
5750 | #endif | |
5751 | #if defined(__STDC__) || defined(__cplusplus) | |
5752 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
5753 | #else | |
5754 | size_t iconv(); | |
5755 | #endif | |
5756 | ||
79035f0d NN |
5757 | int |
5758 | main () | |
5759 | { | |
6eb95e99 | 5760 | |
79035f0d NN |
5761 | ; |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
5213506e | 5765 | if ac_fn_c_try_compile "$LINENO"; then : |
6eb95e99 ZW |
5766 | am_cv_proto_iconv_arg1="" |
5767 | else | |
5213506e | 5768 | am_cv_proto_iconv_arg1="const" |
6eb95e99 | 5769 | fi |
5213506e | 5770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6eb95e99 ZW |
5771 | 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);" |
5772 | fi | |
5773 | ||
5774 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
5213506e | 5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
79035f0d | 5776 | }$am_cv_proto_iconv" >&5 |
5213506e RW |
5777 | $as_echo "${ac_t:- |
5778 | }$am_cv_proto_iconv" >&6; } | |
79035f0d NN |
5779 | |
5780 | cat >>confdefs.h <<_ACEOF | |
6eb95e99 | 5781 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
79035f0d | 5782 | _ACEOF |
6eb95e99 ZW |
5783 | |
5784 | fi | |
5785 | ||
79035f0d | 5786 | |
5213506e RW |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
5788 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
22e05272 | 5789 | if ${am_cv_langinfo_codeset+:} false; then : |
5213506e | 5790 | $as_echo_n "(cached) " >&6 |
6eb95e99 | 5791 | else |
5213506e | 5792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5793 | /* end confdefs.h. */ |
6eb95e99 | 5794 | #include <langinfo.h> |
79035f0d NN |
5795 | int |
5796 | main () | |
5797 | { | |
6eb95e99 | 5798 | char* cs = nl_langinfo(CODESET); |
79035f0d NN |
5799 | ; |
5800 | return 0; | |
5801 | } | |
5802 | _ACEOF | |
5213506e | 5803 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5804 | am_cv_langinfo_codeset=yes |
5805 | else | |
5213506e | 5806 | am_cv_langinfo_codeset=no |
6eb95e99 | 5807 | fi |
5213506e RW |
5808 | rm -f core conftest.err conftest.$ac_objext \ |
5809 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 5810 | |
79035f0d | 5811 | fi |
5213506e RW |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
5813 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
56694dd9 | 5814 | if test $am_cv_langinfo_codeset = yes; then |
79035f0d | 5815 | |
5213506e | 5816 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
6eb95e99 ZW |
5817 | |
5818 | fi | |
5819 | ||
5820 | if test $ac_cv_header_locale_h = yes; then | |
79035f0d | 5821 | |
5213506e RW |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
5823 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
22e05272 | 5824 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
5213506e | 5825 | $as_echo_n "(cached) " >&6 |
79035f0d | 5826 | else |
5213506e | 5827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5828 | /* end confdefs.h. */ |
6eb95e99 | 5829 | #include <locale.h> |
79035f0d NN |
5830 | int |
5831 | main () | |
5832 | { | |
6eb95e99 | 5833 | return LC_MESSAGES |
79035f0d NN |
5834 | ; |
5835 | return 0; | |
5836 | } | |
5837 | _ACEOF | |
5213506e | 5838 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
5839 | am_cv_val_LC_MESSAGES=yes |
5840 | else | |
5213506e | 5841 | am_cv_val_LC_MESSAGES=no |
6eb95e99 | 5842 | fi |
5213506e RW |
5843 | rm -f core conftest.err conftest.$ac_objext \ |
5844 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 5845 | fi |
5213506e RW |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
5847 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
56694dd9 | 5848 | if test $am_cv_val_LC_MESSAGES = yes; then |
79035f0d | 5849 | |
5213506e | 5850 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
6eb95e99 ZW |
5851 | |
5852 | fi | |
5853 | ||
5854 | fi | |
5855 | ||
5856 | for ac_prog in bison | |
5857 | do | |
79035f0d | 5858 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6eb95e99 | 5859 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5861 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5862 | if ${ac_cv_prog_INTLBISON+:} false; then : |
5213506e | 5863 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
5864 | else |
5865 | if test -n "$INTLBISON"; then | |
5866 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
5867 | else | |
79035f0d NN |
5868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5869 | for as_dir in $PATH | |
5870 | do | |
5871 | IFS=$as_save_IFS | |
5872 | test -z "$as_dir" && as_dir=. | |
5213506e | 5873 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
79035f0d | 5875 | ac_cv_prog_INTLBISON="$ac_prog" |
5213506e | 5876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
79035f0d NN |
5877 | break 2 |
5878 | fi | |
5879 | done | |
5213506e RW |
5880 | done |
5881 | IFS=$as_save_IFS | |
79035f0d | 5882 | |
6eb95e99 ZW |
5883 | fi |
5884 | fi | |
79035f0d | 5885 | INTLBISON=$ac_cv_prog_INTLBISON |
6eb95e99 | 5886 | if test -n "$INTLBISON"; then |
5213506e RW |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
5888 | $as_echo "$INTLBISON" >&6; } | |
6eb95e99 | 5889 | else |
5213506e RW |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5891 | $as_echo "no" >&6; } | |
6eb95e99 ZW |
5892 | fi |
5893 | ||
5213506e | 5894 | |
79035f0d | 5895 | test -n "$INTLBISON" && break |
6eb95e99 ZW |
5896 | done |
5897 | ||
5898 | if test -z "$INTLBISON"; then | |
5899 | ac_verc_fail=yes | |
5900 | else | |
5213506e RW |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
5902 | $as_echo_n "checking version of bison... " >&6; } | |
6eb95e99 ZW |
5903 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
5904 | case $ac_prog_version in | |
5905 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5906 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
5907 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5908 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5909 | esac | |
5213506e RW |
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5911 | $as_echo "$ac_prog_version" >&6; } | |
6eb95e99 ZW |
5912 | fi |
5913 | if test $ac_verc_fail = yes; then | |
5914 | INTLBISON=: | |
5915 | fi | |
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
79035f0d NN |
5922 | |
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | ||
5930 | ||
5931 | ||
5213506e RW |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5933 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
5934 | # Check whether --enable-nls was given. | |
5935 | if test "${enable_nls+set}" = set; then : | |
5936 | enableval=$enable_nls; USE_NLS=$enableval | |
6eb95e99 ZW |
5937 | else |
5938 | USE_NLS=yes | |
5213506e RW |
5939 | fi |
5940 | ||
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
5942 | $as_echo "$USE_NLS" >&6; } | |
79035f0d | 5943 | |
6eb95e99 ZW |
5944 | |
5945 | ||
5946 | ||
5947 | BUILD_INCLUDED_LIBINTL=no | |
5948 | USE_INCLUDED_LIBINTL=no | |
79035f0d | 5949 | |
6eb95e99 ZW |
5950 | LIBINTL= |
5951 | LTLIBINTL= | |
5952 | POSUB= | |
5953 | ||
5954 | if test "$USE_NLS" = "yes"; then | |
5955 | gt_use_preinstalled_gnugettext=no | |
79035f0d | 5956 | |
5213506e RW |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
5958 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
79035f0d | 5959 | |
5213506e RW |
5960 | # Check whether --with-included-gettext was given. |
5961 | if test "${with_included_gettext+set}" = set; then : | |
5962 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
6eb95e99 ZW |
5963 | else |
5964 | nls_cv_force_use_gnu_gettext=no | |
5213506e RW |
5965 | fi |
5966 | ||
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 | |
5968 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
6eb95e99 ZW |
5969 | |
5970 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
5971 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
79035f0d NN |
5972 | |
5973 | ||
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5213506e RW |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
5979 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
22e05272 | 5980 | if ${gt_cv_func_gnugettext2_libc+:} false; then : |
5213506e | 5981 | $as_echo_n "(cached) " >&6 |
79035f0d | 5982 | else |
5213506e | 5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 5984 | /* end confdefs.h. */ |
6eb95e99 ZW |
5985 | #include <libintl.h> |
5986 | extern int _nl_msg_cat_cntr; | |
5987 | extern int *_nl_domain_bindings; | |
79035f0d NN |
5988 | int |
5989 | main () | |
5990 | { | |
6eb95e99 | 5991 | bindtextdomain ("", ""); |
2d041117 | 5992 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings |
79035f0d NN |
5993 | ; |
5994 | return 0; | |
5995 | } | |
5996 | _ACEOF | |
5213506e | 5997 | if ac_fn_c_try_link "$LINENO"; then : |
2d041117 | 5998 | gt_cv_func_gnugettext2_libc=yes |
6eb95e99 | 5999 | else |
2d041117 | 6000 | gt_cv_func_gnugettext2_libc=no |
6eb95e99 | 6001 | fi |
5213506e RW |
6002 | rm -f core conftest.err conftest.$ac_objext \ |
6003 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 | 6004 | fi |
2d041117 AM |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 |
6006 | $as_echo "$gt_cv_func_gnugettext2_libc" >&6; } | |
6eb95e99 | 6007 | |
2d041117 | 6008 | if test "$gt_cv_func_gnugettext2_libc" != "yes"; then |
79035f0d NN |
6009 | |
6010 | ||
6011 | ||
6eb95e99 | 6012 | use_additional=yes |
79035f0d | 6013 | |
6eb95e99 ZW |
6014 | acl_save_prefix="$prefix" |
6015 | prefix="$acl_final_prefix" | |
6016 | acl_save_exec_prefix="$exec_prefix" | |
6017 | exec_prefix="$acl_final_exec_prefix" | |
79035f0d | 6018 | |
6eb95e99 ZW |
6019 | eval additional_includedir=\"$includedir\" |
6020 | eval additional_libdir=\"$libdir\" | |
79035f0d | 6021 | |
6eb95e99 ZW |
6022 | exec_prefix="$acl_save_exec_prefix" |
6023 | prefix="$acl_save_prefix" | |
6024 | ||
79035f0d | 6025 | |
5213506e RW |
6026 | # Check whether --with-libintl-prefix was given. |
6027 | if test "${with_libintl_prefix+set}" = set; then : | |
6028 | withval=$with_libintl_prefix; | |
6eb95e99 ZW |
6029 | if test "X$withval" = "Xno"; then |
6030 | use_additional=no | |
6031 | else | |
6032 | if test "X$withval" = "X"; then | |
79035f0d | 6033 | |
6eb95e99 ZW |
6034 | acl_save_prefix="$prefix" |
6035 | prefix="$acl_final_prefix" | |
6036 | acl_save_exec_prefix="$exec_prefix" | |
6037 | exec_prefix="$acl_final_exec_prefix" | |
79035f0d | 6038 | |
6eb95e99 ZW |
6039 | eval additional_includedir=\"$includedir\" |
6040 | eval additional_libdir=\"$libdir\" | |
79035f0d | 6041 | |
6eb95e99 ZW |
6042 | exec_prefix="$acl_save_exec_prefix" |
6043 | prefix="$acl_save_prefix" | |
6044 | ||
6045 | else | |
6046 | additional_includedir="$withval/include" | |
6047 | additional_libdir="$withval/lib" | |
6048 | fi | |
6049 | fi | |
6050 | ||
5213506e RW |
6051 | fi |
6052 | ||
20fa702b AB |
6053 | |
6054 | # Check whether --with-libintl-type was given. | |
6055 | if test "${with_libintl_type+set}" = set; then : | |
6056 | withval=$with_libintl_type; with_libintl_type=$withval | |
6057 | else | |
6058 | with_libintl_type=auto | |
6059 | fi | |
6060 | ||
6061 | lib_type=`eval echo \$with_libintl_type` | |
6062 | ||
6eb95e99 ZW |
6063 | LIBINTL= |
6064 | LTLIBINTL= | |
6065 | INCINTL= | |
6066 | rpathdirs= | |
6067 | ltrpathdirs= | |
6068 | names_already_handled= | |
6069 | names_next_round='intl ' | |
6070 | while test -n "$names_next_round"; do | |
6071 | names_this_round="$names_next_round" | |
6072 | names_next_round= | |
6073 | for name in $names_this_round; do | |
6074 | already_handled= | |
6075 | for n in $names_already_handled; do | |
6076 | if test "$n" = "$name"; then | |
6077 | already_handled=yes | |
6078 | break | |
6079 | fi | |
6080 | done | |
6081 | if test -z "$already_handled"; then | |
6082 | names_already_handled="$names_already_handled $name" | |
6083 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6084 | eval value=\"\$HAVE_LIB$uppername\" | |
6085 | if test -n "$value"; then | |
6086 | if test "$value" = yes; then | |
6087 | eval value=\"\$LIB$uppername\" | |
6088 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
6089 | eval value=\"\$LTLIB$uppername\" | |
6090 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
6091 | else | |
6092 | : | |
6093 | fi | |
6094 | else | |
6095 | found_dir= | |
6096 | found_la= | |
6097 | found_so= | |
6098 | found_a= | |
6099 | if test $use_additional = yes; then | |
20fa702b | 6100 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
6eb95e99 ZW |
6101 | found_dir="$additional_libdir" |
6102 | found_so="$additional_libdir/lib$name.$shlibext" | |
6103 | if test -f "$additional_libdir/lib$name.la"; then | |
6104 | found_la="$additional_libdir/lib$name.la" | |
6105 | fi | |
20fa702b | 6106 | elif test x$lib_type != xshared; then |
6eb95e99 ZW |
6107 | if test -f "$additional_libdir/lib$name.$libext"; then |
6108 | found_dir="$additional_libdir" | |
6109 | found_a="$additional_libdir/lib$name.$libext" | |
6110 | if test -f "$additional_libdir/lib$name.la"; then | |
6111 | found_la="$additional_libdir/lib$name.la" | |
6112 | fi | |
6113 | fi | |
6114 | fi | |
6115 | fi | |
6116 | if test "X$found_dir" = "X"; then | |
6117 | for x in $LDFLAGS $LTLIBINTL; do | |
79035f0d | 6118 | |
6eb95e99 ZW |
6119 | acl_save_prefix="$prefix" |
6120 | prefix="$acl_final_prefix" | |
6121 | acl_save_exec_prefix="$exec_prefix" | |
6122 | exec_prefix="$acl_final_exec_prefix" | |
6123 | eval x=\"$x\" | |
6124 | exec_prefix="$acl_save_exec_prefix" | |
6125 | prefix="$acl_save_prefix" | |
6126 | ||
6127 | case "$x" in | |
6128 | -L*) | |
6129 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
20fa702b | 6130 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
6eb95e99 ZW |
6131 | found_dir="$dir" |
6132 | found_so="$dir/lib$name.$shlibext" | |
6133 | if test -f "$dir/lib$name.la"; then | |
6134 | found_la="$dir/lib$name.la" | |
6135 | fi | |
20fa702b | 6136 | elif test x$lib_type != xshared; then |
6eb95e99 ZW |
6137 | if test -f "$dir/lib$name.$libext"; then |
6138 | found_dir="$dir" | |
6139 | found_a="$dir/lib$name.$libext" | |
6140 | if test -f "$dir/lib$name.la"; then | |
6141 | found_la="$dir/lib$name.la" | |
6142 | fi | |
6143 | fi | |
6144 | fi | |
6145 | ;; | |
6146 | esac | |
6147 | if test "X$found_dir" != "X"; then | |
6148 | break | |
6149 | fi | |
6150 | done | |
6151 | fi | |
6152 | if test "X$found_dir" != "X"; then | |
6153 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
6154 | if test "X$found_so" != "X"; then | |
6155 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6156 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6157 | else | |
6158 | haveit= | |
6159 | for x in $ltrpathdirs; do | |
6160 | if test "X$x" = "X$found_dir"; then | |
6161 | haveit=yes | |
6162 | break | |
6163 | fi | |
6164 | done | |
6165 | if test -z "$haveit"; then | |
6166 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6167 | fi | |
6168 | if test "$hardcode_direct" = yes; then | |
6169 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6170 | else | |
6171 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6172 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6173 | haveit= | |
6174 | for x in $rpathdirs; do | |
6175 | if test "X$x" = "X$found_dir"; then | |
6176 | haveit=yes | |
6177 | break | |
6178 | fi | |
6179 | done | |
6180 | if test -z "$haveit"; then | |
6181 | rpathdirs="$rpathdirs $found_dir" | |
6182 | fi | |
6183 | else | |
6184 | haveit= | |
6185 | for x in $LDFLAGS $LIBINTL; do | |
79035f0d | 6186 | |
6eb95e99 ZW |
6187 | acl_save_prefix="$prefix" |
6188 | prefix="$acl_final_prefix" | |
6189 | acl_save_exec_prefix="$exec_prefix" | |
6190 | exec_prefix="$acl_final_exec_prefix" | |
6191 | eval x=\"$x\" | |
6192 | exec_prefix="$acl_save_exec_prefix" | |
6193 | prefix="$acl_save_prefix" | |
6194 | ||
6195 | if test "X$x" = "X-L$found_dir"; then | |
6196 | haveit=yes | |
6197 | break | |
6198 | fi | |
6199 | done | |
6200 | if test -z "$haveit"; then | |
6201 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
6202 | fi | |
6203 | if test "$hardcode_minus_L" != no; then | |
6204 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
6205 | else | |
6206 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
6207 | fi | |
6208 | fi | |
6209 | fi | |
6210 | fi | |
6211 | else | |
6212 | if test "X$found_a" != "X"; then | |
6213 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
6214 | else | |
6215 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
6216 | fi | |
6217 | fi | |
6218 | additional_includedir= | |
6219 | case "$found_dir" in | |
6220 | */lib | */lib/) | |
6221 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6222 | additional_includedir="$basedir/include" | |
6223 | ;; | |
6224 | esac | |
6225 | if test "X$additional_includedir" != "X"; then | |
6226 | if test "X$additional_includedir" != "X/usr/include"; then | |
6227 | haveit= | |
6228 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6229 | if test -n "$GCC"; then | |
6230 | case $host_os in | |
6231 | linux*) haveit=yes;; | |
6232 | esac | |
6233 | fi | |
6234 | fi | |
6235 | if test -z "$haveit"; then | |
6236 | for x in $CPPFLAGS $INCINTL; do | |
79035f0d | 6237 | |
6eb95e99 ZW |
6238 | acl_save_prefix="$prefix" |
6239 | prefix="$acl_final_prefix" | |
6240 | acl_save_exec_prefix="$exec_prefix" | |
6241 | exec_prefix="$acl_final_exec_prefix" | |
6242 | eval x=\"$x\" | |
6243 | exec_prefix="$acl_save_exec_prefix" | |
6244 | prefix="$acl_save_prefix" | |
6245 | ||
6246 | if test "X$x" = "X-I$additional_includedir"; then | |
6247 | haveit=yes | |
6248 | break | |
6249 | fi | |
6250 | done | |
6251 | if test -z "$haveit"; then | |
6252 | if test -d "$additional_includedir"; then | |
6253 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
6254 | fi | |
6255 | fi | |
6256 | fi | |
6257 | fi | |
6258 | fi | |
6259 | if test -n "$found_la"; then | |
6260 | save_libdir="$libdir" | |
6261 | case "$found_la" in | |
6262 | */* | *\\*) . "$found_la" ;; | |
6263 | *) . "./$found_la" ;; | |
6264 | esac | |
6265 | libdir="$save_libdir" | |
6266 | for dep in $dependency_libs; do | |
6267 | case "$dep" in | |
6268 | -L*) | |
6269 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6270 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6271 | haveit= | |
6272 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6273 | if test -n "$GCC"; then | |
6274 | case $host_os in | |
6275 | linux*) haveit=yes;; | |
6276 | esac | |
6277 | fi | |
6278 | fi | |
6279 | if test -z "$haveit"; then | |
6280 | haveit= | |
6281 | for x in $LDFLAGS $LIBINTL; do | |
79035f0d | 6282 | |
6eb95e99 ZW |
6283 | acl_save_prefix="$prefix" |
6284 | prefix="$acl_final_prefix" | |
6285 | acl_save_exec_prefix="$exec_prefix" | |
6286 | exec_prefix="$acl_final_exec_prefix" | |
6287 | eval x=\"$x\" | |
6288 | exec_prefix="$acl_save_exec_prefix" | |
6289 | prefix="$acl_save_prefix" | |
6290 | ||
6291 | if test "X$x" = "X-L$additional_libdir"; then | |
6292 | haveit=yes | |
6293 | break | |
6294 | fi | |
6295 | done | |
6296 | if test -z "$haveit"; then | |
6297 | if test -d "$additional_libdir"; then | |
6298 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
6299 | fi | |
6300 | fi | |
6301 | haveit= | |
6302 | for x in $LDFLAGS $LTLIBINTL; do | |
79035f0d | 6303 | |
6eb95e99 ZW |
6304 | acl_save_prefix="$prefix" |
6305 | prefix="$acl_final_prefix" | |
6306 | acl_save_exec_prefix="$exec_prefix" | |
6307 | exec_prefix="$acl_final_exec_prefix" | |
6308 | eval x=\"$x\" | |
6309 | exec_prefix="$acl_save_exec_prefix" | |
6310 | prefix="$acl_save_prefix" | |
6311 | ||
6312 | if test "X$x" = "X-L$additional_libdir"; then | |
6313 | haveit=yes | |
6314 | break | |
6315 | fi | |
6316 | done | |
6317 | if test -z "$haveit"; then | |
6318 | if test -d "$additional_libdir"; then | |
6319 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
6320 | fi | |
6321 | fi | |
6322 | fi | |
6323 | fi | |
6324 | ;; | |
6325 | -R*) | |
6326 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6327 | if test "$enable_rpath" != no; then | |
6328 | haveit= | |
6329 | for x in $rpathdirs; do | |
6330 | if test "X$x" = "X$dir"; then | |
6331 | haveit=yes | |
6332 | break | |
6333 | fi | |
6334 | done | |
6335 | if test -z "$haveit"; then | |
6336 | rpathdirs="$rpathdirs $dir" | |
6337 | fi | |
6338 | haveit= | |
6339 | for x in $ltrpathdirs; do | |
6340 | if test "X$x" = "X$dir"; then | |
6341 | haveit=yes | |
6342 | break | |
6343 | fi | |
6344 | done | |
6345 | if test -z "$haveit"; then | |
6346 | ltrpathdirs="$ltrpathdirs $dir" | |
6347 | fi | |
6348 | fi | |
6349 | ;; | |
6350 | -l*) | |
6351 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6352 | ;; | |
6353 | *.la) | |
6354 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6355 | ;; | |
6356 | *) | |
6357 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
6358 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
6359 | ;; | |
6360 | esac | |
6361 | done | |
6362 | fi | |
6363 | else | |
20fa702b AB |
6364 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then |
6365 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
6366 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
6367 | else | |
6368 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" | |
6369 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" | |
6370 | fi | |
6eb95e99 ZW |
6371 | fi |
6372 | fi | |
6373 | fi | |
6374 | done | |
6375 | done | |
6376 | if test "X$rpathdirs" != "X"; then | |
6377 | if test -n "$hardcode_libdir_separator"; then | |
6378 | alldirs= | |
6379 | for found_dir in $rpathdirs; do | |
6380 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6381 | done | |
6382 | acl_save_libdir="$libdir" | |
6383 | libdir="$alldirs" | |
6384 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6385 | libdir="$acl_save_libdir" | |
6386 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
6387 | else | |
6388 | for found_dir in $rpathdirs; do | |
6389 | acl_save_libdir="$libdir" | |
6390 | libdir="$found_dir" | |
6391 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6392 | libdir="$acl_save_libdir" | |
6393 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
6394 | done | |
6395 | fi | |
6396 | fi | |
6397 | if test "X$ltrpathdirs" != "X"; then | |
6398 | for found_dir in $ltrpathdirs; do | |
6399 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
6400 | done | |
6401 | fi | |
6402 | ||
5213506e RW |
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
6404 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
22e05272 | 6405 | if ${gt_cv_func_gnugettext2_libintl+:} false; then : |
5213506e | 6406 | $as_echo_n "(cached) " >&6 |
6eb95e99 ZW |
6407 | else |
6408 | gt_save_CPPFLAGS="$CPPFLAGS" | |
6409 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
6410 | gt_save_LIBS="$LIBS" | |
6411 | LIBS="$LIBS $LIBINTL" | |
5213506e | 6412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 6413 | /* end confdefs.h. */ |
6eb95e99 ZW |
6414 | #include <libintl.h> |
6415 | extern int _nl_msg_cat_cntr; | |
6416 | extern | |
6417 | #ifdef __cplusplus | |
6418 | "C" | |
6419 | #endif | |
6420 | const char *_nl_expand_alias (); | |
79035f0d NN |
6421 | int |
6422 | main () | |
6423 | { | |
6eb95e99 | 6424 | bindtextdomain ("", ""); |
2d041117 | 6425 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
79035f0d NN |
6426 | ; |
6427 | return 0; | |
6428 | } | |
6429 | _ACEOF | |
5213506e | 6430 | if ac_fn_c_try_link "$LINENO"; then : |
2d041117 | 6431 | gt_cv_func_gnugettext2_libintl=yes |
6eb95e99 | 6432 | else |
2d041117 | 6433 | gt_cv_func_gnugettext2_libintl=no |
6eb95e99 | 6434 | fi |
5213506e RW |
6435 | rm -f core conftest.err conftest.$ac_objext \ |
6436 | conftest$ac_exeext conftest.$ac_ext | |
2d041117 | 6437 | if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then |
6eb95e99 | 6438 | LIBS="$LIBS $LIBICONV" |
5213506e | 6439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
79035f0d | 6440 | /* end confdefs.h. */ |
6eb95e99 ZW |
6441 | #include <libintl.h> |
6442 | extern int _nl_msg_cat_cntr; | |
6443 | extern | |
6444 | #ifdef __cplusplus | |
6445 | "C" | |
6446 | #endif | |
6447 | const char *_nl_expand_alias (); | |
79035f0d NN |
6448 | int |
6449 | main () | |
6450 | { | |
6eb95e99 | 6451 | bindtextdomain ("", ""); |
2d041117 | 6452 | return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
79035f0d NN |
6453 | ; |
6454 | return 0; | |
6455 | } | |
6456 | _ACEOF | |
5213506e | 6457 | if ac_fn_c_try_link "$LINENO"; then : |
6eb95e99 ZW |
6458 | LIBINTL="$LIBINTL $LIBICONV" |
6459 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
2d041117 | 6460 | gt_cv_func_gnugettext2_libintl=yes |
79035f0d | 6461 | |
6eb95e99 | 6462 | fi |
5213506e RW |
6463 | rm -f core conftest.err conftest.$ac_objext \ |
6464 | conftest$ac_exeext conftest.$ac_ext | |
6eb95e99 ZW |
6465 | fi |
6466 | CPPFLAGS="$gt_save_CPPFLAGS" | |
6467 | LIBS="$gt_save_LIBS" | |
6468 | fi | |
2d041117 AM |
6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 |
6470 | $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } | |
6eb95e99 ZW |
6471 | fi |
6472 | ||
2d041117 AM |
6473 | if test "$gt_cv_func_gnugettext2_libc" = "yes" \ |
6474 | || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ | |
6eb95e99 ZW |
6475 | && test "$PACKAGE" != gettext-runtime \ |
6476 | && test "$PACKAGE" != gettext-tools; }; then | |
6477 | gt_use_preinstalled_gnugettext=yes | |
6478 | else | |
6479 | LIBINTL= | |
6480 | LTLIBINTL= | |
6481 | INCINTL= | |
6482 | fi | |
6483 | ||
79035f0d | 6484 | |
6eb95e99 ZW |
6485 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
6486 | nls_cv_use_gnu_gettext=yes | |
6487 | fi | |
6488 | fi | |
6489 | ||
6490 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6491 | BUILD_INCLUDED_LIBINTL=yes | |
6492 | USE_INCLUDED_LIBINTL=yes | |
6493 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | |
6494 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | |
6495 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | |
6496 | fi | |
6497 | ||
6498 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
6499 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6500 | CATOBJEXT=.gmo | |
6501 | fi | |
79035f0d | 6502 | |
6eb95e99 ZW |
6503 | |
6504 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
6505 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
79035f0d | 6506 | |
5213506e | 6507 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
6eb95e99 ZW |
6508 | |
6509 | else | |
6510 | USE_NLS=no | |
6511 | fi | |
6512 | fi | |
6513 | ||
5213506e RW |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
6515 | $as_echo_n "checking whether to use NLS... " >&6; } | |
6516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
6517 | $as_echo "$USE_NLS" >&6; } | |
6eb95e99 | 6518 | if test "$USE_NLS" = "yes"; then |
5213506e RW |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
6520 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
6eb95e99 | 6521 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
2d041117 | 6522 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
6eb95e99 ZW |
6523 | gt_source="external libintl" |
6524 | else | |
6525 | gt_source="libc" | |
6526 | fi | |
6527 | else | |
6528 | gt_source="included intl directory" | |
6529 | fi | |
5213506e RW |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
6531 | $as_echo "$gt_source" >&6; } | |
6eb95e99 ZW |
6532 | fi |
6533 | ||
6534 | if test "$USE_NLS" = "yes"; then | |
6535 | ||
6536 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
2d041117 | 6537 | if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then |
5213506e RW |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
6539 | $as_echo_n "checking how to link with libintl... " >&6; } | |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
6541 | $as_echo "$LIBINTL" >&6; } | |
79035f0d | 6542 | |
6eb95e99 ZW |
6543 | for element in $INCINTL; do |
6544 | haveit= | |
6545 | for x in $CPPFLAGS; do | |
79035f0d | 6546 | |
6eb95e99 ZW |
6547 | acl_save_prefix="$prefix" |
6548 | prefix="$acl_final_prefix" | |
6549 | acl_save_exec_prefix="$exec_prefix" | |
6550 | exec_prefix="$acl_final_exec_prefix" | |
6551 | eval x=\"$x\" | |
6552 | exec_prefix="$acl_save_exec_prefix" | |
6553 | prefix="$acl_save_prefix" | |
6554 | ||
6555 | if test "X$x" = "X$element"; then | |
6556 | haveit=yes | |
6557 | break | |
6558 | fi | |
6559 | done | |
6560 | if test -z "$haveit"; then | |
6561 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6562 | fi | |
6563 | done | |
6564 | ||
6565 | fi | |
6566 | ||
79035f0d | 6567 | |
5213506e | 6568 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
79035f0d | 6569 | |
6eb95e99 | 6570 | |
5213506e | 6571 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
6eb95e99 ZW |
6572 | |
6573 | fi | |
6574 | ||
6575 | POSUB=po | |
56694dd9 | 6576 | fi |
6eb95e99 | 6577 | |
79035f0d | 6578 | |
56694dd9 ZW |
6579 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
6580 | BUILD_INCLUDED_LIBINTL=yes | |
6581 | fi | |
6eb95e99 | 6582 | |
79035f0d NN |
6583 | |
6584 | ||
6585 | ||
6eb95e99 | 6586 | |
56694dd9 ZW |
6587 | nls_cv_header_intl= |
6588 | nls_cv_header_libgt= | |
6eb95e99 | 6589 | |
56694dd9 | 6590 | DATADIRNAME=share |
79035f0d | 6591 | |
6eb95e99 | 6592 | |
56694dd9 | 6593 | INSTOBJEXT=.mo |
79035f0d | 6594 | |
6eb95e99 | 6595 | |
56694dd9 | 6596 | GENCAT=gencat |
79035f0d | 6597 | |
6eb95e99 | 6598 | |
56694dd9 ZW |
6599 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
6600 | INTLOBJS="\$(GETTOBJS)" | |
6601 | fi | |
79035f0d | 6602 | |
6eb95e99 | 6603 | |
56694dd9 | 6604 | INTL_LIBTOOL_SUFFIX_PREFIX= |
79035f0d NN |
6605 | |
6606 | ||
6eb95e99 | 6607 | |
56694dd9 | 6608 | INTLLIBS="$LIBINTL" |
6eb95e99 | 6609 | |
6eb95e99 ZW |
6610 | |
6611 | ||
79035f0d NN |
6612 | |
6613 | ||
6614 | ||
6615 | ||
6616 | # This replaces the extensive use of DEFS in the original Makefile.in. | |
6617 | ||
5213506e | 6618 | $as_echo "#define IN_LIBINTL 1" >>confdefs.h |
79035f0d | 6619 | |
6eb95e99 | 6620 | |
5213506e | 6621 | $as_echo "#define IN_LIBRARY 1" >>confdefs.h |
6eb95e99 | 6622 | |
79035f0d | 6623 | |
5213506e | 6624 | $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h |
79035f0d | 6625 | |
6eb95e99 | 6626 | |
5213506e | 6627 | $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h |
6eb95e99 | 6628 | |
79035f0d | 6629 | |
5213506e | 6630 | $as_echo "#define NO_XMALLOC 1" >>confdefs.h |
79035f0d | 6631 | |
6eb95e99 | 6632 | |
5213506e | 6633 | $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h |
6eb95e99 | 6634 | |
79035f0d | 6635 | |
5213506e | 6636 | $as_echo "#define relocate libintl_relocate" >>confdefs.h |
6eb95e99 ZW |
6637 | |
6638 | ||
88fa57d7 KC |
6639 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
6640 | for ac_prog in aclocal | |
6641 | do | |
6642 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6643 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6645 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6646 | if ${ac_cv_prog_ACLOCAL+:} false; then : |
5213506e | 6647 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6648 | else |
6649 | if test -n "$ACLOCAL"; then | |
6650 | ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. | |
6651 | else | |
6652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6653 | for as_dir in $PATH | |
6654 | do | |
6655 | IFS=$as_save_IFS | |
6656 | test -z "$as_dir" && as_dir=. | |
5213506e | 6657 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6659 | ac_cv_prog_ACLOCAL="$ac_prog" |
5213506e | 6660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6661 | break 2 |
6662 | fi | |
6663 | done | |
5213506e RW |
6664 | done |
6665 | IFS=$as_save_IFS | |
88fa57d7 KC |
6666 | |
6667 | fi | |
6668 | fi | |
6669 | ACLOCAL=$ac_cv_prog_ACLOCAL | |
6670 | if test -n "$ACLOCAL"; then | |
5213506e RW |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
6672 | $as_echo "$ACLOCAL" >&6; } | |
88fa57d7 | 6673 | else |
5213506e RW |
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6675 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6676 | fi |
6677 | ||
5213506e | 6678 | |
88fa57d7 KC |
6679 | test -n "$ACLOCAL" && break |
6680 | done | |
6681 | test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" | |
6682 | ||
6683 | for ac_prog in autoconf | |
6684 | do | |
6685 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6686 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6688 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6689 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
5213506e | 6690 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6691 | else |
6692 | if test -n "$AUTOCONF"; then | |
6693 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
6694 | else | |
6695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6696 | for as_dir in $PATH | |
6697 | do | |
6698 | IFS=$as_save_IFS | |
6699 | test -z "$as_dir" && as_dir=. | |
5213506e | 6700 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6702 | ac_cv_prog_AUTOCONF="$ac_prog" |
5213506e | 6703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6704 | break 2 |
6705 | fi | |
6706 | done | |
5213506e RW |
6707 | done |
6708 | IFS=$as_save_IFS | |
88fa57d7 KC |
6709 | |
6710 | fi | |
6711 | fi | |
6712 | AUTOCONF=$ac_cv_prog_AUTOCONF | |
6713 | if test -n "$AUTOCONF"; then | |
5213506e RW |
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
6715 | $as_echo "$AUTOCONF" >&6; } | |
88fa57d7 | 6716 | else |
5213506e RW |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6718 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6719 | fi |
6720 | ||
5213506e | 6721 | |
88fa57d7 KC |
6722 | test -n "$AUTOCONF" && break |
6723 | done | |
6724 | test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" | |
6725 | ||
6726 | for ac_prog in autoheader | |
6727 | do | |
6728 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6729 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6732 | if ${ac_cv_prog_AUTOHEADER+:} false; then : |
5213506e | 6733 | $as_echo_n "(cached) " >&6 |
88fa57d7 KC |
6734 | else |
6735 | if test -n "$AUTOHEADER"; then | |
6736 | ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. | |
6737 | else | |
6738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6739 | for as_dir in $PATH | |
6740 | do | |
6741 | IFS=$as_save_IFS | |
6742 | test -z "$as_dir" && as_dir=. | |
5213506e | 6743 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
88fa57d7 | 6745 | ac_cv_prog_AUTOHEADER="$ac_prog" |
5213506e | 6746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
88fa57d7 KC |
6747 | break 2 |
6748 | fi | |
6749 | done | |
5213506e RW |
6750 | done |
6751 | IFS=$as_save_IFS | |
88fa57d7 KC |
6752 | |
6753 | fi | |
6754 | fi | |
6755 | AUTOHEADER=$ac_cv_prog_AUTOHEADER | |
6756 | if test -n "$AUTOHEADER"; then | |
5213506e RW |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
6758 | $as_echo "$AUTOHEADER" >&6; } | |
88fa57d7 | 6759 | else |
5213506e RW |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6761 | $as_echo "no" >&6; } | |
88fa57d7 KC |
6762 | fi |
6763 | ||
5213506e | 6764 | |
88fa57d7 KC |
6765 | test -n "$AUTOHEADER" && break |
6766 | done | |
6767 | test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" | |
6768 | ||
6769 | ||
5213506e RW |
6770 | # Check whether --enable-maintainer-mode was given. |
6771 | if test "${enable_maintainer_mode+set}" = set; then : | |
6772 | enableval=$enable_maintainer_mode; | |
88fa57d7 KC |
6773 | else |
6774 | enable_maintainer_mode=no | |
5213506e RW |
6775 | fi |
6776 | ||
88fa57d7 KC |
6777 | if test "x$enable_maintainer_mode" = xno; then |
6778 | MAINT='#' | |
6779 | else | |
6780 | MAINT= | |
6781 | fi | |
6782 | ||
6783 | ||
79035f0d | 6784 | # Additional info for config.intl. |
56694dd9 | 6785 | |
56694dd9 | 6786 | |
79035f0d NN |
6787 | |
6788 | LIBINTL_DEP= | |
6789 | INCINTL= | |
6790 | case $USE_INCLUDED_LIBINTL in | |
6791 | yes) | |
5da9128a PB |
6792 | LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' ` |
6793 | LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' ` | |
6794 | LIBINTL_DEP='${top_builddir}/../intl/libintl.a' | |
6795 | INCINTL='-I${top_builddir}/../intl' | |
79035f0d NN |
6796 | ;; |
6797 | esac | |
6798 | ||
2ca17e0a JJ |
6799 | BISON3_YES='#' |
6800 | BISON3_NO= | |
6801 | if test "$INTLBISON" != :; then | |
6802 | ac_bison3=no | |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5 | |
6804 | $as_echo_n "checking bison 3 or later... " >&6; } | |
6805 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
6806 | case $ac_prog_version in | |
6807 | [3-9].*) | |
6808 | ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;; | |
6809 | *) ac_prog_version="$ac_prog_version, old";; | |
6810 | esac | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
6812 | $as_echo "$ac_prog_version" >&6; } | |
6813 | if test $ac_bison3 = yes; then | |
2ca17e0a JJ |
6814 | BISON3_YES= |
6815 | BISON3_NO='#' | |
6816 | fi | |
6817 | fi | |
6818 | ||
6819 | ||
6820 | ||
4a1493f0 JJ |
6821 | # Check whether --enable-host-shared was given. |
6822 | if test "${enable_host_shared+set}" = set; then : | |
6823 | enableval=$enable_host_shared; PICFLAG=-fPIC | |
6824 | else | |
6825 | PICFLAG= | |
6826 | fi | |
6827 | ||
6828 | ||
6829 | ||
5213506e | 6830 | ac_config_files="$ac_config_files Makefile config.intl" |
79035f0d NN |
6831 | |
6832 | cat >confcache <<\_ACEOF | |
6eb95e99 ZW |
6833 | # This file is a shell script that caches the results of configure |
6834 | # tests run on this system so they can be shared between configure | |
79035f0d NN |
6835 | # scripts and configure runs, see configure's option --config-cache. |
6836 | # It is not useful on other systems. If it contains results you don't | |
6837 | # want to keep, you may remove or edit it. | |
6eb95e99 | 6838 | # |
79035f0d NN |
6839 | # config.status only pays attention to the cache file if you give it |
6840 | # the --recheck option to rerun configure. | |
6eb95e99 | 6841 | # |
79035f0d NN |
6842 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6843 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6844 | # following values. | |
6845 | ||
6846 | _ACEOF | |
6847 | ||
6eb95e99 ZW |
6848 | # The following way of writing the cache mishandles newlines in values, |
6849 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 6850 | # So, we kill variables containing newlines. |
6eb95e99 ZW |
6851 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6852 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
6853 | ( |
6854 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6855 | eval ac_val=\$$ac_var | |
6856 | case $ac_val in #( | |
6857 | *${as_nl}*) | |
6858 | case $ac_var in #( | |
6859 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6860 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6861 | esac | |
6862 | case $ac_var in #( | |
6863 | _ | IFS | as_nl) ;; #( | |
6864 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6865 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6866 | esac ;; | |
6867 | esac | |
6868 | done | |
6869 | ||
79035f0d | 6870 | (set) 2>&1 | |
5213506e RW |
6871 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6872 | *${as_nl}ac_space=\ *) | |
6873 | # `set' does not quote correctly, so add quotes: double-quote | |
6874 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
79035f0d | 6875 | sed -n \ |
8ab705be KC |
6876 | "s/'/'\\\\''/g; |
6877 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 6878 | ;; #( |
79035f0d NN |
6879 | *) |
6880 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 6881 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
79035f0d | 6882 | ;; |
5213506e RW |
6883 | esac | |
6884 | sort | |
6885 | ) | | |
79035f0d | 6886 | sed ' |
5213506e | 6887 | /^ac_cv_env_/b end |
79035f0d | 6888 | t clear |
5213506e | 6889 | :clear |
79035f0d NN |
6890 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6891 | t end | |
5213506e RW |
6892 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6893 | :end' >>confcache | |
6894 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6895 | if test -w "$cache_file"; then | |
22e05272 | 6896 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6898 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
6899 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6900 | cat confcache >"$cache_file" | |
6901 | else | |
6902 | case $cache_file in #( | |
6903 | */* | ?:*) | |
6904 | mv -f confcache "$cache_file"$$ && | |
6905 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6906 | *) | |
6907 | mv -f confcache "$cache_file" ;; | |
6908 | esac | |
6909 | fi | |
6910 | fi | |
6eb95e99 | 6911 | else |
5213506e RW |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6913 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6eb95e99 ZW |
6914 | fi |
6915 | fi | |
6916 | rm -f confcache | |
6917 | ||
6918 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6919 | # Let make expand exec_prefix. | |
6920 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6921 | ||
56694dd9 | 6922 | DEFS=-DHAVE_CONFIG_H |
6eb95e99 | 6923 | |
79035f0d NN |
6924 | ac_libobjs= |
6925 | ac_ltlibobjs= | |
22e05272 | 6926 | U= |
79035f0d NN |
6927 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6928 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
6929 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6930 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6931 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6932 | # will be set to the directory where LIBOBJS objects are built. | |
6933 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6934 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
79035f0d NN |
6935 | done |
6936 | LIBOBJS=$ac_libobjs | |
56694dd9 | 6937 | |
79035f0d NN |
6938 | LTLIBOBJS=$ac_ltlibobjs |
6939 | ||
6940 | ||
6941 | ||
22e05272 | 6942 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 6943 | ac_write_fail=0 |
79035f0d NN |
6944 | ac_clean_files_save=$ac_clean_files |
6945 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6947 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6948 | as_write_fail=0 | |
6949 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
79035f0d NN |
6950 | #! $SHELL |
6951 | # Generated by $as_me. | |
6eb95e99 ZW |
6952 | # Run this file to recreate the current configuration. |
6953 | # Compiler output produced by configure, useful for debugging | |
79035f0d | 6954 | # configure, is in config.log if it exists. |
6eb95e99 | 6955 | |
79035f0d NN |
6956 | debug=false |
6957 | ac_cs_recheck=false | |
6958 | ac_cs_silent=false | |
79035f0d | 6959 | |
5213506e RW |
6960 | SHELL=\${CONFIG_SHELL-$SHELL} |
6961 | export SHELL | |
6962 | _ASEOF | |
6963 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6964 | ## -------------------- ## | |
6965 | ## M4sh Initialization. ## | |
6966 | ## -------------------- ## | |
79035f0d | 6967 | |
5213506e RW |
6968 | # Be more Bourne compatible |
6969 | DUALCASE=1; export DUALCASE # for MKS sh | |
6970 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
79035f0d NN |
6971 | emulate sh |
6972 | NULLCMD=: | |
5213506e | 6973 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
79035f0d NN |
6974 | # is contrary to our usage. Disable this feature. |
6975 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
6976 | setopt NO_GLOB_SUBST |
6977 | else | |
6978 | case `(set -o) 2>/dev/null` in #( | |
6979 | *posix*) : | |
6980 | set -o posix ;; #( | |
6981 | *) : | |
6982 | ;; | |
6983 | esac | |
79035f0d NN |
6984 | fi |
6985 | ||
5213506e RW |
6986 | |
6987 | as_nl=' | |
6988 | ' | |
6989 | export as_nl | |
6990 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6991 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6992 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6993 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6994 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6995 | # but without wasting forks for bash or zsh. | |
6996 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6997 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6998 | as_echo='print -r --' | |
6999 | as_echo_n='print -rn --' | |
7000 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7001 | as_echo='printf %s\n' | |
7002 | as_echo_n='printf %s' | |
7003 | else | |
7004 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7005 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7006 | as_echo_n='/usr/ucb/echo -n' | |
7007 | else | |
7008 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7009 | as_echo_n_body='eval | |
7010 | arg=$1; | |
7011 | case $arg in #( | |
7012 | *"$as_nl"*) | |
7013 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7014 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7015 | esac; | |
7016 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7017 | ' | |
7018 | export as_echo_n_body | |
7019 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7020 | fi | |
7021 | export as_echo_body | |
7022 | as_echo='sh -c $as_echo_body as_echo' | |
79035f0d NN |
7023 | fi |
7024 | ||
5213506e RW |
7025 | # The user is always right. |
7026 | if test "${PATH_SEPARATOR+set}" != set; then | |
7027 | PATH_SEPARATOR=: | |
7028 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7029 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7030 | PATH_SEPARATOR=';' | |
7031 | } | |
7032 | fi | |
79035f0d | 7033 | |
5213506e RW |
7034 | |
7035 | # IFS | |
7036 | # We need space, tab and new line, in precisely that order. Quoting is | |
7037 | # there to prevent editors from complaining about space-tab. | |
7038 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7039 | # splitting by setting IFS to empty value.) | |
7040 | IFS=" "" $as_nl" | |
7041 | ||
7042 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 7043 | as_myself= |
5213506e RW |
7044 | case $0 in #(( |
7045 | *[\\/]* ) as_myself=$0 ;; | |
7046 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7047 | for as_dir in $PATH | |
7048 | do | |
7049 | IFS=$as_save_IFS | |
7050 | test -z "$as_dir" && as_dir=. | |
7051 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7052 | done | |
7053 | IFS=$as_save_IFS | |
7054 | ||
7055 | ;; | |
7056 | esac | |
7057 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7058 | # in which case we are not to be found in the path. | |
7059 | if test "x$as_myself" = x; then | |
7060 | as_myself=$0 | |
7061 | fi | |
7062 | if test ! -f "$as_myself"; then | |
7063 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7064 | exit 1 | |
7065 | fi | |
7066 | ||
7067 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7068 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7069 | # suppresses any "Segmentation fault" message there. '((' could | |
7070 | # trigger a bug in pdksh 5.2.14. | |
7071 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7072 | do eval test x\${$as_var+set} = xset \ | |
7073 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7074 | done | |
79035f0d NN |
7075 | PS1='$ ' |
7076 | PS2='> ' | |
7077 | PS4='+ ' | |
7078 | ||
7079 | # NLS nuisances. | |
5213506e RW |
7080 | LC_ALL=C |
7081 | export LC_ALL | |
7082 | LANGUAGE=C | |
7083 | export LANGUAGE | |
7084 | ||
7085 | # CDPATH. | |
7086 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7087 | ||
7088 | ||
22e05272 JM |
7089 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7090 | # ---------------------------------------- | |
5213506e RW |
7091 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7092 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 7093 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
7094 | as_fn_error () |
7095 | { | |
22e05272 JM |
7096 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7097 | if test "$4"; then | |
7098 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7099 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
79035f0d | 7100 | fi |
22e05272 | 7101 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
7102 | as_fn_exit $as_status |
7103 | } # as_fn_error | |
7104 | ||
7105 | ||
7106 | # as_fn_set_status STATUS | |
7107 | # ----------------------- | |
7108 | # Set $? to STATUS, without forking. | |
7109 | as_fn_set_status () | |
7110 | { | |
7111 | return $1 | |
7112 | } # as_fn_set_status | |
7113 | ||
7114 | # as_fn_exit STATUS | |
7115 | # ----------------- | |
7116 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7117 | as_fn_exit () | |
7118 | { | |
7119 | set +e | |
7120 | as_fn_set_status $1 | |
7121 | exit $1 | |
7122 | } # as_fn_exit | |
7123 | ||
7124 | # as_fn_unset VAR | |
7125 | # --------------- | |
7126 | # Portably unset VAR. | |
7127 | as_fn_unset () | |
7128 | { | |
7129 | { eval $1=; unset $1;} | |
7130 | } | |
7131 | as_unset=as_fn_unset | |
7132 | # as_fn_append VAR VALUE | |
7133 | # ---------------------- | |
7134 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7135 | # advantage of any shell optimizations that allow amortized linear growth over | |
7136 | # repeated appends, instead of the typical quadratic growth present in naive | |
7137 | # implementations. | |
7138 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7139 | eval 'as_fn_append () | |
7140 | { | |
7141 | eval $1+=\$2 | |
7142 | }' | |
7143 | else | |
7144 | as_fn_append () | |
7145 | { | |
7146 | eval $1=\$$1\$2 | |
7147 | } | |
7148 | fi # as_fn_append | |
7149 | ||
7150 | # as_fn_arith ARG... | |
7151 | # ------------------ | |
7152 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7153 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7154 | # must be portable across $(()) and expr. | |
7155 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7156 | eval 'as_fn_arith () | |
7157 | { | |
7158 | as_val=$(( $* )) | |
7159 | }' | |
7160 | else | |
7161 | as_fn_arith () | |
7162 | { | |
7163 | as_val=`expr "$@" || test $? -eq 1` | |
7164 | } | |
7165 | fi # as_fn_arith | |
6eb95e99 | 7166 | |
5213506e RW |
7167 | |
7168 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7169 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
79035f0d NN |
7170 | as_expr=expr |
7171 | else | |
7172 | as_expr=false | |
7173 | fi | |
7174 | ||
5213506e | 7175 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
79035f0d NN |
7176 | as_basename=basename |
7177 | else | |
7178 | as_basename=false | |
7179 | fi | |
7180 | ||
5213506e RW |
7181 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7182 | as_dirname=dirname | |
7183 | else | |
7184 | as_dirname=false | |
7185 | fi | |
6eb95e99 | 7186 | |
5213506e | 7187 | as_me=`$as_basename -- "$0" || |
79035f0d NN |
7188 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7189 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
7190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7191 | $as_echo X/"$0" | | |
7192 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7193 | s//\1/ | |
7194 | q | |
7195 | } | |
7196 | /^X\/\(\/\/\)$/{ | |
7197 | s//\1/ | |
7198 | q | |
7199 | } | |
7200 | /^X\/\(\/\).*/{ | |
7201 | s//\1/ | |
7202 | q | |
7203 | } | |
7204 | s/.*/./; q'` | |
6eb95e99 | 7205 | |
79035f0d NN |
7206 | # Avoid depending upon Character Ranges. |
7207 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7208 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7209 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7210 | as_cr_digits='0123456789' | |
7211 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7212 | ||
5213506e RW |
7213 | ECHO_C= ECHO_N= ECHO_T= |
7214 | case `echo -n x` in #((((( | |
7215 | -n*) | |
7216 | case `echo 'xy\c'` in | |
7217 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7218 | xy) ECHO_C='\c';; | |
7219 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7220 | ECHO_T=' ';; | |
7221 | esac;; | |
7222 | *) | |
7223 | ECHO_N='-n';; | |
79035f0d NN |
7224 | esac |
7225 | ||
5213506e RW |
7226 | rm -f conf$$ conf$$.exe conf$$.file |
7227 | if test -d conf$$.dir; then | |
7228 | rm -f conf$$.dir/conf$$.file | |
79035f0d | 7229 | else |
5213506e RW |
7230 | rm -f conf$$.dir |
7231 | mkdir conf$$.dir 2>/dev/null | |
79035f0d | 7232 | fi |
5213506e RW |
7233 | if (echo >conf$$.file) 2>/dev/null; then |
7234 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
79035f0d | 7235 | as_ln_s='ln -s' |
5213506e RW |
7236 | # ... but there are two gotchas: |
7237 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7238 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 7239 | # In both cases, we have to default to `cp -pR'. |
5213506e | 7240 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 7241 | as_ln_s='cp -pR' |
5213506e RW |
7242 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7243 | as_ln_s=ln | |
7244 | else | |
22e05272 | 7245 | as_ln_s='cp -pR' |
6eb95e99 | 7246 | fi |
79035f0d | 7247 | else |
22e05272 | 7248 | as_ln_s='cp -pR' |
79035f0d | 7249 | fi |
5213506e RW |
7250 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7251 | rmdir conf$$.dir 2>/dev/null | |
7252 | ||
7253 | ||
7254 | # as_fn_mkdir_p | |
7255 | # ------------- | |
7256 | # Create "$as_dir" as a directory, including parents if necessary. | |
7257 | as_fn_mkdir_p () | |
7258 | { | |
7259 | ||
7260 | case $as_dir in #( | |
7261 | -*) as_dir=./$as_dir;; | |
7262 | esac | |
7263 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7264 | as_dirs= | |
7265 | while :; do | |
7266 | case $as_dir in #( | |
7267 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7268 | *) as_qdir=$as_dir;; | |
7269 | esac | |
7270 | as_dirs="'$as_qdir' $as_dirs" | |
7271 | as_dir=`$as_dirname -- "$as_dir" || | |
7272 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7273 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7274 | X"$as_dir" : 'X\(//\)$' \| \ | |
7275 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7276 | $as_echo X"$as_dir" | | |
7277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7278 | s//\1/ | |
7279 | q | |
7280 | } | |
7281 | /^X\(\/\/\)[^/].*/{ | |
7282 | s//\1/ | |
7283 | q | |
7284 | } | |
7285 | /^X\(\/\/\)$/{ | |
7286 | s//\1/ | |
7287 | q | |
7288 | } | |
7289 | /^X\(\/\).*/{ | |
7290 | s//\1/ | |
7291 | q | |
7292 | } | |
7293 | s/.*/./; q'` | |
7294 | test -d "$as_dir" && break | |
7295 | done | |
7296 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 7297 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
79035f0d | 7298 | |
5213506e RW |
7299 | |
7300 | } # as_fn_mkdir_p | |
79035f0d | 7301 | if mkdir -p . 2>/dev/null; then |
5213506e | 7302 | as_mkdir_p='mkdir -p "$as_dir"' |
79035f0d | 7303 | else |
8ab705be | 7304 | test -d ./-p && rmdir ./-p |
79035f0d NN |
7305 | as_mkdir_p=false |
7306 | fi | |
7307 | ||
22e05272 JM |
7308 | |
7309 | # as_fn_executable_p FILE | |
7310 | # ----------------------- | |
7311 | # Test if FILE is an executable regular file. | |
7312 | as_fn_executable_p () | |
7313 | { | |
7314 | test -f "$1" && test -x "$1" | |
7315 | } # as_fn_executable_p | |
7316 | as_test_x='test -x' | |
7317 | as_executable_p=as_fn_executable_p | |
79035f0d NN |
7318 | |
7319 | # Sed expression to map a string onto a valid CPP name. | |
8ab705be | 7320 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
7321 | |
7322 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 7323 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
79035f0d NN |
7324 | |
7325 | ||
79035f0d | 7326 | exec 6>&1 |
5213506e RW |
7327 | ## ----------------------------------- ## |
7328 | ## Main body of $CONFIG_STATUS script. ## | |
7329 | ## ----------------------------------- ## | |
7330 | _ASEOF | |
7331 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
79035f0d | 7332 | |
5213506e RW |
7333 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7334 | # Save the log message, to keep $0 and so on meaningful, and to | |
79035f0d | 7335 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
7336 | # values after options handling. |
7337 | ac_log=" | |
79035f0d | 7338 | This file was extended by $as_me, which was |
22e05272 | 7339 | generated by GNU Autoconf 2.69. Invocation command line was |
79035f0d NN |
7340 | |
7341 | CONFIG_FILES = $CONFIG_FILES | |
7342 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7343 | CONFIG_LINKS = $CONFIG_LINKS | |
7344 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7345 | $ $0 $@ | |
7346 | ||
5213506e RW |
7347 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7348 | " | |
7349 | ||
79035f0d NN |
7350 | _ACEOF |
7351 | ||
5213506e RW |
7352 | case $ac_config_files in *" |
7353 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7354 | esac | |
79035f0d | 7355 | |
5213506e RW |
7356 | case $ac_config_headers in *" |
7357 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7358 | esac | |
79035f0d | 7359 | |
79035f0d | 7360 | |
5213506e RW |
7361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7362 | # Files that config.status was made for. | |
7363 | config_files="$ac_config_files" | |
7364 | config_headers="$ac_config_headers" | |
7365 | config_commands="$ac_config_commands" | |
79035f0d | 7366 | |
5213506e | 7367 | _ACEOF |
79035f0d | 7368 | |
5213506e | 7369 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d | 7370 | ac_cs_usage="\ |
5213506e RW |
7371 | \`$as_me' instantiates files and other configuration actions |
7372 | from templates according to the current configuration. Unless the files | |
7373 | and actions are specified as TAGs, all are instantiated by default. | |
79035f0d | 7374 | |
5213506e | 7375 | Usage: $0 [OPTION]... [TAG]... |
79035f0d NN |
7376 | |
7377 | -h, --help print this help, then exit | |
5213506e | 7378 | -V, --version print version number and configuration settings, then exit |
22e05272 | 7379 | --config print configuration, then exit |
5213506e RW |
7380 | -q, --quiet, --silent |
7381 | do not print progress messages | |
79035f0d NN |
7382 | -d, --debug don't remove temporary files |
7383 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
7384 | --file=FILE[:TEMPLATE] |
7385 | instantiate the configuration file FILE | |
7386 | --header=FILE[:TEMPLATE] | |
7387 | instantiate the configuration header FILE | |
79035f0d NN |
7388 | |
7389 | Configuration files: | |
7390 | $config_files | |
7391 | ||
7392 | Configuration headers: | |
7393 | $config_headers | |
7394 | ||
7395 | Configuration commands: | |
7396 | $config_commands | |
7397 | ||
5213506e | 7398 | Report bugs to the package provider." |
79035f0d | 7399 | |
5213506e RW |
7400 | _ACEOF |
7401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 7402 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
79035f0d NN |
7403 | ac_cs_version="\\ |
7404 | config.status | |
22e05272 JM |
7405 | configured by $0, generated by GNU Autoconf 2.69, |
7406 | with options \\"\$ac_cs_config\\" | |
79035f0d | 7407 | |
22e05272 | 7408 | Copyright (C) 2012 Free Software Foundation, Inc. |
79035f0d NN |
7409 | This config.status script is free software; the Free Software Foundation |
7410 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
7411 | |
7412 | ac_pwd='$ac_pwd' | |
7413 | srcdir='$srcdir' | |
7414 | INSTALL='$INSTALL' | |
7415 | test -n "\$AWK" || AWK=awk | |
79035f0d NN |
7416 | _ACEOF |
7417 | ||
5213506e RW |
7418 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7419 | # The default lists apply if the user does not specify any file. | |
79035f0d NN |
7420 | ac_need_defaults=: |
7421 | while test $# != 0 | |
7422 | do | |
7423 | case $1 in | |
22e05272 | 7424 | --*=?*) |
5213506e RW |
7425 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7426 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
79035f0d NN |
7427 | ac_shift=: |
7428 | ;; | |
22e05272 JM |
7429 | --*=) |
7430 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7431 | ac_optarg= | |
7432 | ac_shift=: | |
7433 | ;; | |
5213506e | 7434 | *) |
79035f0d NN |
7435 | ac_option=$1 |
7436 | ac_optarg=$2 | |
7437 | ac_shift=shift | |
7438 | ;; | |
79035f0d NN |
7439 | esac |
7440 | ||
7441 | case $ac_option in | |
7442 | # Handling of the options. | |
79035f0d NN |
7443 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7444 | ac_cs_recheck=: ;; | |
5213506e RW |
7445 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7446 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
7447 | --config | --confi | --conf | --con | --co | --c ) |
7448 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 7449 | --debug | --debu | --deb | --de | --d | -d ) |
79035f0d NN |
7450 | debug=: ;; |
7451 | --file | --fil | --fi | --f ) | |
7452 | $ac_shift | |
5213506e RW |
7453 | case $ac_optarg in |
7454 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 7455 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
7456 | esac |
7457 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
79035f0d NN |
7458 | ac_need_defaults=false;; |
7459 | --header | --heade | --head | --hea ) | |
7460 | $ac_shift | |
5213506e RW |
7461 | case $ac_optarg in |
7462 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7463 | esac | |
7464 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
79035f0d | 7465 | ac_need_defaults=false;; |
5213506e RW |
7466 | --he | --h) |
7467 | # Conflict between --help and --header | |
22e05272 | 7468 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
7469 | Try \`$0 --help' for more information.";; |
7470 | --help | --hel | -h ) | |
7471 | $as_echo "$ac_cs_usage"; exit ;; | |
79035f0d NN |
7472 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7473 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7474 | ac_cs_silent=: ;; | |
7475 | ||
7476 | # This is an error. | |
22e05272 | 7477 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 7478 | Try \`$0 --help' for more information." ;; |
79035f0d | 7479 | |
5213506e RW |
7480 | *) as_fn_append ac_config_targets " $1" |
7481 | ac_need_defaults=false ;; | |
79035f0d NN |
7482 | |
7483 | esac | |
7484 | shift | |
6eb95e99 | 7485 | done |
79035f0d NN |
7486 | |
7487 | ac_configure_extra_args= | |
7488 | ||
7489 | if $ac_cs_silent; then | |
7490 | exec 6>/dev/null | |
7491 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6eb95e99 ZW |
7492 | fi |
7493 | ||
79035f0d | 7494 | _ACEOF |
5213506e | 7495 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
79035f0d | 7496 | if \$ac_cs_recheck; then |
22e05272 | 7497 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
7498 | shift |
7499 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7500 | CONFIG_SHELL='$SHELL' | |
7501 | export CONFIG_SHELL | |
7502 | exec "\$@" | |
79035f0d | 7503 | fi |
6eb95e99 | 7504 | |
79035f0d | 7505 | _ACEOF |
5213506e RW |
7506 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7507 | exec 5>>config.log | |
7508 | { | |
7509 | echo | |
7510 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7511 | ## Running $as_me. ## | |
7512 | _ASBOX | |
7513 | $as_echo "$ac_log" | |
7514 | } >&5 | |
79035f0d | 7515 | |
5213506e RW |
7516 | _ACEOF |
7517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
79035f0d | 7518 | # |
5213506e | 7519 | # INIT-COMMANDS |
79035f0d | 7520 | # |
79035f0d NN |
7521 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
7522 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
7523 | # from automake. | |
7524 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
7525 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
7526 | LINGUAS="${LINGUAS-%UNSET%}" | |
7527 | ||
7528 | ||
7529 | _ACEOF | |
7530 | ||
5213506e | 7531 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d | 7532 | |
5213506e | 7533 | # Handling of arguments. |
79035f0d NN |
7534 | for ac_config_target in $ac_config_targets |
7535 | do | |
5213506e RW |
7536 | case $ac_config_target in |
7537 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7538 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7539 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7540 | "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;; | |
7541 | ||
22e05272 | 7542 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6eb95e99 | 7543 | esac |
79035f0d NN |
7544 | done |
7545 | ||
5213506e | 7546 | |
79035f0d NN |
7547 | # If the user did not use the arguments to specify the items to instantiate, |
7548 | # then the envvar interface is used. Set only those that are not. | |
7549 | # We use the long form for the default assignment because of an extremely | |
7550 | # bizarre bug on SunOS 4.1.3. | |
7551 | if $ac_need_defaults; then | |
7552 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7553 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7554 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7555 | fi | |
7556 | ||
7557 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 7558 | # simply because there is no reason against having it here, and in addition, |
79035f0d | 7559 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
7560 | # Hook for its removal unless debugging. |
7561 | # Note that there is a small window in which the directory will not be cleaned: | |
7562 | # after its creation but before its name has been assigned to `$tmp'. | |
79035f0d NN |
7563 | $debug || |
7564 | { | |
22e05272 | 7565 | tmp= ac_tmp= |
5213506e | 7566 | trap 'exit_status=$? |
22e05272 JM |
7567 | : "${ac_tmp:=$tmp}" |
7568 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
7569 | ' 0 |
7570 | trap 'as_fn_exit 1' 1 2 13 15 | |
79035f0d | 7571 | } |
79035f0d | 7572 | # Create a (secure) tmp directory for tmp files. |
6eb95e99 | 7573 | |
79035f0d | 7574 | { |
5213506e | 7575 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 7576 | test -d "$tmp" |
79035f0d NN |
7577 | } || |
7578 | { | |
5213506e RW |
7579 | tmp=./conf$$-$RANDOM |
7580 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
7581 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
7582 | ac_tmp=$tmp | |
5213506e RW |
7583 | |
7584 | # Set up the scripts for CONFIG_FILES section. | |
7585 | # No need to generate them if there are no CONFIG_FILES. | |
7586 | # This happens for instance with `./config.status config.h'. | |
7587 | if test -n "$CONFIG_FILES"; then | |
7588 | ||
7589 | ||
7590 | ac_cr=`echo X | tr X '\015'` | |
7591 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7592 | # But we know of no other shell where ac_cr would be empty at this | |
7593 | # point, so we can use a bashism as a fallback. | |
7594 | if test "x$ac_cr" = x; then | |
7595 | eval ac_cr=\$\'\\r\' | |
7596 | fi | |
7597 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7598 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 7599 | ac_cs_awk_cr='\\r' |
5213506e RW |
7600 | else |
7601 | ac_cs_awk_cr=$ac_cr | |
7602 | fi | |
7603 | ||
22e05272 | 7604 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
7605 | _ACEOF |
7606 | ||
7607 | ||
79035f0d | 7608 | { |
5213506e RW |
7609 | echo "cat >conf$$subs.awk <<_ACEOF" && |
7610 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7611 | echo "_ACEOF" | |
7612 | } >conf$$subs.sh || | |
22e05272 JM |
7613 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7614 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
7615 | ac_delim='%!_!# ' |
7616 | for ac_last_try in false false false false false :; do | |
7617 | . ./conf$$subs.sh || | |
22e05272 | 7618 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
7619 | |
7620 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7621 | if test $ac_delim_n = $ac_delim_num; then | |
7622 | break | |
7623 | elif $ac_last_try; then | |
22e05272 | 7624 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
7625 | else |
7626 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7627 | fi | |
7628 | done | |
7629 | rm -f conf$$subs.sh | |
7630 | ||
7631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 7632 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
7633 | _ACEOF |
7634 | sed -n ' | |
7635 | h | |
7636 | s/^/S["/; s/!.*/"]=/ | |
7637 | p | |
7638 | g | |
7639 | s/^[^!]*!// | |
7640 | :repl | |
7641 | t repl | |
7642 | s/'"$ac_delim"'$// | |
7643 | t delim | |
7644 | :nl | |
7645 | h | |
22e05272 | 7646 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
7647 | t more1 |
7648 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7649 | p | |
7650 | n | |
7651 | b repl | |
7652 | :more1 | |
7653 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7654 | p | |
7655 | g | |
7656 | s/.\{148\}// | |
7657 | t nl | |
7658 | :delim | |
7659 | h | |
22e05272 | 7660 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
7661 | t more2 |
7662 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7663 | p | |
7664 | b | |
7665 | :more2 | |
7666 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7667 | p | |
7668 | g | |
7669 | s/.\{148\}// | |
7670 | t delim | |
7671 | ' <conf$$subs.awk | sed ' | |
7672 | /^[^""]/{ | |
7673 | N | |
7674 | s/\n// | |
79035f0d | 7675 | } |
5213506e RW |
7676 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7677 | rm -f conf$$subs.awk | |
7678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7679 | _ACAWK | |
22e05272 | 7680 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
7681 | for (key in S) S_is_set[key] = 1 |
7682 | FS = "\a" | |
79035f0d | 7683 | |
5213506e RW |
7684 | } |
7685 | { | |
7686 | line = $ 0 | |
7687 | nfields = split(line, field, "@") | |
7688 | substed = 0 | |
7689 | len = length(field[1]) | |
7690 | for (i = 2; i < nfields; i++) { | |
7691 | key = field[i] | |
7692 | keylen = length(key) | |
7693 | if (S_is_set[key]) { | |
7694 | value = S[key] | |
7695 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7696 | len += length(value) + length(field[++i]) | |
7697 | substed = 1 | |
7698 | } else | |
7699 | len += 1 + keylen | |
7700 | } | |
79035f0d | 7701 | |
5213506e RW |
7702 | print line |
7703 | } | |
79035f0d | 7704 | |
5213506e RW |
7705 | _ACAWK |
7706 | _ACEOF | |
7707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7708 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7709 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7710 | else | |
7711 | cat | |
22e05272 JM |
7712 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
7713 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e | 7714 | _ACEOF |
79035f0d | 7715 | |
22e05272 JM |
7716 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7717 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
7718 | # trailing colons and then remove the whole line if VPATH becomes empty |
7719 | # (actually we leave an empty line to preserve line numbers). | |
7720 | if test "x$srcdir" = x.; then | |
22e05272 JM |
7721 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7722 | h | |
7723 | s/// | |
7724 | s/^/:/ | |
7725 | s/[ ]*$/:/ | |
7726 | s/:\$(srcdir):/:/g | |
7727 | s/:\${srcdir}:/:/g | |
7728 | s/:@srcdir@:/:/g | |
7729 | s/^:*// | |
5213506e | 7730 | s/:*$// |
22e05272 JM |
7731 | x |
7732 | s/\(=[ ]*\).*/\1/ | |
7733 | G | |
7734 | s/\n// | |
5213506e RW |
7735 | s/^[^=]*=[ ]*$// |
7736 | }' | |
7737 | fi | |
79035f0d | 7738 | |
5213506e RW |
7739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7740 | fi # test -n "$CONFIG_FILES" | |
7741 | ||
7742 | # Set up the scripts for CONFIG_HEADERS section. | |
7743 | # No need to generate them if there are no CONFIG_HEADERS. | |
7744 | # This happens for instance with `./config.status Makefile'. | |
7745 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 7746 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e | 7747 | BEGIN { |
79035f0d NN |
7748 | _ACEOF |
7749 | ||
5213506e RW |
7750 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7751 | # here-document in config.status, that substitutes the proper values into | |
7752 | # config.h.in to produce config.h. | |
7753 | ||
7754 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7755 | # handling of long lines. | |
7756 | ac_delim='%!_!# ' | |
7757 | for ac_last_try in false false :; do | |
22e05272 JM |
7758 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
7759 | if test -z "$ac_tt"; then | |
5213506e RW |
7760 | break |
7761 | elif $ac_last_try; then | |
22e05272 | 7762 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
7763 | else |
7764 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
56694dd9 | 7765 | fi |
5213506e | 7766 | done |
6eb95e99 | 7767 | |
5213506e RW |
7768 | # For the awk script, D is an array of macro values keyed by name, |
7769 | # likewise P contains macro parameters if any. Preserve backslash | |
7770 | # newline sequences. | |
7771 | ||
7772 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7773 | sed -n ' | |
7774 | s/.\{148\}/&'"$ac_delim"'/g | |
7775 | t rset | |
7776 | :rset | |
7777 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7778 | t def | |
7779 | d | |
7780 | :def | |
7781 | s/\\$// | |
7782 | t bsnl | |
7783 | s/["\\]/\\&/g | |
7784 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7785 | D["\1"]=" \3"/p | |
7786 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7787 | d | |
7788 | :bsnl | |
7789 | s/["\\]/\\&/g | |
7790 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7791 | D["\1"]=" \3\\\\\\n"\\/p | |
7792 | t cont | |
7793 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7794 | t cont | |
7795 | d | |
7796 | :cont | |
7797 | n | |
7798 | s/.\{148\}/&'"$ac_delim"'/g | |
7799 | t clear | |
7800 | :clear | |
7801 | s/\\$// | |
7802 | t bsnlc | |
7803 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7804 | d | |
7805 | :bsnlc | |
7806 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7807 | b cont | |
7808 | ' <confdefs.h | sed ' | |
7809 | s/'"$ac_delim"'/"\\\ | |
7810 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7811 | ||
7812 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7813 | for (key in D) D_is_set[key] = 1 | |
7814 | FS = "\a" | |
7815 | } | |
7816 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7817 | line = \$ 0 | |
7818 | split(line, arg, " ") | |
7819 | if (arg[1] == "#") { | |
7820 | defundef = arg[2] | |
7821 | mac1 = arg[3] | |
7822 | } else { | |
7823 | defundef = substr(arg[1], 2) | |
7824 | mac1 = arg[2] | |
7825 | } | |
7826 | split(mac1, mac2, "(") #) | |
7827 | macro = mac2[1] | |
7828 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7829 | if (D_is_set[macro]) { | |
7830 | # Preserve the white space surrounding the "#". | |
7831 | print prefix "define", macro P[macro] D[macro] | |
7832 | next | |
7833 | } else { | |
7834 | # Replace #undef with comments. This is necessary, for example, | |
7835 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7836 | # on some systems where configure will not decide to define it. | |
7837 | if (defundef == "undef") { | |
7838 | print "/*", prefix defundef, macro, "*/" | |
7839 | next | |
7840 | } | |
7841 | } | |
7842 | } | |
7843 | { print } | |
7844 | _ACAWK | |
79035f0d | 7845 | _ACEOF |
5213506e | 7846 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 7847 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
7848 | fi # test -n "$CONFIG_HEADERS" |
7849 | ||
7850 | ||
7851 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
7852 | shift | |
7853 | for ac_tag | |
7854 | do | |
7855 | case $ac_tag in | |
7856 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7857 | esac | |
7858 | case $ac_mode$ac_tag in | |
7859 | :[FHL]*:*);; | |
22e05272 | 7860 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
7861 | :[FH]-) ac_tag=-:-;; |
7862 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7863 | esac | |
7864 | ac_save_IFS=$IFS | |
7865 | IFS=: | |
7866 | set x $ac_tag | |
7867 | IFS=$ac_save_IFS | |
7868 | shift | |
7869 | ac_file=$1 | |
7870 | shift | |
7871 | ||
7872 | case $ac_mode in | |
7873 | :L) ac_source=$1;; | |
7874 | :[FH]) | |
7875 | ac_file_inputs= | |
7876 | for ac_f | |
7877 | do | |
7878 | case $ac_f in | |
22e05272 | 7879 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
7880 | *) # Look for the file first in the build tree, then in the source tree |
7881 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7882 | # because $ac_f cannot contain `:'. | |
7883 | test -f "$ac_f" || | |
7884 | case $ac_f in | |
7885 | [\\/$]*) false;; | |
7886 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7887 | esac || | |
22e05272 | 7888 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
7889 | esac |
7890 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7891 | as_fn_append ac_file_inputs " '$ac_f'" | |
7892 | done | |
7893 | ||
7894 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7895 | # use $as_me), people would be surprised to read: | |
7896 | # /* config.h. Generated by config.status. */ | |
7897 | configure_input='Generated from '` | |
7898 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7899 | `' by configure.' | |
7900 | if test x"$ac_file" != x-; then | |
7901 | configure_input="$ac_file. $configure_input" | |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7903 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7904 | fi | |
7905 | # Neutralize special characters interpreted by sed in replacement strings. | |
7906 | case $configure_input in #( | |
7907 | *\&* | *\|* | *\\* ) | |
7908 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7909 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7910 | *) ac_sed_conf_input=$configure_input;; | |
7911 | esac | |
7912 | ||
7913 | case $ac_tag in | |
22e05272 JM |
7914 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7915 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
7916 | esac |
7917 | ;; | |
6eb95e99 ZW |
7918 | esac |
7919 | ||
5213506e | 7920 | ac_dir=`$as_dirname -- "$ac_file" || |
79035f0d | 7921 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8ab705be KC |
7922 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7923 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
7924 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7925 | $as_echo X"$ac_file" | | |
7926 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7927 | s//\1/ | |
7928 | q | |
7929 | } | |
7930 | /^X\(\/\/\)[^/].*/{ | |
7931 | s//\1/ | |
7932 | q | |
7933 | } | |
7934 | /^X\(\/\/\)$/{ | |
7935 | s//\1/ | |
7936 | q | |
7937 | } | |
7938 | /^X\(\/\).*/{ | |
7939 | s//\1/ | |
7940 | q | |
7941 | } | |
7942 | s/.*/./; q'` | |
7943 | as_dir="$ac_dir"; as_fn_mkdir_p | |
79035f0d NN |
7944 | ac_builddir=. |
7945 | ||
5213506e RW |
7946 | case "$ac_dir" in |
7947 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7948 | *) | |
7949 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7950 | # A ".." for each directory in $ac_dir_suffix. | |
7951 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7952 | case $ac_top_builddir_sub in | |
7953 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7954 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7955 | esac ;; | |
7956 | esac | |
7957 | ac_abs_top_builddir=$ac_pwd | |
7958 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7959 | # for backward compatibility: | |
7960 | ac_top_builddir=$ac_top_build_prefix | |
79035f0d NN |
7961 | |
7962 | case $srcdir in | |
5213506e | 7963 | .) # We are building in place. |
79035f0d | 7964 | ac_srcdir=. |
5213506e RW |
7965 | ac_top_srcdir=$ac_top_builddir_sub |
7966 | ac_abs_top_srcdir=$ac_pwd ;; | |
7967 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
79035f0d | 7968 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
7969 | ac_top_srcdir=$srcdir |
7970 | ac_abs_top_srcdir=$srcdir ;; | |
7971 | *) # Relative name. | |
7972 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7973 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7974 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
79035f0d | 7975 | esac |
5213506e | 7976 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8ab705be | 7977 | |
6eb95e99 | 7978 | |
5213506e RW |
7979 | case $ac_mode in |
7980 | :F) | |
7981 | # | |
7982 | # CONFIG_FILE | |
7983 | # | |
79035f0d NN |
7984 | |
7985 | case $INSTALL in | |
7986 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 7987 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
56694dd9 | 7988 | esac |
5213506e | 7989 | _ACEOF |
6eb95e99 | 7990 | |
5213506e RW |
7991 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7992 | # If the template does not know about datarootdir, expand it. | |
7993 | # FIXME: This hack should be removed a few years after 2.60. | |
7994 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7995 | ac_sed_dataroot=' | |
7996 | /datarootdir/ { | |
7997 | p | |
7998 | q | |
7999 | } | |
8000 | /@datadir@/p | |
8001 | /@docdir@/p | |
8002 | /@infodir@/p | |
8003 | /@localedir@/p | |
8004 | /@mandir@/p' | |
8005 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8006 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8007 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8009 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8010 | _ACEOF | |
8011 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8012 | ac_datarootdir_hack=' | |
8013 | s&@datadir@&$datadir&g | |
8014 | s&@docdir@&$docdir&g | |
8015 | s&@infodir@&$infodir&g | |
8016 | s&@localedir@&$localedir&g | |
8017 | s&@mandir@&$mandir&g | |
8018 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8019 | esac | |
79035f0d | 8020 | _ACEOF |
5213506e RW |
8021 | |
8022 | # Neutralize VPATH when `$srcdir' = `.'. | |
8023 | # Shell code in configure.ac might set extrasub. | |
8024 | # FIXME: do we really want to maintain this feature? | |
8025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8026 | ac_sed_extra="$ac_vpsub | |
79035f0d NN |
8027 | $extrasub |
8028 | _ACEOF | |
5213506e | 8029 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
79035f0d NN |
8030 | :t |
8031 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
8032 | s|@configure_input@|$ac_sed_conf_input|;t t |
8033 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8034 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8035 | s&@srcdir@&$ac_srcdir&;t t | |
8036 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8037 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8038 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8039 | s&@builddir@&$ac_builddir&;t t | |
8040 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8041 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8042 | s&@INSTALL@&$ac_INSTALL&;t t | |
8043 | $ac_datarootdir_hack | |
8044 | " | |
22e05272 JM |
8045 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8046 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
8047 | |
8048 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
8049 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8050 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8051 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 8052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 8053 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 8054 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 8055 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 8056 | |
22e05272 | 8057 | rm -f "$ac_tmp/stdin" |
79035f0d | 8058 | case $ac_file in |
22e05272 JM |
8059 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8060 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 8061 | esac \ |
22e05272 | 8062 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
8063 | ;; |
8064 | :H) | |
8065 | # | |
8066 | # CONFIG_HEADER | |
8067 | # | |
79035f0d | 8068 | if test x"$ac_file" != x-; then |
5213506e RW |
8069 | { |
8070 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
8071 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8072 | } >"$ac_tmp/config.h" \ | |
8073 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8074 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8076 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
79035f0d | 8077 | else |
5213506e | 8078 | rm -f "$ac_file" |
22e05272 JM |
8079 | mv "$ac_tmp/config.h" "$ac_file" \ |
8080 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
79035f0d NN |
8081 | fi |
8082 | else | |
5213506e | 8083 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
8084 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8085 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
79035f0d | 8086 | fi |
5213506e | 8087 | ;; |
8ab705be | 8088 | |
5213506e RW |
8089 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8090 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8091 | ;; | |
8092 | esac | |
79035f0d NN |
8093 | |
8094 | ||
5213506e RW |
8095 | case $ac_file$ac_mode in |
8096 | "default-1":C) | |
6eb95e99 ZW |
8097 | for ac_file in $CONFIG_FILES; do |
8098 | # Support "outfile[:infile[:infile...]]" | |
8099 | case "$ac_file" in | |
8100 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8101 | esac | |
8102 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
8103 | case "$ac_file" in */Makefile.in) | |
8104 | # Adjust a relative srcdir. | |
8105 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
86dfbd58 | 8106 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
6eb95e99 ZW |
8107 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
8108 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
8109 | # In autoconf-2.50 it is called $srcdir. | |
8110 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
8111 | case "$ac_given_srcdir" in | |
8112 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
8113 | /*) top_srcdir="$ac_given_srcdir" ;; | |
8114 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8115 | esac | |
8116 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
8117 | rm -f "$ac_dir/POTFILES" | |
8118 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
8119 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
8120 | POMAKEFILEDEPS="POTFILES.in" | |
8121 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
8122 | # on $ac_dir but don't depend on user-specified configuration | |
8123 | # parameters. | |
8124 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
8125 | # The LINGUAS file contains the set of available languages. | |
8126 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
6b1786aa | 8127 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
6eb95e99 ZW |
8128 | fi |
8129 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
8130 | # Hide the ALL_LINGUAS assigment from automake. | |
8131 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
8132 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
8133 | else | |
6b1786aa | 8134 | # The set of available languages was given in configure.ac. |
6eb95e99 ZW |
8135 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
8136 | fi | |
8137 | case "$ac_given_srcdir" in | |
8138 | .) srcdirpre= ;; | |
8139 | *) srcdirpre='$(srcdir)/' ;; | |
8140 | esac | |
8141 | POFILES= | |
8142 | GMOFILES= | |
8143 | UPDATEPOFILES= | |
8144 | DUMMYPOFILES= | |
8145 | for lang in $ALL_LINGUAS; do | |
8146 | POFILES="$POFILES $srcdirpre$lang.po" | |
8147 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
8148 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
8149 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
8150 | done | |
8151 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
8152 | # environment variable. | |
8153 | INST_LINGUAS= | |
8154 | if test -n "$ALL_LINGUAS"; then | |
8155 | for presentlang in $ALL_LINGUAS; do | |
8156 | useit=no | |
8157 | if test "%UNSET%" != "$LINGUAS"; then | |
8158 | desiredlanguages="$LINGUAS" | |
8159 | else | |
8160 | desiredlanguages="$ALL_LINGUAS" | |
8161 | fi | |
8162 | for desiredlang in $desiredlanguages; do | |
8163 | # Use the presentlang catalog if desiredlang is | |
8164 | # a. equal to presentlang, or | |
8165 | # b. a variant of presentlang (because in this case, | |
8166 | # presentlang can be used as a fallback for messages | |
8167 | # which are not translated in the desiredlang catalog). | |
8168 | case "$desiredlang" in | |
8169 | "$presentlang"*) useit=yes;; | |
8170 | esac | |
8171 | done | |
8172 | if test $useit = yes; then | |
8173 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
8174 | fi | |
8175 | done | |
8176 | fi | |
8177 | CATALOGS= | |
8178 | if test -n "$INST_LINGUAS"; then | |
8179 | for lang in $INST_LINGUAS; do | |
8180 | CATALOGS="$CATALOGS $lang.gmo" | |
8181 | done | |
8182 | fi | |
8183 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
8184 | 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" | |
8185 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
8186 | if test -f "$f"; then | |
8187 | case "$f" in | |
8188 | *.orig | *.bak | *~) ;; | |
8189 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
8190 | esac | |
8191 | fi | |
8192 | done | |
8193 | fi | |
8194 | ;; | |
8195 | esac | |
79035f0d | 8196 | done ;; |
5213506e | 8197 | |
79035f0d | 8198 | esac |
5213506e | 8199 | done # for ac_tag |
6eb95e99 | 8200 | |
79035f0d | 8201 | |
5213506e | 8202 | as_fn_exit 0 |
79035f0d | 8203 | _ACEOF |
79035f0d NN |
8204 | ac_clean_files=$ac_clean_files_save |
8205 | ||
5213506e | 8206 | test $ac_write_fail = 0 || |
22e05272 | 8207 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 8208 | |
79035f0d NN |
8209 | |
8210 | # configure is writing to config.log, and then calls config.status. | |
8211 | # config.status does its own redirection, appending to config.log. | |
8212 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8213 | # by configure, so config.status won't be able to write to it; its | |
8214 | # output is simply discarded. So we exec the FD to /dev/null, | |
8215 | # effectively closing config.log, so it can be properly (re)opened and | |
8216 | # appended to by config.status. When coming back to configure, we | |
8217 | # need to make the FD available again. | |
8218 | if test "$no_create" != yes; then | |
8219 | ac_cs_success=: | |
8220 | ac_config_status_args= | |
8221 | test "$silent" = yes && | |
8222 | ac_config_status_args="$ac_config_status_args --quiet" | |
8223 | exec 5>/dev/null | |
8224 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8225 | exec 5>>config.log | |
8226 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8227 | # would make configure fail if this is the last instruction. | |
22e05272 | 8228 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
8229 | fi |
8230 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8232 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
79035f0d | 8233 | fi |
6eb95e99 | 8234 |