Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for GNU MDK 1.3.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and [email protected]
274 $0: about your system, including any error possibly output
275 $0: before this message. Then install a modern shell, or
276 $0: manually run the script under such a shell if you do
277 $0: have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='GNU MDK'
606 PACKAGE_TARNAME='mdk'
607 PACKAGE_VERSION='1.3.1'
608 PACKAGE_STRING='GNU MDK 1.3.1'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL='https://www.gnu.org/software/mdk/'
611
612 ac_unique_file="mixlib/mix.h"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_func_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 AM_CFLAGS
650 LIBOBJS
651 DARWIN_SYSTEM_FALSE
652 DARWIN_SYSTEM_TRUE
653 MAKE_GUI_FALSE
654 MAKE_GUI_TRUE
655 GTK_LIBS
656 GTK_CFLAGS
657 MAKE_GUILE_FALSE
658 MAKE_GUILE_TRUE
659 MAKE_GUILE
660 GUILE_LIBS
661 GUILE_CFLAGS
662 GLIB_LIBS
663 GLIB_CFLAGS
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 GETTEXT_PACKAGE
668 ALL_LINGUAS
669 INTLTOOL_PERL
670 INTLTOOL_POLICY_RULE
671 INTLTOOL_SERVICE_RULE
672 INTLTOOL_THEME_RULE
673 INTLTOOL_SCHEMAS_RULE
674 INTLTOOL_CAVES_RULE
675 INTLTOOL_XML_NOMERGE_RULE
676 INTLTOOL_XML_RULE
677 INTLTOOL_KBD_RULE
678 INTLTOOL_XAM_RULE
679 INTLTOOL_UI_RULE
680 INTLTOOL_SOUNDLIST_RULE
681 INTLTOOL_SHEET_RULE
682 INTLTOOL_SERVER_RULE
683 INTLTOOL_PONG_RULE
684 INTLTOOL_OAF_RULE
685 INTLTOOL_PROP_RULE
686 INTLTOOL_KEYS_RULE
687 INTLTOOL_DIRECTORY_RULE
688 INTLTOOL_DESKTOP_RULE
689 intltool__v_merge_options_0
690 intltool__v_merge_options_
691 INTLTOOL_V_MERGE_OPTIONS
692 INTLTOOL__v_MERGE_0
693 INTLTOOL__v_MERGE_
694 INTLTOOL_V_MERGE
695 INTLTOOL_EXTRACT
696 INTLTOOL_MERGE
697 INTLTOOL_UPDATE
698 POSUB
699 LTLIBINTL
700 LIBINTL
701 INTLLIBS
702 INTL_LIBTOOL_SUFFIX_PREFIX
703 INTLOBJS
704 GENCAT
705 INSTOBJEXT
706 DATADIRNAME
707 CATOBJEXT
708 USE_INCLUDED_LIBINTL
709 BUILD_INCLUDED_LIBINTL
710 INTLBISON
711 LTLIBICONV
712 LIBICONV
713 HAVE_WPRINTF
714 HAVE_SNPRINTF
715 HAVE_ASPRINTF
716 HAVE_POSIX_PRINTF
717 GLIBC21
718 ALLOCA
719 CPP
720 EGREP
721 GREP
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 MSGMERGE
731 XGETTEXT
732 GMSGFMT
733 MSGFMT
734 USE_NLS
735 MKINSTALLDIRS
736 RANLIB
737 LEXLIB
738 LEX_OUTPUT_ROOT
739 LEX
740 am__fastdepCC_FALSE
741 am__fastdepCC_TRUE
742 CCDEPMODE
743 am__nodep
744 AMDEPBACKSLASH
745 AMDEP_FALSE
746 AMDEP_TRUE
747 am__include
748 DEPDIR
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 MAINT
757 MAINTAINER_MODE_FALSE
758 MAINTAINER_MODE_TRUE
759 am__xargs_n
760 am__rm_f_notfound
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 CSCOPE
766 ETAGS
767 CTAGS
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 AWK
774 mkdir_p
775 MKDIR_P
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 MAKEINFO
780 AUTOHEADER
781 AUTOMAKE
782 AUTOCONF
783 ACLOCAL
784 VERSION
785 PACKAGE
786 CYGPATH_W
787 am__isrc
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
791 target_alias
792 host_alias
793 build_alias
794 LIBS
795 ECHO_T
796 ECHO_N
797 ECHO_C
798 DEFS
799 mandir
800 localedir
801 libdir
802 psdir
803 pdfdir
804 dvidir
805 htmldir
806 infodir
807 docdir
808 oldincludedir
809 includedir
810 runstatedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL
830 am__quote'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_maintainer_mode
836 enable_dependency_tracking
837 with_werror
838 enable_nls
839 with_gnu_ld
840 enable_rpath
841 with_libiconv_prefix
842 with_included_gettext
843 with_libintl_prefix
844 with_readline
845 with_guile
846 enable_gui
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 PKG_CONFIG
858 PKG_CONFIG_PATH
859 PKG_CONFIG_LIBDIR
860 GLIB_CFLAGS
861 GLIB_LIBS
862 GUILE_CFLAGS
863 GUILE_LIBS
864 GTK_CFLAGS
865 GTK_LIBS'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: '$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: '$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: '$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: '$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) as_fn_error $? "unrecognized option: '$ac_option'
1260 Try '$0 --help' for more information"
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1302 do
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: '$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 'configure' configures GNU MDK 1.3.1 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print 'checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for '--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or '..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, 'make install' will install all the files in
1441 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than '$ac_default_prefix' using '--prefix',
1443 for instance '--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/mdk]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of GNU MDK 1.3.1:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-maintainer-mode
1496 enable make rules and dependencies not useful (and
1497 sometimes confusing) to the casual installer
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --disable-nls do not use Native Language Support
1503 --disable-rpath do not hardcode runtime library paths
1504 --disable-gui do not build the GTK+ GUI for mixvm (gmixvm)
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-werror treat compilation warnings as errors
1510 --with-gnu-ld assume the C compiler uses GNU ld default=no
1511 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1512 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1513 --with-included-gettext use the GNU gettext library included here
1514 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1515 --without-libintl-prefix don't search for libintl in includedir and libdir
1516 --without-readline build mixvm without readline support
1517 --without-guile build MDK without Guile support
1518
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 PKG_CONFIG path to pkg-config utility
1529 PKG_CONFIG_PATH
1530 directories to add to pkg-config's search path
1531 PKG_CONFIG_LIBDIR
1532 path overriding pkg-config's built-in search path
1533 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1534 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1535 GUILE_CFLAGS
1536 C compiler flags for GUILE, overriding pkg-config
1537 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1538 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1539 GTK_LIBS linker flags for GTK, overriding pkg-config
1540
1541 Use these variables to override the choices made by 'configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <[email protected]>.
1545 GNU MDK home page: <https://www.gnu.org/software/mdk/>.
1546 General help using GNU software: <https://www.gnu.org/gethelp/>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for configure.gnu first; this name is used for a wrapper for
1593 # Metaconfig's "Configure" on case-insensitive file systems.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 GNU MDK configure 1.3.1
1611 generated by GNU Autoconf 2.72
1612
1613 Copyright (C) 2023 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext
1650 then :
1651 ac_retval=0
1652 else case e in #(
1653 e) printf "%s\n" "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1 ;;
1657 esac
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 printf "%s\n" "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 test -x conftest$ac_exeext
1692 }
1693 then :
1694 ac_retval=0
1695 else case e in #(
1696 e) printf "%s\n" "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1 ;;
1700 esac
1701 fi
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_link
1711
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else case e in #(
1725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 $4
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"
1731 then :
1732 eval "$3=yes"
1733 else case e in #(
1734 e) eval "$3=no" ;;
1735 esac
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1738 esac
1739 fi
1740 eval ac_res=\$$3
1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 printf "%s\n" "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745 } # ac_fn_c_check_header_compile
1746
1747 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1748 # -------------------------------------------
1749 # Tests whether TYPE exists after having included INCLUDES, setting cache
1750 # variable VAR accordingly.
1751 ac_fn_c_check_type ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 printf %s "checking for $2... " >&6; }
1756 if eval test \${$3+y}
1757 then :
1758 printf %s "(cached) " >&6
1759 else case e in #(
1760 e) eval "$3=no"
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 int
1765 main (void)
1766 {
1767 if (sizeof ($2))
1768 return 0;
1769 ;
1770 return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"
1774 then :
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 int
1779 main (void)
1780 {
1781 if (sizeof (($2)))
1782 return 0;
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"
1788 then :
1789
1790 else case e in #(
1791 e) eval "$3=yes" ;;
1792 esac
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1797 esac
1798 fi
1799 eval ac_res=\$$3
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 printf "%s\n" "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_type
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 printf "%s\n" "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } > conftest.i && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 }
1831 then :
1832 ac_retval=0
1833 else case e in #(
1834 e) printf "%s\n" "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1 ;;
1838 esac
1839 fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_cpp
1844
1845 # ac_fn_c_try_run LINENO
1846 # ----------------------
1847 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1848 # executables *can* be run.
1849 ac_fn_c_try_run ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 printf "%s\n" "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 printf "%s\n" "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }
1873 then :
1874 ac_retval=0
1875 else case e in #(
1876 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1877 printf "%s\n" "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=$ac_status ;;
1881 esac
1882 fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_c_try_run
1888
1889 # ac_fn_c_check_func LINENO FUNC VAR
1890 # ----------------------------------
1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1892 ac_fn_c_check_func ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 printf %s "checking for $2... " >&6; }
1897 if eval test \${$3+y}
1898 then :
1899 printf %s "(cached) " >&6
1900 else case e in #(
1901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1905 #define $2 innocuous_$2
1906
1907 /* System header to define __stub macros and hopefully few prototypes,
1908 which can conflict with char $2 (void); below. */
1909
1910 #include <limits.h>
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914 Use char because int might match the return type of a GCC
1915 builtin and then its argument prototype would still apply. */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 (void);
1920 /* The GNU C library defines this for functions which it implements
1921 to always fail with ENOSYS. Some functions are actually named
1922 something starting with __ and the normal name is an alias. */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main (void)
1929 {
1930 return $2 ();
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"
1936 then :
1937 eval "$3=yes"
1938 else case e in #(
1939 e) eval "$3=no" ;;
1940 esac
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1943 conftest$ac_exeext conftest.$ac_ext ;;
1944 esac
1945 fi
1946 eval ac_res=\$$3
1947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 printf "%s\n" "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_func
1952
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1957 # computed
1958 ac_fn_c_compute_int ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if test "$cross_compiling" = yes; then
1962 # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 int
1967 main (void)
1968 {
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"
1978 then :
1979 ac_lo=0 ac_mid=0
1980 while :; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main (void)
1986 {
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 test_array [0] = 0;
1989 return test_array [0];
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"
1996 then :
1997 ac_hi=$ac_mid; break
1998 else case e in #(
1999 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2000 if test $ac_lo -le $ac_mid; then
2001 ac_lo= ac_hi=
2002 break
2003 fi
2004 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2005 esac
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2008 done
2009 else case e in #(
2010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main (void)
2015 {
2016 static int test_array [1 - 2 * !(($2) < 0)];
2017 test_array [0] = 0;
2018 return test_array [0];
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"
2025 then :
2026 ac_hi=-1 ac_mid=-1
2027 while :; do
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main (void)
2033 {
2034 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2035 test_array [0] = 0;
2036 return test_array [0];
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"
2043 then :
2044 ac_lo=$ac_mid; break
2045 else case e in #(
2046 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2048 ac_lo= ac_hi=
2049 break
2050 fi
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2052 esac
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2055 done
2056 else case e in #(
2057 e) ac_lo= ac_hi= ;;
2058 esac
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2061 esac
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 # Binary search between lo and hi bounds.
2065 while test "x$ac_lo" != "x$ac_hi"; do
2066 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main (void)
2072 {
2073 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2074 test_array [0] = 0;
2075 return test_array [0];
2076
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"
2082 then :
2083 ac_hi=$ac_mid
2084 else case e in #(
2085 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2086 esac
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2089 done
2090 case $ac_lo in #((
2091 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2092 '') ac_retval=1 ;;
2093 esac
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 static long int longval (void) { return $2; }
2099 static unsigned long int ulongval (void) { return $2; }
2100 #include <stdio.h>
2101 #include <stdlib.h>
2102 int
2103 main (void)
2104 {
2105
2106 FILE *f = fopen ("conftest.val", "w");
2107 if (! f)
2108 return 1;
2109 if (($2) < 0)
2110 {
2111 long int i = longval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%ld", i);
2115 }
2116 else
2117 {
2118 unsigned long int i = ulongval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%lu", i);
2122 }
2123 /* Do not output a trailing newline, as this causes \r\n confusion
2124 on some platforms. */
2125 return ferror (f) || fclose (f) != 0;
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_run "$LINENO"
2132 then :
2133 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2134 else case e in #(
2135 e) ac_retval=1 ;;
2136 esac
2137 fi
2138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2139 conftest.$ac_objext conftest.beam conftest.$ac_ext
2140 rm -f conftest.val
2141
2142 fi
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 as_fn_set_status $ac_retval
2145
2146 } # ac_fn_c_compute_int
2147 ac_configure_args_raw=
2148 for ac_arg
2149 do
2150 case $ac_arg in
2151 *\'*)
2152 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 esac
2154 as_fn_append ac_configure_args_raw " '$ac_arg'"
2155 done
2156
2157 case $ac_configure_args_raw in
2158 *$as_nl*)
2159 ac_safe_unquote= ;;
2160 *)
2161 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2162 ac_unsafe_a="$ac_unsafe_z#~"
2163 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2164 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2165 esac
2166
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2170
2171 It was created by GNU MDK $as_me 1.3.1, which was
2172 generated by GNU Autoconf 2.72. Invocation command line was
2173
2174 $ $0$ac_configure_args_raw
2175
2176 _ACEOF
2177 exec 5>>config.log
2178 {
2179 cat <<_ASUNAME
2180 ## --------- ##
2181 ## Platform. ##
2182 ## --------- ##
2183
2184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2189
2190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2192
2193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2200
2201 _ASUNAME
2202
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206 IFS=$as_save_IFS
2207 case $as_dir in #(((
2208 '') as_dir=./ ;;
2209 */) ;;
2210 *) as_dir=$as_dir/ ;;
2211 esac
2212 printf "%s\n" "PATH: $as_dir"
2213 done
2214 IFS=$as_save_IFS
2215
2216 } >&5
2217
2218 cat >&5 <<_ACEOF
2219
2220
2221 ## ----------- ##
2222 ## Core tests. ##
2223 ## ----------- ##
2224
2225 _ACEOF
2226
2227
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_configure_args=
2234 ac_configure_args0=
2235 ac_configure_args1=
2236 ac_must_keep_next=false
2237 for ac_pass in 1 2
2238 do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272 done
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2275
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Sanitize IFS.
2283 IFS=" "" $as_nl"
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
2288 printf "%s\n" "## ---------------- ##
2289 ## Cache variables. ##
2290 ## ---------------- ##"
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
2293 (
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
2309 (set) 2>&1 |
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2312 sed -n \
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
2316 *)
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 ;;
2319 esac |
2320 sort
2321 )
2322 echo
2323
2324 printf "%s\n" "## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##"
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 printf "%s\n" "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
2339 printf "%s\n" "## ------------------- ##
2340 ## File substitutions. ##
2341 ## ------------------- ##"
2342 echo
2343 for ac_var in $ac_subst_files
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 printf "%s\n" "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352 fi
2353
2354 if test -s confdefs.h; then
2355 printf "%s\n" "## ----------- ##
2356 ## confdefs.h. ##
2357 ## ----------- ##"
2358 echo
2359 cat confdefs.h
2360 echo
2361 fi
2362 test "$ac_signal" != 0 &&
2363 printf "%s\n" "$as_me: caught signal $ac_signal"
2364 printf "%s\n" "$as_me: exit $exit_status"
2365 } >&5
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 exit $exit_status
2369 ' 0
2370 for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372 done
2373 ac_signal=0
2374
2375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2376 rm -f -r conftest* confdefs.h
2377
2378 printf "%s\n" "/* confdefs.h */" > confdefs.h
2379
2380 # Predefined preprocessor variables.
2381
2382 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2383
2384 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2385
2386 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2387
2388 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2389
2390 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2391
2392 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2393
2394
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2397 if test -n "$CONFIG_SITE"; then
2398 ac_site_files="$CONFIG_SITE"
2399 elif test "x$prefix" != xNONE; then
2400 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2401 else
2402 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2403 fi
2404
2405 for ac_site_file in $ac_site_files
2406 do
2407 case $ac_site_file in #(
2408 */*) :
2409 ;; #(
2410 *) :
2411 ac_site_file=./$ac_site_file ;;
2412 esac
2413 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
2417 . "$ac_site_file" \
2418 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2419 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2420 as_fn_error $? "failed to load site script $ac_site_file
2421 See 'config.log' for more details" "$LINENO" 5; }
2422 fi
2423 done
2424
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2435 fi
2436 else
2437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2440 fi
2441
2442 # Test code for whether the C compiler supports C89 (global declarations)
2443 ac_c_conftest_c89_globals='
2444 /* Does the compiler advertise C89 conformance?
2445 Do not test the value of __STDC__, because some compilers set it to 0
2446 while being otherwise adequately conformant. */
2447 #if !defined __STDC__
2448 # error "Compiler does not advertise C89 conformance"
2449 #endif
2450
2451 #include <stddef.h>
2452 #include <stdarg.h>
2453 struct stat;
2454 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2455 struct buf { int x; };
2456 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (char **p, int i)
2458 {
2459 return p[i];
2460 }
2461 static char *f (char * (*g) (char **, int), char **p, ...)
2462 {
2463 char *s;
2464 va_list v;
2465 va_start (v,p);
2466 s = g (p, va_arg (v,int));
2467 va_end (v);
2468 return s;
2469 }
2470
2471 /* C89 style stringification. */
2472 #define noexpand_stringify(a) #a
2473 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2474
2475 /* C89 style token pasting. Exercises some of the corner cases that
2476 e.g. old MSVC gets wrong, but not very hard. */
2477 #define noexpand_concat(a,b) a##b
2478 #define expand_concat(a,b) noexpand_concat(a,b)
2479 extern int vA;
2480 extern int vbee;
2481 #define aye A
2482 #define bee B
2483 int *pvA = &expand_concat(v,aye);
2484 int *pvbee = &noexpand_concat(v,bee);
2485
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2487 function prototypes and stuff, but not \xHH hex character constants.
2488 These do not provoke an error unfortunately, instead are silently treated
2489 as an "x". The following induces an error, until -std is added to get
2490 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2491 array size at least. It is necessary to write \x00 == 0 to get something
2492 that is true only with -std. */
2493 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2494
2495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2496 inside strings and character constants. */
2497 #define FOO(x) '\''x'\''
2498 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2499
2500 int test (int i, double x);
2501 struct s1 {int (*f) (int a);};
2502 struct s2 {int (*f) (double a);};
2503 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2504 int, int);'
2505
2506 # Test code for whether the C compiler supports C89 (body of main).
2507 ac_c_conftest_c89_main='
2508 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2509 '
2510
2511 # Test code for whether the C compiler supports C99 (global declarations)
2512 ac_c_conftest_c99_globals='
2513 /* Does the compiler advertise C99 conformance? */
2514 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2515 # error "Compiler does not advertise C99 conformance"
2516 #endif
2517
2518 // See if C++-style comments work.
2519
2520 #include <stdbool.h>
2521 extern int puts (const char *);
2522 extern int printf (const char *, ...);
2523 extern int dprintf (int, const char *, ...);
2524 extern void *malloc (size_t);
2525 extern void free (void *);
2526
2527 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2528 // dprintf is used instead of fprintf to avoid needing to declare
2529 // FILE and stderr.
2530 #define debug(...) dprintf (2, __VA_ARGS__)
2531 #define showlist(...) puts (#__VA_ARGS__)
2532 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2533 static void
2534 test_varargs_macros (void)
2535 {
2536 int x = 1234;
2537 int y = 5678;
2538 debug ("Flag");
2539 debug ("X = %d\n", x);
2540 showlist (The first, second, and third items.);
2541 report (x>y, "x is %d but y is %d", x, y);
2542 }
2543
2544 // Check long long types.
2545 #define BIG64 18446744073709551615ull
2546 #define BIG32 4294967295ul
2547 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2548 #if !BIG_OK
2549 #error "your preprocessor is broken"
2550 #endif
2551 #if BIG_OK
2552 #else
2553 #error "your preprocessor is broken"
2554 #endif
2555 static long long int bignum = -9223372036854775807LL;
2556 static unsigned long long int ubignum = BIG64;
2557
2558 struct incomplete_array
2559 {
2560 int datasize;
2561 double data[];
2562 };
2563
2564 struct named_init {
2565 int number;
2566 const wchar_t *name;
2567 double average;
2568 };
2569
2570 typedef const char *ccp;
2571
2572 static inline int
2573 test_restrict (ccp restrict text)
2574 {
2575 // Iterate through items via the restricted pointer.
2576 // Also check for declarations in for loops.
2577 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2578 continue;
2579 return 0;
2580 }
2581
2582 // Check varargs and va_copy.
2583 static bool
2584 test_varargs (const char *format, ...)
2585 {
2586 va_list args;
2587 va_start (args, format);
2588 va_list args_copy;
2589 va_copy (args_copy, args);
2590
2591 const char *str = "";
2592 int number = 0;
2593 float fnumber = 0;
2594
2595 while (*format)
2596 {
2597 switch (*format++)
2598 {
2599 case '\''s'\'': // string
2600 str = va_arg (args_copy, const char *);
2601 break;
2602 case '\''d'\'': // int
2603 number = va_arg (args_copy, int);
2604 break;
2605 case '\''f'\'': // float
2606 fnumber = va_arg (args_copy, double);
2607 break;
2608 default:
2609 break;
2610 }
2611 }
2612 va_end (args_copy);
2613 va_end (args);
2614
2615 return *str && number && fnumber;
2616 }
2617 '
2618
2619 # Test code for whether the C compiler supports C99 (body of main).
2620 ac_c_conftest_c99_main='
2621 // Check bool.
2622 _Bool success = false;
2623 success |= (argc != 0);
2624
2625 // Check restrict.
2626 if (test_restrict ("String literal") == 0)
2627 success = true;
2628 char *restrict newvar = "Another string";
2629
2630 // Check varargs.
2631 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2632 test_varargs_macros ();
2633
2634 // Check flexible array members.
2635 struct incomplete_array *ia =
2636 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2637 ia->datasize = 10;
2638 for (int i = 0; i < ia->datasize; ++i)
2639 ia->data[i] = i * 1.234;
2640 // Work around memory leak warnings.
2641 free (ia);
2642
2643 // Check named initializers.
2644 struct named_init ni = {
2645 .number = 34,
2646 .name = L"Test wide string",
2647 .average = 543.34343,
2648 };
2649
2650 ni.number = 58;
2651
2652 int dynamic_array[ni.number];
2653 dynamic_array[0] = argv[0][0];
2654 dynamic_array[ni.number - 1] = 543;
2655
2656 // work around unused variable warnings
2657 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2658 || dynamic_array[ni.number - 1] != 543);
2659 '
2660
2661 # Test code for whether the C compiler supports C11 (global declarations)
2662 ac_c_conftest_c11_globals='
2663 /* Does the compiler advertise C11 conformance? */
2664 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2665 # error "Compiler does not advertise C11 conformance"
2666 #endif
2667
2668 // Check _Alignas.
2669 char _Alignas (double) aligned_as_double;
2670 char _Alignas (0) no_special_alignment;
2671 extern char aligned_as_int;
2672 char _Alignas (0) _Alignas (int) aligned_as_int;
2673
2674 // Check _Alignof.
2675 enum
2676 {
2677 int_alignment = _Alignof (int),
2678 int_array_alignment = _Alignof (int[100]),
2679 char_alignment = _Alignof (char)
2680 };
2681 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2682
2683 // Check _Noreturn.
2684 int _Noreturn does_not_return (void) { for (;;) continue; }
2685
2686 // Check _Static_assert.
2687 struct test_static_assert
2688 {
2689 int x;
2690 _Static_assert (sizeof (int) <= sizeof (long int),
2691 "_Static_assert does not work in struct");
2692 long int y;
2693 };
2694
2695 // Check UTF-8 literals.
2696 #define u8 syntax error!
2697 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2698
2699 // Check duplicate typedefs.
2700 typedef long *long_ptr;
2701 typedef long int *long_ptr;
2702 typedef long_ptr long_ptr;
2703
2704 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2705 struct anonymous
2706 {
2707 union {
2708 struct { int i; int j; };
2709 struct { int k; long int l; } w;
2710 };
2711 int m;
2712 } v1;
2713 '
2714
2715 # Test code for whether the C compiler supports C11 (body of main).
2716 ac_c_conftest_c11_main='
2717 _Static_assert ((offsetof (struct anonymous, i)
2718 == offsetof (struct anonymous, w.k)),
2719 "Anonymous union alignment botch");
2720 v1.i = 2;
2721 v1.w.k = 5;
2722 ok |= v1.i != 5;
2723 '
2724
2725 # Test code for whether the C compiler supports C11 (complete).
2726 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2727 ${ac_c_conftest_c99_globals}
2728 ${ac_c_conftest_c11_globals}
2729
2730 int
2731 main (int argc, char **argv)
2732 {
2733 int ok = 0;
2734 ${ac_c_conftest_c89_main}
2735 ${ac_c_conftest_c99_main}
2736 ${ac_c_conftest_c11_main}
2737 return ok;
2738 }
2739 "
2740
2741 # Test code for whether the C compiler supports C99 (complete).
2742 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2743 ${ac_c_conftest_c99_globals}
2744
2745 int
2746 main (int argc, char **argv)
2747 {
2748 int ok = 0;
2749 ${ac_c_conftest_c89_main}
2750 ${ac_c_conftest_c99_main}
2751 return ok;
2752 }
2753 "
2754
2755 # Test code for whether the C compiler supports C89 (complete).
2756 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2757
2758 int
2759 main (int argc, char **argv)
2760 {
2761 int ok = 0;
2762 ${ac_c_conftest_c89_main}
2763 return ok;
2764 }
2765 "
2766
2767 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2768 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2769 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2770 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2771 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2772 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2773 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2774 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2775 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2776 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2777 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2778
2779 # Auxiliary files required by this configure script.
2780 ac_aux_files="config.guess config.sub compile missing install-sh"
2781
2782 # Locations in which to look for auxiliary files.
2783 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2784
2785 # Search for a directory containing all of the required auxiliary files,
2786 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2787 # If we don't find one directory that contains all the files we need,
2788 # we report the set of missing files from the *first* directory in
2789 # $ac_aux_dir_candidates and give up.
2790 ac_missing_aux_files=""
2791 ac_first_candidate=:
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 as_found=false
2795 for as_dir in $ac_aux_dir_candidates
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 as_found=:
2804
2805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2806 ac_aux_dir_found=yes
2807 ac_install_sh=
2808 for ac_aux in $ac_aux_files
2809 do
2810 # As a special case, if "install-sh" is required, that requirement
2811 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2812 # and $ac_install_sh is set appropriately for whichever one is found.
2813 if test x"$ac_aux" = x"install-sh"
2814 then
2815 if test -f "${as_dir}install-sh"; then
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2817 ac_install_sh="${as_dir}install-sh -c"
2818 elif test -f "${as_dir}install.sh"; then
2819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2820 ac_install_sh="${as_dir}install.sh -c"
2821 elif test -f "${as_dir}shtool"; then
2822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2823 ac_install_sh="${as_dir}shtool install -c"
2824 else
2825 ac_aux_dir_found=no
2826 if $ac_first_candidate; then
2827 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2828 else
2829 break
2830 fi
2831 fi
2832 else
2833 if test -f "${as_dir}${ac_aux}"; then
2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2835 else
2836 ac_aux_dir_found=no
2837 if $ac_first_candidate; then
2838 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2839 else
2840 break
2841 fi
2842 fi
2843 fi
2844 done
2845 if test "$ac_aux_dir_found" = yes; then
2846 ac_aux_dir="$as_dir"
2847 break
2848 fi
2849 ac_first_candidate=false
2850
2851 as_found=false
2852 done
2853 IFS=$as_save_IFS
2854 if $as_found
2855 then :
2856
2857 else case e in #(
2858 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2859 esac
2860 fi
2861
2862
2863 # These three variables are undocumented and unsupported,
2864 # and are intended to be withdrawn in a future Autoconf release.
2865 # They can cause serious problems if a builder's source tree is in a directory
2866 # whose full name contains unusual characters.
2867 if test -f "${ac_aux_dir}config.guess"; then
2868 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2869 fi
2870 if test -f "${ac_aux_dir}config.sub"; then
2871 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2872 fi
2873 if test -f "$ac_aux_dir/configure"; then
2874 ac_configure="$SHELL ${ac_aux_dir}configure"
2875 fi
2876
2877 # Check that the precious variables saved in the cache have kept the same
2878 # value.
2879 ac_cache_corrupted=false
2880 for ac_var in $ac_precious_vars; do
2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2882 eval ac_new_set=\$ac_env_${ac_var}_set
2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2884 eval ac_new_val=\$ac_env_${ac_var}_value
2885 case $ac_old_set,$ac_new_set in
2886 set,)
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2888 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2889 ac_cache_corrupted=: ;;
2890 ,set)
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2892 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,);;
2895 *)
2896 if test "x$ac_old_val" != "x$ac_new_val"; then
2897 # differences in whitespace do not lead to failure.
2898 ac_old_val_w=`echo x $ac_old_val`
2899 ac_new_val_w=`echo x $ac_new_val`
2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2902 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2903 ac_cache_corrupted=:
2904 else
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2906 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2907 eval $ac_var=\$ac_old_val
2908 fi
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2910 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2912 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2913 fi;;
2914 esac
2915 # Pass precious variables to config.status.
2916 if test "$ac_new_set" = set; then
2917 case $ac_new_val in
2918 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2919 *) ac_arg=$ac_var=$ac_new_val ;;
2920 esac
2921 case " $ac_configure_args " in
2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2924 esac
2925 fi
2926 done
2927 if $ac_cache_corrupted; then
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2929 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2931 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2932 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2933 and start over" "$LINENO" 5
2934 fi
2935 ## -------------------- ##
2936 ## Main body of script. ##
2937 ## -------------------- ##
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
2945
2946
2947 am__api_version='1.17'
2948
2949
2950
2951 # Find a good install program. We prefer a C program (faster),
2952 # so one script is as good as another. But avoid the broken or
2953 # incompatible versions:
2954 # SysV /etc/install, /usr/sbin/install
2955 # SunOS /usr/etc/install
2956 # IRIX /sbin/install
2957 # AIX /bin/install
2958 # AmigaOS /C/install, which installs bootblocks on floppy discs
2959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962 # OS/2's system install, which has a completely different semantic
2963 # ./install, which can be erroneously created by make from ./install.sh.
2964 # Reject install programs that cannot install multiple files.
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2966 printf %s "checking for a BSD-compatible install... " >&6; }
2967 if test -z "$INSTALL"; then
2968 if test ${ac_cv_path_install+y}
2969 then :
2970 printf %s "(cached) " >&6
2971 else case e in #(
2972 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 case $as_dir in #(((
2977 '') as_dir=./ ;;
2978 */) ;;
2979 *) as_dir=$as_dir/ ;;
2980 esac
2981 # Account for fact that we put trailing slashes in our PATH walk.
2982 case $as_dir in #((
2983 ./ | /[cC]/* | \
2984 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2985 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2986 /usr/ucb/* ) ;;
2987 *)
2988 # OSF1 and SCO ODT 3.0 have their own names for install.
2989 # Don't use installbsd from OSF since it installs stuff as root
2990 # by default.
2991 for ac_prog in ginstall scoinst install; do
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2994 if test $ac_prog = install &&
2995 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # AIX install. It has an incompatible calling convention.
2997 :
2998 elif test $ac_prog = install &&
2999 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000 # program-specific install script used by HP pwplus--don't use.
3001 :
3002 else
3003 rm -rf conftest.one conftest.two conftest.dir
3004 echo one > conftest.one
3005 echo two > conftest.two
3006 mkdir conftest.dir
3007 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3008 test -s conftest.one && test -s conftest.two &&
3009 test -s conftest.dir/conftest.one &&
3010 test -s conftest.dir/conftest.two
3011 then
3012 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3013 break 3
3014 fi
3015 fi
3016 fi
3017 done
3018 done
3019 ;;
3020 esac
3021
3022 done
3023 IFS=$as_save_IFS
3024
3025 rm -rf conftest.one conftest.two conftest.dir
3026 ;;
3027 esac
3028 fi
3029 if test ${ac_cv_path_install+y}; then
3030 INSTALL=$ac_cv_path_install
3031 else
3032 # As a last resort, use the slow shell script. Don't cache a
3033 # value for INSTALL within a source directory, because that will
3034 # break other packages using the cache if that directory is
3035 # removed, or if the value is a relative name.
3036 INSTALL=$ac_install_sh
3037 fi
3038 fi
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3040 printf "%s\n" "$INSTALL" >&6; }
3041
3042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3043 # It thinks the first close brace ends the variable substitution.
3044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045
3046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047
3048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3051 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3052 if test ${am_cv_sleep_fractional_seconds+y}
3053 then :
3054 printf %s "(cached) " >&6
3055 else case e in #(
3056 e) if sleep 0.001 2>/dev/null
3057 then :
3058 am_cv_sleep_fractional_seconds=yes
3059 else case e in #(
3060 e) am_cv_sleep_fractional_seconds=no ;;
3061 esac
3062 fi
3063 ;;
3064 esac
3065 fi
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3067 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3068
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3070 printf %s "checking filesystem timestamp resolution... " >&6; }
3071 if test ${am_cv_filesystem_timestamp_resolution+y}
3072 then :
3073 printf %s "(cached) " >&6
3074 else case e in #(
3075 e) # Default to the worst case.
3076 am_cv_filesystem_timestamp_resolution=2
3077
3078 # Only try to go finer than 1 sec if sleep can do it.
3079 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3080 # - 1 sec is not much of a win compared to 2 sec, and
3081 # - it takes 2 seconds to perform the test whether 1 sec works.
3082 #
3083 # Instead, just use the default 2s on platforms that have 1s resolution,
3084 # accept the extra 1s delay when using $sleep in the Automake tests, in
3085 # exchange for not incurring the 2s delay for running the test for all
3086 # packages.
3087 #
3088 am_try_resolutions=
3089 if test "$am_cv_sleep_fractional_seconds" = yes; then
3090 # Even a millisecond often causes a bunch of false positives,
3091 # so just try a hundredth of a second. The time saved between .001 and
3092 # .01 is not terribly consequential.
3093 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3094 fi
3095
3096 # In order to catch current-generation FAT out, we must *modify* files
3097 # that already exist; the *creation* timestamp is finer. Use names
3098 # that make ls -t sort them differently when they have equal
3099 # timestamps than when they have distinct timestamps, keeping
3100 # in mind that ls -t prints the *newest* file first.
3101 rm -f conftest.ts?
3102 : > conftest.ts1
3103 : > conftest.ts2
3104 : > conftest.ts3
3105
3106 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3107 # clobber the current shell's arguments. (Outer-level square brackets
3108 # are removed by m4; they're present so that m4 does not expand
3109 # <dollar><star>; be careful, easy to get confused.)
3110 if (
3111 set X `ls -t conftest.ts[12]` &&
3112 {
3113 test "$*" != "X conftest.ts1 conftest.ts2" ||
3114 test "$*" != "X conftest.ts2 conftest.ts1";
3115 }
3116 ); then :; else
3117 # If neither matched, then we have a broken ls. This can happen
3118 # if, for instance, CONFIG_SHELL is bash and it inherits a
3119 # broken ls alias from the environment. This has actually
3120 # happened. Such a system could not be considered "sane".
3121 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3123 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3124 as_fn_error $? "ls -t produces unexpected output.
3125 Make sure there is not a broken ls alias in your environment.
3126 See 'config.log' for more details" "$LINENO" 5; }
3127 fi
3128
3129 for am_try_res in $am_try_resolutions; do
3130 # Any one fine-grained sleep might happen to cross the boundary
3131 # between two values of a coarser actual resolution, but if we do
3132 # two fine-grained sleeps in a row, at least one of them will fall
3133 # entirely within a coarse interval.
3134 echo alpha > conftest.ts1
3135 sleep $am_try_res
3136 echo beta > conftest.ts2
3137 sleep $am_try_res
3138 echo gamma > conftest.ts3
3139
3140 # We assume that 'ls -t' will make use of high-resolution
3141 # timestamps if the operating system supports them at all.
3142 if (set X `ls -t conftest.ts?` &&
3143 test "$2" = conftest.ts3 &&
3144 test "$3" = conftest.ts2 &&
3145 test "$4" = conftest.ts1); then
3146 #
3147 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3148 # because we don't need to test make.
3149 make_ok=true
3150 if test $am_try_res != 1; then
3151 # But if we've succeeded so far with a subsecond resolution, we
3152 # have one more thing to check: make. It can happen that
3153 # everything else supports the subsecond mtimes, but make doesn't;
3154 # notably on macOS, which ships make 3.81 from 2006 (the last one
3155 # released under GPLv2). https://bugs.gnu.org/68808
3156 #
3157 # We test $MAKE if it is defined in the environment, else "make".
3158 # It might get overridden later, but our hope is that in practice
3159 # it does not matter: it is the system "make" which is (by far)
3160 # the most likely to be broken, whereas if the user overrides it,
3161 # probably they did so with a better, or at least not worse, make.
3162 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3163 #
3164 # Create a Makefile (real tab character here):
3165 rm -f conftest.mk
3166 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3167 echo ' touch conftest.ts2' >>conftest.mk
3168 #
3169 # Now, running
3170 # touch conftest.ts1; touch conftest.ts2; make
3171 # should touch ts1 because ts2 is newer. This could happen by luck,
3172 # but most often, it will fail if make's support is insufficient. So
3173 # test for several consecutive successes.
3174 #
3175 # (We reuse conftest.ts[12] because we still want to modify existing
3176 # files, not create new ones, per above.)
3177 n=0
3178 make=${MAKE-make}
3179 until test $n -eq 3; do
3180 echo one > conftest.ts1
3181 sleep $am_try_res
3182 echo two > conftest.ts2 # ts2 should now be newer than ts1
3183 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3184 make_ok=false
3185 break # out of $n loop
3186 fi
3187 n=`expr $n + 1`
3188 done
3189 fi
3190 #
3191 if $make_ok; then
3192 # Everything we know to check worked out, so call this resolution good.
3193 am_cv_filesystem_timestamp_resolution=$am_try_res
3194 break # out of $am_try_res loop
3195 fi
3196 # Otherwise, we'll go on to check the next resolution.
3197 fi
3198 done
3199 rm -f conftest.ts?
3200 # (end _am_filesystem_timestamp_resolution)
3201 ;;
3202 esac
3203 fi
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3205 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3206
3207 # This check should not be cached, as it may vary across builds of
3208 # different projects.
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3210 printf %s "checking whether build environment is sane... " >&6; }
3211 # Reject unsafe characters in $srcdir or the absolute working directory
3212 # name. Accept space and tab only in the latter.
3213 am_lf='
3214 '
3215 case `pwd` in
3216 *[\\\"\#\$\&\'\`$am_lf]*)
3217 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3218 esac
3219 case $srcdir in
3220 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3221 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3222 esac
3223
3224 # Do 'set' in a subshell so we don't clobber the current shell's
3225 # arguments. Must try -L first in case configure is actually a
3226 # symlink; some systems play weird games with the mod time of symlinks
3227 # (eg FreeBSD returns the mod time of the symlink's containing
3228 # directory).
3229 am_build_env_is_sane=no
3230 am_has_slept=no
3231 rm -f conftest.file
3232 for am_try in 1 2; do
3233 echo "timestamp, slept: $am_has_slept" > conftest.file
3234 if (
3235 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3236 if test "$*" = "X"; then
3237 # -L didn't work.
3238 set X `ls -t "$srcdir/configure" conftest.file`
3239 fi
3240 test "$2" = conftest.file
3241 ); then
3242 am_build_env_is_sane=yes
3243 break
3244 fi
3245 # Just in case.
3246 sleep "$am_cv_filesystem_timestamp_resolution"
3247 am_has_slept=yes
3248 done
3249
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3251 printf "%s\n" "$am_build_env_is_sane" >&6; }
3252 if test "$am_build_env_is_sane" = no; then
3253 as_fn_error $? "newly created file is older than distributed files!
3254 Check your system clock" "$LINENO" 5
3255 fi
3256
3257 # If we didn't sleep, we still need to ensure time stamps of config.status and
3258 # generated files are strictly newer.
3259 am_sleep_pid=
3260 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3261 then :
3262
3263 else case e in #(
3264 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3265 am_sleep_pid=$!
3266 ;;
3267 esac
3268 fi
3269
3270 rm -f conftest.file
3271
3272 test "$program_prefix" != NONE &&
3273 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3274 # Use a double $ so make ignores it.
3275 test "$program_suffix" != NONE &&
3276 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3277 # Double any \ or $.
3278 # By default was 's,x,x', remove it if useless.
3279 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3280 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3281
3282
3283 # Expand $ac_aux_dir to an absolute path.
3284 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3285
3286
3287 if test x"${MISSING+set}" != xset; then
3288 MISSING="\${SHELL} '$am_aux_dir/missing'"
3289 fi
3290 # Use eval to expand $SHELL
3291 if eval "$MISSING --is-lightweight"; then
3292 am_missing_run="$MISSING "
3293 else
3294 am_missing_run=
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3296 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3297 fi
3298
3299 if test x"${install_sh+set}" != xset; then
3300 case $am_aux_dir in
3301 *\ * | *\ *)
3302 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3303 *)
3304 install_sh="\${SHELL} $am_aux_dir/install-sh"
3305 esac
3306 fi
3307
3308 # Installed binaries are usually stripped using 'strip' when the user
3309 # run "make install-strip". However 'strip' might not be the right
3310 # tool to use in cross-compilation environments, therefore Automake
3311 # will honor the 'STRIP' environment variable to overrule this program.
3312 if test "$cross_compiling" != no; then
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}strip; ac_word=$2
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 printf %s "checking for $ac_word... " >&6; }
3318 if test ${ac_cv_prog_STRIP+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else case e in #(
3322 e) if test -n "$STRIP"; then
3323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 case $as_dir in #(((
3330 '') as_dir=./ ;;
3331 */) ;;
3332 *) as_dir=$as_dir/ ;;
3333 esac
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi ;;
3345 esac
3346 fi
3347 STRIP=$ac_cv_prog_STRIP
3348 if test -n "$STRIP"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3350 printf "%s\n" "$STRIP" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_STRIP"; then
3359 ac_ct_STRIP=$STRIP
3360 # Extract the first word of "strip", so it can be a program name with args.
3361 set dummy strip; ac_word=$2
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 printf %s "checking for $ac_word... " >&6; }
3364 if test ${ac_cv_prog_ac_ct_STRIP+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) if test -n "$ac_ct_STRIP"; then
3369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 case $as_dir in #(((
3376 '') as_dir=./ ;;
3377 */) ;;
3378 *) as_dir=$as_dir/ ;;
3379 esac
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_STRIP="strip"
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 fi ;;
3391 esac
3392 fi
3393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3394 if test -n "$ac_ct_STRIP"; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3396 printf "%s\n" "$ac_ct_STRIP" >&6; }
3397 else
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 printf "%s\n" "no" >&6; }
3400 fi
3401
3402 if test "x$ac_ct_STRIP" = x; then
3403 STRIP=":"
3404 else
3405 case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411 STRIP=$ac_ct_STRIP
3412 fi
3413 else
3414 STRIP="$ac_cv_prog_STRIP"
3415 fi
3416
3417 fi
3418 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3419
3420
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3422 printf %s "checking for a race-free mkdir -p... " >&6; }
3423 if test -z "$MKDIR_P"; then
3424 if test ${ac_cv_path_mkdir+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else case e in #(
3428 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3430 do
3431 IFS=$as_save_IFS
3432 case $as_dir in #(((
3433 '') as_dir=./ ;;
3434 */) ;;
3435 *) as_dir=$as_dir/ ;;
3436 esac
3437 for ac_prog in mkdir gmkdir; do
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3440 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3441 'mkdir ('*'coreutils) '* | \
3442 *'BusyBox '* | \
3443 'mkdir (fileutils) '4.1*)
3444 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3445 break 3;;
3446 esac
3447 done
3448 done
3449 done
3450 IFS=$as_save_IFS
3451 ;;
3452 esac
3453 fi
3454
3455 test -d ./--version && rmdir ./--version
3456 if test ${ac_cv_path_mkdir+y}; then
3457 MKDIR_P="$ac_cv_path_mkdir -p"
3458 else
3459 # As a last resort, use plain mkdir -p,
3460 # in the hope it doesn't have the bugs of ancient mkdir.
3461 MKDIR_P='mkdir -p'
3462 fi
3463 fi
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3465 printf "%s\n" "$MKDIR_P" >&6; }
3466
3467 for ac_prog in gawk mawk nawk awk
3468 do
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 printf %s "checking for $ac_word... " >&6; }
3473 if test ${ac_cv_prog_AWK+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else case e in #(
3477 e) if test -n "$AWK"; then
3478 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 case $as_dir in #(((
3485 '') as_dir=./ ;;
3486 */) ;;
3487 *) as_dir=$as_dir/ ;;
3488 esac
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_AWK="$ac_prog"
3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495 done
3496 done
3497 IFS=$as_save_IFS
3498
3499 fi ;;
3500 esac
3501 fi
3502 AWK=$ac_cv_prog_AWK
3503 if test -n "$AWK"; then
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3505 printf "%s\n" "$AWK" >&6; }
3506 else
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 printf "%s\n" "no" >&6; }
3509 fi
3510
3511
3512 test -n "$AWK" && break
3513 done
3514
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3517 set x ${MAKE-make}
3518 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3519 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3520 then :
3521 printf %s "(cached) " >&6
3522 else case e in #(
3523 e) cat >conftest.make <<\_ACEOF
3524 SHELL = /bin/sh
3525 all:
3526 @echo '@@@%%%=$(MAKE)=@@@%%%'
3527 _ACEOF
3528 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3530 *@@@%%%=?*=@@@%%%*)
3531 eval ac_cv_prog_make_${ac_make}_set=yes;;
3532 *)
3533 eval ac_cv_prog_make_${ac_make}_set=no;;
3534 esac
3535 rm -f conftest.make ;;
3536 esac
3537 fi
3538 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540 printf "%s\n" "yes" >&6; }
3541 SET_MAKE=
3542 else
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 printf "%s\n" "no" >&6; }
3545 SET_MAKE="MAKE=${MAKE-make}"
3546 fi
3547
3548 rm -rf .tst 2>/dev/null
3549 mkdir .tst 2>/dev/null
3550 if test -d .tst; then
3551 am__leading_dot=.
3552 else
3553 am__leading_dot=_
3554 fi
3555 rmdir .tst 2>/dev/null
3556
3557 AM_DEFAULT_VERBOSITY=1
3558 # Check whether --enable-silent-rules was given.
3559 if test ${enable_silent_rules+y}
3560 then :
3561 enableval=$enable_silent_rules;
3562 fi
3563
3564 am_make=${MAKE-make}
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3566 printf %s "checking whether $am_make supports nested variables... " >&6; }
3567 if test ${am_cv_make_support_nested_variables+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else case e in #(
3571 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3572 BAR0=false
3573 BAR1=true
3574 V=1
3575 am__doit:
3576 @$(TRUE)
3577 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3578 am_cv_make_support_nested_variables=yes
3579 else
3580 am_cv_make_support_nested_variables=no
3581 fi ;;
3582 esac
3583 fi
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3585 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3586 AM_BACKSLASH='\'
3587
3588 am__rm_f_notfound=
3589 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3590 then :
3591
3592 else case e in #(
3593 e) am__rm_f_notfound='""' ;;
3594 esac
3595 fi
3596
3597
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3599 printf %s "checking xargs -n works... " >&6; }
3600 if test ${am_cv_xargs_n_works+y}
3601 then :
3602 printf %s "(cached) " >&6
3603 else case e in #(
3604 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3605 3"
3606 then :
3607 am_cv_xargs_n_works=yes
3608 else case e in #(
3609 e) am_cv_xargs_n_works=no ;;
3610 esac
3611 fi ;;
3612 esac
3613 fi
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3615 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3616 if test "$am_cv_xargs_n_works" = yes
3617 then :
3618 am__xargs_n='xargs -n'
3619 else case e in #(
3620 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3621 ;;
3622 esac
3623 fi
3624
3625 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3626 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3627 # is not polluted with repeated "-I."
3628 am__isrc=' -I$(srcdir)'
3629 # test to see if srcdir already configured
3630 if test -f $srcdir/config.status; then
3631 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3632 fi
3633 fi
3634
3635 # test whether we have cygpath
3636 if test -z "$CYGPATH_W"; then
3637 if (cygpath --version) >/dev/null 2>/dev/null; then
3638 CYGPATH_W='cygpath -w'
3639 else
3640 CYGPATH_W=echo
3641 fi
3642 fi
3643
3644
3645 # Define the identity of the package.
3646 PACKAGE='mdk'
3647 VERSION='1.3.1'
3648
3649
3650 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3651
3652
3653 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3654
3655 # Some tools Automake needs.
3656
3657 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3658
3659
3660 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3661
3662
3663 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3664
3665
3666 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3667
3668
3669 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3670
3671 # For better backward compatibility. To be removed once Automake 1.9.x
3672 # dies out for good. For more background, see:
3673 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3674 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3675 mkdir_p='$(MKDIR_P)'
3676
3677 # We need awk for the "check" target (and possibly the TAP driver). The
3678 # system "awk" is bad on some platforms.
3679 # Always define AMTAR for backward compatibility. Yes, it's still used
3680 # in the wild :-( We should find a proper way to deprecate it ...
3681 AMTAR='$${TAR-tar}'
3682
3683
3684 # We'll loop over all known methods to create a tar archive until one works.
3685 _am_tools='gnutar pax cpio none'
3686
3687 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3688
3689
3690
3691
3692
3693 # Variables for tags utilities; see am/tags.am
3694 if test -z "$CTAGS"; then
3695 CTAGS=ctags
3696 fi
3697
3698 if test -z "$ETAGS"; then
3699 ETAGS=etags
3700 fi
3701
3702 if test -z "$CSCOPE"; then
3703 CSCOPE=cscope
3704 fi
3705
3706
3707
3708
3709
3710
3711
3712
3713 ac_config_headers="$ac_config_headers config.h"
3714
3715
3716
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3718 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3719 # Check whether --enable-maintainer-mode was given.
3720 if test ${enable_maintainer_mode+y}
3721 then :
3722 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3723 else case e in #(
3724 e) USE_MAINTAINER_MODE=no ;;
3725 esac
3726 fi
3727
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3729 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3730 if test $USE_MAINTAINER_MODE = yes; then
3731 MAINTAINER_MODE_TRUE=
3732 MAINTAINER_MODE_FALSE='#'
3733 else
3734 MAINTAINER_MODE_TRUE='#'
3735 MAINTAINER_MODE_FALSE=
3736 fi
3737
3738 MAINT=$MAINTAINER_MODE_TRUE
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751 DEPDIR="${am__leading_dot}deps"
3752
3753 ac_config_commands="$ac_config_commands depfiles"
3754
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3756 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3757 cat > confinc.mk << 'END'
3758 am__doit:
3759 @echo this is the am__doit target >confinc.out
3760 .PHONY: am__doit
3761 END
3762 am__include="#"
3763 am__quote=
3764 # BSD make does it like this.
3765 echo '.include "confinc.mk" # ignored' > confmf.BSD
3766 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3767 echo 'include confinc.mk # ignored' > confmf.GNU
3768 _am_result=no
3769 for s in GNU BSD; do
3770 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3771 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }
3775 case $?:`cat confinc.out 2>/dev/null` in #(
3776 '0:this is the am__doit target') :
3777 case $s in #(
3778 BSD) :
3779 am__include='.include' am__quote='"' ;; #(
3780 *) :
3781 am__include='include' am__quote='' ;;
3782 esac ;; #(
3783 *) :
3784 ;;
3785 esac
3786 if test "$am__include" != "#"; then
3787 _am_result="yes ($s style)"
3788 break
3789 fi
3790 done
3791 rm -f confinc.* confmf.*
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3793 printf "%s\n" "${_am_result}" >&6; }
3794
3795 # Check whether --enable-dependency-tracking was given.
3796 if test ${enable_dependency_tracking+y}
3797 then :
3798 enableval=$enable_dependency_tracking;
3799 fi
3800
3801 if test "x$enable_dependency_tracking" != xno; then
3802 am_depcomp="$ac_aux_dir/depcomp"
3803 AMDEPBACKSLASH='\'
3804 am__nodep='_no'
3805 fi
3806 if test "x$enable_dependency_tracking" != xno; then
3807 AMDEP_TRUE=
3808 AMDEP_FALSE='#'
3809 else
3810 AMDEP_TRUE='#'
3811 AMDEP_FALSE=
3812 fi
3813
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 printf %s "checking for $ac_word... " >&6; }
3825 if test ${ac_cv_prog_CC+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e) if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 case $as_dir in #(((
3837 '') as_dir=./ ;;
3838 */) ;;
3839 *) as_dir=$as_dir/ ;;
3840 esac
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi ;;
3852 esac
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 printf "%s\n" "$CC" >&6; }
3858 else
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 printf "%s\n" "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_CC"; then
3866 ac_ct_CC=$CC
3867 # Extract the first word of "gcc", so it can be a program name with args.
3868 set dummy gcc; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_ac_ct_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$ac_ct_CC"; then
3876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 case $as_dir in #(((
3883 '') as_dir=./ ;;
3884 */) ;;
3885 *) as_dir=$as_dir/ ;;
3886 esac
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_ac_ct_CC="gcc"
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi ;;
3898 esac
3899 fi
3900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3901 if test -n "$ac_ct_CC"; then
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3903 printf "%s\n" "$ac_ct_CC" >&6; }
3904 else
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
3907 fi
3908
3909 if test "x$ac_ct_CC" = x; then
3910 CC=""
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913 yes:)
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3917 esac
3918 CC=$ac_ct_CC
3919 fi
3920 else
3921 CC="$ac_cv_prog_CC"
3922 fi
3923
3924 if test -z "$CC"; then
3925 if test -n "$ac_tool_prefix"; then
3926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3927 set dummy ${ac_tool_prefix}cc; ac_word=$2
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 printf %s "checking for $ac_word... " >&6; }
3930 if test ${ac_cv_prog_CC+y}
3931 then :
3932 printf %s "(cached) " >&6
3933 else case e in #(
3934 e) if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 case $as_dir in #(((
3942 '') as_dir=./ ;;
3943 */) ;;
3944 *) as_dir=$as_dir/ ;;
3945 esac
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_CC="${ac_tool_prefix}cc"
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi ;;
3957 esac
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 printf "%s\n" "$CC" >&6; }
3963 else
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 printf "%s\n" "no" >&6; }
3966 fi
3967
3968
3969 fi
3970 fi
3971 if test -z "$CC"; then
3972 # Extract the first word of "cc", so it can be a program name with args.
3973 set dummy cc; ac_word=$2
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 printf %s "checking for $ac_word... " >&6; }
3976 if test ${ac_cv_prog_CC+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else case e in #(
3980 e) if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 ac_prog_rejected=no
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 case $as_dir in #(((
3989 '') as_dir=./ ;;
3990 */) ;;
3991 *) as_dir=$as_dir/ ;;
3992 esac
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3995 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3996 ac_prog_rejected=yes
3997 continue
3998 fi
3999 ac_cv_prog_CC="cc"
4000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 if test $ac_prog_rejected = yes; then
4008 # We found a bogon in the path, so make sure we never use it.
4009 set dummy $ac_cv_prog_CC
4010 shift
4011 if test $# != 0; then
4012 # We chose a different compiler from the bogus one.
4013 # However, it has the same basename, so the bogon will be chosen
4014 # first if we set CC to just the basename; use the full file name.
4015 shift
4016 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4017 fi
4018 fi
4019 fi ;;
4020 esac
4021 fi
4022 CC=$ac_cv_prog_CC
4023 if test -n "$CC"; then
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4025 printf "%s\n" "$CC" >&6; }
4026 else
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 printf "%s\n" "no" >&6; }
4029 fi
4030
4031
4032 fi
4033 if test -z "$CC"; then
4034 if test -n "$ac_tool_prefix"; then
4035 for ac_prog in cl.exe
4036 do
4037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 printf %s "checking for $ac_word... " >&6; }
4041 if test ${ac_cv_prog_CC+y}
4042 then :
4043 printf %s "(cached) " >&6
4044 else case e in #(
4045 e) if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 case $as_dir in #(((
4053 '') as_dir=./ ;;
4054 */) ;;
4055 *) as_dir=$as_dir/ ;;
4056 esac
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 fi ;;
4068 esac
4069 fi
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 printf "%s\n" "$CC" >&6; }
4074 else
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 printf "%s\n" "no" >&6; }
4077 fi
4078
4079
4080 test -n "$CC" && break
4081 done
4082 fi
4083 if test -z "$CC"; then
4084 ac_ct_CC=$CC
4085 for ac_prog in cl.exe
4086 do
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 printf %s "checking for $ac_word... " >&6; }
4091 if test ${ac_cv_prog_ac_ct_CC+y}
4092 then :
4093 printf %s "(cached) " >&6
4094 else case e in #(
4095 e) if test -n "$ac_ct_CC"; then
4096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 case $as_dir in #(((
4103 '') as_dir=./ ;;
4104 */) ;;
4105 *) as_dir=$as_dir/ ;;
4106 esac
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_ac_ct_CC="$ac_prog"
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi ;;
4118 esac
4119 fi
4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 printf "%s\n" "$ac_ct_CC" >&6; }
4124 else
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4127 fi
4128
4129
4130 test -n "$ac_ct_CC" && break
4131 done
4132
4133 if test "x$ac_ct_CC" = x; then
4134 CC=""
4135 else
4136 case $cross_compiling:$ac_tool_warned in
4137 yes:)
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4140 ac_tool_warned=yes ;;
4141 esac
4142 CC=$ac_ct_CC
4143 fi
4144 fi
4145
4146 fi
4147 if test -z "$CC"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}clang; ac_word=$2
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 printf %s "checking for $ac_word... " >&6; }
4153 if test ${ac_cv_prog_CC+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else case e in #(
4157 e) if test -n "$CC"; then
4158 ac_cv_prog_CC="$CC" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 case $as_dir in #(((
4165 '') as_dir=./ ;;
4166 */) ;;
4167 *) as_dir=$as_dir/ ;;
4168 esac
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4171 ac_cv_prog_CC="${ac_tool_prefix}clang"
4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175 done
4176 done
4177 IFS=$as_save_IFS
4178
4179 fi ;;
4180 esac
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4185 printf "%s\n" "$CC" >&6; }
4186 else
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 fi
4190
4191
4192 fi
4193 if test -z "$ac_cv_prog_CC"; then
4194 ac_ct_CC=$CC
4195 # Extract the first word of "clang", so it can be a program name with args.
4196 set dummy clang; ac_word=$2
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 printf %s "checking for $ac_word... " >&6; }
4199 if test ${ac_cv_prog_ac_ct_CC+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else case e in #(
4203 e) if test -n "$ac_ct_CC"; then
4204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 case $as_dir in #(((
4211 '') as_dir=./ ;;
4212 */) ;;
4213 *) as_dir=$as_dir/ ;;
4214 esac
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CC="clang"
4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221 done
4222 done
4223 IFS=$as_save_IFS
4224
4225 fi ;;
4226 esac
4227 fi
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 printf "%s\n" "$ac_ct_CC" >&6; }
4232 else
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 printf "%s\n" "no" >&6; }
4235 fi
4236
4237 if test "x$ac_ct_CC" = x; then
4238 CC=""
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241 yes:)
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246 CC=$ac_ct_CC
4247 fi
4248 else
4249 CC="$ac_cv_prog_CC"
4250 fi
4251
4252 fi
4253
4254
4255 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4256 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See 'config.log' for more details" "$LINENO" 5; }
4259
4260 # Provide some information about the compiler.
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4262 set X $ac_compile
4263 ac_compiler=$2
4264 for ac_option in --version -v -V -qversion -version; do
4265 { { ac_try="$ac_compiler $ac_option >&5"
4266 case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 printf "%s\n" "$ac_try_echo"; } >&5
4272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4273 ac_status=$?
4274 if test -s conftest.err; then
4275 sed '10a\
4276 ... rest of stderr output deleted ...
4277 10q' conftest.err >conftest.er1
4278 cat conftest.er1 >&5
4279 fi
4280 rm -f conftest.er1 conftest.err
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4283 done
4284
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287
4288 int
4289 main (void)
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4300 # of exeext.
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 printf %s "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4304
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4307
4308 ac_rmfiles=
4309 for ac_file in $ac_files
4310 do
4311 case $ac_file in
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4314 esac
4315 done
4316 rm -f $ac_rmfiles
4317
4318 if { { ac_try="$ac_link_default"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 printf "%s\n" "$ac_try_echo"; } >&5
4325 (eval "$ac_link_default") 2>&5
4326 ac_status=$?
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329 then :
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4331 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4334 # Autoconf.
4335 for ac_file in $ac_files ''
4336 do
4337 test -f "$ac_file" || continue
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4340 ;;
4341 [ab].out )
4342 # We found the default executable, but exeext='' is most
4343 # certainly right.
4344 break;;
4345 *.* )
4346 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4347 then :; else
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 fi
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an '-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4354 # actually working.
4355 break;;
4356 * )
4357 break;;
4358 esac
4359 done
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4361
4362 else case e in #(
4363 e) ac_file='' ;;
4364 esac
4365 fi
4366 if test -z "$ac_file"
4367 then :
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 printf "%s\n" "no" >&6; }
4370 printf "%s\n" "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4374 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4375 as_fn_error 77 "C compiler cannot create executables
4376 See 'config.log' for more details" "$LINENO" 5; }
4377 else case e in #(
4378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 printf "%s\n" "yes" >&6; } ;;
4380 esac
4381 fi
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4383 printf %s "checking for C compiler default output file name... " >&6; }
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4385 printf "%s\n" "$ac_file" >&6; }
4386 ac_exeext=$ac_cv_exeext
4387
4388 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4389 ac_clean_files=$ac_clean_files_save
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4391 printf %s "checking for suffix of executables... " >&6; }
4392 if { { ac_try="$ac_link"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 printf "%s\n" "$ac_try_echo"; } >&5
4399 (eval "$ac_link") 2>&5
4400 ac_status=$?
4401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }
4403 then :
4404 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4405 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4406 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4407 # 'rm'.
4408 for ac_file in conftest.exe conftest conftest.*; do
4409 test -f "$ac_file" || continue
4410 case $ac_file in
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4412 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 break;;
4414 * ) break;;
4415 esac
4416 done
4417 else case e in #(
4418 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4419 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4421 See 'config.log' for more details" "$LINENO" 5; } ;;
4422 esac
4423 fi
4424 rm -f conftest conftest$ac_cv_exeext
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4426 printf "%s\n" "$ac_cv_exeext" >&6; }
4427
4428 rm -f conftest.$ac_ext
4429 EXEEXT=$ac_cv_exeext
4430 ac_exeext=$EXEEXT
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <stdio.h>
4434 int
4435 main (void)
4436 {
4437 FILE *f = fopen ("conftest.out", "w");
4438 if (!f)
4439 return 1;
4440 return ferror (f) || fclose (f) != 0;
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 ac_clean_files="$ac_clean_files conftest.out"
4447 # Check that the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4450 printf %s "checking whether we are cross compiling... " >&6; }
4451 if test "$cross_compiling" != yes; then
4452 { { ac_try="$ac_link"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 printf "%s\n" "$ac_try_echo"; } >&5
4459 (eval "$ac_link") 2>&5
4460 ac_status=$?
4461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }
4463 if { ac_try='./conftest$ac_cv_exeext'
4464 { { case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 printf "%s\n" "$ac_try_echo"; } >&5
4470 (eval "$ac_try") 2>&5
4471 ac_status=$?
4472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }; }; then
4474 cross_compiling=no
4475 else
4476 if test "$cross_compiling" = maybe; then
4477 cross_compiling=yes
4478 else
4479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4480 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4481 as_fn_error 77 "cannot run C compiled programs.
4482 If you meant to cross compile, use '--host'.
4483 See 'config.log' for more details" "$LINENO" 5; }
4484 fi
4485 fi
4486 fi
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4488 printf "%s\n" "$cross_compiling" >&6; }
4489
4490 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4491 conftest.o conftest.obj conftest.out
4492 ac_clean_files=$ac_clean_files_save
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4494 printf %s "checking for suffix of object files... " >&6; }
4495 if test ${ac_cv_objext+y}
4496 then :
4497 printf %s "(cached) " >&6
4498 else case e in #(
4499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501
4502 int
4503 main (void)
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.o conftest.obj
4511 if { { ac_try="$ac_compile"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 printf "%s\n" "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
4519 ac_status=$?
4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 then :
4523 for ac_file in conftest.o conftest.obj conftest.*; do
4524 test -f "$ac_file" || continue;
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4528 break;;
4529 esac
4530 done
4531 else case e in #(
4532 e) printf "%s\n" "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4536 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4537 as_fn_error $? "cannot compute suffix of object files: cannot compile
4538 See 'config.log' for more details" "$LINENO" 5; } ;;
4539 esac
4540 fi
4541 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4542 esac
4543 fi
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4545 printf "%s\n" "$ac_cv_objext" >&6; }
4546 OBJEXT=$ac_cv_objext
4547 ac_objext=$OBJEXT
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4549 printf %s "checking whether the compiler supports GNU C... " >&6; }
4550 if test ${ac_cv_c_compiler_gnu+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else case e in #(
4554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556
4557 int
4558 main (void)
4559 {
4560 #ifndef __GNUC__
4561 choke me
4562 #endif
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570 ac_compiler_gnu=yes
4571 else case e in #(
4572 e) ac_compiler_gnu=no ;;
4573 esac
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4577 ;;
4578 esac
4579 fi
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4581 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584 if test $ac_compiler_gnu = yes; then
4585 GCC=yes
4586 else
4587 GCC=
4588 fi
4589 ac_test_CFLAGS=${CFLAGS+y}
4590 ac_save_CFLAGS=$CFLAGS
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4592 printf %s "checking whether $CC accepts -g... " >&6; }
4593 if test ${ac_cv_prog_cc_g+y}
4594 then :
4595 printf %s "(cached) " >&6
4596 else case e in #(
4597 e) ac_save_c_werror_flag=$ac_c_werror_flag
4598 ac_c_werror_flag=yes
4599 ac_cv_prog_cc_g=no
4600 CFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 int
4605 main (void)
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"
4613 then :
4614 ac_cv_prog_cc_g=yes
4615 else case e in #(
4616 e) CFLAGS=""
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619
4620 int
4621 main (void)
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"
4629 then :
4630
4631 else case e in #(
4632 e) ac_c_werror_flag=$ac_save_c_werror_flag
4633 CFLAGS="-g"
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636
4637 int
4638 main (void)
4639 {
4640
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"
4646 then :
4647 ac_cv_prog_cc_g=yes
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4650 esac
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4653 esac
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4656 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4657 esac
4658 fi
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4660 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4661 if test $ac_test_CFLAGS; then
4662 CFLAGS=$ac_save_CFLAGS
4663 elif test $ac_cv_prog_cc_g = yes; then
4664 if test "$GCC" = yes; then
4665 CFLAGS="-g -O2"
4666 else
4667 CFLAGS="-g"
4668 fi
4669 else
4670 if test "$GCC" = yes; then
4671 CFLAGS="-O2"
4672 else
4673 CFLAGS=
4674 fi
4675 fi
4676 ac_prog_cc_stdc=no
4677 if test x$ac_prog_cc_stdc = xno
4678 then :
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4680 printf %s "checking for $CC option to enable C11 features... " >&6; }
4681 if test ${ac_cv_prog_cc_c11+y}
4682 then :
4683 printf %s "(cached) " >&6
4684 else case e in #(
4685 e) ac_cv_prog_cc_c11=no
4686 ac_save_CC=$CC
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 $ac_c_conftest_c11_program
4690 _ACEOF
4691 for ac_arg in '' -std=gnu11
4692 do
4693 CC="$ac_save_CC $ac_arg"
4694 if ac_fn_c_try_compile "$LINENO"
4695 then :
4696 ac_cv_prog_cc_c11=$ac_arg
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.beam
4699 test "x$ac_cv_prog_cc_c11" != "xno" && break
4700 done
4701 rm -f conftest.$ac_ext
4702 CC=$ac_save_CC ;;
4703 esac
4704 fi
4705
4706 if test "x$ac_cv_prog_cc_c11" = xno
4707 then :
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4709 printf "%s\n" "unsupported" >&6; }
4710 else case e in #(
4711 e) if test "x$ac_cv_prog_cc_c11" = x
4712 then :
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4714 printf "%s\n" "none needed" >&6; }
4715 else case e in #(
4716 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4717 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4718 CC="$CC $ac_cv_prog_cc_c11" ;;
4719 esac
4720 fi
4721 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4722 ac_prog_cc_stdc=c11 ;;
4723 esac
4724 fi
4725 fi
4726 if test x$ac_prog_cc_stdc = xno
4727 then :
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4729 printf %s "checking for $CC option to enable C99 features... " >&6; }
4730 if test ${ac_cv_prog_cc_c99+y}
4731 then :
4732 printf %s "(cached) " >&6
4733 else case e in #(
4734 e) ac_cv_prog_cc_c99=no
4735 ac_save_CC=$CC
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 $ac_c_conftest_c99_program
4739 _ACEOF
4740 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4741 do
4742 CC="$ac_save_CC $ac_arg"
4743 if ac_fn_c_try_compile "$LINENO"
4744 then :
4745 ac_cv_prog_cc_c99=$ac_arg
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.beam
4748 test "x$ac_cv_prog_cc_c99" != "xno" && break
4749 done
4750 rm -f conftest.$ac_ext
4751 CC=$ac_save_CC ;;
4752 esac
4753 fi
4754
4755 if test "x$ac_cv_prog_cc_c99" = xno
4756 then :
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4758 printf "%s\n" "unsupported" >&6; }
4759 else case e in #(
4760 e) if test "x$ac_cv_prog_cc_c99" = x
4761 then :
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4763 printf "%s\n" "none needed" >&6; }
4764 else case e in #(
4765 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4766 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4767 CC="$CC $ac_cv_prog_cc_c99" ;;
4768 esac
4769 fi
4770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4771 ac_prog_cc_stdc=c99 ;;
4772 esac
4773 fi
4774 fi
4775 if test x$ac_prog_cc_stdc = xno
4776 then :
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4778 printf %s "checking for $CC option to enable C89 features... " >&6; }
4779 if test ${ac_cv_prog_cc_c89+y}
4780 then :
4781 printf %s "(cached) " >&6
4782 else case e in #(
4783 e) ac_cv_prog_cc_c89=no
4784 ac_save_CC=$CC
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 $ac_c_conftest_c89_program
4788 _ACEOF
4789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790 do
4791 CC="$ac_save_CC $ac_arg"
4792 if ac_fn_c_try_compile "$LINENO"
4793 then :
4794 ac_cv_prog_cc_c89=$ac_arg
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.beam
4797 test "x$ac_cv_prog_cc_c89" != "xno" && break
4798 done
4799 rm -f conftest.$ac_ext
4800 CC=$ac_save_CC ;;
4801 esac
4802 fi
4803
4804 if test "x$ac_cv_prog_cc_c89" = xno
4805 then :
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4807 printf "%s\n" "unsupported" >&6; }
4808 else case e in #(
4809 e) if test "x$ac_cv_prog_cc_c89" = x
4810 then :
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4812 printf "%s\n" "none needed" >&6; }
4813 else case e in #(
4814 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4815 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4816 CC="$CC $ac_cv_prog_cc_c89" ;;
4817 esac
4818 fi
4819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4820 ac_prog_cc_stdc=c89 ;;
4821 esac
4822 fi
4823 fi
4824
4825 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4838 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4839 if test ${am_cv_prog_cc_c_o+y}
4840 then :
4841 printf %s "(cached) " >&6
4842 else case e in #(
4843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 int
4847 main (void)
4848 {
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 # Make sure it works both with $CC and with simple cc.
4855 # Following AC_PROG_CC_C_O, we do the test twice because some
4856 # compilers refuse to overwrite an existing .o file with -o,
4857 # though they will create one.
4858 am_cv_prog_cc_c_o=yes
4859 for am_i in 1 2; do
4860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } \
4865 && test -f conftest2.$ac_objext; then
4866 : OK
4867 else
4868 am_cv_prog_cc_c_o=no
4869 break
4870 fi
4871 done
4872 rm -f core conftest*
4873 unset am_i ;;
4874 esac
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4877 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4878 if test "$am_cv_prog_cc_c_o" != yes; then
4879 # Losing compiler, so override with the script.
4880 # FIXME: It is wrong to rewrite CC.
4881 # But if we don't then we get into trouble of one sort or another.
4882 # A longer-term fix would be to have automake use am__CC in this case,
4883 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4884 CC="$am_aux_dir/compile $CC"
4885 fi
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892
4893 depcc="$CC" am_compiler_list=
4894
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4896 printf %s "checking dependency style of $depcc... " >&6; }
4897 if test ${am_cv_CC_dependencies_compiler_type+y}
4898 then :
4899 printf %s "(cached) " >&6
4900 else case e in #(
4901 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4902 # We make a subdir and do the tests there. Otherwise we can end up
4903 # making bogus files that we don't know about and never remove. For
4904 # instance it was reported that on HP-UX the gcc test will end up
4905 # making a dummy file named 'D' -- because '-MD' means "put the output
4906 # in D".
4907 rm -rf conftest.dir
4908 mkdir conftest.dir
4909 # Copy depcomp to subdir because otherwise we won't find it if we're
4910 # using a relative directory.
4911 cp "$am_depcomp" conftest.dir
4912 cd conftest.dir
4913 # We will build objects and dependencies in a subdirectory because
4914 # it helps to detect inapplicable dependency modes. For instance
4915 # both Tru64's cc and ICC support -MD to output dependencies as a
4916 # side effect of compilation, but ICC will put the dependencies in
4917 # the current directory while Tru64 will put them in the object
4918 # directory.
4919 mkdir sub
4920
4921 am_cv_CC_dependencies_compiler_type=none
4922 if test "$am_compiler_list" = ""; then
4923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924 fi
4925 am__universal=false
4926 case " $depcc " in #(
4927 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4928 esac
4929
4930 for depmode in $am_compiler_list; do
4931 # Setup a source with many dependencies, because some compilers
4932 # like to wrap large dependency lists on column 80 (with \), and
4933 # we should not choose a depcomp mode which is confused by this.
4934 #
4935 # We need to recreate these files for each test, as the compiler may
4936 # overwrite some of them when testing with obscure command lines.
4937 # This happens at least with the AIX C compiler.
4938 : > sub/conftest.c
4939 for i in 1 2 3 4 5 6; do
4940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4941 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4942 # Solaris 10 /bin/sh.
4943 echo '/* dummy */' > sub/conftst$i.h
4944 done
4945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946
4947 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4948 # mode. It turns out that the SunPro C++ compiler does not properly
4949 # handle '-M -o', and we need to detect this. Also, some Intel
4950 # versions had trouble with output in subdirs.
4951 am__obj=sub/conftest.${OBJEXT-o}
4952 am__minus_obj="-o $am__obj"
4953 case $depmode in
4954 gcc)
4955 # This depmode causes a compiler race in universal mode.
4956 test "$am__universal" = false || continue
4957 ;;
4958 nosideeffect)
4959 # After this tag, mechanisms are not by side-effect, so they'll
4960 # only be used when explicitly requested.
4961 if test "x$enable_dependency_tracking" = xyes; then
4962 continue
4963 else
4964 break
4965 fi
4966 ;;
4967 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4968 # This compiler won't grok '-c -o', but also, the minuso test has
4969 # not run yet. These depmodes are late enough in the game, and
4970 # so weak that their functioning should not be impacted.
4971 am__obj=conftest.${OBJEXT-o}
4972 am__minus_obj=
4973 ;;
4974 none) break ;;
4975 esac
4976 if depmode=$depmode \
4977 source=sub/conftest.c object=$am__obj \
4978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4980 >/dev/null 2>conftest.err &&
4981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4985 # icc doesn't choke on unknown options, it will just issue warnings
4986 # or remarks (even with -Werror). So we grep stderr for any message
4987 # that says an option was ignored or not supported.
4988 # When given -MP, icc 7.0 and 7.1 complain thus:
4989 # icc: Command line warning: ignoring option '-M'; no argument required
4990 # The diagnosis changed in icc 8.0:
4991 # icc: Command line remark: option '-MP' not supported
4992 if (grep 'ignoring option' conftest.err ||
4993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4994 am_cv_CC_dependencies_compiler_type=$depmode
4995 break
4996 fi
4997 fi
4998 done
4999
5000 cd ..
5001 rm -rf conftest.dir
5002 else
5003 am_cv_CC_dependencies_compiler_type=none
5004 fi
5005 ;;
5006 esac
5007 fi
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5009 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5010 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5011
5012 if
5013 test "x$enable_dependency_tracking" != xno \
5014 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5015 am__fastdepCC_TRUE=
5016 am__fastdepCC_FALSE='#'
5017 else
5018 am__fastdepCC_TRUE='#'
5019 am__fastdepCC_FALSE=
5020 fi
5021
5022
5023
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5025 printf %s "checking for library containing strerror... " >&6; }
5026 if test ${ac_cv_search_strerror+y}
5027 then :
5028 printf %s "(cached) " >&6
5029 else case e in #(
5030 e) ac_func_search_save_LIBS=$LIBS
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033
5034 /* Override any GCC internal prototype to avoid an error.
5035 Use char because int might match the return type of a GCC
5036 builtin and then its argument prototype would still apply.
5037 The 'extern "C"' is for builds by C++ compilers;
5038 although this is not generally supported in C code supporting it here
5039 has little cost and some practical benefit (sr 110532). */
5040 #ifdef __cplusplus
5041 extern "C"
5042 #endif
5043 char strerror (void);
5044 int
5045 main (void)
5046 {
5047 return strerror ();
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 for ac_lib in '' cposix
5053 do
5054 if test -z "$ac_lib"; then
5055 ac_res="none required"
5056 else
5057 ac_res=-l$ac_lib
5058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5059 fi
5060 if ac_fn_c_try_link "$LINENO"
5061 then :
5062 ac_cv_search_strerror=$ac_res
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5065 conftest$ac_exeext
5066 if test ${ac_cv_search_strerror+y}
5067 then :
5068 break
5069 fi
5070 done
5071 if test ${ac_cv_search_strerror+y}
5072 then :
5073
5074 else case e in #(
5075 e) ac_cv_search_strerror=no ;;
5076 esac
5077 fi
5078 rm conftest.$ac_ext
5079 LIBS=$ac_func_search_save_LIBS ;;
5080 esac
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5083 printf "%s\n" "$ac_cv_search_strerror" >&6; }
5084 ac_res=$ac_cv_search_strerror
5085 if test "$ac_res" != no
5086 then :
5087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5088
5089 fi
5090
5091 ac_ext=c
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 printf %s "checking for $ac_word... " >&6; }
5101 if test ${ac_cv_prog_CC+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else case e in #(
5105 e) if test -n "$CC"; then
5106 ac_cv_prog_CC="$CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 case $as_dir in #(((
5113 '') as_dir=./ ;;
5114 */) ;;
5115 *) as_dir=$as_dir/ ;;
5116 esac
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi ;;
5128 esac
5129 fi
5130 CC=$ac_cv_prog_CC
5131 if test -n "$CC"; then
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5133 printf "%s\n" "$CC" >&6; }
5134 else
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 printf "%s\n" "no" >&6; }
5137 fi
5138
5139
5140 fi
5141 if test -z "$ac_cv_prog_CC"; then
5142 ac_ct_CC=$CC
5143 # Extract the first word of "gcc", so it can be a program name with args.
5144 set dummy gcc; ac_word=$2
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 printf %s "checking for $ac_word... " >&6; }
5147 if test ${ac_cv_prog_ac_ct_CC+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else case e in #(
5151 e) if test -n "$ac_ct_CC"; then
5152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 case $as_dir in #(((
5159 '') as_dir=./ ;;
5160 */) ;;
5161 *) as_dir=$as_dir/ ;;
5162 esac
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_CC="gcc"
5166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi ;;
5174 esac
5175 fi
5176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5177 if test -n "$ac_ct_CC"; then
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5179 printf "%s\n" "$ac_ct_CC" >&6; }
5180 else
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5183 fi
5184
5185 if test "x$ac_ct_CC" = x; then
5186 CC=""
5187 else
5188 case $cross_compiling:$ac_tool_warned in
5189 yes:)
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5192 ac_tool_warned=yes ;;
5193 esac
5194 CC=$ac_ct_CC
5195 fi
5196 else
5197 CC="$ac_cv_prog_CC"
5198 fi
5199
5200 if test -z "$CC"; then
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}cc; ac_word=$2
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 printf %s "checking for $ac_word... " >&6; }
5206 if test ${ac_cv_prog_CC+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else case e in #(
5210 e) if test -n "$CC"; then
5211 ac_cv_prog_CC="$CC" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 case $as_dir in #(((
5218 '') as_dir=./ ;;
5219 */) ;;
5220 *) as_dir=$as_dir/ ;;
5221 esac
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_CC="${ac_tool_prefix}cc"
5225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 fi ;;
5233 esac
5234 fi
5235 CC=$ac_cv_prog_CC
5236 if test -n "$CC"; then
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5238 printf "%s\n" "$CC" >&6; }
5239 else
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 printf "%s\n" "no" >&6; }
5242 fi
5243
5244
5245 fi
5246 fi
5247 if test -z "$CC"; then
5248 # Extract the first word of "cc", so it can be a program name with args.
5249 set dummy cc; ac_word=$2
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 printf %s "checking for $ac_word... " >&6; }
5252 if test ${ac_cv_prog_CC+y}
5253 then :
5254 printf %s "(cached) " >&6
5255 else case e in #(
5256 e) if test -n "$CC"; then
5257 ac_cv_prog_CC="$CC" # Let the user override the test.
5258 else
5259 ac_prog_rejected=no
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 case $as_dir in #(((
5265 '') as_dir=./ ;;
5266 */) ;;
5267 *) as_dir=$as_dir/ ;;
5268 esac
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5271 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5272 ac_prog_rejected=yes
5273 continue
5274 fi
5275 ac_cv_prog_CC="cc"
5276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 if test $ac_prog_rejected = yes; then
5284 # We found a bogon in the path, so make sure we never use it.
5285 set dummy $ac_cv_prog_CC
5286 shift
5287 if test $# != 0; then
5288 # We chose a different compiler from the bogus one.
5289 # However, it has the same basename, so the bogon will be chosen
5290 # first if we set CC to just the basename; use the full file name.
5291 shift
5292 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5293 fi
5294 fi
5295 fi ;;
5296 esac
5297 fi
5298 CC=$ac_cv_prog_CC
5299 if test -n "$CC"; then
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5301 printf "%s\n" "$CC" >&6; }
5302 else
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 printf "%s\n" "no" >&6; }
5305 fi
5306
5307
5308 fi
5309 if test -z "$CC"; then
5310 if test -n "$ac_tool_prefix"; then
5311 for ac_prog in cl.exe
5312 do
5313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 printf %s "checking for $ac_word... " >&6; }
5317 if test ${ac_cv_prog_CC+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else case e in #(
5321 e) if test -n "$CC"; then
5322 ac_cv_prog_CC="$CC" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 case $as_dir in #(((
5329 '') as_dir=./ ;;
5330 */) ;;
5331 *) as_dir=$as_dir/ ;;
5332 esac
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 fi ;;
5344 esac
5345 fi
5346 CC=$ac_cv_prog_CC
5347 if test -n "$CC"; then
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5349 printf "%s\n" "$CC" >&6; }
5350 else
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 printf "%s\n" "no" >&6; }
5353 fi
5354
5355
5356 test -n "$CC" && break
5357 done
5358 fi
5359 if test -z "$CC"; then
5360 ac_ct_CC=$CC
5361 for ac_prog in cl.exe
5362 do
5363 # Extract the first word of "$ac_prog", so it can be a program name with args.
5364 set dummy $ac_prog; ac_word=$2
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 printf %s "checking for $ac_word... " >&6; }
5367 if test ${ac_cv_prog_ac_ct_CC+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else case e in #(
5371 e) if test -n "$ac_ct_CC"; then
5372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 case $as_dir in #(((
5379 '') as_dir=./ ;;
5380 */) ;;
5381 *) as_dir=$as_dir/ ;;
5382 esac
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_CC="$ac_prog"
5386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi ;;
5394 esac
5395 fi
5396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5397 if test -n "$ac_ct_CC"; then
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5399 printf "%s\n" "$ac_ct_CC" >&6; }
5400 else
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 printf "%s\n" "no" >&6; }
5403 fi
5404
5405
5406 test -n "$ac_ct_CC" && break
5407 done
5408
5409 if test "x$ac_ct_CC" = x; then
5410 CC=""
5411 else
5412 case $cross_compiling:$ac_tool_warned in
5413 yes:)
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5417 esac
5418 CC=$ac_ct_CC
5419 fi
5420 fi
5421
5422 fi
5423 if test -z "$CC"; then
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}clang; ac_word=$2
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 printf %s "checking for $ac_word... " >&6; }
5429 if test ${ac_cv_prog_CC+y}
5430 then :
5431 printf %s "(cached) " >&6
5432 else case e in #(
5433 e) if test -n "$CC"; then
5434 ac_cv_prog_CC="$CC" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439 IFS=$as_save_IFS
5440 case $as_dir in #(((
5441 '') as_dir=./ ;;
5442 */) ;;
5443 *) as_dir=$as_dir/ ;;
5444 esac
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5447 ac_cv_prog_CC="${ac_tool_prefix}clang"
5448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451 done
5452 done
5453 IFS=$as_save_IFS
5454
5455 fi ;;
5456 esac
5457 fi
5458 CC=$ac_cv_prog_CC
5459 if test -n "$CC"; then
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5461 printf "%s\n" "$CC" >&6; }
5462 else
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 printf "%s\n" "no" >&6; }
5465 fi
5466
5467
5468 fi
5469 if test -z "$ac_cv_prog_CC"; then
5470 ac_ct_CC=$CC
5471 # Extract the first word of "clang", so it can be a program name with args.
5472 set dummy clang; ac_word=$2
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 printf %s "checking for $ac_word... " >&6; }
5475 if test ${ac_cv_prog_ac_ct_CC+y}
5476 then :
5477 printf %s "(cached) " >&6
5478 else case e in #(
5479 e) if test -n "$ac_ct_CC"; then
5480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485 IFS=$as_save_IFS
5486 case $as_dir in #(((
5487 '') as_dir=./ ;;
5488 */) ;;
5489 *) as_dir=$as_dir/ ;;
5490 esac
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_CC="clang"
5494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499 IFS=$as_save_IFS
5500
5501 fi ;;
5502 esac
5503 fi
5504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5505 if test -n "$ac_ct_CC"; then
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5507 printf "%s\n" "$ac_ct_CC" >&6; }
5508 else
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 printf "%s\n" "no" >&6; }
5511 fi
5512
5513 if test "x$ac_ct_CC" = x; then
5514 CC=""
5515 else
5516 case $cross_compiling:$ac_tool_warned in
5517 yes:)
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520 ac_tool_warned=yes ;;
5521 esac
5522 CC=$ac_ct_CC
5523 fi
5524 else
5525 CC="$ac_cv_prog_CC"
5526 fi
5527
5528 fi
5529
5530
5531 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5532 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5533 as_fn_error $? "no acceptable C compiler found in \$PATH
5534 See 'config.log' for more details" "$LINENO" 5; }
5535
5536 # Provide some information about the compiler.
5537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5538 set X $ac_compile
5539 ac_compiler=$2
5540 for ac_option in --version -v -V -qversion -version; do
5541 { { ac_try="$ac_compiler $ac_option >&5"
5542 case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545 esac
5546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5547 printf "%s\n" "$ac_try_echo"; } >&5
5548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5549 ac_status=$?
5550 if test -s conftest.err; then
5551 sed '10a\
5552 ... rest of stderr output deleted ...
5553 10q' conftest.err >conftest.er1
5554 cat conftest.er1 >&5
5555 fi
5556 rm -f conftest.er1 conftest.err
5557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }
5559 done
5560
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5562 printf %s "checking whether the compiler supports GNU C... " >&6; }
5563 if test ${ac_cv_c_compiler_gnu+y}
5564 then :
5565 printf %s "(cached) " >&6
5566 else case e in #(
5567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569
5570 int
5571 main (void)
5572 {
5573 #ifndef __GNUC__
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"
5582 then :
5583 ac_compiler_gnu=yes
5584 else case e in #(
5585 e) ac_compiler_gnu=no ;;
5586 esac
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5590 ;;
5591 esac
5592 fi
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5594 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597 if test $ac_compiler_gnu = yes; then
5598 GCC=yes
5599 else
5600 GCC=
5601 fi
5602 ac_test_CFLAGS=${CFLAGS+y}
5603 ac_save_CFLAGS=$CFLAGS
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5605 printf %s "checking whether $CC accepts -g... " >&6; }
5606 if test ${ac_cv_prog_cc_g+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else case e in #(
5610 e) ac_save_c_werror_flag=$ac_c_werror_flag
5611 ac_c_werror_flag=yes
5612 ac_cv_prog_cc_g=no
5613 CFLAGS="-g"
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616
5617 int
5618 main (void)
5619 {
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"
5626 then :
5627 ac_cv_prog_cc_g=yes
5628 else case e in #(
5629 e) CFLAGS=""
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632
5633 int
5634 main (void)
5635 {
5636
5637 ;
5638 return 0;
5639 }
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"
5642 then :
5643
5644 else case e in #(
5645 e) ac_c_werror_flag=$ac_save_c_werror_flag
5646 CFLAGS="-g"
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649
5650 int
5651 main (void)
5652 {
5653
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"
5659 then :
5660 ac_cv_prog_cc_g=yes
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5663 esac
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5666 esac
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5669 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5670 esac
5671 fi
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5673 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5674 if test $ac_test_CFLAGS; then
5675 CFLAGS=$ac_save_CFLAGS
5676 elif test $ac_cv_prog_cc_g = yes; then
5677 if test "$GCC" = yes; then
5678 CFLAGS="-g -O2"
5679 else
5680 CFLAGS="-g"
5681 fi
5682 else
5683 if test "$GCC" = yes; then
5684 CFLAGS="-O2"
5685 else
5686 CFLAGS=
5687 fi
5688 fi
5689 ac_prog_cc_stdc=no
5690 if test x$ac_prog_cc_stdc = xno
5691 then :
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5693 printf %s "checking for $CC option to enable C11 features... " >&6; }
5694 if test ${ac_cv_prog_cc_c11+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else case e in #(
5698 e) ac_cv_prog_cc_c11=no
5699 ac_save_CC=$CC
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 $ac_c_conftest_c11_program
5703 _ACEOF
5704 for ac_arg in '' -std=gnu11
5705 do
5706 CC="$ac_save_CC $ac_arg"
5707 if ac_fn_c_try_compile "$LINENO"
5708 then :
5709 ac_cv_prog_cc_c11=$ac_arg
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.beam
5712 test "x$ac_cv_prog_cc_c11" != "xno" && break
5713 done
5714 rm -f conftest.$ac_ext
5715 CC=$ac_save_CC ;;
5716 esac
5717 fi
5718
5719 if test "x$ac_cv_prog_cc_c11" = xno
5720 then :
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5722 printf "%s\n" "unsupported" >&6; }
5723 else case e in #(
5724 e) if test "x$ac_cv_prog_cc_c11" = x
5725 then :
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5727 printf "%s\n" "none needed" >&6; }
5728 else case e in #(
5729 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5730 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5731 CC="$CC $ac_cv_prog_cc_c11" ;;
5732 esac
5733 fi
5734 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5735 ac_prog_cc_stdc=c11 ;;
5736 esac
5737 fi
5738 fi
5739 if test x$ac_prog_cc_stdc = xno
5740 then :
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5742 printf %s "checking for $CC option to enable C99 features... " >&6; }
5743 if test ${ac_cv_prog_cc_c99+y}
5744 then :
5745 printf %s "(cached) " >&6
5746 else case e in #(
5747 e) ac_cv_prog_cc_c99=no
5748 ac_save_CC=$CC
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 $ac_c_conftest_c99_program
5752 _ACEOF
5753 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5754 do
5755 CC="$ac_save_CC $ac_arg"
5756 if ac_fn_c_try_compile "$LINENO"
5757 then :
5758 ac_cv_prog_cc_c99=$ac_arg
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.beam
5761 test "x$ac_cv_prog_cc_c99" != "xno" && break
5762 done
5763 rm -f conftest.$ac_ext
5764 CC=$ac_save_CC ;;
5765 esac
5766 fi
5767
5768 if test "x$ac_cv_prog_cc_c99" = xno
5769 then :
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5771 printf "%s\n" "unsupported" >&6; }
5772 else case e in #(
5773 e) if test "x$ac_cv_prog_cc_c99" = x
5774 then :
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5776 printf "%s\n" "none needed" >&6; }
5777 else case e in #(
5778 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5779 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5780 CC="$CC $ac_cv_prog_cc_c99" ;;
5781 esac
5782 fi
5783 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5784 ac_prog_cc_stdc=c99 ;;
5785 esac
5786 fi
5787 fi
5788 if test x$ac_prog_cc_stdc = xno
5789 then :
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5791 printf %s "checking for $CC option to enable C89 features... " >&6; }
5792 if test ${ac_cv_prog_cc_c89+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else case e in #(
5796 e) ac_cv_prog_cc_c89=no
5797 ac_save_CC=$CC
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 $ac_c_conftest_c89_program
5801 _ACEOF
5802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5803 do
5804 CC="$ac_save_CC $ac_arg"
5805 if ac_fn_c_try_compile "$LINENO"
5806 then :
5807 ac_cv_prog_cc_c89=$ac_arg
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.beam
5810 test "x$ac_cv_prog_cc_c89" != "xno" && break
5811 done
5812 rm -f conftest.$ac_ext
5813 CC=$ac_save_CC ;;
5814 esac
5815 fi
5816
5817 if test "x$ac_cv_prog_cc_c89" = xno
5818 then :
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5820 printf "%s\n" "unsupported" >&6; }
5821 else case e in #(
5822 e) if test "x$ac_cv_prog_cc_c89" = x
5823 then :
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5825 printf "%s\n" "none needed" >&6; }
5826 else case e in #(
5827 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5828 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5829 CC="$CC $ac_cv_prog_cc_c89" ;;
5830 esac
5831 fi
5832 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5833 ac_prog_cc_stdc=c89 ;;
5834 esac
5835 fi
5836 fi
5837
5838 ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844
5845 ac_ext=c
5846 ac_cpp='$CPP $CPPFLAGS'
5847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5851 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5852 if test ${am_cv_prog_cc_c_o+y}
5853 then :
5854 printf %s "(cached) " >&6
5855 else case e in #(
5856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858
5859 int
5860 main (void)
5861 {
5862
5863 ;
5864 return 0;
5865 }
5866 _ACEOF
5867 # Make sure it works both with $CC and with simple cc.
5868 # Following AC_PROG_CC_C_O, we do the test twice because some
5869 # compilers refuse to overwrite an existing .o file with -o,
5870 # though they will create one.
5871 am_cv_prog_cc_c_o=yes
5872 for am_i in 1 2; do
5873 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5874 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } \
5878 && test -f conftest2.$ac_objext; then
5879 : OK
5880 else
5881 am_cv_prog_cc_c_o=no
5882 break
5883 fi
5884 done
5885 rm -f core conftest*
5886 unset am_i ;;
5887 esac
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5890 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5891 if test "$am_cv_prog_cc_c_o" != yes; then
5892 # Losing compiler, so override with the script.
5893 # FIXME: It is wrong to rewrite CC.
5894 # But if we don't then we get into trouble of one sort or another.
5895 # A longer-term fix would be to have automake use am__CC in this case,
5896 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5897 CC="$am_aux_dir/compile $CC"
5898 fi
5899 ac_ext=c
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904
5905
5906 depcc="$CC" am_compiler_list=
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5909 printf %s "checking dependency style of $depcc... " >&6; }
5910 if test ${am_cv_CC_dependencies_compiler_type+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else case e in #(
5914 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5915 # We make a subdir and do the tests there. Otherwise we can end up
5916 # making bogus files that we don't know about and never remove. For
5917 # instance it was reported that on HP-UX the gcc test will end up
5918 # making a dummy file named 'D' -- because '-MD' means "put the output
5919 # in D".
5920 rm -rf conftest.dir
5921 mkdir conftest.dir
5922 # Copy depcomp to subdir because otherwise we won't find it if we're
5923 # using a relative directory.
5924 cp "$am_depcomp" conftest.dir
5925 cd conftest.dir
5926 # We will build objects and dependencies in a subdirectory because
5927 # it helps to detect inapplicable dependency modes. For instance
5928 # both Tru64's cc and ICC support -MD to output dependencies as a
5929 # side effect of compilation, but ICC will put the dependencies in
5930 # the current directory while Tru64 will put them in the object
5931 # directory.
5932 mkdir sub
5933
5934 am_cv_CC_dependencies_compiler_type=none
5935 if test "$am_compiler_list" = ""; then
5936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5937 fi
5938 am__universal=false
5939 case " $depcc " in #(
5940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5941 esac
5942
5943 for depmode in $am_compiler_list; do
5944 # Setup a source with many dependencies, because some compilers
5945 # like to wrap large dependency lists on column 80 (with \), and
5946 # we should not choose a depcomp mode which is confused by this.
5947 #
5948 # We need to recreate these files for each test, as the compiler may
5949 # overwrite some of them when testing with obscure command lines.
5950 # This happens at least with the AIX C compiler.
5951 : > sub/conftest.c
5952 for i in 1 2 3 4 5 6; do
5953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5954 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5955 # Solaris 10 /bin/sh.
5956 echo '/* dummy */' > sub/conftst$i.h
5957 done
5958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5959
5960 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5961 # mode. It turns out that the SunPro C++ compiler does not properly
5962 # handle '-M -o', and we need to detect this. Also, some Intel
5963 # versions had trouble with output in subdirs.
5964 am__obj=sub/conftest.${OBJEXT-o}
5965 am__minus_obj="-o $am__obj"
5966 case $depmode in
5967 gcc)
5968 # This depmode causes a compiler race in universal mode.
5969 test "$am__universal" = false || continue
5970 ;;
5971 nosideeffect)
5972 # After this tag, mechanisms are not by side-effect, so they'll
5973 # only be used when explicitly requested.
5974 if test "x$enable_dependency_tracking" = xyes; then
5975 continue
5976 else
5977 break
5978 fi
5979 ;;
5980 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5981 # This compiler won't grok '-c -o', but also, the minuso test has
5982 # not run yet. These depmodes are late enough in the game, and
5983 # so weak that their functioning should not be impacted.
5984 am__obj=conftest.${OBJEXT-o}
5985 am__minus_obj=
5986 ;;
5987 none) break ;;
5988 esac
5989 if depmode=$depmode \
5990 source=sub/conftest.c object=$am__obj \
5991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5993 >/dev/null 2>conftest.err &&
5994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5998 # icc doesn't choke on unknown options, it will just issue warnings
5999 # or remarks (even with -Werror). So we grep stderr for any message
6000 # that says an option was ignored or not supported.
6001 # When given -MP, icc 7.0 and 7.1 complain thus:
6002 # icc: Command line warning: ignoring option '-M'; no argument required
6003 # The diagnosis changed in icc 8.0:
6004 # icc: Command line remark: option '-MP' not supported
6005 if (grep 'ignoring option' conftest.err ||
6006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6007 am_cv_CC_dependencies_compiler_type=$depmode
6008 break
6009 fi
6010 fi
6011 done
6012
6013 cd ..
6014 rm -rf conftest.dir
6015 else
6016 am_cv_CC_dependencies_compiler_type=none
6017 fi
6018 ;;
6019 esac
6020 fi
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6022 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6024
6025 if
6026 test "x$enable_dependency_tracking" != xno \
6027 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6028 am__fastdepCC_TRUE=
6029 am__fastdepCC_FALSE='#'
6030 else
6031 am__fastdepCC_TRUE='#'
6032 am__fastdepCC_FALSE=
6033 fi
6034
6035
6036
6037
6038 for ac_prog in flex lex
6039 do
6040 # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 printf %s "checking for $ac_word... " >&6; }
6044 if test ${ac_cv_prog_LEX+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else case e in #(
6048 e) if test -n "$LEX"; then
6049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 case $as_dir in #(((
6056 '') as_dir=./ ;;
6057 */) ;;
6058 *) as_dir=$as_dir/ ;;
6059 esac
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_LEX="$ac_prog"
6063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi ;;
6071 esac
6072 fi
6073 LEX=$ac_cv_prog_LEX
6074 if test -n "$LEX"; then
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6076 printf "%s\n" "$LEX" >&6; }
6077 else
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 printf "%s\n" "no" >&6; }
6080 fi
6081
6082
6083 test -n "$LEX" && break
6084 done
6085 test -n "$LEX" || LEX=":"
6086
6087 if test "x$LEX" != "x:"; then
6088 cat >conftest.l <<_ACEOF
6089 %{
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 int yywrap(void);
6094 %}
6095 %%
6096 a { ECHO; }
6097 b { REJECT; }
6098 c { yymore (); }
6099 d { yyless (1); }
6100 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6101 #ifdef __cplusplus
6102 yyless ((yyinput () != 0));
6103 #else
6104 yyless ((input () != 0));
6105 #endif
6106 }
6107 f { unput (yytext[0]); }
6108 . { BEGIN INITIAL; }
6109 %%
6110 #ifdef YYTEXT_POINTER
6111 extern char *yytext;
6112 #endif
6113 int
6114 yywrap (void)
6115 {
6116 return 1;
6117 }
6118 int
6119 main (void)
6120 {
6121 return ! yylex ();
6122 }
6123 _ACEOF
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
6125 printf %s "checking for lex output file root... " >&6; }
6126 if test ${ac_cv_prog_lex_root+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else case e in #(
6130 e)
6131 ac_cv_prog_lex_root=unknown
6132 { { ac_try="$LEX conftest.l"
6133 case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136 esac
6137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6138 printf "%s\n" "$ac_try_echo"; } >&5
6139 (eval "$LEX conftest.l") 2>&5
6140 ac_status=$?
6141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; } &&
6143 if test -f lex.yy.c; then
6144 ac_cv_prog_lex_root=lex.yy
6145 elif test -f lexyy.c; then
6146 ac_cv_prog_lex_root=lexyy
6147 fi ;;
6148 esac
6149 fi
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6151 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
6152 if test "$ac_cv_prog_lex_root" = unknown
6153 then :
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
6155 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
6156 LEX=: LEXLIB=
6157 fi
6158 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6159
6160 if test ${LEXLIB+y}
6161 then :
6162
6163 else case e in #(
6164 e)
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
6166 printf %s "checking for lex library... " >&6; }
6167 if test ${ac_cv_lib_lex+y}
6168 then :
6169 printf %s "(cached) " >&6
6170 else case e in #(
6171 e)
6172 ac_save_LIBS="$LIBS"
6173 ac_found=false
6174 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
6175 case $ac_cv_lib_lex in #(
6176 'none needed') :
6177 ;; #(
6178 'not found') :
6179 break ;; #(
6180 *) :
6181 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
6182 *) :
6183 ;;
6184 esac
6185
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 `cat $LEX_OUTPUT_ROOT.c`
6189 _ACEOF
6190 if ac_fn_c_try_link "$LINENO"
6191 then :
6192 ac_found=:
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6195 conftest$ac_exeext conftest.$ac_ext
6196 if $ac_found; then
6197 break
6198 fi
6199 done
6200 LIBS="$ac_save_LIBS"
6201 ;;
6202 esac
6203 fi
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6205 printf "%s\n" "$ac_cv_lib_lex" >&6; }
6206 if test "$ac_cv_lib_lex" = 'not found'
6207 then :
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
6209 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
6210 LEX=: LEXLIB=
6211 elif test "$ac_cv_lib_lex" = 'none needed'
6212 then :
6213 LEXLIB=''
6214 else case e in #(
6215 e) LEXLIB=$ac_cv_lib_lex ;;
6216 esac
6217 fi
6218 ac_save_LIBS="$LIBS"
6219 LIBS=
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
6221 printf %s "checking for library containing yywrap... " >&6; }
6222 if test ${ac_cv_search_yywrap+y}
6223 then :
6224 printf %s "(cached) " >&6
6225 else case e in #(
6226 e) ac_func_search_save_LIBS=$LIBS
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229
6230 /* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply.
6233 The 'extern "C"' is for builds by C++ compilers;
6234 although this is not generally supported in C code supporting it here
6235 has little cost and some practical benefit (sr 110532). */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 char yywrap (void);
6240 int
6241 main (void)
6242 {
6243 return yywrap ();
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 for ac_lib in '' fl l
6249 do
6250 if test -z "$ac_lib"; then
6251 ac_res="none required"
6252 else
6253 ac_res=-l$ac_lib
6254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6255 fi
6256 if ac_fn_c_try_link "$LINENO"
6257 then :
6258 ac_cv_search_yywrap=$ac_res
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6261 conftest$ac_exeext
6262 if test ${ac_cv_search_yywrap+y}
6263 then :
6264 break
6265 fi
6266 done
6267 if test ${ac_cv_search_yywrap+y}
6268 then :
6269
6270 else case e in #(
6271 e) ac_cv_search_yywrap=no ;;
6272 esac
6273 fi
6274 rm conftest.$ac_ext
6275 LIBS=$ac_func_search_save_LIBS ;;
6276 esac
6277 fi
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
6279 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
6280 ac_res=$ac_cv_search_yywrap
6281 if test "$ac_res" != no
6282 then :
6283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6284 LEXLIB="$LIBS"
6285 fi
6286
6287 LIBS="$ac_save_LIBS" ;;
6288 esac
6289 fi
6290
6291
6292 if test "$LEX" != :
6293 then :
6294
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6296 printf %s "checking whether yytext is a pointer... " >&6; }
6297 if test ${ac_cv_prog_lex_yytext_pointer+y}
6298 then :
6299 printf %s "(cached) " >&6
6300 else case e in #(
6301 e) # POSIX says lex can declare yytext either as a pointer or an array; the
6302 # default is implementation-dependent. Figure out which it is, since
6303 # not all implementations provide the %pointer and %array declarations.
6304 ac_cv_prog_lex_yytext_pointer=no
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307
6308 #define YYTEXT_POINTER 1
6309 `cat $LEX_OUTPUT_ROOT.c`
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"
6312 then :
6313 ac_cv_prog_lex_yytext_pointer=yes
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6316 ;;
6317 esac
6318 fi
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6320 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
6321 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6322
6323 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
6324
6325 fi
6326
6327 fi
6328 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6329
6330 fi
6331 if test "$LEX" = :; then
6332 LEX=${am_missing_run}flex
6333 fi
6334 if test -n "$ac_tool_prefix"; then
6335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 printf %s "checking for $ac_word... " >&6; }
6339 if test ${ac_cv_prog_RANLIB+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else case e in #(
6343 e) if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 case $as_dir in #(((
6351 '') as_dir=./ ;;
6352 */) ;;
6353 *) as_dir=$as_dir/ ;;
6354 esac
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi ;;
6366 esac
6367 fi
6368 RANLIB=$ac_cv_prog_RANLIB
6369 if test -n "$RANLIB"; then
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6371 printf "%s\n" "$RANLIB" >&6; }
6372 else
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 printf "%s\n" "no" >&6; }
6375 fi
6376
6377
6378 fi
6379 if test -z "$ac_cv_prog_RANLIB"; then
6380 ac_ct_RANLIB=$RANLIB
6381 # Extract the first word of "ranlib", so it can be a program name with args.
6382 set dummy ranlib; ac_word=$2
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 printf %s "checking for $ac_word... " >&6; }
6385 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6386 then :
6387 printf %s "(cached) " >&6
6388 else case e in #(
6389 e) if test -n "$ac_ct_RANLIB"; then
6390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395 IFS=$as_save_IFS
6396 case $as_dir in #(((
6397 '') as_dir=./ ;;
6398 */) ;;
6399 *) as_dir=$as_dir/ ;;
6400 esac
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_ac_ct_RANLIB="ranlib"
6404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi ;;
6412 esac
6413 fi
6414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6415 if test -n "$ac_ct_RANLIB"; then
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6417 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6418 else
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 printf "%s\n" "no" >&6; }
6421 fi
6422
6423 if test "x$ac_ct_RANLIB" = x; then
6424 RANLIB=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 RANLIB=$ac_ct_RANLIB
6433 fi
6434 else
6435 RANLIB="$ac_cv_prog_RANLIB"
6436 fi
6437
6438
6439 AM_CFLAGS="$AM_CFLAGS -Wall -fno-strict-aliasing"
6440
6441 # Check whether --with-werror was given.
6442 if test ${with_werror+y}
6443 then :
6444 withval=$with_werror; case "${withval}" in
6445 yes) werr=true ;;
6446 no) werr=false ;;
6447 *) as_fn_error $? "bad value ${withval} for --with-werror" "$LINENO" 5 ;;
6448 esac
6449 else case e in #(
6450 e) werr=false ;;
6451 esac
6452 fi
6453
6454
6455 if test x$werr = xtrue; then
6456 AM_CFLAGS="$AM_CFLAGS -Werror"
6457 fi
6458
6459
6460
6461 MKINSTALLDIRS=
6462 if test -n "$ac_aux_dir"; then
6463 case "$ac_aux_dir" in
6464 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6465 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6466 esac
6467 fi
6468 if test -z "$MKINSTALLDIRS"; then
6469 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6470 fi
6471
6472
6473
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6475 printf %s "checking whether NLS is requested... " >&6; }
6476 # Check whether --enable-nls was given.
6477 if test ${enable_nls+y}
6478 then :
6479 enableval=$enable_nls; USE_NLS=$enableval
6480 else case e in #(
6481 e) USE_NLS=yes ;;
6482 esac
6483 fi
6484
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6486 printf "%s\n" "$USE_NLS" >&6; }
6487
6488
6489
6490
6491
6492
6493 # Prepare PATH_SEPARATOR.
6494 # The user is always right.
6495 if test "${PATH_SEPARATOR+set}" != set; then
6496 echo "#! /bin/sh" >conf$$.sh
6497 echo "exit 0" >>conf$$.sh
6498 chmod +x conf$$.sh
6499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6500 PATH_SEPARATOR=';'
6501 else
6502 PATH_SEPARATOR=:
6503 fi
6504 rm -f conf$$.sh
6505 fi
6506
6507 # Find out how to test for executable files. Don't use a zero-byte file,
6508 # as systems may use methods other than mode bits to determine executability.
6509 cat >conf$$.file <<_ASEOF
6510 #! /bin/sh
6511 exit 0
6512 _ASEOF
6513 chmod +x conf$$.file
6514 if test -x conf$$.file >/dev/null 2>&1; then
6515 ac_executable_p="test -x"
6516 else
6517 ac_executable_p="test -f"
6518 fi
6519 rm -f conf$$.file
6520
6521 # Extract the first word of "msgfmt", so it can be a program name with args.
6522 set dummy msgfmt; ac_word=$2
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 printf %s "checking for $ac_word... " >&6; }
6525 if test ${ac_cv_path_MSGFMT+y}
6526 then :
6527 printf %s "(cached) " >&6
6528 else case e in #(
6529 e) case "$MSGFMT" in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6535 for ac_dir in $PATH; do
6536 IFS="$ac_save_IFS"
6537 test -z "$ac_dir" && ac_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6540 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6541 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6542 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6543 break 2
6544 fi
6545 fi
6546 done
6547 done
6548 IFS="$ac_save_IFS"
6549 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6550 ;;
6551 esac ;;
6552 esac
6553 fi
6554 MSGFMT="$ac_cv_path_MSGFMT"
6555 if test "$MSGFMT" != ":"; then
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6557 printf "%s\n" "$MSGFMT" >&6; }
6558 else
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 printf "%s\n" "no" >&6; }
6561 fi
6562
6563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6564 set dummy gmsgfmt; ac_word=$2
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 printf %s "checking for $ac_word... " >&6; }
6567 if test ${ac_cv_path_GMSGFMT+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) case $GMSGFMT in
6572 [\\/]* | ?:[\\/]*)
6573 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6574 ;;
6575 *)
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 case $as_dir in #(((
6581 '') as_dir=./ ;;
6582 */) ;;
6583 *) as_dir=$as_dir/ ;;
6584 esac
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6587 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
6588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6596 ;;
6597 esac ;;
6598 esac
6599 fi
6600 GMSGFMT=$ac_cv_path_GMSGFMT
6601 if test -n "$GMSGFMT"; then
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6603 printf "%s\n" "$GMSGFMT" >&6; }
6604 else
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 printf "%s\n" "no" >&6; }
6607 fi
6608
6609
6610
6611
6612 # Prepare PATH_SEPARATOR.
6613 # The user is always right.
6614 if test "${PATH_SEPARATOR+set}" != set; then
6615 echo "#! /bin/sh" >conf$$.sh
6616 echo "exit 0" >>conf$$.sh
6617 chmod +x conf$$.sh
6618 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6619 PATH_SEPARATOR=';'
6620 else
6621 PATH_SEPARATOR=:
6622 fi
6623 rm -f conf$$.sh
6624 fi
6625
6626 # Find out how to test for executable files. Don't use a zero-byte file,
6627 # as systems may use methods other than mode bits to determine executability.
6628 cat >conf$$.file <<_ASEOF
6629 #! /bin/sh
6630 exit 0
6631 _ASEOF
6632 chmod +x conf$$.file
6633 if test -x conf$$.file >/dev/null 2>&1; then
6634 ac_executable_p="test -x"
6635 else
6636 ac_executable_p="test -f"
6637 fi
6638 rm -f conf$$.file
6639
6640 # Extract the first word of "xgettext", so it can be a program name with args.
6641 set dummy xgettext; ac_word=$2
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 printf %s "checking for $ac_word... " >&6; }
6644 if test ${ac_cv_path_XGETTEXT+y}
6645 then :
6646 printf %s "(cached) " >&6
6647 else case e in #(
6648 e) case "$XGETTEXT" in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6654 for ac_dir in $PATH; do
6655 IFS="$ac_save_IFS"
6656 test -z "$ac_dir" && ac_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6659 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6660 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6661 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6662 break 2
6663 fi
6664 fi
6665 done
6666 done
6667 IFS="$ac_save_IFS"
6668 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6669 ;;
6670 esac ;;
6671 esac
6672 fi
6673 XGETTEXT="$ac_cv_path_XGETTEXT"
6674 if test "$XGETTEXT" != ":"; then
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6676 printf "%s\n" "$XGETTEXT" >&6; }
6677 else
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 printf "%s\n" "no" >&6; }
6680 fi
6681
6682 rm -f messages.po
6683
6684
6685 # Prepare PATH_SEPARATOR.
6686 # The user is always right.
6687 if test "${PATH_SEPARATOR+set}" != set; then
6688 echo "#! /bin/sh" >conf$$.sh
6689 echo "exit 0" >>conf$$.sh
6690 chmod +x conf$$.sh
6691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6692 PATH_SEPARATOR=';'
6693 else
6694 PATH_SEPARATOR=:
6695 fi
6696 rm -f conf$$.sh
6697 fi
6698
6699 # Find out how to test for executable files. Don't use a zero-byte file,
6700 # as systems may use methods other than mode bits to determine executability.
6701 cat >conf$$.file <<_ASEOF
6702 #! /bin/sh
6703 exit 0
6704 _ASEOF
6705 chmod +x conf$$.file
6706 if test -x conf$$.file >/dev/null 2>&1; then
6707 ac_executable_p="test -x"
6708 else
6709 ac_executable_p="test -f"
6710 fi
6711 rm -f conf$$.file
6712
6713 # Extract the first word of "msgmerge", so it can be a program name with args.
6714 set dummy msgmerge; ac_word=$2
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 printf %s "checking for $ac_word... " >&6; }
6717 if test ${ac_cv_path_MSGMERGE+y}
6718 then :
6719 printf %s "(cached) " >&6
6720 else case e in #(
6721 e) case "$MSGMERGE" in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6724 ;;
6725 *)
6726 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6727 for ac_dir in $PATH; do
6728 IFS="$ac_save_IFS"
6729 test -z "$ac_dir" && ac_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6732 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6733 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6734 break 2
6735 fi
6736 fi
6737 done
6738 done
6739 IFS="$ac_save_IFS"
6740 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6741 ;;
6742 esac ;;
6743 esac
6744 fi
6745 MSGMERGE="$ac_cv_path_MSGMERGE"
6746 if test "$MSGMERGE" != ":"; then
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6748 printf "%s\n" "$MSGMERGE" >&6; }
6749 else
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 printf "%s\n" "no" >&6; }
6752 fi
6753
6754
6755 if test "$GMSGFMT" != ":"; then
6756 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6757 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6758 : ;
6759 else
6760 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6762 printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6763 GMSGFMT=":"
6764 fi
6765 fi
6766
6767 if test "$XGETTEXT" != ":"; then
6768 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6769 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6770 : ;
6771 else
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6773 printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
6774 XGETTEXT=":"
6775 fi
6776 rm -f messages.po
6777 fi
6778
6779 ac_config_commands="$ac_config_commands default-1"
6780
6781
6782
6783
6784 # Make sure we can run config.sub.
6785 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6786 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6787
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6789 printf %s "checking build system type... " >&6; }
6790 if test ${ac_cv_build+y}
6791 then :
6792 printf %s "(cached) " >&6
6793 else case e in #(
6794 e) ac_build_alias=$build_alias
6795 test "x$ac_build_alias" = x &&
6796 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6797 test "x$ac_build_alias" = x &&
6798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6799 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6801 ;;
6802 esac
6803 fi
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6805 printf "%s\n" "$ac_cv_build" >&6; }
6806 case $ac_cv_build in
6807 *-*-*) ;;
6808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6809 esac
6810 build=$ac_cv_build
6811 ac_save_IFS=$IFS; IFS='-'
6812 set x $ac_cv_build
6813 shift
6814 build_cpu=$1
6815 build_vendor=$2
6816 shift; shift
6817 # Remember, the first character of IFS is used to create $*,
6818 # except with old shells:
6819 build_os=$*
6820 IFS=$ac_save_IFS
6821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6822
6823
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6825 printf %s "checking host system type... " >&6; }
6826 if test ${ac_cv_host+y}
6827 then :
6828 printf %s "(cached) " >&6
6829 else case e in #(
6830 e) if test "x$host_alias" = x; then
6831 ac_cv_host=$ac_cv_build
6832 else
6833 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6834 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6835 fi
6836 ;;
6837 esac
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6840 printf "%s\n" "$ac_cv_host" >&6; }
6841 case $ac_cv_host in
6842 *-*-*) ;;
6843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6844 esac
6845 host=$ac_cv_host
6846 ac_save_IFS=$IFS; IFS='-'
6847 set x $ac_cv_host
6848 shift
6849 host_cpu=$1
6850 host_vendor=$2
6851 shift; shift
6852 # Remember, the first character of IFS is used to create $*,
6853 # except with old shells:
6854 host_os=$*
6855 IFS=$ac_save_IFS
6856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6857
6858
6859
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6861 printf %s "checking for strerror in -lcposix... " >&6; }
6862 if test ${ac_cv_lib_cposix_strerror+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else case e in #(
6866 e) ac_check_lib_save_LIBS=$LIBS
6867 LIBS="-lcposix $LIBS"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870
6871 /* Override any GCC internal prototype to avoid an error.
6872 Use char because int might match the return type of a GCC
6873 builtin and then its argument prototype would still apply.
6874 The 'extern "C"' is for builds by C++ compilers;
6875 although this is not generally supported in C code supporting it here
6876 has little cost and some practical benefit (sr 110532). */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 char strerror (void);
6881 int
6882 main (void)
6883 {
6884 return strerror ();
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"
6890 then :
6891 ac_cv_lib_cposix_strerror=yes
6892 else case e in #(
6893 e) ac_cv_lib_cposix_strerror=no ;;
6894 esac
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6897 conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS ;;
6899 esac
6900 fi
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6902 printf "%s\n" "$ac_cv_lib_cposix_strerror" >&6; }
6903 if test "x$ac_cv_lib_cposix_strerror" = xyes
6904 then :
6905 LIBS="$LIBS -lcposix"
6906 fi
6907
6908
6909
6910 ac_header= ac_cache=
6911 for ac_item in $ac_header_c_list
6912 do
6913 if test $ac_cache; then
6914 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6915 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6916 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6917 fi
6918 ac_header= ac_cache=
6919 elif test $ac_header; then
6920 ac_cache=$ac_item
6921 else
6922 ac_header=$ac_item
6923 fi
6924 done
6925
6926
6927
6928
6929
6930
6931
6932
6933 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6934 then :
6935
6936 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6937
6938 fi
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6940 printf %s "checking for grep that handles long lines and -e... " >&6; }
6941 if test ${ac_cv_path_GREP+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else case e in #(
6945 e) if test -z "$GREP"; then
6946 ac_path_GREP_found=false
6947 # Loop through the user's path and test for each of PROGNAME-LIST
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6950 do
6951 IFS=$as_save_IFS
6952 case $as_dir in #(((
6953 '') as_dir=./ ;;
6954 */) ;;
6955 *) as_dir=$as_dir/ ;;
6956 esac
6957 for ac_prog in grep ggrep
6958 do
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6961 as_fn_executable_p "$ac_path_GREP" || continue
6962 # Check for GNU ac_path_GREP and select it if it is found.
6963 # Check for GNU $ac_path_GREP
6964 case `"$ac_path_GREP" --version 2>&1` in #(
6965 *GNU*)
6966 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6967 #(
6968 *)
6969 ac_count=0
6970 printf %s 0123456789 >"conftest.in"
6971 while :
6972 do
6973 cat "conftest.in" "conftest.in" >"conftest.tmp"
6974 mv "conftest.tmp" "conftest.in"
6975 cp "conftest.in" "conftest.nl"
6976 printf "%s\n" 'GREP' >> "conftest.nl"
6977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6979 as_fn_arith $ac_count + 1 && ac_count=$as_val
6980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6981 # Best one so far, save it but keep looking for a better one
6982 ac_cv_path_GREP="$ac_path_GREP"
6983 ac_path_GREP_max=$ac_count
6984 fi
6985 # 10*(2^10) chars as input seems more than enough
6986 test $ac_count -gt 10 && break
6987 done
6988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6989 esac
6990
6991 $ac_path_GREP_found && break 3
6992 done
6993 done
6994 done
6995 IFS=$as_save_IFS
6996 if test -z "$ac_cv_path_GREP"; then
6997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6998 fi
6999 else
7000 ac_cv_path_GREP=$GREP
7001 fi
7002 ;;
7003 esac
7004 fi
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7006 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7007 GREP="$ac_cv_path_GREP"
7008
7009
7010 # Autoupdate added the next two lines to ensure that your configure
7011 # script's behavior did not change. They are probably safe to remove.
7012
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7014 printf %s "checking for egrep... " >&6; }
7015 if test ${ac_cv_path_EGREP+y}
7016 then :
7017 printf %s "(cached) " >&6
7018 else case e in #(
7019 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7020 then ac_cv_path_EGREP="$GREP -E"
7021 else
7022 if test -z "$EGREP"; then
7023 ac_path_EGREP_found=false
7024 # Loop through the user's path and test for each of PROGNAME-LIST
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7027 do
7028 IFS=$as_save_IFS
7029 case $as_dir in #(((
7030 '') as_dir=./ ;;
7031 */) ;;
7032 *) as_dir=$as_dir/ ;;
7033 esac
7034 for ac_prog in egrep
7035 do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7038 as_fn_executable_p "$ac_path_EGREP" || continue
7039 # Check for GNU ac_path_EGREP and select it if it is found.
7040 # Check for GNU $ac_path_EGREP
7041 case `"$ac_path_EGREP" --version 2>&1` in #(
7042 *GNU*)
7043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7044 #(
7045 *)
7046 ac_count=0
7047 printf %s 0123456789 >"conftest.in"
7048 while :
7049 do
7050 cat "conftest.in" "conftest.in" >"conftest.tmp"
7051 mv "conftest.tmp" "conftest.in"
7052 cp "conftest.in" "conftest.nl"
7053 printf "%s\n" 'EGREP' >> "conftest.nl"
7054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7056 as_fn_arith $ac_count + 1 && ac_count=$as_val
7057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7058 # Best one so far, save it but keep looking for a better one
7059 ac_cv_path_EGREP="$ac_path_EGREP"
7060 ac_path_EGREP_max=$ac_count
7061 fi
7062 # 10*(2^10) chars as input seems more than enough
7063 test $ac_count -gt 10 && break
7064 done
7065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7066 esac
7067
7068 $ac_path_EGREP_found && break 3
7069 done
7070 done
7071 done
7072 IFS=$as_save_IFS
7073 if test -z "$ac_cv_path_EGREP"; then
7074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7075 fi
7076 else
7077 ac_cv_path_EGREP=$EGREP
7078 fi
7079
7080 fi ;;
7081 esac
7082 fi
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7084 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7085 EGREP="$ac_cv_path_EGREP"
7086
7087 EGREP_TRADITIONAL=$EGREP
7088 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7089
7090
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7092 printf %s "checking for an ANSI C-conforming const... " >&6; }
7093 if test ${ac_cv_c_const+y}
7094 then :
7095 printf %s "(cached) " >&6
7096 else case e in #(
7097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099
7100 int
7101 main (void)
7102 {
7103
7104 #ifndef __cplusplus
7105 /* Ultrix mips cc rejects this sort of thing. */
7106 typedef int charset[2];
7107 const charset cs = { 0, 0 };
7108 /* SunOS 4.1.1 cc rejects this. */
7109 char const *const *pcpcc;
7110 char **ppc;
7111 /* NEC SVR4.0.2 mips cc rejects this. */
7112 struct point {int x, y;};
7113 static struct point const zero = {0,0};
7114 /* IBM XL C 1.02.0.0 rejects this.
7115 It does not let you subtract one const X* pointer from another in
7116 an arm of an if-expression whose if-part is not a constant
7117 expression */
7118 const char *g = "string";
7119 pcpcc = &g + (g ? g-g : 0);
7120 /* HPUX 7.0 cc rejects these. */
7121 ++pcpcc;
7122 ppc = (char**) pcpcc;
7123 pcpcc = (char const *const *) ppc;
7124 { /* SCO 3.2v4 cc rejects this sort of thing. */
7125 char tx;
7126 char *t = &tx;
7127 char const *s = 0 ? (char *) 0 : (char const *) 0;
7128
7129 *t++ = 0;
7130 if (s) return 0;
7131 }
7132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7133 int x[] = {25, 17};
7134 const int *foo = &x[0];
7135 ++foo;
7136 }
7137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7138 typedef const int *iptr;
7139 iptr p = 0;
7140 ++p;
7141 }
7142 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7144 struct s { int j; const int *ap[3]; } bx;
7145 struct s *b = &bx; b->j = 5;
7146 }
7147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7148 const int foo = 10;
7149 if (!foo) return 0;
7150 }
7151 return !cs[0] && !zero.x;
7152 #endif
7153
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"
7159 then :
7160 ac_cv_c_const=yes
7161 else case e in #(
7162 e) ac_cv_c_const=no ;;
7163 esac
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7166 esac
7167 fi
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7169 printf "%s\n" "$ac_cv_c_const" >&6; }
7170 if test $ac_cv_c_const = no; then
7171
7172 printf "%s\n" "#define const /**/" >>confdefs.h
7173
7174 fi
7175
7176
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
7178 printf %s "checking for signed... " >&6; }
7179 if test ${bh_cv_c_signed+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else case e in #(
7183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185
7186 int
7187 main (void)
7188 {
7189 signed char x;
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"
7195 then :
7196 bh_cv_c_signed=yes
7197 else case e in #(
7198 e) bh_cv_c_signed=no ;;
7199 esac
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7202 esac
7203 fi
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
7205 printf "%s\n" "$bh_cv_c_signed" >&6; }
7206 if test $bh_cv_c_signed = no; then
7207
7208 printf "%s\n" "#define signed /**/" >>confdefs.h
7209
7210 fi
7211
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7213 printf %s "checking for inline... " >&6; }
7214 if test ${ac_cv_c_inline+y}
7215 then :
7216 printf %s "(cached) " >&6
7217 else case e in #(
7218 e) ac_cv_c_inline=no
7219 for ac_kw in inline __inline__ __inline; do
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #ifndef __cplusplus
7223 typedef int foo_t;
7224 static $ac_kw foo_t static_foo (void) {return 0; }
7225 $ac_kw foo_t foo (void) {return 0; }
7226 #endif
7227
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"
7230 then :
7231 ac_cv_c_inline=$ac_kw
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7234 test "$ac_cv_c_inline" != no && break
7235 done
7236 ;;
7237 esac
7238 fi
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7240 printf "%s\n" "$ac_cv_c_inline" >&6; }
7241
7242 case $ac_cv_c_inline in
7243 inline | yes) ;;
7244 *)
7245 case $ac_cv_c_inline in
7246 no) ac_val=;;
7247 *) ac_val=$ac_cv_c_inline;;
7248 esac
7249 cat >>confdefs.h <<_ACEOF
7250 #ifndef __cplusplus
7251 #define inline $ac_val
7252 #endif
7253 _ACEOF
7254 ;;
7255 esac
7256
7257 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7258 if test "x$ac_cv_type_off_t" = xyes
7259 then :
7260
7261 else case e in #(
7262 e)
7263 printf "%s\n" "#define off_t long int" >>confdefs.h
7264 ;;
7265 esac
7266 fi
7267
7268 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7269 if test "x$ac_cv_type_size_t" = xyes
7270 then :
7271
7272 else case e in #(
7273 e)
7274 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7275 ;;
7276 esac
7277 fi
7278
7279
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
7281 printf %s "checking for long long... " >&6; }
7282 if test ${ac_cv_type_long_long+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else case e in #(
7286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 long long ll = 1LL; int i = 63;
7289 int
7290 main (void)
7291 {
7292 long long llmax = (long long) -1;
7293 return ll << i | ll >> i | llmax / ll | llmax % ll;
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 if ac_fn_c_try_link "$LINENO"
7299 then :
7300 ac_cv_type_long_long=yes
7301 else case e in #(
7302 e) ac_cv_type_long_long=no ;;
7303 esac
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7306 conftest$ac_exeext conftest.$ac_ext ;;
7307 esac
7308 fi
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
7310 printf "%s\n" "$ac_cv_type_long_long" >&6; }
7311 if test $ac_cv_type_long_long = yes; then
7312
7313 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
7314
7315 fi
7316
7317
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
7319 printf %s "checking for long double... " >&6; }
7320 if test ${gt_cv_c_long_double+y}
7321 then :
7322 printf %s "(cached) " >&6
7323 else case e in #(
7324 e) if test "$GCC" = yes; then
7325 gt_cv_c_long_double=yes
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329
7330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7331 long double foo = 0.0;
7332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7333 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7334
7335 int
7336 main (void)
7337 {
7338
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 if ac_fn_c_try_compile "$LINENO"
7344 then :
7345 gt_cv_c_long_double=yes
7346 else case e in #(
7347 e) gt_cv_c_long_double=no ;;
7348 esac
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7351 fi ;;
7352 esac
7353 fi
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
7355 printf "%s\n" "$gt_cv_c_long_double" >&6; }
7356 if test $gt_cv_c_long_double = yes; then
7357
7358 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7359
7360 fi
7361
7362
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7364 printf %s "checking for wchar_t... " >&6; }
7365 if test ${gt_cv_c_wchar_t+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else case e in #(
7369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <stddef.h>
7372 wchar_t foo = (wchar_t)'\0';
7373 int
7374 main (void)
7375 {
7376
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"
7382 then :
7383 gt_cv_c_wchar_t=yes
7384 else case e in #(
7385 e) gt_cv_c_wchar_t=no ;;
7386 esac
7387 fi
7388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7389 esac
7390 fi
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7392 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
7393 if test $gt_cv_c_wchar_t = yes; then
7394
7395 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
7396
7397 fi
7398
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7401 printf %s "checking for wint_t... " >&6; }
7402 if test ${gt_cv_c_wint_t+y}
7403 then :
7404 printf %s "(cached) " >&6
7405 else case e in #(
7406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408 #include <wchar.h>
7409 wint_t foo = (wchar_t)'\0';
7410 int
7411 main (void)
7412 {
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"
7419 then :
7420 gt_cv_c_wint_t=yes
7421 else case e in #(
7422 e) gt_cv_c_wint_t=no ;;
7423 esac
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7426 esac
7427 fi
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7429 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
7430 if test $gt_cv_c_wint_t = yes; then
7431
7432 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
7433
7434 fi
7435
7436
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7438 printf %s "checking for inttypes.h... " >&6; }
7439 if test ${jm_ac_cv_header_inttypes_h+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else case e in #(
7443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <sys/types.h>
7446 #include <inttypes.h>
7447 int
7448 main (void)
7449 {
7450 uintmax_t i = (uintmax_t) -1;
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"
7456 then :
7457 jm_ac_cv_header_inttypes_h=yes
7458 else case e in #(
7459 e) jm_ac_cv_header_inttypes_h=no ;;
7460 esac
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7463 esac
7464 fi
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
7466 printf "%s\n" "$jm_ac_cv_header_inttypes_h" >&6; }
7467 if test $jm_ac_cv_header_inttypes_h = yes; then
7468
7469 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
7470
7471 fi
7472
7473
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7475 printf %s "checking for stdint.h... " >&6; }
7476 if test ${jm_ac_cv_header_stdint_h+y}
7477 then :
7478 printf %s "(cached) " >&6
7479 else case e in #(
7480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <sys/types.h>
7483 #include <stdint.h>
7484 int
7485 main (void)
7486 {
7487 uintmax_t i = (uintmax_t) -1;
7488 ;
7489 return 0;
7490 }
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"
7493 then :
7494 jm_ac_cv_header_stdint_h=yes
7495 else case e in #(
7496 e) jm_ac_cv_header_stdint_h=no ;;
7497 esac
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7500 esac
7501 fi
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
7503 printf "%s\n" "$jm_ac_cv_header_stdint_h" >&6; }
7504 if test $jm_ac_cv_header_stdint_h = yes; then
7505
7506 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
7507
7508 fi
7509
7510
7511
7512
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
7514 printf %s "checking for intmax_t... " >&6; }
7515 if test ${gt_cv_c_intmax_t+y}
7516 then :
7517 printf %s "(cached) " >&6
7518 else case e in #(
7519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521
7522 #include <stddef.h>
7523 #include <stdlib.h>
7524 #if HAVE_STDINT_H_WITH_UINTMAX
7525 #include <stdint.h>
7526 #endif
7527 #if HAVE_INTTYPES_H_WITH_UINTMAX
7528 #include <inttypes.h>
7529 #endif
7530
7531 int
7532 main (void)
7533 {
7534 intmax_t x = -1;
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"
7540 then :
7541 gt_cv_c_intmax_t=yes
7542 else case e in #(
7543 e) gt_cv_c_intmax_t=no ;;
7544 esac
7545 fi
7546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7547 esac
7548 fi
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
7550 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
7551 if test $gt_cv_c_intmax_t = yes; then
7552
7553 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
7554
7555 fi
7556
7557 ac_ext=c
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7563 printf %s "checking how to run the C preprocessor... " >&6; }
7564 # On Suns, sometimes $CPP names a directory.
7565 if test -n "$CPP" && test -d "$CPP"; then
7566 CPP=
7567 fi
7568 if test -z "$CPP"; then
7569 if test ${ac_cv_prog_CPP+y}
7570 then :
7571 printf %s "(cached) " >&6
7572 else case e in #(
7573 e) # Double quotes because $CC needs to be expanded
7574 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7575 do
7576 ac_preproc_ok=false
7577 for ac_c_preproc_warn_flag in '' yes
7578 do
7579 # Use a header file that comes with gcc, so configuring glibc
7580 # with a fresh cross-compiler works.
7581 # On the NeXT, cc -E runs the code through the compiler's parser,
7582 # not just through cpp. "Syntax error" is here to catch this case.
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <limits.h>
7586 Syntax error
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"
7589 then :
7590
7591 else case e in #(
7592 e) # Broken: fails on valid input.
7593 continue ;;
7594 esac
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 # OK, works on sane cases. Now check whether nonexistent headers
7599 # can be detected and how.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <ac_nonexistent.h>
7603 _ACEOF
7604 if ac_fn_c_try_cpp "$LINENO"
7605 then :
7606 # Broken: success on invalid input.
7607 continue
7608 else case e in #(
7609 e) # Passes both tests.
7610 ac_preproc_ok=:
7611 break ;;
7612 esac
7613 fi
7614 rm -f conftest.err conftest.i conftest.$ac_ext
7615
7616 done
7617 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7618 rm -f conftest.i conftest.err conftest.$ac_ext
7619 if $ac_preproc_ok
7620 then :
7621 break
7622 fi
7623
7624 done
7625 ac_cv_prog_CPP=$CPP
7626 ;;
7627 esac
7628 fi
7629 CPP=$ac_cv_prog_CPP
7630 else
7631 ac_cv_prog_CPP=$CPP
7632 fi
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7634 printf "%s\n" "$CPP" >&6; }
7635 ac_preproc_ok=false
7636 for ac_c_preproc_warn_flag in '' yes
7637 do
7638 # Use a header file that comes with gcc, so configuring glibc
7639 # with a fresh cross-compiler works.
7640 # On the NeXT, cc -E runs the code through the compiler's parser,
7641 # not just through cpp. "Syntax error" is here to catch this case.
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <limits.h>
7645 Syntax error
7646 _ACEOF
7647 if ac_fn_c_try_cpp "$LINENO"
7648 then :
7649
7650 else case e in #(
7651 e) # Broken: fails on valid input.
7652 continue ;;
7653 esac
7654 fi
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656
7657 # OK, works on sane cases. Now check whether nonexistent headers
7658 # can be detected and how.
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 #include <ac_nonexistent.h>
7662 _ACEOF
7663 if ac_fn_c_try_cpp "$LINENO"
7664 then :
7665 # Broken: success on invalid input.
7666 continue
7667 else case e in #(
7668 e) # Passes both tests.
7669 ac_preproc_ok=:
7670 break ;;
7671 esac
7672 fi
7673 rm -f conftest.err conftest.i conftest.$ac_ext
7674
7675 done
7676 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7677 rm -f conftest.i conftest.err conftest.$ac_ext
7678 if $ac_preproc_ok
7679 then :
7680
7681 else case e in #(
7682 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7683 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7684 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7685 See 'config.log' for more details" "$LINENO" 5; } ;;
7686 esac
7687 fi
7688
7689 ac_ext=c
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694
7695
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
7697 printf %s "checking for egrep -e... " >&6; }
7698 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
7699 then :
7700 printf %s "(cached) " >&6
7701 else case e in #(
7702 e) if test -z "$EGREP_TRADITIONAL"; then
7703 ac_path_EGREP_TRADITIONAL_found=false
7704 # Loop through the user's path and test for each of PROGNAME-LIST
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7707 do
7708 IFS=$as_save_IFS
7709 case $as_dir in #(((
7710 '') as_dir=./ ;;
7711 */) ;;
7712 *) as_dir=$as_dir/ ;;
7713 esac
7714 for ac_prog in grep ggrep
7715 do
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7718 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7719 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7720 # Check for GNU $ac_path_EGREP_TRADITIONAL
7721 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7722 *GNU*)
7723 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7724 #(
7725 *)
7726 ac_count=0
7727 printf %s 0123456789 >"conftest.in"
7728 while :
7729 do
7730 cat "conftest.in" "conftest.in" >"conftest.tmp"
7731 mv "conftest.tmp" "conftest.in"
7732 cp "conftest.in" "conftest.nl"
7733 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7734 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7736 as_fn_arith $ac_count + 1 && ac_count=$as_val
7737 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7738 # Best one so far, save it but keep looking for a better one
7739 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7740 ac_path_EGREP_TRADITIONAL_max=$ac_count
7741 fi
7742 # 10*(2^10) chars as input seems more than enough
7743 test $ac_count -gt 10 && break
7744 done
7745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7746 esac
7747
7748 $ac_path_EGREP_TRADITIONAL_found && break 3
7749 done
7750 done
7751 done
7752 IFS=$as_save_IFS
7753 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7754 :
7755 fi
7756 else
7757 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7758 fi
7759
7760 if test "$ac_cv_path_EGREP_TRADITIONAL"
7761 then :
7762 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
7763 else case e in #(
7764 e) if test -z "$EGREP_TRADITIONAL"; then
7765 ac_path_EGREP_TRADITIONAL_found=false
7766 # Loop through the user's path and test for each of PROGNAME-LIST
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7769 do
7770 IFS=$as_save_IFS
7771 case $as_dir in #(((
7772 '') as_dir=./ ;;
7773 */) ;;
7774 *) as_dir=$as_dir/ ;;
7775 esac
7776 for ac_prog in egrep
7777 do
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7780 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7781 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7782 # Check for GNU $ac_path_EGREP_TRADITIONAL
7783 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7784 *GNU*)
7785 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7786 #(
7787 *)
7788 ac_count=0
7789 printf %s 0123456789 >"conftest.in"
7790 while :
7791 do
7792 cat "conftest.in" "conftest.in" >"conftest.tmp"
7793 mv "conftest.tmp" "conftest.in"
7794 cp "conftest.in" "conftest.nl"
7795 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7796 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7798 as_fn_arith $ac_count + 1 && ac_count=$as_val
7799 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7800 # Best one so far, save it but keep looking for a better one
7801 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7802 ac_path_EGREP_TRADITIONAL_max=$ac_count
7803 fi
7804 # 10*(2^10) chars as input seems more than enough
7805 test $ac_count -gt 10 && break
7806 done
7807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7808 esac
7809
7810 $ac_path_EGREP_TRADITIONAL_found && break 3
7811 done
7812 done
7813 done
7814 IFS=$as_save_IFS
7815 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7817 fi
7818 else
7819 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7820 fi
7821 ;;
7822 esac
7823 fi ;;
7824 esac
7825 fi
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
7827 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
7828 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
7829
7830
7831
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
7833 printf %s "checking whether printf() supports POSIX/XSI format strings... " >&6; }
7834 if test ${gt_cv_func_printf_posix+y}
7835 then :
7836 printf %s "(cached) " >&6
7837 else case e in #(
7838 e)
7839 if test "$cross_compiling" = yes
7840 then :
7841
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844
7845 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7846 notposix
7847 #endif
7848
7849 _ACEOF
7850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7851 $EGREP_TRADITIONAL "notposix" >/dev/null 2>&1
7852 then :
7853 gt_cv_func_printf_posix="guessing no"
7854 else case e in #(
7855 e) gt_cv_func_printf_posix="guessing yes" ;;
7856 esac
7857 fi
7858 rm -rf conftest*
7859
7860
7861 else case e in #(
7862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864
7865 #include <stdio.h>
7866 #include <string.h>
7867 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7868 dollar expansion (possibly an autoconf bug). */
7869 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7870 static char buf[100];
7871 int main ()
7872 {
7873 sprintf (buf, format, 33, 55);
7874 return (strcmp (buf, "55 33") != 0);
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_run "$LINENO"
7878 then :
7879 gt_cv_func_printf_posix=yes
7880 else case e in #(
7881 e) gt_cv_func_printf_posix=no ;;
7882 esac
7883 fi
7884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7885 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7886 esac
7887 fi
7888
7889 ;;
7890 esac
7891 fi
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7893 printf "%s\n" "$gt_cv_func_printf_posix" >&6; }
7894 case $gt_cv_func_printf_posix in
7895 *yes)
7896
7897 printf "%s\n" "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7898
7899 ;;
7900 esac
7901
7902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7903 # for constant arguments. Useless!
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7905 printf %s "checking for working alloca.h... " >&6; }
7906 if test ${ac_cv_working_alloca_h+y}
7907 then :
7908 printf %s "(cached) " >&6
7909 else case e in #(
7910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <alloca.h>
7913 int
7914 main (void)
7915 {
7916 char *p = (char *) alloca (2 * sizeof (int));
7917 if (p) return 0;
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"
7923 then :
7924 ac_cv_working_alloca_h=yes
7925 else case e in #(
7926 e) ac_cv_working_alloca_h=no ;;
7927 esac
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7930 conftest$ac_exeext conftest.$ac_ext ;;
7931 esac
7932 fi
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7934 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7935 if test $ac_cv_working_alloca_h = yes; then
7936
7937 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7938
7939 fi
7940
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7942 printf %s "checking for alloca... " >&6; }
7943 if test ${ac_cv_func_alloca_works+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else case e in #(
7947 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
7948 if test "$ac_cv_func_alloca_works" != yes
7949 then :
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 #include <stdlib.h>
7953 #include <stddef.h>
7954 #ifndef alloca
7955 # ifdef __GNUC__
7956 # define alloca __builtin_alloca
7957 # elif defined _MSC_VER
7958 # include <malloc.h>
7959 # define alloca _alloca
7960 # else
7961 # ifdef __cplusplus
7962 extern "C"
7963 # endif
7964 void *alloca (size_t);
7965 # endif
7966 #endif
7967
7968 int
7969 main (void)
7970 {
7971 char *p = (char *) alloca (1);
7972 if (p) return 0;
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"
7978 then :
7979 ac_cv_func_alloca_works=yes
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7982 conftest$ac_exeext conftest.$ac_ext
7983 fi ;;
7984 esac
7985 fi
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7987 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7988
7989 if test $ac_cv_func_alloca_works = yes; then
7990
7991 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7992
7993 else
7994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7995 # that cause trouble. Some versions do not even contain alloca or
7996 # contain a buggy version. If you still want to use their alloca,
7997 # use ar to extract alloca.o from them instead of compiling alloca.c.
7998
7999 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8000
8001 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8002
8003
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8005 printf %s "checking stack direction for C alloca... " >&6; }
8006 if test ${ac_cv_c_stack_direction+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else case e in #(
8010 e) if test "$cross_compiling" = yes
8011 then :
8012 ac_cv_c_stack_direction=0
8013 else case e in #(
8014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 int
8018 find_stack_direction (int *addr, int depth)
8019 {
8020 int dir, dummy = 0;
8021 if (! addr)
8022 addr = &dummy;
8023 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8024 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8025 return dir + dummy;
8026 }
8027
8028 int
8029 main (int argc, char **argv)
8030 {
8031 return find_stack_direction (0, argc + !argv + 20) < 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_run "$LINENO"
8035 then :
8036 ac_cv_c_stack_direction=1
8037 else case e in #(
8038 e) ac_cv_c_stack_direction=-1 ;;
8039 esac
8040 fi
8041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8042 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8043 esac
8044 fi
8045 ;;
8046 esac
8047 fi
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8049 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8050 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8051
8052
8053 fi
8054
8055
8056 ac_func=
8057 for ac_item in $ac_func_c_list
8058 do
8059 if test $ac_func; then
8060 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
8061 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
8062 echo "#define $ac_item 1" >> confdefs.h
8063 fi
8064 ac_func=
8065 else
8066 ac_func=$ac_item
8067 fi
8068 done
8069
8070
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8072 printf %s "checking for working mmap... " >&6; }
8073 if test ${ac_cv_func_mmap_fixed_mapped+y}
8074 then :
8075 printf %s "(cached) " >&6
8076 else case e in #(
8077 e) if test "$cross_compiling" = yes
8078 then :
8079 case "$host_os" in # ((
8080 # Guess yes on platforms where we know the result.
8081 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
8082 # If we don't know, assume the worst.
8083 *) ac_cv_func_mmap_fixed_mapped=no ;;
8084 esac
8085 else case e in #(
8086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 $ac_includes_default
8089 /* malloc might have been renamed as rpl_malloc. */
8090 #undef malloc
8091
8092 /* Thanks to Mike Haertel and Jim Avera for this test.
8093 Here is a matrix of mmap possibilities:
8094 mmap private not fixed
8095 mmap private fixed at somewhere currently unmapped
8096 mmap private fixed at somewhere already mapped
8097 mmap shared not fixed
8098 mmap shared fixed at somewhere currently unmapped
8099 mmap shared fixed at somewhere already mapped
8100 For private mappings, we should verify that changes cannot be read()
8101 back from the file, nor mmap's back from the file at a different
8102 address. (There have been systems where private was not correctly
8103 implemented like the infamous i386 svr4.0, and systems where the
8104 VM page cache was not coherent with the file system buffer cache
8105 like early versions of FreeBSD and possibly contemporary NetBSD.)
8106 For shared mappings, we should conversely verify that changes get
8107 propagated back to all the places they're supposed to be. */
8108
8109 #include <fcntl.h>
8110 #include <sys/mman.h>
8111
8112 #ifndef getpagesize
8113 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
8114 been removed from POSIX and is limited to page sizes that fit in 'int'. */
8115 # ifdef _SC_PAGESIZE
8116 # define getpagesize() sysconf (_SC_PAGESIZE)
8117 # elif defined _SC_PAGE_SIZE
8118 # define getpagesize() sysconf (_SC_PAGE_SIZE)
8119 # elif HAVE_GETPAGESIZE
8120 int getpagesize ();
8121 # else
8122 # ifdef HAVE_SYS_PARAM_H
8123 # include <sys/param.h>
8124 # ifdef EXEC_PAGESIZE
8125 # define getpagesize() EXEC_PAGESIZE
8126 # else /* no EXEC_PAGESIZE */
8127 # ifdef NBPG
8128 # define getpagesize() NBPG * CLSIZE
8129 # ifndef CLSIZE
8130 # define CLSIZE 1
8131 # endif /* no CLSIZE */
8132 # else /* no NBPG */
8133 # ifdef NBPC
8134 # define getpagesize() NBPC
8135 # else /* no NBPC */
8136 # ifdef PAGESIZE
8137 # define getpagesize() PAGESIZE
8138 # endif /* PAGESIZE */
8139 # endif /* no NBPC */
8140 # endif /* no NBPG */
8141 # endif /* no EXEC_PAGESIZE */
8142 # else /* no HAVE_SYS_PARAM_H */
8143 # define getpagesize() 8192 /* punt totally */
8144 # endif /* no HAVE_SYS_PARAM_H */
8145 # endif
8146 #endif
8147
8148 int
8149 main (void)
8150 {
8151 char *data, *data2, *data3;
8152 const char *cdata2;
8153 long i, pagesize;
8154 int fd, fd2;
8155
8156 pagesize = getpagesize ();
8157
8158 /* First, make a file with some known garbage in it. */
8159 data = (char *) malloc (pagesize);
8160 if (!data)
8161 return 1;
8162 for (i = 0; i < pagesize; ++i)
8163 *(data + i) = rand ();
8164 umask (0);
8165 fd = creat ("conftest.mmap", 0600);
8166 if (fd < 0)
8167 return 2;
8168 if (write (fd, data, pagesize) != pagesize)
8169 return 3;
8170 close (fd);
8171
8172 /* Next, check that the tail of a page is zero-filled. File must have
8173 non-zero length, otherwise we risk SIGBUS for entire page. */
8174 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8175 if (fd2 < 0)
8176 return 4;
8177 cdata2 = "";
8178 if (write (fd2, cdata2, 1) != 1)
8179 return 5;
8180 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8181 if (data2 == MAP_FAILED)
8182 return 6;
8183 for (i = 0; i < pagesize; ++i)
8184 if (*(data2 + i))
8185 return 7;
8186 close (fd2);
8187 /* 'return 8;' not currently used. */
8188
8189 /* Next, try to mmap the file at a fixed address which already has
8190 something else allocated at it. If we can, also make sure that
8191 we see the same garbage. */
8192 fd = open ("conftest.mmap", O_RDWR);
8193 if (fd < 0)
8194 return 9;
8195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8197 return 10;
8198 for (i = 0; i < pagesize; ++i)
8199 if (*(data + i) != *(data2 + i))
8200 return 11;
8201
8202 /* Finally, make sure that changes to the mapped area do not
8203 percolate back to the file as seen by read(). (This is a bug on
8204 some variants of i386 svr4.0.) */
8205 for (i = 0; i < pagesize; ++i)
8206 *(data2 + i) = *(data2 + i) + 1;
8207 data3 = (char *) malloc (pagesize);
8208 if (!data3)
8209 return 12;
8210 if (read (fd, data3, pagesize) != pagesize)
8211 return 13;
8212 for (i = 0; i < pagesize; ++i)
8213 if (*(data + i) != *(data3 + i))
8214 return 14;
8215 close (fd);
8216 free (data);
8217 free (data3);
8218 return 0;
8219 }
8220 _ACEOF
8221 if ac_fn_c_try_run "$LINENO"
8222 then :
8223 ac_cv_func_mmap_fixed_mapped=yes
8224 else case e in #(
8225 e) ac_cv_func_mmap_fixed_mapped=no ;;
8226 esac
8227 fi
8228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8229 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8230 esac
8231 fi
8232 ;;
8233 esac
8234 fi
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8236 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
8237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8238
8239 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
8240
8241 fi
8242 rm -f conftest.mmap conftest.txt
8243
8244
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8246 printf %s "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8247 if test ${ac_cv_gnu_library_2_1+y}
8248 then :
8249 printf %s "(cached) " >&6
8250 else case e in #(
8251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253
8254 #include <features.h>
8255 #ifdef __GNU_LIBRARY__
8256 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8257 Lucky GNU user
8258 #endif
8259 #endif
8260
8261 _ACEOF
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 $EGREP_TRADITIONAL "Lucky GNU user" >/dev/null 2>&1
8264 then :
8265 ac_cv_gnu_library_2_1=yes
8266 else case e in #(
8267 e) ac_cv_gnu_library_2_1=no ;;
8268 esac
8269 fi
8270 rm -rf conftest*
8271
8272
8273 ;;
8274 esac
8275 fi
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8277 printf "%s\n" "$ac_cv_gnu_library_2_1" >&6; }
8278
8279 GLIBC21="$ac_cv_gnu_library_2_1"
8280
8281
8282
8283
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
8285 printf %s "checking whether integer division by zero raises SIGFPE... " >&6; }
8286 if test ${gt_cv_int_divbyzero_sigfpe+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else case e in #(
8290 e)
8291 if test "$cross_compiling" = yes
8292 then :
8293
8294 # Guess based on the CPU.
8295 case "$host_cpu" in
8296 alpha* | i3456786 | m68k | s390*)
8297 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8298 *)
8299 gt_cv_int_divbyzero_sigfpe="guessing no";;
8300 esac
8301
8302 else case e in #(
8303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305
8306 #include <stdlib.h>
8307 #include <signal.h>
8308
8309 static void
8310 #ifdef __cplusplus
8311 sigfpe_handler (int sig)
8312 #else
8313 sigfpe_handler (sig) int sig;
8314 #endif
8315 {
8316 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8317 exit (sig != SIGFPE);
8318 }
8319
8320 int x = 1;
8321 int y = 0;
8322 int z;
8323 int nan;
8324
8325 int main ()
8326 {
8327 signal (SIGFPE, sigfpe_handler);
8328 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8329 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8330 signal (SIGTRAP, sigfpe_handler);
8331 #endif
8332 /* Linux/SPARC yields signal SIGILL. */
8333 #if defined (__sparc__) && defined (__linux__)
8334 signal (SIGILL, sigfpe_handler);
8335 #endif
8336
8337 z = x / y;
8338 nan = y / y;
8339 exit (1);
8340 }
8341
8342 _ACEOF
8343 if ac_fn_c_try_run "$LINENO"
8344 then :
8345 gt_cv_int_divbyzero_sigfpe=yes
8346 else case e in #(
8347 e) gt_cv_int_divbyzero_sigfpe=no ;;
8348 esac
8349 fi
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8352 esac
8353 fi
8354
8355 ;;
8356 esac
8357 fi
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
8359 printf "%s\n" "$gt_cv_int_divbyzero_sigfpe" >&6; }
8360 case "$gt_cv_int_divbyzero_sigfpe" in
8361 *yes) value=1;;
8362 *) value=0;;
8363 esac
8364
8365 printf "%s\n" "#define INTDIV0_RAISES_SIGFPE $value" >>confdefs.h
8366
8367
8368
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
8370 printf %s "checking for unsigned long long... " >&6; }
8371 if test ${ac_cv_type_unsigned_long_long+y}
8372 then :
8373 printf %s "(cached) " >&6
8374 else case e in #(
8375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 unsigned long long ull = 1ULL; int i = 63;
8378 int
8379 main (void)
8380 {
8381 unsigned long long ullmax = (unsigned long long) -1;
8382 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8383 ;
8384 return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"
8388 then :
8389 ac_cv_type_unsigned_long_long=yes
8390 else case e in #(
8391 e) ac_cv_type_unsigned_long_long=no ;;
8392 esac
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8395 conftest$ac_exeext conftest.$ac_ext ;;
8396 esac
8397 fi
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
8399 printf "%s\n" "$ac_cv_type_unsigned_long_long" >&6; }
8400 if test $ac_cv_type_unsigned_long_long = yes; then
8401
8402 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
8403
8404 fi
8405
8406
8407
8408
8409 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8410
8411 test $ac_cv_type_unsigned_long_long = yes \
8412 && ac_type='unsigned long long' \
8413 || ac_type='unsigned long'
8414
8415 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
8416
8417 else
8418
8419 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
8420
8421 fi
8422
8423
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8425 printf %s "checking for inttypes.h... " >&6; }
8426 if test ${gt_cv_header_inttypes_h+y}
8427 then :
8428 printf %s "(cached) " >&6
8429 else case e in #(
8430 e)
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <inttypes.h>
8435 int
8436 main (void)
8437 {
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"
8444 then :
8445 gt_cv_header_inttypes_h=yes
8446 else case e in #(
8447 e) gt_cv_header_inttypes_h=no ;;
8448 esac
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 ;;
8452 esac
8453 fi
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
8455 printf "%s\n" "$gt_cv_header_inttypes_h" >&6; }
8456 if test $gt_cv_header_inttypes_h = yes; then
8457
8458 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
8459
8460 fi
8461
8462
8463
8464 if test $gt_cv_header_inttypes_h = yes; then
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8466 printf %s "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8467 if test ${gt_cv_inttypes_pri_broken+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else case e in #(
8471 e)
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <inttypes.h>
8475 #ifdef PRId32
8476 char *p = PRId32;
8477 #endif
8478
8479 int
8480 main (void)
8481 {
8482
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"
8488 then :
8489 gt_cv_inttypes_pri_broken=no
8490 else case e in #(
8491 e) gt_cv_inttypes_pri_broken=yes ;;
8492 esac
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8495 ;;
8496 esac
8497 fi
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8499 printf "%s\n" "$gt_cv_inttypes_pri_broken" >&6; }
8500 fi
8501 if test "$gt_cv_inttypes_pri_broken" = yes; then
8502
8503 printf "%s\n" "#define PRI_MACROS_BROKEN 1" >>confdefs.h
8504
8505 fi
8506
8507
8508 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8509 if test "x$ac_cv_header_stdint_h" = xyes
8510 then :
8511 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
8512
8513 fi
8514
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8516 printf %s "checking for SIZE_MAX... " >&6; }
8517 result=
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520
8521 #include <limits.h>
8522 #if HAVE_STDINT_H
8523 #include <stdint.h>
8524 #endif
8525 #ifdef SIZE_MAX
8526 Found it
8527 #endif
8528
8529 _ACEOF
8530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531 $EGREP_TRADITIONAL "Found it" >/dev/null 2>&1
8532 then :
8533 result=yes
8534 fi
8535 rm -rf conftest*
8536
8537 if test -z "$result"; then
8538 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"
8539 then :
8540
8541 else case e in #(
8542 e) result=? ;;
8543 esac
8544 fi
8545
8546 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"
8547 then :
8548
8549 else case e in #(
8550 e) result=? ;;
8551 esac
8552 fi
8553
8554 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
8555 then :
8556
8557 else case e in #(
8558 e) result=? ;;
8559 esac
8560 fi
8561
8562 if test "$fits_in_uint" = 1; then
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <stddef.h>
8566 extern size_t foo;
8567 extern unsigned long foo;
8568
8569 int
8570 main (void)
8571 {
8572
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"
8578 then :
8579 fits_in_uint=0
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 fi
8583 if test -z "$result"; then
8584 if test "$fits_in_uint" = 1; then
8585 result="$res_hi$res_lo"U
8586 else
8587 result="$res_hi$res_lo"UL
8588 fi
8589 else
8590 result='~(size_t)0'
8591 fi
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $result" >&5
8594 printf "%s\n" "$result" >&6; }
8595 if test "$result" != yes; then
8596
8597 printf "%s\n" "#define SIZE_MAX $result" >>confdefs.h
8598
8599 fi
8600
8601
8602
8603 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8604 if test "x$ac_cv_header_stdint_h" = xyes
8605 then :
8606 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
8607
8608 fi
8609
8610
8611
8612 if test "X$prefix" = "XNONE"; then
8613 acl_final_prefix="$ac_default_prefix"
8614 else
8615 acl_final_prefix="$prefix"
8616 fi
8617 if test "X$exec_prefix" = "XNONE"; then
8618 acl_final_exec_prefix='${prefix}'
8619 else
8620 acl_final_exec_prefix="$exec_prefix"
8621 fi
8622 acl_save_prefix="$prefix"
8623 prefix="$acl_final_prefix"
8624 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8625 prefix="$acl_save_prefix"
8626
8627
8628 # Check whether --with-gnu-ld was given.
8629 if test ${with_gnu_ld+y}
8630 then :
8631 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8632 else case e in #(
8633 e) with_gnu_ld=no ;;
8634 esac
8635 fi
8636
8637 # Prepare PATH_SEPARATOR.
8638 # The user is always right.
8639 if test "${PATH_SEPARATOR+set}" != set; then
8640 echo "#! /bin/sh" >conf$$.sh
8641 echo "exit 0" >>conf$$.sh
8642 chmod +x conf$$.sh
8643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8644 PATH_SEPARATOR=';'
8645 else
8646 PATH_SEPARATOR=:
8647 fi
8648 rm -f conf$$.sh
8649 fi
8650 ac_prog=ld
8651 if test "$GCC" = yes; then
8652 # Check if gcc -print-prog-name=ld gives a path.
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8654 printf %s "checking for ld used by GCC... " >&6; }
8655 case $host in
8656 *-*-mingw*)
8657 # gcc leaves a trailing carriage return which upsets mingw
8658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8659 *)
8660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8661 esac
8662 case $ac_prog in
8663 # Accept absolute paths.
8664 [\\/]* | [A-Za-z]:[\\/]*)
8665 re_direlt='/[^/][^/]*/\.\./'
8666 # Canonicalize the path of ld
8667 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8668 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8669 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8670 done
8671 test -z "$LD" && LD="$ac_prog"
8672 ;;
8673 "")
8674 # If it fails, then pretend we aren't using GCC.
8675 ac_prog=ld
8676 ;;
8677 *)
8678 # If it is relative, then search for the first ld in PATH.
8679 with_gnu_ld=unknown
8680 ;;
8681 esac
8682 elif test "$with_gnu_ld" = yes; then
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8684 printf %s "checking for GNU ld... " >&6; }
8685 else
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8687 printf %s "checking for non-GNU ld... " >&6; }
8688 fi
8689 if test ${acl_cv_path_LD+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else case e in #(
8693 e) if test -z "$LD"; then
8694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8695 for ac_dir in $PATH; do
8696 test -z "$ac_dir" && ac_dir=.
8697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8698 acl_cv_path_LD="$ac_dir/$ac_prog"
8699 # Check to see if the program is GNU ld. I'd rather use --version,
8700 # but apparently some GNU ld's only accept -v.
8701 # Break only if it was the GNU/non-GNU ld that we prefer.
8702 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8703 *GNU* | *'with BFD'*)
8704 test "$with_gnu_ld" != no && break ;;
8705 *)
8706 test "$with_gnu_ld" != yes && break ;;
8707 esac
8708 fi
8709 done
8710 IFS="$ac_save_ifs"
8711 else
8712 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8713 fi ;;
8714 esac
8715 fi
8716
8717 LD="$acl_cv_path_LD"
8718 if test -n "$LD"; then
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8720 printf "%s\n" "$LD" >&6; }
8721 else
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 printf "%s\n" "no" >&6; }
8724 fi
8725 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8727 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8728 if test ${acl_cv_prog_gnu_ld+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else case e in #(
8732 e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8733 case `$LD -v 2>&1 </dev/null` in
8734 *GNU* | *'with BFD'*)
8735 acl_cv_prog_gnu_ld=yes ;;
8736 *)
8737 acl_cv_prog_gnu_ld=no ;;
8738 esac ;;
8739 esac
8740 fi
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8742 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8743 with_gnu_ld=$acl_cv_prog_gnu_ld
8744
8745
8746
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8748 printf %s "checking for shared library run path origin... " >&6; }
8749 if test ${acl_cv_rpath+y}
8750 then :
8751 printf %s "(cached) " >&6
8752 else case e in #(
8753 e)
8754 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8755 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8756 . ./conftest.sh
8757 rm -f ./conftest.sh
8758 acl_cv_rpath=done
8759 ;;
8760 esac
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8763 printf "%s\n" "$acl_cv_rpath" >&6; }
8764 wl="$acl_cv_wl"
8765 libext="$acl_cv_libext"
8766 shlibext="$acl_cv_shlibext"
8767 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8768 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8769 hardcode_direct="$acl_cv_hardcode_direct"
8770 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8771 # Check whether --enable-rpath was given.
8772 if test ${enable_rpath+y}
8773 then :
8774 enableval=$enable_rpath; :
8775 else case e in #(
8776 e) enable_rpath=yes ;;
8777 esac
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786
8787 use_additional=yes
8788
8789 acl_save_prefix="$prefix"
8790 prefix="$acl_final_prefix"
8791 acl_save_exec_prefix="$exec_prefix"
8792 exec_prefix="$acl_final_exec_prefix"
8793
8794 eval additional_includedir=\"$includedir\"
8795 eval additional_libdir=\"$libdir\"
8796
8797 exec_prefix="$acl_save_exec_prefix"
8798 prefix="$acl_save_prefix"
8799
8800
8801 # Check whether --with-libiconv-prefix was given.
8802 if test ${with_libiconv_prefix+y}
8803 then :
8804 withval=$with_libiconv_prefix;
8805 if test "X$withval" = "Xno"; then
8806 use_additional=no
8807 else
8808 if test "X$withval" = "X"; then
8809
8810 acl_save_prefix="$prefix"
8811 prefix="$acl_final_prefix"
8812 acl_save_exec_prefix="$exec_prefix"
8813 exec_prefix="$acl_final_exec_prefix"
8814
8815 eval additional_includedir=\"$includedir\"
8816 eval additional_libdir=\"$libdir\"
8817
8818 exec_prefix="$acl_save_exec_prefix"
8819 prefix="$acl_save_prefix"
8820
8821 else
8822 additional_includedir="$withval/include"
8823 additional_libdir="$withval/lib"
8824 fi
8825 fi
8826
8827 fi
8828
8829 LIBICONV=
8830 LTLIBICONV=
8831 INCICONV=
8832 rpathdirs=
8833 ltrpathdirs=
8834 names_already_handled=
8835 names_next_round='iconv '
8836 while test -n "$names_next_round"; do
8837 names_this_round="$names_next_round"
8838 names_next_round=
8839 for name in $names_this_round; do
8840 already_handled=
8841 for n in $names_already_handled; do
8842 if test "$n" = "$name"; then
8843 already_handled=yes
8844 break
8845 fi
8846 done
8847 if test -z "$already_handled"; then
8848 names_already_handled="$names_already_handled $name"
8849 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8850 eval value=\"\$HAVE_LIB$uppername\"
8851 if test -n "$value"; then
8852 if test "$value" = yes; then
8853 eval value=\"\$LIB$uppername\"
8854 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8855 eval value=\"\$LTLIB$uppername\"
8856 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8857 else
8858 :
8859 fi
8860 else
8861 found_dir=
8862 found_la=
8863 found_so=
8864 found_a=
8865 if test $use_additional = yes; then
8866 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8867 found_dir="$additional_libdir"
8868 found_so="$additional_libdir/lib$name.$shlibext"
8869 if test -f "$additional_libdir/lib$name.la"; then
8870 found_la="$additional_libdir/lib$name.la"
8871 fi
8872 else
8873 if test -f "$additional_libdir/lib$name.$libext"; then
8874 found_dir="$additional_libdir"
8875 found_a="$additional_libdir/lib$name.$libext"
8876 if test -f "$additional_libdir/lib$name.la"; then
8877 found_la="$additional_libdir/lib$name.la"
8878 fi
8879 fi
8880 fi
8881 fi
8882 if test "X$found_dir" = "X"; then
8883 for x in $LDFLAGS $LTLIBICONV; do
8884
8885 acl_save_prefix="$prefix"
8886 prefix="$acl_final_prefix"
8887 acl_save_exec_prefix="$exec_prefix"
8888 exec_prefix="$acl_final_exec_prefix"
8889 eval x=\"$x\"
8890 exec_prefix="$acl_save_exec_prefix"
8891 prefix="$acl_save_prefix"
8892
8893 case "$x" in
8894 -L*)
8895 dir=`echo "X$x" | sed -e 's/^X-L//'`
8896 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8897 found_dir="$dir"
8898 found_so="$dir/lib$name.$shlibext"
8899 if test -f "$dir/lib$name.la"; then
8900 found_la="$dir/lib$name.la"
8901 fi
8902 else
8903 if test -f "$dir/lib$name.$libext"; then
8904 found_dir="$dir"
8905 found_a="$dir/lib$name.$libext"
8906 if test -f "$dir/lib$name.la"; then
8907 found_la="$dir/lib$name.la"
8908 fi
8909 fi
8910 fi
8911 ;;
8912 esac
8913 if test "X$found_dir" != "X"; then
8914 break
8915 fi
8916 done
8917 fi
8918 if test "X$found_dir" != "X"; then
8919 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8920 if test "X$found_so" != "X"; then
8921 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8923 else
8924 haveit=
8925 for x in $ltrpathdirs; do
8926 if test "X$x" = "X$found_dir"; then
8927 haveit=yes
8928 break
8929 fi
8930 done
8931 if test -z "$haveit"; then
8932 ltrpathdirs="$ltrpathdirs $found_dir"
8933 fi
8934 if test "$hardcode_direct" = yes; then
8935 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8936 else
8937 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8938 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8939 haveit=
8940 for x in $rpathdirs; do
8941 if test "X$x" = "X$found_dir"; then
8942 haveit=yes
8943 break
8944 fi
8945 done
8946 if test -z "$haveit"; then
8947 rpathdirs="$rpathdirs $found_dir"
8948 fi
8949 else
8950 haveit=
8951 for x in $LDFLAGS $LIBICONV; do
8952
8953 acl_save_prefix="$prefix"
8954 prefix="$acl_final_prefix"
8955 acl_save_exec_prefix="$exec_prefix"
8956 exec_prefix="$acl_final_exec_prefix"
8957 eval x=\"$x\"
8958 exec_prefix="$acl_save_exec_prefix"
8959 prefix="$acl_save_prefix"
8960
8961 if test "X$x" = "X-L$found_dir"; then
8962 haveit=yes
8963 break
8964 fi
8965 done
8966 if test -z "$haveit"; then
8967 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8968 fi
8969 if test "$hardcode_minus_L" != no; then
8970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8971 else
8972 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8973 fi
8974 fi
8975 fi
8976 fi
8977 else
8978 if test "X$found_a" != "X"; then
8979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8980 else
8981 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8982 fi
8983 fi
8984 additional_includedir=
8985 case "$found_dir" in
8986 */lib | */lib/)
8987 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8988 additional_includedir="$basedir/include"
8989 ;;
8990 esac
8991 if test "X$additional_includedir" != "X"; then
8992 if test "X$additional_includedir" != "X/usr/include"; then
8993 haveit=
8994 if test "X$additional_includedir" = "X/usr/local/include"; then
8995 if test -n "$GCC"; then
8996 case $host_os in
8997 linux*) haveit=yes;;
8998 esac
8999 fi
9000 fi
9001 if test -z "$haveit"; then
9002 for x in $CPPFLAGS $INCICONV; do
9003
9004 acl_save_prefix="$prefix"
9005 prefix="$acl_final_prefix"
9006 acl_save_exec_prefix="$exec_prefix"
9007 exec_prefix="$acl_final_exec_prefix"
9008 eval x=\"$x\"
9009 exec_prefix="$acl_save_exec_prefix"
9010 prefix="$acl_save_prefix"
9011
9012 if test "X$x" = "X-I$additional_includedir"; then
9013 haveit=yes
9014 break
9015 fi
9016 done
9017 if test -z "$haveit"; then
9018 if test -d "$additional_includedir"; then
9019 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9020 fi
9021 fi
9022 fi
9023 fi
9024 fi
9025 if test -n "$found_la"; then
9026 save_libdir="$libdir"
9027 case "$found_la" in
9028 */* | *\\*) . "$found_la" ;;
9029 *) . "./$found_la" ;;
9030 esac
9031 libdir="$save_libdir"
9032 for dep in $dependency_libs; do
9033 case "$dep" in
9034 -L*)
9035 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9036 if test "X$additional_libdir" != "X/usr/lib"; then
9037 haveit=
9038 if test "X$additional_libdir" = "X/usr/local/lib"; then
9039 if test -n "$GCC"; then
9040 case $host_os in
9041 linux*) haveit=yes;;
9042 esac
9043 fi
9044 fi
9045 if test -z "$haveit"; then
9046 haveit=
9047 for x in $LDFLAGS $LIBICONV; do
9048
9049 acl_save_prefix="$prefix"
9050 prefix="$acl_final_prefix"
9051 acl_save_exec_prefix="$exec_prefix"
9052 exec_prefix="$acl_final_exec_prefix"
9053 eval x=\"$x\"
9054 exec_prefix="$acl_save_exec_prefix"
9055 prefix="$acl_save_prefix"
9056
9057 if test "X$x" = "X-L$additional_libdir"; then
9058 haveit=yes
9059 break
9060 fi
9061 done
9062 if test -z "$haveit"; then
9063 if test -d "$additional_libdir"; then
9064 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9065 fi
9066 fi
9067 haveit=
9068 for x in $LDFLAGS $LTLIBICONV; do
9069
9070 acl_save_prefix="$prefix"
9071 prefix="$acl_final_prefix"
9072 acl_save_exec_prefix="$exec_prefix"
9073 exec_prefix="$acl_final_exec_prefix"
9074 eval x=\"$x\"
9075 exec_prefix="$acl_save_exec_prefix"
9076 prefix="$acl_save_prefix"
9077
9078 if test "X$x" = "X-L$additional_libdir"; then
9079 haveit=yes
9080 break
9081 fi
9082 done
9083 if test -z "$haveit"; then
9084 if test -d "$additional_libdir"; then
9085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9086 fi
9087 fi
9088 fi
9089 fi
9090 ;;
9091 -R*)
9092 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9093 if test "$enable_rpath" != no; then
9094 haveit=
9095 for x in $rpathdirs; do
9096 if test "X$x" = "X$dir"; then
9097 haveit=yes
9098 break
9099 fi
9100 done
9101 if test -z "$haveit"; then
9102 rpathdirs="$rpathdirs $dir"
9103 fi
9104 haveit=
9105 for x in $ltrpathdirs; do
9106 if test "X$x" = "X$dir"; then
9107 haveit=yes
9108 break
9109 fi
9110 done
9111 if test -z "$haveit"; then
9112 ltrpathdirs="$ltrpathdirs $dir"
9113 fi
9114 fi
9115 ;;
9116 -l*)
9117 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9118 ;;
9119 *.la)
9120 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9121 ;;
9122 *)
9123 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9124 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9125 ;;
9126 esac
9127 done
9128 fi
9129 else
9130 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9132 fi
9133 fi
9134 fi
9135 done
9136 done
9137 if test "X$rpathdirs" != "X"; then
9138 if test -n "$hardcode_libdir_separator"; then
9139 alldirs=
9140 for found_dir in $rpathdirs; do
9141 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9142 done
9143 acl_save_libdir="$libdir"
9144 libdir="$alldirs"
9145 eval flag=\"$hardcode_libdir_flag_spec\"
9146 libdir="$acl_save_libdir"
9147 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9148 else
9149 for found_dir in $rpathdirs; do
9150 acl_save_libdir="$libdir"
9151 libdir="$found_dir"
9152 eval flag=\"$hardcode_libdir_flag_spec\"
9153 libdir="$acl_save_libdir"
9154 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9155 done
9156 fi
9157 fi
9158 if test "X$ltrpathdirs" != "X"; then
9159 for found_dir in $ltrpathdirs; do
9160 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9161 done
9162 fi
9163
9164
9165
9166
9167
9168
9169
9170
9171 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9172 if test "x$ac_cv_type_ptrdiff_t" = xyes
9173 then :
9174
9175 else case e in #(
9176 e)
9177 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
9178
9179 ;;
9180 esac
9181 fi
9182
9183 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
9184 if test "x$ac_cv_header_argz_h" = xyes
9185 then :
9186 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
9187
9188 fi
9189 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
9190 if test "x$ac_cv_header_limits_h" = xyes
9191 then :
9192 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
9193
9194 fi
9195 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
9196 if test "x$ac_cv_header_locale_h" = xyes
9197 then :
9198 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
9199
9200 fi
9201 ac_fn_c_check_header_compile "$LINENO" "nl_types.h" "ac_cv_header_nl_types_h" "$ac_includes_default"
9202 if test "x$ac_cv_header_nl_types_h" = xyes
9203 then :
9204 printf "%s\n" "#define HAVE_NL_TYPES_H 1" >>confdefs.h
9205
9206 fi
9207 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
9208 if test "x$ac_cv_header_malloc_h" = xyes
9209 then :
9210 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
9211
9212 fi
9213 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
9214 if test "x$ac_cv_header_stddef_h" = xyes
9215 then :
9216 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
9217
9218 fi
9219 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9220 if test "x$ac_cv_header_stdlib_h" = xyes
9221 then :
9222 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
9223
9224 fi
9225 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
9226 if test "x$ac_cv_header_string_h" = xyes
9227 then :
9228 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
9229
9230 fi
9231 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9232 if test "x$ac_cv_header_unistd_h" = xyes
9233 then :
9234 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
9235
9236 fi
9237 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
9238 if test "x$ac_cv_header_sys_param_h" = xyes
9239 then :
9240 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
9241
9242 fi
9243
9244 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
9245 if test "x$ac_cv_func_asprintf" = xyes
9246 then :
9247 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
9248
9249 fi
9250 ac_fn_c_check_func "$LINENO" "fwprintf" "ac_cv_func_fwprintf"
9251 if test "x$ac_cv_func_fwprintf" = xyes
9252 then :
9253 printf "%s\n" "#define HAVE_FWPRINTF 1" >>confdefs.h
9254
9255 fi
9256 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
9257 if test "x$ac_cv_func_getcwd" = xyes
9258 then :
9259 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
9260
9261 fi
9262 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
9263 if test "x$ac_cv_func_getegid" = xyes
9264 then :
9265 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
9266
9267 fi
9268 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
9269 if test "x$ac_cv_func_geteuid" = xyes
9270 then :
9271 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
9272
9273 fi
9274 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
9275 if test "x$ac_cv_func_getgid" = xyes
9276 then :
9277 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
9278
9279 fi
9280 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
9281 if test "x$ac_cv_func_getuid" = xyes
9282 then :
9283 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
9284
9285 fi
9286 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
9287 if test "x$ac_cv_func_mempcpy" = xyes
9288 then :
9289 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
9290
9291 fi
9292 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
9293 if test "x$ac_cv_func_munmap" = xyes
9294 then :
9295 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
9296
9297 fi
9298 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
9299 if test "x$ac_cv_func_putenv" = xyes
9300 then :
9301 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
9302
9303 fi
9304 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
9305 if test "x$ac_cv_func_setenv" = xyes
9306 then :
9307 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
9308
9309 fi
9310 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
9311 if test "x$ac_cv_func_setlocale" = xyes
9312 then :
9313 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
9314
9315 fi
9316 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
9317 if test "x$ac_cv_func_snprintf" = xyes
9318 then :
9319 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
9320
9321 fi
9322 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
9323 if test "x$ac_cv_func_stpcpy" = xyes
9324 then :
9325 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
9326
9327 fi
9328 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
9329 if test "x$ac_cv_func_strcasecmp" = xyes
9330 then :
9331 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
9332
9333 fi
9334 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
9335 if test "x$ac_cv_func_strdup" = xyes
9336 then :
9337 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
9338
9339 fi
9340 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
9341 if test "x$ac_cv_func_strtoul" = xyes
9342 then :
9343 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
9344
9345 fi
9346 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
9347 if test "x$ac_cv_func_tsearch" = xyes
9348 then :
9349 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
9350
9351 fi
9352 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
9353 if test "x$ac_cv_func_wcslen" = xyes
9354 then :
9355 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
9356
9357 fi
9358 ac_fn_c_check_func "$LINENO" "__argz_count" "ac_cv_func___argz_count"
9359 if test "x$ac_cv_func___argz_count" = xyes
9360 then :
9361 printf "%s\n" "#define HAVE___ARGZ_COUNT 1" >>confdefs.h
9362
9363 fi
9364 ac_fn_c_check_func "$LINENO" "__argz_stringify" "ac_cv_func___argz_stringify"
9365 if test "x$ac_cv_func___argz_stringify" = xyes
9366 then :
9367 printf "%s\n" "#define HAVE___ARGZ_STRINGIFY 1" >>confdefs.h
9368
9369 fi
9370 ac_fn_c_check_func "$LINENO" "__argz_next" "ac_cv_func___argz_next"
9371 if test "x$ac_cv_func___argz_next" = xyes
9372 then :
9373 printf "%s\n" "#define HAVE___ARGZ_NEXT 1" >>confdefs.h
9374
9375 fi
9376 ac_fn_c_check_func "$LINENO" "__fsetlocking" "ac_cv_func___fsetlocking"
9377 if test "x$ac_cv_func___fsetlocking" = xyes
9378 then :
9379 printf "%s\n" "#define HAVE___FSETLOCKING 1" >>confdefs.h
9380
9381 fi
9382
9383
9384
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
9386 printf %s "checking whether _snprintf is declared... " >&6; }
9387 if test ${ac_cv_have_decl__snprintf+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else case e in #(
9391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <stdio.h>
9394 int
9395 main (void)
9396 {
9397
9398 #ifndef _snprintf
9399 char *p = (char *) _snprintf;
9400 #endif
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_compile "$LINENO"
9407 then :
9408 ac_cv_have_decl__snprintf=yes
9409 else case e in #(
9410 e) ac_cv_have_decl__snprintf=no ;;
9411 esac
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9414 esac
9415 fi
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
9417 printf "%s\n" "$ac_cv_have_decl__snprintf" >&6; }
9418 if test $ac_cv_have_decl__snprintf = yes; then
9419 gt_value=1
9420 else
9421 gt_value=0
9422 fi
9423
9424 printf "%s\n" "#define HAVE_DECL__SNPRINTF $gt_value" >>confdefs.h
9425
9426
9427
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
9429 printf %s "checking whether _snwprintf is declared... " >&6; }
9430 if test ${ac_cv_have_decl__snwprintf+y}
9431 then :
9432 printf %s "(cached) " >&6
9433 else case e in #(
9434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <stdio.h>
9437 int
9438 main (void)
9439 {
9440
9441 #ifndef _snwprintf
9442 char *p = (char *) _snwprintf;
9443 #endif
9444
9445 ;
9446 return 0;
9447 }
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"
9450 then :
9451 ac_cv_have_decl__snwprintf=yes
9452 else case e in #(
9453 e) ac_cv_have_decl__snwprintf=no ;;
9454 esac
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9457 esac
9458 fi
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
9460 printf "%s\n" "$ac_cv_have_decl__snwprintf" >&6; }
9461 if test $ac_cv_have_decl__snwprintf = yes; then
9462 gt_value=1
9463 else
9464 gt_value=0
9465 fi
9466
9467 printf "%s\n" "#define HAVE_DECL__SNWPRINTF $gt_value" >>confdefs.h
9468
9469
9470
9471
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
9473 printf %s "checking whether feof_unlocked is declared... " >&6; }
9474 if test ${ac_cv_have_decl_feof_unlocked+y}
9475 then :
9476 printf %s "(cached) " >&6
9477 else case e in #(
9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <stdio.h>
9481 int
9482 main (void)
9483 {
9484
9485 #ifndef feof_unlocked
9486 char *p = (char *) feof_unlocked;
9487 #endif
9488
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_compile "$LINENO"
9494 then :
9495 ac_cv_have_decl_feof_unlocked=yes
9496 else case e in #(
9497 e) ac_cv_have_decl_feof_unlocked=no ;;
9498 esac
9499 fi
9500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9501 esac
9502 fi
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
9504 printf "%s\n" "$ac_cv_have_decl_feof_unlocked" >&6; }
9505 if test $ac_cv_have_decl_feof_unlocked = yes; then
9506 gt_value=1
9507 else
9508 gt_value=0
9509 fi
9510
9511 printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $gt_value" >>confdefs.h
9512
9513
9514
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
9516 printf %s "checking whether fgets_unlocked is declared... " >&6; }
9517 if test ${ac_cv_have_decl_fgets_unlocked+y}
9518 then :
9519 printf %s "(cached) " >&6
9520 else case e in #(
9521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #include <stdio.h>
9524 int
9525 main (void)
9526 {
9527
9528 #ifndef fgets_unlocked
9529 char *p = (char *) fgets_unlocked;
9530 #endif
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"
9537 then :
9538 ac_cv_have_decl_fgets_unlocked=yes
9539 else case e in #(
9540 e) ac_cv_have_decl_fgets_unlocked=no ;;
9541 esac
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9544 esac
9545 fi
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
9547 printf "%s\n" "$ac_cv_have_decl_fgets_unlocked" >&6; }
9548 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9549 gt_value=1
9550 else
9551 gt_value=0
9552 fi
9553
9554 printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $gt_value" >>confdefs.h
9555
9556
9557
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
9559 printf %s "checking whether getc_unlocked is declared... " >&6; }
9560 if test ${ac_cv_have_decl_getc_unlocked+y}
9561 then :
9562 printf %s "(cached) " >&6
9563 else case e in #(
9564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 #include <stdio.h>
9567 int
9568 main (void)
9569 {
9570
9571 #ifndef getc_unlocked
9572 char *p = (char *) getc_unlocked;
9573 #endif
9574
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"
9580 then :
9581 ac_cv_have_decl_getc_unlocked=yes
9582 else case e in #(
9583 e) ac_cv_have_decl_getc_unlocked=no ;;
9584 esac
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9587 esac
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
9590 printf "%s\n" "$ac_cv_have_decl_getc_unlocked" >&6; }
9591 if test $ac_cv_have_decl_getc_unlocked = yes; then
9592 gt_value=1
9593 else
9594 gt_value=0
9595 fi
9596
9597 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $gt_value" >>confdefs.h
9598
9599
9600
9601 case $gt_cv_func_printf_posix in
9602 *yes) HAVE_POSIX_PRINTF=1 ;;
9603 *) HAVE_POSIX_PRINTF=0 ;;
9604 esac
9605
9606 if test "$ac_cv_func_asprintf" = yes; then
9607 HAVE_ASPRINTF=1
9608 else
9609 HAVE_ASPRINTF=0
9610 fi
9611
9612 if test "$ac_cv_func_snprintf" = yes; then
9613 HAVE_SNPRINTF=1
9614 else
9615 HAVE_SNPRINTF=0
9616 fi
9617
9618 if test "$ac_cv_func_wprintf" = yes; then
9619 HAVE_WPRINTF=1
9620 else
9621 HAVE_WPRINTF=0
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630 am_save_CPPFLAGS="$CPPFLAGS"
9631
9632 for element in $INCICONV; do
9633 haveit=
9634 for x in $CPPFLAGS; do
9635
9636 acl_save_prefix="$prefix"
9637 prefix="$acl_final_prefix"
9638 acl_save_exec_prefix="$exec_prefix"
9639 exec_prefix="$acl_final_exec_prefix"
9640 eval x=\"$x\"
9641 exec_prefix="$acl_save_exec_prefix"
9642 prefix="$acl_save_prefix"
9643
9644 if test "X$x" = "X$element"; then
9645 haveit=yes
9646 break
9647 fi
9648 done
9649 if test -z "$haveit"; then
9650 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9651 fi
9652 done
9653
9654
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9656 printf %s "checking for iconv... " >&6; }
9657 if test ${am_cv_func_iconv+y}
9658 then :
9659 printf %s "(cached) " >&6
9660 else case e in #(
9661 e)
9662 am_cv_func_iconv="no, consider installing GNU libiconv"
9663 am_cv_lib_iconv=no
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 #include <stdlib.h>
9667 #include <iconv.h>
9668 int
9669 main (void)
9670 {
9671 iconv_t cd = iconv_open("","");
9672 iconv(cd,NULL,NULL,NULL,NULL);
9673 iconv_close(cd);
9674 ;
9675 return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_link "$LINENO"
9679 then :
9680 am_cv_func_iconv=yes
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9683 conftest$ac_exeext conftest.$ac_ext
9684 if test "$am_cv_func_iconv" != yes; then
9685 am_save_LIBS="$LIBS"
9686 LIBS="$LIBS $LIBICONV"
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 #include <stdlib.h>
9690 #include <iconv.h>
9691 int
9692 main (void)
9693 {
9694 iconv_t cd = iconv_open("","");
9695 iconv(cd,NULL,NULL,NULL,NULL);
9696 iconv_close(cd);
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 if ac_fn_c_try_link "$LINENO"
9702 then :
9703 am_cv_lib_iconv=yes
9704 am_cv_func_iconv=yes
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9707 conftest$ac_exeext conftest.$ac_ext
9708 LIBS="$am_save_LIBS"
9709 fi
9710 ;;
9711 esac
9712 fi
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9714 printf "%s\n" "$am_cv_func_iconv" >&6; }
9715 if test "$am_cv_func_iconv" = yes; then
9716
9717 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
9718
9719 fi
9720 if test "$am_cv_lib_iconv" = yes; then
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9722 printf %s "checking how to link with libiconv... " >&6; }
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9724 printf "%s\n" "$LIBICONV" >&6; }
9725 else
9726 CPPFLAGS="$am_save_CPPFLAGS"
9727 LIBICONV=
9728 LTLIBICONV=
9729 fi
9730
9731
9732
9733 if test "$am_cv_func_iconv" = yes; then
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9735 printf %s "checking for iconv declaration... " >&6; }
9736 if test ${am_cv_proto_iconv+y}
9737 then :
9738 printf %s "(cached) " >&6
9739 else case e in #(
9740 e)
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743
9744 #include <stdlib.h>
9745 #include <iconv.h>
9746 extern
9747 #ifdef __cplusplus
9748 "C"
9749 #endif
9750 #if defined(__STDC__) || defined(__cplusplus)
9751 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9752 #else
9753 size_t iconv();
9754 #endif
9755
9756 int
9757 main (void)
9758 {
9759
9760 ;
9761 return 0;
9762 }
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"
9765 then :
9766 am_cv_proto_iconv_arg1=""
9767 else case e in #(
9768 e) am_cv_proto_iconv_arg1="const" ;;
9769 esac
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9772 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" ;;
9773 esac
9774 fi
9775
9776 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9778 }$am_cv_proto_iconv" >&5
9779 printf "%s\n" "${ac_t:-
9780 }$am_cv_proto_iconv" >&6; }
9781
9782 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
9783
9784 fi
9785
9786
9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9788 printf %s "checking for nl_langinfo and CODESET... " >&6; }
9789 if test ${am_cv_langinfo_codeset+y}
9790 then :
9791 printf %s "(cached) " >&6
9792 else case e in #(
9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 #include <langinfo.h>
9796 int
9797 main (void)
9798 {
9799 char* cs = nl_langinfo(CODESET);
9800 ;
9801 return 0;
9802 }
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"
9805 then :
9806 am_cv_langinfo_codeset=yes
9807 else case e in #(
9808 e) am_cv_langinfo_codeset=no ;;
9809 esac
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9812 conftest$ac_exeext conftest.$ac_ext
9813 ;;
9814 esac
9815 fi
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9817 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
9818 if test $am_cv_langinfo_codeset = yes; then
9819
9820 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9821
9822 fi
9823
9824 if test $ac_cv_header_locale_h = yes; then
9825
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9827 printf %s "checking for LC_MESSAGES... " >&6; }
9828 if test ${am_cv_val_LC_MESSAGES+y}
9829 then :
9830 printf %s "(cached) " >&6
9831 else case e in #(
9832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 #include <locale.h>
9835 int
9836 main (void)
9837 {
9838 return LC_MESSAGES
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"
9844 then :
9845 am_cv_val_LC_MESSAGES=yes
9846 else case e in #(
9847 e) am_cv_val_LC_MESSAGES=no ;;
9848 esac
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9851 conftest$ac_exeext conftest.$ac_ext ;;
9852 esac
9853 fi
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9855 printf "%s\n" "$am_cv_val_LC_MESSAGES" >&6; }
9856 if test $am_cv_val_LC_MESSAGES = yes; then
9857
9858 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9859
9860 fi
9861
9862 fi
9863
9864 for ac_prog in bison
9865 do
9866 # Extract the first word of "$ac_prog", so it can be a program name with args.
9867 set dummy $ac_prog; ac_word=$2
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 printf %s "checking for $ac_word... " >&6; }
9870 if test ${ac_cv_prog_INTLBISON+y}
9871 then :
9872 printf %s "(cached) " >&6
9873 else case e in #(
9874 e) if test -n "$INTLBISON"; then
9875 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880 IFS=$as_save_IFS
9881 case $as_dir in #(((
9882 '') as_dir=./ ;;
9883 */) ;;
9884 *) as_dir=$as_dir/ ;;
9885 esac
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_INTLBISON="$ac_prog"
9889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi ;;
9897 esac
9898 fi
9899 INTLBISON=$ac_cv_prog_INTLBISON
9900 if test -n "$INTLBISON"; then
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9902 printf "%s\n" "$INTLBISON" >&6; }
9903 else
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 printf "%s\n" "no" >&6; }
9906 fi
9907
9908
9909 test -n "$INTLBISON" && break
9910 done
9911
9912 if test -z "$INTLBISON"; then
9913 ac_verc_fail=yes
9914 else
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9916 printf %s "checking version of bison... " >&6; }
9917 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9918 case $ac_prog_version in
9919 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9920 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9921 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9922 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9923 esac
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9925 printf "%s\n" "$ac_prog_version" >&6; }
9926 fi
9927 if test $ac_verc_fail = yes; then
9928 INTLBISON=:
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9947 printf %s "checking whether NLS is requested... " >&6; }
9948 # Check whether --enable-nls was given.
9949 if test ${enable_nls+y}
9950 then :
9951 enableval=$enable_nls; USE_NLS=$enableval
9952 else case e in #(
9953 e) USE_NLS=yes ;;
9954 esac
9955 fi
9956
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9958 printf "%s\n" "$USE_NLS" >&6; }
9959
9960
9961
9962
9963 BUILD_INCLUDED_LIBINTL=no
9964 USE_INCLUDED_LIBINTL=no
9965
9966 LIBINTL=
9967 LTLIBINTL=
9968 POSUB=
9969
9970 if test "$USE_NLS" = "yes"; then
9971 gt_use_preinstalled_gnugettext=no
9972
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9974 printf %s "checking whether included gettext is requested... " >&6; }
9975
9976 # Check whether --with-included-gettext was given.
9977 if test ${with_included_gettext+y}
9978 then :
9979 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9980 else case e in #(
9981 e) nls_cv_force_use_gnu_gettext=no ;;
9982 esac
9983 fi
9984
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9986 printf "%s\n" "$nls_cv_force_use_gnu_gettext" >&6; }
9987
9988 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9989 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9990
9991
9992
9993
9994
9995
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9997 printf %s "checking for GNU gettext in libc... " >&6; }
9998 if test ${gt_cv_func_gnugettext1_libc+y}
9999 then :
10000 printf %s "(cached) " >&6
10001 else case e in #(
10002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 #include <libintl.h>
10005 extern int _nl_msg_cat_cntr;
10006 extern int *_nl_domain_bindings;
10007 int
10008 main (void)
10009 {
10010 bindtextdomain ("", "");
10011 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10012 ;
10013 return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"
10017 then :
10018 gt_cv_func_gnugettext1_libc=yes
10019 else case e in #(
10020 e) gt_cv_func_gnugettext1_libc=no ;;
10021 esac
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10024 conftest$ac_exeext conftest.$ac_ext ;;
10025 esac
10026 fi
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
10028 printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
10029
10030 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10031
10032
10033
10034 use_additional=yes
10035
10036 acl_save_prefix="$prefix"
10037 prefix="$acl_final_prefix"
10038 acl_save_exec_prefix="$exec_prefix"
10039 exec_prefix="$acl_final_exec_prefix"
10040
10041 eval additional_includedir=\"$includedir\"
10042 eval additional_libdir=\"$libdir\"
10043
10044 exec_prefix="$acl_save_exec_prefix"
10045 prefix="$acl_save_prefix"
10046
10047
10048 # Check whether --with-libintl-prefix was given.
10049 if test ${with_libintl_prefix+y}
10050 then :
10051 withval=$with_libintl_prefix;
10052 if test "X$withval" = "Xno"; then
10053 use_additional=no
10054 else
10055 if test "X$withval" = "X"; then
10056
10057 acl_save_prefix="$prefix"
10058 prefix="$acl_final_prefix"
10059 acl_save_exec_prefix="$exec_prefix"
10060 exec_prefix="$acl_final_exec_prefix"
10061
10062 eval additional_includedir=\"$includedir\"
10063 eval additional_libdir=\"$libdir\"
10064
10065 exec_prefix="$acl_save_exec_prefix"
10066 prefix="$acl_save_prefix"
10067
10068 else
10069 additional_includedir="$withval/include"
10070 additional_libdir="$withval/lib"
10071 fi
10072 fi
10073
10074 fi
10075
10076 LIBINTL=
10077 LTLIBINTL=
10078 INCINTL=
10079 rpathdirs=
10080 ltrpathdirs=
10081 names_already_handled=
10082 names_next_round='intl '
10083 while test -n "$names_next_round"; do
10084 names_this_round="$names_next_round"
10085 names_next_round=
10086 for name in $names_this_round; do
10087 already_handled=
10088 for n in $names_already_handled; do
10089 if test "$n" = "$name"; then
10090 already_handled=yes
10091 break
10092 fi
10093 done
10094 if test -z "$already_handled"; then
10095 names_already_handled="$names_already_handled $name"
10096 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10097 eval value=\"\$HAVE_LIB$uppername\"
10098 if test -n "$value"; then
10099 if test "$value" = yes; then
10100 eval value=\"\$LIB$uppername\"
10101 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10102 eval value=\"\$LTLIB$uppername\"
10103 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10104 else
10105 :
10106 fi
10107 else
10108 found_dir=
10109 found_la=
10110 found_so=
10111 found_a=
10112 if test $use_additional = yes; then
10113 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10114 found_dir="$additional_libdir"
10115 found_so="$additional_libdir/lib$name.$shlibext"
10116 if test -f "$additional_libdir/lib$name.la"; then
10117 found_la="$additional_libdir/lib$name.la"
10118 fi
10119 else
10120 if test -f "$additional_libdir/lib$name.$libext"; then
10121 found_dir="$additional_libdir"
10122 found_a="$additional_libdir/lib$name.$libext"
10123 if test -f "$additional_libdir/lib$name.la"; then
10124 found_la="$additional_libdir/lib$name.la"
10125 fi
10126 fi
10127 fi
10128 fi
10129 if test "X$found_dir" = "X"; then
10130 for x in $LDFLAGS $LTLIBINTL; do
10131
10132 acl_save_prefix="$prefix"
10133 prefix="$acl_final_prefix"
10134 acl_save_exec_prefix="$exec_prefix"
10135 exec_prefix="$acl_final_exec_prefix"
10136 eval x=\"$x\"
10137 exec_prefix="$acl_save_exec_prefix"
10138 prefix="$acl_save_prefix"
10139
10140 case "$x" in
10141 -L*)
10142 dir=`echo "X$x" | sed -e 's/^X-L//'`
10143 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10144 found_dir="$dir"
10145 found_so="$dir/lib$name.$shlibext"
10146 if test -f "$dir/lib$name.la"; then
10147 found_la="$dir/lib$name.la"
10148 fi
10149 else
10150 if test -f "$dir/lib$name.$libext"; then
10151 found_dir="$dir"
10152 found_a="$dir/lib$name.$libext"
10153 if test -f "$dir/lib$name.la"; then
10154 found_la="$dir/lib$name.la"
10155 fi
10156 fi
10157 fi
10158 ;;
10159 esac
10160 if test "X$found_dir" != "X"; then
10161 break
10162 fi
10163 done
10164 fi
10165 if test "X$found_dir" != "X"; then
10166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10167 if test "X$found_so" != "X"; then
10168 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10169 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10170 else
10171 haveit=
10172 for x in $ltrpathdirs; do
10173 if test "X$x" = "X$found_dir"; then
10174 haveit=yes
10175 break
10176 fi
10177 done
10178 if test -z "$haveit"; then
10179 ltrpathdirs="$ltrpathdirs $found_dir"
10180 fi
10181 if test "$hardcode_direct" = yes; then
10182 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10183 else
10184 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10185 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10186 haveit=
10187 for x in $rpathdirs; do
10188 if test "X$x" = "X$found_dir"; then
10189 haveit=yes
10190 break
10191 fi
10192 done
10193 if test -z "$haveit"; then
10194 rpathdirs="$rpathdirs $found_dir"
10195 fi
10196 else
10197 haveit=
10198 for x in $LDFLAGS $LIBINTL; do
10199
10200 acl_save_prefix="$prefix"
10201 prefix="$acl_final_prefix"
10202 acl_save_exec_prefix="$exec_prefix"
10203 exec_prefix="$acl_final_exec_prefix"
10204 eval x=\"$x\"
10205 exec_prefix="$acl_save_exec_prefix"
10206 prefix="$acl_save_prefix"
10207
10208 if test "X$x" = "X-L$found_dir"; then
10209 haveit=yes
10210 break
10211 fi
10212 done
10213 if test -z "$haveit"; then
10214 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10215 fi
10216 if test "$hardcode_minus_L" != no; then
10217 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10218 else
10219 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10220 fi
10221 fi
10222 fi
10223 fi
10224 else
10225 if test "X$found_a" != "X"; then
10226 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10227 else
10228 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10229 fi
10230 fi
10231 additional_includedir=
10232 case "$found_dir" in
10233 */lib | */lib/)
10234 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10235 additional_includedir="$basedir/include"
10236 ;;
10237 esac
10238 if test "X$additional_includedir" != "X"; then
10239 if test "X$additional_includedir" != "X/usr/include"; then
10240 haveit=
10241 if test "X$additional_includedir" = "X/usr/local/include"; then
10242 if test -n "$GCC"; then
10243 case $host_os in
10244 linux*) haveit=yes;;
10245 esac
10246 fi
10247 fi
10248 if test -z "$haveit"; then
10249 for x in $CPPFLAGS $INCINTL; do
10250
10251 acl_save_prefix="$prefix"
10252 prefix="$acl_final_prefix"
10253 acl_save_exec_prefix="$exec_prefix"
10254 exec_prefix="$acl_final_exec_prefix"
10255 eval x=\"$x\"
10256 exec_prefix="$acl_save_exec_prefix"
10257 prefix="$acl_save_prefix"
10258
10259 if test "X$x" = "X-I$additional_includedir"; then
10260 haveit=yes
10261 break
10262 fi
10263 done
10264 if test -z "$haveit"; then
10265 if test -d "$additional_includedir"; then
10266 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10267 fi
10268 fi
10269 fi
10270 fi
10271 fi
10272 if test -n "$found_la"; then
10273 save_libdir="$libdir"
10274 case "$found_la" in
10275 */* | *\\*) . "$found_la" ;;
10276 *) . "./$found_la" ;;
10277 esac
10278 libdir="$save_libdir"
10279 for dep in $dependency_libs; do
10280 case "$dep" in
10281 -L*)
10282 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10283 if test "X$additional_libdir" != "X/usr/lib"; then
10284 haveit=
10285 if test "X$additional_libdir" = "X/usr/local/lib"; then
10286 if test -n "$GCC"; then
10287 case $host_os in
10288 linux*) haveit=yes;;
10289 esac
10290 fi
10291 fi
10292 if test -z "$haveit"; then
10293 haveit=
10294 for x in $LDFLAGS $LIBINTL; do
10295
10296 acl_save_prefix="$prefix"
10297 prefix="$acl_final_prefix"
10298 acl_save_exec_prefix="$exec_prefix"
10299 exec_prefix="$acl_final_exec_prefix"
10300 eval x=\"$x\"
10301 exec_prefix="$acl_save_exec_prefix"
10302 prefix="$acl_save_prefix"
10303
10304 if test "X$x" = "X-L$additional_libdir"; then
10305 haveit=yes
10306 break
10307 fi
10308 done
10309 if test -z "$haveit"; then
10310 if test -d "$additional_libdir"; then
10311 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10312 fi
10313 fi
10314 haveit=
10315 for x in $LDFLAGS $LTLIBINTL; do
10316
10317 acl_save_prefix="$prefix"
10318 prefix="$acl_final_prefix"
10319 acl_save_exec_prefix="$exec_prefix"
10320 exec_prefix="$acl_final_exec_prefix"
10321 eval x=\"$x\"
10322 exec_prefix="$acl_save_exec_prefix"
10323 prefix="$acl_save_prefix"
10324
10325 if test "X$x" = "X-L$additional_libdir"; then
10326 haveit=yes
10327 break
10328 fi
10329 done
10330 if test -z "$haveit"; then
10331 if test -d "$additional_libdir"; then
10332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10333 fi
10334 fi
10335 fi
10336 fi
10337 ;;
10338 -R*)
10339 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10340 if test "$enable_rpath" != no; then
10341 haveit=
10342 for x in $rpathdirs; do
10343 if test "X$x" = "X$dir"; then
10344 haveit=yes
10345 break
10346 fi
10347 done
10348 if test -z "$haveit"; then
10349 rpathdirs="$rpathdirs $dir"
10350 fi
10351 haveit=
10352 for x in $ltrpathdirs; do
10353 if test "X$x" = "X$dir"; then
10354 haveit=yes
10355 break
10356 fi
10357 done
10358 if test -z "$haveit"; then
10359 ltrpathdirs="$ltrpathdirs $dir"
10360 fi
10361 fi
10362 ;;
10363 -l*)
10364 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10365 ;;
10366 *.la)
10367 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10368 ;;
10369 *)
10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10371 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10372 ;;
10373 esac
10374 done
10375 fi
10376 else
10377 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10379 fi
10380 fi
10381 fi
10382 done
10383 done
10384 if test "X$rpathdirs" != "X"; then
10385 if test -n "$hardcode_libdir_separator"; then
10386 alldirs=
10387 for found_dir in $rpathdirs; do
10388 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10389 done
10390 acl_save_libdir="$libdir"
10391 libdir="$alldirs"
10392 eval flag=\"$hardcode_libdir_flag_spec\"
10393 libdir="$acl_save_libdir"
10394 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10395 else
10396 for found_dir in $rpathdirs; do
10397 acl_save_libdir="$libdir"
10398 libdir="$found_dir"
10399 eval flag=\"$hardcode_libdir_flag_spec\"
10400 libdir="$acl_save_libdir"
10401 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10402 done
10403 fi
10404 fi
10405 if test "X$ltrpathdirs" != "X"; then
10406 for found_dir in $ltrpathdirs; do
10407 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10408 done
10409 fi
10410
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10412 printf %s "checking for GNU gettext in libintl... " >&6; }
10413 if test ${gt_cv_func_gnugettext1_libintl+y}
10414 then :
10415 printf %s "(cached) " >&6
10416 else case e in #(
10417 e) gt_save_CPPFLAGS="$CPPFLAGS"
10418 CPPFLAGS="$CPPFLAGS $INCINTL"
10419 gt_save_LIBS="$LIBS"
10420 LIBS="$LIBS $LIBINTL"
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #include <libintl.h>
10424 extern int _nl_msg_cat_cntr;
10425 extern
10426 #ifdef __cplusplus
10427 "C"
10428 #endif
10429 const char *_nl_expand_alias ();
10430 int
10431 main (void)
10432 {
10433 bindtextdomain ("", "");
10434 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"
10440 then :
10441 gt_cv_func_gnugettext1_libintl=yes
10442 else case e in #(
10443 e) gt_cv_func_gnugettext1_libintl=no ;;
10444 esac
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10447 conftest$ac_exeext conftest.$ac_ext
10448 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10449 LIBS="$LIBS $LIBICONV"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #include <libintl.h>
10453 extern int _nl_msg_cat_cntr;
10454 extern
10455 #ifdef __cplusplus
10456 "C"
10457 #endif
10458 const char *_nl_expand_alias ();
10459 int
10460 main (void)
10461 {
10462 bindtextdomain ("", "");
10463 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"
10469 then :
10470 LIBINTL="$LIBINTL $LIBICONV"
10471 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10472 gt_cv_func_gnugettext1_libintl=yes
10473
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476 conftest$ac_exeext conftest.$ac_ext
10477 fi
10478 CPPFLAGS="$gt_save_CPPFLAGS"
10479 LIBS="$gt_save_LIBS" ;;
10480 esac
10481 fi
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
10483 printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
10484 fi
10485
10486 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10487 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10488 && test "$PACKAGE" != gettext-runtime \
10489 && test "$PACKAGE" != gettext-tools; }; then
10490 gt_use_preinstalled_gnugettext=yes
10491 else
10492 LIBINTL=
10493 LTLIBINTL=
10494 INCINTL=
10495 fi
10496
10497
10498 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10499 nls_cv_use_gnu_gettext=yes
10500 fi
10501 fi
10502
10503 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10504 BUILD_INCLUDED_LIBINTL=yes
10505 USE_INCLUDED_LIBINTL=yes
10506 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10507 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10508 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10509 fi
10510
10511 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10512 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10513 CATOBJEXT=.gmo
10514 fi
10515
10516
10517 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10518 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10519
10520 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10521
10522 else
10523 USE_NLS=no
10524 fi
10525 fi
10526
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10528 printf %s "checking whether to use NLS... " >&6; }
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10530 printf "%s\n" "$USE_NLS" >&6; }
10531 if test "$USE_NLS" = "yes"; then
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10533 printf %s "checking where the gettext function comes from... " >&6; }
10534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10536 gt_source="external libintl"
10537 else
10538 gt_source="libc"
10539 fi
10540 else
10541 gt_source="included intl directory"
10542 fi
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10544 printf "%s\n" "$gt_source" >&6; }
10545 fi
10546
10547 if test "$USE_NLS" = "yes"; then
10548
10549 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10550 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10552 printf %s "checking how to link with libintl... " >&6; }
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10554 printf "%s\n" "$LIBINTL" >&6; }
10555
10556 for element in $INCINTL; do
10557 haveit=
10558 for x in $CPPFLAGS; do
10559
10560 acl_save_prefix="$prefix"
10561 prefix="$acl_final_prefix"
10562 acl_save_exec_prefix="$exec_prefix"
10563 exec_prefix="$acl_final_exec_prefix"
10564 eval x=\"$x\"
10565 exec_prefix="$acl_save_exec_prefix"
10566 prefix="$acl_save_prefix"
10567
10568 if test "X$x" = "X$element"; then
10569 haveit=yes
10570 break
10571 fi
10572 done
10573 if test -z "$haveit"; then
10574 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10575 fi
10576 done
10577
10578 fi
10579
10580
10581 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10582
10583
10584 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10585
10586 fi
10587
10588 POSUB=po
10589 fi
10590
10591
10592 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10593 BUILD_INCLUDED_LIBINTL=yes
10594 fi
10595
10596
10597
10598
10599
10600 nls_cv_header_intl=
10601 nls_cv_header_libgt=
10602
10603 DATADIRNAME=share
10604
10605
10606 INSTOBJEXT=.mo
10607
10608
10609 GENCAT=gencat
10610
10611
10612 if test "$USE_INCLUDED_LIBINTL" = yes; then
10613 INTLOBJS="\$(GETTOBJS)"
10614 fi
10615
10616
10617 INTL_LIBTOOL_SUFFIX_PREFIX=
10618
10619
10620
10621 INTLLIBS="$LIBINTL"
10622
10623
10624
10625
10626
10627
10628
10629
10630 case "$am__api_version" in
10631 1.01234)
10632 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
10633 ;;
10634 *)
10635 ;;
10636 esac
10637
10638 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10639 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10640 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10641 if test -n "0.37"; then
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.37" >&5
10643 printf %s "checking for intltool >= 0.37... " >&6; }
10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
10645 printf "%s\n" "$INTLTOOL_APPLIED_VERSION found" >&6; }
10646 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10647 as_fn_error $? "Your intltool is too old. You need intltool 0.37 or later." "$LINENO" 5
10648 fi
10649
10650 # Extract the first word of "intltool-update", so it can be a program name with args.
10651 set dummy intltool-update; ac_word=$2
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 printf %s "checking for $ac_word... " >&6; }
10654 if test ${ac_cv_path_INTLTOOL_UPDATE+y}
10655 then :
10656 printf %s "(cached) " >&6
10657 else case e in #(
10658 e) case $INTLTOOL_UPDATE in
10659 [\\/]* | ?:[\\/]*)
10660 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
10661 ;;
10662 *)
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666 IFS=$as_save_IFS
10667 case $as_dir in #(((
10668 '') as_dir=./ ;;
10669 */) ;;
10670 *) as_dir=$as_dir/ ;;
10671 esac
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10674 ac_cv_path_INTLTOOL_UPDATE="$as_dir$ac_word$ac_exec_ext"
10675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678 done
10679 done
10680 IFS=$as_save_IFS
10681
10682 ;;
10683 esac ;;
10684 esac
10685 fi
10686 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
10687 if test -n "$INTLTOOL_UPDATE"; then
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
10689 printf "%s\n" "$INTLTOOL_UPDATE" >&6; }
10690 else
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 printf "%s\n" "no" >&6; }
10693 fi
10694
10695
10696 # Extract the first word of "intltool-merge", so it can be a program name with args.
10697 set dummy intltool-merge; ac_word=$2
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 printf %s "checking for $ac_word... " >&6; }
10700 if test ${ac_cv_path_INTLTOOL_MERGE+y}
10701 then :
10702 printf %s "(cached) " >&6
10703 else case e in #(
10704 e) case $INTLTOOL_MERGE in
10705 [\\/]* | ?:[\\/]*)
10706 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
10707 ;;
10708 *)
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710 for as_dir in $PATH
10711 do
10712 IFS=$as_save_IFS
10713 case $as_dir in #(((
10714 '') as_dir=./ ;;
10715 */) ;;
10716 *) as_dir=$as_dir/ ;;
10717 esac
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10720 ac_cv_path_INTLTOOL_MERGE="$as_dir$ac_word$ac_exec_ext"
10721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724 done
10725 done
10726 IFS=$as_save_IFS
10727
10728 ;;
10729 esac ;;
10730 esac
10731 fi
10732 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
10733 if test -n "$INTLTOOL_MERGE"; then
10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
10735 printf "%s\n" "$INTLTOOL_MERGE" >&6; }
10736 else
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 printf "%s\n" "no" >&6; }
10739 fi
10740
10741
10742 # Extract the first word of "intltool-extract", so it can be a program name with args.
10743 set dummy intltool-extract; ac_word=$2
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 printf %s "checking for $ac_word... " >&6; }
10746 if test ${ac_cv_path_INTLTOOL_EXTRACT+y}
10747 then :
10748 printf %s "(cached) " >&6
10749 else case e in #(
10750 e) case $INTLTOOL_EXTRACT in
10751 [\\/]* | ?:[\\/]*)
10752 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
10753 ;;
10754 *)
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10757 do
10758 IFS=$as_save_IFS
10759 case $as_dir in #(((
10760 '') as_dir=./ ;;
10761 */) ;;
10762 *) as_dir=$as_dir/ ;;
10763 esac
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10766 ac_cv_path_INTLTOOL_EXTRACT="$as_dir$ac_word$ac_exec_ext"
10767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770 done
10771 done
10772 IFS=$as_save_IFS
10773
10774 ;;
10775 esac ;;
10776 esac
10777 fi
10778 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
10779 if test -n "$INTLTOOL_EXTRACT"; then
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
10781 printf "%s\n" "$INTLTOOL_EXTRACT" >&6; }
10782 else
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 printf "%s\n" "no" >&6; }
10785 fi
10786
10787
10788 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10789 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
10790 fi
10791
10792 if test -z "$AM_DEFAULT_VERBOSITY"; then
10793 AM_DEFAULT_VERBOSITY=1
10794 fi
10795
10796
10797 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
10798 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
10799 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
10800
10801
10802
10803
10804 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
10805 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
10806 intltool__v_merge_options_0='-q'
10807
10808
10809
10810
10811 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10812 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10813 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10814 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10815 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
10816 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10817 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10818 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10819 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10820 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10821 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10822 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
10823 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
10824 else
10825 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
10826 fi
10827 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10828 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10829 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10830 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10831 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10832 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10833 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931 # Check the gettext tools to make sure they are GNU
10932 # Extract the first word of "xgettext", so it can be a program name with args.
10933 set dummy xgettext; ac_word=$2
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 printf %s "checking for $ac_word... " >&6; }
10936 if test ${ac_cv_path_XGETTEXT+y}
10937 then :
10938 printf %s "(cached) " >&6
10939 else case e in #(
10940 e) case $XGETTEXT in
10941 [\\/]* | ?:[\\/]*)
10942 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10943 ;;
10944 *)
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 case $as_dir in #(((
10950 '') as_dir=./ ;;
10951 */) ;;
10952 *) as_dir=$as_dir/ ;;
10953 esac
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10956 ac_cv_path_XGETTEXT="$as_dir$ac_word$ac_exec_ext"
10957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960 done
10961 done
10962 IFS=$as_save_IFS
10963
10964 ;;
10965 esac ;;
10966 esac
10967 fi
10968 XGETTEXT=$ac_cv_path_XGETTEXT
10969 if test -n "$XGETTEXT"; then
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10971 printf "%s\n" "$XGETTEXT" >&6; }
10972 else
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 printf "%s\n" "no" >&6; }
10975 fi
10976
10977
10978 # Extract the first word of "msgmerge", so it can be a program name with args.
10979 set dummy msgmerge; ac_word=$2
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981 printf %s "checking for $ac_word... " >&6; }
10982 if test ${ac_cv_path_MSGMERGE+y}
10983 then :
10984 printf %s "(cached) " >&6
10985 else case e in #(
10986 e) case $MSGMERGE in
10987 [\\/]* | ?:[\\/]*)
10988 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10989 ;;
10990 *)
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10993 do
10994 IFS=$as_save_IFS
10995 case $as_dir in #(((
10996 '') as_dir=./ ;;
10997 */) ;;
10998 *) as_dir=$as_dir/ ;;
10999 esac
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11002 ac_cv_path_MSGMERGE="$as_dir$ac_word$ac_exec_ext"
11003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11004 break 2
11005 fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 ;;
11011 esac ;;
11012 esac
11013 fi
11014 MSGMERGE=$ac_cv_path_MSGMERGE
11015 if test -n "$MSGMERGE"; then
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11017 printf "%s\n" "$MSGMERGE" >&6; }
11018 else
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 printf "%s\n" "no" >&6; }
11021 fi
11022
11023
11024 # Extract the first word of "msgfmt", so it can be a program name with args.
11025 set dummy msgfmt; ac_word=$2
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 printf %s "checking for $ac_word... " >&6; }
11028 if test ${ac_cv_path_MSGFMT+y}
11029 then :
11030 printf %s "(cached) " >&6
11031 else case e in #(
11032 e) case $MSGFMT in
11033 [\\/]* | ?:[\\/]*)
11034 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11035 ;;
11036 *)
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11039 do
11040 IFS=$as_save_IFS
11041 case $as_dir in #(((
11042 '') as_dir=./ ;;
11043 */) ;;
11044 *) as_dir=$as_dir/ ;;
11045 esac
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11048 ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext"
11049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11050 break 2
11051 fi
11052 done
11053 done
11054 IFS=$as_save_IFS
11055
11056 ;;
11057 esac ;;
11058 esac
11059 fi
11060 MSGFMT=$ac_cv_path_MSGFMT
11061 if test -n "$MSGFMT"; then
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11063 printf "%s\n" "$MSGFMT" >&6; }
11064 else
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 printf "%s\n" "no" >&6; }
11067 fi
11068
11069
11070 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11071 set dummy gmsgfmt; ac_word=$2
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 printf %s "checking for $ac_word... " >&6; }
11074 if test ${ac_cv_path_GMSGFMT+y}
11075 then :
11076 printf %s "(cached) " >&6
11077 else case e in #(
11078 e) case $GMSGFMT in
11079 [\\/]* | ?:[\\/]*)
11080 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11081 ;;
11082 *)
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11085 do
11086 IFS=$as_save_IFS
11087 case $as_dir in #(((
11088 '') as_dir=./ ;;
11089 */) ;;
11090 *) as_dir=$as_dir/ ;;
11091 esac
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11094 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
11095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11096 break 2
11097 fi
11098 done
11099 done
11100 IFS=$as_save_IFS
11101
11102 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11103 ;;
11104 esac ;;
11105 esac
11106 fi
11107 GMSGFMT=$ac_cv_path_GMSGFMT
11108 if test -n "$GMSGFMT"; then
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11110 printf "%s\n" "$GMSGFMT" >&6; }
11111 else
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 printf "%s\n" "no" >&6; }
11114 fi
11115
11116
11117 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
11118 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11119 fi
11120 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
11121 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
11122 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
11123 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
11124 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
11125 fi
11126
11127 # Extract the first word of "perl", so it can be a program name with args.
11128 set dummy perl; ac_word=$2
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 printf %s "checking for $ac_word... " >&6; }
11131 if test ${ac_cv_path_INTLTOOL_PERL+y}
11132 then :
11133 printf %s "(cached) " >&6
11134 else case e in #(
11135 e) case $INTLTOOL_PERL in
11136 [\\/]* | ?:[\\/]*)
11137 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
11138 ;;
11139 *)
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143 IFS=$as_save_IFS
11144 case $as_dir in #(((
11145 '') as_dir=./ ;;
11146 */) ;;
11147 *) as_dir=$as_dir/ ;;
11148 esac
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11151 ac_cv_path_INTLTOOL_PERL="$as_dir$ac_word$ac_exec_ext"
11152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155 done
11156 done
11157 IFS=$as_save_IFS
11158
11159 ;;
11160 esac ;;
11161 esac
11162 fi
11163 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
11164 if test -n "$INTLTOOL_PERL"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
11166 printf "%s\n" "$INTLTOOL_PERL" >&6; }
11167 else
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11170 fi
11171
11172
11173 if test -z "$INTLTOOL_PERL"; then
11174 as_fn_error $? "perl not found" "$LINENO" 5
11175 fi
11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
11177 printf %s "checking for perl >= 5.8.1... " >&6; }
11178 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
11179 if test $? -ne 0; then
11180 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
11181 else
11182 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
11184 printf "%s\n" "$IT_PERL_VERSION" >&6; }
11185 fi
11186 if test "xno-xml" != "xno-xml"; then
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
11188 printf %s "checking for XML::Parser... " >&6; }
11189 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11191 printf "%s\n" "ok" >&6; }
11192 else
11193 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
11194 fi
11195 fi
11196
11197 # Substitute ALL_LINGUAS so we can use it in po/Makefile
11198
11199
11200
11201
11202
11203
11204 GETTEXT_PACKAGE=mdk
11205
11206
11207 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
11208
11209
11210 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11211
11212
11213 printf "%s\n" "#define LOCALEDIR \"${prefix}/share/locale\"" >>confdefs.h
11214
11215
11216
11217 # Check whether --with-readline was given.
11218 if test ${with_readline+y}
11219 then :
11220 withval=$with_readline; case "${withval}" in
11221 yes) readl=true ;;
11222 no) readl=false ;;
11223 *) as_fn_error $? "bad value ${withval} for --with-readline" "$LINENO" 5 ;;
11224 esac
11225 else case e in #(
11226 e) readl=true ;;
11227 esac
11228 fi
11229
11230
11231 if test x$readl = xtrue; then
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
11233 printf %s "checking for initscr in -lncurses... " >&6; }
11234 if test ${ac_cv_lib_ncurses_initscr+y}
11235 then :
11236 printf %s "(cached) " >&6
11237 else case e in #(
11238 e) ac_check_lib_save_LIBS=$LIBS
11239 LIBS="-lncurses $LIBS"
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply.
11246 The 'extern "C"' is for builds by C++ compilers;
11247 although this is not generally supported in C code supporting it here
11248 has little cost and some practical benefit (sr 110532). */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char initscr (void);
11253 int
11254 main (void)
11255 {
11256 return initscr ();
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"
11262 then :
11263 ac_cv_lib_ncurses_initscr=yes
11264 else case e in #(
11265 e) ac_cv_lib_ncurses_initscr=no ;;
11266 esac
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS ;;
11271 esac
11272 fi
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
11274 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
11275 if test "x$ac_cv_lib_ncurses_initscr" = xyes
11276 then :
11277 printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h
11278
11279 LIBS="-lncurses $LIBS"
11280
11281 else case e in #(
11282 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ncurses lib" >&5
11283 printf "%s\n" "$as_me: WARNING: Cannot find ncurses lib" >&2;}; readl=false ;;
11284 esac
11285 fi
11286
11287 fi
11288
11289 if test x$readl = xtrue; then
11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11291 printf %s "checking for readline in -lreadline... " >&6; }
11292 if test ${ac_cv_lib_readline_readline+y}
11293 then :
11294 printf %s "(cached) " >&6
11295 else case e in #(
11296 e) ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lreadline $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply.
11304 The 'extern "C"' is for builds by C++ compilers;
11305 although this is not generally supported in C code supporting it here
11306 has little cost and some practical benefit (sr 110532). */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 char readline (void);
11311 int
11312 main (void)
11313 {
11314 return readline ();
11315 ;
11316 return 0;
11317 }
11318 _ACEOF
11319 if ac_fn_c_try_link "$LINENO"
11320 then :
11321 ac_cv_lib_readline_readline=yes
11322 else case e in #(
11323 e) ac_cv_lib_readline_readline=no ;;
11324 esac
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS ;;
11329 esac
11330 fi
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11332 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
11333 if test "x$ac_cv_lib_readline_readline" = xyes
11334 then :
11335 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
11336
11337 LIBS="-lreadline $LIBS"
11338
11339 else case e in #(
11340 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GNU readline lib" >&5
11341 printf "%s\n" "$as_me: WARNING: Cannot find GNU readline lib" >&2;}; readl=false ;;
11342 esac
11343 fi
11344
11345 fi
11346
11347 if test x$readl = xtrue; then
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for add_history in -lhistory" >&5
11349 printf %s "checking for add_history in -lhistory... " >&6; }
11350 if test ${ac_cv_lib_history_add_history+y}
11351 then :
11352 printf %s "(cached) " >&6
11353 else case e in #(
11354 e) ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-lhistory $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply.
11362 The 'extern "C"' is for builds by C++ compilers;
11363 although this is not generally supported in C code supporting it here
11364 has little cost and some practical benefit (sr 110532). */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char add_history (void);
11369 int
11370 main (void)
11371 {
11372 return add_history ();
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"
11378 then :
11379 ac_cv_lib_history_add_history=yes
11380 else case e in #(
11381 e) ac_cv_lib_history_add_history=no ;;
11382 esac
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS ;;
11387 esac
11388 fi
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_add_history" >&5
11390 printf "%s\n" "$ac_cv_lib_history_add_history" >&6; }
11391 if test "x$ac_cv_lib_history_add_history" = xyes
11392 then :
11393 printf "%s\n" "#define HAVE_LIBHISTORY 1" >>confdefs.h
11394
11395 LIBS="-lhistory $LIBS"
11396
11397 else case e in #(
11398 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GNU history lib" >&5
11399 printf "%s\n" "$as_me: WARNING: Cannot find GNU history lib" >&2;}; readl=false ;;
11400 esac
11401 fi
11402
11403 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
11404 if test "x$ac_cv_func_rl_completion_matches" = xyes
11405 then :
11406 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
11407
11408 fi
11409
11410 fi
11411
11412
11413
11414
11415
11416
11417
11418
11419 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11420 if test -n "$ac_tool_prefix"; then
11421 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11422 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 printf %s "checking for $ac_word... " >&6; }
11425 if test ${ac_cv_path_PKG_CONFIG+y}
11426 then :
11427 printf %s "(cached) " >&6
11428 else case e in #(
11429 e) case $PKG_CONFIG in
11430 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11432 ;;
11433 *)
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11436 do
11437 IFS=$as_save_IFS
11438 case $as_dir in #(((
11439 '') as_dir=./ ;;
11440 */) ;;
11441 *) as_dir=$as_dir/ ;;
11442 esac
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11445 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449 done
11450 done
11451 IFS=$as_save_IFS
11452
11453 ;;
11454 esac ;;
11455 esac
11456 fi
11457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11458 if test -n "$PKG_CONFIG"; then
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11460 printf "%s\n" "$PKG_CONFIG" >&6; }
11461 else
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 printf "%s\n" "no" >&6; }
11464 fi
11465
11466
11467 fi
11468 if test -z "$ac_cv_path_PKG_CONFIG"; then
11469 ac_pt_PKG_CONFIG=$PKG_CONFIG
11470 # Extract the first word of "pkg-config", so it can be a program name with args.
11471 set dummy pkg-config; ac_word=$2
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 printf %s "checking for $ac_word... " >&6; }
11474 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11475 then :
11476 printf %s "(cached) " >&6
11477 else case e in #(
11478 e) case $ac_pt_PKG_CONFIG in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11481 ;;
11482 *)
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486 IFS=$as_save_IFS
11487 case $as_dir in #(((
11488 '') as_dir=./ ;;
11489 */) ;;
11490 *) as_dir=$as_dir/ ;;
11491 esac
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11494 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 ;;
11503 esac ;;
11504 esac
11505 fi
11506 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11507 if test -n "$ac_pt_PKG_CONFIG"; then
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11509 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11510 else
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 printf "%s\n" "no" >&6; }
11513 fi
11514
11515 if test "x$ac_pt_PKG_CONFIG" = x; then
11516 PKG_CONFIG=""
11517 else
11518 case $cross_compiling:$ac_tool_warned in
11519 yes:)
11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11523 esac
11524 PKG_CONFIG=$ac_pt_PKG_CONFIG
11525 fi
11526 else
11527 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11528 fi
11529
11530 fi
11531 if test -n "$PKG_CONFIG"; then
11532 _pkg_min_version=0.9.0
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11534 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11535 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 printf "%s\n" "yes" >&6; }
11538 else
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 printf "%s\n" "no" >&6; }
11541 PKG_CONFIG=""
11542 fi
11543 fi
11544
11545 pkg_failed=no
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.0" >&5
11547 printf %s "checking for glib-2.0 >= 2.0... " >&6; }
11548
11549 if test -n "$GLIB_CFLAGS"; then
11550 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11551 elif test -n "$PKG_CONFIG"; then
11552 if test -n "$PKG_CONFIG" && \
11553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
11554 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
11555 ac_status=$?
11556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; }; then
11558 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0" 2>/dev/null`
11559 test "x$?" != "x0" && pkg_failed=yes
11560 else
11561 pkg_failed=yes
11562 fi
11563 else
11564 pkg_failed=untried
11565 fi
11566 if test -n "$GLIB_LIBS"; then
11567 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11568 elif test -n "$PKG_CONFIG"; then
11569 if test -n "$PKG_CONFIG" && \
11570 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0\""; } >&5
11571 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0") 2>&5
11572 ac_status=$?
11573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }; then
11575 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0" 2>/dev/null`
11576 test "x$?" != "x0" && pkg_failed=yes
11577 else
11578 pkg_failed=yes
11579 fi
11580 else
11581 pkg_failed=untried
11582 fi
11583
11584
11585
11586 if test $pkg_failed = yes; then
11587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 printf "%s\n" "no" >&6; }
11589
11590 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11591 _pkg_short_errors_supported=yes
11592 else
11593 _pkg_short_errors_supported=no
11594 fi
11595 if test $_pkg_short_errors_supported = yes; then
11596 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
11597 else
11598 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.0" 2>&1`
11599 fi
11600 # Put the nasty error message in config.log where it belongs
11601 echo "$GLIB_PKG_ERRORS" >&5
11602
11603 as_fn_error $? "Package requirements (glib-2.0 >= 2.0) were not met:
11604
11605 $GLIB_PKG_ERRORS
11606
11607 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11608 installed software in a non-standard prefix.
11609
11610 Alternatively, you may set the environment variables GLIB_CFLAGS
11611 and GLIB_LIBS to avoid the need to call pkg-config.
11612 See the pkg-config man page for more details." "$LINENO" 5
11613 elif test $pkg_failed = untried; then
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 printf "%s\n" "no" >&6; }
11616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11617 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11618 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11619 is in your PATH or set the PKG_CONFIG environment variable to the full
11620 path to pkg-config.
11621
11622 Alternatively, you may set the environment variables GLIB_CFLAGS
11623 and GLIB_LIBS to avoid the need to call pkg-config.
11624 See the pkg-config man page for more details.
11625
11626 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11627 See 'config.log' for more details" "$LINENO" 5; }
11628 else
11629 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11630 GLIB_LIBS=$pkg_cv_GLIB_LIBS
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 printf "%s\n" "yes" >&6; }
11633
11634 fi
11635
11636
11637 # Check whether --with-guile was given.
11638 if test ${with_guile+y}
11639 then :
11640 withval=$with_guile; case "${withval}" in
11641 yes) wguile=true ;;
11642 no) wguile=false ;;
11643 *) as_fn_error $? "bad value ${withval} for --with-guile" "$LINENO" 5 ;;
11644 esac
11645 else case e in #(
11646 e) wguile=true ;;
11647 esac
11648 fi
11649
11650
11651 if test x$wguile = xtrue; then
11652
11653 pkg_failed=no
11654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile-3.0 >= 3.0" >&5
11655 printf %s "checking for guile-3.0 >= 3.0... " >&6; }
11656
11657 if test -n "$GUILE_CFLAGS"; then
11658 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
11659 elif test -n "$PKG_CONFIG"; then
11660 if test -n "$PKG_CONFIG" && \
11661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-3.0 >= 3.0\""; } >&5
11662 ($PKG_CONFIG --exists --print-errors "guile-3.0 >= 3.0") 2>&5
11663 ac_status=$?
11664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; }; then
11666 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-3.0 >= 3.0" 2>/dev/null`
11667 test "x$?" != "x0" && pkg_failed=yes
11668 else
11669 pkg_failed=yes
11670 fi
11671 else
11672 pkg_failed=untried
11673 fi
11674 if test -n "$GUILE_LIBS"; then
11675 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
11676 elif test -n "$PKG_CONFIG"; then
11677 if test -n "$PKG_CONFIG" && \
11678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-3.0 >= 3.0\""; } >&5
11679 ($PKG_CONFIG --exists --print-errors "guile-3.0 >= 3.0") 2>&5
11680 ac_status=$?
11681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11682 test $ac_status = 0; }; then
11683 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-3.0 >= 3.0" 2>/dev/null`
11684 test "x$?" != "x0" && pkg_failed=yes
11685 else
11686 pkg_failed=yes
11687 fi
11688 else
11689 pkg_failed=untried
11690 fi
11691
11692
11693
11694 if test $pkg_failed = yes; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 printf "%s\n" "no" >&6; }
11697
11698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11699 _pkg_short_errors_supported=yes
11700 else
11701 _pkg_short_errors_supported=no
11702 fi
11703 if test $_pkg_short_errors_supported = yes; then
11704 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-3.0 >= 3.0" 2>&1`
11705 else
11706 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-3.0 >= 3.0" 2>&1`
11707 fi
11708 # Put the nasty error message in config.log where it belongs
11709 echo "$GUILE_PKG_ERRORS" >&5
11710
11711 wguile=false
11712 elif test $pkg_failed = untried; then
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 printf "%s\n" "no" >&6; }
11715 wguile=false
11716 else
11717 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
11718 GUILE_LIBS=$pkg_cv_GUILE_LIBS
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 printf "%s\n" "yes" >&6; }
11721 wguile=true
11722 fi
11723 if test x$wguile = xfalse; then
11724
11725 pkg_failed=no
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile-2.2 >= 2.2" >&5
11727 printf %s "checking for guile-2.2 >= 2.2... " >&6; }
11728
11729 if test -n "$GUILE_CFLAGS"; then
11730 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
11731 elif test -n "$PKG_CONFIG"; then
11732 if test -n "$PKG_CONFIG" && \
11733 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.2 >= 2.2\""; } >&5
11734 ($PKG_CONFIG --exists --print-errors "guile-2.2 >= 2.2") 2>&5
11735 ac_status=$?
11736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11737 test $ac_status = 0; }; then
11738 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.2 >= 2.2" 2>/dev/null`
11739 test "x$?" != "x0" && pkg_failed=yes
11740 else
11741 pkg_failed=yes
11742 fi
11743 else
11744 pkg_failed=untried
11745 fi
11746 if test -n "$GUILE_LIBS"; then
11747 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
11748 elif test -n "$PKG_CONFIG"; then
11749 if test -n "$PKG_CONFIG" && \
11750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.2 >= 2.2\""; } >&5
11751 ($PKG_CONFIG --exists --print-errors "guile-2.2 >= 2.2") 2>&5
11752 ac_status=$?
11753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754 test $ac_status = 0; }; then
11755 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.2 >= 2.2" 2>/dev/null`
11756 test "x$?" != "x0" && pkg_failed=yes
11757 else
11758 pkg_failed=yes
11759 fi
11760 else
11761 pkg_failed=untried
11762 fi
11763
11764
11765
11766 if test $pkg_failed = yes; then
11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 printf "%s\n" "no" >&6; }
11769
11770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11771 _pkg_short_errors_supported=yes
11772 else
11773 _pkg_short_errors_supported=no
11774 fi
11775 if test $_pkg_short_errors_supported = yes; then
11776 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.2 >= 2.2" 2>&1`
11777 else
11778 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.2 >= 2.2" 2>&1`
11779 fi
11780 # Put the nasty error message in config.log where it belongs
11781 echo "$GUILE_PKG_ERRORS" >&5
11782
11783 wguile=false
11784 elif test $pkg_failed = untried; then
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 printf "%s\n" "no" >&6; }
11787 wguile=false
11788 else
11789 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
11790 GUILE_LIBS=$pkg_cv_GUILE_LIBS
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 printf "%s\n" "yes" >&6; }
11793 wguile=true
11794 fi
11795 if test x$wguile = xfalse; then
11796
11797 pkg_failed=no
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile-2.0 >= 2.0" >&5
11799 printf %s "checking for guile-2.0 >= 2.0... " >&6; }
11800
11801 if test -n "$GUILE_CFLAGS"; then
11802 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
11803 elif test -n "$PKG_CONFIG"; then
11804 if test -n "$PKG_CONFIG" && \
11805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0 >= 2.0\""; } >&5
11806 ($PKG_CONFIG --exists --print-errors "guile-2.0 >= 2.0") 2>&5
11807 ac_status=$?
11808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11809 test $ac_status = 0; }; then
11810 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0 >= 2.0" 2>/dev/null`
11811 test "x$?" != "x0" && pkg_failed=yes
11812 else
11813 pkg_failed=yes
11814 fi
11815 else
11816 pkg_failed=untried
11817 fi
11818 if test -n "$GUILE_LIBS"; then
11819 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
11820 elif test -n "$PKG_CONFIG"; then
11821 if test -n "$PKG_CONFIG" && \
11822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0 >= 2.0\""; } >&5
11823 ($PKG_CONFIG --exists --print-errors "guile-2.0 >= 2.0") 2>&5
11824 ac_status=$?
11825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; }; then
11827 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0 >= 2.0" 2>/dev/null`
11828 test "x$?" != "x0" && pkg_failed=yes
11829 else
11830 pkg_failed=yes
11831 fi
11832 else
11833 pkg_failed=untried
11834 fi
11835
11836
11837
11838 if test $pkg_failed = yes; then
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 printf "%s\n" "no" >&6; }
11841
11842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11843 _pkg_short_errors_supported=yes
11844 else
11845 _pkg_short_errors_supported=no
11846 fi
11847 if test $_pkg_short_errors_supported = yes; then
11848 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0 >= 2.0" 2>&1`
11849 else
11850 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0 >= 2.0" 2>&1`
11851 fi
11852 # Put the nasty error message in config.log where it belongs
11853 echo "$GUILE_PKG_ERRORS" >&5
11854
11855 wguile=false
11856 elif test $pkg_failed = untried; then
11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 printf "%s\n" "no" >&6; }
11859 wguile=false
11860 else
11861 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
11862 GUILE_LIBS=$pkg_cv_GUILE_LIBS
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 printf "%s\n" "yes" >&6; }
11865 wguile=true
11866 fi
11867 fi
11868 fi
11869 fi
11870
11871 if test x$wguile = xtrue; then
11872 LIBS="$LIBS $GUILE_LIBS"
11873 AM_CFLAGS="$AM_CFLAGS $GUILE_CFLAGS"
11874
11875 fi
11876
11877 if test x$wguile = xtrue; then
11878 MAKE_GUILE_TRUE=
11879 MAKE_GUILE_FALSE='#'
11880 else
11881 MAKE_GUILE_TRUE='#'
11882 MAKE_GUILE_FALSE=
11883 fi
11884
11885
11886 LIBS="$LIBS $GLIB_LIBS"
11887 AM_CFLAGS="$AM_CFLAGS $GLIB_CFLAGS -DG_DISABLE_DEPRECATED"
11888
11889 # Check whether --enable-gui was given.
11890 if test ${enable_gui+y}
11891 then :
11892 enableval=$enable_gui; case "${enableval}" in
11893 yes) gui=true ;;
11894 no) gui=false ;;
11895 *) as_fn_error $? "bad value ${enableval} for --enable-gui" "$LINENO" 5 ;;
11896 esac
11897 else case e in #(
11898 e) gui=true ;;
11899 esac
11900 fi
11901
11902
11903 if test x$gui = xtrue; then
11904
11905 pkg_failed=no
11906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0 >= 3.14 pango >= 1.4" >&5
11907 printf %s "checking for gtk+-3.0 >= 3.14 pango >= 1.4... " >&6; }
11908
11909 if test -n "$GTK_CFLAGS"; then
11910 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
11911 elif test -n "$PKG_CONFIG"; then
11912 if test -n "$PKG_CONFIG" && \
11913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.14 pango >= 1.4\""; } >&5
11914 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.14 pango >= 1.4") 2>&5
11915 ac_status=$?
11916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11917 test $ac_status = 0; }; then
11918 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.14 pango >= 1.4" 2>/dev/null`
11919 test "x$?" != "x0" && pkg_failed=yes
11920 else
11921 pkg_failed=yes
11922 fi
11923 else
11924 pkg_failed=untried
11925 fi
11926 if test -n "$GTK_LIBS"; then
11927 pkg_cv_GTK_LIBS="$GTK_LIBS"
11928 elif test -n "$PKG_CONFIG"; then
11929 if test -n "$PKG_CONFIG" && \
11930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.14 pango >= 1.4\""; } >&5
11931 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.14 pango >= 1.4") 2>&5
11932 ac_status=$?
11933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }; then
11935 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.14 pango >= 1.4" 2>/dev/null`
11936 test "x$?" != "x0" && pkg_failed=yes
11937 else
11938 pkg_failed=yes
11939 fi
11940 else
11941 pkg_failed=untried
11942 fi
11943
11944
11945
11946 if test $pkg_failed = yes; then
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 printf "%s\n" "no" >&6; }
11949
11950 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11951 _pkg_short_errors_supported=yes
11952 else
11953 _pkg_short_errors_supported=no
11954 fi
11955 if test $_pkg_short_errors_supported = yes; then
11956 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.14 pango >= 1.4" 2>&1`
11957 else
11958 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.14 pango >= 1.4" 2>&1`
11959 fi
11960 # Put the nasty error message in config.log where it belongs
11961 echo "$GTK_PKG_ERRORS" >&5
11962
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK+/Glade/Pango: the GUI shall not be built" >&5
11964 printf "%s\n" "$as_me: WARNING: Cannot find GTK+/Glade/Pango: the GUI shall not be built" >&2;}
11965 gui=false
11966 elif test $pkg_failed = untried; then
11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 printf "%s\n" "no" >&6; }
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK+/Glade/Pango: the GUI shall not be built" >&5
11970 printf "%s\n" "$as_me: WARNING: Cannot find GTK+/Glade/Pango: the GUI shall not be built" >&2;}
11971 gui=false
11972 else
11973 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
11974 GTK_LIBS=$pkg_cv_GTK_LIBS
11975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 printf "%s\n" "yes" >&6; }
11977 LIBS="$LIBS $GTK_LIBS" AM_CFLAGS="$AM_CFLAGS $GTK_CFLAGS"
11978 fi
11979 fi
11980
11981 if test x$gui = xtrue; then
11982 AM_CFLAGS="$AM_CFLAGS -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
11983 fi
11984
11985 case "${host_os}" in
11986 darwin*) darwin_system=true;;
11987 *) darwin_system=false;
11988 esac
11989
11990 if test x$gui = xtrue; then
11991 MAKE_GUI_TRUE=
11992 MAKE_GUI_FALSE='#'
11993 else
11994 MAKE_GUI_TRUE='#'
11995 MAKE_GUI_FALSE=
11996 fi
11997
11998 if test x$darwin_system = xtrue; then
11999 DARWIN_SYSTEM_TRUE=
12000 DARWIN_SYSTEM_FALSE='#'
12001 else
12002 DARWIN_SYSTEM_TRUE='#'
12003 DARWIN_SYSTEM_FALSE=
12004 fi
12005
12006
12007 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12008 if test "x$ac_cv_func_getopt_long" = xyes
12009 then :
12010 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12011
12012 else case e in #(
12013 e) case " $LIBOBJS " in
12014 *" getopt_long.$ac_objext "* ) ;;
12015 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12016 ;;
12017 esac
12018 ;;
12019 esac
12020 fi
12021
12022
12023
12024
12025 ac_config_files="$ac_config_files Makefile doc/Makefile doc/img/Makefile mixlib/Makefile mixlib/testsuite/Makefile mixguile/Makefile mixutils/Makefile mixgtk/Makefile lib/Makefile misc/Makefile samples/Makefile samples/tests/Makefile po/Makefile.in intl/Makefile"
12026
12027
12028 cat >confcache <<\_ACEOF
12029 # This file is a shell script that caches the results of configure
12030 # tests run on this system so they can be shared between configure
12031 # scripts and configure runs, see configure's option --config-cache.
12032 # It is not useful on other systems. If it contains results you don't
12033 # want to keep, you may remove or edit it.
12034 #
12035 # config.status only pays attention to the cache file if you give it
12036 # the --recheck option to rerun configure.
12037 #
12038 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12039 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12040 # following values.
12041
12042 _ACEOF
12043
12044 # The following way of writing the cache mishandles newlines in values,
12045 # but we know of no workaround that is simple, portable, and efficient.
12046 # So, we kill variables containing newlines.
12047 # Ultrix sh set writes to stderr and can't be redirected directly,
12048 # and sets the high bit in the cache file unless we assign to the vars.
12049 (
12050 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12051 eval ac_val=\$$ac_var
12052 case $ac_val in #(
12053 *${as_nl}*)
12054 case $ac_var in #(
12055 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12056 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12057 esac
12058 case $ac_var in #(
12059 _ | IFS | as_nl) ;; #(
12060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12061 *) { eval $ac_var=; unset $ac_var;} ;;
12062 esac ;;
12063 esac
12064 done
12065
12066 (set) 2>&1 |
12067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12068 *${as_nl}ac_space=\ *)
12069 # 'set' does not quote correctly, so add quotes: double-quote
12070 # substitution turns \\\\ into \\, and sed turns \\ into \.
12071 sed -n \
12072 "s/'/'\\\\''/g;
12073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12074 ;; #(
12075 *)
12076 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12078 ;;
12079 esac |
12080 sort
12081 ) |
12082 sed '
12083 /^ac_cv_env_/b end
12084 t clear
12085 :clear
12086 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12087 t end
12088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12089 :end' >>confcache
12090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12091 if test -w "$cache_file"; then
12092 if test "x$cache_file" != "x/dev/null"; then
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12094 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12095 if test ! -f "$cache_file" || test -h "$cache_file"; then
12096 cat confcache >"$cache_file"
12097 else
12098 case $cache_file in #(
12099 */* | ?:*)
12100 mv -f confcache "$cache_file"$$ &&
12101 mv -f "$cache_file"$$ "$cache_file" ;; #(
12102 *)
12103 mv -f confcache "$cache_file" ;;
12104 esac
12105 fi
12106 fi
12107 else
12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12109 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12110 fi
12111 fi
12112 rm -f confcache
12113
12114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12115 # Let make expand exec_prefix.
12116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12117
12118 DEFS=-DHAVE_CONFIG_H
12119
12120 ac_libobjs=
12121 ac_ltlibobjs=
12122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12123 # 1. Remove the extension, and $U if already installed.
12124 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12125 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12126 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12127 # will be set to the directory where LIBOBJS objects are built.
12128 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12129 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12130 done
12131 LIBOBJS=$ac_libobjs
12132
12133 LTLIBOBJS=$ac_ltlibobjs
12134
12135
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12137 printf %s "checking that generated files are newer than configure... " >&6; }
12138 if test -n "$am_sleep_pid"; then
12139 # Hide warnings about reused PIDs.
12140 wait $am_sleep_pid 2>/dev/null
12141 fi
12142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12143 printf "%s\n" "done" >&6; }
12144 case $enable_silent_rules in # (((
12145 yes) AM_DEFAULT_VERBOSITY=0;;
12146 no) AM_DEFAULT_VERBOSITY=1;;
12147 esac
12148 if test $am_cv_make_support_nested_variables = yes; then
12149 AM_V='$(V)'
12150 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12151 else
12152 AM_V=$AM_DEFAULT_VERBOSITY
12153 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12154 fi
12155
12156 if test -n "$EXEEXT"; then
12157 am__EXEEXT_TRUE=
12158 am__EXEEXT_FALSE='#'
12159 else
12160 am__EXEEXT_TRUE='#'
12161 am__EXEEXT_FALSE=
12162 fi
12163
12164 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12165 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12167 fi
12168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12169 as_fn_error $? "conditional \"AMDEP\" was never defined.
12170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12171 fi
12172 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12173 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12175 fi
12176 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12177 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12179 fi
12180
12181 ac_config_commands="$ac_config_commands po/stamp-it"
12182
12183
12184 if test -z "${MAKE_GUILE_TRUE}" && test -z "${MAKE_GUILE_FALSE}"; then
12185 as_fn_error $? "conditional \"MAKE_GUILE\" was never defined.
12186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12187 fi
12188 if test -z "${MAKE_GUI_TRUE}" && test -z "${MAKE_GUI_FALSE}"; then
12189 as_fn_error $? "conditional \"MAKE_GUI\" was never defined.
12190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12191 fi
12192 if test -z "${DARWIN_SYSTEM_TRUE}" && test -z "${DARWIN_SYSTEM_FALSE}"; then
12193 as_fn_error $? "conditional \"DARWIN_SYSTEM\" was never defined.
12194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12195 fi
12196
12197 : "${CONFIG_STATUS=./config.status}"
12198 ac_write_fail=0
12199 ac_clean_files_save=$ac_clean_files
12200 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12202 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12203 as_write_fail=0
12204 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12205 #! $SHELL
12206 # Generated by $as_me.
12207 # Run this file to recreate the current configuration.
12208 # Compiler output produced by configure, useful for debugging
12209 # configure, is in config.log if it exists.
12210
12211 debug=false
12212 ac_cs_recheck=false
12213 ac_cs_silent=false
12214
12215 SHELL=\${CONFIG_SHELL-$SHELL}
12216 export SHELL
12217 _ASEOF
12218 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12219 ## -------------------- ##
12220 ## M4sh Initialization. ##
12221 ## -------------------- ##
12222
12223 # Be more Bourne compatible
12224 DUALCASE=1; export DUALCASE # for MKS sh
12225 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12226 then :
12227 emulate sh
12228 NULLCMD=:
12229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12230 # is contrary to our usage. Disable this feature.
12231 alias -g '${1+"$@"}'='"$@"'
12232 setopt NO_GLOB_SUBST
12233 else case e in #(
12234 e) case `(set -o) 2>/dev/null` in #(
12235 *posix*) :
12236 set -o posix ;; #(
12237 *) :
12238 ;;
12239 esac ;;
12240 esac
12241 fi
12242
12243
12244
12245 # Reset variables that may have inherited troublesome values from
12246 # the environment.
12247
12248 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12249 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12250 # side effect of setting IFS to empty, thus disabling word splitting.)
12251 # Quoting is to prevent editors from complaining about space-tab.
12252 as_nl='
12253 '
12254 export as_nl
12255 IFS=" "" $as_nl"
12256
12257 PS1='$ '
12258 PS2='> '
12259 PS4='+ '
12260
12261 # Ensure predictable behavior from utilities with locale-dependent output.
12262 LC_ALL=C
12263 export LC_ALL
12264 LANGUAGE=C
12265 export LANGUAGE
12266
12267 # We cannot yet rely on "unset" to work, but we need these variables
12268 # to be unset--not just set to an empty or harmless value--now, to
12269 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12270 # also avoids known problems related to "unset" and subshell syntax
12271 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12272 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12273 do eval test \${$as_var+y} \
12274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12275 done
12276
12277 # Ensure that fds 0, 1, and 2 are open.
12278 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12279 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12280 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12281
12282 # The user is always right.
12283 if ${PATH_SEPARATOR+false} :; then
12284 PATH_SEPARATOR=:
12285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12286 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12287 PATH_SEPARATOR=';'
12288 }
12289 fi
12290
12291
12292 # Find who we are. Look in the path if we contain no directory separator.
12293 as_myself=
12294 case $0 in #((
12295 *[\\/]* ) as_myself=$0 ;;
12296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297 for as_dir in $PATH
12298 do
12299 IFS=$as_save_IFS
12300 case $as_dir in #(((
12301 '') as_dir=./ ;;
12302 */) ;;
12303 *) as_dir=$as_dir/ ;;
12304 esac
12305 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12306 done
12307 IFS=$as_save_IFS
12308
12309 ;;
12310 esac
12311 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12312 # in which case we are not to be found in the path.
12313 if test "x$as_myself" = x; then
12314 as_myself=$0
12315 fi
12316 if test ! -f "$as_myself"; then
12317 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12318 exit 1
12319 fi
12320
12321
12322
12323 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12324 # ----------------------------------------
12325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12327 # script with STATUS, using 1 if that was 0.
12328 as_fn_error ()
12329 {
12330 as_status=$1; test $as_status -eq 0 && as_status=1
12331 if test "$4"; then
12332 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12334 fi
12335 printf "%s\n" "$as_me: error: $2" >&2
12336 as_fn_exit $as_status
12337 } # as_fn_error
12338
12339
12340 # as_fn_set_status STATUS
12341 # -----------------------
12342 # Set $? to STATUS, without forking.
12343 as_fn_set_status ()
12344 {
12345 return $1
12346 } # as_fn_set_status
12347
12348 # as_fn_exit STATUS
12349 # -----------------
12350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12351 as_fn_exit ()
12352 {
12353 set +e
12354 as_fn_set_status $1
12355 exit $1
12356 } # as_fn_exit
12357
12358 # as_fn_unset VAR
12359 # ---------------
12360 # Portably unset VAR.
12361 as_fn_unset ()
12362 {
12363 { eval $1=; unset $1;}
12364 }
12365 as_unset=as_fn_unset
12366
12367 # as_fn_append VAR VALUE
12368 # ----------------------
12369 # Append the text in VALUE to the end of the definition contained in VAR. Take
12370 # advantage of any shell optimizations that allow amortized linear growth over
12371 # repeated appends, instead of the typical quadratic growth present in naive
12372 # implementations.
12373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12374 then :
12375 eval 'as_fn_append ()
12376 {
12377 eval $1+=\$2
12378 }'
12379 else case e in #(
12380 e) as_fn_append ()
12381 {
12382 eval $1=\$$1\$2
12383 } ;;
12384 esac
12385 fi # as_fn_append
12386
12387 # as_fn_arith ARG...
12388 # ------------------
12389 # Perform arithmetic evaluation on the ARGs, and store the result in the
12390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12391 # must be portable across $(()) and expr.
12392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12393 then :
12394 eval 'as_fn_arith ()
12395 {
12396 as_val=$(( $* ))
12397 }'
12398 else case e in #(
12399 e) as_fn_arith ()
12400 {
12401 as_val=`expr "$@" || test $? -eq 1`
12402 } ;;
12403 esac
12404 fi # as_fn_arith
12405
12406
12407 if expr a : '\(a\)' >/dev/null 2>&1 &&
12408 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12409 as_expr=expr
12410 else
12411 as_expr=false
12412 fi
12413
12414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12415 as_basename=basename
12416 else
12417 as_basename=false
12418 fi
12419
12420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12421 as_dirname=dirname
12422 else
12423 as_dirname=false
12424 fi
12425
12426 as_me=`$as_basename -- "$0" ||
12427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12428 X"$0" : 'X\(//\)$' \| \
12429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12430 printf "%s\n" X/"$0" |
12431 sed '/^.*\/\([^/][^/]*\)\/*$/{
12432 s//\1/
12433 q
12434 }
12435 /^X\/\(\/\/\)$/{
12436 s//\1/
12437 q
12438 }
12439 /^X\/\(\/\).*/{
12440 s//\1/
12441 q
12442 }
12443 s/.*/./; q'`
12444
12445 # Avoid depending upon Character Ranges.
12446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12449 as_cr_digits='0123456789'
12450 as_cr_alnum=$as_cr_Letters$as_cr_digits
12451
12452
12453 # Determine whether it's possible to make 'echo' print without a newline.
12454 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12455 # for compatibility with existing Makefiles.
12456 ECHO_C= ECHO_N= ECHO_T=
12457 case `echo -n x` in #(((((
12458 -n*)
12459 case `echo 'xy\c'` in
12460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12461 xy) ECHO_C='\c';;
12462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12463 ECHO_T=' ';;
12464 esac;;
12465 *)
12466 ECHO_N='-n';;
12467 esac
12468
12469 # For backward compatibility with old third-party macros, we provide
12470 # the shell variables $as_echo and $as_echo_n. New code should use
12471 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12472 as_echo='printf %s\n'
12473 as_echo_n='printf %s'
12474
12475 rm -f conf$$ conf$$.exe conf$$.file
12476 if test -d conf$$.dir; then
12477 rm -f conf$$.dir/conf$$.file
12478 else
12479 rm -f conf$$.dir
12480 mkdir conf$$.dir 2>/dev/null
12481 fi
12482 if (echo >conf$$.file) 2>/dev/null; then
12483 if ln -s conf$$.file conf$$ 2>/dev/null; then
12484 as_ln_s='ln -s'
12485 # ... but there are two gotchas:
12486 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12487 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12488 # In both cases, we have to default to 'cp -pR'.
12489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12490 as_ln_s='cp -pR'
12491 elif ln conf$$.file conf$$ 2>/dev/null; then
12492 as_ln_s=ln
12493 else
12494 as_ln_s='cp -pR'
12495 fi
12496 else
12497 as_ln_s='cp -pR'
12498 fi
12499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12500 rmdir conf$$.dir 2>/dev/null
12501
12502
12503 # as_fn_mkdir_p
12504 # -------------
12505 # Create "$as_dir" as a directory, including parents if necessary.
12506 as_fn_mkdir_p ()
12507 {
12508
12509 case $as_dir in #(
12510 -*) as_dir=./$as_dir;;
12511 esac
12512 test -d "$as_dir" || eval $as_mkdir_p || {
12513 as_dirs=
12514 while :; do
12515 case $as_dir in #(
12516 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12517 *) as_qdir=$as_dir;;
12518 esac
12519 as_dirs="'$as_qdir' $as_dirs"
12520 as_dir=`$as_dirname -- "$as_dir" ||
12521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522 X"$as_dir" : 'X\(//\)[^/]' \| \
12523 X"$as_dir" : 'X\(//\)$' \| \
12524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12525 printf "%s\n" X"$as_dir" |
12526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12527 s//\1/
12528 q
12529 }
12530 /^X\(\/\/\)[^/].*/{
12531 s//\1/
12532 q
12533 }
12534 /^X\(\/\/\)$/{
12535 s//\1/
12536 q
12537 }
12538 /^X\(\/\).*/{
12539 s//\1/
12540 q
12541 }
12542 s/.*/./; q'`
12543 test -d "$as_dir" && break
12544 done
12545 test -z "$as_dirs" || eval "mkdir $as_dirs"
12546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12547
12548
12549 } # as_fn_mkdir_p
12550 if mkdir -p . 2>/dev/null; then
12551 as_mkdir_p='mkdir -p "$as_dir"'
12552 else
12553 test -d ./-p && rmdir ./-p
12554 as_mkdir_p=false
12555 fi
12556
12557
12558 # as_fn_executable_p FILE
12559 # -----------------------
12560 # Test if FILE is an executable regular file.
12561 as_fn_executable_p ()
12562 {
12563 test -f "$1" && test -x "$1"
12564 } # as_fn_executable_p
12565 as_test_x='test -x'
12566 as_executable_p=as_fn_executable_p
12567
12568 # Sed expression to map a string onto a valid CPP name.
12569 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12570 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12571
12572 # Sed expression to map a string onto a valid variable name.
12573 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12574 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12575
12576
12577 exec 6>&1
12578 ## ----------------------------------- ##
12579 ## Main body of $CONFIG_STATUS script. ##
12580 ## ----------------------------------- ##
12581 _ASEOF
12582 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12583
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585 # Save the log message, to keep $0 and so on meaningful, and to
12586 # report actual input values of CONFIG_FILES etc. instead of their
12587 # values after options handling.
12588 ac_log="
12589 This file was extended by GNU MDK $as_me 1.3.1, which was
12590 generated by GNU Autoconf 2.72. Invocation command line was
12591
12592 CONFIG_FILES = $CONFIG_FILES
12593 CONFIG_HEADERS = $CONFIG_HEADERS
12594 CONFIG_LINKS = $CONFIG_LINKS
12595 CONFIG_COMMANDS = $CONFIG_COMMANDS
12596 $ $0 $@
12597
12598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12599 "
12600
12601 _ACEOF
12602
12603 case $ac_config_files in *"
12604 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12605 esac
12606
12607 case $ac_config_headers in *"
12608 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12609 esac
12610
12611
12612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12613 # Files that config.status was made for.
12614 config_files="$ac_config_files"
12615 config_headers="$ac_config_headers"
12616 config_commands="$ac_config_commands"
12617
12618 _ACEOF
12619
12620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621 ac_cs_usage="\
12622 '$as_me' instantiates files and other configuration actions
12623 from templates according to the current configuration. Unless the files
12624 and actions are specified as TAGs, all are instantiated by default.
12625
12626 Usage: $0 [OPTION]... [TAG]...
12627
12628 -h, --help print this help, then exit
12629 -V, --version print version number and configuration settings, then exit
12630 --config print configuration, then exit
12631 -q, --quiet, --silent
12632 do not print progress messages
12633 -d, --debug don't remove temporary files
12634 --recheck update $as_me by reconfiguring in the same conditions
12635 --file=FILE[:TEMPLATE]
12636 instantiate the configuration file FILE
12637 --header=FILE[:TEMPLATE]
12638 instantiate the configuration header FILE
12639
12640 Configuration files:
12641 $config_files
12642
12643 Configuration headers:
12644 $config_headers
12645
12646 Configuration commands:
12647 $config_commands
12648
12649 Report bugs to <[email protected]>.
12650 GNU MDK home page: <https://www.gnu.org/software/mdk/>.
12651 General help using GNU software: <https://www.gnu.org/gethelp/>."
12652
12653 _ACEOF
12654 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12655 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12657 ac_cs_config='$ac_cs_config_escaped'
12658 ac_cs_version="\\
12659 GNU MDK config.status 1.3.1
12660 configured by $0, generated by GNU Autoconf 2.72,
12661 with options \\"\$ac_cs_config\\"
12662
12663 Copyright (C) 2023 Free Software Foundation, Inc.
12664 This config.status script is free software; the Free Software Foundation
12665 gives unlimited permission to copy, distribute and modify it."
12666
12667 ac_pwd='$ac_pwd'
12668 srcdir='$srcdir'
12669 INSTALL='$INSTALL'
12670 MKDIR_P='$MKDIR_P'
12671 AWK='$AWK'
12672 test -n "\$AWK" || AWK=awk
12673 _ACEOF
12674
12675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12676 # The default lists apply if the user does not specify any file.
12677 ac_need_defaults=:
12678 while test $# != 0
12679 do
12680 case $1 in
12681 --*=?*)
12682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12683 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12684 ac_shift=:
12685 ;;
12686 --*=)
12687 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12688 ac_optarg=
12689 ac_shift=:
12690 ;;
12691 *)
12692 ac_option=$1
12693 ac_optarg=$2
12694 ac_shift=shift
12695 ;;
12696 esac
12697
12698 case $ac_option in
12699 # Handling of the options.
12700 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12701 ac_cs_recheck=: ;;
12702 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12703 printf "%s\n" "$ac_cs_version"; exit ;;
12704 --config | --confi | --conf | --con | --co | --c )
12705 printf "%s\n" "$ac_cs_config"; exit ;;
12706 --debug | --debu | --deb | --de | --d | -d )
12707 debug=: ;;
12708 --file | --fil | --fi | --f )
12709 $ac_shift
12710 case $ac_optarg in
12711 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12712 '') as_fn_error $? "missing file argument" ;;
12713 esac
12714 as_fn_append CONFIG_FILES " '$ac_optarg'"
12715 ac_need_defaults=false;;
12716 --header | --heade | --head | --hea )
12717 $ac_shift
12718 case $ac_optarg in
12719 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12720 esac
12721 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12722 ac_need_defaults=false;;
12723 --he | --h)
12724 # Conflict between --help and --header
12725 as_fn_error $? "ambiguous option: '$1'
12726 Try '$0 --help' for more information.";;
12727 --help | --hel | -h )
12728 printf "%s\n" "$ac_cs_usage"; exit ;;
12729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12731 ac_cs_silent=: ;;
12732
12733 # This is an error.
12734 -*) as_fn_error $? "unrecognized option: '$1'
12735 Try '$0 --help' for more information." ;;
12736
12737 *) as_fn_append ac_config_targets " $1"
12738 ac_need_defaults=false ;;
12739
12740 esac
12741 shift
12742 done
12743
12744 ac_configure_extra_args=
12745
12746 if $ac_cs_silent; then
12747 exec 6>/dev/null
12748 ac_configure_extra_args="$ac_configure_extra_args --silent"
12749 fi
12750
12751 _ACEOF
12752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753 if \$ac_cs_recheck; then
12754 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12755 shift
12756 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12757 CONFIG_SHELL='$SHELL'
12758 export CONFIG_SHELL
12759 exec "\$@"
12760 fi
12761
12762 _ACEOF
12763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12764 exec 5>>config.log
12765 {
12766 echo
12767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12768 ## Running $as_me. ##
12769 _ASBOX
12770 printf "%s\n" "$ac_log"
12771 } >&5
12772
12773 _ACEOF
12774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12775 #
12776 # INIT-COMMANDS
12777 #
12778 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12779 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12780 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12781 # from automake.
12782 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12783 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12784 LINGUAS="${LINGUAS-%UNSET%}"
12785
12786
12787 _ACEOF
12788
12789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12790
12791 # Handling of arguments.
12792 for ac_config_target in $ac_config_targets
12793 do
12794 case $ac_config_target in
12795 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12797 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12798 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12799 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12800 "doc/img/Makefile") CONFIG_FILES="$CONFIG_FILES doc/img/Makefile" ;;
12801 "mixlib/Makefile") CONFIG_FILES="$CONFIG_FILES mixlib/Makefile" ;;
12802 "mixlib/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES mixlib/testsuite/Makefile" ;;
12803 "mixguile/Makefile") CONFIG_FILES="$CONFIG_FILES mixguile/Makefile" ;;
12804 "mixutils/Makefile") CONFIG_FILES="$CONFIG_FILES mixutils/Makefile" ;;
12805 "mixgtk/Makefile") CONFIG_FILES="$CONFIG_FILES mixgtk/Makefile" ;;
12806 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12807 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
12808 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
12809 "samples/tests/Makefile") CONFIG_FILES="$CONFIG_FILES samples/tests/Makefile" ;;
12810 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12811 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12812 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
12813
12814 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12815 esac
12816 done
12817
12818
12819 # If the user did not use the arguments to specify the items to instantiate,
12820 # then the envvar interface is used. Set only those that are not.
12821 # We use the long form for the default assignment because of an extremely
12822 # bizarre bug on SunOS 4.1.3.
12823 if $ac_need_defaults; then
12824 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12825 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12826 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12827 fi
12828
12829 # Have a temporary directory for convenience. Make it in the build tree
12830 # simply because there is no reason against having it here, and in addition,
12831 # creating and moving files from /tmp can sometimes cause problems.
12832 # Hook for its removal unless debugging.
12833 # Note that there is a small window in which the directory will not be cleaned:
12834 # after its creation but before its name has been assigned to '$tmp'.
12835 $debug ||
12836 {
12837 tmp= ac_tmp=
12838 trap 'exit_status=$?
12839 : "${ac_tmp:=$tmp}"
12840 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12841 ' 0
12842 trap 'as_fn_exit 1' 1 2 13 15
12843 }
12844 # Create a (secure) tmp directory for tmp files.
12845
12846 {
12847 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12848 test -d "$tmp"
12849 } ||
12850 {
12851 tmp=./conf$$-$RANDOM
12852 (umask 077 && mkdir "$tmp")
12853 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12854 ac_tmp=$tmp
12855
12856 # Set up the scripts for CONFIG_FILES section.
12857 # No need to generate them if there are no CONFIG_FILES.
12858 # This happens for instance with './config.status config.h'.
12859 if test -n "$CONFIG_FILES"; then
12860
12861
12862 ac_cr=`echo X | tr X '\015'`
12863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12864 # But we know of no other shell where ac_cr would be empty at this
12865 # point, so we can use a bashism as a fallback.
12866 if test "x$ac_cr" = x; then
12867 eval ac_cr=\$\'\\r\'
12868 fi
12869 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12871 ac_cs_awk_cr='\\r'
12872 else
12873 ac_cs_awk_cr=$ac_cr
12874 fi
12875
12876 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12877 _ACEOF
12878
12879
12880 {
12881 echo "cat >conf$$subs.awk <<_ACEOF" &&
12882 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12883 echo "_ACEOF"
12884 } >conf$$subs.sh ||
12885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12886 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12887 ac_delim='%!_!# '
12888 for ac_last_try in false false false false false :; do
12889 . ./conf$$subs.sh ||
12890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12891
12892 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12893 if test $ac_delim_n = $ac_delim_num; then
12894 break
12895 elif $ac_last_try; then
12896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12897 else
12898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12899 fi
12900 done
12901 rm -f conf$$subs.sh
12902
12903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12904 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12905 _ACEOF
12906 sed -n '
12907 h
12908 s/^/S["/; s/!.*/"]=/
12909 p
12910 g
12911 s/^[^!]*!//
12912 :repl
12913 t repl
12914 s/'"$ac_delim"'$//
12915 t delim
12916 :nl
12917 h
12918 s/\(.\{148\}\)..*/\1/
12919 t more1
12920 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12921 p
12922 n
12923 b repl
12924 :more1
12925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12926 p
12927 g
12928 s/.\{148\}//
12929 t nl
12930 :delim
12931 h
12932 s/\(.\{148\}\)..*/\1/
12933 t more2
12934 s/["\\]/\\&/g; s/^/"/; s/$/"/
12935 p
12936 b
12937 :more2
12938 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12939 p
12940 g
12941 s/.\{148\}//
12942 t delim
12943 ' <conf$$subs.awk | sed '
12944 /^[^""]/{
12945 N
12946 s/\n//
12947 }
12948 ' >>$CONFIG_STATUS || ac_write_fail=1
12949 rm -f conf$$subs.awk
12950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12951 _ACAWK
12952 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12953 for (key in S) S_is_set[key] = 1
12954 FS = ""
12955
12956 }
12957 {
12958 line = $ 0
12959 nfields = split(line, field, "@")
12960 substed = 0
12961 len = length(field[1])
12962 for (i = 2; i < nfields; i++) {
12963 key = field[i]
12964 keylen = length(key)
12965 if (S_is_set[key]) {
12966 value = S[key]
12967 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12968 len += length(value) + length(field[++i])
12969 substed = 1
12970 } else
12971 len += 1 + keylen
12972 }
12973
12974 print line
12975 }
12976
12977 _ACAWK
12978 _ACEOF
12979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12980 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12981 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12982 else
12983 cat
12984 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12985 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12986 _ACEOF
12987
12988 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12989 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12990 # trailing colons and then remove the whole line if VPATH becomes empty
12991 # (actually we leave an empty line to preserve line numbers).
12992 if test "x$srcdir" = x.; then
12993 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12994 h
12995 s///
12996 s/^/:/
12997 s/[ ]*$/:/
12998 s/:\$(srcdir):/:/g
12999 s/:\${srcdir}:/:/g
13000 s/:@srcdir@:/:/g
13001 s/^:*//
13002 s/:*$//
13003 x
13004 s/\(=[ ]*\).*/\1/
13005 G
13006 s/\n//
13007 s/^[^=]*=[ ]*$//
13008 }'
13009 fi
13010
13011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13012 fi # test -n "$CONFIG_FILES"
13013
13014 # Set up the scripts for CONFIG_HEADERS section.
13015 # No need to generate them if there are no CONFIG_HEADERS.
13016 # This happens for instance with './config.status Makefile'.
13017 if test -n "$CONFIG_HEADERS"; then
13018 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13019 BEGIN {
13020 _ACEOF
13021
13022 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13023 # here-document in config.status, that substitutes the proper values into
13024 # config.h.in to produce config.h.
13025
13026 # Create a delimiter string that does not exist in confdefs.h, to ease
13027 # handling of long lines.
13028 ac_delim='%!_!# '
13029 for ac_last_try in false false :; do
13030 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13031 if test -z "$ac_tt"; then
13032 break
13033 elif $ac_last_try; then
13034 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13035 else
13036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13037 fi
13038 done
13039
13040 # For the awk script, D is an array of macro values keyed by name,
13041 # likewise P contains macro parameters if any. Preserve backslash
13042 # newline sequences.
13043
13044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13045 sed -n '
13046 s/.\{148\}/&'"$ac_delim"'/g
13047 t rset
13048 :rset
13049 s/^[ ]*#[ ]*define[ ][ ]*/ /
13050 t def
13051 d
13052 :def
13053 s/\\$//
13054 t bsnl
13055 s/["\\]/\\&/g
13056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13057 D["\1"]=" \3"/p
13058 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13059 d
13060 :bsnl
13061 s/["\\]/\\&/g
13062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13063 D["\1"]=" \3\\\\\\n"\\/p
13064 t cont
13065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13066 t cont
13067 d
13068 :cont
13069 n
13070 s/.\{148\}/&'"$ac_delim"'/g
13071 t clear
13072 :clear
13073 s/\\$//
13074 t bsnlc
13075 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13076 d
13077 :bsnlc
13078 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13079 b cont
13080 ' <confdefs.h | sed '
13081 s/'"$ac_delim"'/"\\\
13082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13083
13084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13085 for (key in D) D_is_set[key] = 1
13086 FS = ""
13087 }
13088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13089 line = \$ 0
13090 split(line, arg, " ")
13091 if (arg[1] == "#") {
13092 defundef = arg[2]
13093 mac1 = arg[3]
13094 } else {
13095 defundef = substr(arg[1], 2)
13096 mac1 = arg[2]
13097 }
13098 split(mac1, mac2, "(") #)
13099 macro = mac2[1]
13100 prefix = substr(line, 1, index(line, defundef) - 1)
13101 if (D_is_set[macro]) {
13102 # Preserve the white space surrounding the "#".
13103 print prefix "define", macro P[macro] D[macro]
13104 next
13105 } else {
13106 # Replace #undef with comments. This is necessary, for example,
13107 # in the case of _POSIX_SOURCE, which is predefined and required
13108 # on some systems where configure will not decide to define it.
13109 if (defundef == "undef") {
13110 print "/*", prefix defundef, macro, "*/"
13111 next
13112 }
13113 }
13114 }
13115 { print }
13116 _ACAWK
13117 _ACEOF
13118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13119 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13120 fi # test -n "$CONFIG_HEADERS"
13121
13122
13123 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13124 shift
13125 for ac_tag
13126 do
13127 case $ac_tag in
13128 :[FHLC]) ac_mode=$ac_tag; continue;;
13129 esac
13130 case $ac_mode$ac_tag in
13131 :[FHL]*:*);;
13132 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13133 :[FH]-) ac_tag=-:-;;
13134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13135 esac
13136 ac_save_IFS=$IFS
13137 IFS=:
13138 set x $ac_tag
13139 IFS=$ac_save_IFS
13140 shift
13141 ac_file=$1
13142 shift
13143
13144 case $ac_mode in
13145 :L) ac_source=$1;;
13146 :[FH])
13147 ac_file_inputs=
13148 for ac_f
13149 do
13150 case $ac_f in
13151 -) ac_f="$ac_tmp/stdin";;
13152 *) # Look for the file first in the build tree, then in the source tree
13153 # (if the path is not absolute). The absolute path cannot be DOS-style,
13154 # because $ac_f cannot contain ':'.
13155 test -f "$ac_f" ||
13156 case $ac_f in
13157 [\\/$]*) false;;
13158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13159 esac ||
13160 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13161 esac
13162 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13163 as_fn_append ac_file_inputs " '$ac_f'"
13164 done
13165
13166 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13167 # use $as_me), people would be surprised to read:
13168 # /* config.h. Generated by config.status. */
13169 configure_input='Generated from '`
13170 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13171 `' by configure.'
13172 if test x"$ac_file" != x-; then
13173 configure_input="$ac_file. $configure_input"
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13175 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13176 fi
13177 # Neutralize special characters interpreted by sed in replacement strings.
13178 case $configure_input in #(
13179 *\&* | *\|* | *\\* )
13180 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13182 *) ac_sed_conf_input=$configure_input;;
13183 esac
13184
13185 case $ac_tag in
13186 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13188 esac
13189 ;;
13190 esac
13191
13192 ac_dir=`$as_dirname -- "$ac_file" ||
13193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13194 X"$ac_file" : 'X\(//\)[^/]' \| \
13195 X"$ac_file" : 'X\(//\)$' \| \
13196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13197 printf "%s\n" X"$ac_file" |
13198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13199 s//\1/
13200 q
13201 }
13202 /^X\(\/\/\)[^/].*/{
13203 s//\1/
13204 q
13205 }
13206 /^X\(\/\/\)$/{
13207 s//\1/
13208 q
13209 }
13210 /^X\(\/\).*/{
13211 s//\1/
13212 q
13213 }
13214 s/.*/./; q'`
13215 as_dir="$ac_dir"; as_fn_mkdir_p
13216 ac_builddir=.
13217
13218 case "$ac_dir" in
13219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13220 *)
13221 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13222 # A ".." for each directory in $ac_dir_suffix.
13223 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13224 case $ac_top_builddir_sub in
13225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13227 esac ;;
13228 esac
13229 ac_abs_top_builddir=$ac_pwd
13230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13231 # for backward compatibility:
13232 ac_top_builddir=$ac_top_build_prefix
13233
13234 case $srcdir in
13235 .) # We are building in place.
13236 ac_srcdir=.
13237 ac_top_srcdir=$ac_top_builddir_sub
13238 ac_abs_top_srcdir=$ac_pwd ;;
13239 [\\/]* | ?:[\\/]* ) # Absolute name.
13240 ac_srcdir=$srcdir$ac_dir_suffix;
13241 ac_top_srcdir=$srcdir
13242 ac_abs_top_srcdir=$srcdir ;;
13243 *) # Relative name.
13244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13245 ac_top_srcdir=$ac_top_build_prefix$srcdir
13246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13247 esac
13248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13249
13250
13251 case $ac_mode in
13252 :F)
13253 #
13254 # CONFIG_FILE
13255 #
13256
13257 case $INSTALL in
13258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13259 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13260 esac
13261 ac_MKDIR_P=$MKDIR_P
13262 case $MKDIR_P in
13263 [\\/$]* | ?:[\\/]* ) ;;
13264 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13265 esac
13266 _ACEOF
13267
13268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13269 # If the template does not know about datarootdir, expand it.
13270 # FIXME: This hack should be removed a few years after 2.60.
13271 ac_datarootdir_hack=; ac_datarootdir_seen=
13272 ac_sed_dataroot='
13273 /datarootdir/ {
13274 p
13275 q
13276 }
13277 /@datadir@/p
13278 /@docdir@/p
13279 /@infodir@/p
13280 /@localedir@/p
13281 /@mandir@/p'
13282 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13283 *datarootdir*) ac_datarootdir_seen=yes;;
13284 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13286 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13287 _ACEOF
13288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13289 ac_datarootdir_hack='
13290 s&@datadir@&$datadir&g
13291 s&@docdir@&$docdir&g
13292 s&@infodir@&$infodir&g
13293 s&@localedir@&$localedir&g
13294 s&@mandir@&$mandir&g
13295 s&\\\${datarootdir}&$datarootdir&g' ;;
13296 esac
13297 _ACEOF
13298
13299 # Neutralize VPATH when '$srcdir' = '.'.
13300 # Shell code in configure.ac might set extrasub.
13301 # FIXME: do we really want to maintain this feature?
13302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13303 ac_sed_extra="$ac_vpsub
13304 $extrasub
13305 _ACEOF
13306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13307 :t
13308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13309 s|@configure_input@|$ac_sed_conf_input|;t t
13310 s&@top_builddir@&$ac_top_builddir_sub&;t t
13311 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13312 s&@srcdir@&$ac_srcdir&;t t
13313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13314 s&@top_srcdir@&$ac_top_srcdir&;t t
13315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13316 s&@builddir@&$ac_builddir&;t t
13317 s&@abs_builddir@&$ac_abs_builddir&;t t
13318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13319 s&@INSTALL@&$ac_INSTALL&;t t
13320 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13321 $ac_datarootdir_hack
13322 "
13323 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13324 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13325
13326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13327 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13329 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13331 which seems to be undefined. Please make sure it is defined" >&5
13332 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13333 which seems to be undefined. Please make sure it is defined" >&2;}
13334
13335 rm -f "$ac_tmp/stdin"
13336 case $ac_file in
13337 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13338 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13339 esac \
13340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13341 ;;
13342 :H)
13343 #
13344 # CONFIG_HEADER
13345 #
13346 if test x"$ac_file" != x-; then
13347 {
13348 printf "%s\n" "/* $configure_input */" >&1 \
13349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13350 } >"$ac_tmp/config.h" \
13351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13352 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13354 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13355 else
13356 rm -f "$ac_file"
13357 mv "$ac_tmp/config.h" "$ac_file" \
13358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13359 fi
13360 else
13361 printf "%s\n" "/* $configure_input */" >&1 \
13362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13363 || as_fn_error $? "could not create -" "$LINENO" 5
13364 fi
13365 # Compute "$ac_file"'s index in $config_headers.
13366 _am_arg="$ac_file"
13367 _am_stamp_count=1
13368 for _am_header in $config_headers :; do
13369 case $_am_header in
13370 $_am_arg | $_am_arg:* )
13371 break ;;
13372 * )
13373 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13374 esac
13375 done
13376 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13377 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$_am_arg" : 'X\(//\)[^/]' \| \
13379 X"$_am_arg" : 'X\(//\)$' \| \
13380 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13381 printf "%s\n" X"$_am_arg" |
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\(\/\/\)[^/].*/{
13387 s//\1/
13388 q
13389 }
13390 /^X\(\/\/\)$/{
13391 s//\1/
13392 q
13393 }
13394 /^X\(\/\).*/{
13395 s//\1/
13396 q
13397 }
13398 s/.*/./; q'`/stamp-h$_am_stamp_count
13399 ;;
13400
13401 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13402 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13403 ;;
13404 esac
13405
13406
13407 case $ac_file$ac_mode in
13408 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13409 # Older Autoconf quotes --file arguments for eval, but not when files
13410 # are listed without --file. Let's play safe and only enable the eval
13411 # if we detect the quoting.
13412 # TODO: see whether this extra hack can be removed once we start
13413 # requiring Autoconf 2.70 or later.
13414 case $CONFIG_FILES in #(
13415 *\'*) :
13416 eval set x "$CONFIG_FILES" ;; #(
13417 *) :
13418 set x $CONFIG_FILES ;; #(
13419 *) :
13420 ;;
13421 esac
13422 shift
13423 # Used to flag and report bootstrapping failures.
13424 am_rc=0
13425 for am_mf
13426 do
13427 # Strip MF so we end up with the name of the file.
13428 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13429 # Check whether this is an Automake generated Makefile which includes
13430 # dependency-tracking related rules and includes.
13431 # Grep'ing the whole file directly is not great: AIX grep has a line
13432 # limit of 2048, but all sed's we know have understand at least 4000.
13433 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13434 || continue
13435 am_dirpart=`$as_dirname -- "$am_mf" ||
13436 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13437 X"$am_mf" : 'X\(//\)[^/]' \| \
13438 X"$am_mf" : 'X\(//\)$' \| \
13439 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13440 printf "%s\n" X"$am_mf" |
13441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13442 s//\1/
13443 q
13444 }
13445 /^X\(\/\/\)[^/].*/{
13446 s//\1/
13447 q
13448 }
13449 /^X\(\/\/\)$/{
13450 s//\1/
13451 q
13452 }
13453 /^X\(\/\).*/{
13454 s//\1/
13455 q
13456 }
13457 s/.*/./; q'`
13458 am_filepart=`$as_basename -- "$am_mf" ||
13459 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13460 X"$am_mf" : 'X\(//\)$' \| \
13461 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13462 printf "%s\n" X/"$am_mf" |
13463 sed '/^.*\/\([^/][^/]*\)\/*$/{
13464 s//\1/
13465 q
13466 }
13467 /^X\/\(\/\/\)$/{
13468 s//\1/
13469 q
13470 }
13471 /^X\/\(\/\).*/{
13472 s//\1/
13473 q
13474 }
13475 s/.*/./; q'`
13476 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13477 && sed -e '/# am--include-marker/d' "$am_filepart" \
13478 | $MAKE -f - am--depfiles" >&5
13479 (cd "$am_dirpart" \
13480 && sed -e '/# am--include-marker/d' "$am_filepart" \
13481 | $MAKE -f - am--depfiles) >&5 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } || am_rc=$?
13485 done
13486 if test $am_rc -ne 0; then
13487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13488 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13489 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13490 for automatic dependency tracking. If GNU make was not used, consider
13491 re-running the configure script with MAKE=\"gmake\" (or whatever is
13492 necessary). You can also try re-running configure with the
13493 '--disable-dependency-tracking' option to at least be able to build
13494 the package (albeit without support for automatic dependency tracking).
13495 See 'config.log' for more details" "$LINENO" 5; }
13496 fi
13497 { am_dirpart=; unset am_dirpart;}
13498 { am_filepart=; unset am_filepart;}
13499 { am_mf=; unset am_mf;}
13500 { am_rc=; unset am_rc;}
13501 rm -f conftest-deps.mk
13502 }
13503 ;;
13504 "default-1":C)
13505 for ac_file in $CONFIG_FILES; do
13506 # Support "outfile[:infile[:infile...]]"
13507 case "$ac_file" in
13508 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13509 esac
13510 # PO directories have a Makefile.in generated from Makefile.in.in.
13511 case "$ac_file" in */Makefile.in)
13512 # Adjust a relative srcdir.
13513 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13514 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13515 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13516 # In autoconf-2.13 it is called $ac_given_srcdir.
13517 # In autoconf-2.50 it is called $srcdir.
13518 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13519 case "$ac_given_srcdir" in
13520 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13521 /*) top_srcdir="$ac_given_srcdir" ;;
13522 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13523 esac
13524 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13525 rm -f "$ac_dir/POTFILES"
13526 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13527 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13528 POMAKEFILEDEPS="POTFILES.in"
13529 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13530 # on $ac_dir but don't depend on user-specified configuration
13531 # parameters.
13532 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13533 # The LINGUAS file contains the set of available languages.
13534 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13535 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13536 fi
13537 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13538 # Hide the ALL_LINGUAS assigment from automake.
13539 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13540 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13541 else
13542 # The set of available languages was given in configure.in.
13543 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13544 fi
13545 # Compute POFILES
13546 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13547 # Compute UPDATEPOFILES
13548 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13549 # Compute DUMMYPOFILES
13550 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13551 # Compute GMOFILES
13552 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13553 case "$ac_given_srcdir" in
13554 .) srcdirpre= ;;
13555 *) srcdirpre='$(srcdir)/' ;;
13556 esac
13557 POFILES=
13558 UPDATEPOFILES=
13559 DUMMYPOFILES=
13560 GMOFILES=
13561 for lang in $ALL_LINGUAS; do
13562 POFILES="$POFILES $srcdirpre$lang.po"
13563 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13564 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13565 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13566 done
13567 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13568 # environment variable.
13569 INST_LINGUAS=
13570 if test -n "$ALL_LINGUAS"; then
13571 for presentlang in $ALL_LINGUAS; do
13572 useit=no
13573 if test "%UNSET%" != "$LINGUAS"; then
13574 desiredlanguages="$LINGUAS"
13575 else
13576 desiredlanguages="$ALL_LINGUAS"
13577 fi
13578 for desiredlang in $desiredlanguages; do
13579 # Use the presentlang catalog if desiredlang is
13580 # a. equal to presentlang, or
13581 # b. a variant of presentlang (because in this case,
13582 # presentlang can be used as a fallback for messages
13583 # which are not translated in the desiredlang catalog).
13584 case "$desiredlang" in
13585 "$presentlang"*) useit=yes;;
13586 esac
13587 done
13588 if test $useit = yes; then
13589 INST_LINGUAS="$INST_LINGUAS $presentlang"
13590 fi
13591 done
13592 fi
13593 CATALOGS=
13594 if test -n "$INST_LINGUAS"; then
13595 for lang in $INST_LINGUAS; do
13596 CATALOGS="$CATALOGS $lang.gmo"
13597 done
13598 fi
13599 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13600 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13601 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13602 if test -f "$f"; then
13603 case "$f" in
13604 *.orig | *.bak | *~) ;;
13605 *) cat "$f" >> "$ac_dir/Makefile" ;;
13606 esac
13607 fi
13608 done
13609 fi
13610 ;;
13611 esac
13612 done ;;
13613 "po/stamp-it":C)
13614 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
13615 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
13616 fi
13617 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
13618 >"po/stamp-it.tmp"
13619 sed '/^#/d
13620 s/^[[].*] *//
13621 /^[ ]*$/d
13622 '"s|^| $ac_top_srcdir/|" \
13623 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
13624
13625 sed '/^POTFILES =/,/[^\\]$/ {
13626 /^POTFILES =/!d
13627 r po/POTFILES
13628 }
13629 ' "po/Makefile.in" >"po/Makefile"
13630 rm -f "po/Makefile.tmp"
13631 mv "po/stamp-it.tmp" "po/stamp-it"
13632 ;;
13633
13634 esac
13635 done # for ac_tag
13636
13637
13638 as_fn_exit 0
13639 _ACEOF
13640 ac_clean_files=$ac_clean_files_save
13641
13642 test $ac_write_fail = 0 ||
13643 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13644
13645
13646 # configure is writing to config.log, and then calls config.status.
13647 # config.status does its own redirection, appending to config.log.
13648 # Unfortunately, on DOS this fails, as config.log is still kept open
13649 # by configure, so config.status won't be able to write to it; its
13650 # output is simply discarded. So we exec the FD to /dev/null,
13651 # effectively closing config.log, so it can be properly (re)opened and
13652 # appended to by config.status. When coming back to configure, we
13653 # need to make the FD available again.
13654 if test "$no_create" != yes; then
13655 ac_cs_success=:
13656 ac_config_status_args=
13657 test "$silent" = yes &&
13658 ac_config_status_args="$ac_config_status_args --quiet"
13659 exec 5>/dev/null
13660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13661 exec 5>>config.log
13662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13663 # would make configure fail if this is the last instruction.
13664 $ac_cs_success || as_fn_exit 1
13665 fi
13666 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13668 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13669 fi
13670
13671
13672 if test x$readl = xtrue; then
13673 rlinfo=", with readline support"
13674 fi
13675
13676 if test x$wguile = xtrue; then
13677 guileinfo=", with guile support"
13678 fi
13679
13680 echo
13681 echo "*** $PACKAGE_NAME $VERSION has been successfully configured. ***"
13682 echo
13683 echo "Type 'make' to build the following utilities:"
13684 echo " - mixasm (MIX assembler)"
13685 echo " - mixvm (MIX virtual machine${rlinfo}${guileinfo})"
13686 if test x$gui = xtrue; then
13687 echo " - gmixvm (mixvm GTK+ GUI${guileinfo})"
13688 fi
13689 if test x$wguile = xtrue; then
13690 echo " - mixguile (the mixvm guile shell)"
13691 fi
13692 echo
13693