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