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