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