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