]>
Commit | Line | Data |
---|---|---|
4f4e53dd PB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 | 3 | # Generated by GNU Autoconf 2.69 for cpplib . |
4f4e53dd PB |
4 | # |
5 | # Report bugs to <gcc-bugs@gcc.gnu.org>. | |
6 | # | |
22e05272 JM |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
5213506e | 10 | # |
4f4e53dd PB |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
4f4e53dd | 16 | |
5213506e RW |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4f4e53dd PB |
20 | emulate sh |
21 | NULLCMD=: | |
5213506e | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4f4e53dd PB |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
25 | setopt NO_GLOB_SUBST |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
4f4e53dd | 33 | fi |
4f4e53dd | 34 | |
5213506e RW |
35 | |
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
4f4e53dd PB |
81 | fi |
82 | ||
83 | ||
5213506e RW |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 92 | as_myself= |
5213506e RW |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
4f4e53dd PB |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
5213506e RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
22e05272 JM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
22e05272 JM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
5213506e RW |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
4f4e53dd | 213 | do |
5213506e RW |
214 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
5213506e RW |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
4f4e53dd | 268 | else |
5213506e RW |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
270 | $0: gcc-bugs@gcc.gnu.org about your system, including any | |
271 | $0: error possibly output before this message. Then install | |
272 | $0: a modern shell, or manually run the script under such a | |
273 | $0: shell if you do have one." | |
4f4e53dd | 274 | fi |
5213506e RW |
275 | exit 1 |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
4f4e53dd | 320 | |
5213506e RW |
321 | case $as_dir in #( |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
359 | |
360 | ||
361 | } # as_fn_mkdir_p | |
22e05272 JM |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
5213506e RW |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
22e05272 JM |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | |
5213506e RW |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 410 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
411 | as_fn_error () |
412 | { | |
22e05272 JM |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 417 | fi |
22e05272 | 418 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
419 | as_fn_exit $as_status |
420 | } # as_fn_error | |
421 | ||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4f4e53dd PB |
424 | as_expr=expr |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
5213506e | 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4f4e53dd PB |
430 | as_basename=basename |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
5213506e RW |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
4f4e53dd | 440 | |
5213506e | 441 | as_me=`$as_basename -- "$0" || |
4f4e53dd PB |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
443 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
445 | $as_echo X/"$0" | | |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
4f4e53dd | 459 | |
4f4e53dd PB |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
466 | ||
4f4e53dd | 467 | |
5213506e RW |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
4f4e53dd | 477 | sed ' |
5213506e RW |
478 | s/[$]LINENO.*/&-/ |
479 | t lineno | |
480 | b | |
481 | :lineno | |
4f4e53dd | 482 | N |
5213506e RW |
483 | :loop |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4f4e53dd | 485 | t loop |
5213506e | 486 | s/-\n.*// |
4f4e53dd | 487 | ' >$as_me.lineno && |
5213506e RW |
488 | chmod +x "$as_me.lineno" || |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
4f4e53dd | 490 | |
22e05272 JM |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
4f4e53dd PB |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
497 | # original and so on. Autoconf is especially sensitive to this). |
498 | . "./$as_me.lineno" | |
4f4e53dd PB |
499 | # Exit status is that of the last command. |
500 | exit | |
501 | } | |
502 | ||
5213506e RW |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
4f4e53dd PB |
514 | esac |
515 | ||
5213506e RW |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
4f4e53dd | 519 | else |
5213506e RW |
520 | rm -f conf$$.dir |
521 | mkdir conf$$.dir 2>/dev/null | |
4f4e53dd | 522 | fi |
5213506e RW |
523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4f4e53dd | 525 | as_ln_s='ln -s' |
5213506e RW |
526 | # ... but there are two gotchas: |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 529 | # In both cases, we have to default to `cp -pR'. |
5213506e | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 531 | as_ln_s='cp -pR' |
5213506e RW |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
22e05272 | 535 | as_ln_s='cp -pR' |
4f4e53dd | 536 | fi |
4f4e53dd | 537 | else |
22e05272 | 538 | as_ln_s='cp -pR' |
4f4e53dd | 539 | fi |
5213506e RW |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
4f4e53dd PB |
542 | |
543 | if mkdir -p . 2>/dev/null; then | |
5213506e | 544 | as_mkdir_p='mkdir -p "$as_dir"' |
4f4e53dd PB |
545 | else |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
548 | fi | |
549 | ||
22e05272 JM |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
4f4e53dd PB |
552 | |
553 | # Sed expression to map a string onto a valid CPP name. | |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | # Sed expression to map a string onto a valid variable name. | |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | ||
559 | ||
22e05272 JM |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
4f4e53dd PB |
562 | |
563 | # Name of the host. | |
22e05272 | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
4f4e53dd PB |
565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
4f4e53dd PB |
568 | # |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
5213506e | 572 | ac_clean_files= |
4f4e53dd | 573 | ac_config_libobj_dir=. |
5213506e | 574 | LIBOBJS= |
4f4e53dd PB |
575 | cross_compiling=no |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
4f4e53dd PB |
579 | |
580 | # Identity of this package. | |
581 | PACKAGE_NAME='cpplib' | |
582 | PACKAGE_TARNAME='cpplib' | |
583 | PACKAGE_VERSION=' ' | |
584 | PACKAGE_STRING='cpplib ' | |
585 | PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org' | |
5213506e | 586 | PACKAGE_URL='' |
4f4e53dd PB |
587 | |
588 | ac_unique_file="ucnid.h" | |
589 | # Factoring default headers for most tests. | |
590 | ac_includes_default="\ | |
591 | #include <stdio.h> | |
5213506e | 592 | #ifdef HAVE_SYS_TYPES_H |
4f4e53dd PB |
593 | # include <sys/types.h> |
594 | #endif | |
5213506e | 595 | #ifdef HAVE_SYS_STAT_H |
4f4e53dd PB |
596 | # include <sys/stat.h> |
597 | #endif | |
5213506e | 598 | #ifdef STDC_HEADERS |
4f4e53dd PB |
599 | # include <stdlib.h> |
600 | # include <stddef.h> | |
601 | #else | |
5213506e | 602 | # ifdef HAVE_STDLIB_H |
4f4e53dd PB |
603 | # include <stdlib.h> |
604 | # endif | |
605 | #endif | |
5213506e RW |
606 | #ifdef HAVE_STRING_H |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4f4e53dd PB |
608 | # include <memory.h> |
609 | # endif | |
610 | # include <string.h> | |
611 | #endif | |
5213506e | 612 | #ifdef HAVE_STRINGS_H |
4f4e53dd PB |
613 | # include <strings.h> |
614 | #endif | |
5213506e | 615 | #ifdef HAVE_INTTYPES_H |
4f4e53dd | 616 | # include <inttypes.h> |
4f4e53dd | 617 | #endif |
5213506e RW |
618 | #ifdef HAVE_STDINT_H |
619 | # include <stdint.h> | |
620 | #endif | |
621 | #ifdef HAVE_UNISTD_H | |
4f4e53dd PB |
622 | # include <unistd.h> |
623 | #endif" | |
624 | ||
5213506e | 625 | ac_subst_vars='LTLIBOBJS |
051da742 | 626 | CET_HOST_FLAGS |
459260ec | 627 | PICFLAG |
251c72a6 MP |
628 | enable_host_pie |
629 | enable_host_shared | |
5213506e RW |
630 | MAINT |
631 | USED_CATALOGS | |
632 | PACKAGE | |
633 | LTLIBICONV | |
634 | LIBICONV | |
635 | CATOBJEXT | |
636 | GENCAT | |
637 | INSTOBJEXT | |
638 | DATADIRNAME | |
639 | CATALOGS | |
640 | POSUB | |
641 | GMSGFMT | |
642 | XGETTEXT | |
643 | INCINTL | |
644 | LIBINTL_DEP | |
645 | LIBINTL | |
646 | USE_NLS | |
647 | ALLOCA | |
648 | LIBOBJS | |
5213506e | 649 | CXXDEPMODE |
5213506e RW |
650 | DEPDIR |
651 | am__leading_dot | |
652 | WERROR | |
e9411247 | 653 | noexception_flags |
5213506e RW |
654 | WARN_PEDANTIC |
655 | c_warn | |
656 | warn | |
909b30a1 | 657 | ETAGS |
5213506e RW |
658 | AUTOHEADER |
659 | AUTOCONF | |
660 | ACLOCAL | |
0e1a989c ILT |
661 | EGREP |
662 | GREP | |
663 | CPP | |
731c4ce0 | 664 | AR |
5213506e RW |
665 | RANLIB |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
676 | INSTALL_DATA | |
677 | INSTALL_SCRIPT | |
678 | INSTALL_PROGRAM | |
679 | SET_MAKE | |
680 | target_os | |
681 | target_vendor | |
682 | target_cpu | |
683 | target | |
684 | host_os | |
685 | host_vendor | |
686 | host_cpu | |
687 | host | |
688 | build_os | |
689 | build_vendor | |
690 | build_cpu | |
691 | build | |
692 | target_alias | |
693 | host_alias | |
694 | build_alias | |
695 | LIBS | |
696 | ECHO_T | |
697 | ECHO_N | |
698 | ECHO_C | |
699 | DEFS | |
700 | mandir | |
701 | localedir | |
702 | libdir | |
703 | psdir | |
704 | pdfdir | |
705 | dvidir | |
706 | htmldir | |
707 | infodir | |
708 | docdir | |
709 | oldincludedir | |
710 | includedir | |
711 | localstatedir | |
712 | sharedstatedir | |
713 | sysconfdir | |
714 | datadir | |
715 | datarootdir | |
716 | libexecdir | |
717 | sbindir | |
718 | bindir | |
719 | program_transform_name | |
720 | prefix | |
721 | exec_prefix | |
722 | PACKAGE_URL | |
723 | PACKAGE_BUGREPORT | |
724 | PACKAGE_STRING | |
725 | PACKAGE_VERSION | |
726 | PACKAGE_TARNAME | |
727 | PACKAGE_NAME | |
728 | PATH_SEPARATOR | |
729 | SHELL' | |
4f4e53dd | 730 | ac_subst_files='' |
5213506e RW |
731 | ac_user_opts=' |
732 | enable_option_checking | |
480767a9 | 733 | enable_largefile |
5213506e RW |
734 | enable_werror_always |
735 | with_gnu_ld | |
736 | enable_rpath | |
737 | with_libiconv_prefix | |
e7c26e04 | 738 | with_libiconv_type |
5213506e RW |
739 | enable_maintainer_mode |
740 | enable_checking | |
5dc99c46 | 741 | enable_canonical_system_headers |
459260ec | 742 | enable_host_shared |
251c72a6 | 743 | enable_host_pie |
051da742 | 744 | enable_cet |
ceb17928 | 745 | enable_valgrind_annotations |
5213506e RW |
746 | ' |
747 | ac_precious_vars='build_alias | |
748 | host_alias | |
749 | target_alias | |
750 | CC | |
751 | CFLAGS | |
752 | LDFLAGS | |
753 | LIBS | |
754 | CPPFLAGS | |
755 | CXX | |
756 | CXXFLAGS | |
757 | CCC | |
0e1a989c | 758 | CPP' |
5213506e | 759 | |
4f4e53dd PB |
760 | |
761 | # Initialize some variables set by options. | |
762 | ac_init_help= | |
763 | ac_init_version=false | |
5213506e RW |
764 | ac_unrecognized_opts= |
765 | ac_unrecognized_sep= | |
4f4e53dd PB |
766 | # The variables have the same names as the options, with |
767 | # dashes changed to underlines. | |
768 | cache_file=/dev/null | |
769 | exec_prefix=NONE | |
770 | no_create= | |
771 | no_recursion= | |
772 | prefix=NONE | |
773 | program_prefix=NONE | |
774 | program_suffix=NONE | |
775 | program_transform_name=s,x,x, | |
776 | silent= | |
777 | site= | |
778 | srcdir= | |
779 | verbose= | |
780 | x_includes=NONE | |
781 | x_libraries=NONE | |
782 | ||
783 | # Installation directory options. | |
784 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
785 | # and all the variables that are supposed to be based on exec_prefix | |
786 | # by default will actually change. | |
787 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 788 | # (The list follows the same order as the GNU Coding Standards.) |
4f4e53dd PB |
789 | bindir='${exec_prefix}/bin' |
790 | sbindir='${exec_prefix}/sbin' | |
791 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
792 | datarootdir='${prefix}/share' |
793 | datadir='${datarootdir}' | |
4f4e53dd PB |
794 | sysconfdir='${prefix}/etc' |
795 | sharedstatedir='${prefix}/com' | |
796 | localstatedir='${prefix}/var' | |
4f4e53dd PB |
797 | includedir='${prefix}/include' |
798 | oldincludedir='/usr/include' | |
5213506e RW |
799 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
800 | infodir='${datarootdir}/info' | |
801 | htmldir='${docdir}' | |
802 | dvidir='${docdir}' | |
803 | pdfdir='${docdir}' | |
804 | psdir='${docdir}' | |
805 | libdir='${exec_prefix}/lib' | |
806 | localedir='${datarootdir}/locale' | |
807 | mandir='${datarootdir}/man' | |
4f4e53dd PB |
808 | |
809 | ac_prev= | |
5213506e | 810 | ac_dashdash= |
4f4e53dd PB |
811 | for ac_option |
812 | do | |
813 | # If the previous option needs an argument, assign it. | |
814 | if test -n "$ac_prev"; then | |
5213506e | 815 | eval $ac_prev=\$ac_option |
4f4e53dd PB |
816 | ac_prev= |
817 | continue | |
818 | fi | |
819 | ||
5213506e | 820 | case $ac_option in |
22e05272 JM |
821 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
822 | *=) ac_optarg= ;; | |
823 | *) ac_optarg=yes ;; | |
5213506e | 824 | esac |
4f4e53dd PB |
825 | |
826 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
827 | ||
5213506e RW |
828 | case $ac_dashdash$ac_option in |
829 | --) | |
830 | ac_dashdash=yes ;; | |
4f4e53dd PB |
831 | |
832 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
833 | ac_prev=bindir ;; | |
834 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
835 | bindir=$ac_optarg ;; | |
836 | ||
837 | -build | --build | --buil | --bui | --bu) | |
838 | ac_prev=build_alias ;; | |
839 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
840 | build_alias=$ac_optarg ;; | |
841 | ||
842 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
843 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
844 | ac_prev=cache_file ;; | |
845 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
846 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
847 | cache_file=$ac_optarg ;; | |
848 | ||
849 | --config-cache | -C) | |
850 | cache_file=config.cache ;; | |
851 | ||
5213506e | 852 | -datadir | --datadir | --datadi | --datad) |
4f4e53dd | 853 | ac_prev=datadir ;; |
5213506e | 854 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4f4e53dd PB |
855 | datadir=$ac_optarg ;; |
856 | ||
5213506e RW |
857 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
858 | | --dataroo | --dataro | --datar) | |
859 | ac_prev=datarootdir ;; | |
860 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
861 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
862 | datarootdir=$ac_optarg ;; | |
863 | ||
4f4e53dd | 864 | -disable-* | --disable-*) |
5213506e | 865 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4f4e53dd | 866 | # Reject names that are not valid shell variable names. |
5213506e | 867 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 868 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
869 | ac_useropt_orig=$ac_useropt |
870 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
871 | case $ac_user_opts in | |
872 | *" | |
873 | "enable_$ac_useropt" | |
874 | "*) ;; | |
875 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
876 | ac_unrecognized_sep=', ';; | |
877 | esac | |
878 | eval enable_$ac_useropt=no ;; | |
879 | ||
880 | -docdir | --docdir | --docdi | --doc | --do) | |
881 | ac_prev=docdir ;; | |
882 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
883 | docdir=$ac_optarg ;; | |
884 | ||
885 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
886 | ac_prev=dvidir ;; | |
887 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
888 | dvidir=$ac_optarg ;; | |
4f4e53dd PB |
889 | |
890 | -enable-* | --enable-*) | |
5213506e | 891 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4f4e53dd | 892 | # Reject names that are not valid shell variable names. |
5213506e | 893 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 894 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
895 | ac_useropt_orig=$ac_useropt |
896 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
897 | case $ac_user_opts in | |
898 | *" | |
899 | "enable_$ac_useropt" | |
900 | "*) ;; | |
901 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
902 | ac_unrecognized_sep=', ';; | |
4f4e53dd | 903 | esac |
5213506e | 904 | eval enable_$ac_useropt=\$ac_optarg ;; |
4f4e53dd PB |
905 | |
906 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
907 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
908 | | --exec | --exe | --ex) | |
909 | ac_prev=exec_prefix ;; | |
910 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
911 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
912 | | --exec=* | --exe=* | --ex=*) | |
913 | exec_prefix=$ac_optarg ;; | |
914 | ||
915 | -gas | --gas | --ga | --g) | |
916 | # Obsolete; use --with-gas. | |
917 | with_gas=yes ;; | |
918 | ||
919 | -help | --help | --hel | --he | -h) | |
920 | ac_init_help=long ;; | |
921 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
922 | ac_init_help=recursive ;; | |
923 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
924 | ac_init_help=short ;; | |
925 | ||
926 | -host | --host | --hos | --ho) | |
927 | ac_prev=host_alias ;; | |
928 | -host=* | --host=* | --hos=* | --ho=*) | |
929 | host_alias=$ac_optarg ;; | |
930 | ||
5213506e RW |
931 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
932 | ac_prev=htmldir ;; | |
933 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
934 | | --ht=*) | |
935 | htmldir=$ac_optarg ;; | |
936 | ||
4f4e53dd PB |
937 | -includedir | --includedir | --includedi | --included | --include \ |
938 | | --includ | --inclu | --incl | --inc) | |
939 | ac_prev=includedir ;; | |
940 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
941 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
942 | includedir=$ac_optarg ;; | |
943 | ||
944 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
945 | ac_prev=infodir ;; | |
946 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
947 | infodir=$ac_optarg ;; | |
948 | ||
949 | -libdir | --libdir | --libdi | --libd) | |
950 | ac_prev=libdir ;; | |
951 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
952 | libdir=$ac_optarg ;; | |
953 | ||
954 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
955 | | --libexe | --libex | --libe) | |
956 | ac_prev=libexecdir ;; | |
957 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
958 | | --libexe=* | --libex=* | --libe=*) | |
959 | libexecdir=$ac_optarg ;; | |
960 | ||
5213506e RW |
961 | -localedir | --localedir | --localedi | --localed | --locale) |
962 | ac_prev=localedir ;; | |
963 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
964 | localedir=$ac_optarg ;; | |
965 | ||
4f4e53dd | 966 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 967 | | --localstate | --localstat | --localsta | --localst | --locals) |
4f4e53dd PB |
968 | ac_prev=localstatedir ;; |
969 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 970 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4f4e53dd PB |
971 | localstatedir=$ac_optarg ;; |
972 | ||
973 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
974 | ac_prev=mandir ;; | |
975 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
976 | mandir=$ac_optarg ;; | |
977 | ||
978 | -nfp | --nfp | --nf) | |
979 | # Obsolete; use --without-fp. | |
980 | with_fp=no ;; | |
981 | ||
982 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
983 | | --no-cr | --no-c | -n) | |
984 | no_create=yes ;; | |
985 | ||
986 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
987 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
988 | no_recursion=yes ;; | |
989 | ||
990 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
991 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
992 | | --oldin | --oldi | --old | --ol | --o) | |
993 | ac_prev=oldincludedir ;; | |
994 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
995 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
996 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
997 | oldincludedir=$ac_optarg ;; | |
998 | ||
999 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1000 | ac_prev=prefix ;; | |
1001 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1002 | prefix=$ac_optarg ;; | |
1003 | ||
1004 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1005 | | --program-pre | --program-pr | --program-p) | |
1006 | ac_prev=program_prefix ;; | |
1007 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1008 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1009 | program_prefix=$ac_optarg ;; | |
1010 | ||
1011 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1012 | | --program-suf | --program-su | --program-s) | |
1013 | ac_prev=program_suffix ;; | |
1014 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1015 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1016 | program_suffix=$ac_optarg ;; | |
1017 | ||
1018 | -program-transform-name | --program-transform-name \ | |
1019 | | --program-transform-nam | --program-transform-na \ | |
1020 | | --program-transform-n | --program-transform- \ | |
1021 | | --program-transform | --program-transfor \ | |
1022 | | --program-transfo | --program-transf \ | |
1023 | | --program-trans | --program-tran \ | |
1024 | | --progr-tra | --program-tr | --program-t) | |
1025 | ac_prev=program_transform_name ;; | |
1026 | -program-transform-name=* | --program-transform-name=* \ | |
1027 | | --program-transform-nam=* | --program-transform-na=* \ | |
1028 | | --program-transform-n=* | --program-transform-=* \ | |
1029 | | --program-transform=* | --program-transfor=* \ | |
1030 | | --program-transfo=* | --program-transf=* \ | |
1031 | | --program-trans=* | --program-tran=* \ | |
1032 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1033 | program_transform_name=$ac_optarg ;; | |
1034 | ||
5213506e RW |
1035 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1036 | ac_prev=pdfdir ;; | |
1037 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1038 | pdfdir=$ac_optarg ;; | |
1039 | ||
1040 | -psdir | --psdir | --psdi | --psd | --ps) | |
1041 | ac_prev=psdir ;; | |
1042 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1043 | psdir=$ac_optarg ;; | |
1044 | ||
4f4e53dd PB |
1045 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1046 | | -silent | --silent | --silen | --sile | --sil) | |
1047 | silent=yes ;; | |
1048 | ||
1049 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1050 | ac_prev=sbindir ;; | |
1051 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1052 | | --sbi=* | --sb=*) | |
1053 | sbindir=$ac_optarg ;; | |
1054 | ||
1055 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1056 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1057 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1058 | | --sha | --sh) | |
1059 | ac_prev=sharedstatedir ;; | |
1060 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1061 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1062 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1063 | | --sha=* | --sh=*) | |
1064 | sharedstatedir=$ac_optarg ;; | |
1065 | ||
1066 | -site | --site | --sit) | |
1067 | ac_prev=site ;; | |
1068 | -site=* | --site=* | --sit=*) | |
1069 | site=$ac_optarg ;; | |
1070 | ||
1071 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1072 | ac_prev=srcdir ;; | |
1073 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1074 | srcdir=$ac_optarg ;; | |
1075 | ||
1076 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1077 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1078 | ac_prev=sysconfdir ;; | |
1079 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1080 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1081 | sysconfdir=$ac_optarg ;; | |
1082 | ||
1083 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1084 | ac_prev=target_alias ;; | |
1085 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1086 | target_alias=$ac_optarg ;; | |
1087 | ||
1088 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1089 | verbose=yes ;; | |
1090 | ||
1091 | -version | --version | --versio | --versi | --vers | -V) | |
1092 | ac_init_version=: ;; | |
1093 | ||
1094 | -with-* | --with-*) | |
5213506e | 1095 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4f4e53dd | 1096 | # Reject names that are not valid shell variable names. |
5213506e | 1097 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1098 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1099 | ac_useropt_orig=$ac_useropt |
1100 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1101 | case $ac_user_opts in | |
1102 | *" | |
1103 | "with_$ac_useropt" | |
1104 | "*) ;; | |
1105 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1106 | ac_unrecognized_sep=', ';; | |
4f4e53dd | 1107 | esac |
5213506e | 1108 | eval with_$ac_useropt=\$ac_optarg ;; |
4f4e53dd PB |
1109 | |
1110 | -without-* | --without-*) | |
5213506e | 1111 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4f4e53dd | 1112 | # Reject names that are not valid shell variable names. |
5213506e | 1113 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1114 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1115 | ac_useropt_orig=$ac_useropt |
1116 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1117 | case $ac_user_opts in | |
1118 | *" | |
1119 | "with_$ac_useropt" | |
1120 | "*) ;; | |
1121 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1122 | ac_unrecognized_sep=', ';; | |
1123 | esac | |
1124 | eval with_$ac_useropt=no ;; | |
4f4e53dd PB |
1125 | |
1126 | --x) | |
1127 | # Obsolete; use --with-x. | |
1128 | with_x=yes ;; | |
1129 | ||
1130 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1131 | | --x-incl | --x-inc | --x-in | --x-i) | |
1132 | ac_prev=x_includes ;; | |
1133 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1134 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1135 | x_includes=$ac_optarg ;; | |
1136 | ||
1137 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1138 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1139 | ac_prev=x_libraries ;; | |
1140 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1141 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1142 | x_libraries=$ac_optarg ;; | |
1143 | ||
22e05272 JM |
1144 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1145 | Try \`$0 --help' for more information" | |
4f4e53dd PB |
1146 | ;; |
1147 | ||
1148 | *=*) | |
1149 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1150 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1151 | case $ac_envvar in #( |
1152 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1153 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1154 | esac |
1155 | eval $ac_envvar=\$ac_optarg | |
4f4e53dd PB |
1156 | export $ac_envvar ;; |
1157 | ||
1158 | *) | |
1159 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1160 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4f4e53dd | 1161 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1162 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1163 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
4f4e53dd PB |
1164 | ;; |
1165 | ||
1166 | esac | |
1167 | done | |
1168 | ||
1169 | if test -n "$ac_prev"; then | |
1170 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1171 | as_fn_error $? "missing argument to $ac_option" |
4f4e53dd PB |
1172 | fi |
1173 | ||
5213506e RW |
1174 | if test -n "$ac_unrecognized_opts"; then |
1175 | case $enable_option_checking in | |
1176 | no) ;; | |
22e05272 | 1177 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1178 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
4f4e53dd | 1179 | esac |
5213506e | 1180 | fi |
4f4e53dd | 1181 | |
5213506e RW |
1182 | # Check all directory arguments for consistency. |
1183 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1184 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1185 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1186 | libdir localedir mandir | |
4f4e53dd | 1187 | do |
5213506e RW |
1188 | eval ac_val=\$$ac_var |
1189 | # Remove trailing slashes. | |
1190 | case $ac_val in | |
1191 | */ ) | |
1192 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1193 | eval $ac_var=\$ac_val;; | |
1194 | esac | |
1195 | # Be sure to have absolute directory names. | |
4f4e53dd | 1196 | case $ac_val in |
5213506e RW |
1197 | [\\/$]* | ?:[\\/]* ) continue;; |
1198 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4f4e53dd | 1199 | esac |
22e05272 | 1200 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
4f4e53dd PB |
1201 | done |
1202 | ||
1203 | # There might be people who depend on the old broken behavior: `$host' | |
1204 | # used to hold the argument of --host etc. | |
1205 | # FIXME: To remove some day. | |
1206 | build=$build_alias | |
1207 | host=$host_alias | |
1208 | target=$target_alias | |
1209 | ||
1210 | # FIXME: To remove some day. | |
1211 | if test "x$host_alias" != x; then | |
1212 | if test "x$build_alias" = x; then | |
1213 | cross_compiling=maybe | |
4f4e53dd PB |
1214 | elif test "x$build_alias" != "x$host_alias"; then |
1215 | cross_compiling=yes | |
1216 | fi | |
1217 | fi | |
1218 | ||
1219 | ac_tool_prefix= | |
1220 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1221 | ||
1222 | test "$silent" = yes && exec 6>/dev/null | |
1223 | ||
1224 | ||
5213506e RW |
1225 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1226 | ac_ls_di=`ls -di .` && | |
1227 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1228 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1229 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1230 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1231 | |
1232 | ||
4f4e53dd PB |
1233 | # Find the source files, if location was not specified. |
1234 | if test -z "$srcdir"; then | |
1235 | ac_srcdir_defaulted=yes | |
5213506e RW |
1236 | # Try the directory containing this script, then the parent directory. |
1237 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1238 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1239 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1240 | X"$as_myself" : 'X\(//\)$' \| \ | |
1241 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1242 | $as_echo X"$as_myself" | | |
1243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1244 | s//\1/ | |
1245 | q | |
1246 | } | |
1247 | /^X\(\/\/\)[^/].*/{ | |
1248 | s//\1/ | |
1249 | q | |
1250 | } | |
1251 | /^X\(\/\/\)$/{ | |
1252 | s//\1/ | |
1253 | q | |
1254 | } | |
1255 | /^X\(\/\).*/{ | |
1256 | s//\1/ | |
1257 | q | |
1258 | } | |
1259 | s/.*/./; q'` | |
4f4e53dd | 1260 | srcdir=$ac_confdir |
5213506e | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
4f4e53dd PB |
1262 | srcdir=.. |
1263 | fi | |
1264 | else | |
1265 | ac_srcdir_defaulted=no | |
1266 | fi | |
5213506e RW |
1267 | if test ! -r "$srcdir/$ac_unique_file"; then |
1268 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1269 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1270 | fi |
1271 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1272 | ac_abs_confdir=`( | |
22e05272 | 1273 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1274 | pwd)` |
1275 | # When building in place, set srcdir=. | |
1276 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1277 | srcdir=. | |
1278 | fi | |
1279 | # Remove unnecessary trailing slashes from srcdir. | |
1280 | # Double slashes in file names in object file debugging info | |
1281 | # mess up M-x gdb in Emacs. | |
1282 | case $srcdir in | |
1283 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1284 | esac | |
1285 | for ac_var in $ac_precious_vars; do | |
1286 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1287 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1288 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1289 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1290 | done | |
4f4e53dd PB |
1291 | |
1292 | # | |
1293 | # Report the --help message. | |
1294 | # | |
1295 | if test "$ac_init_help" = "long"; then | |
1296 | # Omit some internal or obsolete options to make the list less imposing. | |
1297 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1298 | cat <<_ACEOF | |
1299 | \`configure' configures cpplib to adapt to many kinds of systems. | |
1300 | ||
1301 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1302 | ||
1303 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1304 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1305 | ||
1306 | Defaults for the options are specified in brackets. | |
1307 | ||
1308 | Configuration: | |
1309 | -h, --help display this help and exit | |
1310 | --help=short display options specific to this package | |
1311 | --help=recursive display the short help of all the included packages | |
1312 | -V, --version display version information and exit | |
22e05272 | 1313 | -q, --quiet, --silent do not print \`checking ...' messages |
4f4e53dd PB |
1314 | --cache-file=FILE cache test results in FILE [disabled] |
1315 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1316 | -n, --no-create do not create output files | |
1317 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1318 | ||
4f4e53dd PB |
1319 | Installation directories: |
1320 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1321 | [$ac_default_prefix] |
4f4e53dd | 1322 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1323 | [PREFIX] |
4f4e53dd PB |
1324 | |
1325 | By default, \`make install' will install all the files in | |
1326 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1327 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1328 | for instance \`--prefix=\$HOME'. | |
1329 | ||
1330 | For better control, use the options below. | |
1331 | ||
1332 | Fine tuning of the installation directories: | |
5213506e RW |
1333 | --bindir=DIR user executables [EPREFIX/bin] |
1334 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1335 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1336 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1337 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1338 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1339 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1340 | --includedir=DIR C header files [PREFIX/include] | |
1341 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1342 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1343 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1344 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1345 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1346 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1347 | --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib] | |
1348 | --htmldir=DIR html documentation [DOCDIR] | |
1349 | --dvidir=DIR dvi documentation [DOCDIR] | |
1350 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1351 | --psdir=DIR ps documentation [DOCDIR] | |
4f4e53dd PB |
1352 | _ACEOF |
1353 | ||
1354 | cat <<\_ACEOF | |
1355 | ||
4f4e53dd PB |
1356 | System types: |
1357 | --build=BUILD configure for building on BUILD [guessed] | |
1358 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1359 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1360 | _ACEOF | |
1361 | fi | |
1362 | ||
1363 | if test -n "$ac_init_help"; then | |
1364 | case $ac_init_help in | |
1365 | short | recursive ) echo "Configuration of cpplib :";; | |
1366 | esac | |
1367 | cat <<\_ACEOF | |
1368 | ||
1369 | Optional Features: | |
5213506e | 1370 | --disable-option-checking ignore unrecognized --enable/--with options |
4f4e53dd PB |
1371 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1372 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
480767a9 | 1373 | --disable-largefile omit support for large files |
018a4785 | 1374 | --enable-werror-always enable -Werror despite compiler version |
4f4e53dd | 1375 | --disable-rpath do not hardcode runtime library paths |
078e3ffe | 1376 | --enable-maintainer-mode enable rules only needed by maintainers |
1a80db97 JJ |
1377 | --enable-checking[=LIST] |
1378 | enable expensive run-time checks. With LIST, enable | |
1379 | only specific categories of checks. Categories are: | |
1380 | yes,no,all,none,release. Flags are: misc,valgrind or | |
1381 | other strings | |
5dc99c46 SB |
1382 | --enable-canonical-system-headers |
1383 | enable or disable system headers canonicalization | |
459260ec | 1384 | --enable-host-shared build host code as shared libraries |
251c72a6 | 1385 | --enable-host-pie build host code as PIE |
051da742 | 1386 | --enable-cet enable Intel CET in host libraries [default=auto] |
ceb17928 ML |
1387 | --enable-valgrind-annotations |
1388 | enable valgrind runtime interaction | |
4f4e53dd PB |
1389 | |
1390 | Optional Packages: | |
1391 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1392 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1393 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1394 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1395 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
e7c26e04 | 1396 | --with-libiconv-type=TYPE type of library to search for (auto/static/shared) |
4f4e53dd PB |
1397 | |
1398 | Some influential environment variables: | |
1399 | CC C compiler command | |
1400 | CFLAGS C compiler flags | |
1401 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1402 | nonstandard directory <lib dir> | |
5213506e | 1403 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1404 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1405 | you have headers in a nonstandard directory <include dir> |
f1bf410c JQ |
1406 | CXX C++ compiler command |
1407 | CXXFLAGS C++ compiler flags | |
4f4e53dd PB |
1408 | CPP C preprocessor |
1409 | ||
1410 | Use these variables to override the choices made by `configure' or to help | |
1411 | it to find libraries and programs with nonstandard names/locations. | |
1412 | ||
1413 | Report bugs to <gcc-bugs@gcc.gnu.org>. | |
1414 | _ACEOF | |
5213506e | 1415 | ac_status=$? |
4f4e53dd PB |
1416 | fi |
1417 | ||
1418 | if test "$ac_init_help" = "recursive"; then | |
1419 | # If there are subdirs, report their specific --help. | |
4f4e53dd | 1420 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1421 | test -d "$ac_dir" || |
1422 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1423 | continue | |
4f4e53dd PB |
1424 | ac_builddir=. |
1425 | ||
5213506e RW |
1426 | case "$ac_dir" in |
1427 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1428 | *) | |
1429 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1430 | # A ".." for each directory in $ac_dir_suffix. | |
1431 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1432 | case $ac_top_builddir_sub in | |
1433 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1434 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1435 | esac ;; | |
1436 | esac | |
1437 | ac_abs_top_builddir=$ac_pwd | |
1438 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1439 | # for backward compatibility: | |
1440 | ac_top_builddir=$ac_top_build_prefix | |
4f4e53dd PB |
1441 | |
1442 | case $srcdir in | |
5213506e | 1443 | .) # We are building in place. |
4f4e53dd | 1444 | ac_srcdir=. |
5213506e RW |
1445 | ac_top_srcdir=$ac_top_builddir_sub |
1446 | ac_abs_top_srcdir=$ac_pwd ;; | |
1447 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4f4e53dd | 1448 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1449 | ac_top_srcdir=$srcdir |
1450 | ac_abs_top_srcdir=$srcdir ;; | |
1451 | *) # Relative name. | |
1452 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1453 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1454 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4f4e53dd | 1455 | esac |
5213506e RW |
1456 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1457 | ||
1458 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1459 | # Check for guested configure. | |
1460 | if test -f "$ac_srcdir/configure.gnu"; then | |
1461 | echo && | |
1462 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1463 | elif test -f "$ac_srcdir/configure"; then | |
1464 | echo && | |
1465 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4f4e53dd | 1466 | else |
5213506e RW |
1467 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1468 | fi || ac_status=$? | |
1469 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4f4e53dd PB |
1470 | done |
1471 | fi | |
1472 | ||
5213506e | 1473 | test -n "$ac_init_help" && exit $ac_status |
4f4e53dd PB |
1474 | if $ac_init_version; then |
1475 | cat <<\_ACEOF | |
1476 | cpplib configure | |
22e05272 | 1477 | generated by GNU Autoconf 2.69 |
4f4e53dd | 1478 | |
22e05272 | 1479 | Copyright (C) 2012 Free Software Foundation, Inc. |
4f4e53dd PB |
1480 | This configure script is free software; the Free Software Foundation |
1481 | gives unlimited permission to copy, distribute and modify it. | |
1482 | _ACEOF | |
5213506e | 1483 | exit |
4f4e53dd | 1484 | fi |
4f4e53dd | 1485 | |
5213506e RW |
1486 | ## ------------------------ ## |
1487 | ## Autoconf initialization. ## | |
1488 | ## ------------------------ ## | |
4f4e53dd | 1489 | |
5213506e RW |
1490 | # ac_fn_c_try_compile LINENO |
1491 | # -------------------------- | |
1492 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1493 | ac_fn_c_try_compile () | |
4f4e53dd | 1494 | { |
5213506e RW |
1495 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1496 | rm -f conftest.$ac_objext | |
1497 | if { { ac_try="$ac_compile" | |
1498 | case "(($ac_try" in | |
1499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1500 | *) ac_try_echo=$ac_try;; | |
1501 | esac | |
1502 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1503 | $as_echo "$ac_try_echo"; } >&5 | |
1504 | (eval "$ac_compile") 2>conftest.err | |
1505 | ac_status=$? | |
1506 | if test -s conftest.err; then | |
1507 | grep -v '^ *+' conftest.err >conftest.er1 | |
1508 | cat conftest.er1 >&5 | |
1509 | mv -f conftest.er1 conftest.err | |
1510 | fi | |
1511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1512 | test $ac_status = 0; } && { | |
1513 | test -z "$ac_c_werror_flag" || | |
1514 | test ! -s conftest.err | |
1515 | } && test -s conftest.$ac_objext; then : | |
1516 | ac_retval=0 | |
1517 | else | |
1518 | $as_echo "$as_me: failed program was:" >&5 | |
1519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1520 | |
5213506e RW |
1521 | ac_retval=1 |
1522 | fi | |
22e05272 JM |
1523 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1524 | as_fn_set_status $ac_retval | |
4f4e53dd | 1525 | |
5213506e | 1526 | } # ac_fn_c_try_compile |
4f4e53dd | 1527 | |
5213506e RW |
1528 | # ac_fn_cxx_try_compile LINENO |
1529 | # ---------------------------- | |
1530 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1531 | ac_fn_cxx_try_compile () | |
1532 | { | |
1533 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1534 | rm -f conftest.$ac_objext | |
1535 | if { { ac_try="$ac_compile" | |
1536 | case "(($ac_try" in | |
1537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1538 | *) ac_try_echo=$ac_try;; | |
1539 | esac | |
1540 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1541 | $as_echo "$ac_try_echo"; } >&5 | |
1542 | (eval "$ac_compile") 2>conftest.err | |
1543 | ac_status=$? | |
1544 | if test -s conftest.err; then | |
1545 | grep -v '^ *+' conftest.err >conftest.er1 | |
1546 | cat conftest.er1 >&5 | |
1547 | mv -f conftest.er1 conftest.err | |
1548 | fi | |
1549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1550 | test $ac_status = 0; } && { | |
1551 | test -z "$ac_cxx_werror_flag" || | |
1552 | test ! -s conftest.err | |
1553 | } && test -s conftest.$ac_objext; then : | |
1554 | ac_retval=0 | |
1555 | else | |
1556 | $as_echo "$as_me: failed program was:" >&5 | |
1557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1558 | |
5213506e RW |
1559 | ac_retval=1 |
1560 | fi | |
22e05272 JM |
1561 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1562 | as_fn_set_status $ac_retval | |
4f4e53dd | 1563 | |
5213506e | 1564 | } # ac_fn_cxx_try_compile |
4f4e53dd | 1565 | |
5213506e RW |
1566 | # ac_fn_c_try_cpp LINENO |
1567 | # ---------------------- | |
1568 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1569 | ac_fn_c_try_cpp () | |
1570 | { | |
1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1572 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1573 | case "(($ac_try" in | |
1574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1575 | *) ac_try_echo=$ac_try;; | |
1576 | esac | |
1577 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1578 | $as_echo "$ac_try_echo"; } >&5 | |
1579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1580 | ac_status=$? | |
1581 | if test -s conftest.err; then | |
1582 | grep -v '^ *+' conftest.err >conftest.er1 | |
1583 | cat conftest.er1 >&5 | |
1584 | mv -f conftest.er1 conftest.err | |
1585 | fi | |
1586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1587 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1588 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1589 | test ! -s conftest.err | |
1590 | }; then : | |
1591 | ac_retval=0 | |
1592 | else | |
1593 | $as_echo "$as_me: failed program was:" >&5 | |
1594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1595 | |
5213506e RW |
1596 | ac_retval=1 |
1597 | fi | |
22e05272 JM |
1598 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1599 | as_fn_set_status $ac_retval | |
4f4e53dd | 1600 | |
5213506e | 1601 | } # ac_fn_c_try_cpp |
4f4e53dd | 1602 | |
5213506e RW |
1603 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1604 | # ------------------------------------------------------- | |
1605 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1606 | # the include files in INCLUDES and setting the cache variable VAR | |
1607 | # accordingly. | |
1608 | ac_fn_c_check_header_mongrel () | |
1609 | { | |
1610 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1611 | if eval \${$3+:} false; then : |
5213506e RW |
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1613 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1614 | if eval \${$3+:} false; then : |
5213506e RW |
1615 | $as_echo_n "(cached) " >&6 |
1616 | fi | |
1617 | eval ac_res=\$$3 | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1619 | $as_echo "$ac_res" >&6; } | |
1620 | else | |
1621 | # Is the header compilable? | |
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1623 | $as_echo_n "checking $2 usability... " >&6; } | |
1624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1625 | /* end confdefs.h. */ | |
1626 | $4 | |
1627 | #include <$2> | |
4f4e53dd | 1628 | _ACEOF |
5213506e RW |
1629 | if ac_fn_c_try_compile "$LINENO"; then : |
1630 | ac_header_compiler=yes | |
1631 | else | |
1632 | ac_header_compiler=no | |
1633 | fi | |
1634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1636 | $as_echo "$ac_header_compiler" >&6; } | |
4f4e53dd | 1637 | |
5213506e RW |
1638 | # Is the header present? |
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1640 | $as_echo_n "checking $2 presence... " >&6; } | |
1641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1642 | /* end confdefs.h. */ | |
1643 | #include <$2> | |
1644 | _ACEOF | |
1645 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1646 | ac_header_preproc=yes | |
1647 | else | |
1648 | ac_header_preproc=no | |
1649 | fi | |
22e05272 | 1650 | rm -f conftest.err conftest.i conftest.$ac_ext |
5213506e RW |
1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1652 | $as_echo "$ac_header_preproc" >&6; } | |
4f4e53dd | 1653 | |
5213506e RW |
1654 | # So? What about this header? |
1655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1656 | yes:no: ) | |
1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1658 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1660 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1661 | ;; | |
1662 | no:yes:* ) | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1664 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1666 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1668 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1670 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1672 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
22e05272 | 1673 | ( $as_echo "## ----------------------------------- ## |
5213506e | 1674 | ## Report this to gcc-bugs@gcc.gnu.org ## |
22e05272 | 1675 | ## ----------------------------------- ##" |
5213506e RW |
1676 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1677 | ;; | |
1678 | esac | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1680 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1681 | if eval \${$3+:} false; then : |
5213506e RW |
1682 | $as_echo_n "(cached) " >&6 |
1683 | else | |
1684 | eval "$3=\$ac_header_compiler" | |
1685 | fi | |
1686 | eval ac_res=\$$3 | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1688 | $as_echo "$ac_res" >&6; } | |
1689 | fi | |
22e05272 | 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1691 | |
5213506e | 1692 | } # ac_fn_c_check_header_mongrel |
4f4e53dd | 1693 | |
5213506e RW |
1694 | # ac_fn_c_try_run LINENO |
1695 | # ---------------------- | |
1696 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1697 | # that executables *can* be run. | |
1698 | ac_fn_c_try_run () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | if { { ac_try="$ac_link" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_link") 2>&5 | |
1709 | ac_status=$? | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1712 | { { case "(($ac_try" in | |
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1714 | *) ac_try_echo=$ac_try;; | |
1715 | esac | |
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1717 | $as_echo "$ac_try_echo"; } >&5 | |
1718 | (eval "$ac_try") 2>&5 | |
1719 | ac_status=$? | |
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; }; }; then : | |
1722 | ac_retval=0 | |
1723 | else | |
1724 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1727 | |
5213506e RW |
1728 | ac_retval=$ac_status |
1729 | fi | |
1730 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1731 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1732 | as_fn_set_status $ac_retval | |
4f4e53dd | 1733 | |
5213506e | 1734 | } # ac_fn_c_try_run |
4f4e53dd | 1735 | |
5213506e RW |
1736 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1737 | # ------------------------------------------------------- | |
1738 | # Tests whether HEADER exists and can be compiled using the include files in | |
1739 | # INCLUDES, setting the cache variable VAR accordingly. | |
1740 | ac_fn_c_check_header_compile () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1744 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1745 | if eval \${$3+:} false; then : |
5213506e RW |
1746 | $as_echo_n "(cached) " >&6 |
1747 | else | |
1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1749 | /* end confdefs.h. */ | |
1750 | $4 | |
1751 | #include <$2> | |
4f4e53dd | 1752 | _ACEOF |
5213506e RW |
1753 | if ac_fn_c_try_compile "$LINENO"; then : |
1754 | eval "$3=yes" | |
1755 | else | |
1756 | eval "$3=no" | |
1757 | fi | |
1758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1759 | fi | |
1760 | eval ac_res=\$$3 | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1762 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1763 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1764 | |
5213506e | 1765 | } # ac_fn_c_check_header_compile |
4f4e53dd | 1766 | |
0e1a989c ILT |
1767 | # ac_fn_c_try_link LINENO |
1768 | # ----------------------- | |
5213506e | 1769 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
0e1a989c | 1770 | ac_fn_c_try_link () |
5213506e RW |
1771 | { |
1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1774 | if { { ac_try="$ac_link" | |
1775 | case "(($ac_try" in | |
1776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1777 | *) ac_try_echo=$ac_try;; | |
1778 | esac | |
1779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1780 | $as_echo "$ac_try_echo"; } >&5 | |
1781 | (eval "$ac_link") 2>conftest.err | |
1782 | ac_status=$? | |
1783 | if test -s conftest.err; then | |
1784 | grep -v '^ *+' conftest.err >conftest.er1 | |
1785 | cat conftest.er1 >&5 | |
1786 | mv -f conftest.er1 conftest.err | |
1787 | fi | |
1788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1789 | test $ac_status = 0; } && { | |
0e1a989c | 1790 | test -z "$ac_c_werror_flag" || |
5213506e RW |
1791 | test ! -s conftest.err |
1792 | } && test -s conftest$ac_exeext && { | |
1793 | test "$cross_compiling" = yes || | |
22e05272 | 1794 | test -x conftest$ac_exeext |
5213506e RW |
1795 | }; then : |
1796 | ac_retval=0 | |
1797 | else | |
1798 | $as_echo "$as_me: failed program was:" >&5 | |
1799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f4e53dd | 1800 | |
5213506e RW |
1801 | ac_retval=1 |
1802 | fi | |
1803 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1804 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1805 | # interfere with the next link command; also delete a directory that is | |
1806 | # left behind by Apple's compiler. We do this before executing the actions. | |
1807 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1808 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1809 | as_fn_set_status $ac_retval | |
4f4e53dd | 1810 | |
0e1a989c | 1811 | } # ac_fn_c_try_link |
4f4e53dd | 1812 | |
0e1a989c ILT |
1813 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1814 | # ------------------------------------------- | |
5213506e RW |
1815 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
1816 | # variable VAR accordingly. | |
0e1a989c | 1817 | ac_fn_c_check_type () |
5213506e RW |
1818 | { |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1821 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1822 | if eval \${$3+:} false; then : |
5213506e RW |
1823 | $as_echo_n "(cached) " >&6 |
1824 | else | |
1825 | eval "$3=no" | |
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1827 | /* end confdefs.h. */ | |
1828 | $4 | |
1829 | int | |
1830 | main () | |
1831 | { | |
1832 | if (sizeof ($2)) | |
1833 | return 0; | |
1834 | ; | |
1835 | return 0; | |
1836 | } | |
1837 | _ACEOF | |
0e1a989c | 1838 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1840 | /* end confdefs.h. */ | |
1841 | $4 | |
1842 | int | |
1843 | main () | |
1844 | { | |
1845 | if (sizeof (($2))) | |
1846 | return 0; | |
1847 | ; | |
1848 | return 0; | |
1849 | } | |
1850 | _ACEOF | |
0e1a989c | 1851 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd | 1852 | |
5213506e RW |
1853 | else |
1854 | eval "$3=yes" | |
1855 | fi | |
1856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1857 | fi | |
1858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1859 | fi | |
1860 | eval ac_res=\$$3 | |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1862 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1863 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 1864 | |
0e1a989c | 1865 | } # ac_fn_c_check_type |
4f4e53dd | 1866 | |
edf6ddf6 RB |
1867 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
1868 | # ------------------------------------ | |
1869 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
1870 | # accordingly. | |
1871 | ac_fn_c_find_uintX_t () | |
1872 | { | |
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
1875 | $as_echo_n "checking for uint$2_t... " >&6; } | |
22e05272 | 1876 | if eval \${$3+:} false; then : |
edf6ddf6 RB |
1877 | $as_echo_n "(cached) " >&6 |
1878 | else | |
1879 | eval "$3=no" | |
22e05272 JM |
1880 | # Order is important - never check a type that is potentially smaller |
1881 | # than half of the expected target width. | |
edf6ddf6 RB |
1882 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
1883 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1885 | /* end confdefs.h. */ | |
1886 | $ac_includes_default | |
1887 | int | |
1888 | main () | |
1889 | { | |
22e05272 JM |
1890 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
1891 | test_array [0] = 0; | |
1892 | return test_array [0]; | |
edf6ddf6 RB |
1893 | |
1894 | ; | |
1895 | return 0; | |
1896 | } | |
1897 | _ACEOF | |
1898 | if ac_fn_c_try_compile "$LINENO"; then : | |
1899 | case $ac_type in #( | |
1900 | uint$2_t) : | |
1901 | eval "$3=yes" ;; #( | |
1902 | *) : | |
1903 | eval "$3=\$ac_type" ;; | |
1904 | esac | |
1905 | fi | |
1906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22e05272 | 1907 | if eval test \"x\$"$3"\" = x"no"; then : |
edf6ddf6 RB |
1908 | |
1909 | else | |
1910 | break | |
1911 | fi | |
1912 | done | |
1913 | fi | |
1914 | eval ac_res=\$$3 | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1916 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1917 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
edf6ddf6 RB |
1918 | |
1919 | } # ac_fn_c_find_uintX_t | |
1920 | ||
0e1a989c ILT |
1921 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1922 | # -------------------------------------------- | |
5213506e RW |
1923 | # Tries to find the compile-time value of EXPR in a program that includes |
1924 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1925 | # computed | |
0e1a989c | 1926 | ac_fn_c_compute_int () |
5213506e RW |
1927 | { |
1928 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1929 | if test "$cross_compiling" = yes; then | |
1930 | # Depending upon the size, compute the lo and hi bounds. | |
1931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1932 | /* end confdefs.h. */ | |
1933 | $4 | |
1934 | int | |
1935 | main () | |
1936 | { | |
1937 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
1938 | test_array [0] = 0; |
1939 | return test_array [0]; | |
4f4e53dd | 1940 | |
5213506e RW |
1941 | ; |
1942 | return 0; | |
1943 | } | |
1944 | _ACEOF | |
0e1a989c | 1945 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1946 | ac_lo=0 ac_mid=0 |
1947 | while :; do | |
1948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1949 | /* end confdefs.h. */ | |
1950 | $4 | |
1951 | int | |
1952 | main () | |
1953 | { | |
1954 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1955 | test_array [0] = 0; |
1956 | return test_array [0]; | |
4f4e53dd | 1957 | |
5213506e RW |
1958 | ; |
1959 | return 0; | |
1960 | } | |
1961 | _ACEOF | |
0e1a989c | 1962 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1963 | ac_hi=$ac_mid; break |
1964 | else | |
1965 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1966 | if test $ac_lo -le $ac_mid; then | |
1967 | ac_lo= ac_hi= | |
1968 | break | |
1969 | fi | |
1970 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1971 | fi | |
1972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1973 | done | |
1974 | else | |
1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1976 | /* end confdefs.h. */ | |
1977 | $4 | |
1978 | int | |
1979 | main () | |
1980 | { | |
1981 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
1982 | test_array [0] = 0; |
1983 | return test_array [0]; | |
4f4e53dd | 1984 | |
5213506e RW |
1985 | ; |
1986 | return 0; | |
1987 | } | |
1988 | _ACEOF | |
0e1a989c | 1989 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
1990 | ac_hi=-1 ac_mid=-1 |
1991 | while :; do | |
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1993 | /* end confdefs.h. */ | |
1994 | $4 | |
1995 | int | |
1996 | main () | |
1997 | { | |
1998 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
1999 | test_array [0] = 0; |
2000 | return test_array [0]; | |
4f4e53dd | 2001 | |
5213506e RW |
2002 | ; |
2003 | return 0; | |
2004 | } | |
2005 | _ACEOF | |
0e1a989c | 2006 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
2007 | ac_lo=$ac_mid; break |
2008 | else | |
2009 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2010 | if test $ac_mid -le $ac_hi; then | |
2011 | ac_lo= ac_hi= | |
2012 | break | |
2013 | fi | |
2014 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2015 | fi | |
2016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2017 | done | |
2018 | else | |
2019 | ac_lo= ac_hi= | |
2020 | fi | |
2021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2022 | fi | |
2023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2024 | # Binary search between lo and hi bounds. | |
2025 | while test "x$ac_lo" != "x$ac_hi"; do | |
2026 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2028 | /* end confdefs.h. */ | |
2029 | $4 | |
2030 | int | |
2031 | main () | |
2032 | { | |
2033 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2034 | test_array [0] = 0; |
2035 | return test_array [0]; | |
4f4e53dd | 2036 | |
5213506e RW |
2037 | ; |
2038 | return 0; | |
2039 | } | |
2040 | _ACEOF | |
0e1a989c | 2041 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
2042 | ac_hi=$ac_mid |
2043 | else | |
2044 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2045 | fi | |
2046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2047 | done | |
2048 | case $ac_lo in #(( | |
2049 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2050 | '') ac_retval=1 ;; | |
2051 | esac | |
2052 | else | |
2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2054 | /* end confdefs.h. */ | |
2055 | $4 | |
2056 | static long int longval () { return $2; } | |
2057 | static unsigned long int ulongval () { return $2; } | |
2058 | #include <stdio.h> | |
2059 | #include <stdlib.h> | |
2060 | int | |
2061 | main () | |
2062 | { | |
4f4e53dd | 2063 | |
5213506e RW |
2064 | FILE *f = fopen ("conftest.val", "w"); |
2065 | if (! f) | |
2066 | return 1; | |
2067 | if (($2) < 0) | |
2068 | { | |
2069 | long int i = longval (); | |
2070 | if (i != ($2)) | |
2071 | return 1; | |
2072 | fprintf (f, "%ld", i); | |
2073 | } | |
2074 | else | |
2075 | { | |
2076 | unsigned long int i = ulongval (); | |
2077 | if (i != ($2)) | |
2078 | return 1; | |
2079 | fprintf (f, "%lu", i); | |
2080 | } | |
2081 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2082 | on some platforms. */ | |
2083 | return ferror (f) || fclose (f) != 0; | |
4f4e53dd | 2084 | |
5213506e RW |
2085 | ; |
2086 | return 0; | |
2087 | } | |
2088 | _ACEOF | |
0e1a989c | 2089 | if ac_fn_c_try_run "$LINENO"; then : |
5213506e RW |
2090 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2091 | else | |
2092 | ac_retval=1 | |
2093 | fi | |
2094 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2095 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2096 | rm -f conftest.val | |
4f4e53dd | 2097 | |
5213506e | 2098 | fi |
22e05272 JM |
2099 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2100 | as_fn_set_status $ac_retval | |
18c04407 | 2101 | |
0e1a989c | 2102 | } # ac_fn_c_compute_int |
18c04407 | 2103 | |
0e1a989c ILT |
2104 | # ac_fn_c_check_func LINENO FUNC VAR |
2105 | # ---------------------------------- | |
5213506e | 2106 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
0e1a989c | 2107 | ac_fn_c_check_func () |
5213506e RW |
2108 | { |
2109 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2111 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2112 | if eval \${$3+:} false; then : |
5213506e RW |
2113 | $as_echo_n "(cached) " >&6 |
2114 | else | |
2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2116 | /* end confdefs.h. */ | |
2117 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2118 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2119 | #define $2 innocuous_$2 | |
18c04407 | 2120 | |
5213506e RW |
2121 | /* System header to define __stub macros and hopefully few prototypes, |
2122 | which can conflict with char $2 (); below. | |
2123 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2124 | <limits.h> exists even on freestanding compilers. */ | |
4f4e53dd | 2125 | |
5213506e RW |
2126 | #ifdef __STDC__ |
2127 | # include <limits.h> | |
2128 | #else | |
2129 | # include <assert.h> | |
2130 | #endif | |
4f4e53dd | 2131 | |
5213506e | 2132 | #undef $2 |
4f4e53dd | 2133 | |
5213506e RW |
2134 | /* Override any GCC internal prototype to avoid an error. |
2135 | Use char because int might match the return type of a GCC | |
2136 | builtin and then its argument prototype would still apply. */ | |
2137 | #ifdef __cplusplus | |
2138 | extern "C" | |
2139 | #endif | |
2140 | char $2 (); | |
2141 | /* The GNU C library defines this for functions which it implements | |
2142 | to always fail with ENOSYS. Some functions are actually named | |
2143 | something starting with __ and the normal name is an alias. */ | |
2144 | #if defined __stub_$2 || defined __stub___$2 | |
2145 | choke me | |
2146 | #endif | |
88fa57d7 | 2147 | |
5213506e RW |
2148 | int |
2149 | main () | |
2150 | { | |
2151 | return $2 (); | |
2152 | ; | |
2153 | return 0; | |
2154 | } | |
2155 | _ACEOF | |
0e1a989c | 2156 | if ac_fn_c_try_link "$LINENO"; then : |
5213506e | 2157 | eval "$3=yes" |
88fa57d7 | 2158 | else |
5213506e | 2159 | eval "$3=no" |
88fa57d7 | 2160 | fi |
5213506e RW |
2161 | rm -f core conftest.err conftest.$ac_objext \ |
2162 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 2163 | fi |
5213506e RW |
2164 | eval ac_res=\$$3 |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2166 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2167 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 2168 | |
0e1a989c | 2169 | } # ac_fn_c_check_func |
4f4e53dd | 2170 | |
22e05272 JM |
2171 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2172 | # --------------------------------------------- | |
2173 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2174 | # accordingly. | |
0e1a989c | 2175 | ac_fn_c_check_decl () |
5213506e RW |
2176 | { |
2177 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3f247f4 RW |
2178 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2179 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2181 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
22e05272 | 2182 | if eval \${$3+:} false; then : |
5213506e | 2183 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2184 | else |
5213506e RW |
2185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2186 | /* end confdefs.h. */ | |
2187 | $4 | |
2188 | int | |
2189 | main () | |
2190 | { | |
c3f247f4 RW |
2191 | #ifndef $as_decl_name |
2192 | #ifdef __cplusplus | |
2193 | (void) $as_decl_use; | |
2194 | #else | |
2195 | (void) $as_decl_name; | |
2196 | #endif | |
5213506e | 2197 | #endif |
4f4e53dd | 2198 | |
5213506e RW |
2199 | ; |
2200 | return 0; | |
2201 | } | |
2202 | _ACEOF | |
0e1a989c | 2203 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
2204 | eval "$3=yes" |
2205 | else | |
2206 | eval "$3=no" | |
4f4e53dd | 2207 | fi |
5213506e RW |
2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2209 | fi | |
2210 | eval ac_res=\$$3 | |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2212 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2213 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4f4e53dd | 2214 | |
0e1a989c | 2215 | } # ac_fn_c_check_decl |
5b6d595b RO |
2216 | |
2217 | # ac_fn_cxx_try_link LINENO | |
2218 | # ------------------------- | |
2219 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2220 | ac_fn_cxx_try_link () | |
2221 | { | |
2222 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2224 | if { { ac_try="$ac_link" | |
2225 | case "(($ac_try" in | |
2226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2227 | *) ac_try_echo=$ac_try;; | |
2228 | esac | |
2229 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2230 | $as_echo "$ac_try_echo"; } >&5 | |
2231 | (eval "$ac_link") 2>conftest.err | |
2232 | ac_status=$? | |
2233 | if test -s conftest.err; then | |
2234 | grep -v '^ *+' conftest.err >conftest.er1 | |
2235 | cat conftest.er1 >&5 | |
2236 | mv -f conftest.er1 conftest.err | |
2237 | fi | |
2238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2239 | test $ac_status = 0; } && { | |
2240 | test -z "$ac_cxx_werror_flag" || | |
2241 | test ! -s conftest.err | |
2242 | } && test -s conftest$ac_exeext && { | |
2243 | test "$cross_compiling" = yes || | |
22e05272 | 2244 | test -x conftest$ac_exeext |
5b6d595b RO |
2245 | }; then : |
2246 | ac_retval=0 | |
2247 | else | |
2248 | $as_echo "$as_me: failed program was:" >&5 | |
2249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2250 | ||
2251 | ac_retval=1 | |
2252 | fi | |
2253 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2254 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2255 | # interfere with the next link command; also delete a directory that is | |
2256 | # left behind by Apple's compiler. We do this before executing the actions. | |
2257 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2258 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2259 | as_fn_set_status $ac_retval | |
5b6d595b RO |
2260 | |
2261 | } # ac_fn_cxx_try_link | |
5213506e RW |
2262 | cat >config.log <<_ACEOF |
2263 | This file contains any messages produced by compilers while | |
2264 | running configure, to aid debugging if configure makes a mistake. | |
4f4e53dd | 2265 | |
5213506e | 2266 | It was created by cpplib $as_me , which was |
22e05272 | 2267 | generated by GNU Autoconf 2.69. Invocation command line was |
4f4e53dd | 2268 | |
5213506e RW |
2269 | $ $0 $@ |
2270 | ||
2271 | _ACEOF | |
2272 | exec 5>>config.log | |
2273 | { | |
2274 | cat <<_ASUNAME | |
2275 | ## --------- ## | |
2276 | ## Platform. ## | |
2277 | ## --------- ## | |
4f4e53dd | 2278 | |
5213506e RW |
2279 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2280 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2281 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2282 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2283 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4f4e53dd | 2284 | |
5213506e RW |
2285 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2286 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
018a4785 | 2287 | |
5213506e RW |
2288 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2289 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2290 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2291 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2292 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2293 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2294 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
078e3ffe | 2295 | |
5213506e RW |
2296 | _ASUNAME |
2297 | ||
2298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4f4e53dd PB |
2299 | for as_dir in $PATH |
2300 | do | |
2301 | IFS=$as_save_IFS | |
2302 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2303 | $as_echo "PATH: $as_dir" |
2304 | done | |
2305 | IFS=$as_save_IFS | |
f1bf410c | 2306 | |
5213506e | 2307 | } >&5 |
f1bf410c | 2308 | |
5213506e | 2309 | cat >&5 <<_ACEOF |
f1bf410c | 2310 | |
f1bf410c | 2311 | |
5213506e RW |
2312 | ## ----------- ## |
2313 | ## Core tests. ## | |
2314 | ## ----------- ## | |
f1bf410c | 2315 | |
5213506e | 2316 | _ACEOF |
f1bf410c | 2317 | |
f1bf410c | 2318 | |
5213506e RW |
2319 | # Keep a trace of the command line. |
2320 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2321 | # Strip out --silent because we don't want to record it for future runs. | |
2322 | # Also quote any args containing shell meta-characters. | |
2323 | # Make two passes to allow for proper duplicate-argument suppression. | |
2324 | ac_configure_args= | |
2325 | ac_configure_args0= | |
2326 | ac_configure_args1= | |
2327 | ac_must_keep_next=false | |
2328 | for ac_pass in 1 2 | |
2329 | do | |
2330 | for ac_arg | |
2331 | do | |
2332 | case $ac_arg in | |
2333 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2334 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2335 | | -silent | --silent | --silen | --sile | --sil) | |
2336 | continue ;; | |
2337 | *\'*) | |
2338 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2339 | esac | |
2340 | case $ac_pass in | |
2341 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2342 | 2) | |
2343 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2344 | if test $ac_must_keep_next = true; then | |
2345 | ac_must_keep_next=false # Got value, back to normal. | |
2346 | else | |
2347 | case $ac_arg in | |
2348 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2349 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2350 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2351 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2352 | case "$ac_configure_args0 " in | |
2353 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2354 | esac | |
2355 | ;; | |
2356 | -* ) ac_must_keep_next=true ;; | |
2357 | esac | |
f1bf410c | 2358 | fi |
5213506e RW |
2359 | as_fn_append ac_configure_args " '$ac_arg'" |
2360 | ;; | |
2361 | esac | |
f1bf410c | 2362 | done |
5213506e RW |
2363 | done |
2364 | { ac_configure_args0=; unset ac_configure_args0;} | |
2365 | { ac_configure_args1=; unset ac_configure_args1;} | |
f1bf410c | 2366 | |
5213506e RW |
2367 | # When interrupted or exit'd, cleanup temporary files, and complete |
2368 | # config.log. We remove comments because anyway the quotes in there | |
2369 | # would cause problems or look ugly. | |
2370 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2371 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2372 | trap 'exit_status=$? | |
2373 | # Save into config.log some information that might help in debugging. | |
2374 | { | |
2375 | echo | |
f1bf410c | 2376 | |
22e05272 | 2377 | $as_echo "## ---------------- ## |
5213506e | 2378 | ## Cache variables. ## |
22e05272 | 2379 | ## ---------------- ##" |
5213506e RW |
2380 | echo |
2381 | # The following way of writing the cache mishandles newlines in values, | |
2382 | ( | |
2383 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2384 | eval ac_val=\$$ac_var | |
2385 | case $ac_val in #( | |
2386 | *${as_nl}*) | |
2387 | case $ac_var in #( | |
2388 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2389 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2390 | esac | |
2391 | case $ac_var in #( | |
2392 | _ | IFS | as_nl) ;; #( | |
2393 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2394 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2395 | esac ;; | |
2396 | esac | |
2397 | done | |
2398 | (set) 2>&1 | | |
2399 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2400 | *${as_nl}ac_space=\ *) | |
2401 | sed -n \ | |
2402 | "s/'\''/'\''\\\\'\'''\''/g; | |
2403 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2404 | ;; #( | |
2405 | *) | |
2406 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2407 | ;; | |
2408 | esac | | |
2409 | sort | |
2410 | ) | |
2411 | echo | |
f1bf410c | 2412 | |
22e05272 | 2413 | $as_echo "## ----------------- ## |
5213506e | 2414 | ## Output variables. ## |
22e05272 | 2415 | ## ----------------- ##" |
5213506e RW |
2416 | echo |
2417 | for ac_var in $ac_subst_vars | |
2418 | do | |
2419 | eval ac_val=\$$ac_var | |
2420 | case $ac_val in | |
2421 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2422 | esac | |
2423 | $as_echo "$ac_var='\''$ac_val'\''" | |
2424 | done | sort | |
2425 | echo | |
f1bf410c | 2426 | |
5213506e | 2427 | if test -n "$ac_subst_files"; then |
22e05272 | 2428 | $as_echo "## ------------------- ## |
5213506e | 2429 | ## File substitutions. ## |
22e05272 | 2430 | ## ------------------- ##" |
5213506e RW |
2431 | echo |
2432 | for ac_var in $ac_subst_files | |
2433 | do | |
2434 | eval ac_val=\$$ac_var | |
2435 | case $ac_val in | |
2436 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2437 | esac | |
2438 | $as_echo "$ac_var='\''$ac_val'\''" | |
2439 | done | sort | |
2440 | echo | |
f1bf410c | 2441 | fi |
f1bf410c | 2442 | |
5213506e | 2443 | if test -s confdefs.h; then |
22e05272 | 2444 | $as_echo "## ----------- ## |
5213506e | 2445 | ## confdefs.h. ## |
22e05272 | 2446 | ## ----------- ##" |
5213506e RW |
2447 | echo |
2448 | cat confdefs.h | |
2449 | echo | |
2450 | fi | |
2451 | test "$ac_signal" != 0 && | |
2452 | $as_echo "$as_me: caught signal $ac_signal" | |
2453 | $as_echo "$as_me: exit $exit_status" | |
2454 | } >&5 | |
2455 | rm -f core *.core core.conftest.* && | |
2456 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2457 | exit $exit_status | |
2458 | ' 0 | |
2459 | for ac_signal in 1 2 13 15; do | |
2460 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2461 | done | |
2462 | ac_signal=0 | |
f1bf410c | 2463 | |
5213506e RW |
2464 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2465 | rm -f -r conftest* confdefs.h | |
f1bf410c | 2466 | |
5213506e | 2467 | $as_echo "/* confdefs.h */" > confdefs.h |
f1bf410c | 2468 | |
5213506e | 2469 | # Predefined preprocessor variables. |
f1bf410c | 2470 | |
5213506e RW |
2471 | cat >>confdefs.h <<_ACEOF |
2472 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
f1bf410c | 2473 | _ACEOF |
f1bf410c | 2474 | |
5213506e RW |
2475 | cat >>confdefs.h <<_ACEOF |
2476 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
f1bf410c | 2477 | _ACEOF |
f1bf410c | 2478 | |
5213506e RW |
2479 | cat >>confdefs.h <<_ACEOF |
2480 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
f1bf410c JQ |
2481 | _ACEOF |
2482 | ||
5213506e RW |
2483 | cat >>confdefs.h <<_ACEOF |
2484 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
f1bf410c | 2485 | _ACEOF |
f1bf410c | 2486 | |
5213506e RW |
2487 | cat >>confdefs.h <<_ACEOF |
2488 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
f1bf410c | 2489 | _ACEOF |
f1bf410c | 2490 | |
5213506e RW |
2491 | cat >>confdefs.h <<_ACEOF |
2492 | #define PACKAGE_URL "$PACKAGE_URL" | |
f1bf410c JQ |
2493 | _ACEOF |
2494 | ||
f1bf410c | 2495 | |
5213506e RW |
2496 | # Let the site file select an alternate cache file if it wants to. |
2497 | # Prefer an explicitly selected file to automatically selected ones. | |
2498 | ac_site_file1=NONE | |
2499 | ac_site_file2=NONE | |
2500 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2501 | # We do not want a PATH search for config.site. |
2502 | case $CONFIG_SITE in #(( | |
2503 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2504 | */*) ac_site_file1=$CONFIG_SITE;; | |
2505 | *) ac_site_file1=./$CONFIG_SITE;; | |
2506 | esac | |
5213506e RW |
2507 | elif test "x$prefix" != xNONE; then |
2508 | ac_site_file1=$prefix/share/config.site | |
2509 | ac_site_file2=$prefix/etc/config.site | |
2510 | else | |
2511 | ac_site_file1=$ac_default_prefix/share/config.site | |
2512 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2513 | fi | |
2514 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
f1bf410c | 2515 | do |
5213506e | 2516 | test "x$ac_site_file" = xNONE && continue |
22e05272 | 2517 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2519 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2520 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2521 | . "$ac_site_file" \ |
2522 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2524 | as_fn_error $? "failed to load site script $ac_site_file | |
2525 | See \`config.log' for more details" "$LINENO" 5; } | |
f1bf410c | 2526 | fi |
f1bf410c | 2527 | done |
f1bf410c | 2528 | |
5213506e | 2529 | if test -r "$cache_file"; then |
22e05272 JM |
2530 | # Some versions of bash will fail to source /dev/null (special files |
2531 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2532 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2534 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2535 | case $cache_file in | |
2536 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2537 | *) . "./$cache_file";; | |
2538 | esac | |
f1bf410c | 2539 | fi |
f610dd5f | 2540 | else |
5213506e RW |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2542 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2543 | >$cache_file | |
f1bf410c | 2544 | fi |
f1bf410c | 2545 | |
5213506e RW |
2546 | # Check that the precious variables saved in the cache have kept the same |
2547 | # value. | |
2548 | ac_cache_corrupted=false | |
2549 | for ac_var in $ac_precious_vars; do | |
2550 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2551 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2552 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2553 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2554 | case $ac_old_set,$ac_new_set in | |
2555 | set,) | |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2557 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2558 | ac_cache_corrupted=: ;; | |
2559 | ,set) | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2561 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2562 | ac_cache_corrupted=: ;; | |
2563 | ,);; | |
2564 | *) | |
2565 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2566 | # differences in whitespace do not lead to failure. | |
2567 | ac_old_val_w=`echo x $ac_old_val` | |
2568 | ac_new_val_w=`echo x $ac_new_val` | |
2569 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2571 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2572 | ac_cache_corrupted=: | |
2573 | else | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2575 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2576 | eval $ac_var=\$ac_old_val | |
2577 | fi | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2579 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2581 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2582 | fi;; | |
2583 | esac | |
2584 | # Pass precious variables to config.status. | |
2585 | if test "$ac_new_set" = set; then | |
2586 | case $ac_new_val in | |
2587 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2588 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2589 | esac | |
2590 | case " $ac_configure_args " in | |
2591 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2592 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2593 | esac | |
2594 | fi | |
f1bf410c | 2595 | done |
5213506e RW |
2596 | if $ac_cache_corrupted; then |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2600 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2601 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
f610dd5f | 2602 | fi |
5213506e RW |
2603 | ## -------------------- ## |
2604 | ## Main body of script. ## | |
2605 | ## -------------------- ## | |
f610dd5f | 2606 | |
f1bf410c JQ |
2607 | ac_ext=c |
2608 | ac_cpp='$CPP $CPPFLAGS' | |
2609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2612 | ||
f610dd5f | 2613 | |
f610dd5f ZW |
2614 | |
2615 | ||
5213506e RW |
2616 | ac_aux_dir= |
2617 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2618 | if test -f "$ac_dir/install-sh"; then |
2619 | ac_aux_dir=$ac_dir | |
2620 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2621 | break | |
2622 | elif test -f "$ac_dir/install.sh"; then | |
2623 | ac_aux_dir=$ac_dir | |
2624 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2625 | break | |
2626 | elif test -f "$ac_dir/shtool"; then | |
2627 | ac_aux_dir=$ac_dir | |
2628 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2629 | break | |
2630 | fi | |
5213506e RW |
2631 | done |
2632 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2633 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
4f4e53dd | 2634 | fi |
f1bf410c | 2635 | |
5213506e RW |
2636 | # These three variables are undocumented and unsupported, |
2637 | # and are intended to be withdrawn in a future Autoconf release. | |
2638 | # They can cause serious problems if a builder's source tree is in a directory | |
2639 | # whose full name contains unusual characters. | |
2640 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2641 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2642 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
f1bf410c | 2643 | |
4f4e53dd | 2644 | |
5213506e RW |
2645 | # Make sure we can run config.sub. |
2646 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2647 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2648 | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2650 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2651 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2652 | $as_echo_n "(cached) " >&6 |
2653 | else | |
2654 | ac_build_alias=$build_alias | |
2655 | test "x$ac_build_alias" = x && | |
2656 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2657 | test "x$ac_build_alias" = x && | |
22e05272 | 2658 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2659 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2660 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2661 | |
2662 | fi | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2664 | $as_echo "$ac_cv_build" >&6; } | |
2665 | case $ac_cv_build in | |
2666 | *-*-*) ;; | |
22e05272 | 2667 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2668 | esac |
2669 | build=$ac_cv_build | |
2670 | ac_save_IFS=$IFS; IFS='-' | |
2671 | set x $ac_cv_build | |
2672 | shift | |
2673 | build_cpu=$1 | |
2674 | build_vendor=$2 | |
2675 | shift; shift | |
2676 | # Remember, the first character of IFS is used to create $*, | |
2677 | # except with old shells: | |
2678 | build_os=$* | |
2679 | IFS=$ac_save_IFS | |
2680 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f1bf410c | 2681 | |
f1bf410c | 2682 | |
5213506e RW |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2684 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2685 | if ${ac_cv_host+:} false; then : |
5213506e | 2686 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2687 | else |
5213506e RW |
2688 | if test "x$host_alias" = x; then |
2689 | ac_cv_host=$ac_cv_build | |
2690 | else | |
2691 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2692 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
f1bf410c | 2693 | fi |
4f4e53dd PB |
2694 | |
2695 | fi | |
5213506e RW |
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2697 | $as_echo "$ac_cv_host" >&6; } | |
2698 | case $ac_cv_host in | |
2699 | *-*-*) ;; | |
22e05272 | 2700 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e RW |
2701 | esac |
2702 | host=$ac_cv_host | |
2703 | ac_save_IFS=$IFS; IFS='-' | |
2704 | set x $ac_cv_host | |
2705 | shift | |
2706 | host_cpu=$1 | |
2707 | host_vendor=$2 | |
2708 | shift; shift | |
2709 | # Remember, the first character of IFS is used to create $*, | |
2710 | # except with old shells: | |
2711 | host_os=$* | |
2712 | IFS=$ac_save_IFS | |
2713 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4f4e53dd | 2714 | |
f1bf410c | 2715 | |
5213506e RW |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2717 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2718 | if ${ac_cv_target+:} false; then : |
5213506e | 2719 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2720 | else |
5213506e RW |
2721 | if test "x$target_alias" = x; then |
2722 | ac_cv_target=$ac_cv_host | |
2723 | else | |
2724 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2725 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
f1bf410c | 2726 | fi |
f1bf410c JQ |
2727 | |
2728 | fi | |
5213506e RW |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2730 | $as_echo "$ac_cv_target" >&6; } | |
2731 | case $ac_cv_target in | |
2732 | *-*-*) ;; | |
22e05272 | 2733 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e RW |
2734 | esac |
2735 | target=$ac_cv_target | |
2736 | ac_save_IFS=$IFS; IFS='-' | |
2737 | set x $ac_cv_target | |
2738 | shift | |
2739 | target_cpu=$1 | |
2740 | target_vendor=$2 | |
2741 | shift; shift | |
2742 | # Remember, the first character of IFS is used to create $*, | |
2743 | # except with old shells: | |
2744 | target_os=$* | |
2745 | IFS=$ac_save_IFS | |
2746 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
f1bf410c JQ |
2747 | |
2748 | ||
5213506e RW |
2749 | # The aliases save the names the user supplied, while $host etc. |
2750 | # will get canonicalized. | |
2751 | test -n "$target_alias" && | |
2752 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2753 | NONENONEs,x,x, && | |
2754 | program_prefix=${target_alias}- | |
f1bf410c JQ |
2755 | |
2756 | ||
5213506e RW |
2757 | # Checks for programs. |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2759 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2760 | set x ${MAKE-make} | |
2761 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 2762 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 2763 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2764 | else |
5213506e RW |
2765 | cat >conftest.make <<\_ACEOF |
2766 | SHELL = /bin/sh | |
2767 | all: | |
2768 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
f1bf410c | 2769 | _ACEOF |
22e05272 | 2770 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
2771 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2772 | *@@@%%%=?*=@@@%%%*) | |
2773 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2774 | *) | |
2775 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2776 | esac | |
2777 | rm -f conftest.make | |
4f4e53dd | 2778 | fi |
5213506e RW |
2779 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2781 | $as_echo "yes" >&6; } | |
2782 | SET_MAKE= | |
2783 | else | |
2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2785 | $as_echo "no" >&6; } | |
2786 | SET_MAKE="MAKE=${MAKE-make}" | |
4f4e53dd PB |
2787 | fi |
2788 | ||
5213506e RW |
2789 | # Find a good install program. We prefer a C program (faster), |
2790 | # so one script is as good as another. But avoid the broken or | |
2791 | # incompatible versions: | |
2792 | # SysV /etc/install, /usr/sbin/install | |
2793 | # SunOS /usr/etc/install | |
2794 | # IRIX /sbin/install | |
2795 | # AIX /bin/install | |
2796 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2797 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2798 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2799 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2800 | # OS/2's system install, which has a completely different semantic | |
2801 | # ./install, which can be erroneously created by make from ./install.sh. | |
2802 | # Reject install programs that cannot install multiple files. | |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2804 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2805 | if test -z "$INSTALL"; then | |
22e05272 | 2806 | if ${ac_cv_path_install+:} false; then : |
5213506e RW |
2807 | $as_echo_n "(cached) " >&6 |
2808 | else | |
2809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2810 | for as_dir in $PATH | |
2811 | do | |
2812 | IFS=$as_save_IFS | |
2813 | test -z "$as_dir" && as_dir=. | |
2814 | # Account for people who put trailing slashes in PATH elements. | |
2815 | case $as_dir/ in #(( | |
2816 | ./ | .// | /[cC]/* | \ | |
2817 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2818 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2819 | /usr/ucb/* ) ;; | |
2820 | *) | |
2821 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2822 | # Don't use installbsd from OSF since it installs stuff as root | |
2823 | # by default. | |
2824 | for ac_prog in ginstall scoinst install; do | |
2825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2826 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
5213506e RW |
2827 | if test $ac_prog = install && |
2828 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2829 | # AIX install. It has an incompatible calling convention. | |
2830 | : | |
2831 | elif test $ac_prog = install && | |
2832 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2833 | # program-specific install script used by HP pwplus--don't use. | |
2834 | : | |
2835 | else | |
2836 | rm -rf conftest.one conftest.two conftest.dir | |
2837 | echo one > conftest.one | |
2838 | echo two > conftest.two | |
2839 | mkdir conftest.dir | |
2840 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2841 | test -s conftest.one && test -s conftest.two && | |
2842 | test -s conftest.dir/conftest.one && | |
2843 | test -s conftest.dir/conftest.two | |
2844 | then | |
2845 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2846 | break 3 | |
2847 | fi | |
2848 | fi | |
2849 | fi | |
2850 | done | |
2851 | done | |
2852 | ;; | |
2853 | esac | |
f1bf410c | 2854 | |
5213506e RW |
2855 | done |
2856 | IFS=$as_save_IFS | |
f1bf410c | 2857 | |
5213506e | 2858 | rm -rf conftest.one conftest.two conftest.dir |
f1bf410c | 2859 | |
5213506e RW |
2860 | fi |
2861 | if test "${ac_cv_path_install+set}" = set; then | |
2862 | INSTALL=$ac_cv_path_install | |
2863 | else | |
2864 | # As a last resort, use the slow shell script. Don't cache a | |
2865 | # value for INSTALL within a source directory, because that will | |
2866 | # break other packages using the cache if that directory is | |
2867 | # removed, or if the value is a relative name. | |
2868 | INSTALL=$ac_install_sh | |
2869 | fi | |
2870 | fi | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2872 | $as_echo "$INSTALL" >&6; } | |
f1bf410c | 2873 | |
5213506e RW |
2874 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2875 | # It thinks the first close brace ends the variable substitution. | |
2876 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
f1bf410c | 2877 | |
5213506e | 2878 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4f4e53dd | 2879 | |
5213506e | 2880 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4f4e53dd | 2881 | |
5213506e RW |
2882 | ac_ext=c |
2883 | ac_cpp='$CPP $CPPFLAGS' | |
2884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2887 | if test -n "$ac_tool_prefix"; then | |
2888 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2889 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2891 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2892 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2893 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2894 | else |
5213506e RW |
2895 | if test -n "$CC"; then |
2896 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4f4e53dd | 2897 | else |
5213506e RW |
2898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2899 | for as_dir in $PATH | |
2900 | do | |
2901 | IFS=$as_save_IFS | |
2902 | test -z "$as_dir" && as_dir=. | |
2903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2905 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2907 | break 2 | |
2908 | fi | |
2909 | done | |
2910 | done | |
2911 | IFS=$as_save_IFS | |
4f4e53dd | 2912 | |
4f4e53dd | 2913 | fi |
5213506e RW |
2914 | fi |
2915 | CC=$ac_cv_prog_CC | |
2916 | if test -n "$CC"; then | |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2918 | $as_echo "$CC" >&6; } | |
f1bf410c | 2919 | else |
5213506e RW |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2921 | $as_echo "no" >&6; } | |
4f4e53dd PB |
2922 | fi |
2923 | ||
4f4e53dd PB |
2924 | |
2925 | fi | |
5213506e RW |
2926 | if test -z "$ac_cv_prog_CC"; then |
2927 | ac_ct_CC=$CC | |
2928 | # Extract the first word of "gcc", so it can be a program name with args. | |
2929 | set dummy gcc; ac_word=$2 | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2932 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 2933 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 2934 | else |
5213506e RW |
2935 | if test -n "$ac_ct_CC"; then |
2936 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f1bf410c | 2937 | else |
5213506e RW |
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2939 | for as_dir in $PATH | |
4f4e53dd | 2940 | do |
5213506e RW |
2941 | IFS=$as_save_IFS |
2942 | test -z "$as_dir" && as_dir=. | |
2943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2945 | ac_cv_prog_ac_ct_CC="gcc" |
2946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2947 | break 2 | |
4f4e53dd | 2948 | fi |
5213506e RW |
2949 | done |
2950 | done | |
2951 | IFS=$as_save_IFS | |
2952 | ||
4f4e53dd | 2953 | fi |
5213506e RW |
2954 | fi |
2955 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2956 | if test -n "$ac_ct_CC"; then | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2958 | $as_echo "$ac_ct_CC" >&6; } | |
4f4e53dd | 2959 | else |
5213506e RW |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2961 | $as_echo "no" >&6; } | |
4f4e53dd | 2962 | fi |
4f4e53dd | 2963 | |
5213506e RW |
2964 | if test "x$ac_ct_CC" = x; then |
2965 | CC="" | |
4f4e53dd | 2966 | else |
5213506e RW |
2967 | case $cross_compiling:$ac_tool_warned in |
2968 | yes:) | |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2971 | ac_tool_warned=yes ;; | |
2972 | esac | |
2973 | CC=$ac_ct_CC | |
4f4e53dd PB |
2974 | fi |
2975 | else | |
5213506e | 2976 | CC="$ac_cv_prog_CC" |
4f4e53dd | 2977 | fi |
5213506e RW |
2978 | |
2979 | if test -z "$CC"; then | |
2980 | if test -n "$ac_tool_prefix"; then | |
2981 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2982 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2984 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2985 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 2986 | $as_echo_n "(cached) " >&6 |
f1bf410c | 2987 | else |
5213506e RW |
2988 | if test -n "$CC"; then |
2989 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2990 | else | |
2991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2992 | for as_dir in $PATH | |
2993 | do | |
2994 | IFS=$as_save_IFS | |
2995 | test -z "$as_dir" && as_dir=. | |
2996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
2998 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3000 | break 2 | |
3001 | fi | |
3002 | done | |
3003 | done | |
3004 | IFS=$as_save_IFS | |
4f4e53dd PB |
3005 | |
3006 | fi | |
5213506e RW |
3007 | fi |
3008 | CC=$ac_cv_prog_CC | |
3009 | if test -n "$CC"; then | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3011 | $as_echo "$CC" >&6; } | |
3012 | else | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3014 | $as_echo "no" >&6; } | |
4f4e53dd | 3015 | fi |
4f4e53dd | 3016 | |
4f4e53dd | 3017 | |
5213506e | 3018 | fi |
f1bf410c | 3019 | fi |
5213506e RW |
3020 | if test -z "$CC"; then |
3021 | # Extract the first word of "cc", so it can be a program name with args. | |
3022 | set dummy cc; ac_word=$2 | |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3024 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3025 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3026 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3027 | else |
5213506e RW |
3028 | if test -n "$CC"; then |
3029 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3030 | else | |
3031 | ac_prog_rejected=no | |
3032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3033 | for as_dir in $PATH | |
f1bf410c | 3034 | do |
5213506e RW |
3035 | IFS=$as_save_IFS |
3036 | test -z "$as_dir" && as_dir=. | |
3037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3039 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3040 | ac_prog_rejected=yes | |
3041 | continue | |
3042 | fi | |
3043 | ac_cv_prog_CC="cc" | |
3044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3045 | break 2 | |
3046 | fi | |
3047 | done | |
3048 | done | |
3049 | IFS=$as_save_IFS | |
3050 | ||
3051 | if test $ac_prog_rejected = yes; then | |
3052 | # We found a bogon in the path, so make sure we never use it. | |
3053 | set dummy $ac_cv_prog_CC | |
3054 | shift | |
3055 | if test $# != 0; then | |
3056 | # We chose a different compiler from the bogus one. | |
3057 | # However, it has the same basename, so the bogon will be chosen | |
3058 | # first if we set CC to just the basename; use the full file name. | |
3059 | shift | |
3060 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
f1bf410c | 3061 | fi |
f1bf410c | 3062 | fi |
5213506e RW |
3063 | fi |
3064 | fi | |
3065 | CC=$ac_cv_prog_CC | |
3066 | if test -n "$CC"; then | |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3068 | $as_echo "$CC" >&6; } | |
4f4e53dd | 3069 | else |
5213506e RW |
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3071 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3072 | fi |
3073 | ||
5213506e | 3074 | |
f1bf410c | 3075 | fi |
5213506e RW |
3076 | if test -z "$CC"; then |
3077 | if test -n "$ac_tool_prefix"; then | |
3078 | for ac_prog in cl.exe | |
3079 | do | |
3080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3083 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3084 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3085 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3086 | else |
5213506e RW |
3087 | if test -n "$CC"; then |
3088 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3089 | else | |
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3091 | for as_dir in $PATH | |
3092 | do | |
3093 | IFS=$as_save_IFS | |
3094 | test -z "$as_dir" && as_dir=. | |
3095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3097 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3099 | break 2 | |
3100 | fi | |
3101 | done | |
3102 | done | |
3103 | IFS=$as_save_IFS | |
4f4e53dd | 3104 | |
4f4e53dd | 3105 | fi |
5213506e RW |
3106 | fi |
3107 | CC=$ac_cv_prog_CC | |
3108 | if test -n "$CC"; then | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3110 | $as_echo "$CC" >&6; } | |
f1bf410c | 3111 | else |
5213506e RW |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3113 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3114 | fi |
3115 | ||
4f4e53dd | 3116 | |
5213506e RW |
3117 | test -n "$CC" && break |
3118 | done | |
4f4e53dd | 3119 | fi |
5213506e RW |
3120 | if test -z "$CC"; then |
3121 | ac_ct_CC=$CC | |
3122 | for ac_prog in cl.exe | |
3123 | do | |
3124 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3125 | set dummy $ac_prog; ac_word=$2 | |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3127 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3128 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3129 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3130 | else |
5213506e RW |
3131 | if test -n "$ac_ct_CC"; then |
3132 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4f4e53dd | 3133 | else |
5213506e RW |
3134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3135 | for as_dir in $PATH | |
3136 | do | |
3137 | IFS=$as_save_IFS | |
3138 | test -z "$as_dir" && as_dir=. | |
3139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3141 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3143 | break 2 | |
3144 | fi | |
3145 | done | |
3146 | done | |
3147 | IFS=$as_save_IFS | |
4f4e53dd | 3148 | |
4f4e53dd | 3149 | fi |
4f4e53dd | 3150 | fi |
5213506e RW |
3151 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3152 | if test -n "$ac_ct_CC"; then | |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3154 | $as_echo "$ac_ct_CC" >&6; } | |
4f4e53dd | 3155 | else |
5213506e RW |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3157 | $as_echo "no" >&6; } | |
4f4e53dd | 3158 | fi |
4f4e53dd | 3159 | |
5213506e RW |
3160 | |
3161 | test -n "$ac_ct_CC" && break | |
3162 | done | |
3163 | ||
3164 | if test "x$ac_ct_CC" = x; then | |
3165 | CC="" | |
3166 | else | |
3167 | case $cross_compiling:$ac_tool_warned in | |
3168 | yes:) | |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3171 | ac_tool_warned=yes ;; | |
4f4e53dd | 3172 | esac |
5213506e RW |
3173 | CC=$ac_ct_CC |
3174 | fi | |
4f4e53dd | 3175 | fi |
4f4e53dd PB |
3176 | |
3177 | fi | |
4f4e53dd | 3178 | |
4f4e53dd | 3179 | |
5213506e RW |
3180 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3182 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3183 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3184 | |
5213506e RW |
3185 | # Provide some information about the compiler. |
3186 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3187 | set X $ac_compile | |
3188 | ac_compiler=$2 | |
3189 | for ac_option in --version -v -V -qversion; do | |
3190 | { { ac_try="$ac_compiler $ac_option >&5" | |
3191 | case "(($ac_try" in | |
3192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3193 | *) ac_try_echo=$ac_try;; | |
3194 | esac | |
3195 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3196 | $as_echo "$ac_try_echo"; } >&5 | |
3197 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3198 | ac_status=$? | |
3199 | if test -s conftest.err; then | |
3200 | sed '10a\ | |
3201 | ... rest of stderr output deleted ... | |
3202 | 10q' conftest.err >conftest.er1 | |
3203 | cat conftest.er1 >&5 | |
5213506e | 3204 | fi |
22e05272 | 3205 | rm -f conftest.er1 conftest.err |
5213506e RW |
3206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3207 | test $ac_status = 0; } | |
3208 | done | |
4f4e53dd | 3209 | |
5213506e | 3210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
3211 | /* end confdefs.h. */ |
3212 | ||
3213 | int | |
3214 | main () | |
3215 | { | |
4f4e53dd PB |
3216 | |
3217 | ; | |
3218 | return 0; | |
3219 | } | |
3220 | _ACEOF | |
5213506e | 3221 | ac_clean_files_save=$ac_clean_files |
22e05272 | 3222 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
5213506e RW |
3223 | # Try to create an executable without -o first, disregard a.out. |
3224 | # It will help us diagnose broken compilers, and finding out an intuition | |
3225 | # of exeext. | |
22e05272 JM |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3227 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e | 3228 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4f4e53dd | 3229 | |
5213506e RW |
3230 | # The possible output files: |
3231 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4f4e53dd | 3232 | |
5213506e RW |
3233 | ac_rmfiles= |
3234 | for ac_file in $ac_files | |
3235 | do | |
3236 | case $ac_file in | |
3237 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3238 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3239 | esac | |
3240 | done | |
3241 | rm -f $ac_rmfiles | |
4f4e53dd | 3242 | |
5213506e RW |
3243 | if { { ac_try="$ac_link_default" |
3244 | case "(($ac_try" in | |
3245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3246 | *) ac_try_echo=$ac_try;; | |
3247 | esac | |
3248 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3249 | $as_echo "$ac_try_echo"; } >&5 | |
3250 | (eval "$ac_link_default") 2>&5 | |
3251 | ac_status=$? | |
3252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3253 | test $ac_status = 0; }; then : | |
3254 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3255 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3256 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3257 | # so that the user can short-circuit this test for compilers unknown to | |
3258 | # Autoconf. | |
3259 | for ac_file in $ac_files '' | |
3260 | do | |
3261 | test -f "$ac_file" || continue | |
3262 | case $ac_file in | |
3263 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3264 | ;; | |
3265 | [ab].out ) | |
3266 | # We found the default executable, but exeext='' is most | |
3267 | # certainly right. | |
3268 | break;; | |
3269 | *.* ) | |
3270 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3271 | then :; else | |
3272 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3273 | fi | |
3274 | # We set ac_cv_exeext here because the later test for it is not | |
3275 | # safe: cross compilers may not add the suffix if given an `-o' | |
3276 | # argument, so we may need to know it at that point already. | |
3277 | # Even if this section looks crufty: it has the advantage of | |
3278 | # actually working. | |
3279 | break;; | |
3280 | * ) | |
3281 | break;; | |
3282 | esac | |
3283 | done | |
3284 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4f4e53dd | 3285 | |
4f4e53dd | 3286 | else |
5213506e | 3287 | ac_file='' |
4f4e53dd | 3288 | fi |
5213506e | 3289 | if test -z "$ac_file"; then : |
22e05272 JM |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3291 | $as_echo "no" >&6; } | |
3292 | $as_echo "$as_me: failed program was:" >&5 | |
5213506e | 3293 | sed 's/^/| /' conftest.$ac_ext >&5 |
4f4e53dd | 3294 | |
5213506e RW |
3295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3297 | as_fn_error 77 "C compiler cannot create executables |
3298 | See \`config.log' for more details" "$LINENO" 5; } | |
3299 | else | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3301 | $as_echo "yes" >&6; } | |
4f4e53dd | 3302 | fi |
22e05272 JM |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3304 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3306 | $as_echo "$ac_file" >&6; } | |
5213506e | 3307 | ac_exeext=$ac_cv_exeext |
4f4e53dd | 3308 | |
22e05272 | 3309 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
5213506e | 3310 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3312 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3313 | if { { ac_try="$ac_link" | |
3314 | case "(($ac_try" in | |
3315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3316 | *) ac_try_echo=$ac_try;; | |
4f4e53dd | 3317 | esac |
5213506e RW |
3318 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3319 | $as_echo "$ac_try_echo"; } >&5 | |
3320 | (eval "$ac_link") 2>&5 | |
3321 | ac_status=$? | |
3322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3323 | test $ac_status = 0; }; then : | |
3324 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3325 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3326 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3327 | # `rm'. | |
3328 | for ac_file in conftest.exe conftest conftest.*; do | |
3329 | test -f "$ac_file" || continue | |
3330 | case $ac_file in | |
3331 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3332 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3333 | break;; | |
3334 | * ) break;; | |
3335 | esac | |
3336 | done | |
3337 | else | |
3338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3340 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3341 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3342 | fi |
22e05272 | 3343 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3345 | $as_echo "$ac_cv_exeext" >&6; } | |
4f4e53dd | 3346 | |
5213506e RW |
3347 | rm -f conftest.$ac_ext |
3348 | EXEEXT=$ac_cv_exeext | |
3349 | ac_exeext=$EXEEXT | |
22e05272 JM |
3350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3351 | /* end confdefs.h. */ | |
3352 | #include <stdio.h> | |
3353 | int | |
3354 | main () | |
3355 | { | |
3356 | FILE *f = fopen ("conftest.out", "w"); | |
3357 | return ferror (f) || fclose (f) != 0; | |
3358 | ||
3359 | ; | |
3360 | return 0; | |
3361 | } | |
3362 | _ACEOF | |
3363 | ac_clean_files="$ac_clean_files conftest.out" | |
3364 | # Check that the compiler produces executables we can run. If not, either | |
3365 | # the compiler is broken, or we cross compile. | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3367 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3368 | if test "$cross_compiling" != yes; then | |
3369 | { { ac_try="$ac_link" | |
3370 | case "(($ac_try" in | |
3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3372 | *) ac_try_echo=$ac_try;; | |
3373 | esac | |
3374 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3375 | $as_echo "$ac_try_echo"; } >&5 | |
3376 | (eval "$ac_link") 2>&5 | |
3377 | ac_status=$? | |
3378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3379 | test $ac_status = 0; } | |
3380 | if { ac_try='./conftest$ac_cv_exeext' | |
3381 | { { case "(($ac_try" in | |
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3383 | *) ac_try_echo=$ac_try;; | |
3384 | esac | |
3385 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3386 | $as_echo "$ac_try_echo"; } >&5 | |
3387 | (eval "$ac_try") 2>&5 | |
3388 | ac_status=$? | |
3389 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3390 | test $ac_status = 0; }; }; then | |
3391 | cross_compiling=no | |
3392 | else | |
3393 | if test "$cross_compiling" = maybe; then | |
3394 | cross_compiling=yes | |
3395 | else | |
3396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3397 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3398 | as_fn_error $? "cannot run C compiled programs. | |
3399 | If you meant to cross compile, use \`--host'. | |
3400 | See \`config.log' for more details" "$LINENO" 5; } | |
3401 | fi | |
3402 | fi | |
3403 | fi | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3405 | $as_echo "$cross_compiling" >&6; } | |
3406 | ||
3407 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3408 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3410 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3411 | if ${ac_cv_objext+:} false; then : |
5213506e | 3412 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3413 | else |
5213506e | 3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 3415 | /* end confdefs.h. */ |
5213506e | 3416 | |
4f4e53dd PB |
3417 | int |
3418 | main () | |
3419 | { | |
5213506e | 3420 | |
4f4e53dd PB |
3421 | ; |
3422 | return 0; | |
3423 | } | |
3424 | _ACEOF | |
5213506e RW |
3425 | rm -f conftest.o conftest.obj |
3426 | if { { ac_try="$ac_compile" | |
3427 | case "(($ac_try" in | |
3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3429 | *) ac_try_echo=$ac_try;; | |
3430 | esac | |
3431 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3432 | $as_echo "$ac_try_echo"; } >&5 | |
3433 | (eval "$ac_compile") 2>&5 | |
3434 | ac_status=$? | |
3435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3436 | test $ac_status = 0; }; then : | |
3437 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3438 | test -f "$ac_file" || continue; | |
3439 | case $ac_file in | |
3440 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3441 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3442 | break;; | |
3443 | esac | |
3444 | done | |
4f4e53dd | 3445 | else |
5213506e | 3446 | $as_echo "$as_me: failed program was:" >&5 |
4f4e53dd PB |
3447 | sed 's/^/| /' conftest.$ac_ext >&5 |
3448 | ||
5213506e RW |
3449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3450 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3451 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3452 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 3453 | fi |
5213506e | 3454 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4f4e53dd | 3455 | fi |
5213506e RW |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3457 | $as_echo "$ac_cv_objext" >&6; } | |
3458 | OBJEXT=$ac_cv_objext | |
3459 | ac_objext=$OBJEXT | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3461 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3462 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 3463 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3464 | else |
5213506e RW |
3465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3466 | /* end confdefs.h. */ | |
4f4e53dd | 3467 | |
5213506e RW |
3468 | int |
3469 | main () | |
3470 | { | |
3471 | #ifndef __GNUC__ | |
3472 | choke me | |
3473 | #endif | |
4f4e53dd | 3474 | |
5213506e RW |
3475 | ; |
3476 | return 0; | |
3477 | } | |
3478 | _ACEOF | |
3479 | if ac_fn_c_try_compile "$LINENO"; then : | |
3480 | ac_compiler_gnu=yes | |
3481 | else | |
3482 | ac_compiler_gnu=no | |
4f4e53dd | 3483 | fi |
5213506e RW |
3484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3485 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4f4e53dd | 3486 | |
5213506e RW |
3487 | fi |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3489 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3490 | if test $ac_compiler_gnu = yes; then | |
3491 | GCC=yes | |
4f4e53dd | 3492 | else |
5213506e RW |
3493 | GCC= |
3494 | fi | |
3495 | ac_test_CFLAGS=${CFLAGS+set} | |
3496 | ac_save_CFLAGS=$CFLAGS | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3498 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3499 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
3500 | $as_echo_n "(cached) " >&6 |
3501 | else | |
3502 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3503 | ac_c_werror_flag=yes | |
3504 | ac_cv_prog_cc_g=no | |
3505 | CFLAGS="-g" | |
3506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3507 | /* end confdefs.h. */ |
5213506e | 3508 | |
4f4e53dd PB |
3509 | int |
3510 | main () | |
3511 | { | |
5213506e | 3512 | |
4f4e53dd PB |
3513 | ; |
3514 | return 0; | |
3515 | } | |
3516 | _ACEOF | |
5213506e RW |
3517 | if ac_fn_c_try_compile "$LINENO"; then : |
3518 | ac_cv_prog_cc_g=yes | |
4f4e53dd | 3519 | else |
5213506e RW |
3520 | CFLAGS="" |
3521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3522 | /* end confdefs.h. */ | |
4f4e53dd | 3523 | |
5213506e RW |
3524 | int |
3525 | main () | |
3526 | { | |
4f4e53dd | 3527 | |
5213506e RW |
3528 | ; |
3529 | return 0; | |
3530 | } | |
4f4e53dd | 3531 | _ACEOF |
5213506e | 3532 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd | 3533 | |
d56a25e1 | 3534 | else |
5213506e RW |
3535 | ac_c_werror_flag=$ac_save_c_werror_flag |
3536 | CFLAGS="-g" | |
3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d56a25e1 | 3538 | /* end confdefs.h. */ |
5213506e | 3539 | |
d56a25e1 TT |
3540 | int |
3541 | main () | |
3542 | { | |
5213506e | 3543 | |
d56a25e1 TT |
3544 | ; |
3545 | return 0; | |
3546 | } | |
3547 | _ACEOF | |
5213506e RW |
3548 | if ac_fn_c_try_compile "$LINENO"; then : |
3549 | ac_cv_prog_cc_g=yes | |
d56a25e1 | 3550 | fi |
5213506e | 3551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d56a25e1 | 3552 | fi |
5213506e RW |
3553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3554 | fi | |
3555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3556 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3557 | fi | |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3559 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3560 | if test "$ac_test_CFLAGS" = set; then | |
3561 | CFLAGS=$ac_save_CFLAGS | |
3562 | elif test $ac_cv_prog_cc_g = yes; then | |
3563 | if test "$GCC" = yes; then | |
3564 | CFLAGS="-g -O2" | |
3565 | else | |
3566 | CFLAGS="-g" | |
3567 | fi | |
d56a25e1 | 3568 | else |
5213506e RW |
3569 | if test "$GCC" = yes; then |
3570 | CFLAGS="-O2" | |
3571 | else | |
3572 | CFLAGS= | |
3573 | fi | |
d56a25e1 | 3574 | fi |
5213506e RW |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3576 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3577 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 3578 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3579 | else |
5213506e RW |
3580 | ac_cv_prog_cc_c89=no |
3581 | ac_save_CC=$CC | |
3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3583 | /* end confdefs.h. */ |
5213506e RW |
3584 | #include <stdarg.h> |
3585 | #include <stdio.h> | |
22e05272 | 3586 | struct stat; |
5213506e RW |
3587 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3588 | struct buf { int x; }; | |
3589 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3590 | static char *e (p, i) | |
3591 | char **p; | |
3592 | int i; | |
3593 | { | |
3594 | return p[i]; | |
3595 | } | |
3596 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3597 | { | |
3598 | char *s; | |
3599 | va_list v; | |
3600 | va_start (v,p); | |
3601 | s = g (p, va_arg (v,int)); | |
3602 | va_end (v); | |
3603 | return s; | |
3604 | } | |
4f4e53dd | 3605 | |
5213506e RW |
3606 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3607 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3608 | These don't provoke an error unfortunately, instead are silently treated | |
3609 | as 'x'. The following induces an error, until -std is added to get | |
3610 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3611 | array size at least. It's necessary to write '\x00'==0 to get something | |
3612 | that's true only with -std. */ | |
3613 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3614 | ||
3615 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3616 | inside strings and character constants. */ | |
3617 | #define FOO(x) 'x' | |
3618 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3619 | ||
3620 | int test (int i, double x); | |
3621 | struct s1 {int (*f) (int a);}; | |
3622 | struct s2 {int (*f) (double a);}; | |
3623 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3624 | int argc; | |
3625 | char **argv; | |
4f4e53dd PB |
3626 | int |
3627 | main () | |
3628 | { | |
5213506e | 3629 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4f4e53dd PB |
3630 | ; |
3631 | return 0; | |
3632 | } | |
3633 | _ACEOF | |
5213506e RW |
3634 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3635 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3636 | do | |
3637 | CC="$ac_save_CC $ac_arg" | |
3638 | if ac_fn_c_try_compile "$LINENO"; then : | |
3639 | ac_cv_prog_cc_c89=$ac_arg | |
3640 | fi | |
3641 | rm -f core conftest.err conftest.$ac_objext | |
3642 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3643 | done | |
3644 | rm -f conftest.$ac_ext | |
3645 | CC=$ac_save_CC | |
4f4e53dd | 3646 | |
4f4e53dd | 3647 | fi |
5213506e RW |
3648 | # AC_CACHE_VAL |
3649 | case "x$ac_cv_prog_cc_c89" in | |
3650 | x) | |
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3652 | $as_echo "none needed" >&6; } ;; | |
3653 | xno) | |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3655 | $as_echo "unsupported" >&6; } ;; | |
3656 | *) | |
3657 | CC="$CC $ac_cv_prog_cc_c89" | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3659 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3660 | esac | |
3661 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3662 | ||
4f4e53dd | 3663 | fi |
4f4e53dd | 3664 | |
5213506e RW |
3665 | ac_ext=c |
3666 | ac_cpp='$CPP $CPPFLAGS' | |
3667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3670 | ||
3671 | ac_ext=cpp | |
3672 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3673 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3674 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3675 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3676 | if test -z "$CXX"; then | |
3677 | if test -n "$CCC"; then | |
3678 | CXX=$CCC | |
3679 | else | |
3680 | if test -n "$ac_tool_prefix"; then | |
3681 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3682 | do | |
3683 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3684 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3686 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3687 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e RW |
3688 | $as_echo_n "(cached) " >&6 |
3689 | else | |
3690 | if test -n "$CXX"; then | |
3691 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3692 | else | |
3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3694 | for as_dir in $PATH | |
3695 | do | |
3696 | IFS=$as_save_IFS | |
3697 | test -z "$as_dir" && as_dir=. | |
3698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3700 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3702 | break 2 | |
3703 | fi | |
3704 | done | |
3705 | done | |
3706 | IFS=$as_save_IFS | |
4f4e53dd | 3707 | |
5213506e RW |
3708 | fi |
3709 | fi | |
3710 | CXX=$ac_cv_prog_CXX | |
3711 | if test -n "$CXX"; then | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3713 | $as_echo "$CXX" >&6; } | |
3714 | else | |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3716 | $as_echo "no" >&6; } | |
4f4e53dd PB |
3717 | fi |
3718 | ||
5213506e RW |
3719 | |
3720 | test -n "$CXX" && break | |
3721 | done | |
3722 | fi | |
3723 | if test -z "$CXX"; then | |
3724 | ac_ct_CXX=$CXX | |
3725 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3726 | do | |
3727 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3728 | set dummy $ac_prog; ac_word=$2 | |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3730 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3731 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 3732 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3733 | else |
5213506e RW |
3734 | if test -n "$ac_ct_CXX"; then |
3735 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4f4e53dd | 3736 | else |
5213506e RW |
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3738 | for as_dir in $PATH | |
3739 | do | |
3740 | IFS=$as_save_IFS | |
3741 | test -z "$as_dir" && as_dir=. | |
3742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3744 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3746 | break 2 | |
3747 | fi | |
3748 | done | |
3749 | done | |
3750 | IFS=$as_save_IFS | |
3751 | ||
3752 | fi | |
3753 | fi | |
3754 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3755 | if test -n "$ac_ct_CXX"; then | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3757 | $as_echo "$ac_ct_CXX" >&6; } | |
3758 | else | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3760 | $as_echo "no" >&6; } | |
3761 | fi | |
3762 | ||
3763 | ||
3764 | test -n "$ac_ct_CXX" && break | |
3765 | done | |
4f4e53dd | 3766 | |
5213506e RW |
3767 | if test "x$ac_ct_CXX" = x; then |
3768 | CXX="g++" | |
3769 | else | |
3770 | case $cross_compiling:$ac_tool_warned in | |
3771 | yes:) | |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3774 | ac_tool_warned=yes ;; | |
3775 | esac | |
3776 | CXX=$ac_ct_CXX | |
3777 | fi | |
4f4e53dd | 3778 | fi |
5213506e RW |
3779 | |
3780 | fi | |
4f4e53dd | 3781 | fi |
5213506e RW |
3782 | # Provide some information about the compiler. |
3783 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3784 | set X $ac_compile | |
3785 | ac_compiler=$2 | |
3786 | for ac_option in --version -v -V -qversion; do | |
3787 | { { ac_try="$ac_compiler $ac_option >&5" | |
3788 | case "(($ac_try" in | |
3789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3790 | *) ac_try_echo=$ac_try;; | |
3791 | esac | |
3792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3793 | $as_echo "$ac_try_echo"; } >&5 | |
3794 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3795 | ac_status=$? | |
3796 | if test -s conftest.err; then | |
3797 | sed '10a\ | |
3798 | ... rest of stderr output deleted ... | |
3799 | 10q' conftest.err >conftest.er1 | |
3800 | cat conftest.er1 >&5 | |
5213506e | 3801 | fi |
22e05272 | 3802 | rm -f conftest.er1 conftest.err |
5213506e RW |
3803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3804 | test $ac_status = 0; } | |
3805 | done | |
4f4e53dd | 3806 | |
5213506e RW |
3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
3808 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 3809 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 3810 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 3811 | else |
5213506e | 3812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 3813 | /* end confdefs.h. */ |
5213506e | 3814 | |
4f4e53dd PB |
3815 | int |
3816 | main () | |
3817 | { | |
5213506e RW |
3818 | #ifndef __GNUC__ |
3819 | choke me | |
3820 | #endif | |
4f4e53dd PB |
3821 | |
3822 | ; | |
3823 | return 0; | |
3824 | } | |
3825 | _ACEOF | |
5213506e RW |
3826 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3827 | ac_compiler_gnu=yes | |
3828 | else | |
3829 | ac_compiler_gnu=no | |
3830 | fi | |
3831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3832 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3833 | ||
3834 | fi | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3836 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3837 | if test $ac_compiler_gnu = yes; then | |
3838 | GXX=yes | |
3839 | else | |
3840 | GXX= | |
3841 | fi | |
3842 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3843 | ac_save_CXXFLAGS=$CXXFLAGS | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3845 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 3846 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
3847 | $as_echo_n "(cached) " >&6 |
3848 | else | |
3849 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3850 | ac_cxx_werror_flag=yes | |
3851 | ac_cv_prog_cxx_g=no | |
3852 | CXXFLAGS="-g" | |
3853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3854 | /* end confdefs.h. */ |
5213506e | 3855 | |
4f4e53dd PB |
3856 | int |
3857 | main () | |
3858 | { | |
4f4e53dd PB |
3859 | |
3860 | ; | |
3861 | return 0; | |
3862 | } | |
3863 | _ACEOF | |
5213506e RW |
3864 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3865 | ac_cv_prog_cxx_g=yes | |
4f4e53dd | 3866 | else |
5213506e RW |
3867 | CXXFLAGS="" |
3868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3869 | /* end confdefs.h. */ |
5213506e | 3870 | |
4f4e53dd PB |
3871 | int |
3872 | main () | |
3873 | { | |
4f4e53dd PB |
3874 | |
3875 | ; | |
3876 | return 0; | |
3877 | } | |
3878 | _ACEOF | |
5213506e RW |
3879 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3880 | ||
3881 | else | |
3882 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3883 | CXXFLAGS="-g" | |
3884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 3885 | /* end confdefs.h. */ |
5213506e | 3886 | |
4f4e53dd PB |
3887 | int |
3888 | main () | |
3889 | { | |
4f4e53dd PB |
3890 | |
3891 | ; | |
3892 | return 0; | |
3893 | } | |
3894 | _ACEOF | |
5213506e RW |
3895 | if ac_fn_cxx_try_compile "$LINENO"; then : |
3896 | ac_cv_prog_cxx_g=yes | |
3897 | fi | |
3898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3899 | fi | |
3900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3901 | fi | |
3902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3903 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3904 | fi | |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3906 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3907 | if test "$ac_test_CXXFLAGS" = set; then | |
3908 | CXXFLAGS=$ac_save_CXXFLAGS | |
3909 | elif test $ac_cv_prog_cxx_g = yes; then | |
3910 | if test "$GXX" = yes; then | |
3911 | CXXFLAGS="-g -O2" | |
3912 | else | |
3913 | CXXFLAGS="-g" | |
3914 | fi | |
4f4e53dd | 3915 | else |
5213506e RW |
3916 | if test "$GXX" = yes; then |
3917 | CXXFLAGS="-O2" | |
3918 | else | |
3919 | CXXFLAGS= | |
3920 | fi | |
3921 | fi | |
3922 | ac_ext=c | |
3923 | ac_cpp='$CPP $CPPFLAGS' | |
3924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3927 | ||
3928 | if test -n "$ac_tool_prefix"; then | |
3929 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3930 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3932 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3933 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e RW |
3934 | $as_echo_n "(cached) " >&6 |
3935 | else | |
3936 | if test -n "$RANLIB"; then | |
3937 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3938 | else | |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3946 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
3952 | IFS=$as_save_IFS | |
3953 | ||
3954 | fi | |
3955 | fi | |
3956 | RANLIB=$ac_cv_prog_RANLIB | |
3957 | if test -n "$RANLIB"; then | |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3959 | $as_echo "$RANLIB" >&6; } | |
3960 | else | |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3962 | $as_echo "no" >&6; } | |
3963 | fi | |
3964 | ||
4f4e53dd | 3965 | |
4f4e53dd | 3966 | fi |
5213506e RW |
3967 | if test -z "$ac_cv_prog_RANLIB"; then |
3968 | ac_ct_RANLIB=$RANLIB | |
3969 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3970 | set dummy ranlib; ac_word=$2 | |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3972 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3973 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e RW |
3974 | $as_echo_n "(cached) " >&6 |
3975 | else | |
3976 | if test -n "$ac_ct_RANLIB"; then | |
3977 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3978 | else | |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3980 | for as_dir in $PATH | |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3986 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3988 | break 2 | |
3989 | fi | |
3990 | done | |
4f4e53dd | 3991 | done |
5213506e RW |
3992 | IFS=$as_save_IFS |
3993 | ||
3994 | fi | |
3995 | fi | |
3996 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3997 | if test -n "$ac_ct_RANLIB"; then | |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3999 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4f4e53dd | 4000 | else |
5213506e RW |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4002 | $as_echo "no" >&6; } | |
4003 | fi | |
4f4e53dd | 4004 | |
5213506e RW |
4005 | if test "x$ac_ct_RANLIB" = x; then |
4006 | RANLIB=":" | |
4007 | else | |
4008 | case $cross_compiling:$ac_tool_warned in | |
4009 | yes:) | |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4012 | ac_tool_warned=yes ;; | |
4013 | esac | |
4014 | RANLIB=$ac_ct_RANLIB | |
4015 | fi | |
4016 | else | |
4017 | RANLIB="$ac_cv_prog_RANLIB" | |
4f4e53dd | 4018 | fi |
5213506e | 4019 | |
731c4ce0 DE |
4020 | if test -n "$ac_tool_prefix"; then |
4021 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4022 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4024 | $as_echo_n "checking for $ac_word... " >&6; } | |
4025 | if ${ac_cv_prog_AR+:} false; then : | |
4026 | $as_echo_n "(cached) " >&6 | |
4027 | else | |
4028 | if test -n "$AR"; then | |
4029 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4030 | else | |
4031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4032 | for as_dir in $PATH | |
4033 | do | |
4034 | IFS=$as_save_IFS | |
4035 | test -z "$as_dir" && as_dir=. | |
4036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4038 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4040 | break 2 | |
4041 | fi | |
4042 | done | |
4043 | done | |
4044 | IFS=$as_save_IFS | |
4045 | ||
4046 | fi | |
4047 | fi | |
4048 | AR=$ac_cv_prog_AR | |
4049 | if test -n "$AR"; then | |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4051 | $as_echo "$AR" >&6; } | |
4052 | else | |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4054 | $as_echo "no" >&6; } | |
4055 | fi | |
4056 | ||
4057 | ||
4058 | fi | |
4059 | if test -z "$ac_cv_prog_AR"; then | |
4060 | ac_ct_AR=$AR | |
4061 | # Extract the first word of "ar", so it can be a program name with args. | |
4062 | set dummy ar; ac_word=$2 | |
4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4064 | $as_echo_n "checking for $ac_word... " >&6; } | |
4065 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4066 | $as_echo_n "(cached) " >&6 | |
4067 | else | |
4068 | if test -n "$ac_ct_AR"; then | |
4069 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4070 | else | |
4071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4072 | for as_dir in $PATH | |
4073 | do | |
4074 | IFS=$as_save_IFS | |
4075 | test -z "$as_dir" && as_dir=. | |
4076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4078 | ac_cv_prog_ac_ct_AR="ar" | |
4079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4080 | break 2 | |
4081 | fi | |
4082 | done | |
4083 | done | |
4084 | IFS=$as_save_IFS | |
4085 | ||
4086 | fi | |
4087 | fi | |
4088 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4089 | if test -n "$ac_ct_AR"; then | |
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4091 | $as_echo "$ac_ct_AR" >&6; } | |
4092 | else | |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4094 | $as_echo "no" >&6; } | |
4095 | fi | |
4096 | ||
4097 | if test "x$ac_ct_AR" = x; then | |
4098 | AR="" | |
4099 | else | |
4100 | case $cross_compiling:$ac_tool_warned in | |
4101 | yes:) | |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4103 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4104 | ac_tool_warned=yes ;; | |
4105 | esac | |
4106 | AR=$ac_ct_AR | |
4107 | fi | |
4108 | else | |
4109 | AR="$ac_cv_prog_AR" | |
4110 | fi | |
4111 | ||
5213506e | 4112 | |
480767a9 | 4113 | |
0e1a989c ILT |
4114 | ac_ext=c |
4115 | ac_cpp='$CPP $CPPFLAGS' | |
4116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4120 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4121 | # On Suns, sometimes $CPP names a directory. | |
4122 | if test -n "$CPP" && test -d "$CPP"; then | |
4123 | CPP= | |
480767a9 | 4124 | fi |
0e1a989c | 4125 | if test -z "$CPP"; then |
22e05272 | 4126 | if ${ac_cv_prog_CPP+:} false; then : |
480767a9 ILT |
4127 | $as_echo_n "(cached) " >&6 |
4128 | else | |
0e1a989c ILT |
4129 | # Double quotes because CPP needs to be expanded |
4130 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4131 | do | |
4132 | ac_preproc_ok=false | |
4133 | for ac_c_preproc_warn_flag in '' yes | |
4134 | do | |
4135 | # Use a header file that comes with gcc, so configuring glibc | |
4136 | # with a fresh cross-compiler works. | |
4137 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4138 | # <limits.h> exists even on freestanding compilers. | |
4139 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4140 | # not just through cpp. "Syntax error" is here to catch this case. | |
4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
480767a9 | 4142 | /* end confdefs.h. */ |
0e1a989c ILT |
4143 | #ifdef __STDC__ |
4144 | # include <limits.h> | |
4145 | #else | |
4146 | # include <assert.h> | |
4147 | #endif | |
4148 | Syntax error | |
480767a9 | 4149 | _ACEOF |
0e1a989c ILT |
4150 | if ac_fn_c_try_cpp "$LINENO"; then : |
4151 | ||
4152 | else | |
4153 | # Broken: fails on valid input. | |
4154 | continue | |
480767a9 | 4155 | fi |
22e05272 | 4156 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4157 | |
0e1a989c ILT |
4158 | # OK, works on sane cases. Now check whether nonexistent headers |
4159 | # can be detected and how. | |
480767a9 ILT |
4160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4161 | /* end confdefs.h. */ | |
0e1a989c | 4162 | #include <ac_nonexistent.h> |
480767a9 | 4163 | _ACEOF |
0e1a989c ILT |
4164 | if ac_fn_c_try_cpp "$LINENO"; then : |
4165 | # Broken: success on invalid input. | |
4166 | continue | |
4167 | else | |
4168 | # Passes both tests. | |
4169 | ac_preproc_ok=: | |
4170 | break | |
480767a9 | 4171 | fi |
22e05272 | 4172 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4173 | |
480767a9 | 4174 | done |
0e1a989c | 4175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
22e05272 | 4176 | rm -f conftest.i conftest.err conftest.$ac_ext |
0e1a989c ILT |
4177 | if $ac_preproc_ok; then : |
4178 | break | |
480767a9 | 4179 | fi |
0e1a989c ILT |
4180 | |
4181 | done | |
4182 | ac_cv_prog_CPP=$CPP | |
4183 | ||
4184 | fi | |
4185 | CPP=$ac_cv_prog_CPP | |
480767a9 | 4186 | else |
0e1a989c ILT |
4187 | ac_cv_prog_CPP=$CPP |
4188 | fi | |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4190 | $as_echo "$CPP" >&6; } | |
4191 | ac_preproc_ok=false | |
4192 | for ac_c_preproc_warn_flag in '' yes | |
4193 | do | |
4194 | # Use a header file that comes with gcc, so configuring glibc | |
4195 | # with a fresh cross-compiler works. | |
4196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4197 | # <limits.h> exists even on freestanding compilers. | |
4198 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4199 | # not just through cpp. "Syntax error" is here to catch this case. | |
480767a9 ILT |
4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4201 | /* end confdefs.h. */ | |
0e1a989c ILT |
4202 | #ifdef __STDC__ |
4203 | # include <limits.h> | |
4204 | #else | |
4205 | # include <assert.h> | |
4206 | #endif | |
4207 | Syntax error | |
480767a9 | 4208 | _ACEOF |
0e1a989c ILT |
4209 | if ac_fn_c_try_cpp "$LINENO"; then : |
4210 | ||
4211 | else | |
4212 | # Broken: fails on valid input. | |
4213 | continue | |
480767a9 | 4214 | fi |
22e05272 | 4215 | rm -f conftest.err conftest.i conftest.$ac_ext |
0e1a989c ILT |
4216 | |
4217 | # OK, works on sane cases. Now check whether nonexistent headers | |
4218 | # can be detected and how. | |
480767a9 ILT |
4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4220 | /* end confdefs.h. */ | |
0e1a989c | 4221 | #include <ac_nonexistent.h> |
480767a9 | 4222 | _ACEOF |
0e1a989c ILT |
4223 | if ac_fn_c_try_cpp "$LINENO"; then : |
4224 | # Broken: success on invalid input. | |
4225 | continue | |
4226 | else | |
4227 | # Passes both tests. | |
4228 | ac_preproc_ok=: | |
4229 | break | |
480767a9 | 4230 | fi |
22e05272 | 4231 | rm -f conftest.err conftest.i conftest.$ac_ext |
480767a9 | 4232 | |
0e1a989c ILT |
4233 | done |
4234 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4235 | rm -f conftest.i conftest.err conftest.$ac_ext |
0e1a989c | 4236 | if $ac_preproc_ok; then : |
480767a9 | 4237 | |
5213506e | 4238 | else |
0e1a989c ILT |
4239 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4240 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4241 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4242 | See \`config.log' for more details" "$LINENO" 5; } | |
4f4e53dd | 4243 | fi |
4f4e53dd | 4244 | |
0e1a989c ILT |
4245 | ac_ext=c |
4246 | ac_cpp='$CPP $CPPFLAGS' | |
4247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
4250 | |
4251 | ||
0e1a989c ILT |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4253 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4254 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4255 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4256 | else |
0e1a989c ILT |
4257 | if test -z "$GREP"; then |
4258 | ac_path_GREP_found=false | |
4259 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4261 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5213506e RW |
4262 | do |
4263 | IFS=$as_save_IFS | |
4264 | test -z "$as_dir" && as_dir=. | |
0e1a989c | 4265 | for ac_prog in grep ggrep; do |
5213506e | 4266 | for ac_exec_ext in '' $ac_executable_extensions; do |
0e1a989c | 4267 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4268 | as_fn_executable_p "$ac_path_GREP" || continue |
0e1a989c ILT |
4269 | # Check for GNU ac_path_GREP and select it if it is found. |
4270 | # Check for GNU $ac_path_GREP | |
4271 | case `"$ac_path_GREP" --version 2>&1` in | |
4272 | *GNU*) | |
4273 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4274 | *) | |
4275 | ac_count=0 | |
4276 | $as_echo_n 0123456789 >"conftest.in" | |
4277 | while : | |
4278 | do | |
4279 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4280 | mv "conftest.tmp" "conftest.in" | |
4281 | cp "conftest.in" "conftest.nl" | |
4282 | $as_echo 'GREP' >> "conftest.nl" | |
4283 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4284 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4285 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4286 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4287 | # Best one so far, save it but keep looking for a better one | |
4288 | ac_cv_path_GREP="$ac_path_GREP" | |
4289 | ac_path_GREP_max=$ac_count | |
4290 | fi | |
4291 | # 10*(2^10) chars as input seems more than enough | |
4292 | test $ac_count -gt 10 && break | |
4293 | done | |
4294 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4295 | esac | |
5213506e | 4296 | |
0e1a989c ILT |
4297 | $ac_path_GREP_found && break 3 |
4298 | done | |
4299 | done | |
5213506e RW |
4300 | done |
4301 | IFS=$as_save_IFS | |
0e1a989c | 4302 | if test -z "$ac_cv_path_GREP"; then |
22e05272 | 4303 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e1a989c | 4304 | fi |
5213506e | 4305 | else |
0e1a989c | 4306 | ac_cv_path_GREP=$GREP |
5213506e | 4307 | fi |
4f4e53dd | 4308 | |
0e1a989c ILT |
4309 | fi |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4311 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4312 | GREP="$ac_cv_path_GREP" | |
5213506e | 4313 | |
5213506e | 4314 | |
0e1a989c ILT |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4316 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4317 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4318 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4319 | else |
0e1a989c ILT |
4320 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4321 | then ac_cv_path_EGREP="$GREP -E" | |
4322 | else | |
4323 | if test -z "$EGREP"; then | |
4324 | ac_path_EGREP_found=false | |
4325 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4327 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5213506e RW |
4328 | do |
4329 | IFS=$as_save_IFS | |
4330 | test -z "$as_dir" && as_dir=. | |
0e1a989c | 4331 | for ac_prog in egrep; do |
5213506e | 4332 | for ac_exec_ext in '' $ac_executable_extensions; do |
0e1a989c | 4333 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4334 | as_fn_executable_p "$ac_path_EGREP" || continue |
0e1a989c ILT |
4335 | # Check for GNU ac_path_EGREP and select it if it is found. |
4336 | # Check for GNU $ac_path_EGREP | |
4337 | case `"$ac_path_EGREP" --version 2>&1` in | |
4338 | *GNU*) | |
4339 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4340 | *) | |
4341 | ac_count=0 | |
4342 | $as_echo_n 0123456789 >"conftest.in" | |
4343 | while : | |
4344 | do | |
4345 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4346 | mv "conftest.tmp" "conftest.in" | |
4347 | cp "conftest.in" "conftest.nl" | |
4348 | $as_echo 'EGREP' >> "conftest.nl" | |
4349 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4351 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4352 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4353 | # Best one so far, save it but keep looking for a better one | |
4354 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4355 | ac_path_EGREP_max=$ac_count | |
4356 | fi | |
4357 | # 10*(2^10) chars as input seems more than enough | |
4358 | test $ac_count -gt 10 && break | |
5213506e | 4359 | done |
0e1a989c ILT |
4360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4361 | esac | |
4f4e53dd | 4362 | |
0e1a989c ILT |
4363 | $ac_path_EGREP_found && break 3 |
4364 | done | |
4365 | done | |
4366 | done | |
4367 | IFS=$as_save_IFS | |
4368 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4369 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e1a989c | 4370 | fi |
4f4e53dd | 4371 | else |
0e1a989c | 4372 | ac_cv_path_EGREP=$EGREP |
4f4e53dd | 4373 | fi |
4f4e53dd | 4374 | |
0e1a989c ILT |
4375 | fi |
4376 | fi | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4378 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4379 | EGREP="$ac_cv_path_EGREP" | |
4f4e53dd | 4380 | |
5213506e | 4381 | |
0e1a989c ILT |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4383 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4384 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4385 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4386 | else |
0e1a989c | 4387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 4388 | /* end confdefs.h. */ |
0e1a989c ILT |
4389 | #include <stdlib.h> |
4390 | #include <stdarg.h> | |
4391 | #include <string.h> | |
4392 | #include <float.h> | |
4f4e53dd | 4393 | |
4f4e53dd PB |
4394 | int |
4395 | main () | |
4396 | { | |
4f4e53dd PB |
4397 | |
4398 | ; | |
4399 | return 0; | |
4400 | } | |
4401 | _ACEOF | |
5213506e | 4402 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 4403 | ac_cv_header_stdc=yes |
4f4e53dd | 4404 | else |
0e1a989c | 4405 | ac_cv_header_stdc=no |
5213506e RW |
4406 | fi |
4407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4f4e53dd | 4408 | |
0e1a989c ILT |
4409 | if test $ac_cv_header_stdc = yes; then |
4410 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4412 | /* end confdefs.h. */ | |
4413 | #include <string.h> | |
4f4e53dd | 4414 | |
0e1a989c ILT |
4415 | _ACEOF |
4416 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4417 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4f4e53dd | 4418 | |
5213506e | 4419 | else |
0e1a989c ILT |
4420 | ac_cv_header_stdc=no |
4421 | fi | |
4422 | rm -f conftest* | |
5213506e | 4423 | |
0e1a989c ILT |
4424 | fi |
4425 | ||
4426 | if test $ac_cv_header_stdc = yes; then | |
4427 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4429 | /* end confdefs.h. */ | |
4430 | #include <stdlib.h> | |
4f4e53dd | 4431 | |
4f4e53dd | 4432 | _ACEOF |
0e1a989c ILT |
4433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4434 | $EGREP "free" >/dev/null 2>&1; then : | |
4435 | ||
4f4e53dd | 4436 | else |
0e1a989c | 4437 | ac_cv_header_stdc=no |
4f4e53dd | 4438 | fi |
0e1a989c | 4439 | rm -f conftest* |
4f4e53dd | 4440 | |
4f4e53dd | 4441 | fi |
4f4e53dd | 4442 | |
0e1a989c ILT |
4443 | if test $ac_cv_header_stdc = yes; then |
4444 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4445 | if test "$cross_compiling" = yes; then : | |
4446 | : | |
4f4e53dd | 4447 | else |
0e1a989c | 4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 4449 | /* end confdefs.h. */ |
0e1a989c ILT |
4450 | #include <ctype.h> |
4451 | #include <stdlib.h> | |
4452 | #if ((' ' & 0x0FF) == 0x020) | |
4453 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4454 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4455 | #else | |
4456 | # define ISLOWER(c) \ | |
4457 | (('a' <= (c) && (c) <= 'i') \ | |
4458 | || ('j' <= (c) && (c) <= 'r') \ | |
4459 | || ('s' <= (c) && (c) <= 'z')) | |
4460 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4461 | #endif | |
5213506e | 4462 | |
0e1a989c | 4463 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4f4e53dd PB |
4464 | int |
4465 | main () | |
4466 | { | |
0e1a989c ILT |
4467 | int i; |
4468 | for (i = 0; i < 256; i++) | |
4469 | if (XOR (islower (i), ISLOWER (i)) | |
4470 | || toupper (i) != TOUPPER (i)) | |
4471 | return 2; | |
4f4e53dd PB |
4472 | return 0; |
4473 | } | |
4474 | _ACEOF | |
0e1a989c ILT |
4475 | if ac_fn_c_try_run "$LINENO"; then : |
4476 | ||
4f4e53dd | 4477 | else |
0e1a989c | 4478 | ac_cv_header_stdc=no |
4f4e53dd | 4479 | fi |
0e1a989c ILT |
4480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 4482 | fi |
0d667716 | 4483 | |
5213506e | 4484 | fi |
0e1a989c ILT |
4485 | fi |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4487 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4488 | if test $ac_cv_header_stdc = yes; then | |
0d667716 | 4489 | |
0e1a989c | 4490 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
0d667716 | 4491 | |
5213506e | 4492 | fi |
0d667716 | 4493 | |
0e1a989c ILT |
4494 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4495 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4496 | inttypes.h stdint.h unistd.h | |
4497 | do : | |
4498 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4499 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4500 | " | |
22e05272 | 4501 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
0e1a989c ILT |
4502 | cat >>confdefs.h <<_ACEOF |
4503 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4504 | _ACEOF | |
4505 | ||
5213506e | 4506 | fi |
0d667716 | 4507 | |
0e1a989c | 4508 | done |
0d667716 KG |
4509 | |
4510 | ||
0e1a989c ILT |
4511 | |
4512 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 4513 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
0e1a989c | 4514 | MINIX=yes |
5213506e | 4515 | else |
0e1a989c | 4516 | MINIX= |
5213506e | 4517 | fi |
0d667716 KG |
4518 | |
4519 | ||
0e1a989c | 4520 | if test "$MINIX" = yes; then |
0d667716 | 4521 | |
0e1a989c | 4522 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
0d667716 KG |
4523 | |
4524 | ||
0e1a989c ILT |
4525 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
4526 | ||
4527 | ||
4528 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4f4e53dd | 4529 | |
5213506e | 4530 | fi |
4f4e53dd | 4531 | |
4f4e53dd | 4532 | |
0e1a989c ILT |
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4534 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 4535 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
0e1a989c ILT |
4536 | $as_echo_n "(cached) " >&6 |
4537 | else | |
4538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4539 | /* end confdefs.h. */ | |
4f4e53dd | 4540 | |
22e05272 JM |
4541 | # define __EXTENSIONS__ 1 |
4542 | $ac_includes_default | |
0e1a989c ILT |
4543 | int |
4544 | main () | |
4545 | { | |
4546 | ||
4547 | ; | |
4548 | return 0; | |
4549 | } | |
4550 | _ACEOF | |
4551 | if ac_fn_c_try_compile "$LINENO"; then : | |
4552 | ac_cv_safe_to_define___extensions__=yes | |
5213506e | 4553 | else |
0e1a989c | 4554 | ac_cv_safe_to_define___extensions__=no |
4f4e53dd | 4555 | fi |
0e1a989c | 4556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 4557 | fi |
0e1a989c ILT |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4559 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4560 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4561 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4f4e53dd | 4562 | |
0e1a989c | 4563 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4f4e53dd | 4564 | |
0e1a989c | 4565 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
ff5dfc48 | 4566 | |
0e1a989c | 4567 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
ff5dfc48 | 4568 | |
0e1a989c | 4569 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
ff5dfc48 | 4570 | |
0e1a989c ILT |
4571 | |
4572 | # Check whether --enable-largefile was given. | |
4573 | if test "${enable_largefile+set}" = set; then : | |
4574 | enableval=$enable_largefile; | |
ff5dfc48 | 4575 | fi |
ff5dfc48 | 4576 | |
0e1a989c | 4577 | if test "$enable_largefile" != no; then |
4f4e53dd | 4578 | |
0e1a989c ILT |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
4580 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 4581 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 4582 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4583 | else |
0e1a989c ILT |
4584 | ac_cv_sys_largefile_CC=no |
4585 | if test "$GCC" != yes; then | |
4586 | ac_save_CC=$CC | |
4587 | while :; do | |
4588 | # IRIX 6.2 and later do not support large files by default, | |
4589 | # so use the C compiler's -n32 option if that helps. | |
4590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4591 | /* end confdefs.h. */ | |
4592 | #include <sys/types.h> | |
4593 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4594 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4595 | since some C++ compilers masquerading as C compilers | |
4596 | incorrectly reject 9223372036854775807. */ | |
4597 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4598 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4599 | && LARGE_OFF_T % 2147483647 == 1) | |
4600 | ? 1 : -1]; | |
4601 | int | |
4602 | main () | |
4603 | { | |
5213506e | 4604 | |
0e1a989c ILT |
4605 | ; |
4606 | return 0; | |
4607 | } | |
4608 | _ACEOF | |
4609 | if ac_fn_c_try_compile "$LINENO"; then : | |
4610 | break | |
5213506e | 4611 | fi |
0e1a989c ILT |
4612 | rm -f core conftest.err conftest.$ac_objext |
4613 | CC="$CC -n32" | |
4614 | if ac_fn_c_try_compile "$LINENO"; then : | |
4615 | ac_cv_sys_largefile_CC=' -n32'; break | |
5213506e | 4616 | fi |
0e1a989c ILT |
4617 | rm -f core conftest.err conftest.$ac_objext |
4618 | break | |
4619 | done | |
4620 | CC=$ac_save_CC | |
4621 | rm -f conftest.$ac_ext | |
4622 | fi | |
c3f829c1 | 4623 | fi |
0e1a989c ILT |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
4625 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4626 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4627 | CC=$CC$ac_cv_sys_largefile_CC | |
4628 | fi | |
5213506e | 4629 | |
0e1a989c ILT |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4631 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 4632 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e | 4633 | $as_echo_n "(cached) " >&6 |
c3f829c1 | 4634 | else |
0e1a989c | 4635 | while :; do |
5213506e | 4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3f829c1 | 4637 | /* end confdefs.h. */ |
5213506e | 4638 | #include <sys/types.h> |
0e1a989c ILT |
4639 | /* Check that off_t can represent 2**63 - 1 correctly. |
4640 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4641 | since some C++ compilers masquerading as C compilers | |
4642 | incorrectly reject 9223372036854775807. */ | |
4643 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4644 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4645 | && LARGE_OFF_T % 2147483647 == 1) | |
4646 | ? 1 : -1]; | |
c3f829c1 GDR |
4647 | int |
4648 | main () | |
4649 | { | |
0e1a989c | 4650 | |
c3f829c1 GDR |
4651 | ; |
4652 | return 0; | |
4653 | } | |
4654 | _ACEOF | |
5213506e | 4655 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 4656 | ac_cv_sys_file_offset_bits=no; break |
c3f829c1 | 4657 | fi |
5213506e | 4658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0e1a989c ILT |
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4660 | /* end confdefs.h. */ | |
4661 | #define _FILE_OFFSET_BITS 64 | |
4662 | #include <sys/types.h> | |
4663 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4664 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4665 | since some C++ compilers masquerading as C compilers | |
4666 | incorrectly reject 9223372036854775807. */ | |
4667 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4668 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4669 | && LARGE_OFF_T % 2147483647 == 1) | |
4670 | ? 1 : -1]; | |
4671 | int | |
4672 | main () | |
4673 | { | |
c3f829c1 | 4674 | |
0e1a989c ILT |
4675 | ; |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
4679 | if ac_fn_c_try_compile "$LINENO"; then : | |
4680 | ac_cv_sys_file_offset_bits=64; break | |
be0f1e54 | 4681 | fi |
0e1a989c ILT |
4682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4683 | ac_cv_sys_file_offset_bits=unknown | |
4684 | break | |
4685 | done | |
4686 | fi | |
4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4688 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4689 | case $ac_cv_sys_file_offset_bits in #( | |
4690 | no | unknown) ;; | |
4691 | *) | |
4692 | cat >>confdefs.h <<_ACEOF | |
4693 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4694 | _ACEOF | |
4695 | ;; | |
4696 | esac | |
4697 | rm -rf conftest* | |
4698 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4700 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 4701 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e | 4702 | $as_echo_n "(cached) " >&6 |
be0f1e54 | 4703 | else |
0e1a989c | 4704 | while :; do |
5213506e | 4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
be0f1e54 | 4706 | /* end confdefs.h. */ |
0e1a989c ILT |
4707 | #include <sys/types.h> |
4708 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4709 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4710 | since some C++ compilers masquerading as C compilers | |
4711 | incorrectly reject 9223372036854775807. */ | |
4712 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4713 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4714 | && LARGE_OFF_T % 2147483647 == 1) | |
4715 | ? 1 : -1]; | |
be0f1e54 PB |
4716 | int |
4717 | main () | |
4718 | { | |
be0f1e54 PB |
4719 | |
4720 | ; | |
4721 | return 0; | |
4722 | } | |
4723 | _ACEOF | |
5213506e | 4724 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c ILT |
4725 | ac_cv_sys_large_files=no; break |
4726 | fi | |
4727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4729 | /* end confdefs.h. */ | |
4730 | #define _LARGE_FILES 1 | |
4731 | #include <sys/types.h> | |
4732 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4733 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4734 | since some C++ compilers masquerading as C compilers | |
4735 | incorrectly reject 9223372036854775807. */ | |
4736 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4737 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4738 | && LARGE_OFF_T % 2147483647 == 1) | |
4739 | ? 1 : -1]; | |
4740 | int | |
4741 | main () | |
4742 | { | |
4743 | ||
4744 | ; | |
4745 | return 0; | |
4746 | } | |
4747 | _ACEOF | |
4748 | if ac_fn_c_try_compile "$LINENO"; then : | |
4749 | ac_cv_sys_large_files=1; break | |
be0f1e54 | 4750 | fi |
5213506e | 4751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0e1a989c ILT |
4752 | ac_cv_sys_large_files=unknown |
4753 | break | |
4754 | done | |
4755 | fi | |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4757 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4758 | case $ac_cv_sys_large_files in #( | |
4759 | no | unknown) ;; | |
4760 | *) | |
4761 | cat >>confdefs.h <<_ACEOF | |
4762 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4763 | _ACEOF | |
4764 | ;; | |
4765 | esac | |
4766 | rm -rf conftest* | |
4767 | fi | |
22e05272 JM |
4768 | |
4769 | ||
be0f1e54 | 4770 | fi |
be0f1e54 | 4771 | |
be0f1e54 | 4772 | |
0e1a989c ILT |
4773 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing |
4774 | for ac_prog in aclocal | |
5213506e | 4775 | do |
0e1a989c ILT |
4776 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4777 | set dummy $ac_prog; ac_word=$2 | |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4779 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4780 | if ${ac_cv_prog_ACLOCAL+:} false; then : |
0e1a989c | 4781 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4782 | else |
0e1a989c ILT |
4783 | if test -n "$ACLOCAL"; then |
4784 | ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. | |
be0f1e54 | 4785 | else |
0e1a989c ILT |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
4791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4793 | ac_cv_prog_ACLOCAL="$ac_prog" |
4794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4795 | break 2 | |
4796 | fi | |
5213506e | 4797 | done |
0e1a989c ILT |
4798 | done |
4799 | IFS=$as_save_IFS | |
be0f1e54 | 4800 | |
4f4e53dd | 4801 | fi |
5213506e | 4802 | fi |
0e1a989c ILT |
4803 | ACLOCAL=$ac_cv_prog_ACLOCAL |
4804 | if test -n "$ACLOCAL"; then | |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 | |
4806 | $as_echo "$ACLOCAL" >&6; } | |
5213506e | 4807 | else |
0e1a989c ILT |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4809 | $as_echo "no" >&6; } | |
4f4e53dd | 4810 | fi |
4f4e53dd | 4811 | |
4f4e53dd | 4812 | |
0e1a989c | 4813 | test -n "$ACLOCAL" && break |
5213506e | 4814 | done |
0e1a989c | 4815 | test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" |
4f4e53dd | 4816 | |
0e1a989c ILT |
4817 | for ac_prog in autoconf |
4818 | do | |
4819 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4820 | set dummy $ac_prog; ac_word=$2 | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4822 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4823 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
5213506e | 4824 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4825 | else |
0e1a989c ILT |
4826 | if test -n "$AUTOCONF"; then |
4827 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
4828 | else | |
4829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4830 | for as_dir in $PATH | |
5213506e RW |
4831 | do |
4832 | IFS=$as_save_IFS | |
4833 | test -z "$as_dir" && as_dir=. | |
5213506e | 4834 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4836 | ac_cv_prog_AUTOCONF="$ac_prog" |
4837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4838 | break 2 | |
4839 | fi | |
4840 | done | |
5213506e RW |
4841 | done |
4842 | IFS=$as_save_IFS | |
0e1a989c ILT |
4843 | |
4844 | fi | |
4845 | fi | |
4846 | AUTOCONF=$ac_cv_prog_AUTOCONF | |
4847 | if test -n "$AUTOCONF"; then | |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 | |
4849 | $as_echo "$AUTOCONF" >&6; } | |
5213506e | 4850 | else |
0e1a989c ILT |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4852 | $as_echo "no" >&6; } | |
4f4e53dd | 4853 | fi |
4f4e53dd | 4854 | |
4f4e53dd | 4855 | |
0e1a989c ILT |
4856 | test -n "$AUTOCONF" && break |
4857 | done | |
4858 | test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" | |
4f4e53dd | 4859 | |
0e1a989c ILT |
4860 | for ac_prog in autoheader |
4861 | do | |
4862 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4863 | set dummy $ac_prog; ac_word=$2 | |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4865 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4866 | if ${ac_cv_prog_AUTOHEADER+:} false; then : |
5213506e | 4867 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4868 | else |
0e1a989c ILT |
4869 | if test -n "$AUTOHEADER"; then |
4870 | ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. | |
4871 | else | |
4872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4873 | for as_dir in $PATH | |
5213506e RW |
4874 | do |
4875 | IFS=$as_save_IFS | |
4876 | test -z "$as_dir" && as_dir=. | |
5213506e | 4877 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0e1a989c ILT |
4879 | ac_cv_prog_AUTOHEADER="$ac_prog" |
4880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4881 | break 2 | |
4882 | fi | |
4883 | done | |
5213506e RW |
4884 | done |
4885 | IFS=$as_save_IFS | |
0e1a989c ILT |
4886 | |
4887 | fi | |
4888 | fi | |
4889 | AUTOHEADER=$ac_cv_prog_AUTOHEADER | |
4890 | if test -n "$AUTOHEADER"; then | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 | |
4892 | $as_echo "$AUTOHEADER" >&6; } | |
5213506e | 4893 | else |
0e1a989c ILT |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4895 | $as_echo "no" >&6; } | |
5213506e | 4896 | fi |
4f4e53dd | 4897 | |
0e1a989c ILT |
4898 | |
4899 | test -n "$AUTOHEADER" && break | |
4900 | done | |
4901 | test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" | |
4902 | ||
4903 | ||
909b30a1 EG |
4904 | if test -z "$ETAGS"; then |
4905 | ETAGS=etags | |
4906 | fi | |
4907 | ||
4908 | ||
0e1a989c ILT |
4909 | # Figure out what compiler warnings we can enable. |
4910 | # See config/warnings.m4 for details. | |
4911 | ||
bf5372e7 YS |
4912 | ac_ext=c |
4913 | ac_cpp='$CPP $CPPFLAGS' | |
4914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4917 | ||
0e1a989c ILT |
4918 | warn= |
4919 | save_CFLAGS="$CFLAGS" | |
095af58f | 4920 | for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ |
0e1a989c | 4921 | -Wmissing-format-attribute; do |
095af58f AS |
4922 | # Do the check with the no- prefix removed since gcc silently |
4923 | # accepts any -Wno-* option on purpose | |
4924 | case $real_option in | |
4a5e00ca | 4925 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
4926 | *) option=$real_option ;; |
4927 | esac | |
0e1a989c ILT |
4928 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4929 | ||
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4931 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 4932 | if eval \${$as_acx_Woption+:} false; then : |
0e1a989c ILT |
4933 | $as_echo_n "(cached) " >&6 |
4934 | else | |
4935 | CFLAGS="$option" | |
4936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4937 | /* end confdefs.h. */ | |
4938 | ||
4939 | int | |
4940 | main () | |
4941 | { | |
4942 | ||
4943 | ; | |
4944 | return 0; | |
4945 | } | |
4946 | _ACEOF | |
4947 | if ac_fn_c_try_compile "$LINENO"; then : | |
4948 | eval "$as_acx_Woption=yes" | |
4949 | else | |
4950 | eval "$as_acx_Woption=no" | |
4f4e53dd | 4951 | fi |
0e1a989c | 4952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5213506e | 4953 | |
0e1a989c ILT |
4954 | fi |
4955 | eval ac_res=\$$as_acx_Woption | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4957 | $as_echo "$ac_res" >&6; } | |
4958 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 4959 | warn="$warn${warn:+ }$real_option" |
0e1a989c ILT |
4960 | fi |
4961 | done | |
4962 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
4963 | ac_ext=c |
4964 | ac_cpp='$CPP $CPPFLAGS' | |
4965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4968 | ||
4969 | ||
4970 | ac_ext=c | |
4971 | ac_cpp='$CPP $CPPFLAGS' | |
4972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e | 4975 | |
0e1a989c ILT |
4976 | c_warn= |
4977 | save_CFLAGS="$CFLAGS" | |
095af58f | 4978 | for real_option in -Wstrict-prototypes -Wmissing-prototypes \ |
0e1a989c | 4979 | -Wold-style-definition -Wc++-compat; do |
095af58f AS |
4980 | # Do the check with the no- prefix removed since gcc silently |
4981 | # accepts any -Wno-* option on purpose | |
4982 | case $real_option in | |
4a5e00ca | 4983 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
4984 | *) option=$real_option ;; |
4985 | esac | |
0e1a989c ILT |
4986 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
4987 | ||
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4989 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 4990 | if eval \${$as_acx_Woption+:} false; then : |
5213506e | 4991 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 4992 | else |
0e1a989c ILT |
4993 | CFLAGS="$option" |
4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4f4e53dd | 4995 | /* end confdefs.h. */ |
5213506e | 4996 | |
4f4e53dd PB |
4997 | int |
4998 | main () | |
4999 | { | |
4f4e53dd PB |
5000 | |
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
5213506e | 5005 | if ac_fn_c_try_compile "$LINENO"; then : |
0e1a989c | 5006 | eval "$as_acx_Woption=yes" |
4f4e53dd | 5007 | else |
0e1a989c | 5008 | eval "$as_acx_Woption=no" |
4f4e53dd | 5009 | fi |
5213506e | 5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 5011 | |
0e1a989c ILT |
5012 | fi |
5013 | eval ac_res=\$$as_acx_Woption | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5015 | $as_echo "$ac_res" >&6; } | |
5016 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 5017 | c_warn="$c_warn${c_warn:+ }$real_option" |
0e1a989c ILT |
5018 | fi |
5019 | done | |
5020 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
5021 | ac_ext=c |
5022 | ac_cpp='$CPP $CPPFLAGS' | |
5023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5026 | ||
5027 | ||
5028 | ac_ext=c | |
5029 | ac_cpp='$CPP $CPPFLAGS' | |
5030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0e1a989c ILT |
5033 | |
5034 | WARN_PEDANTIC= | |
095af58f AS |
5035 | # Do the check with the no- prefix removed from the warning options |
5036 | # since gcc silently accepts any -Wno-* option on purpose | |
0e1a989c | 5037 | if test "$GCC" = yes; then : |
095af58f AS |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 |
5039 | $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } | |
22e05272 | 5040 | if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : |
0e1a989c ILT |
5041 | $as_echo_n "(cached) " >&6 |
5042 | else | |
5043 | save_CFLAGS="$CFLAGS" | |
095af58f | 5044 | CFLAGS="-pedantic -Wlong-long" |
0e1a989c | 5045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 5046 | /* end confdefs.h. */ |
4f4e53dd | 5047 | |
0e1a989c ILT |
5048 | int |
5049 | main () | |
5050 | { | |
5051 | ||
5052 | ; | |
5053 | return 0; | |
5054 | } | |
4f4e53dd | 5055 | _ACEOF |
0e1a989c | 5056 | if ac_fn_c_try_compile "$LINENO"; then : |
095af58f | 5057 | acx_cv_prog_cc_pedantic__Wlong_long=yes |
0e1a989c | 5058 | else |
095af58f | 5059 | acx_cv_prog_cc_pedantic__Wlong_long=no |
0e1a989c ILT |
5060 | fi |
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5062 | CFLAGS="$save_CFLAGS" | |
5063 | fi | |
095af58f AS |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 |
5065 | $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } | |
5066 | if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : | |
0e1a989c ILT |
5067 | WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" |
5068 | fi | |
5069 | ||
5070 | fi | |
bf5372e7 YS |
5071 | ac_ext=c |
5072 | ac_cpp='$CPP $CPPFLAGS' | |
5073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5076 | ||
4f4e53dd | 5077 | |
0e1a989c | 5078 | |
e9411247 | 5079 | # Disable exceptions and RTTI if building with g++ |
bf5372e7 YS |
5080 | ac_ext=c |
5081 | ac_cpp='$CPP $CPPFLAGS' | |
5082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5085 | ||
e9411247 MM |
5086 | noexception_flags= |
5087 | save_CFLAGS="$CFLAGS" | |
095af58f AS |
5088 | for real_option in -fno-exceptions -fno-rtti; do |
5089 | # Do the check with the no- prefix removed since gcc silently | |
5090 | # accepts any -Wno-* option on purpose | |
5091 | case $real_option in | |
4a5e00ca | 5092 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; |
095af58f AS |
5093 | *) option=$real_option ;; |
5094 | esac | |
e9411247 MM |
5095 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` |
5096 | ||
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
5098 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 5099 | if eval \${$as_acx_Woption+:} false; then : |
e9411247 MM |
5100 | $as_echo_n "(cached) " >&6 |
5101 | else | |
5102 | CFLAGS="$option" | |
5103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5104 | /* end confdefs.h. */ | |
5105 | ||
5106 | int | |
5107 | main () | |
5108 | { | |
5109 | ||
5110 | ; | |
5111 | return 0; | |
5112 | } | |
5113 | _ACEOF | |
5114 | if ac_fn_c_try_compile "$LINENO"; then : | |
5115 | eval "$as_acx_Woption=yes" | |
5116 | else | |
5117 | eval "$as_acx_Woption=no" | |
5118 | fi | |
5119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5120 | ||
5121 | fi | |
5122 | eval ac_res=\$$as_acx_Woption | |
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5124 | $as_echo "$ac_res" >&6; } | |
5125 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
095af58f | 5126 | noexception_flags="$noexception_flags${noexception_flags:+ }$real_option" |
e9411247 MM |
5127 | fi |
5128 | done | |
5129 | CFLAGS="$save_CFLAGS" | |
bf5372e7 YS |
5130 | ac_ext=c |
5131 | ac_cpp='$CPP $CPPFLAGS' | |
5132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5135 | ||
e9411247 MM |
5136 | |
5137 | ||
0e1a989c ILT |
5138 | # Only enable with --enable-werror-always until existing warnings are |
5139 | # corrected. | |
bf5372e7 YS |
5140 | ac_ext=c |
5141 | ac_cpp='$CPP $CPPFLAGS' | |
5142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5145 | ||
0e1a989c ILT |
5146 | WERROR= |
5147 | # Check whether --enable-werror-always was given. | |
5148 | if test "${enable_werror_always+set}" = set; then : | |
5149 | enableval=$enable_werror_always; | |
5213506e | 5150 | else |
0e1a989c | 5151 | enable_werror_always=no |
4f4e53dd | 5152 | fi |
4f4e53dd | 5153 | |
0e1a989c ILT |
5154 | if test $enable_werror_always = yes; then : |
5155 | WERROR="$WERROR${WERROR:+ }-Werror" | |
5213506e | 5156 | fi |
4f4e53dd | 5157 | |
bf5372e7 YS |
5158 | ac_ext=c |
5159 | ac_cpp='$CPP $CPPFLAGS' | |
5160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5163 | ||
4f4e53dd | 5164 | |
0e1a989c ILT |
5165 | |
5166 | # Dependency checking. | |
5167 | rm -rf .tst 2>/dev/null | |
5168 | mkdir .tst 2>/dev/null | |
5169 | if test -d .tst; then | |
5170 | am__leading_dot=. | |
5171 | else | |
5172 | am__leading_dot=_ | |
5173 | fi | |
5174 | rmdir .tst 2>/dev/null | |
5175 | ||
5176 | DEPDIR="${am__leading_dot}deps" | |
5177 | ||
5178 | ac_config_commands="$ac_config_commands depdir" | |
5179 | ||
5180 | ||
0e1a989c ILT |
5181 | ac_ext=cpp |
5182 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5183 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5184 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5185 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5186 | ||
5187 | ||
5188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5189 | /* end confdefs.h. */ | |
5190 | int i; | |
0d667716 | 5191 | _ACEOF |
0e1a989c ILT |
5192 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5193 | ||
5194 | else | |
22e05272 | 5195 | as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5 |
0e1a989c ILT |
5196 | fi |
5197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5198 | ac_ext=c | |
5199 | ac_cpp='$CPP $CPPFLAGS' | |
5200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5203 | ||
5204 | depcc="$CXX" am_compiler_list= | |
5205 | ||
5206 | am_depcomp=$ac_aux_dir/depcomp | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5208 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5209 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
0e1a989c ILT |
5210 | $as_echo_n "(cached) " >&6 |
5211 | else | |
5212 | if test -f "$am_depcomp"; then | |
5213 | # We make a subdir and do the tests there. Otherwise we can end up | |
5214 | # making bogus files that we don't know about and never remove. For | |
5215 | # instance it was reported that on HP-UX the gcc test will end up | |
5216 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5217 | # in D'. | |
5218 | mkdir conftest.dir | |
5219 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5220 | # using a relative directory. | |
5221 | cp "$am_depcomp" conftest.dir | |
5222 | cd conftest.dir | |
5223 | # We will build objects and dependencies in a subdirectory because | |
5224 | # it helps to detect inapplicable dependency modes. For instance | |
5225 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5226 | # side effect of compilation, but ICC will put the dependencies in | |
5227 | # the current directory while Tru64 will put them in the object | |
5228 | # directory. | |
5229 | mkdir sub | |
5230 | ||
5231 | am_cv_CXX_dependencies_compiler_type=none | |
5232 | if test "$am_compiler_list" = ""; then | |
5233 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5234 | fi | |
5235 | for depmode in $am_compiler_list; do | |
5236 | if test $depmode = none; then break; fi | |
5237 | ||
5238 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
5239 | # Setup a source with many dependencies, because some compilers | |
5240 | # like to wrap large dependency lists on column 80 (with \), and | |
5241 | # we should not choose a depcomp mode which is confused by this. | |
5242 | # | |
5243 | # We need to recreate these files for each test, as the compiler may | |
5244 | # overwrite some of them when testing with obscure command lines. | |
5245 | # This happens at least with the AIX C compiler. | |
5246 | : > sub/conftest.c | |
5247 | for i in 1 2 3 4 5 6; do | |
5248 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5249 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5250 | # Solaris 8's {/usr,}/bin/sh. | |
5251 | touch sub/conftst$i.h | |
5252 | done | |
5253 | echo "include sub/conftest.Po" > confmf | |
5254 | ||
5255 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5256 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5257 | # handle `-M -o', and we need to detect this. | |
5258 | depcmd="depmode=$depmode \ | |
5259 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
5260 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5261 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
5262 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
5263 | if env $depcmd > conftest.err 2>&1 && | |
5264 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
5265 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
5266 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
5267 | # icc doesn't choke on unknown options, it will just issue warnings | |
5268 | # or remarks (even with -Werror). So we grep stderr for any message | |
5269 | # that says an option was ignored or not supported. | |
5270 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5271 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5272 | # The diagnosis changed in icc 8.0: | |
5273 | # icc: Command line remark: option '-MP' not supported | |
5274 | if (grep 'ignoring option' conftest.err || | |
5275 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5276 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5277 | $as_echo "$as_me:$LINENO: success" >&5 | |
5278 | break | |
5279 | fi | |
5280 | fi | |
5281 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
5282 | sed -e 's/^/| /' < conftest.err >&5 | |
5283 | done | |
5284 | ||
5285 | cd .. | |
5286 | rm -rf conftest.dir | |
5287 | else | |
5288 | am_cv_CXX_dependencies_compiler_type=none | |
5289 | fi | |
0d667716 | 5290 | |
5213506e | 5291 | fi |
0e1a989c ILT |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5293 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5294 | if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone | |
22e05272 | 5295 | then as_fn_error $? "no usable dependency style found" "$LINENO" 5 |
0e1a989c | 5296 | else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
0d667716 KG |
5297 | |
5298 | fi | |
5213506e | 5299 | |
0e1a989c ILT |
5300 | |
5301 | # Checks for header files. | |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
5303 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
22e05272 | 5304 | if ${ac_cv_header_time+:} false; then : |
0e1a989c | 5305 | $as_echo_n "(cached) " >&6 |
0d667716 | 5306 | else |
5213506e | 5307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5308 | /* end confdefs.h. */ |
0e1a989c ILT |
5309 | #include <sys/types.h> |
5310 | #include <sys/time.h> | |
5311 | #include <time.h> | |
5213506e | 5312 | |
0d667716 KG |
5313 | int |
5314 | main () | |
5315 | { | |
0e1a989c ILT |
5316 | if ((struct tm *) 0) |
5317 | return 0; | |
5318 | ; | |
0d667716 KG |
5319 | return 0; |
5320 | } | |
5321 | _ACEOF | |
0e1a989c ILT |
5322 | if ac_fn_c_try_compile "$LINENO"; then : |
5323 | ac_cv_header_time=yes | |
0d667716 | 5324 | else |
0e1a989c | 5325 | ac_cv_header_time=no |
5213506e | 5326 | fi |
0e1a989c | 5327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5328 | fi |
0e1a989c ILT |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
5330 | $as_echo "$ac_cv_header_time" >&6; } | |
5331 | if test $ac_cv_header_time = yes; then | |
0d667716 | 5332 | |
0e1a989c | 5333 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
0d667716 | 5334 | |
5213506e RW |
5335 | fi |
5336 | ||
0e1a989c ILT |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
5338 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 5339 | if ${gcc_cv_header_string+:} false; then : |
5213506e | 5340 | $as_echo_n "(cached) " >&6 |
0d667716 | 5341 | else |
5213506e RW |
5342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5343 | /* end confdefs.h. */ | |
0e1a989c ILT |
5344 | #include <string.h> |
5345 | #include <strings.h> | |
5346 | int | |
5347 | main () | |
5348 | { | |
4f4e53dd | 5349 | |
0e1a989c ILT |
5350 | ; |
5351 | return 0; | |
5352 | } | |
4f4e53dd | 5353 | _ACEOF |
0e1a989c ILT |
5354 | if ac_fn_c_try_compile "$LINENO"; then : |
5355 | gcc_cv_header_string=yes | |
5213506e | 5356 | else |
0e1a989c | 5357 | gcc_cv_header_string=no |
4f4e53dd | 5358 | fi |
0e1a989c | 5359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5213506e | 5360 | fi |
0e1a989c ILT |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
5362 | $as_echo "$gcc_cv_header_string" >&6; } | |
5363 | if test $gcc_cv_header_string = yes; then | |
4f4e53dd | 5364 | |
0e1a989c | 5365 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h |
4f4e53dd | 5366 | |
5213506e RW |
5367 | fi |
5368 | ||
5213506e RW |
5369 | |
5370 | for ac_header in locale.h fcntl.h limits.h stddef.h \ | |
0e1a989c | 5371 | stdlib.h strings.h string.h sys/file.h unistd.h |
5213506e RW |
5372 | do : |
5373 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
0e1a989c | 5374 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
22e05272 | 5375 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4f4e53dd | 5376 | cat >>confdefs.h <<_ACEOF |
5213506e | 5377 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4f4e53dd PB |
5378 | _ACEOF |
5379 | ||
5213506e RW |
5380 | fi |
5381 | ||
5382 | done | |
4f4e53dd | 5383 | |
5213506e RW |
5384 | |
5385 | # Checks for typedefs, structures, and compiler characteristics. | |
246a2fcb RH |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5387 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
22e05272 | 5388 | if ${ac_cv_c_bigendian+:} false; then : |
246a2fcb RH |
5389 | $as_echo_n "(cached) " >&6 |
5390 | else | |
5391 | ac_cv_c_bigendian=unknown | |
5392 | # See if we're dealing with a universal compiler. | |
5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5394 | /* end confdefs.h. */ | |
5395 | #ifndef __APPLE_CC__ | |
5396 | not a universal capable compiler | |
5397 | #endif | |
5398 | typedef int dummy; | |
5399 | ||
5400 | _ACEOF | |
0e1a989c | 5401 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5402 | |
5403 | # Check for potential -arch flags. It is not universal unless | |
5404 | # there are at least two -arch flags with different values. | |
5405 | ac_arch= | |
5406 | ac_prev= | |
5407 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5408 | if test -n "$ac_prev"; then | |
5409 | case $ac_word in | |
5410 | i?86 | x86_64 | ppc | ppc64) | |
5411 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5412 | ac_arch=$ac_word | |
5413 | else | |
5414 | ac_cv_c_bigendian=universal | |
5415 | break | |
5416 | fi | |
5417 | ;; | |
5418 | esac | |
5419 | ac_prev= | |
5420 | elif test "x$ac_word" = "x-arch"; then | |
5421 | ac_prev=arch | |
5422 | fi | |
5423 | done | |
5424 | fi | |
5425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5426 | if test $ac_cv_c_bigendian = unknown; then | |
5427 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5429 | /* end confdefs.h. */ | |
5430 | #include <sys/types.h> | |
5431 | #include <sys/param.h> | |
5432 | ||
5433 | int | |
5434 | main () | |
5435 | { | |
5436 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5437 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5438 | && LITTLE_ENDIAN) | |
5439 | bogus endian macros | |
5440 | #endif | |
5441 | ||
5442 | ; | |
5443 | return 0; | |
5444 | } | |
5445 | _ACEOF | |
0e1a989c | 5446 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5447 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5449 | /* end confdefs.h. */ | |
5450 | #include <sys/types.h> | |
5451 | #include <sys/param.h> | |
5452 | ||
5453 | int | |
5454 | main () | |
5455 | { | |
5456 | #if BYTE_ORDER != BIG_ENDIAN | |
5457 | not big endian | |
5458 | #endif | |
5459 | ||
5460 | ; | |
5461 | return 0; | |
5462 | } | |
5463 | _ACEOF | |
0e1a989c | 5464 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5465 | ac_cv_c_bigendian=yes |
5466 | else | |
5467 | ac_cv_c_bigendian=no | |
5468 | fi | |
5469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5470 | fi | |
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5472 | fi | |
5473 | if test $ac_cv_c_bigendian = unknown; then | |
5474 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5476 | /* end confdefs.h. */ | |
5477 | #include <limits.h> | |
5478 | ||
5479 | int | |
5480 | main () | |
5481 | { | |
5482 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5483 | bogus endian macros | |
5484 | #endif | |
5485 | ||
5486 | ; | |
5487 | return 0; | |
5488 | } | |
5489 | _ACEOF | |
0e1a989c | 5490 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5491 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5493 | /* end confdefs.h. */ | |
5494 | #include <limits.h> | |
5495 | ||
5496 | int | |
5497 | main () | |
5498 | { | |
5499 | #ifndef _BIG_ENDIAN | |
5500 | not big endian | |
5501 | #endif | |
5502 | ||
5503 | ; | |
5504 | return 0; | |
5505 | } | |
5506 | _ACEOF | |
0e1a989c | 5507 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5508 | ac_cv_c_bigendian=yes |
5509 | else | |
5510 | ac_cv_c_bigendian=no | |
5511 | fi | |
5512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5513 | fi | |
5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5515 | fi | |
5516 | if test $ac_cv_c_bigendian = unknown; then | |
5517 | # Compile a test program. | |
5518 | if test "$cross_compiling" = yes; then : | |
5519 | # Try to guess by grepping values from an object file. | |
5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5521 | /* end confdefs.h. */ | |
5522 | short int ascii_mm[] = | |
5523 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5524 | short int ascii_ii[] = | |
5525 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5526 | int use_ascii (int i) { | |
5527 | return ascii_mm[i] + ascii_ii[i]; | |
5528 | } | |
5529 | short int ebcdic_ii[] = | |
5530 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5531 | short int ebcdic_mm[] = | |
5532 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5533 | int use_ebcdic (int i) { | |
5534 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5535 | } | |
5536 | extern int foo; | |
5537 | ||
5538 | int | |
5539 | main () | |
5540 | { | |
5541 | return use_ascii (foo) == use_ebcdic (foo); | |
5542 | ; | |
5543 | return 0; | |
5544 | } | |
5545 | _ACEOF | |
0e1a989c | 5546 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5547 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
5548 | ac_cv_c_bigendian=yes | |
5549 | fi | |
5550 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5551 | if test "$ac_cv_c_bigendian" = unknown; then | |
5552 | ac_cv_c_bigendian=no | |
5553 | else | |
5554 | # finding both strings is unlikely to happen, but who knows? | |
5555 | ac_cv_c_bigendian=unknown | |
5556 | fi | |
5557 | fi | |
5558 | fi | |
5559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5560 | else | |
5561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5562 | /* end confdefs.h. */ | |
5563 | $ac_includes_default | |
5564 | int | |
5565 | main () | |
5566 | { | |
5567 | ||
5568 | /* Are we little or big endian? From Harbison&Steele. */ | |
5569 | union | |
5570 | { | |
5571 | long int l; | |
5572 | char c[sizeof (long int)]; | |
5573 | } u; | |
5574 | u.l = 1; | |
5575 | return u.c[sizeof (long int) - 1] == 1; | |
5576 | ||
5577 | ; | |
5578 | return 0; | |
5579 | } | |
5580 | _ACEOF | |
0e1a989c | 5581 | if ac_fn_c_try_run "$LINENO"; then : |
246a2fcb RH |
5582 | ac_cv_c_bigendian=no |
5583 | else | |
5584 | ac_cv_c_bigendian=yes | |
5585 | fi | |
5586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5587 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5588 | fi | |
5589 | ||
5590 | fi | |
5591 | fi | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5593 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5594 | case $ac_cv_c_bigendian in #( | |
5595 | yes) | |
5596 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5597 | ;; #( | |
5598 | no) | |
5599 | ;; #( | |
5600 | universal) | |
5601 | ||
5602 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5603 | ||
5604 | ;; #( | |
5605 | *) | |
22e05272 | 5606 | as_fn_error $? "unknown endianness |
246a2fcb RH |
5607 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5608 | esac | |
5609 | ||
5213506e RW |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5611 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
22e05272 | 5612 | if ${ac_cv_c_const+:} false; then : |
5213506e | 5613 | $as_echo_n "(cached) " >&6 |
0d667716 | 5614 | else |
5213506e | 5615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5616 | /* end confdefs.h. */ |
5213506e | 5617 | |
0d667716 KG |
5618 | int |
5619 | main () | |
5620 | { | |
22e05272 | 5621 | |
5213506e | 5622 | #ifndef __cplusplus |
22e05272 | 5623 | /* Ultrix mips cc rejects this sort of thing. */ |
5213506e | 5624 | typedef int charset[2]; |
22e05272 | 5625 | const charset cs = { 0, 0 }; |
5213506e RW |
5626 | /* SunOS 4.1.1 cc rejects this. */ |
5627 | char const *const *pcpcc; | |
5628 | char **ppc; | |
5629 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5630 | struct point {int x, y;}; | |
5631 | static struct point const zero = {0,0}; | |
5632 | /* AIX XL C 1.02.0.0 rejects this. | |
5633 | It does not let you subtract one const X* pointer from another in | |
5634 | an arm of an if-expression whose if-part is not a constant | |
5635 | expression */ | |
5636 | const char *g = "string"; | |
5637 | pcpcc = &g + (g ? g-g : 0); | |
5638 | /* HPUX 7.0 cc rejects these. */ | |
5639 | ++pcpcc; | |
5640 | ppc = (char**) pcpcc; | |
5641 | pcpcc = (char const *const *) ppc; | |
22e05272 JM |
5642 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
5643 | char tx; | |
5644 | char *t = &tx; | |
5213506e RW |
5645 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
5646 | ||
5647 | *t++ = 0; | |
5648 | if (s) return 0; | |
5649 | } | |
5650 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5651 | int x[] = {25, 17}; | |
5652 | const int *foo = &x[0]; | |
5653 | ++foo; | |
5654 | } | |
5655 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5656 | typedef const int *iptr; | |
5657 | iptr p = 0; | |
5658 | ++p; | |
5659 | } | |
22e05272 | 5660 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
5213506e | 5661 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
22e05272 JM |
5662 | struct s { int j; const int *ap[3]; } bx; |
5663 | struct s *b = &bx; b->j = 5; | |
5213506e RW |
5664 | } |
5665 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5666 | const int foo = 10; | |
5667 | if (!foo) return 0; | |
5668 | } | |
5669 | return !cs[0] && !zero.x; | |
0d667716 KG |
5670 | #endif |
5671 | ||
5672 | ; | |
5673 | return 0; | |
5674 | } | |
5675 | _ACEOF | |
0e1a989c | 5676 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e | 5677 | ac_cv_c_const=yes |
0d667716 | 5678 | else |
5213506e | 5679 | ac_cv_c_const=no |
0d667716 | 5680 | fi |
5213506e | 5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5682 | fi |
5213506e RW |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5684 | $as_echo "$ac_cv_c_const" >&6; } | |
5685 | if test $ac_cv_c_const = no; then | |
0d667716 | 5686 | |
5213506e | 5687 | $as_echo "#define const /**/" >>confdefs.h |
0d667716 | 5688 | |
5213506e | 5689 | fi |
0d667716 | 5690 | |
5213506e RW |
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5692 | $as_echo_n "checking for inline... " >&6; } | |
22e05272 | 5693 | if ${ac_cv_c_inline+:} false; then : |
5213506e | 5694 | $as_echo_n "(cached) " >&6 |
0d667716 | 5695 | else |
5213506e RW |
5696 | ac_cv_c_inline=no |
5697 | for ac_kw in inline __inline__ __inline; do | |
5698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5699 | /* end confdefs.h. */ | |
5700 | #ifndef __cplusplus | |
5701 | typedef int foo_t; | |
5702 | static $ac_kw foo_t static_foo () {return 0; } | |
5703 | $ac_kw foo_t foo () {return 0; } | |
5704 | #endif | |
5705 | ||
0d667716 | 5706 | _ACEOF |
0e1a989c | 5707 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e RW |
5708 | ac_cv_c_inline=$ac_kw |
5709 | fi | |
5710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5711 | test "$ac_cv_c_inline" != no && break | |
5712 | done | |
0d667716 | 5713 | |
5213506e RW |
5714 | fi |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
5716 | $as_echo "$ac_cv_c_inline" >&6; } | |
5717 | ||
5718 | case $ac_cv_c_inline in | |
5719 | inline | yes) ;; | |
5720 | *) | |
5721 | case $ac_cv_c_inline in | |
5722 | no) ac_val=;; | |
5723 | *) ac_val=$ac_cv_c_inline;; | |
5724 | esac | |
5725 | cat >>confdefs.h <<_ACEOF | |
5726 | #ifndef __cplusplus | |
5727 | #define inline $ac_val | |
5728 | #endif | |
5729 | _ACEOF | |
5730 | ;; | |
5731 | esac | |
0d667716 | 5732 | |
5213506e RW |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 |
5734 | $as_echo_n "checking for obstacks... " >&6; } | |
22e05272 | 5735 | if ${ac_cv_func_obstack+:} false; then : |
5213506e | 5736 | $as_echo_n "(cached) " >&6 |
0d667716 | 5737 | else |
5213506e | 5738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 KG |
5739 | /* end confdefs.h. */ |
5740 | $ac_includes_default | |
5213506e | 5741 | #include "obstack.h" |
0d667716 KG |
5742 | int |
5743 | main () | |
5744 | { | |
5213506e RW |
5745 | struct obstack mem; |
5746 | #define obstack_chunk_alloc malloc | |
5747 | #define obstack_chunk_free free | |
5748 | obstack_init (&mem); | |
5749 | obstack_free (&mem, 0); | |
0d667716 KG |
5750 | ; |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
0e1a989c | 5754 | if ac_fn_c_try_link "$LINENO"; then : |
5213506e | 5755 | ac_cv_func_obstack=yes |
0d667716 | 5756 | else |
5213506e | 5757 | ac_cv_func_obstack=no |
0d667716 | 5758 | fi |
5213506e RW |
5759 | rm -f core conftest.err conftest.$ac_objext \ |
5760 | conftest$ac_exeext conftest.$ac_ext | |
0d667716 | 5761 | fi |
5213506e RW |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5 |
5763 | $as_echo "$ac_cv_func_obstack" >&6; } | |
5764 | if test $ac_cv_func_obstack = yes; then | |
0d667716 | 5765 | |
5213506e | 5766 | $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h |
0d667716 KG |
5767 | |
5768 | else | |
5213506e RW |
5769 | case " $LIBOBJS " in |
5770 | *" obstack.$ac_objext "* ) ;; | |
5771 | *) LIBOBJS="$LIBOBJS obstack.$ac_objext" | |
5772 | ;; | |
5773 | esac | |
0d667716 KG |
5774 | |
5775 | fi | |
5213506e | 5776 | |
0e1a989c | 5777 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 5778 | if test "x$ac_cv_type_off_t" = xyes; then : |
5213506e | 5779 | |
0d667716 | 5780 | else |
0d667716 | 5781 | |
5213506e RW |
5782 | cat >>confdefs.h <<_ACEOF |
5783 | #define off_t long int | |
0d667716 | 5784 | _ACEOF |
0d667716 | 5785 | |
0d667716 | 5786 | fi |
5213506e | 5787 | |
0e1a989c | 5788 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
22e05272 | 5789 | if test "x$ac_cv_type_size_t" = xyes; then : |
5213506e RW |
5790 | |
5791 | else | |
0d667716 KG |
5792 | |
5793 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5794 | #define size_t unsigned int |
0d667716 KG |
5795 | _ACEOF |
5796 | ||
5213506e RW |
5797 | fi |
5798 | ||
0e1a989c | 5799 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
22e05272 | 5800 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
0d667716 KG |
5801 | |
5802 | else | |
0d667716 | 5803 | |
5213506e RW |
5804 | cat >>confdefs.h <<_ACEOF |
5805 | #define ssize_t int | |
5806 | _ACEOF | |
0d667716 | 5807 | |
246a2fcb RH |
5808 | fi |
5809 | ||
5810 | ||
0e1a989c | 5811 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
22e05272 | 5812 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
246a2fcb RH |
5813 | |
5814 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
5815 | ||
5816 | else | |
5817 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
5818 | 'unsigned long long int'; do | |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5820 | /* end confdefs.h. */ | |
5821 | $ac_includes_default | |
5822 | int | |
5823 | main () | |
5824 | { | |
5825 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
5826 | test_array [0] = 0; |
5827 | return test_array [0]; | |
246a2fcb RH |
5828 | |
5829 | ; | |
5830 | return 0; | |
5831 | } | |
5832 | _ACEOF | |
0e1a989c | 5833 | if ac_fn_c_try_compile "$LINENO"; then : |
246a2fcb RH |
5834 | |
5835 | cat >>confdefs.h <<_ACEOF | |
5836 | #define uintptr_t $ac_type | |
5837 | _ACEOF | |
5838 | ||
5839 | ac_type= | |
5840 | fi | |
5841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5842 | test -z "$ac_type" && break | |
5843 | done | |
5844 | fi | |
5845 | ||
5846 | ||
0e1a989c | 5847 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
22e05272 | 5848 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
246a2fcb RH |
5849 | |
5850 | else | |
5851 | ||
5852 | cat >>confdefs.h <<_ACEOF | |
5853 | #define ptrdiff_t int | |
5854 | _ACEOF | |
5855 | ||
54da09ee RB |
5856 | fi |
5857 | ||
edf6ddf6 RB |
5858 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
5859 | case $ac_cv_c_uint64_t in #( | |
5860 | no|yes) ;; #( | |
5861 | *) | |
54da09ee | 5862 | |
edf6ddf6 | 5863 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
54da09ee RB |
5864 | |
5865 | ||
5866 | cat >>confdefs.h <<_ACEOF | |
edf6ddf6 | 5867 | #define uint64_t $ac_cv_c_uint64_t |
54da09ee | 5868 | _ACEOF |
edf6ddf6 RB |
5869 | ;; |
5870 | esac | |
54da09ee | 5871 | |
edf6ddf6 | 5872 | if test x"$ac_cv_c_uint64_t" = x"no"; then |
22e05272 | 5873 | as_fn_error $? "uint64_t not found" "$LINENO" 5 |
0d667716 | 5874 | fi |
5213506e RW |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
5876 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
22e05272 | 5877 | if ${ac_cv_struct_tm+:} false; then : |
5213506e | 5878 | $as_echo_n "(cached) " >&6 |
0d667716 | 5879 | else |
5213506e | 5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0d667716 | 5881 | /* end confdefs.h. */ |
5213506e RW |
5882 | #include <sys/types.h> |
5883 | #include <time.h> | |
5884 | ||
0d667716 KG |
5885 | int |
5886 | main () | |
5887 | { | |
5213506e RW |
5888 | struct tm tm; |
5889 | int *p = &tm.tm_sec; | |
5890 | return !p; | |
0d667716 KG |
5891 | ; |
5892 | return 0; | |
5893 | } | |
5894 | _ACEOF | |
0e1a989c | 5895 | if ac_fn_c_try_compile "$LINENO"; then : |
5213506e | 5896 | ac_cv_struct_tm=time.h |
0d667716 | 5897 | else |
5213506e | 5898 | ac_cv_struct_tm=sys/time.h |
0d667716 | 5899 | fi |
5213506e | 5900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d667716 | 5901 | fi |
5213506e RW |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
5903 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5904 | if test $ac_cv_struct_tm = sys/time.h; then | |
0d667716 | 5905 | |
5213506e | 5906 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
0d667716 | 5907 | |
5213506e | 5908 | fi |
0d667716 | 5909 | |
5213506e RW |
5910 | # The cast to long int works around a bug in the HP C Compiler |
5911 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5912 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5913 | # This bug is HP SR number 8606223364. | |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5915 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 5916 | if ${ac_cv_sizeof_int+:} false; then : |
5213506e | 5917 | $as_echo_n "(cached) " >&6 |
0d667716 | 5918 | else |
0e1a989c | 5919 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
0d667716 | 5920 | |
5213506e RW |
5921 | else |
5922 | if test "$ac_cv_type_int" = yes; then | |
5923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5925 | as_fn_error 77 "cannot compute sizeof (int) |
5926 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
5927 | else |
5928 | ac_cv_sizeof_int=0 | |
5929 | fi | |
5930 | fi | |
0d667716 KG |
5931 | |
5932 | fi | |
5213506e RW |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
5934 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
0d667716 | 5935 | |
0d667716 | 5936 | |
0d667716 KG |
5937 | |
5938 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5939 | #define SIZEOF_INT $ac_cv_sizeof_int |
0d667716 KG |
5940 | _ACEOF |
5941 | ||
5942 | ||
5213506e RW |
5943 | # The cast to long int works around a bug in the HP C Compiler |
5944 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5945 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5946 | # This bug is HP SR number 8606223364. | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5948 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 5949 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e | 5950 | $as_echo_n "(cached) " >&6 |
0d667716 | 5951 | else |
0e1a989c | 5952 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
0d667716 | 5953 | |
5213506e RW |
5954 | else |
5955 | if test "$ac_cv_type_long" = yes; then | |
5956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5958 | as_fn_error 77 "cannot compute sizeof (long) |
5959 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
5960 | else |
5961 | ac_cv_sizeof_long=0 | |
5962 | fi | |
5963 | fi | |
0d667716 KG |
5964 | |
5965 | fi | |
5213506e RW |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
5967 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
0d667716 | 5968 | |
0d667716 | 5969 | |
0d667716 KG |
5970 | |
5971 | cat >>confdefs.h <<_ACEOF | |
5213506e | 5972 | #define SIZEOF_LONG $ac_cv_sizeof_long |
0d667716 KG |
5973 | _ACEOF |
5974 | ||
5975 | ||
5213506e RW |
5976 | |
5977 | for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked | |
5978 | do : | |
5979 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
0e1a989c | 5980 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
22e05272 | 5981 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
0d667716 | 5982 | cat >>confdefs.h <<_ACEOF |
5213506e | 5983 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
0d667716 KG |
5984 | _ACEOF |
5985 | ||
0d667716 | 5986 | fi |
5213506e RW |
5987 | done |
5988 | ||
0e1a989c | 5989 | ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default" |
22e05272 | 5990 | if test "x$ac_cv_have_decl_abort" = xyes; then : |
5213506e | 5991 | ac_have_decl=1 |
0d667716 | 5992 | else |
5213506e RW |
5993 | ac_have_decl=0 |
5994 | fi | |
0d667716 | 5995 | |
5213506e RW |
5996 | cat >>confdefs.h <<_ACEOF |
5997 | #define HAVE_DECL_ABORT $ac_have_decl | |
0d667716 | 5998 | _ACEOF |
0e1a989c | 5999 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
22e05272 | 6000 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : |
5213506e | 6001 | ac_have_decl=1 |
0d667716 | 6002 | else |
5213506e | 6003 | ac_have_decl=0 |
0d667716 | 6004 | fi |
0d667716 KG |
6005 | |
6006 | cat >>confdefs.h <<_ACEOF | |
5213506e | 6007 | #define HAVE_DECL_ASPRINTF $ac_have_decl |
0d667716 | 6008 | _ACEOF |
22e05272 JM |
6009 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` |
6010 | ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" | |
6011 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | |
5213506e | 6012 | ac_have_decl=1 |
0d667716 | 6013 | else |
5213506e | 6014 | ac_have_decl=0 |
0d667716 | 6015 | fi |
0d667716 | 6016 | |
5213506e RW |
6017 | cat >>confdefs.h <<_ACEOF |
6018 | #define HAVE_DECL_BASENAME $ac_have_decl | |
0d667716 | 6019 | _ACEOF |
0e1a989c | 6020 | ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default" |
22e05272 | 6021 | if test "x$ac_cv_have_decl_errno" = xyes; then : |
5213506e | 6022 | ac_have_decl=1 |
0d667716 | 6023 | else |
5213506e | 6024 | ac_have_decl=0 |
0d667716 | 6025 | fi |
5213506e RW |
6026 | |
6027 | cat >>confdefs.h <<_ACEOF | |
6028 | #define HAVE_DECL_ERRNO $ac_have_decl | |
6029 | _ACEOF | |
0e1a989c | 6030 | ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" |
22e05272 | 6031 | if test "x$ac_cv_have_decl_getopt" = xyes; then : |
5213506e RW |
6032 | ac_have_decl=1 |
6033 | else | |
6034 | ac_have_decl=0 | |
0d667716 | 6035 | fi |
0d667716 KG |
6036 | |
6037 | cat >>confdefs.h <<_ACEOF | |
5213506e | 6038 | #define HAVE_DECL_GETOPT $ac_have_decl |
0d667716 | 6039 | _ACEOF |
0e1a989c | 6040 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
22e05272 | 6041 | if test "x$ac_cv_have_decl_vasprintf" = xyes; then : |
c3f247f4 RW |
6042 | ac_have_decl=1 |
6043 | else | |
6044 | ac_have_decl=0 | |
6045 | fi | |
6046 | ||
6047 | cat >>confdefs.h <<_ACEOF | |
6048 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
6049 | _ACEOF | |
6050 | ||
0e1a989c | 6051 | ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" |
22e05272 | 6052 | if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then : |
5213506e RW |
6053 | ac_have_decl=1 |
6054 | else | |
6055 | ac_have_decl=0 | |
6056 | fi | |
0d667716 | 6057 | |
5213506e RW |
6058 | cat >>confdefs.h <<_ACEOF |
6059 | #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl | |
6060 | _ACEOF | |
0e1a989c | 6061 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" |
22e05272 | 6062 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
5213506e RW |
6063 | ac_have_decl=1 |
6064 | else | |
6065 | ac_have_decl=0 | |
6066 | fi | |
0d667716 | 6067 | |
5213506e RW |
6068 | cat >>confdefs.h <<_ACEOF |
6069 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl | |
6070 | _ACEOF | |
0e1a989c | 6071 | ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" |
22e05272 | 6072 | if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then : |
5213506e | 6073 | ac_have_decl=1 |
0d667716 | 6074 | else |
5213506e RW |
6075 | ac_have_decl=0 |
6076 | fi | |
6077 | ||
6078 | cat >>confdefs.h <<_ACEOF | |
6079 | #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl | |
0d667716 | 6080 | _ACEOF |
0e1a989c | 6081 | ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" |
22e05272 | 6082 | if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then : |
5213506e RW |
6083 | ac_have_decl=1 |
6084 | else | |
6085 | ac_have_decl=0 | |
6086 | fi | |
0d667716 | 6087 | |
5213506e RW |
6088 | cat >>confdefs.h <<_ACEOF |
6089 | #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl | |
6090 | _ACEOF | |
0e1a989c | 6091 | ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default" |
22e05272 | 6092 | if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then : |
5213506e RW |
6093 | ac_have_decl=1 |
6094 | else | |
6095 | ac_have_decl=0 | |
6096 | fi | |
0d667716 | 6097 | |
5213506e RW |
6098 | cat >>confdefs.h <<_ACEOF |
6099 | #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl | |
6100 | _ACEOF | |
0e1a989c | 6101 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" |
22e05272 | 6102 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
5213506e RW |
6103 | ac_have_decl=1 |
6104 | else | |
6105 | ac_have_decl=0 | |
c3f829c1 | 6106 | fi |
5213506e RW |
6107 | |
6108 | cat >>confdefs.h <<_ACEOF | |
6109 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl | |
6110 | _ACEOF | |
0e1a989c | 6111 | ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default" |
22e05272 | 6112 | if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then : |
5213506e | 6113 | ac_have_decl=1 |
c3f829c1 | 6114 | else |
5213506e RW |
6115 | ac_have_decl=0 |
6116 | fi | |
6117 | ||
6118 | cat >>confdefs.h <<_ACEOF | |
6119 | #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl | |
c3f829c1 | 6120 | _ACEOF |
0e1a989c | 6121 | ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default" |
22e05272 | 6122 | if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then : |
5213506e RW |
6123 | ac_have_decl=1 |
6124 | else | |
6125 | ac_have_decl=0 | |
6126 | fi | |
c3f829c1 | 6127 | |
5213506e RW |
6128 | cat >>confdefs.h <<_ACEOF |
6129 | #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl | |
c3f829c1 | 6130 | _ACEOF |
0e1a989c | 6131 | ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" |
22e05272 | 6132 | if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then : |
5213506e | 6133 | ac_have_decl=1 |
c3f829c1 | 6134 | else |
5213506e RW |
6135 | ac_have_decl=0 |
6136 | fi | |
c3f829c1 | 6137 | |
5213506e RW |
6138 | cat >>confdefs.h <<_ACEOF |
6139 | #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl | |
6140 | _ACEOF | |
0e1a989c | 6141 | ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" |
22e05272 | 6142 | if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then : |
5213506e RW |
6143 | ac_have_decl=1 |
6144 | else | |
6145 | ac_have_decl=0 | |
c3f829c1 | 6146 | fi |
5213506e RW |
6147 | |
6148 | cat >>confdefs.h <<_ACEOF | |
6149 | #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl | |
6150 | _ACEOF | |
0e1a989c | 6151 | ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" |
22e05272 | 6152 | if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then : |
5213506e RW |
6153 | ac_have_decl=1 |
6154 | else | |
6155 | ac_have_decl=0 | |
c3f829c1 | 6156 | fi |
c3f829c1 GDR |
6157 | |
6158 | cat >>confdefs.h <<_ACEOF | |
5213506e | 6159 | #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl |
c3f829c1 | 6160 | _ACEOF |
0e1a989c | 6161 | ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" |
22e05272 | 6162 | if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then : |
5213506e RW |
6163 | ac_have_decl=1 |
6164 | else | |
6165 | ac_have_decl=0 | |
6166 | fi | |
c3f829c1 | 6167 | |
5213506e RW |
6168 | cat >>confdefs.h <<_ACEOF |
6169 | #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl | |
6170 | _ACEOF | |
0e1a989c | 6171 | ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" |
22e05272 | 6172 | if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then : |
5213506e RW |
6173 | ac_have_decl=1 |
6174 | else | |
6175 | ac_have_decl=0 | |
6176 | fi | |
c3f829c1 | 6177 | |
5213506e RW |
6178 | cat >>confdefs.h <<_ACEOF |
6179 | #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl | |
6180 | _ACEOF | |
0e1a989c | 6181 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" |
22e05272 | 6182 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
5213506e | 6183 | ac_have_decl=1 |
c3f829c1 | 6184 | else |
5213506e RW |
6185 | ac_have_decl=0 |
6186 | fi | |
6187 | ||
6188 | cat >>confdefs.h <<_ACEOF | |
6189 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl | |
c3f829c1 | 6190 | _ACEOF |
0e1a989c | 6191 | ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" |
22e05272 | 6192 | if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then : |
5213506e RW |
6193 | ac_have_decl=1 |
6194 | else | |
6195 | ac_have_decl=0 | |
6196 | fi | |
c3f829c1 | 6197 | |
5213506e RW |
6198 | cat >>confdefs.h <<_ACEOF |
6199 | #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl | |
6200 | _ACEOF | |
0e1a989c | 6201 | ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" |
22e05272 | 6202 | if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then : |
5213506e RW |
6203 | ac_have_decl=1 |
6204 | else | |
6205 | ac_have_decl=0 | |
6206 | fi | |
c3f829c1 | 6207 | |
5213506e RW |
6208 | cat >>confdefs.h <<_ACEOF |
6209 | #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl | |
6210 | _ACEOF | |
4f4e53dd PB |
6211 | |
6212 | ||
6213 | # Checks for library functions. | |
6214 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6215 | # for constant arguments. Useless! | |
5213506e RW |
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6217 | $as_echo_n "checking for working alloca.h... " >&6; } | |
22e05272 | 6218 | if ${ac_cv_working_alloca_h+:} false; then : |
5213506e | 6219 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6220 | else |
5213506e | 6221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6222 | /* end confdefs.h. */ |
6223 | #include <alloca.h> | |
6224 | int | |
6225 | main () | |
6226 | { | |
6227 | char *p = (char *) alloca (2 * sizeof (int)); | |
5213506e | 6228 | if (p) return 0; |
4f4e53dd PB |
6229 | ; |
6230 | return 0; | |
6231 | } | |
6232 | _ACEOF | |
0e1a989c | 6233 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6234 | ac_cv_working_alloca_h=yes |
6235 | else | |
5213506e | 6236 | ac_cv_working_alloca_h=no |
4f4e53dd | 6237 | fi |
5213506e RW |
6238 | rm -f core conftest.err conftest.$ac_objext \ |
6239 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 6240 | fi |
5213506e RW |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6242 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
4f4e53dd PB |
6243 | if test $ac_cv_working_alloca_h = yes; then |
6244 | ||
5213506e | 6245 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
4f4e53dd PB |
6246 | |
6247 | fi | |
6248 | ||
5213506e RW |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6250 | $as_echo_n "checking for alloca... " >&6; } | |
22e05272 | 6251 | if ${ac_cv_func_alloca_works+:} false; then : |
5213506e | 6252 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6253 | else |
5213506e | 6254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6255 | /* end confdefs.h. */ |
6256 | #ifdef __GNUC__ | |
6257 | # define alloca __builtin_alloca | |
6258 | #else | |
6259 | # ifdef _MSC_VER | |
6260 | # include <malloc.h> | |
6261 | # define alloca _alloca | |
6262 | # else | |
5213506e | 6263 | # ifdef HAVE_ALLOCA_H |
4f4e53dd PB |
6264 | # include <alloca.h> |
6265 | # else | |
6266 | # ifdef _AIX | |
6267 | #pragma alloca | |
6268 | # else | |
6269 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
22e05272 | 6270 | void *alloca (size_t); |
4f4e53dd PB |
6271 | # endif |
6272 | # endif | |
6273 | # endif | |
6274 | # endif | |
6275 | #endif | |
6276 | ||
6277 | int | |
6278 | main () | |
6279 | { | |
6280 | char *p = (char *) alloca (1); | |
5213506e | 6281 | if (p) return 0; |
4f4e53dd PB |
6282 | ; |
6283 | return 0; | |
6284 | } | |
6285 | _ACEOF | |
0e1a989c | 6286 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6287 | ac_cv_func_alloca_works=yes |
6288 | else | |
5213506e | 6289 | ac_cv_func_alloca_works=no |
4f4e53dd | 6290 | fi |
5213506e RW |
6291 | rm -f core conftest.err conftest.$ac_objext \ |
6292 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd | 6293 | fi |
5213506e RW |
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6295 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
4f4e53dd PB |
6296 | |
6297 | if test $ac_cv_func_alloca_works = yes; then | |
6298 | ||
5213506e | 6299 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
4f4e53dd PB |
6300 | |
6301 | else | |
6302 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6303 | # that cause trouble. Some versions do not even contain alloca or | |
6304 | # contain a buggy version. If you still want to use their alloca, | |
6305 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6306 | ||
5213506e | 6307 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
4f4e53dd | 6308 | |
5213506e | 6309 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
4f4e53dd PB |
6310 | |
6311 | ||
5213506e RW |
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6313 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
22e05272 | 6314 | if ${ac_cv_os_cray+:} false; then : |
5213506e | 6315 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6316 | else |
5213506e | 6317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 6318 | /* end confdefs.h. */ |
5213506e | 6319 | #if defined CRAY && ! defined CRAY2 |
4f4e53dd PB |
6320 | webecray |
6321 | #else | |
6322 | wenotbecray | |
6323 | #endif | |
6324 | ||
6325 | _ACEOF | |
6326 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 6327 | $EGREP "webecray" >/dev/null 2>&1; then : |
4f4e53dd PB |
6328 | ac_cv_os_cray=yes |
6329 | else | |
6330 | ac_cv_os_cray=no | |
6331 | fi | |
6332 | rm -f conftest* | |
6333 | ||
6334 | fi | |
5213506e RW |
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6336 | $as_echo "$ac_cv_os_cray" >&6; } | |
4f4e53dd PB |
6337 | if test $ac_cv_os_cray = yes; then |
6338 | for ac_func in _getb67 GETB67 getb67; do | |
5213506e | 6339 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
0e1a989c | 6340 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
22e05272 | 6341 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
4f4e53dd PB |
6342 | |
6343 | cat >>confdefs.h <<_ACEOF | |
6344 | #define CRAY_STACKSEG_END $ac_func | |
6345 | _ACEOF | |
6346 | ||
6347 | break | |
6348 | fi | |
6349 | ||
6350 | done | |
6351 | fi | |
6352 | ||
5213506e RW |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6354 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
22e05272 | 6355 | if ${ac_cv_c_stack_direction+:} false; then : |
5213506e | 6356 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6357 | else |
5213506e | 6358 | if test "$cross_compiling" = yes; then : |
4f4e53dd PB |
6359 | ac_cv_c_stack_direction=0 |
6360 | else | |
5213506e | 6361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd | 6362 | /* end confdefs.h. */ |
5213506e | 6363 | $ac_includes_default |
4f4e53dd | 6364 | int |
22e05272 | 6365 | find_stack_direction (int *addr, int depth) |
4f4e53dd | 6366 | { |
22e05272 JM |
6367 | int dir, dummy = 0; |
6368 | if (! addr) | |
6369 | addr = &dummy; | |
6370 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
6371 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
6372 | return dir + dummy; | |
4f4e53dd PB |
6373 | } |
6374 | ||
6375 | int | |
22e05272 | 6376 | main (int argc, char **argv) |
4f4e53dd | 6377 | { |
22e05272 | 6378 | return find_stack_direction (0, argc + !argv + 20) < 0; |
4f4e53dd PB |
6379 | } |
6380 | _ACEOF | |
0e1a989c | 6381 | if ac_fn_c_try_run "$LINENO"; then : |
4f4e53dd PB |
6382 | ac_cv_c_stack_direction=1 |
6383 | else | |
5213506e | 6384 | ac_cv_c_stack_direction=-1 |
4f4e53dd | 6385 | fi |
5213506e RW |
6386 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6387 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 6388 | fi |
4f4e53dd | 6389 | |
5213506e RW |
6390 | fi |
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
6392 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
4f4e53dd PB |
6393 | cat >>confdefs.h <<_ACEOF |
6394 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6395 | _ACEOF | |
6396 | ||
6397 | ||
6398 | fi | |
6399 | ||
5213506e RW |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
6401 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 6402 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 6403 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6404 | else |
5213506e | 6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6406 | /* end confdefs.h. */ |
6407 | #include <stdlib.h> | |
6408 | #include <stdarg.h> | |
6409 | #include <string.h> | |
6410 | #include <float.h> | |
6411 | ||
6412 | int | |
6413 | main () | |
6414 | { | |
6415 | ||
6416 | ; | |
6417 | return 0; | |
6418 | } | |
6419 | _ACEOF | |
0e1a989c | 6420 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd PB |
6421 | ac_cv_header_stdc=yes |
6422 | else | |
5213506e | 6423 | ac_cv_header_stdc=no |
4f4e53dd | 6424 | fi |
5213506e | 6425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd PB |
6426 | |
6427 | if test $ac_cv_header_stdc = yes; then | |
6428 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 6429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6430 | /* end confdefs.h. */ |
6431 | #include <string.h> | |
6432 | ||
6433 | _ACEOF | |
6434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
6435 | $EGREP "memchr" >/dev/null 2>&1; then : |
6436 | ||
4f4e53dd PB |
6437 | else |
6438 | ac_cv_header_stdc=no | |
6439 | fi | |
6440 | rm -f conftest* | |
6441 | ||
6442 | fi | |
6443 | ||
6444 | if test $ac_cv_header_stdc = yes; then | |
6445 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 6446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6447 | /* end confdefs.h. */ |
6448 | #include <stdlib.h> | |
6449 | ||
6450 | _ACEOF | |
6451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
6452 | $EGREP "free" >/dev/null 2>&1; then : |
6453 | ||
4f4e53dd PB |
6454 | else |
6455 | ac_cv_header_stdc=no | |
6456 | fi | |
6457 | rm -f conftest* | |
6458 | ||
6459 | fi | |
6460 | ||
6461 | if test $ac_cv_header_stdc = yes; then | |
6462 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 6463 | if test "$cross_compiling" = yes; then : |
4f4e53dd PB |
6464 | : |
6465 | else | |
5213506e | 6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6467 | /* end confdefs.h. */ |
6468 | #include <ctype.h> | |
5213506e | 6469 | #include <stdlib.h> |
4f4e53dd PB |
6470 | #if ((' ' & 0x0FF) == 0x020) |
6471 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6472 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6473 | #else | |
6474 | # define ISLOWER(c) \ | |
6475 | (('a' <= (c) && (c) <= 'i') \ | |
6476 | || ('j' <= (c) && (c) <= 'r') \ | |
6477 | || ('s' <= (c) && (c) <= 'z')) | |
6478 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6479 | #endif | |
6480 | ||
6481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6482 | int | |
6483 | main () | |
6484 | { | |
6485 | int i; | |
6486 | for (i = 0; i < 256; i++) | |
6487 | if (XOR (islower (i), ISLOWER (i)) | |
6488 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
6489 | return 2; |
6490 | return 0; | |
4f4e53dd PB |
6491 | } |
6492 | _ACEOF | |
0e1a989c | 6493 | if ac_fn_c_try_run "$LINENO"; then : |
4f4e53dd | 6494 | |
5213506e RW |
6495 | else |
6496 | ac_cv_header_stdc=no | |
4f4e53dd | 6497 | fi |
5213506e RW |
6498 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6499 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4f4e53dd | 6500 | fi |
5213506e | 6501 | |
4f4e53dd PB |
6502 | fi |
6503 | fi | |
5213506e RW |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
6505 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4f4e53dd PB |
6506 | if test $ac_cv_header_stdc = yes; then |
6507 | ||
5213506e | 6508 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4f4e53dd PB |
6509 | |
6510 | fi | |
6511 | ||
6512 | ||
5213506e RW |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
6514 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
22e05272 | 6515 | if ${am_cv_langinfo_codeset+:} false; then : |
5213506e | 6516 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6517 | else |
5213506e | 6518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6519 | /* end confdefs.h. */ |
6520 | #include <langinfo.h> | |
6521 | int | |
6522 | main () | |
6523 | { | |
6524 | char* cs = nl_langinfo(CODESET); | |
6525 | ; | |
6526 | return 0; | |
6527 | } | |
6528 | _ACEOF | |
0e1a989c | 6529 | if ac_fn_c_try_link "$LINENO"; then : |
4f4e53dd PB |
6530 | am_cv_langinfo_codeset=yes |
6531 | else | |
5213506e | 6532 | am_cv_langinfo_codeset=no |
4f4e53dd | 6533 | fi |
5213506e RW |
6534 | rm -f core conftest.err conftest.$ac_objext \ |
6535 | conftest$ac_exeext conftest.$ac_ext | |
4f4e53dd PB |
6536 | |
6537 | fi | |
5213506e RW |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
6539 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
4f4e53dd PB |
6540 | if test $am_cv_langinfo_codeset = yes; then |
6541 | ||
5213506e | 6542 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
4f4e53dd PB |
6543 | |
6544 | fi | |
6545 | ||
6546 | # If we haven't got the data from the intl directory, | |
6547 | # assume NLS is disabled. | |
6548 | USE_NLS=no | |
6549 | LIBINTL= | |
6550 | LIBINTL_DEP= | |
6551 | INCINTL= | |
6552 | XGETTEXT= | |
6553 | GMSGFMT= | |
6554 | POSUB= | |
f7288899 EC |
6555 | |
6556 | if test -f ../intl/config.intl; then | |
6557 | . ../intl/config.intl | |
4f4e53dd | 6558 | fi |
5213506e RW |
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
6560 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
4f4e53dd | 6561 | if test x"$USE_NLS" != xyes; then |
5213506e RW |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6563 | $as_echo "no" >&6; } | |
4f4e53dd | 6564 | else |
5213506e RW |
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6566 | $as_echo "yes" >&6; } | |
4f4e53dd | 6567 | |
5213506e | 6568 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
4f4e53dd PB |
6569 | |
6570 | ||
5213506e RW |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
6572 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
4f4e53dd PB |
6573 | # Look for .po and .gmo files in the source directory. |
6574 | CATALOGS= | |
6575 | XLINGUAS= | |
6576 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
6577 | # If there aren't any .gmo files the shell will give us the | |
6578 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
6579 | # weeded out. | |
6580 | case "$cat" in *\**) | |
6581 | continue;; | |
6582 | esac | |
6583 | # The quadruple backslash is collapsed to a double backslash | |
6584 | # by the backticks, then collapsed again by the double quotes, | |
6585 | # leaving us with one backslash in the sed expression (right | |
6586 | # before the dot that mustn't act as a wildcard). | |
5c3c3683 DJ |
6587 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
6588 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
4f4e53dd PB |
6589 | # The user is allowed to set LINGUAS to a list of languages to |
6590 | # install catalogs for. If it's empty that means "all of them." | |
6591 | if test "x$LINGUAS" = x; then | |
6592 | CATALOGS="$CATALOGS $cat" | |
6593 | XLINGUAS="$XLINGUAS $lang" | |
6594 | else | |
6595 | case "$LINGUAS" in *$lang*) | |
6596 | CATALOGS="$CATALOGS $cat" | |
6597 | XLINGUAS="$XLINGUAS $lang" | |
6598 | ;; | |
6599 | esac | |
6600 | fi | |
6601 | done | |
6602 | LINGUAS="$XLINGUAS" | |
5213506e RW |
6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
6604 | $as_echo "$LINGUAS" >&6; } | |
5c3c3683 DJ |
6605 | |
6606 | ||
6607 | DATADIRNAME=share | |
6608 | ||
6609 | INSTOBJEXT=.mo | |
6610 | ||
6611 | GENCAT=gencat | |
6612 | ||
6613 | CATOBJEXT=.gmo | |
6614 | ||
4f4e53dd PB |
6615 | fi |
6616 | ||
5213506e RW |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5 |
6618 | $as_echo_n "checking for uchar... " >&6; } | |
22e05272 | 6619 | if ${gcc_cv_type_uchar+:} false; then : |
5213506e | 6620 | $as_echo_n "(cached) " >&6 |
4f4e53dd | 6621 | else |
5213506e | 6622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4f4e53dd PB |
6623 | /* end confdefs.h. */ |
6624 | ||
f78ce0c2 | 6625 | #include <sys/types.h> |
4f4e53dd PB |
6626 | |
6627 | int | |
6628 | main () | |
6629 | { | |
6630 | if ((uchar *)0) return 0; | |
6631 | if (sizeof(uchar)) return 0; | |
6632 | ; | |
6633 | return 0; | |
6634 | } | |
6635 | _ACEOF | |
0e1a989c | 6636 | if ac_fn_c_try_compile "$LINENO"; then : |
4f4e53dd PB |
6637 | ac_cv_type_uchar=yes |
6638 | else | |
5213506e | 6639 | ac_cv_type_uchar=no |
4f4e53dd | 6640 | fi |
5213506e | 6641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4f4e53dd | 6642 | fi |
5213506e RW |
6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5 |
6644 | $as_echo "$gcc_cv_type_uchar" >&6; } | |
4f4e53dd PB |
6645 | if test $ac_cv_type_uchar = yes; then |
6646 | ||
5213506e | 6647 | $as_echo "#define HAVE_UCHAR 1" >>confdefs.h |
4f4e53dd PB |
6648 | |
6649 | fi | |
6650 | ||
14e0d832 CC |
6651 | # The cast to long int works around a bug in the HP C Compiler |
6652 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6653 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6654 | # This bug is HP SR number 8606223364. | |
6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5 | |
6656 | $as_echo_n "checking size of ino_t... " >&6; } | |
6657 | if ${ac_cv_sizeof_ino_t+:} false; then : | |
6658 | $as_echo_n "(cached) " >&6 | |
6659 | else | |
6660 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then : | |
6661 | ||
6662 | else | |
6663 | if test "$ac_cv_type_ino_t" = yes; then | |
6664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6666 | as_fn_error 77 "cannot compute sizeof (ino_t) | |
6667 | See \`config.log' for more details" "$LINENO" 5; } | |
6668 | else | |
6669 | ac_cv_sizeof_ino_t=0 | |
6670 | fi | |
6671 | fi | |
6672 | ||
6673 | fi | |
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5 | |
6675 | $as_echo "$ac_cv_sizeof_ino_t" >&6; } | |
6676 | ||
6677 | ||
6678 | ||
6679 | cat >>confdefs.h <<_ACEOF | |
6680 | #define SIZEOF_INO_T $ac_cv_sizeof_ino_t | |
6681 | _ACEOF | |
6682 | ||
6683 | ||
6684 | # The cast to long int works around a bug in the HP C Compiler | |
6685 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6686 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6687 | # This bug is HP SR number 8606223364. | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 | |
6689 | $as_echo_n "checking size of dev_t... " >&6; } | |
6690 | if ${ac_cv_sizeof_dev_t+:} false; then : | |
6691 | $as_echo_n "(cached) " >&6 | |
6692 | else | |
6693 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then : | |
6694 | ||
6695 | else | |
6696 | if test "$ac_cv_type_dev_t" = yes; then | |
6697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6699 | as_fn_error 77 "cannot compute sizeof (dev_t) | |
6700 | See \`config.log' for more details" "$LINENO" 5; } | |
6701 | else | |
6702 | ac_cv_sizeof_dev_t=0 | |
6703 | fi | |
6704 | fi | |
6705 | ||
6706 | fi | |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 | |
6708 | $as_echo "$ac_cv_sizeof_dev_t" >&6; } | |
6709 | ||
6710 | ||
6711 | ||
6712 | cat >>confdefs.h <<_ACEOF | |
6713 | #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t | |
6714 | _ACEOF | |
6715 | ||
6716 | ||
6717 | ||
5b6d595b RO |
6718 | # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different |
6719 | # iconv() prototype. | |
0823efed DN |
6720 | ac_ext=cpp |
6721 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6722 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6723 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6724 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6725 | ||
4f4e53dd PB |
6726 | |
6727 | if test "X$prefix" = "XNONE"; then | |
6728 | acl_final_prefix="$ac_default_prefix" | |
6729 | else | |
6730 | acl_final_prefix="$prefix" | |
6731 | fi | |
6732 | if test "X$exec_prefix" = "XNONE"; then | |
6733 | acl_final_exec_prefix='${prefix}' | |
6734 | else | |
6735 | acl_final_exec_prefix="$exec_prefix" | |
6736 | fi | |
6737 | acl_save_prefix="$prefix" | |
6738 | prefix="$acl_final_prefix" | |
6739 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
6740 | prefix="$acl_save_prefix" | |
6741 | ||
6742 | ||
5213506e RW |
6743 | # Check whether --with-gnu-ld was given. |
6744 | if test "${with_gnu_ld+set}" = set; then : | |
6745 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4f4e53dd PB |
6746 | else |
6747 | with_gnu_ld=no | |
5213506e RW |
6748 | fi |
6749 | ||
4f4e53dd PB |
6750 | # Prepare PATH_SEPARATOR. |
6751 | # The user is always right. | |
6752 | if test "${PATH_SEPARATOR+set}" != set; then | |
6753 | echo "#! /bin/sh" >conf$$.sh | |
6754 | echo "exit 0" >>conf$$.sh | |
6755 | chmod +x conf$$.sh | |
6756 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6757 | PATH_SEPARATOR=';' | |
6758 | else | |
6759 | PATH_SEPARATOR=: | |
6760 | fi | |
6761 | rm -f conf$$.sh | |
6762 | fi | |
6763 | ac_prog=ld | |
6764 | if test "$GCC" = yes; then | |
6765 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
6767 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
4f4e53dd PB |
6768 | case $host in |
6769 | *-*-mingw*) | |
6770 | # gcc leaves a trailing carriage return which upsets mingw | |
6771 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6772 | *) | |
6773 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6774 | esac | |
6775 | case $ac_prog in | |
6776 | # Accept absolute paths. | |
6777 | [\\/]* | [A-Za-z]:[\\/]*) | |
6778 | re_direlt='/[^/][^/]*/\.\./' | |
6779 | # Canonicalize the path of ld | |
6780 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
6781 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
6782 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
6783 | done | |
6784 | test -z "$LD" && LD="$ac_prog" | |
6785 | ;; | |
6786 | "") | |
6787 | # If it fails, then pretend we aren't using GCC. | |
6788 | ac_prog=ld | |
6789 | ;; | |
6790 | *) | |
6791 | # If it is relative, then search for the first ld in PATH. | |
6792 | with_gnu_ld=unknown | |
6793 | ;; | |
6794 | esac | |
6795 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6797 | $as_echo_n "checking for GNU ld... " >&6; } | |
4f4e53dd | 6798 | else |
5213506e RW |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6800 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4f4e53dd | 6801 | fi |
22e05272 | 6802 | if ${acl_cv_path_LD+:} false; then : |
5213506e | 6803 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6804 | else |
6805 | if test -z "$LD"; then | |
6806 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
6807 | for ac_dir in $PATH; do | |
6808 | test -z "$ac_dir" && ac_dir=. | |
6809 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6810 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
6811 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6812 | # but apparently some GNU ld's only accept -v. | |
6813 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
88fa57d7 KC |
6814 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
6815 | test "$with_gnu_ld" != no && break | |
6816 | else | |
6817 | test "$with_gnu_ld" != yes && break | |
6818 | fi | |
4f4e53dd PB |
6819 | fi |
6820 | done | |
6821 | IFS="$ac_save_ifs" | |
6822 | else | |
6823 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
6824 | fi | |
6825 | fi | |
6826 | ||
6827 | LD="$acl_cv_path_LD" | |
6828 | if test -n "$LD"; then | |
5213506e RW |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6830 | $as_echo "$LD" >&6; } | |
4f4e53dd | 6831 | else |
5213506e RW |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6833 | $as_echo "no" >&6; } | |
4f4e53dd | 6834 | fi |
22e05272 | 6835 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6837 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6838 | if ${acl_cv_prog_gnu_ld+:} false; then : |
5213506e | 6839 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6840 | else |
6841 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
88fa57d7 KC |
6842 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
6843 | acl_cv_prog_gnu_ld=yes | |
6844 | else | |
6845 | acl_cv_prog_gnu_ld=no | |
6846 | fi | |
4f4e53dd | 6847 | fi |
5213506e RW |
6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
6849 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
4f4e53dd PB |
6850 | with_gnu_ld=$acl_cv_prog_gnu_ld |
6851 | ||
6852 | ||
6853 | ||
5213506e RW |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
6855 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
22e05272 | 6856 | if ${acl_cv_rpath+:} false; then : |
5213506e | 6857 | $as_echo_n "(cached) " >&6 |
4f4e53dd PB |
6858 | else |
6859 | ||
6860 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
6861 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
6862 | . ./conftest.sh | |
6863 | rm -f ./conftest.sh | |
6864 | acl_cv_rpath=done | |
6865 | ||
6866 | fi | |
5213506e RW |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
6868 | $as_echo "$acl_cv_rpath" >&6; } | |
4f4e53dd PB |
6869 | wl="$acl_cv_wl" |
6870 | libext="$acl_cv_libext" | |
6871 | shlibext="$acl_cv_shlibext" | |
6872 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
6873 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
6874 | hardcode_direct="$acl_cv_hardcode_direct" | |
6875 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5213506e RW |
6876 | # Check whether --enable-rpath was given. |
6877 | if test "${enable_rpath+set}" = set; then : | |
6878 | enableval=$enable_rpath; : | |
4f4e53dd PB |
6879 | else |
6880 | enable_rpath=yes | |
5213506e RW |
6881 | fi |
6882 | ||
4f4e53dd PB |
6883 | |
6884 | ||
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | use_additional=yes | |
6891 | ||
6892 | acl_save_prefix="$prefix" | |
6893 | prefix="$acl_final_prefix" | |
6894 | acl_save_exec_prefix="$exec_prefix" | |
6895 | exec_prefix="$acl_final_exec_prefix" | |
6896 | ||
6897 | eval additional_includedir=\"$includedir\" | |
6898 | eval additional_libdir=\"$libdir\" | |
6899 | ||
6900 | exec_prefix="$acl_save_exec_prefix" | |
6901 | prefix="$acl_save_prefix" | |
6902 | ||
6903 | ||
5213506e RW |
6904 | # Check whether --with-libiconv-prefix was given. |
6905 | if test "${with_libiconv_prefix+set}" = set; then : | |
6906 | withval=$with_libiconv_prefix; | |
4f4e53dd PB |
6907 | if test "X$withval" = "Xno"; then |
6908 | use_additional=no | |
6909 | else | |
6910 | if test "X$withval" = "X"; then | |
6911 | ||
6912 | acl_save_prefix="$prefix" | |
6913 | prefix="$acl_final_prefix" | |
6914 | acl_save_exec_prefix="$exec_prefix" | |
6915 | exec_prefix="$acl_final_exec_prefix" | |
6916 | ||
6917 | eval additional_includedir=\"$includedir\" | |
6918 | eval additional_libdir=\"$libdir\" | |
6919 | ||
6920 | exec_prefix="$acl_save_exec_prefix" | |
6921 | prefix="$acl_save_prefix" | |
6922 | ||
6923 | else | |
6924 | additional_includedir="$withval/include" | |
6925 | additional_libdir="$withval/lib" | |
6926 | fi | |
6927 | fi | |
6928 | ||
5213506e RW |
6929 | fi |
6930 | ||
e7c26e04 AB |
6931 | |
6932 | # Check whether --with-libiconv-type was given. | |
6933 | if test "${with_libiconv_type+set}" = set; then : | |
6934 | withval=$with_libiconv_type; with_libiconv_type=$withval | |
6935 | else | |
6936 | with_libiconv_type=auto | |
6937 | fi | |
6938 | ||
6939 | lib_type=`eval echo \$with_libiconv_type` | |
6940 | ||
4f4e53dd PB |
6941 | LIBICONV= |
6942 | LTLIBICONV= | |
6943 | INCICONV= | |
6944 | rpathdirs= | |
6945 | ltrpathdirs= | |
6946 | names_already_handled= | |
6947 | names_next_round='iconv ' | |
6948 | while test -n "$names_next_round"; do | |
6949 | names_this_round="$names_next_round" | |
6950 | names_next_round= | |
6951 | for name in $names_this_round; do | |
6952 | already_handled= | |
6953 | for n in $names_already_handled; do | |
6954 | if test "$n" = "$name"; then | |
6955 | already_handled=yes | |
6956 | break | |
6957 | fi | |
6958 | done | |
6959 | if test -z "$already_handled"; then | |
6960 | names_already_handled="$names_already_handled $name" | |
6961 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6962 | eval value=\"\$HAVE_LIB$uppername\" | |
6963 | if test -n "$value"; then | |
6964 | if test "$value" = yes; then | |
6965 | eval value=\"\$LIB$uppername\" | |
6966 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
6967 | eval value=\"\$LTLIB$uppername\" | |
6968 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
6969 | else | |
6970 | : | |
6971 | fi | |
6972 | else | |
6973 | found_dir= | |
6974 | found_la= | |
6975 | found_so= | |
6976 | found_a= | |
6977 | if test $use_additional = yes; then | |
e7c26e04 | 6978 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
4f4e53dd PB |
6979 | found_dir="$additional_libdir" |
6980 | found_so="$additional_libdir/lib$name.$shlibext" | |
6981 | if test -f "$additional_libdir/lib$name.la"; then | |
6982 | found_la="$additional_libdir/lib$name.la" | |
6983 | fi | |
e7c26e04 | 6984 | elif test x$lib_type != xshared; then |
4f4e53dd PB |
6985 | if test -f "$additional_libdir/lib$name.$libext"; then |
6986 | found_dir="$additional_libdir" | |
6987 | found_a="$additional_libdir/lib$name.$libext" | |
6988 | if test -f "$additional_libdir/lib$name.la"; then | |
6989 | found_la="$additional_libdir/lib$name.la" | |
6990 | fi | |
6991 | fi | |
6992 | fi | |
6993 | fi | |
6994 | if test "X$found_dir" = "X"; then | |
6995 | for x in $LDFLAGS $LTLIBICONV; do | |
6996 | ||
6997 | acl_save_prefix="$prefix" | |
6998 | prefix="$acl_final_prefix" | |
6999 | acl_save_exec_prefix="$exec_prefix" | |
7000 | exec_prefix="$acl_final_exec_prefix" | |
7001 | eval x=\"$x\" | |
7002 | exec_prefix="$acl_save_exec_prefix" | |
7003 | prefix="$acl_save_prefix" | |
7004 | ||
7005 | case "$x" in | |
7006 | -L*) | |
7007 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
e7c26e04 | 7008 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then |
4f4e53dd PB |
7009 | found_dir="$dir" |
7010 | found_so="$dir/lib$name.$shlibext" | |
7011 | if test -f "$dir/lib$name.la"; then | |
7012 | found_la="$dir/lib$name.la" | |
7013 | fi | |
e7c26e04 | 7014 | elif test x$lib_type != xshared; then |
4f4e53dd PB |
7015 | if test -f "$dir/lib$name.$libext"; then |
7016 | found_dir="$dir" | |
7017 | found_a="$dir/lib$name.$libext" | |
7018 | if test -f "$dir/lib$name.la"; then | |
7019 | found_la="$dir/lib$name.la" | |
7020 | fi | |
7021 | fi | |
7022 | fi | |
7023 | ;; | |
7024 | esac | |
7025 | if test "X$found_dir" != "X"; then | |
7026 | break | |
7027 | fi | |
7028 | done | |
7029 | fi | |
7030 | if test "X$found_dir" != "X"; then | |
7031 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7032 | if test "X$found_so" != "X"; then | |
7033 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
7034 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7035 | else | |
7036 | haveit= | |
7037 | for x in $ltrpathdirs; do | |
7038 | if test "X$x" = "X$found_dir"; then | |
7039 | haveit=yes | |
7040 | break | |
7041 | fi | |
7042 | done | |
7043 | if test -z "$haveit"; then | |
7044 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7045 | fi | |
7046 | if test "$hardcode_direct" = yes; then | |
7047 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7048 | else | |
7049 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
7050 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7051 | haveit= | |
7052 | for x in $rpathdirs; do | |
7053 | if test "X$x" = "X$found_dir"; then | |
7054 | haveit=yes | |
7055 | break | |
7056 | fi | |
7057 | done | |
7058 | if test -z "$haveit"; then | |
7059 | rpathdirs="$rpathdirs $found_dir" | |
7060 | fi | |
7061 | else | |
7062 | haveit= | |
7063 | for x in $LDFLAGS $LIBICONV; do | |
7064 | ||
7065 | acl_save_prefix="$prefix" | |
7066 | prefix="$acl_final_prefix" | |
7067 | acl_save_exec_prefix="$exec_prefix" | |
7068 | exec_prefix="$acl_final_exec_prefix" | |
7069 | eval x=\"$x\" | |
7070 | exec_prefix="$acl_save_exec_prefix" | |
7071 | prefix="$acl_save_prefix" | |
7072 | ||
7073 | if test "X$x" = "X-L$found_dir"; then | |
7074 | haveit=yes | |
7075 | break | |
7076 | fi | |
7077 | done | |
7078 | if test -z "$haveit"; then | |
7079 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7080 | fi | |
7081 | if test "$hardcode_minus_L" != no; then | |
7082 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7083 | else | |
7084 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7085 | fi | |
7086 | fi | |
7087 | fi | |
7088 | fi | |
7089 | else | |
7090 | if test "X$found_a" != "X"; then | |
7091 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7092 | else | |
7093 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7094 | fi | |
7095 | fi | |
7096 | additional_includedir= | |
7097 | case "$found_dir" in | |
7098 | */lib | */lib/) | |
7099 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
7100 | additional_includedir="$basedir/include" | |
7101 | ;; | |
7102 | esac | |
7103 | if test "X$additional_includedir" != "X"; then | |
7104 | if test "X$additional_includedir" != "X/usr/include"; then | |
7105 | haveit= | |
7106 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7107 | if test -n "$GCC"; then | |
7108 | case $host_os in | |
7109 | linux*) haveit=yes;; | |
7110 | esac | |
7111 | fi | |
7112 | fi | |
7113 | if test -z "$haveit"; then | |
7114 | for x in $CPPFLAGS $INCICONV; do | |
7115 | ||
7116 | acl_save_prefix="$prefix" | |
7117 | prefix="$acl_final_prefix" | |
7118 | acl_save_exec_prefix="$exec_prefix" | |
7119 | exec_prefix="$acl_final_exec_prefix" | |
7120 | eval x=\"$x\" | |
7121 | exec_prefix="$acl_save_exec_prefix" | |
7122 | prefix="$acl_save_prefix" | |
7123 | ||
7124 | if test "X$x" = "X-I$additional_includedir"; then | |
7125 | haveit=yes | |
7126 | break | |
7127 | fi | |
7128 | done | |
7129 | if test -z "$haveit"; then | |
7130 | if test -d "$additional_includedir"; then | |
7131 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7132 | fi | |
7133 | fi | |
7134 | fi | |
7135 | fi | |
7136 | fi | |
7137 | if test -n "$found_la"; then | |
7138 | save_libdir="$libdir" | |
7139 | case "$found_la" in | |
7140 | */* | *\\*) . "$found_la" ;; | |
7141 | *) . "./$found_la" ;; | |
7142 | esac | |
7143 | libdir="$save_libdir" | |
7144 | for dep in $dependency_libs; do | |
7145 | case "$dep" in | |
7146 | -L*) | |
7147 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7148 | if test "X$additional_libdir" != "X/usr/lib"; then | |
7149 | haveit= | |
7150 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
7151 | if test -n "$GCC"; then | |
7152 | case $host_os in | |
7153 | linux*) haveit=yes;; | |
7154 | esac | |
7155 | fi | |
7156 | fi | |
7157 | if test -z "$haveit"; then | |
7158 | haveit= | |
7159 | for x in $LDFLAGS $LIBICONV; do | |
7160 | ||
7161 | acl_save_prefix="$prefix" | |
7162 | prefix="$acl_final_prefix" | |
7163 | acl_save_exec_prefix="$exec_prefix" | |
7164 | exec_prefix="$acl_final_exec_prefix" | |
7165 | eval x=\"$x\" | |
7166 | exec_prefix="$acl_save_exec_prefix" | |
7167 | prefix="$acl_save_prefix" | |
7168 | ||
7169 | if test "X$x" = "X-L$additional_libdir"; then | |
7170 | haveit=yes | |
7171 | break | |
7172 | fi | |
7173 | done | |
7174 | if test -z "$haveit"; then | |
7175 | if test -d "$additional_libdir"; then | |
7176 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7177 | fi | |
7178 | fi | |
7179 | haveit= | |
7180 | for x in $LDFLAGS $LTLIBICONV; do | |
7181 | ||
7182 | acl_save_prefix="$prefix" | |
7183 | prefix="$acl_final_prefix" | |
7184 | acl_save_exec_prefix="$exec_prefix" | |
7185 | exec_prefix="$acl_final_exec_prefix" | |
7186 | eval x=\"$x\" | |
7187 | exec_prefix="$acl_save_exec_prefix" | |
7188 | prefix="$acl_save_prefix" | |
7189 | ||
7190 | if test "X$x" = "X-L$additional_libdir"; then | |
7191 | haveit=yes | |
7192 | break | |
7193 | fi | |
7194 | done | |
7195 | if test -z "$haveit"; then | |
7196 | if test -d "$additional_libdir"; then | |
7197 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7198 | fi | |
7199 | fi | |
7200 | fi | |
7201 | fi | |
7202 | ;; | |
7203 | -R*) | |
7204 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7205 | if test "$enable_rpath" != no; then | |
7206 | haveit= | |
7207 | for x in $rpathdirs; do | |
7208 | if test "X$x" = "X$dir"; then | |
7209 | haveit=yes | |
7210 | break | |
7211 | fi | |
7212 | done | |
7213 | if test -z "$haveit"; then | |
7214 | rpathdirs="$rpathdirs $dir" | |
7215 | fi | |
7216 | haveit= | |
7217 | for x in $ltrpathdirs; do | |
7218 | if test "X$x" = "X$dir"; then | |
7219 | haveit=yes | |
7220 | break | |
7221 | fi | |
7222 | done | |
7223 | if test -z "$haveit"; then | |
7224 | ltrpathdirs="$ltrpathdirs $dir" | |
7225 | fi | |
7226 | fi | |
7227 | ;; | |
7228 | -l*) | |
7229 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7230 | ;; | |
7231 | *.la) | |
7232 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7233 | ;; | |
7234 | *) | |
7235 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7236 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7237 | ;; | |
7238 | esac | |
7239 | done | |
7240 | fi | |
7241 | else | |
20fa702b | 7242 | if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then |
e7c26e04 AB |
7243 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
7244 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7245 | else | |
7246 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" | |
7247 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" | |
7248 | fi | |
4f4e53dd PB |
7249 | fi |
7250 | fi | |
7251 | fi | |
7252 | done | |
7253 | done | |
7254 | if test "X$rpathdirs" != "X"; then | |
7255 | if test -n "$hardcode_libdir_separator"; then | |
7256 | alldirs= | |
7257 | for found_dir in $rpathdirs; do | |
7258 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
7259 | done | |
7260 | acl_save_libdir="$libdir" | |
7261 | libdir="$alldirs" | |
7262 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7263 | libdir="$acl_save_libdir" | |
7264 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7265 | else | |
7266 | for found_dir in $rpathdirs; do | |
7267 | acl_save_libdir="$libdir" | |
7268 | libdir="$found_dir" | |
7269 | eval flag=\"$hardcode_libdir_flag_spec\" | |
7270 | libdir="$acl_save_libdir" | |
7271 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7272 | done | |
7273 | fi | |
7274 | fi | |
7275 | if test "X$ltrpathdirs" != "X"; then | |
7276 | for found_dir in $ltrpathdirs; do | |
7277 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
7278 | done | |
7279 | fi | |
7280 | ||
7281 | ||
5b6d595b RO |
7282 | |
7283 | ||
7284 | ||
7285 | ||
7286 | ||
5b6d595b RO |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
7288 | $as_echo_n "checking for iconv... " >&6; } | |
22e05272 | 7289 | if ${am_cv_func_iconv+:} false; then : |
5b6d595b RO |
7290 | $as_echo_n "(cached) " >&6 |
7291 | else | |
7292 | ||
7293 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
7294 | am_cv_lib_iconv=no | |
bf5372e7 YS |
7295 | am_save_CPPFLAGS="$CPPFLAGS" |
7296 | CPPFLAGS="$CPPFLAGS $INCICONV" | |
5b6d595b RO |
7297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7298 | /* end confdefs.h. */ | |
7299 | #include <stdlib.h> | |
7300 | #include <iconv.h> | |
7301 | int | |
7302 | main () | |
7303 | { | |
7304 | iconv_t cd = iconv_open("",""); | |
7305 | iconv(cd,NULL,NULL,NULL,NULL); | |
7306 | iconv_close(cd); | |
7307 | ; | |
7308 | return 0; | |
7309 | } | |
7310 | _ACEOF | |
7311 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7312 | am_cv_func_iconv=yes | |
7313 | fi | |
7314 | rm -f core conftest.err conftest.$ac_objext \ | |
7315 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 YS |
7316 | CPPFLAGS="$am_save_CPPFLAGS" |
7317 | ||
7318 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then | |
7319 | for _libs in .libs _libs; do | |
7320 | am_save_CPPFLAGS="$CPPFLAGS" | |
7321 | am_save_LIBS="$LIBS" | |
7322 | CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
7323 | LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
7324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7325 | /* end confdefs.h. */ | |
7326 | #include <stdlib.h> | |
7327 | #include <iconv.h> | |
7328 | int | |
7329 | main () | |
7330 | { | |
7331 | iconv_t cd = iconv_open("",""); | |
7332 | iconv(cd,NULL,NULL,NULL,NULL); | |
7333 | iconv_close(cd); | |
7334 | ; | |
7335 | return 0; | |
7336 | } | |
7337 | _ACEOF | |
7338 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7339 | INCICONV="-I../libiconv/include" | |
7340 | LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
7341 | LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
7342 | am_cv_lib_iconv=yes | |
7343 | am_cv_func_iconv=yes | |
7344 | fi | |
7345 | rm -f core conftest.err conftest.$ac_objext \ | |
7346 | conftest$ac_exeext conftest.$ac_ext | |
7347 | CPPFLAGS="$am_save_CPPFLAGS" | |
7348 | LIBS="$am_save_LIBS" | |
7349 | if test "$am_cv_func_iconv" = "yes"; then | |
7350 | break | |
7351 | fi | |
7352 | done | |
7353 | fi | |
7354 | ||
5b6d595b | 7355 | if test "$am_cv_func_iconv" != yes; then |
bf5372e7 | 7356 | am_save_CPPFLAGS="$CPPFLAGS" |
5b6d595b | 7357 | am_save_LIBS="$LIBS" |
e9f3803d | 7358 | CPPFLAGS="$CPPFLAGS $INCICONV" |
5b6d595b RO |
7359 | LIBS="$LIBS $LIBICONV" |
7360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7361 | /* end confdefs.h. */ | |
7362 | #include <stdlib.h> | |
7363 | #include <iconv.h> | |
7364 | int | |
7365 | main () | |
7366 | { | |
7367 | iconv_t cd = iconv_open("",""); | |
7368 | iconv(cd,NULL,NULL,NULL,NULL); | |
7369 | iconv_close(cd); | |
7370 | ; | |
7371 | return 0; | |
7372 | } | |
7373 | _ACEOF | |
7374 | if ac_fn_cxx_try_link "$LINENO"; then : | |
7375 | am_cv_lib_iconv=yes | |
7376 | am_cv_func_iconv=yes | |
7377 | fi | |
7378 | rm -f core conftest.err conftest.$ac_objext \ | |
7379 | conftest$ac_exeext conftest.$ac_ext | |
bf5372e7 | 7380 | CPPFLAGS="$am_save_CPPFLAGS" |
5b6d595b RO |
7381 | LIBS="$am_save_LIBS" |
7382 | fi | |
7383 | ||
7384 | fi | |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
7386 | $as_echo "$am_cv_func_iconv" >&6; } | |
7387 | if test "$am_cv_func_iconv" = yes; then | |
7388 | ||
7389 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
7390 | ||
7391 | fi | |
7392 | if test "$am_cv_lib_iconv" = yes; then | |
bf5372e7 YS |
7393 | |
7394 | for element in $INCICONV; do | |
7395 | haveit= | |
7396 | for x in $CPPFLAGS; do | |
7397 | ||
7398 | acl_save_prefix="$prefix" | |
7399 | prefix="$acl_final_prefix" | |
7400 | acl_save_exec_prefix="$exec_prefix" | |
7401 | exec_prefix="$acl_final_exec_prefix" | |
7402 | eval x=\"$x\" | |
7403 | exec_prefix="$acl_save_exec_prefix" | |
7404 | prefix="$acl_save_prefix" | |
7405 | ||
7406 | if test "X$x" = "X$element"; then | |
7407 | haveit=yes | |
7408 | break | |
7409 | fi | |
7410 | done | |
7411 | if test -z "$haveit"; then | |
7412 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
7413 | fi | |
7414 | done | |
7415 | ||
5b6d595b RO |
7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
7417 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
7419 | $as_echo "$LIBICONV" >&6; } | |
7420 | else | |
5b6d595b RO |
7421 | LIBICONV= |
7422 | LTLIBICONV= | |
7423 | fi | |
7424 | ||
7425 | ||
7426 | ||
7427 | if test "$am_cv_func_iconv" = yes; then | |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
7429 | $as_echo_n "checking for iconv declaration... " >&6; } | |
22e05272 | 7430 | if ${am_cv_proto_iconv+:} false; then : |
5b6d595b RO |
7431 | $as_echo_n "(cached) " >&6 |
7432 | else | |
7433 | ||
7434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7435 | /* end confdefs.h. */ | |
7436 | ||
7437 | #include <stdlib.h> | |
7438 | #include <iconv.h> | |
7439 | extern | |
7440 | #ifdef __cplusplus | |
7441 | "C" | |
7442 | #endif | |
7443 | #if defined(__STDC__) || defined(__cplusplus) | |
7444 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
7445 | #else | |
7446 | size_t iconv(); | |
7447 | #endif | |
7448 | ||
7449 | int | |
7450 | main () | |
7451 | { | |
7452 | ||
7453 | ; | |
7454 | return 0; | |
7455 | } | |
7456 | _ACEOF | |
7457 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7458 | am_cv_proto_iconv_arg1="" | |
7459 | else | |
7460 | am_cv_proto_iconv_arg1="const" | |
7461 | fi | |
7462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7463 | 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);" | |
7464 | fi | |
7465 | ||
7466 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
7468 | }$am_cv_proto_iconv" >&5 | |
7469 | $as_echo "${ac_t:- | |
7470 | }$am_cv_proto_iconv" >&6; } | |
7471 | ||
7472 | cat >>confdefs.h <<_ACEOF | |
7473 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
7474 | _ACEOF | |
7475 | ||
7476 | fi | |
7477 | ||
0823efed | 7478 | ac_ext=c |
5b6d595b RO |
7479 | ac_cpp='$CPP $CPPFLAGS' |
7480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7483 | ||
4f4e53dd | 7484 | |
078e3ffe | 7485 | # More defines and substitutions. |
39b8ce7f | 7486 | PACKAGE="$PACKAGE_TARNAME" |
078e3ffe PB |
7487 | |
7488 | cat >>confdefs.h <<_ACEOF | |
7489 | #define PACKAGE "$PACKAGE" | |
7490 | _ACEOF | |
7491 | ||
7492 | ||
4f4e53dd PB |
7493 | |
7494 | if test "x$enable_nls" != xno; then | |
078e3ffe PB |
7495 | USED_CATALOGS='$(CATALOGS)' |
7496 | else | |
7497 | USED_CATALOGS= | |
7498 | fi | |
7499 | ||
7500 | ||
5213506e RW |
7501 | # Check whether --enable-maintainer-mode was given. |
7502 | if test "${enable_maintainer_mode+set}" = set; then : | |
7503 | enableval=$enable_maintainer_mode; | |
4f4e53dd | 7504 | else |
078e3ffe | 7505 | enable_maintainer_mode=no |
5213506e RW |
7506 | fi |
7507 | ||
078e3ffe PB |
7508 | |
7509 | if test "x$enable_maintainer_mode" = xno; then | |
7510 | MAINT='#' | |
7511 | else | |
7512 | MAINT= | |
4f4e53dd PB |
7513 | fi |
7514 | ||
078e3ffe | 7515 | |
1a80db97 JJ |
7516 | # Enable expensive internal checks |
7517 | is_release= | |
7518 | if test -f $srcdir/../gcc/DEV-PHASE \ | |
7519 | && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then | |
7520 | is_release=yes | |
7521 | fi | |
7522 | ||
5213506e RW |
7523 | # Check whether --enable-checking was given. |
7524 | if test "${enable_checking+set}" = set; then : | |
1a80db97 JJ |
7525 | enableval=$enable_checking; ac_checking_flags="${enableval}" |
7526 | else | |
7527 | ||
7528 | # Determine the default checks. | |
7529 | if test x$is_release = x ; then | |
7530 | ac_checking_flags=yes | |
4f4e53dd | 7531 | else |
1a80db97 JJ |
7532 | ac_checking_flags=release |
7533 | fi | |
5213506e RW |
7534 | fi |
7535 | ||
1a80db97 JJ |
7536 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
7537 | for check in release $ac_checking_flags | |
7538 | do | |
7539 | case $check in | |
7540 | # these set all the flags to specific states | |
3549e181 JJ |
7541 | yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;; |
7542 | no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;; | |
7543 | release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;; | |
1a80db97 | 7544 | # these enable particular checks |
3549e181 | 7545 | assert) ac_assert_checking=1 ;; |
1a80db97 JJ |
7546 | misc) ac_checking=1 ;; |
7547 | valgrind) ac_valgrind_checking=1 ;; | |
7548 | # accept | |
7549 | *) ;; | |
7550 | esac | |
7551 | done | |
7552 | IFS="$ac_save_IFS" | |
4f4e53dd | 7553 | |
1a80db97 | 7554 | if test x$ac_checking != x ; then |
4f4e53dd | 7555 | |
a6c764d0 | 7556 | $as_echo "#define CHECKING_P 1" >>confdefs.h |
7ec491c0 MM |
7557 | |
7558 | else | |
7559 | $as_echo "#define CHECKING_P 0" >>confdefs.h | |
7560 | ||
4f4e53dd PB |
7561 | fi |
7562 | ||
3549e181 JJ |
7563 | if test x$ac_assert_checking != x ; then |
7564 | ||
7565 | $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h | |
7566 | ||
7567 | fi | |
7568 | ||
1a80db97 JJ |
7569 | if test x$ac_valgrind_checking != x ; then |
7570 | ||
7571 | $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h | |
7572 | ||
7573 | fi | |
7574 | ||
5dc99c46 SB |
7575 | # Check whether --enable-canonical-system-headers was given. |
7576 | if test "${enable_canonical_system_headers+set}" = set; then : | |
7577 | enableval=$enable_canonical_system_headers; | |
7578 | else | |
7579 | enable_canonical_system_headers=yes | |
7580 | fi | |
7581 | ||
7582 | if test $enable_canonical_system_headers != no; then | |
7583 | ||
7584 | $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h | |
7585 | ||
7586 | fi | |
7587 | ||
6f173e52 RH |
7588 | case $target in |
7589 | i?86-* | x86_64-*) | |
7590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7591 | /* end confdefs.h. */ | |
7592 | ||
7593 | int | |
7594 | main () | |
7595 | { | |
7596 | asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0)) | |
7597 | ; | |
7598 | return 0; | |
7599 | } | |
7600 | _ACEOF | |
0e1a989c | 7601 | if ac_fn_c_try_compile "$LINENO"; then : |
6f173e52 RH |
7602 | |
7603 | $as_echo "#define HAVE_SSE4 1" >>confdefs.h | |
7604 | ||
7605 | fi | |
7606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7607 | esac | |
7608 | ||
459260ec DM |
7609 | # Enable --enable-host-shared. |
7610 | # Check whether --enable-host-shared was given. | |
7611 | if test "${enable_host_shared+set}" = set; then : | |
251c72a6 MP |
7612 | enableval=$enable_host_shared; |
7613 | fi | |
7614 | ||
7615 | ||
7616 | ||
7617 | # Enable --enable-host-pie. | |
7618 | # Check whether --enable-host-pie was given. | |
7619 | if test "${enable_host_pie+set}" = set; then : | |
7620 | enableval=$enable_host_pie; | |
7621 | fi | |
7622 | ||
7623 | ||
7624 | ||
7625 | if test x$enable_host_shared = xyes; then | |
7626 | PICFLAG=-fPIC | |
7627 | elif test x$enable_host_pie = xyes; then | |
7628 | PICFLAG=-fPIE | |
459260ec DM |
7629 | else |
7630 | PICFLAG= | |
7631 | fi | |
7632 | ||
7633 | ||
7634 | ||
051da742 L |
7635 | # Enable Intel CET on Intel CET enabled host if jit is enabled. |
7636 | # Check whether --enable-cet was given. | |
7637 | if test "${enable_cet+set}" = set; then : | |
7638 | enableval=$enable_cet; | |
7639 | case "$enableval" in | |
7640 | yes|no|auto) ;; | |
7641 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
7642 | esac | |
7643 | ||
7644 | else | |
7645 | enable_cet=auto | |
7646 | fi | |
7647 | ||
7648 | ||
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
7650 | $as_echo_n "checking for CET support... " >&6; } | |
7651 | ||
7652 | case "$host" in | |
7653 | i[34567]86-*-linux* | x86_64-*-linux*) | |
7654 | may_have_cet=yes | |
9051b548 | 7655 | cet_save_CFLAGS="$CFLAGS" |
051da742 L |
7656 | CFLAGS="$CFLAGS -fcf-protection" |
7657 | case "$enable_cet" in | |
7658 | auto) | |
7659 | # Check if target supports multi-byte NOPs | |
4712bde3 | 7660 | # and if compiler and assembler support CET. |
051da742 L |
7661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7662 | /* end confdefs.h. */ | |
7663 | ||
7664 | int | |
7665 | main () | |
7666 | { | |
7667 | ||
7668 | #if !defined(__SSE2__) | |
7669 | #error target does not support multi-byte NOPs | |
7670 | #else | |
7671 | asm ("setssbsy"); | |
7672 | #endif | |
7673 | ||
7674 | ; | |
7675 | return 0; | |
7676 | } | |
7677 | _ACEOF | |
7678 | if ac_fn_c_try_compile "$LINENO"; then : | |
7679 | enable_cet=yes | |
7680 | else | |
7681 | enable_cet=no | |
7682 | fi | |
7683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7684 | ;; | |
7685 | yes) | |
4712bde3 | 7686 | # Check if compiler and assembler support CET. |
051da742 L |
7687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7688 | /* end confdefs.h. */ | |
7689 | ||
7690 | int | |
7691 | main () | |
7692 | { | |
7693 | asm ("setssbsy"); | |
7694 | ; | |
7695 | return 0; | |
7696 | } | |
7697 | _ACEOF | |
7698 | if ac_fn_c_try_compile "$LINENO"; then : | |
4712bde3 | 7699 | support_cet=yes |
051da742 | 7700 | else |
4712bde3 | 7701 | support_cet=no |
051da742 L |
7702 | fi |
7703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4712bde3 L |
7704 | if test $support_cet = "no"; then |
7705 | if test x$enable_bootstrap != xno \ | |
7706 | && test -z "${with_build_subdir}" \ | |
7707 | && (test ! -f ../stage_current \ | |
7708 | || test `cat ../stage_current` != "stage1"); then | |
7709 | # Require CET support only for the final GCC build. | |
7710 | as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5 | |
7711 | else | |
7712 | # Don't enable CET without CET support for non-bootstrap | |
7713 | # build, in stage1 nor for build support. | |
7714 | enable_cet=no | |
7715 | fi | |
7716 | fi | |
051da742 L |
7717 | ;; |
7718 | esac | |
9051b548 | 7719 | CFLAGS="$cet_save_CFLAGS" |
051da742 L |
7720 | ;; |
7721 | *) | |
7722 | may_have_cet=no | |
7723 | enable_cet=no | |
7724 | ;; | |
7725 | esac | |
7726 | ||
9051b548 | 7727 | cet_save_CFLAGS="$CFLAGS" |
8d286dd1 | 7728 | CFLAGS="$CFLAGS -fcf-protection=none" |
9051b548 | 7729 | cet_save_LDFLAGS="$LDFLAGS" |
8d286dd1 | 7730 | LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" |
051da742 | 7731 | if test x$may_have_cet = xyes; then |
8d286dd1 L |
7732 | # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. |
7733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7734 | /* end confdefs.h. */ | |
7735 | ||
7736 | int | |
7737 | main () | |
7738 | { | |
7739 | return 0; | |
7740 | ; | |
7741 | return 0; | |
7742 | } | |
7743 | _ACEOF | |
7744 | if ac_fn_c_try_link "$LINENO"; then : | |
7745 | may_have_cet=yes | |
7746 | else | |
7747 | may_have_cet=no | |
7748 | fi | |
7749 | rm -f core conftest.err conftest.$ac_objext \ | |
7750 | conftest$ac_exeext conftest.$ac_ext | |
7751 | fi | |
7752 | ||
7753 | if test x$may_have_cet = xyes; then | |
7754 | if test x$cross_compiling = xno; then | |
7755 | if test "$cross_compiling" = yes; then : | |
051da742 L |
7756 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7757 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7758 | as_fn_error $? "cannot run test program while cross compiling | |
7759 | See \`config.log' for more details" "$LINENO" 5; } | |
7760 | else | |
7761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7762 | /* end confdefs.h. */ | |
7763 | ||
3f570621 L |
7764 | int |
7765 | main () | |
7766 | { | |
7767 | asm ("endbr32"); | |
7768 | return 0; | |
7769 | } | |
7770 | ||
7771 | _ACEOF | |
7772 | if ac_fn_c_try_run "$LINENO"; then : | |
7773 | have_multi_byte_nop=yes | |
7774 | else | |
7775 | have_multi_byte_nop=no | |
7776 | fi | |
7777 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7778 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7779 | fi | |
7780 | ||
7781 | have_cet=no | |
7782 | if test x$have_multi_byte_nop = xyes; then | |
7783 | if test "$cross_compiling" = yes; then : | |
7784 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7785 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7786 | as_fn_error $? "cannot run test program while cross compiling | |
7787 | See \`config.log' for more details" "$LINENO" 5; } | |
7788 | else | |
7789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7790 | /* end confdefs.h. */ | |
7791 | ||
051da742 L |
7792 | static void |
7793 | foo (void) | |
7794 | { | |
7795 | } | |
7796 | ||
7797 | static void | |
7798 | __attribute__ ((noinline, noclone)) | |
7799 | xxx (void (*f) (void)) | |
7800 | { | |
7801 | f (); | |
7802 | } | |
7803 | ||
7804 | static void | |
7805 | __attribute__ ((noinline, noclone)) | |
7806 | bar (void) | |
7807 | { | |
7808 | xxx (foo); | |
7809 | } | |
7810 | ||
7811 | int | |
7812 | main () | |
7813 | { | |
7814 | bar (); | |
7815 | return 0; | |
7816 | } | |
7817 | ||
7818 | _ACEOF | |
7819 | if ac_fn_c_try_run "$LINENO"; then : | |
7820 | have_cet=no | |
7821 | else | |
7822 | have_cet=yes | |
7823 | fi | |
7824 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7825 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7826 | fi | |
7827 | ||
3f570621 | 7828 | fi |
8d286dd1 L |
7829 | if test x$enable_cet = xno -a x$have_cet = xyes; then |
7830 | as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 | |
7831 | fi | |
051da742 | 7832 | fi |
8d286dd1 L |
7833 | else |
7834 | # Enable CET in cross compiler if possible so that it will run on both | |
7835 | # CET and non-CET hosts. | |
7836 | have_cet=yes | |
051da742 L |
7837 | fi |
7838 | if test x$enable_cet = xyes; then | |
7839 | CET_HOST_FLAGS="-fcf-protection" | |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7841 | $as_echo "yes" >&6; } | |
7842 | else | |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7844 | $as_echo "no" >&6; } | |
7845 | fi | |
9051b548 L |
7846 | CFLAGS="$cet_save_CFLAGS" |
7847 | LDFLAGS="$cet_save_LDFLAGS" | |
051da742 L |
7848 | |
7849 | case x$enable_languages in | |
7850 | *jit*) | |
7851 | ;; | |
7852 | *) | |
7853 | CET_HOST_FLAGS= | |
7854 | ;; | |
7855 | esac | |
7856 | ||
7857 | ||
5a6c698e BRF |
7858 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" |
7859 | if test "x$ac_cv_header_valgrind_h" = xyes; then : | |
7860 | have_valgrind_h=yes | |
7861 | else | |
7862 | have_valgrind_h=no | |
7863 | fi | |
7864 | ||
7865 | ||
7866 | ||
7867 | # It is certainly possible that there's valgrind but no valgrind.h. | |
7868 | # GCC relies on making annotations so we must have both. | |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5 | |
7870 | $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; } | |
7871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7872 | /* end confdefs.h. */ | |
7873 | #include <valgrind/memcheck.h> | |
7874 | #ifndef VALGRIND_DISCARD | |
7875 | #error VALGRIND_DISCARD not defined | |
7876 | #endif | |
7877 | _ACEOF | |
7878 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7879 | gcc_cv_header_valgrind_memcheck_h=yes | |
7880 | else | |
7881 | gcc_cv_header_valgrind_memcheck_h=no | |
7882 | fi | |
7883 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5 | |
7885 | $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; } | |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5 | |
7887 | $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; } | |
7888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7889 | /* end confdefs.h. */ | |
7890 | #include <memcheck.h> | |
7891 | #ifndef VALGRIND_DISCARD | |
7892 | #error VALGRIND_DISCARD not defined | |
7893 | #endif | |
7894 | _ACEOF | |
7895 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7896 | gcc_cv_header_memcheck_h=yes | |
7897 | else | |
7898 | gcc_cv_header_memcheck_h=no | |
7899 | fi | |
7900 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5 | |
7902 | $as_echo "$gcc_cv_header_memcheck_h" >&6; } | |
7903 | if test $gcc_cv_header_valgrind_memcheck_h = yes; then | |
7904 | ||
7905 | $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h | |
7906 | ||
7907 | fi | |
7908 | if test $gcc_cv_header_memcheck_h = yes; then | |
7909 | ||
7910 | $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h | |
7911 | ||
7912 | fi | |
7913 | ||
ceb17928 ML |
7914 | # Check whether --enable-valgrind-annotations was given. |
7915 | if test "${enable_valgrind_annotations+set}" = set; then : | |
7916 | enableval=$enable_valgrind_annotations; | |
7917 | else | |
7918 | enable_valgrind_annotations=no | |
7919 | fi | |
7920 | ||
7921 | if test x$enable_valgrind_annotations != xno \ | |
7922 | || test x$ac_valgrind_checking != x; then | |
7923 | if (test $have_valgrind_h = no \ | |
7924 | && test $gcc_cv_header_memcheck_h = no \ | |
7925 | && test $gcc_cv_header_valgrind_memcheck_h = no); then | |
5a6c698e | 7926 | as_fn_error $? "*** valgrind annotations requested, but" "$LINENO" 5 |
22e05272 | 7927 | as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5 |
ceb17928 ML |
7928 | fi |
7929 | ||
7930 | $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h | |
7931 | ||
7932 | fi | |
7933 | ||
078e3ffe PB |
7934 | # Output. |
7935 | ||
5213506e | 7936 | ac_config_headers="$ac_config_headers config.h:config.in" |
4f4e53dd | 7937 | |
5213506e | 7938 | ac_config_files="$ac_config_files Makefile" |
4f4e53dd PB |
7939 | |
7940 | cat >confcache <<\_ACEOF | |
7941 | # This file is a shell script that caches the results of configure | |
7942 | # tests run on this system so they can be shared between configure | |
7943 | # scripts and configure runs, see configure's option --config-cache. | |
7944 | # It is not useful on other systems. If it contains results you don't | |
7945 | # want to keep, you may remove or edit it. | |
7946 | # | |
7947 | # config.status only pays attention to the cache file if you give it | |
7948 | # the --recheck option to rerun configure. | |
7949 | # | |
7950 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7951 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7952 | # following values. | |
7953 | ||
7954 | _ACEOF | |
7955 | ||
7956 | # The following way of writing the cache mishandles newlines in values, | |
7957 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 7958 | # So, we kill variables containing newlines. |
4f4e53dd PB |
7959 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7960 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
7961 | ( |
7962 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7963 | eval ac_val=\$$ac_var | |
7964 | case $ac_val in #( | |
7965 | *${as_nl}*) | |
7966 | case $ac_var in #( | |
7967 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7968 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7969 | esac | |
7970 | case $ac_var in #( | |
7971 | _ | IFS | as_nl) ;; #( | |
7972 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7973 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7974 | esac ;; | |
7975 | esac | |
7976 | done | |
7977 | ||
4f4e53dd | 7978 | (set) 2>&1 | |
5213506e RW |
7979 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7980 | *${as_nl}ac_space=\ *) | |
7981 | # `set' does not quote correctly, so add quotes: double-quote | |
7982 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4f4e53dd PB |
7983 | sed -n \ |
7984 | "s/'/'\\\\''/g; | |
7985 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 7986 | ;; #( |
4f4e53dd PB |
7987 | *) |
7988 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 7989 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4f4e53dd | 7990 | ;; |
5213506e RW |
7991 | esac | |
7992 | sort | |
7993 | ) | | |
4f4e53dd | 7994 | sed ' |
5213506e | 7995 | /^ac_cv_env_/b end |
4f4e53dd | 7996 | t clear |
5213506e | 7997 | :clear |
4f4e53dd PB |
7998 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7999 | t end | |
5213506e RW |
8000 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8001 | :end' >>confcache | |
8002 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8003 | if test -w "$cache_file"; then | |
22e05272 | 8004 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
8006 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
8007 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
8008 | cat confcache >"$cache_file" | |
8009 | else | |
8010 | case $cache_file in #( | |
8011 | */* | ?:*) | |
8012 | mv -f confcache "$cache_file"$$ && | |
8013 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
8014 | *) | |
8015 | mv -f confcache "$cache_file" ;; | |
8016 | esac | |
8017 | fi | |
8018 | fi | |
4f4e53dd | 8019 | else |
5213506e RW |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8021 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4f4e53dd PB |
8022 | fi |
8023 | fi | |
8024 | rm -f confcache | |
8025 | ||
8026 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8027 | # Let make expand exec_prefix. | |
8028 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8029 | ||
4f4e53dd PB |
8030 | DEFS=-DHAVE_CONFIG_H |
8031 | ||
8032 | ac_libobjs= | |
8033 | ac_ltlibobjs= | |
22e05272 | 8034 | U= |
4f4e53dd PB |
8035 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8036 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
8037 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8038 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
8039 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
8040 | # will be set to the directory where LIBOBJS objects are built. | |
8041 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8042 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4f4e53dd PB |
8043 | done |
8044 | LIBOBJS=$ac_libobjs | |
8045 | ||
8046 | LTLIBOBJS=$ac_ltlibobjs | |
8047 | ||
8048 | ||
4f4e53dd | 8049 | |
246a2fcb | 8050 | |
22e05272 | 8051 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 8052 | ac_write_fail=0 |
4f4e53dd PB |
8053 | ac_clean_files_save=$ac_clean_files |
8054 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8056 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8057 | as_write_fail=0 | |
8058 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4f4e53dd PB |
8059 | #! $SHELL |
8060 | # Generated by $as_me. | |
8061 | # Run this file to recreate the current configuration. | |
8062 | # Compiler output produced by configure, useful for debugging | |
8063 | # configure, is in config.log if it exists. | |
8064 | ||
8065 | debug=false | |
8066 | ac_cs_recheck=false | |
8067 | ac_cs_silent=false | |
4f4e53dd | 8068 | |
5213506e RW |
8069 | SHELL=\${CONFIG_SHELL-$SHELL} |
8070 | export SHELL | |
8071 | _ASEOF | |
8072 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8073 | ## -------------------- ## | |
8074 | ## M4sh Initialization. ## | |
8075 | ## -------------------- ## | |
8076 | ||
8077 | # Be more Bourne compatible | |
8078 | DUALCASE=1; export DUALCASE # for MKS sh | |
8079 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4f4e53dd PB |
8080 | emulate sh |
8081 | NULLCMD=: | |
5213506e | 8082 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4f4e53dd PB |
8083 | # is contrary to our usage. Disable this feature. |
8084 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
8085 | setopt NO_GLOB_SUBST |
8086 | else | |
8087 | case `(set -o) 2>/dev/null` in #( | |
8088 | *posix*) : | |
8089 | set -o posix ;; #( | |
8090 | *) : | |
8091 | ;; | |
8092 | esac | |
4f4e53dd | 8093 | fi |
4f4e53dd | 8094 | |
5213506e RW |
8095 | |
8096 | as_nl=' | |
8097 | ' | |
8098 | export as_nl | |
8099 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8100 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8101 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8102 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8103 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
8104 | # but without wasting forks for bash or zsh. | |
8105 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
8106 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8107 | as_echo='print -r --' | |
8108 | as_echo_n='print -rn --' | |
8109 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8110 | as_echo='printf %s\n' | |
8111 | as_echo_n='printf %s' | |
8112 | else | |
8113 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
8114 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8115 | as_echo_n='/usr/ucb/echo -n' | |
8116 | else | |
8117 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
8118 | as_echo_n_body='eval | |
8119 | arg=$1; | |
8120 | case $arg in #( | |
8121 | *"$as_nl"*) | |
8122 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8123 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8124 | esac; | |
8125 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8126 | ' | |
8127 | export as_echo_n_body | |
8128 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
8129 | fi | |
8130 | export as_echo_body | |
8131 | as_echo='sh -c $as_echo_body as_echo' | |
8132 | fi | |
8133 | ||
8134 | # The user is always right. | |
8135 | if test "${PATH_SEPARATOR+set}" != set; then | |
8136 | PATH_SEPARATOR=: | |
8137 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8138 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8139 | PATH_SEPARATOR=';' | |
8140 | } | |
4f4e53dd PB |
8141 | fi |
8142 | ||
8143 | ||
5213506e RW |
8144 | # IFS |
8145 | # We need space, tab and new line, in precisely that order. Quoting is | |
8146 | # there to prevent editors from complaining about space-tab. | |
8147 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8148 | # splitting by setting IFS to empty value.) | |
8149 | IFS=" "" $as_nl" | |
8150 | ||
8151 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 8152 | as_myself= |
5213506e RW |
8153 | case $0 in #(( |
8154 | *[\\/]* ) as_myself=$0 ;; | |
8155 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8156 | for as_dir in $PATH | |
8157 | do | |
8158 | IFS=$as_save_IFS | |
8159 | test -z "$as_dir" && as_dir=. | |
8160 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8161 | done | |
8162 | IFS=$as_save_IFS | |
8163 | ||
8164 | ;; | |
8165 | esac | |
8166 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8167 | # in which case we are not to be found in the path. | |
8168 | if test "x$as_myself" = x; then | |
8169 | as_myself=$0 | |
8170 | fi | |
8171 | if test ! -f "$as_myself"; then | |
8172 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8173 | exit 1 | |
8174 | fi | |
8175 | ||
8176 | # Unset variables that we do not need and which cause bugs (e.g. in | |
8177 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
8178 | # suppresses any "Segmentation fault" message there. '((' could | |
8179 | # trigger a bug in pdksh 5.2.14. | |
8180 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8181 | do eval test x\${$as_var+set} = xset \ | |
8182 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8183 | done | |
4f4e53dd PB |
8184 | PS1='$ ' |
8185 | PS2='> ' | |
8186 | PS4='+ ' | |
8187 | ||
8188 | # NLS nuisances. | |
5213506e RW |
8189 | LC_ALL=C |
8190 | export LC_ALL | |
8191 | LANGUAGE=C | |
8192 | export LANGUAGE | |
8193 | ||
8194 | # CDPATH. | |
8195 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8196 | ||
8197 | ||
22e05272 JM |
8198 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8199 | # ---------------------------------------- | |
5213506e RW |
8200 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8201 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 8202 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
8203 | as_fn_error () |
8204 | { | |
22e05272 JM |
8205 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8206 | if test "$4"; then | |
8207 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8208 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4f4e53dd | 8209 | fi |
22e05272 | 8210 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
8211 | as_fn_exit $as_status |
8212 | } # as_fn_error | |
8213 | ||
8214 | ||
8215 | # as_fn_set_status STATUS | |
8216 | # ----------------------- | |
8217 | # Set $? to STATUS, without forking. | |
8218 | as_fn_set_status () | |
8219 | { | |
8220 | return $1 | |
8221 | } # as_fn_set_status | |
8222 | ||
8223 | # as_fn_exit STATUS | |
8224 | # ----------------- | |
8225 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8226 | as_fn_exit () | |
8227 | { | |
8228 | set +e | |
8229 | as_fn_set_status $1 | |
8230 | exit $1 | |
8231 | } # as_fn_exit | |
8232 | ||
8233 | # as_fn_unset VAR | |
8234 | # --------------- | |
8235 | # Portably unset VAR. | |
8236 | as_fn_unset () | |
8237 | { | |
8238 | { eval $1=; unset $1;} | |
8239 | } | |
8240 | as_unset=as_fn_unset | |
8241 | # as_fn_append VAR VALUE | |
8242 | # ---------------------- | |
8243 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8244 | # advantage of any shell optimizations that allow amortized linear growth over | |
8245 | # repeated appends, instead of the typical quadratic growth present in naive | |
8246 | # implementations. | |
8247 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8248 | eval 'as_fn_append () | |
8249 | { | |
8250 | eval $1+=\$2 | |
8251 | }' | |
8252 | else | |
8253 | as_fn_append () | |
8254 | { | |
8255 | eval $1=\$$1\$2 | |
8256 | } | |
8257 | fi # as_fn_append | |
8258 | ||
8259 | # as_fn_arith ARG... | |
8260 | # ------------------ | |
8261 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8262 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8263 | # must be portable across $(()) and expr. | |
8264 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8265 | eval 'as_fn_arith () | |
8266 | { | |
8267 | as_val=$(( $* )) | |
8268 | }' | |
8269 | else | |
8270 | as_fn_arith () | |
8271 | { | |
8272 | as_val=`expr "$@" || test $? -eq 1` | |
8273 | } | |
8274 | fi # as_fn_arith | |
4f4e53dd | 8275 | |
5213506e RW |
8276 | |
8277 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
8278 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4f4e53dd PB |
8279 | as_expr=expr |
8280 | else | |
8281 | as_expr=false | |
8282 | fi | |
8283 | ||
5213506e | 8284 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4f4e53dd PB |
8285 | as_basename=basename |
8286 | else | |
8287 | as_basename=false | |
8288 | fi | |
8289 | ||
5213506e RW |
8290 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8291 | as_dirname=dirname | |
8292 | else | |
8293 | as_dirname=false | |
8294 | fi | |
4f4e53dd | 8295 | |
5213506e | 8296 | as_me=`$as_basename -- "$0" || |
4f4e53dd PB |
8297 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8298 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
8299 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8300 | $as_echo X/"$0" | | |
8301 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8302 | s//\1/ | |
8303 | q | |
8304 | } | |
8305 | /^X\/\(\/\/\)$/{ | |
8306 | s//\1/ | |
8307 | q | |
8308 | } | |
8309 | /^X\/\(\/\).*/{ | |
8310 | s//\1/ | |
8311 | q | |
8312 | } | |
8313 | s/.*/./; q'` | |
4f4e53dd | 8314 | |
4f4e53dd PB |
8315 | # Avoid depending upon Character Ranges. |
8316 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8317 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8318 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8319 | as_cr_digits='0123456789' | |
8320 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8321 | ||
5213506e RW |
8322 | ECHO_C= ECHO_N= ECHO_T= |
8323 | case `echo -n x` in #((((( | |
8324 | -n*) | |
8325 | case `echo 'xy\c'` in | |
8326 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8327 | xy) ECHO_C='\c';; | |
8328 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8329 | ECHO_T=' ';; | |
8330 | esac;; | |
8331 | *) | |
8332 | ECHO_N='-n';; | |
8333 | esac | |
4f4e53dd PB |
8334 | |
8335 | rm -f conf$$ conf$$.exe conf$$.file | |
5213506e RW |
8336 | if test -d conf$$.dir; then |
8337 | rm -f conf$$.dir/conf$$.file | |
8338 | else | |
8339 | rm -f conf$$.dir | |
8340 | mkdir conf$$.dir 2>/dev/null | |
8341 | fi | |
8342 | if (echo >conf$$.file) 2>/dev/null; then | |
8343 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4f4e53dd | 8344 | as_ln_s='ln -s' |
5213506e RW |
8345 | # ... but there are two gotchas: |
8346 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8347 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 8348 | # In both cases, we have to default to `cp -pR'. |
5213506e | 8349 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 8350 | as_ln_s='cp -pR' |
5213506e RW |
8351 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8352 | as_ln_s=ln | |
8353 | else | |
22e05272 | 8354 | as_ln_s='cp -pR' |
4f4e53dd | 8355 | fi |
4f4e53dd | 8356 | else |
22e05272 | 8357 | as_ln_s='cp -pR' |
4f4e53dd | 8358 | fi |
5213506e RW |
8359 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8360 | rmdir conf$$.dir 2>/dev/null | |
8361 | ||
8362 | ||
8363 | # as_fn_mkdir_p | |
8364 | # ------------- | |
8365 | # Create "$as_dir" as a directory, including parents if necessary. | |
8366 | as_fn_mkdir_p () | |
8367 | { | |
8368 | ||
8369 | case $as_dir in #( | |
8370 | -*) as_dir=./$as_dir;; | |
8371 | esac | |
8372 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8373 | as_dirs= | |
8374 | while :; do | |
8375 | case $as_dir in #( | |
8376 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8377 | *) as_qdir=$as_dir;; | |
8378 | esac | |
8379 | as_dirs="'$as_qdir' $as_dirs" | |
8380 | as_dir=`$as_dirname -- "$as_dir" || | |
8381 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8382 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8383 | X"$as_dir" : 'X\(//\)$' \| \ | |
8384 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8385 | $as_echo X"$as_dir" | | |
8386 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8387 | s//\1/ | |
8388 | q | |
8389 | } | |
8390 | /^X\(\/\/\)[^/].*/{ | |
8391 | s//\1/ | |
8392 | q | |
8393 | } | |
8394 | /^X\(\/\/\)$/{ | |
8395 | s//\1/ | |
8396 | q | |
8397 | } | |
8398 | /^X\(\/\).*/{ | |
8399 | s//\1/ | |
8400 | q | |
8401 | } | |
8402 | s/.*/./; q'` | |
8403 | test -d "$as_dir" && break | |
8404 | done | |
8405 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 8406 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
4f4e53dd | 8407 | |
5213506e RW |
8408 | |
8409 | } # as_fn_mkdir_p | |
4f4e53dd | 8410 | if mkdir -p . 2>/dev/null; then |
5213506e | 8411 | as_mkdir_p='mkdir -p "$as_dir"' |
4f4e53dd PB |
8412 | else |
8413 | test -d ./-p && rmdir ./-p | |
8414 | as_mkdir_p=false | |
8415 | fi | |
8416 | ||
22e05272 JM |
8417 | |
8418 | # as_fn_executable_p FILE | |
8419 | # ----------------------- | |
8420 | # Test if FILE is an executable regular file. | |
8421 | as_fn_executable_p () | |
8422 | { | |
8423 | test -f "$1" && test -x "$1" | |
8424 | } # as_fn_executable_p | |
8425 | as_test_x='test -x' | |
8426 | as_executable_p=as_fn_executable_p | |
4f4e53dd PB |
8427 | |
8428 | # Sed expression to map a string onto a valid CPP name. | |
8429 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8430 | ||
8431 | # Sed expression to map a string onto a valid variable name. | |
8432 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8433 | ||
8434 | ||
4f4e53dd | 8435 | exec 6>&1 |
5213506e RW |
8436 | ## ----------------------------------- ## |
8437 | ## Main body of $CONFIG_STATUS script. ## | |
8438 | ## ----------------------------------- ## | |
8439 | _ASEOF | |
8440 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4f4e53dd | 8441 | |
5213506e RW |
8442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8443 | # Save the log message, to keep $0 and so on meaningful, and to | |
4f4e53dd | 8444 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
8445 | # values after options handling. |
8446 | ac_log=" | |
4f4e53dd | 8447 | This file was extended by cpplib $as_me , which was |
22e05272 | 8448 | generated by GNU Autoconf 2.69. Invocation command line was |
4f4e53dd PB |
8449 | |
8450 | CONFIG_FILES = $CONFIG_FILES | |
8451 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8452 | CONFIG_LINKS = $CONFIG_LINKS | |
8453 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8454 | $ $0 $@ | |
8455 | ||
5213506e RW |
8456 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8457 | " | |
8458 | ||
4f4e53dd PB |
8459 | _ACEOF |
8460 | ||
5213506e RW |
8461 | case $ac_config_files in *" |
8462 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8463 | esac | |
4f4e53dd | 8464 | |
5213506e RW |
8465 | case $ac_config_headers in *" |
8466 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8467 | esac | |
4f4e53dd | 8468 | |
4f4e53dd | 8469 | |
5213506e RW |
8470 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8471 | # Files that config.status was made for. | |
8472 | config_files="$ac_config_files" | |
8473 | config_headers="$ac_config_headers" | |
8474 | config_commands="$ac_config_commands" | |
4f4e53dd | 8475 | |
5213506e | 8476 | _ACEOF |
4f4e53dd | 8477 | |
5213506e | 8478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd | 8479 | ac_cs_usage="\ |
5213506e RW |
8480 | \`$as_me' instantiates files and other configuration actions |
8481 | from templates according to the current configuration. Unless the files | |
8482 | and actions are specified as TAGs, all are instantiated by default. | |
4f4e53dd | 8483 | |
5213506e | 8484 | Usage: $0 [OPTION]... [TAG]... |
4f4e53dd PB |
8485 | |
8486 | -h, --help print this help, then exit | |
5213506e | 8487 | -V, --version print version number and configuration settings, then exit |
22e05272 | 8488 | --config print configuration, then exit |
5213506e RW |
8489 | -q, --quiet, --silent |
8490 | do not print progress messages | |
4f4e53dd PB |
8491 | -d, --debug don't remove temporary files |
8492 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
8493 | --file=FILE[:TEMPLATE] |
8494 | instantiate the configuration file FILE | |
8495 | --header=FILE[:TEMPLATE] | |
8496 | instantiate the configuration header FILE | |
4f4e53dd PB |
8497 | |
8498 | Configuration files: | |
8499 | $config_files | |
8500 | ||
8501 | Configuration headers: | |
8502 | $config_headers | |
8503 | ||
f610dd5f ZW |
8504 | Configuration commands: |
8505 | $config_commands | |
8506 | ||
5213506e | 8507 | Report bugs to <gcc-bugs@gcc.gnu.org>." |
4f4e53dd | 8508 | |
5213506e RW |
8509 | _ACEOF |
8510 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 8511 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4f4e53dd PB |
8512 | ac_cs_version="\\ |
8513 | cpplib config.status | |
22e05272 JM |
8514 | configured by $0, generated by GNU Autoconf 2.69, |
8515 | with options \\"\$ac_cs_config\\" | |
4f4e53dd | 8516 | |
22e05272 | 8517 | Copyright (C) 2012 Free Software Foundation, Inc. |
4f4e53dd PB |
8518 | This config.status script is free software; the Free Software Foundation |
8519 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
8520 | |
8521 | ac_pwd='$ac_pwd' | |
8522 | srcdir='$srcdir' | |
8523 | INSTALL='$INSTALL' | |
8524 | test -n "\$AWK" || AWK=awk | |
4f4e53dd PB |
8525 | _ACEOF |
8526 | ||
5213506e RW |
8527 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8528 | # The default lists apply if the user does not specify any file. | |
4f4e53dd PB |
8529 | ac_need_defaults=: |
8530 | while test $# != 0 | |
8531 | do | |
8532 | case $1 in | |
22e05272 | 8533 | --*=?*) |
5213506e RW |
8534 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8535 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4f4e53dd PB |
8536 | ac_shift=: |
8537 | ;; | |
22e05272 JM |
8538 | --*=) |
8539 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8540 | ac_optarg= | |
8541 | ac_shift=: | |
8542 | ;; | |
5213506e | 8543 | *) |
4f4e53dd PB |
8544 | ac_option=$1 |
8545 | ac_optarg=$2 | |
8546 | ac_shift=shift | |
8547 | ;; | |
4f4e53dd PB |
8548 | esac |
8549 | ||
8550 | case $ac_option in | |
8551 | # Handling of the options. | |
4f4e53dd PB |
8552 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8553 | ac_cs_recheck=: ;; | |
5213506e RW |
8554 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8555 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
8556 | --config | --confi | --conf | --con | --co | --c ) |
8557 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 8558 | --debug | --debu | --deb | --de | --d | -d ) |
4f4e53dd PB |
8559 | debug=: ;; |
8560 | --file | --fil | --fi | --f ) | |
8561 | $ac_shift | |
5213506e RW |
8562 | case $ac_optarg in |
8563 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 8564 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
8565 | esac |
8566 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4f4e53dd PB |
8567 | ac_need_defaults=false;; |
8568 | --header | --heade | --head | --hea ) | |
8569 | $ac_shift | |
5213506e RW |
8570 | case $ac_optarg in |
8571 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8572 | esac | |
8573 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4f4e53dd | 8574 | ac_need_defaults=false;; |
5213506e RW |
8575 | --he | --h) |
8576 | # Conflict between --help and --header | |
22e05272 | 8577 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
8578 | Try \`$0 --help' for more information.";; |
8579 | --help | --hel | -h ) | |
8580 | $as_echo "$ac_cs_usage"; exit ;; | |
4f4e53dd PB |
8581 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8582 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8583 | ac_cs_silent=: ;; | |
8584 | ||
8585 | # This is an error. | |
22e05272 | 8586 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 8587 | Try \`$0 --help' for more information." ;; |
4f4e53dd | 8588 | |
5213506e RW |
8589 | *) as_fn_append ac_config_targets " $1" |
8590 | ac_need_defaults=false ;; | |
4f4e53dd PB |
8591 | |
8592 | esac | |
8593 | shift | |
8594 | done | |
8595 | ||
8596 | ac_configure_extra_args= | |
8597 | ||
8598 | if $ac_cs_silent; then | |
8599 | exec 6>/dev/null | |
8600 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8601 | fi | |
8602 | ||
8603 | _ACEOF | |
5213506e | 8604 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4f4e53dd | 8605 | if \$ac_cs_recheck; then |
22e05272 | 8606 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
8607 | shift |
8608 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8609 | CONFIG_SHELL='$SHELL' | |
8610 | export CONFIG_SHELL | |
8611 | exec "\$@" | |
4f4e53dd PB |
8612 | fi |
8613 | ||
8614 | _ACEOF | |
5213506e RW |
8615 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8616 | exec 5>>config.log | |
8617 | { | |
8618 | echo | |
8619 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8620 | ## Running $as_me. ## | |
8621 | _ASBOX | |
8622 | $as_echo "$ac_log" | |
8623 | } >&5 | |
4f4e53dd | 8624 | |
5213506e RW |
8625 | _ACEOF |
8626 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f610dd5f | 8627 | # |
5213506e | 8628 | # INIT-COMMANDS |
f610dd5f | 8629 | # |
024abeb3 | 8630 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
4f4e53dd | 8631 | |
f610dd5f | 8632 | _ACEOF |
4f4e53dd | 8633 | |
5213506e | 8634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd | 8635 | |
5213506e | 8636 | # Handling of arguments. |
4f4e53dd PB |
8637 | for ac_config_target in $ac_config_targets |
8638 | do | |
5213506e RW |
8639 | case $ac_config_target in |
8640 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; | |
8641 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
8642 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8643 | ||
22e05272 | 8644 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4f4e53dd PB |
8645 | esac |
8646 | done | |
8647 | ||
5213506e | 8648 | |
4f4e53dd PB |
8649 | # If the user did not use the arguments to specify the items to instantiate, |
8650 | # then the envvar interface is used. Set only those that are not. | |
8651 | # We use the long form for the default assignment because of an extremely | |
8652 | # bizarre bug on SunOS 4.1.3. | |
8653 | if $ac_need_defaults; then | |
8654 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8655 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
f610dd5f | 8656 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
4f4e53dd PB |
8657 | fi |
8658 | ||
8659 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 8660 | # simply because there is no reason against having it here, and in addition, |
4f4e53dd | 8661 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
8662 | # Hook for its removal unless debugging. |
8663 | # Note that there is a small window in which the directory will not be cleaned: | |
8664 | # after its creation but before its name has been assigned to `$tmp'. | |
4f4e53dd PB |
8665 | $debug || |
8666 | { | |
22e05272 | 8667 | tmp= ac_tmp= |
5213506e | 8668 | trap 'exit_status=$? |
22e05272 JM |
8669 | : "${ac_tmp:=$tmp}" |
8670 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
8671 | ' 0 |
8672 | trap 'as_fn_exit 1' 1 2 13 15 | |
4f4e53dd | 8673 | } |
4f4e53dd PB |
8674 | # Create a (secure) tmp directory for tmp files. |
8675 | ||
8676 | { | |
5213506e | 8677 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 8678 | test -d "$tmp" |
4f4e53dd PB |
8679 | } || |
8680 | { | |
5213506e RW |
8681 | tmp=./conf$$-$RANDOM |
8682 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
8683 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8684 | ac_tmp=$tmp | |
5213506e RW |
8685 | |
8686 | # Set up the scripts for CONFIG_FILES section. | |
8687 | # No need to generate them if there are no CONFIG_FILES. | |
8688 | # This happens for instance with `./config.status config.h'. | |
8689 | if test -n "$CONFIG_FILES"; then | |
8690 | ||
8691 | ||
8692 | ac_cr=`echo X | tr X '\015'` | |
8693 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8694 | # But we know of no other shell where ac_cr would be empty at this | |
8695 | # point, so we can use a bashism as a fallback. | |
8696 | if test "x$ac_cr" = x; then | |
8697 | eval ac_cr=\$\'\\r\' | |
8698 | fi | |
8699 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8700 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 8701 | ac_cs_awk_cr='\\r' |
5213506e RW |
8702 | else |
8703 | ac_cs_awk_cr=$ac_cr | |
8704 | fi | |
8705 | ||
22e05272 | 8706 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
8707 | _ACEOF |
8708 | ||
8709 | ||
8710 | { | |
8711 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8712 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8713 | echo "_ACEOF" | |
8714 | } >conf$$subs.sh || | |
22e05272 JM |
8715 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8716 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
8717 | ac_delim='%!_!# ' |
8718 | for ac_last_try in false false false false false :; do | |
8719 | . ./conf$$subs.sh || | |
22e05272 | 8720 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
8721 | |
8722 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8723 | if test $ac_delim_n = $ac_delim_num; then | |
8724 | break | |
8725 | elif $ac_last_try; then | |
22e05272 | 8726 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
8727 | else |
8728 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8729 | fi | |
8730 | done | |
8731 | rm -f conf$$subs.sh | |
8732 | ||
8733 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 8734 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
8735 | _ACEOF |
8736 | sed -n ' | |
8737 | h | |
8738 | s/^/S["/; s/!.*/"]=/ | |
8739 | p | |
8740 | g | |
8741 | s/^[^!]*!// | |
8742 | :repl | |
8743 | t repl | |
8744 | s/'"$ac_delim"'$// | |
8745 | t delim | |
8746 | :nl | |
8747 | h | |
22e05272 | 8748 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
8749 | t more1 |
8750 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8751 | p | |
8752 | n | |
8753 | b repl | |
8754 | :more1 | |
8755 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8756 | p | |
8757 | g | |
8758 | s/.\{148\}// | |
8759 | t nl | |
8760 | :delim | |
8761 | h | |
22e05272 | 8762 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
8763 | t more2 |
8764 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8765 | p | |
8766 | b | |
8767 | :more2 | |
8768 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8769 | p | |
8770 | g | |
8771 | s/.\{148\}// | |
8772 | t delim | |
8773 | ' <conf$$subs.awk | sed ' | |
8774 | /^[^""]/{ | |
8775 | N | |
8776 | s/\n// | |
8777 | } | |
8778 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8779 | rm -f conf$$subs.awk | |
8780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8781 | _ACAWK | |
22e05272 | 8782 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
8783 | for (key in S) S_is_set[key] = 1 |
8784 | FS = "\a" | |
8785 | ||
8786 | } | |
4f4e53dd | 8787 | { |
5213506e RW |
8788 | line = $ 0 |
8789 | nfields = split(line, field, "@") | |
8790 | substed = 0 | |
8791 | len = length(field[1]) | |
8792 | for (i = 2; i < nfields; i++) { | |
8793 | key = field[i] | |
8794 | keylen = length(key) | |
8795 | if (S_is_set[key]) { | |
8796 | value = S[key] | |
8797 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8798 | len += length(value) + length(field[++i]) | |
8799 | substed = 1 | |
8800 | } else | |
8801 | len += 1 + keylen | |
8802 | } | |
8803 | ||
8804 | print line | |
4f4e53dd PB |
8805 | } |
8806 | ||
5213506e RW |
8807 | _ACAWK |
8808 | _ACEOF | |
8809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8810 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8811 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8812 | else | |
8813 | cat | |
22e05272 JM |
8814 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
8815 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
4f4e53dd PB |
8816 | _ACEOF |
8817 | ||
22e05272 JM |
8818 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8819 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
8820 | # trailing colons and then remove the whole line if VPATH becomes empty |
8821 | # (actually we leave an empty line to preserve line numbers). | |
8822 | if test "x$srcdir" = x.; then | |
22e05272 JM |
8823 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8824 | h | |
8825 | s/// | |
8826 | s/^/:/ | |
8827 | s/[ ]*$/:/ | |
8828 | s/:\$(srcdir):/:/g | |
8829 | s/:\${srcdir}:/:/g | |
8830 | s/:@srcdir@:/:/g | |
8831 | s/^:*// | |
5213506e | 8832 | s/:*$// |
22e05272 JM |
8833 | x |
8834 | s/\(=[ ]*\).*/\1/ | |
8835 | G | |
8836 | s/\n// | |
5213506e RW |
8837 | s/^[^=]*=[ ]*$// |
8838 | }' | |
8839 | fi | |
4f4e53dd | 8840 | |
5213506e RW |
8841 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8842 | fi # test -n "$CONFIG_FILES" | |
4f4e53dd | 8843 | |
5213506e RW |
8844 | # Set up the scripts for CONFIG_HEADERS section. |
8845 | # No need to generate them if there are no CONFIG_HEADERS. | |
8846 | # This happens for instance with `./config.status Makefile'. | |
8847 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 8848 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
8849 | BEGIN { |
8850 | _ACEOF | |
8851 | ||
8852 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8853 | # here-document in config.status, that substitutes the proper values into | |
8854 | # config.h.in to produce config.h. | |
8855 | ||
8856 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8857 | # handling of long lines. | |
8858 | ac_delim='%!_!# ' | |
8859 | for ac_last_try in false false :; do | |
22e05272 JM |
8860 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8861 | if test -z "$ac_tt"; then | |
5213506e RW |
8862 | break |
8863 | elif $ac_last_try; then | |
22e05272 | 8864 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
8865 | else |
8866 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4f4e53dd | 8867 | fi |
5213506e | 8868 | done |
4f4e53dd | 8869 | |
5213506e RW |
8870 | # For the awk script, D is an array of macro values keyed by name, |
8871 | # likewise P contains macro parameters if any. Preserve backslash | |
8872 | # newline sequences. | |
8873 | ||
8874 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8875 | sed -n ' | |
8876 | s/.\{148\}/&'"$ac_delim"'/g | |
8877 | t rset | |
8878 | :rset | |
8879 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8880 | t def | |
8881 | d | |
8882 | :def | |
8883 | s/\\$// | |
8884 | t bsnl | |
8885 | s/["\\]/\\&/g | |
8886 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8887 | D["\1"]=" \3"/p | |
8888 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8889 | d | |
8890 | :bsnl | |
8891 | s/["\\]/\\&/g | |
8892 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8893 | D["\1"]=" \3\\\\\\n"\\/p | |
8894 | t cont | |
8895 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8896 | t cont | |
8897 | d | |
8898 | :cont | |
8899 | n | |
8900 | s/.\{148\}/&'"$ac_delim"'/g | |
8901 | t clear | |
8902 | :clear | |
8903 | s/\\$// | |
8904 | t bsnlc | |
8905 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8906 | d | |
8907 | :bsnlc | |
8908 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8909 | b cont | |
8910 | ' <confdefs.h | sed ' | |
8911 | s/'"$ac_delim"'/"\\\ | |
8912 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8913 | ||
8914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8915 | for (key in D) D_is_set[key] = 1 | |
8916 | FS = "\a" | |
8917 | } | |
8918 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8919 | line = \$ 0 | |
8920 | split(line, arg, " ") | |
8921 | if (arg[1] == "#") { | |
8922 | defundef = arg[2] | |
8923 | mac1 = arg[3] | |
8924 | } else { | |
8925 | defundef = substr(arg[1], 2) | |
8926 | mac1 = arg[2] | |
8927 | } | |
8928 | split(mac1, mac2, "(") #) | |
8929 | macro = mac2[1] | |
8930 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8931 | if (D_is_set[macro]) { | |
8932 | # Preserve the white space surrounding the "#". | |
8933 | print prefix "define", macro P[macro] D[macro] | |
8934 | next | |
8935 | } else { | |
8936 | # Replace #undef with comments. This is necessary, for example, | |
8937 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8938 | # on some systems where configure will not decide to define it. | |
8939 | if (defundef == "undef") { | |
8940 | print "/*", prefix defundef, macro, "*/" | |
8941 | next | |
8942 | } | |
8943 | } | |
8944 | } | |
8945 | { print } | |
8946 | _ACAWK | |
4f4e53dd | 8947 | _ACEOF |
5213506e | 8948 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 8949 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
8950 | fi # test -n "$CONFIG_HEADERS" |
8951 | ||
8952 | ||
8953 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8954 | shift | |
8955 | for ac_tag | |
8956 | do | |
8957 | case $ac_tag in | |
8958 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8959 | esac | |
8960 | case $ac_mode$ac_tag in | |
8961 | :[FHL]*:*);; | |
22e05272 | 8962 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
8963 | :[FH]-) ac_tag=-:-;; |
8964 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8965 | esac | |
8966 | ac_save_IFS=$IFS | |
8967 | IFS=: | |
8968 | set x $ac_tag | |
8969 | IFS=$ac_save_IFS | |
8970 | shift | |
8971 | ac_file=$1 | |
8972 | shift | |
8973 | ||
8974 | case $ac_mode in | |
8975 | :L) ac_source=$1;; | |
8976 | :[FH]) | |
8977 | ac_file_inputs= | |
8978 | for ac_f | |
8979 | do | |
8980 | case $ac_f in | |
22e05272 | 8981 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
8982 | *) # Look for the file first in the build tree, then in the source tree |
8983 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8984 | # because $ac_f cannot contain `:'. | |
8985 | test -f "$ac_f" || | |
8986 | case $ac_f in | |
8987 | [\\/$]*) false;; | |
8988 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8989 | esac || | |
22e05272 | 8990 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
8991 | esac |
8992 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8993 | as_fn_append ac_file_inputs " '$ac_f'" | |
8994 | done | |
8995 | ||
8996 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8997 | # use $as_me), people would be surprised to read: | |
8998 | # /* config.h. Generated by config.status. */ | |
8999 | configure_input='Generated from '` | |
9000 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
9001 | `' by configure.' | |
9002 | if test x"$ac_file" != x-; then | |
9003 | configure_input="$ac_file. $configure_input" | |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
9005 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9006 | fi | |
9007 | # Neutralize special characters interpreted by sed in replacement strings. | |
9008 | case $configure_input in #( | |
9009 | *\&* | *\|* | *\\* ) | |
9010 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
9011 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
9012 | *) ac_sed_conf_input=$configure_input;; | |
9013 | esac | |
9014 | ||
9015 | case $ac_tag in | |
22e05272 JM |
9016 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
9017 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
9018 | esac |
9019 | ;; | |
4f4e53dd PB |
9020 | esac |
9021 | ||
5213506e | 9022 | ac_dir=`$as_dirname -- "$ac_file" || |
4f4e53dd PB |
9023 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9024 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9025 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
9026 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9027 | $as_echo X"$ac_file" | | |
9028 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9029 | s//\1/ | |
9030 | q | |
9031 | } | |
9032 | /^X\(\/\/\)[^/].*/{ | |
9033 | s//\1/ | |
9034 | q | |
9035 | } | |
9036 | /^X\(\/\/\)$/{ | |
9037 | s//\1/ | |
9038 | q | |
9039 | } | |
9040 | /^X\(\/\).*/{ | |
9041 | s//\1/ | |
9042 | q | |
9043 | } | |
9044 | s/.*/./; q'` | |
9045 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4f4e53dd PB |
9046 | ac_builddir=. |
9047 | ||
5213506e RW |
9048 | case "$ac_dir" in |
9049 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9050 | *) | |
9051 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
9052 | # A ".." for each directory in $ac_dir_suffix. | |
9053 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
9054 | case $ac_top_builddir_sub in | |
9055 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9056 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9057 | esac ;; | |
9058 | esac | |
9059 | ac_abs_top_builddir=$ac_pwd | |
9060 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9061 | # for backward compatibility: | |
9062 | ac_top_builddir=$ac_top_build_prefix | |
4f4e53dd PB |
9063 | |
9064 | case $srcdir in | |
5213506e | 9065 | .) # We are building in place. |
4f4e53dd | 9066 | ac_srcdir=. |
5213506e RW |
9067 | ac_top_srcdir=$ac_top_builddir_sub |
9068 | ac_abs_top_srcdir=$ac_pwd ;; | |
9069 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4f4e53dd | 9070 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
9071 | ac_top_srcdir=$srcdir |
9072 | ac_abs_top_srcdir=$srcdir ;; | |
9073 | *) # Relative name. | |
9074 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9075 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9076 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4f4e53dd | 9077 | esac |
5213506e | 9078 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4f4e53dd | 9079 | |
4f4e53dd | 9080 | |
5213506e RW |
9081 | case $ac_mode in |
9082 | :F) | |
9083 | # | |
9084 | # CONFIG_FILE | |
9085 | # | |
4f4e53dd PB |
9086 | |
9087 | case $INSTALL in | |
9088 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 9089 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
4f4e53dd | 9090 | esac |
5213506e | 9091 | _ACEOF |
4f4e53dd | 9092 | |
5213506e RW |
9093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9094 | # If the template does not know about datarootdir, expand it. | |
9095 | # FIXME: This hack should be removed a few years after 2.60. | |
9096 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9097 | ac_sed_dataroot=' | |
9098 | /datarootdir/ { | |
9099 | p | |
9100 | q | |
9101 | } | |
9102 | /@datadir@/p | |
9103 | /@docdir@/p | |
9104 | /@infodir@/p | |
9105 | /@localedir@/p | |
9106 | /@mandir@/p' | |
9107 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
9108 | *datarootdir*) ac_datarootdir_seen=yes;; | |
9109 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
9111 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
9112 | _ACEOF | |
9113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9114 | ac_datarootdir_hack=' | |
9115 | s&@datadir@&$datadir&g | |
9116 | s&@docdir@&$docdir&g | |
9117 | s&@infodir@&$infodir&g | |
9118 | s&@localedir@&$localedir&g | |
9119 | s&@mandir@&$mandir&g | |
9120 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9121 | esac | |
4f4e53dd | 9122 | _ACEOF |
5213506e RW |
9123 | |
9124 | # Neutralize VPATH when `$srcdir' = `.'. | |
9125 | # Shell code in configure.ac might set extrasub. | |
9126 | # FIXME: do we really want to maintain this feature? | |
9127 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9128 | ac_sed_extra="$ac_vpsub | |
4f4e53dd PB |
9129 | $extrasub |
9130 | _ACEOF | |
5213506e | 9131 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4f4e53dd PB |
9132 | :t |
9133 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
9134 | s|@configure_input@|$ac_sed_conf_input|;t t |
9135 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
9136 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
9137 | s&@srcdir@&$ac_srcdir&;t t | |
9138 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9139 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9140 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9141 | s&@builddir@&$ac_builddir&;t t | |
9142 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9143 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9144 | s&@INSTALL@&$ac_INSTALL&;t t | |
9145 | $ac_datarootdir_hack | |
9146 | " | |
22e05272 JM |
9147 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9148 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
9149 | |
9150 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
9151 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9152 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
9153 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 9155 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 9156 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 9157 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 9158 | |
22e05272 | 9159 | rm -f "$ac_tmp/stdin" |
4f4e53dd | 9160 | case $ac_file in |
22e05272 JM |
9161 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9162 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 9163 | esac \ |
22e05272 | 9164 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
9165 | ;; |
9166 | :H) | |
9167 | # | |
9168 | # CONFIG_HEADER | |
9169 | # | |
4f4e53dd | 9170 | if test x"$ac_file" != x-; then |
5213506e RW |
9171 | { |
9172 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
9173 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9174 | } >"$ac_tmp/config.h" \ | |
9175 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9176 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
9177 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9178 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4f4e53dd | 9179 | else |
5213506e | 9180 | rm -f "$ac_file" |
22e05272 JM |
9181 | mv "$ac_tmp/config.h" "$ac_file" \ |
9182 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4f4e53dd PB |
9183 | fi |
9184 | else | |
5213506e | 9185 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
9186 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9187 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
4f4e53dd | 9188 | fi |
5213506e | 9189 | ;; |
f610dd5f | 9190 | |
5213506e RW |
9191 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9192 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9193 | ;; | |
9194 | esac | |
f610dd5f | 9195 | |
f610dd5f | 9196 | |
5213506e RW |
9197 | case $ac_file$ac_mode in |
9198 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; | |
9199 | "config.h":H) echo timestamp > stamp-h1 ;; | |
f610dd5f | 9200 | |
f610dd5f | 9201 | esac |
5213506e | 9202 | done # for ac_tag |
4f4e53dd | 9203 | |
4f4e53dd | 9204 | |
5213506e | 9205 | as_fn_exit 0 |
4f4e53dd | 9206 | _ACEOF |
4f4e53dd PB |
9207 | ac_clean_files=$ac_clean_files_save |
9208 | ||
5213506e | 9209 | test $ac_write_fail = 0 || |
22e05272 | 9210 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 9211 | |
4f4e53dd PB |
9212 | |
9213 | # configure is writing to config.log, and then calls config.status. | |
9214 | # config.status does its own redirection, appending to config.log. | |
9215 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9216 | # by configure, so config.status won't be able to write to it; its | |
9217 | # output is simply discarded. So we exec the FD to /dev/null, | |
9218 | # effectively closing config.log, so it can be properly (re)opened and | |
9219 | # appended to by config.status. When coming back to configure, we | |
9220 | # need to make the FD available again. | |
9221 | if test "$no_create" != yes; then | |
9222 | ac_cs_success=: | |
9223 | ac_config_status_args= | |
9224 | test "$silent" = yes && | |
9225 | ac_config_status_args="$ac_config_status_args --quiet" | |
9226 | exec 5>/dev/null | |
9227 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9228 | exec 5>>config.log | |
9229 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9230 | # would make configure fail if this is the last instruction. | |
22e05272 | 9231 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
9232 | fi |
9233 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9235 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4f4e53dd PB |
9236 | fi |
9237 |