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