Take UTF-8 spaces into account for empty strings
[smenu.git] / configure
blobe9a27d576052de04a403798a02e9a626240d0b6d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for smenu 1.3.0.
5 # Report bugs to <p.gen.progs@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
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 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
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='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
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
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
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=';'
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
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
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
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
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
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
158 esac
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; }
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 :
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: p.gen.progs@gmail.com about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
321 return $?
323 as_nop=as_fn_nop
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
356 /^X\(\/\/\)$/{
357 s//\1/
360 /^X\(\/\).*/{
361 s//\1/
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 } # as_fn_mkdir_p
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
390 eval $1+=\$2
392 else $as_nop
393 as_fn_append ()
395 eval $1=\$$1\$2
397 fi # as_fn_append
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
408 as_val=$(( $* ))
410 else $as_nop
411 as_fn_arith ()
413 as_val=`expr "$@" || test $? -eq 1`
415 fi # as_fn_arith
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
422 return $?
424 as_nop=as_fn_nop
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
470 /^X\/\(\/\/\)$/{
471 s//\1/
474 /^X\/\(\/\).*/{
475 s//\1/
478 s/.*/./; q'`
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
501 :lineno
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
537 ECHO_N='-n';;
538 esac
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
568 else
569 as_ln_s='cp -pR'
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600 # Initializations.
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
611 # Identity of this package.
612 PACKAGE_NAME='smenu'
613 PACKAGE_TARNAME='smenu'
614 PACKAGE_VERSION='1.3.0'
615 PACKAGE_STRING='smenu 1.3.0'
616 PACKAGE_BUGREPORT='p.gen.progs@gmail.com'
617 PACKAGE_URL=''
619 ac_unique_file="smenu.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 EGREP
665 GREP
666 LN_S
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 CSCOPE
688 ETAGS
689 CTAGS
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 runstatedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
759 ac_precious_vars='build_alias
760 host_alias
761 target_alias
763 CFLAGS
764 LDFLAGS
765 LIBS
766 CPPFLAGS'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 runstatedir='${localstatedir}/run'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
818 ac_prev=
819 ac_dashdash=
820 for ac_option
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\$ac_option
825 ac_prev=
826 continue
829 case $ac_option in
830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 *=) ac_optarg= ;;
832 *) ac_optarg=yes ;;
833 esac
835 case $ac_dashdash$ac_option in
837 ac_dashdash=yes ;;
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
856 --config-cache | -C)
857 cache_file=config.cache ;;
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: \`$ac_useropt'"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: \`$ac_useropt'"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -runstatedir | --runstatedir | --runstatedi | --runstated \
1057 | --runstate | --runstat | --runsta | --runst | --runs \
1058 | --run | --ru | --r)
1059 ac_prev=runstatedir ;;
1060 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1061 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1062 | --run=* | --ru=* | --r=*)
1063 runstatedir=$ac_optarg ;;
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: \`$ac_useropt'"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: \`$ac_useropt'"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 esac
1183 done
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir runstatedir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 printf "%s\n" X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1267 /^X\(\/\/\)$/{
1268 s//\1/
1271 /^X\(\/\).*/{
1272 s//\1/
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1280 else
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290 pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315 \`configure' configures smenu 1.3.0 to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1324 Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/smenu]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1371 cat <<\_ACEOF
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of smenu 1.3.0:";;
1387 esac
1388 cat <<\_ACEOF
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: "make V=1")
1395 --disable-silent-rules verbose build output (undo: "make V=0")
1396 --enable-dependency-tracking
1397 do not reject slow dependency extractors
1398 --disable-dependency-tracking
1399 speeds up one-time build
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to <p.gen.progs@gmail.com>.
1414 _ACEOF
1415 ac_status=$?
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
1424 ac_builddir=.
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1442 case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for configure.gnu first; this name is used for a wrapper for
1460 # Metaconfig's "Configure" on case-insensitive file systems.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 smenu configure 1.3.0
1478 generated by GNU Autoconf 2.71
1480 Copyright (C) 2021 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484 exit
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext conftest.beam
1498 if { { ac_try="$ac_compile"
1499 case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 printf "%s\n" "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext
1517 then :
1518 ac_retval=0
1519 else $as_nop
1520 printf "%s\n" "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1523 ac_retval=1
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1531 # -------------------------------------------------------
1532 # Tests whether HEADER exists and can be compiled using the include files in
1533 # INCLUDES, setting the cache variable VAR accordingly.
1534 ac_fn_c_check_header_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538 printf %s "checking for $2... " >&6; }
1539 if eval test \${$3+y}
1540 then :
1541 printf %s "(cached) " >&6
1542 else $as_nop
1543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h. */
1546 #include <$2>
1547 _ACEOF
1548 if ac_fn_c_try_compile "$LINENO"
1549 then :
1550 eval "$3=yes"
1551 else $as_nop
1552 eval "$3=no"
1554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1556 eval ac_res=\$$3
1557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 printf "%s\n" "$ac_res" >&6; }
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 } # ac_fn_c_check_header_compile
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 printf "%s\n" "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1592 then :
1593 ac_retval=0
1594 else $as_nop
1595 printf "%s\n" "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1598 ac_retval=1
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_link
1610 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1611 # -------------------------------------------
1612 # Tests whether TYPE exists after having included INCLUDES, setting cache
1613 # variable VAR accordingly.
1614 ac_fn_c_check_type ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 printf %s "checking for $2... " >&6; }
1619 if eval test \${$3+y}
1620 then :
1621 printf %s "(cached) " >&6
1622 else $as_nop
1623 eval "$3=no"
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1628 main (void)
1630 if (sizeof ($2))
1631 return 0;
1633 return 0;
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"
1637 then :
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1642 main (void)
1644 if (sizeof (($2)))
1645 return 0;
1647 return 0;
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"
1651 then :
1653 else $as_nop
1654 eval "$3=yes"
1656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1660 eval ac_res=\$$3
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 printf "%s\n" "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_type
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1670 # executables *can* be run.
1671 ac_fn_c_try_run ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 printf "%s\n" "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }
1695 then :
1696 ac_retval=0
1697 else $as_nop
1698 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1699 printf "%s\n" "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_run
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s "checking for $2... " >&6; }
1718 if eval test \${$3+y}
1719 then :
1720 printf %s "(cached) " >&6
1721 else $as_nop
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726 #define $2 innocuous_$2
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $2 (); below. */
1731 #include <limits.h>
1732 #undef $2
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1749 main (void)
1751 return $2 ();
1753 return 0;
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"
1757 then :
1758 eval "$3=yes"
1759 else $as_nop
1760 eval "$3=no"
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1763 conftest$ac_exeext conftest.$ac_ext
1765 eval ac_res=\$$3
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 printf "%s\n" "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_func
1771 ac_configure_args_raw=
1772 for ac_arg
1774 case $ac_arg in
1775 *\'*)
1776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 esac
1778 as_fn_append ac_configure_args_raw " '$ac_arg'"
1779 done
1781 case $ac_configure_args_raw in
1782 *$as_nl*)
1783 ac_safe_unquote= ;;
1785 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1786 ac_unsafe_a="$ac_unsafe_z#~"
1787 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1788 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1789 esac
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by smenu $as_me 1.3.0, which was
1796 generated by GNU Autoconf 2.71. Invocation command line was
1798 $ $0$ac_configure_args_raw
1800 _ACEOF
1801 exec 5>>config.log
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825 _ASUNAME
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 case $as_dir in #(((
1832 '') as_dir=./ ;;
1833 */) ;;
1834 *) as_dir=$as_dir/ ;;
1835 esac
1836 printf "%s\n" "PATH: $as_dir"
1837 done
1838 IFS=$as_save_IFS
1840 } >&5
1842 cat >&5 <<_ACEOF
1845 ## ----------- ##
1846 ## Core tests. ##
1847 ## ----------- ##
1849 _ACEOF
1852 # Keep a trace of the command line.
1853 # Strip out --no-create and --no-recursion so they do not pile up.
1854 # Strip out --silent because we don't want to record it for future runs.
1855 # Also quote any args containing shell meta-characters.
1856 # Make two passes to allow for proper duplicate-argument suppression.
1857 ac_configure_args=
1858 ac_configure_args0=
1859 ac_configure_args1=
1860 ac_must_keep_next=false
1861 for ac_pass in 1 2
1863 for ac_arg
1865 case $ac_arg in
1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1868 | -silent | --silent | --silen | --sile | --sil)
1869 continue ;;
1870 *\'*)
1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 esac
1873 case $ac_pass in
1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1876 as_fn_append ac_configure_args1 " '$ac_arg'"
1877 if test $ac_must_keep_next = true; then
1878 ac_must_keep_next=false # Got value, back to normal.
1879 else
1880 case $ac_arg in
1881 *=* | --config-cache | -C | -disable-* | --disable-* \
1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1884 | -with-* | --with-* | -without-* | --without-* | --x)
1885 case "$ac_configure_args0 " in
1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1887 esac
1889 -* ) ac_must_keep_next=true ;;
1890 esac
1892 as_fn_append ac_configure_args " '$ac_arg'"
1894 esac
1895 done
1896 done
1897 { ac_configure_args0=; unset ac_configure_args0;}
1898 { ac_configure_args1=; unset ac_configure_args1;}
1900 # When interrupted or exit'd, cleanup temporary files, and complete
1901 # config.log. We remove comments because anyway the quotes in there
1902 # would cause problems or look ugly.
1903 # WARNING: Use '\'' to represent an apostrophe within the trap.
1904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1905 trap 'exit_status=$?
1906 # Sanitize IFS.
1907 IFS=" "" $as_nl"
1908 # Save into config.log some information that might help in debugging.
1910 echo
1912 printf "%s\n" "## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##"
1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
1933 (set) 2>&1 |
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
1936 sed -n \
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943 esac |
1944 sort
1946 echo
1948 printf "%s\n" "## ----------------- ##
1949 ## Output variables. ##
1950 ## ----------------- ##"
1951 echo
1952 for ac_var in $ac_subst_vars
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 printf "%s\n" "$ac_var='\''$ac_val'\''"
1959 done | sort
1960 echo
1962 if test -n "$ac_subst_files"; then
1963 printf "%s\n" "## ------------------- ##
1964 ## File substitutions. ##
1965 ## ------------------- ##"
1966 echo
1967 for ac_var in $ac_subst_files
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 printf "%s\n" "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1978 if test -s confdefs.h; then
1979 printf "%s\n" "## ----------- ##
1980 ## confdefs.h. ##
1981 ## ----------- ##"
1982 echo
1983 cat confdefs.h
1984 echo
1986 test "$ac_signal" != 0 &&
1987 printf "%s\n" "$as_me: caught signal $ac_signal"
1988 printf "%s\n" "$as_me: exit $exit_status"
1989 } >&5
1990 rm -f core *.core core.conftest.* &&
1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1992 exit $exit_status
1994 for ac_signal in 1 2 13 15; do
1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1996 done
1997 ac_signal=0
1999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2000 rm -f -r conftest* confdefs.h
2002 printf "%s\n" "/* confdefs.h */" > confdefs.h
2004 # Predefined preprocessor variables.
2006 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2008 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2010 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2012 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2014 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2016 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2019 # Let the site file select an alternate cache file if it wants to.
2020 # Prefer an explicitly selected file to automatically selected ones.
2021 if test -n "$CONFIG_SITE"; then
2022 ac_site_files="$CONFIG_SITE"
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2025 else
2026 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2029 for ac_site_file in $ac_site_files
2031 case $ac_site_file in #(
2032 */*) :
2033 ;; #(
2034 *) :
2035 ac_site_file=./$ac_site_file ;;
2036 esac
2037 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2040 sed 's/^/| /' "$ac_site_file" >&5
2041 . "$ac_site_file" \
2042 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2044 as_fn_error $? "failed to load site script $ac_site_file
2045 See \`config.log' for more details" "$LINENO" 5; }
2047 done
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special files
2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2055 case $cache_file in
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2058 esac
2060 else
2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2063 >$cache_file
2066 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2067 # Test code for whether the C compiler supports C89 (global declarations)
2068 ac_c_conftest_c89_globals='
2069 /* Does the compiler advertise C89 conformance?
2070 Do not test the value of __STDC__, because some compilers set it to 0
2071 while being otherwise adequately conformant. */
2072 #if !defined __STDC__
2073 # error "Compiler does not advertise C89 conformance"
2074 #endif
2076 #include <stddef.h>
2077 #include <stdarg.h>
2078 struct stat;
2079 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2080 struct buf { int x; };
2081 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2082 static char *e (p, i)
2083 char **p;
2084 int i;
2086 return p[i];
2088 static char *f (char * (*g) (char **, int), char **p, ...)
2090 char *s;
2091 va_list v;
2092 va_start (v,p);
2093 s = g (p, va_arg (v,int));
2094 va_end (v);
2095 return s;
2098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2099 function prototypes and stuff, but not \xHH hex character constants.
2100 These do not provoke an error unfortunately, instead are silently treated
2101 as an "x". The following induces an error, until -std is added to get
2102 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2103 array size at least. It is necessary to write \x00 == 0 to get something
2104 that is true only with -std. */
2105 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2108 inside strings and character constants. */
2109 #define FOO(x) '\''x'\''
2110 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2112 int test (int i, double x);
2113 struct s1 {int (*f) (int a);};
2114 struct s2 {int (*f) (double a);};
2115 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2116 int, int);'
2118 # Test code for whether the C compiler supports C89 (body of main).
2119 ac_c_conftest_c89_main='
2120 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2123 # Test code for whether the C compiler supports C99 (global declarations)
2124 ac_c_conftest_c99_globals='
2125 // Does the compiler advertise C99 conformance?
2126 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2127 # error "Compiler does not advertise C99 conformance"
2128 #endif
2130 #include <stdbool.h>
2131 extern int puts (const char *);
2132 extern int printf (const char *, ...);
2133 extern int dprintf (int, const char *, ...);
2134 extern void *malloc (size_t);
2136 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2137 // dprintf is used instead of fprintf to avoid needing to declare
2138 // FILE and stderr.
2139 #define debug(...) dprintf (2, __VA_ARGS__)
2140 #define showlist(...) puts (#__VA_ARGS__)
2141 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2142 static void
2143 test_varargs_macros (void)
2145 int x = 1234;
2146 int y = 5678;
2147 debug ("Flag");
2148 debug ("X = %d\n", x);
2149 showlist (The first, second, and third items.);
2150 report (x>y, "x is %d but y is %d", x, y);
2153 // Check long long types.
2154 #define BIG64 18446744073709551615ull
2155 #define BIG32 4294967295ul
2156 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2157 #if !BIG_OK
2158 #error "your preprocessor is broken"
2159 #endif
2160 #if BIG_OK
2161 #else
2162 #error "your preprocessor is broken"
2163 #endif
2164 static long long int bignum = -9223372036854775807LL;
2165 static unsigned long long int ubignum = BIG64;
2167 struct incomplete_array
2169 int datasize;
2170 double data[];
2173 struct named_init {
2174 int number;
2175 const wchar_t *name;
2176 double average;
2179 typedef const char *ccp;
2181 static inline int
2182 test_restrict (ccp restrict text)
2184 // See if C++-style comments work.
2185 // Iterate through items via the restricted pointer.
2186 // Also check for declarations in for loops.
2187 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2188 continue;
2189 return 0;
2192 // Check varargs and va_copy.
2193 static bool
2194 test_varargs (const char *format, ...)
2196 va_list args;
2197 va_start (args, format);
2198 va_list args_copy;
2199 va_copy (args_copy, args);
2201 const char *str = "";
2202 int number = 0;
2203 float fnumber = 0;
2205 while (*format)
2207 switch (*format++)
2209 case '\''s'\'': // string
2210 str = va_arg (args_copy, const char *);
2211 break;
2212 case '\''d'\'': // int
2213 number = va_arg (args_copy, int);
2214 break;
2215 case '\''f'\'': // float
2216 fnumber = va_arg (args_copy, double);
2217 break;
2218 default:
2219 break;
2222 va_end (args_copy);
2223 va_end (args);
2225 return *str && number && fnumber;
2229 # Test code for whether the C compiler supports C99 (body of main).
2230 ac_c_conftest_c99_main='
2231 // Check bool.
2232 _Bool success = false;
2233 success |= (argc != 0);
2235 // Check restrict.
2236 if (test_restrict ("String literal") == 0)
2237 success = true;
2238 char *restrict newvar = "Another string";
2240 // Check varargs.
2241 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2242 test_varargs_macros ();
2244 // Check flexible array members.
2245 struct incomplete_array *ia =
2246 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2247 ia->datasize = 10;
2248 for (int i = 0; i < ia->datasize; ++i)
2249 ia->data[i] = i * 1.234;
2251 // Check named initializers.
2252 struct named_init ni = {
2253 .number = 34,
2254 .name = L"Test wide string",
2255 .average = 543.34343,
2258 ni.number = 58;
2260 int dynamic_array[ni.number];
2261 dynamic_array[0] = argv[0][0];
2262 dynamic_array[ni.number - 1] = 543;
2264 // work around unused variable warnings
2265 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2266 || dynamic_array[ni.number - 1] != 543);
2269 # Test code for whether the C compiler supports C11 (global declarations)
2270 ac_c_conftest_c11_globals='
2271 // Does the compiler advertise C11 conformance?
2272 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2273 # error "Compiler does not advertise C11 conformance"
2274 #endif
2276 // Check _Alignas.
2277 char _Alignas (double) aligned_as_double;
2278 char _Alignas (0) no_special_alignment;
2279 extern char aligned_as_int;
2280 char _Alignas (0) _Alignas (int) aligned_as_int;
2282 // Check _Alignof.
2283 enum
2285 int_alignment = _Alignof (int),
2286 int_array_alignment = _Alignof (int[100]),
2287 char_alignment = _Alignof (char)
2289 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2291 // Check _Noreturn.
2292 int _Noreturn does_not_return (void) { for (;;) continue; }
2294 // Check _Static_assert.
2295 struct test_static_assert
2297 int x;
2298 _Static_assert (sizeof (int) <= sizeof (long int),
2299 "_Static_assert does not work in struct");
2300 long int y;
2303 // Check UTF-8 literals.
2304 #define u8 syntax error!
2305 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2307 // Check duplicate typedefs.
2308 typedef long *long_ptr;
2309 typedef long int *long_ptr;
2310 typedef long_ptr long_ptr;
2312 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2313 struct anonymous
2315 union {
2316 struct { int i; int j; };
2317 struct { int k; long int l; } w;
2319 int m;
2320 } v1;
2323 # Test code for whether the C compiler supports C11 (body of main).
2324 ac_c_conftest_c11_main='
2325 _Static_assert ((offsetof (struct anonymous, i)
2326 == offsetof (struct anonymous, w.k)),
2327 "Anonymous union alignment botch");
2328 v1.i = 2;
2329 v1.w.k = 5;
2330 ok |= v1.i != 5;
2333 # Test code for whether the C compiler supports C11 (complete).
2334 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2335 ${ac_c_conftest_c99_globals}
2336 ${ac_c_conftest_c11_globals}
2339 main (int argc, char **argv)
2341 int ok = 0;
2342 ${ac_c_conftest_c89_main}
2343 ${ac_c_conftest_c99_main}
2344 ${ac_c_conftest_c11_main}
2345 return ok;
2349 # Test code for whether the C compiler supports C99 (complete).
2350 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2351 ${ac_c_conftest_c99_globals}
2354 main (int argc, char **argv)
2356 int ok = 0;
2357 ${ac_c_conftest_c89_main}
2358 ${ac_c_conftest_c99_main}
2359 return ok;
2363 # Test code for whether the C compiler supports C89 (complete).
2364 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2367 main (int argc, char **argv)
2369 int ok = 0;
2370 ${ac_c_conftest_c89_main}
2371 return ok;
2375 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2376 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2377 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2378 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2379 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2380 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2381 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2382 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2383 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2384 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2386 # Auxiliary files required by this configure script.
2387 ac_aux_files="config.guess config.sub compile missing install-sh"
2389 # Locations in which to look for auxiliary files.
2390 ac_aux_dir_candidates="${srcdir}/build-aux"
2392 # Search for a directory containing all of the required auxiliary files,
2393 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2394 # If we don't find one directory that contains all the files we need,
2395 # we report the set of missing files from the *first* directory in
2396 # $ac_aux_dir_candidates and give up.
2397 ac_missing_aux_files=""
2398 ac_first_candidate=:
2399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 as_found=false
2402 for as_dir in $ac_aux_dir_candidates
2404 IFS=$as_save_IFS
2405 case $as_dir in #(((
2406 '') as_dir=./ ;;
2407 */) ;;
2408 *) as_dir=$as_dir/ ;;
2409 esac
2410 as_found=:
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2413 ac_aux_dir_found=yes
2414 ac_install_sh=
2415 for ac_aux in $ac_aux_files
2417 # As a special case, if "install-sh" is required, that requirement
2418 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2419 # and $ac_install_sh is set appropriately for whichever one is found.
2420 if test x"$ac_aux" = x"install-sh"
2421 then
2422 if test -f "${as_dir}install-sh"; then
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2424 ac_install_sh="${as_dir}install-sh -c"
2425 elif test -f "${as_dir}install.sh"; then
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2427 ac_install_sh="${as_dir}install.sh -c"
2428 elif test -f "${as_dir}shtool"; then
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2430 ac_install_sh="${as_dir}shtool install -c"
2431 else
2432 ac_aux_dir_found=no
2433 if $ac_first_candidate; then
2434 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2435 else
2436 break
2439 else
2440 if test -f "${as_dir}${ac_aux}"; then
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2442 else
2443 ac_aux_dir_found=no
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2446 else
2447 break
2451 done
2452 if test "$ac_aux_dir_found" = yes; then
2453 ac_aux_dir="$as_dir"
2454 break
2456 ac_first_candidate=false
2458 as_found=false
2459 done
2460 IFS=$as_save_IFS
2461 if $as_found
2462 then :
2464 else $as_nop
2465 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 if test -f "${ac_aux_dir}config.guess"; then
2474 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2476 if test -f "${ac_aux_dir}config.sub"; then
2477 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2479 if test -f "$ac_aux_dir/configure"; then
2480 ac_configure="$SHELL ${ac_aux_dir}configure"
2483 # Check that the precious variables saved in the cache have kept the same
2484 # value.
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488 eval ac_new_set=\$ac_env_${ac_var}_set
2489 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490 eval ac_new_val=\$ac_env_${ac_var}_value
2491 case $ac_old_set,$ac_new_set in
2492 set,)
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,set)
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2500 ,);;
2502 if test "x$ac_old_val" != "x$ac_new_val"; then
2503 # differences in whitespace do not lead to failure.
2504 ac_old_val_w=`echo x $ac_old_val`
2505 ac_new_val_w=`echo x $ac_new_val`
2506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509 ac_cache_corrupted=:
2510 else
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513 eval $ac_var=\$ac_old_val
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2519 fi;;
2520 esac
2521 # Pass precious variables to config.status.
2522 if test "$ac_new_set" = set; then
2523 case $ac_new_val in
2524 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 *) ac_arg=$ac_var=$ac_new_val ;;
2526 esac
2527 case " $ac_configure_args " in
2528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2529 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530 esac
2532 done
2533 if $ac_cache_corrupted; then
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2539 and start over" "$LINENO" 5
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 ac_config_headers="$ac_config_headers config.h"
2556 am__api_version='1.16'
2560 # Find a good install program. We prefer a C program (faster),
2561 # so one script is as good as another. But avoid the broken or
2562 # incompatible versions:
2563 # SysV /etc/install, /usr/sbin/install
2564 # SunOS /usr/etc/install
2565 # IRIX /sbin/install
2566 # AIX /bin/install
2567 # AmigaOS /C/install, which installs bootblocks on floppy discs
2568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2571 # OS/2's system install, which has a completely different semantic
2572 # ./install, which can be erroneously created by make from ./install.sh.
2573 # Reject install programs that cannot install multiple files.
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2575 printf %s "checking for a BSD-compatible install... " >&6; }
2576 if test -z "$INSTALL"; then
2577 if test ${ac_cv_path_install+y}
2578 then :
2579 printf %s "(cached) " >&6
2580 else $as_nop
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 case $as_dir in #(((
2586 '') as_dir=./ ;;
2587 */) ;;
2588 *) as_dir=$as_dir/ ;;
2589 esac
2590 # Account for fact that we put trailing slashes in our PATH walk.
2591 case $as_dir in #((
2592 ./ | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595 /usr/ucb/* ) ;;
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2611 else
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2622 break 3
2626 done
2627 done
2629 esac
2631 done
2632 IFS=$as_save_IFS
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test ${ac_cv_path_install+y}; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 printf "%s\n" "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 printf %s "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2662 am_lf='
2664 case `pwd` in
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2671 esac
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679 am_has_slept=no
2680 for am_try in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.file
2682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2684 # -L didn't work.
2685 set X `ls -t "$srcdir/configure" conftest.file`
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2697 if test "$2" = conftest.file || test $am_try -eq 2; then
2698 break
2700 # Just in case.
2701 sleep 1
2702 am_has_slept=yes
2703 done
2704 test "$2" = conftest.file
2706 then
2707 # Ok.
2709 else
2710 as_fn_error $? "newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 printf "%s\n" "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2717 am_sleep_pid=
2718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2719 ( sleep 1 ) &
2720 am_sleep_pid=$!
2723 rm -f conftest.file
2725 test "$program_prefix" != NONE &&
2726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE &&
2729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2740 if test x"${MISSING+set}" != xset; then
2741 MISSING="\${SHELL} '$am_aux_dir/missing'"
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
2746 else
2747 am_missing_run=
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 if test x"${install_sh+set}" != xset; then
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}strip; ac_word=$2
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 printf %s "checking for $ac_word... " >&6; }
2771 if test ${ac_cv_prog_STRIP+y}
2772 then :
2773 printf %s "(cached) " >&6
2774 else $as_nop
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 case $as_dir in #(((
2783 '') as_dir=./ ;;
2784 */) ;;
2785 *) as_dir=$as_dir/ ;;
2786 esac
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2791 break 2
2793 done
2794 done
2795 IFS=$as_save_IFS
2799 STRIP=$ac_cv_prog_STRIP
2800 if test -n "$STRIP"; then
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2802 printf "%s\n" "$STRIP" >&6; }
2803 else
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 printf "%s\n" "no" >&6; }
2810 if test -z "$ac_cv_prog_STRIP"; then
2811 ac_ct_STRIP=$STRIP
2812 # Extract the first word of "strip", so it can be a program name with args.
2813 set dummy strip; ac_word=$2
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 printf %s "checking for $ac_word... " >&6; }
2816 if test ${ac_cv_prog_ac_ct_STRIP+y}
2817 then :
2818 printf %s "(cached) " >&6
2819 else $as_nop
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2826 IFS=$as_save_IFS
2827 case $as_dir in #(((
2828 '') as_dir=./ ;;
2829 */) ;;
2830 *) as_dir=$as_dir/ ;;
2831 esac
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 printf "%s\n" "$ac_ct_STRIP" >&6; }
2848 else
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 printf "%s\n" "no" >&6; }
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 STRIP=$ac_ct_STRIP
2864 else
2865 STRIP="$ac_cv_prog_STRIP"
2869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2873 printf %s "checking for a race-free mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875 if test ${ac_cv_path_mkdir+y}
2876 then :
2877 printf %s "(cached) " >&6
2878 else $as_nop
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882 IFS=$as_save_IFS
2883 case $as_dir in #(((
2884 '') as_dir=./ ;;
2885 */) ;;
2886 *) as_dir=$as_dir/ ;;
2887 esac
2888 for ac_prog in mkdir gmkdir; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2891 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2892 'mkdir ('*'coreutils) '* | \
2893 'BusyBox '* | \
2894 'mkdir (fileutils) '4.1*)
2895 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2896 break 3;;
2897 esac
2898 done
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 test -d ./--version && rmdir ./--version
2906 if test ${ac_cv_path_mkdir+y}; then
2907 MKDIR_P="$ac_cv_path_mkdir -p"
2908 else
2909 # As a last resort, use the slow shell script. Don't cache a
2910 # value for MKDIR_P within a source directory, because that will
2911 # break other packages using the cache if that directory is
2912 # removed, or if the value is a relative name.
2913 MKDIR_P="$ac_install_sh -d"
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2917 printf "%s\n" "$MKDIR_P" >&6; }
2919 for ac_prog in gawk mawk nawk awk
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 printf %s "checking for $ac_word... " >&6; }
2925 if test ${ac_cv_prog_AWK+y}
2926 then :
2927 printf %s "(cached) " >&6
2928 else $as_nop
2929 if test -n "$AWK"; then
2930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 case $as_dir in #(((
2937 '') as_dir=./ ;;
2938 */) ;;
2939 *) as_dir=$as_dir/ ;;
2940 esac
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_AWK="$ac_prog"
2944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2953 AWK=$ac_cv_prog_AWK
2954 if test -n "$AWK"; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2956 printf "%s\n" "$AWK" >&6; }
2957 else
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2963 test -n "$AWK" && break
2964 done
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2967 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2968 set x ${MAKE-make}
2969 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2970 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2971 then :
2972 printf %s "(cached) " >&6
2973 else $as_nop
2974 cat >conftest.make <<\_ACEOF
2975 SHELL = /bin/sh
2976 all:
2977 @echo '@@@%%%=$(MAKE)=@@@%%%'
2978 _ACEOF
2979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2981 *@@@%%%=?*=@@@%%%*)
2982 eval ac_cv_prog_make_${ac_make}_set=yes;;
2984 eval ac_cv_prog_make_${ac_make}_set=no;;
2985 esac
2986 rm -f conftest.make
2988 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 printf "%s\n" "yes" >&6; }
2991 SET_MAKE=
2992 else
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2995 SET_MAKE="MAKE=${MAKE-make}"
2998 rm -rf .tst 2>/dev/null
2999 mkdir .tst 2>/dev/null
3000 if test -d .tst; then
3001 am__leading_dot=.
3002 else
3003 am__leading_dot=_
3005 rmdir .tst 2>/dev/null
3007 # Check whether --enable-silent-rules was given.
3008 if test ${enable_silent_rules+y}
3009 then :
3010 enableval=$enable_silent_rules;
3013 case $enable_silent_rules in # (((
3014 yes) AM_DEFAULT_VERBOSITY=0;;
3015 no) AM_DEFAULT_VERBOSITY=1;;
3016 *) AM_DEFAULT_VERBOSITY=1;;
3017 esac
3018 am_make=${MAKE-make}
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020 printf %s "checking whether $am_make supports nested variables... " >&6; }
3021 if test ${am_cv_make_support_nested_variables+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else $as_nop
3025 if printf "%s\n" 'TRUE=$(BAR$(V))
3026 BAR0=false
3027 BAR1=true
3029 am__doit:
3030 @$(TRUE)
3031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3032 am_cv_make_support_nested_variables=yes
3033 else
3034 am_cv_make_support_nested_variables=no
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3038 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3039 if test $am_cv_make_support_nested_variables = yes; then
3040 AM_V='$(V)'
3041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3042 else
3043 AM_V=$AM_DEFAULT_VERBOSITY
3044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3046 AM_BACKSLASH='\'
3048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3050 # is not polluted with repeated "-I."
3051 am__isrc=' -I$(srcdir)'
3052 # test to see if srcdir already configured
3053 if test -f $srcdir/config.status; then
3054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3058 # test whether we have cygpath
3059 if test -z "$CYGPATH_W"; then
3060 if (cygpath --version) >/dev/null 2>/dev/null; then
3061 CYGPATH_W='cygpath -w'
3062 else
3063 CYGPATH_W=echo
3068 # Define the identity of the package.
3069 PACKAGE='smenu'
3070 VERSION='1.3.0'
3073 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3076 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3078 # Some tools Automake needs.
3080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3094 # For better backward compatibility. To be removed once Automake 1.9.x
3095 # dies out for good. For more background, see:
3096 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3097 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3098 mkdir_p='$(MKDIR_P)'
3100 # We need awk for the "check" target (and possibly the TAP driver). The
3101 # system "awk" is bad on some platforms.
3102 # Always define AMTAR for backward compatibility. Yes, it's still used
3103 # in the wild :-( We should find a proper way to deprecate it ...
3104 AMTAR='$${TAR-tar}'
3107 # We'll loop over all known methods to create a tar archive until one works.
3108 _am_tools='gnutar pax cpio none'
3110 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3116 # Variables for tags utilities; see am/tags.am
3117 if test -z "$CTAGS"; then
3118 CTAGS=ctags
3121 if test -z "$ETAGS"; then
3122 ETAGS=etags
3125 if test -z "$CSCOPE"; then
3126 CSCOPE=cscope
3131 # POSIX will say in a future version that running "rm -f" with no argument
3132 # is OK; and we want to be able to make that assumption in our Makefile
3133 # recipes. So use an aggressive probe to check that the usage we want is
3134 # actually supported "in the wild" to an acceptable degree.
3135 # See automake bug#10828.
3136 # To make any issue more visible, cause the running configure to be aborted
3137 # by default if the 'rm' program in use doesn't match our expectations; the
3138 # user can still override this though.
3139 if rm -f && rm -fr && rm -rf; then : OK; else
3140 cat >&2 <<'END'
3141 Oops!
3143 Your 'rm' program seems unable to run without file operands specified
3144 on the command line, even when the '-f' option is present. This is contrary
3145 to the behaviour of most rm programs out there, and not conforming with
3146 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3148 Please tell bug-automake@gnu.org about your system, including the value
3149 of your $PATH and any error possibly output before this message. This
3150 can help us improve future automake versions.
3153 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3154 echo 'Configuration will proceed anyway, since you have set the' >&2
3155 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3156 echo >&2
3157 else
3158 cat >&2 <<'END'
3159 Aborting the configuration process, to ensure you take notice of the issue.
3161 You can download and install GNU coreutils to get an 'rm' implementation
3162 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3164 If you want to complete the configuration process using your problematic
3165 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3166 to "yes", and re-run configure.
3169 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3173 # Check whether --enable-silent-rules was given.
3174 if test ${enable_silent_rules+y}
3175 then :
3176 enableval=$enable_silent_rules;
3179 case $enable_silent_rules in # (((
3180 yes) AM_DEFAULT_VERBOSITY=0;;
3181 no) AM_DEFAULT_VERBOSITY=1;;
3182 *) AM_DEFAULT_VERBOSITY=0;;
3183 esac
3184 am_make=${MAKE-make}
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3186 printf %s "checking whether $am_make supports nested variables... " >&6; }
3187 if test ${am_cv_make_support_nested_variables+y}
3188 then :
3189 printf %s "(cached) " >&6
3190 else $as_nop
3191 if printf "%s\n" 'TRUE=$(BAR$(V))
3192 BAR0=false
3193 BAR1=true
3195 am__doit:
3196 @$(TRUE)
3197 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3198 am_cv_make_support_nested_variables=yes
3199 else
3200 am_cv_make_support_nested_variables=no
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3204 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3205 if test $am_cv_make_support_nested_variables = yes; then
3206 AM_V='$(V)'
3207 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3208 else
3209 AM_V=$AM_DEFAULT_VERBOSITY
3210 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3212 AM_BACKSLASH='\'
3215 # Checks for programs.
3225 DEPDIR="${am__leading_dot}deps"
3227 ac_config_commands="$ac_config_commands depfiles"
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3230 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3231 cat > confinc.mk << 'END'
3232 am__doit:
3233 @echo this is the am__doit target >confinc.out
3234 .PHONY: am__doit
3236 am__include="#"
3237 am__quote=
3238 # BSD make does it like this.
3239 echo '.include "confinc.mk" # ignored' > confmf.BSD
3240 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3241 echo 'include confinc.mk # ignored' > confmf.GNU
3242 _am_result=no
3243 for s in GNU BSD; do
3244 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3245 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 case $?:`cat confinc.out 2>/dev/null` in #(
3250 '0:this is the am__doit target') :
3251 case $s in #(
3252 BSD) :
3253 am__include='.include' am__quote='"' ;; #(
3254 *) :
3255 am__include='include' am__quote='' ;;
3256 esac ;; #(
3257 *) :
3259 esac
3260 if test "$am__include" != "#"; then
3261 _am_result="yes ($s style)"
3262 break
3264 done
3265 rm -f confinc.* confmf.*
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3267 printf "%s\n" "${_am_result}" >&6; }
3269 # Check whether --enable-dependency-tracking was given.
3270 if test ${enable_dependency_tracking+y}
3271 then :
3272 enableval=$enable_dependency_tracking;
3275 if test "x$enable_dependency_tracking" != xno; then
3276 am_depcomp="$ac_aux_dir/depcomp"
3277 AMDEPBACKSLASH='\'
3278 am__nodep='_no'
3280 if test "x$enable_dependency_tracking" != xno; then
3281 AMDEP_TRUE=
3282 AMDEP_FALSE='#'
3283 else
3284 AMDEP_TRUE='#'
3285 AMDEP_FALSE=
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s "checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_CC+y}
3300 then :
3301 printf %s "(cached) " >&6
3302 else $as_nop
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3309 IFS=$as_save_IFS
3310 case $as_dir in #(((
3311 '') as_dir=./ ;;
3312 */) ;;
3313 *) as_dir=$as_dir/ ;;
3314 esac
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3319 break 2
3321 done
3322 done
3323 IFS=$as_save_IFS
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 printf "%s\n" "$CC" >&6; }
3331 else
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 printf "%s\n" "no" >&6; }
3338 if test -z "$ac_cv_prog_CC"; then
3339 ac_ct_CC=$CC
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc; ac_word=$2
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 printf %s "checking for $ac_word... " >&6; }
3344 if test ${ac_cv_prog_ac_ct_CC+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else $as_nop
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 case $as_dir in #(((
3356 '') as_dir=./ ;;
3357 */) ;;
3358 *) as_dir=$as_dir/ ;;
3359 esac
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_ac_ct_CC="gcc"
3363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3364 break 2
3366 done
3367 done
3368 IFS=$as_save_IFS
3372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 printf "%s\n" "$ac_ct_CC" >&6; }
3376 else
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 printf "%s\n" "no" >&6; }
3381 if test "x$ac_ct_CC" = x; then
3382 CC=""
3383 else
3384 case $cross_compiling:$ac_tool_warned in
3385 yes:)
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned=yes ;;
3389 esac
3390 CC=$ac_ct_CC
3392 else
3393 CC="$ac_cv_prog_CC"
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}cc; ac_word=$2
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 printf %s "checking for $ac_word... " >&6; }
3402 if test ${ac_cv_prog_CC+y}
3403 then :
3404 printf %s "(cached) " >&6
3405 else $as_nop
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 case $as_dir in #(((
3414 '') as_dir=./ ;;
3415 */) ;;
3416 *) as_dir=$as_dir/ ;;
3417 esac
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC="${ac_tool_prefix}cc"
3421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 printf "%s\n" "$CC" >&6; }
3434 else
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 printf "%s\n" "no" >&6; }
3442 if test -z "$CC"; then
3443 # Extract the first word of "cc", so it can be a program name with args.
3444 set dummy cc; ac_word=$2
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 printf %s "checking for $ac_word... " >&6; }
3447 if test ${ac_cv_prog_CC+y}
3448 then :
3449 printf %s "(cached) " >&6
3450 else $as_nop
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454 ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 case $as_dir in #(((
3460 '') as_dir=./ ;;
3461 */) ;;
3462 *) as_dir=$as_dir/ ;;
3463 esac
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3466 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected=yes
3468 continue
3470 ac_cv_prog_CC="cc"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy $ac_cv_prog_CC
3481 shift
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3486 shift
3487 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 printf %s "checking for $ac_word... " >&6; }
3511 if test ${ac_cv_prog_CC+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else $as_nop
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 printf "%s\n" "$CC" >&6; }
3543 else
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3549 test -n "$CC" && break
3550 done
3552 if test -z "$CC"; then
3553 ac_ct_CC=$CC
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 printf %s "checking for $ac_word... " >&6; }
3560 if test ${ac_cv_prog_ac_ct_CC+y}
3561 then :
3562 printf %s "(cached) " >&6
3563 else $as_nop
3564 if test -n "$ac_ct_CC"; then
3565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 case $as_dir in #(((
3572 '') as_dir=./ ;;
3573 */) ;;
3574 *) as_dir=$as_dir/ ;;
3575 esac
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_CC="$ac_prog"
3579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3584 IFS=$as_save_IFS
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 printf "%s\n" "$ac_ct_CC" >&6; }
3592 else
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 printf "%s\n" "no" >&6; }
3598 test -n "$ac_ct_CC" && break
3599 done
3601 if test "x$ac_ct_CC" = x; then
3602 CC=""
3603 else
3604 case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610 CC=$ac_ct_CC
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}clang; ac_word=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s "checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_CC+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else $as_nop
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3631 IFS=$as_save_IFS
3632 case $as_dir in #(((
3633 '') as_dir=./ ;;
3634 */) ;;
3635 *) as_dir=$as_dir/ ;;
3636 esac
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_CC="${ac_tool_prefix}clang"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 printf "%s\n" "$CC" >&6; }
3653 else
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 printf "%s\n" "no" >&6; }
3660 if test -z "$ac_cv_prog_CC"; then
3661 ac_ct_CC=$CC
3662 # Extract the first word of "clang", so it can be a program name with args.
3663 set dummy clang; ac_word=$2
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 printf %s "checking for $ac_word... " >&6; }
3666 if test ${ac_cv_prog_ac_ct_CC+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else $as_nop
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3676 IFS=$as_save_IFS
3677 case $as_dir in #(((
3678 '') as_dir=./ ;;
3679 */) ;;
3680 *) as_dir=$as_dir/ ;;
3681 esac
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_ac_ct_CC="clang"
3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 printf "%s\n" "$ac_ct_CC" >&6; }
3698 else
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 printf "%s\n" "no" >&6; }
3703 if test "x$ac_ct_CC" = x; then
3704 CC=""
3705 else
3706 case $cross_compiling:$ac_tool_warned in
3707 yes:)
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712 CC=$ac_ct_CC
3714 else
3715 CC="$ac_cv_prog_CC"
3721 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "no acceptable C compiler found in \$PATH
3724 See \`config.log' for more details" "$LINENO" 5; }
3726 # Provide some information about the compiler.
3727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3728 set X $ac_compile
3729 ac_compiler=$2
3730 for ac_option in --version -v -V -qversion -version; do
3731 { { ac_try="$ac_compiler $ac_option >&5"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 printf "%s\n" "$ac_try_echo"; } >&5
3738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3739 ac_status=$?
3740 if test -s conftest.err; then
3741 sed '10a\
3742 ... rest of stderr output deleted ...
3743 10q' conftest.err >conftest.er1
3744 cat conftest.er1 >&5
3746 rm -f conftest.er1 conftest.err
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 done
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3755 main (void)
3759 return 0;
3761 _ACEOF
3762 ac_clean_files_save=$ac_clean_files
3763 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3764 # Try to create an executable without -o first, disregard a.out.
3765 # It will help us diagnose broken compilers, and finding out an intuition
3766 # of exeext.
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3768 printf %s "checking whether the C compiler works... " >&6; }
3769 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3771 # The possible output files:
3772 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3774 ac_rmfiles=
3775 for ac_file in $ac_files
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3780 esac
3781 done
3782 rm -f $ac_rmfiles
3784 if { { ac_try="$ac_link_default"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 printf "%s\n" "$ac_try_echo"; } >&5
3791 (eval "$ac_link_default") 2>&5
3792 ac_status=$?
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 then :
3796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3798 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3799 # so that the user can short-circuit this test for compilers unknown to
3800 # Autoconf.
3801 for ac_file in $ac_files ''
3803 test -f "$ac_file" || continue
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3807 [ab].out )
3808 # We found the default executable, but exeext='' is most
3809 # certainly right.
3810 break;;
3811 *.* )
3812 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3813 then :; else
3814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816 # We set ac_cv_exeext here because the later test for it is not
3817 # safe: cross compilers may not add the suffix if given an `-o'
3818 # argument, so we may need to know it at that point already.
3819 # Even if this section looks crufty: it has the advantage of
3820 # actually working.
3821 break;;
3823 break;;
3824 esac
3825 done
3826 test "$ac_cv_exeext" = no && ac_cv_exeext=
3828 else $as_nop
3829 ac_file=''
3831 if test -z "$ac_file"
3832 then :
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 printf "%s\n" "no" >&6; }
3835 printf "%s\n" "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error 77 "C compiler cannot create executables
3841 See \`config.log' for more details" "$LINENO" 5; }
3842 else $as_nop
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 printf "%s\n" "yes" >&6; }
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3847 printf %s "checking for C compiler default output file name... " >&6; }
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3849 printf "%s\n" "$ac_file" >&6; }
3850 ac_exeext=$ac_cv_exeext
3852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3853 ac_clean_files=$ac_clean_files_save
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3855 printf %s "checking for suffix of executables... " >&6; }
3856 if { { ac_try="$ac_link"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_link") 2>&5
3864 ac_status=$?
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 then :
3868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3869 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3870 # work properly (i.e., refer to `conftest.exe'), while it won't with
3871 # `rm'.
3872 for ac_file in conftest.exe conftest conftest.*; do
3873 test -f "$ac_file" || continue
3874 case $ac_file in
3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 break;;
3878 * ) break;;
3879 esac
3880 done
3881 else $as_nop
3882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3885 See \`config.log' for more details" "$LINENO" 5; }
3887 rm -f conftest conftest$ac_cv_exeext
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3889 printf "%s\n" "$ac_cv_exeext" >&6; }
3891 rm -f conftest.$ac_ext
3892 EXEEXT=$ac_cv_exeext
3893 ac_exeext=$EXEEXT
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdio.h>
3898 main (void)
3900 FILE *f = fopen ("conftest.out", "w");
3901 return ferror (f) || fclose (f) != 0;
3904 return 0;
3906 _ACEOF
3907 ac_clean_files="$ac_clean_files conftest.out"
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 printf %s "checking whether we are cross compiling... " >&6; }
3912 if test "$cross_compiling" != yes; then
3913 { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 printf "%s\n" "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3921 ac_status=$?
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }
3924 if { ac_try='./conftest$ac_cv_exeext'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 printf "%s\n" "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error 77 "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details" "$LINENO" 5; }
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 printf "%s\n" "$cross_compiling" >&6; }
3951 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3954 printf %s "checking for suffix of object files... " >&6; }
3955 if test ${ac_cv_objext+y}
3956 then :
3957 printf %s "(cached) " >&6
3958 else $as_nop
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 main (void)
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 printf "%s\n" "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3979 ac_status=$?
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }
3982 then :
3983 for ac_file in conftest.o conftest.obj conftest.*; do
3984 test -f "$ac_file" || continue;
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3988 break;;
3989 esac
3990 done
3991 else $as_nop
3992 printf "%s\n" "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "cannot compute suffix of object files: cannot compile
3998 See \`config.log' for more details" "$LINENO" 5; }
4000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4003 printf "%s\n" "$ac_cv_objext" >&6; }
4004 OBJEXT=$ac_cv_objext
4005 ac_objext=$OBJEXT
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4007 printf %s "checking whether the compiler supports GNU C... " >&6; }
4008 if test ${ac_cv_c_compiler_gnu+y}
4009 then :
4010 printf %s "(cached) " >&6
4011 else $as_nop
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4016 main (void)
4018 #ifndef __GNUC__
4019 choke me
4020 #endif
4023 return 0;
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"
4027 then :
4028 ac_compiler_gnu=yes
4029 else $as_nop
4030 ac_compiler_gnu=no
4032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4037 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test $ac_compiler_gnu = yes; then
4041 GCC=yes
4042 else
4043 GCC=
4045 ac_test_CFLAGS=${CFLAGS+y}
4046 ac_save_CFLAGS=$CFLAGS
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4048 printf %s "checking whether $CC accepts -g... " >&6; }
4049 if test ${ac_cv_prog_cc_g+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4055 ac_cv_prog_cc_g=no
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4061 main (void)
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070 ac_cv_prog_cc_g=yes
4071 else $as_nop
4072 CFLAGS=""
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main (void)
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"
4085 then :
4087 else $as_nop
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 main (void)
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103 ac_cv_prog_cc_g=yes
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4114 if test $ac_test_CFLAGS; then
4115 CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4118 CFLAGS="-g -O2"
4119 else
4120 CFLAGS="-g"
4122 else
4123 if test "$GCC" = yes; then
4124 CFLAGS="-O2"
4125 else
4126 CFLAGS=
4129 ac_prog_cc_stdc=no
4130 if test x$ac_prog_cc_stdc = xno
4131 then :
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4133 printf %s "checking for $CC option to enable C11 features... " >&6; }
4134 if test ${ac_cv_prog_cc_c11+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else $as_nop
4138 ac_cv_prog_cc_c11=no
4139 ac_save_CC=$CC
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 $ac_c_conftest_c11_program
4143 _ACEOF
4144 for ac_arg in '' -std=gnu11
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"
4148 then :
4149 ac_cv_prog_cc_c11=$ac_arg
4151 rm -f core conftest.err conftest.$ac_objext conftest.beam
4152 test "x$ac_cv_prog_cc_c11" != "xno" && break
4153 done
4154 rm -f conftest.$ac_ext
4155 CC=$ac_save_CC
4158 if test "x$ac_cv_prog_cc_c11" = xno
4159 then :
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 printf "%s\n" "unsupported" >&6; }
4162 else $as_nop
4163 if test "x$ac_cv_prog_cc_c11" = x
4164 then :
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4166 printf "%s\n" "none needed" >&6; }
4167 else $as_nop
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4169 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4170 CC="$CC $ac_cv_prog_cc_c11"
4172 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4173 ac_prog_cc_stdc=c11
4176 if test x$ac_prog_cc_stdc = xno
4177 then :
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4179 printf %s "checking for $CC option to enable C99 features... " >&6; }
4180 if test ${ac_cv_prog_cc_c99+y}
4181 then :
4182 printf %s "(cached) " >&6
4183 else $as_nop
4184 ac_cv_prog_cc_c99=no
4185 ac_save_CC=$CC
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 $ac_c_conftest_c99_program
4189 _ACEOF
4190 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4192 CC="$ac_save_CC $ac_arg"
4193 if ac_fn_c_try_compile "$LINENO"
4194 then :
4195 ac_cv_prog_cc_c99=$ac_arg
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam
4198 test "x$ac_cv_prog_cc_c99" != "xno" && break
4199 done
4200 rm -f conftest.$ac_ext
4201 CC=$ac_save_CC
4204 if test "x$ac_cv_prog_cc_c99" = xno
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 printf "%s\n" "unsupported" >&6; }
4208 else $as_nop
4209 if test "x$ac_cv_prog_cc_c99" = x
4210 then :
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 printf "%s\n" "none needed" >&6; }
4213 else $as_nop
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4215 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4216 CC="$CC $ac_cv_prog_cc_c99"
4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4219 ac_prog_cc_stdc=c99
4222 if test x$ac_prog_cc_stdc = xno
4223 then :
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4225 printf %s "checking for $CC option to enable C89 features... " >&6; }
4226 if test ${ac_cv_prog_cc_c89+y}
4227 then :
4228 printf %s "(cached) " >&6
4229 else $as_nop
4230 ac_cv_prog_cc_c89=no
4231 ac_save_CC=$CC
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 $ac_c_conftest_c89_program
4235 _ACEOF
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"
4240 then :
4241 ac_cv_prog_cc_c89=$ac_arg
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4245 done
4246 rm -f conftest.$ac_ext
4247 CC=$ac_save_CC
4250 if test "x$ac_cv_prog_cc_c89" = xno
4251 then :
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253 printf "%s\n" "unsupported" >&6; }
4254 else $as_nop
4255 if test "x$ac_cv_prog_cc_c89" = x
4256 then :
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 printf "%s\n" "none needed" >&6; }
4259 else $as_nop
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4262 CC="$CC $ac_cv_prog_cc_c89"
4264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4265 ac_prog_cc_stdc=c89
4269 ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4282 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4283 if test ${am_cv_prog_cc_c_o+y}
4284 then :
4285 printf %s "(cached) " >&6
4286 else $as_nop
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 main (void)
4295 return 0;
4297 _ACEOF
4298 # Make sure it works both with $CC and with simple cc.
4299 # Following AC_PROG_CC_C_O, we do the test twice because some
4300 # compilers refuse to overwrite an existing .o file with -o,
4301 # though they will create one.
4302 am_cv_prog_cc_c_o=yes
4303 for am_i in 1 2; do
4304 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4305 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } \
4309 && test -f conftest2.$ac_objext; then
4310 : OK
4311 else
4312 am_cv_prog_cc_c_o=no
4313 break
4315 done
4316 rm -f core conftest*
4317 unset am_i
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4320 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4321 if test "$am_cv_prog_cc_c_o" != yes; then
4322 # Losing compiler, so override with the script.
4323 # FIXME: It is wrong to rewrite CC.
4324 # But if we don't then we get into trouble of one sort or another.
4325 # A longer-term fix would be to have automake use am__CC in this case,
4326 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4327 CC="$am_aux_dir/compile $CC"
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 depcc="$CC" am_compiler_list=
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4339 printf %s "checking dependency style of $depcc... " >&6; }
4340 if test ${am_cv_CC_dependencies_compiler_type+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else $as_nop
4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4345 # We make a subdir and do the tests there. Otherwise we can end up
4346 # making bogus files that we don't know about and never remove. For
4347 # instance it was reported that on HP-UX the gcc test will end up
4348 # making a dummy file named 'D' -- because '-MD' means "put the output
4349 # in D".
4350 rm -rf conftest.dir
4351 mkdir conftest.dir
4352 # Copy depcomp to subdir because otherwise we won't find it if we're
4353 # using a relative directory.
4354 cp "$am_depcomp" conftest.dir
4355 cd conftest.dir
4356 # We will build objects and dependencies in a subdirectory because
4357 # it helps to detect inapplicable dependency modes. For instance
4358 # both Tru64's cc and ICC support -MD to output dependencies as a
4359 # side effect of compilation, but ICC will put the dependencies in
4360 # the current directory while Tru64 will put them in the object
4361 # directory.
4362 mkdir sub
4364 am_cv_CC_dependencies_compiler_type=none
4365 if test "$am_compiler_list" = ""; then
4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4368 am__universal=false
4369 case " $depcc " in #(
4370 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4371 esac
4373 for depmode in $am_compiler_list; do
4374 # Setup a source with many dependencies, because some compilers
4375 # like to wrap large dependency lists on column 80 (with \), and
4376 # we should not choose a depcomp mode which is confused by this.
4378 # We need to recreate these files for each test, as the compiler may
4379 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler.
4381 : > sub/conftest.c
4382 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4385 # Solaris 10 /bin/sh.
4386 echo '/* dummy */' > sub/conftst$i.h
4387 done
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4391 # mode. It turns out that the SunPro C++ compiler does not properly
4392 # handle '-M -o', and we need to detect this. Also, some Intel
4393 # versions had trouble with output in subdirs.
4394 am__obj=sub/conftest.${OBJEXT-o}
4395 am__minus_obj="-o $am__obj"
4396 case $depmode in
4397 gcc)
4398 # This depmode causes a compiler race in universal mode.
4399 test "$am__universal" = false || continue
4401 nosideeffect)
4402 # After this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested.
4404 if test "x$enable_dependency_tracking" = xyes; then
4405 continue
4406 else
4407 break
4410 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4411 # This compiler won't grok '-c -o', but also, the minuso test has
4412 # not run yet. These depmodes are late enough in the game, and
4413 # so weak that their functioning should not be impacted.
4414 am__obj=conftest.${OBJEXT-o}
4415 am__minus_obj=
4417 none) break ;;
4418 esac
4419 if depmode=$depmode \
4420 source=sub/conftest.c object=$am__obj \
4421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4423 >/dev/null 2>conftest.err &&
4424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4428 # icc doesn't choke on unknown options, it will just issue warnings
4429 # or remarks (even with -Werror). So we grep stderr for any message
4430 # that says an option was ignored or not supported.
4431 # When given -MP, icc 7.0 and 7.1 complain thusly:
4432 # icc: Command line warning: ignoring option '-M'; no argument required
4433 # The diagnosis changed in icc 8.0:
4434 # icc: Command line remark: option '-MP' not supported
4435 if (grep 'ignoring option' conftest.err ||
4436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4437 am_cv_CC_dependencies_compiler_type=$depmode
4438 break
4441 done
4443 cd ..
4444 rm -rf conftest.dir
4445 else
4446 am_cv_CC_dependencies_compiler_type=none
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4451 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4452 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4455 test "x$enable_dependency_tracking" != xno \
4456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4457 am__fastdepCC_TRUE=
4458 am__fastdepCC_FALSE='#'
4459 else
4460 am__fastdepCC_TRUE='#'
4461 am__fastdepCC_FALSE=
4466 ac_header= ac_cache=
4467 for ac_item in $ac_header_c_list
4469 if test $ac_cache; then
4470 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4471 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4472 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4474 ac_header= ac_cache=
4475 elif test $ac_header; then
4476 ac_cache=$ac_item
4477 else
4478 ac_header=$ac_item
4480 done
4489 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4490 then :
4492 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4502 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4503 if test ${ac_cv_safe_to_define___extensions__+y}
4504 then :
4505 printf %s "(cached) " >&6
4506 else $as_nop
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # define __EXTENSIONS__ 1
4511 $ac_includes_default
4513 main (void)
4517 return 0;
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"
4521 then :
4522 ac_cv_safe_to_define___extensions__=yes
4523 else $as_nop
4524 ac_cv_safe_to_define___extensions__=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4529 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4532 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4533 if test ${ac_cv_should_define__xopen_source+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 ac_cv_should_define__xopen_source=no
4538 if test $ac_cv_header_wchar_h = yes
4539 then :
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4543 #include <wchar.h>
4544 mbstate_t x;
4546 main (void)
4550 return 0;
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"
4554 then :
4556 else $as_nop
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 #define _XOPEN_SOURCE 500
4561 #include <wchar.h>
4562 mbstate_t x;
4564 main (void)
4568 return 0;
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"
4572 then :
4573 ac_cv_should_define__xopen_source=yes
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4581 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4583 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4585 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4587 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4589 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4591 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4593 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4595 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4597 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4599 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4601 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4603 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4605 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4607 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4609 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4611 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4613 if test $ac_cv_header_minix_config_h = yes
4614 then :
4615 MINIX=yes
4616 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4618 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4620 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4622 else $as_nop
4623 MINIX=
4625 if test $ac_cv_safe_to_define___extensions__ = yes
4626 then :
4627 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4630 if test $ac_cv_should_define__xopen_source = yes
4631 then :
4632 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4636 for ac_prog in gawk mawk nawk awk
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 printf %s "checking for $ac_word... " >&6; }
4642 if test ${ac_cv_prog_AWK+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else $as_nop
4646 if test -n "$AWK"; then
4647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 case $as_dir in #(((
4654 '') as_dir=./ ;;
4655 */) ;;
4656 *) as_dir=$as_dir/ ;;
4657 esac
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_AWK="$ac_prog"
4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 AWK=$ac_cv_prog_AWK
4671 if test -n "$AWK"; then
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4673 printf "%s\n" "$AWK" >&6; }
4674 else
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 printf "%s\n" "no" >&6; }
4680 test -n "$AWK" && break
4681 done
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 printf %s "checking for $ac_word... " >&6; }
4693 if test ${ac_cv_prog_CC+y}
4694 then :
4695 printf %s "(cached) " >&6
4696 else $as_nop
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 case $as_dir in #(((
4705 '') as_dir=./ ;;
4706 */) ;;
4707 *) as_dir=$as_dir/ ;;
4708 esac
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 printf "%s\n" "$CC" >&6; }
4725 else
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 printf "%s\n" "no" >&6; }
4732 if test -z "$ac_cv_prog_CC"; then
4733 ac_ct_CC=$CC
4734 # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 printf %s "checking for $ac_word... " >&6; }
4738 if test ${ac_cv_prog_ac_ct_CC+y}
4739 then :
4740 printf %s "(cached) " >&6
4741 else $as_nop
4742 if test -n "$ac_ct_CC"; then
4743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 case $as_dir in #(((
4750 '') as_dir=./ ;;
4751 */) ;;
4752 *) as_dir=$as_dir/ ;;
4753 esac
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_CC="gcc"
4757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767 if test -n "$ac_ct_CC"; then
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769 printf "%s\n" "$ac_ct_CC" >&6; }
4770 else
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 printf "%s\n" "no" >&6; }
4775 if test "x$ac_ct_CC" = x; then
4776 CC=""
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 CC=$ac_ct_CC
4786 else
4787 CC="$ac_cv_prog_CC"
4790 if test -z "$CC"; then
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}cc; ac_word=$2
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 printf %s "checking for $ac_word... " >&6; }
4796 if test ${ac_cv_prog_CC+y}
4797 then :
4798 printf %s "(cached) " >&6
4799 else $as_nop
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 case $as_dir in #(((
4808 '') as_dir=./ ;;
4809 */) ;;
4810 *) as_dir=$as_dir/ ;;
4811 esac
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CC="${ac_tool_prefix}cc"
4815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 printf "%s\n" "$CC" >&6; }
4828 else
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 printf "%s\n" "no" >&6; }
4836 if test -z "$CC"; then
4837 # Extract the first word of "cc", so it can be a program name with args.
4838 set dummy cc; ac_word=$2
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 printf %s "checking for $ac_word... " >&6; }
4841 if test ${ac_cv_prog_CC+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else $as_nop
4845 if test -n "$CC"; then
4846 ac_cv_prog_CC="$CC" # Let the user override the test.
4847 else
4848 ac_prog_rejected=no
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 case $as_dir in #(((
4854 '') as_dir=./ ;;
4855 */) ;;
4856 *) as_dir=$as_dir/ ;;
4857 esac
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4860 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4861 ac_prog_rejected=yes
4862 continue
4864 ac_cv_prog_CC="cc"
4865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4872 if test $ac_prog_rejected = yes; then
4873 # We found a bogon in the path, so make sure we never use it.
4874 set dummy $ac_cv_prog_CC
4875 shift
4876 if test $# != 0; then
4877 # We chose a different compiler from the bogus one.
4878 # However, it has the same basename, so the bogon will be chosen
4879 # first if we set CC to just the basename; use the full file name.
4880 shift
4881 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4886 CC=$ac_cv_prog_CC
4887 if test -n "$CC"; then
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4889 printf "%s\n" "$CC" >&6; }
4890 else
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf "%s\n" "no" >&6; }
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in cl.exe
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 printf %s "checking for $ac_word... " >&6; }
4905 if test ${ac_cv_prog_CC+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 CC=$ac_cv_prog_CC
4934 if test -n "$CC"; then
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4936 printf "%s\n" "$CC" >&6; }
4937 else
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 printf "%s\n" "no" >&6; }
4943 test -n "$CC" && break
4944 done
4946 if test -z "$CC"; then
4947 ac_ct_CC=$CC
4948 for ac_prog in cl.exe
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 printf %s "checking for $ac_word... " >&6; }
4954 if test ${ac_cv_prog_ac_ct_CC+y}
4955 then :
4956 printf %s "(cached) " >&6
4957 else $as_nop
4958 if test -n "$ac_ct_CC"; then
4959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 case $as_dir in #(((
4966 '') as_dir=./ ;;
4967 */) ;;
4968 *) as_dir=$as_dir/ ;;
4969 esac
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_CC="$ac_prog"
4973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4983 if test -n "$ac_ct_CC"; then
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4985 printf "%s\n" "$ac_ct_CC" >&6; }
4986 else
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 printf "%s\n" "no" >&6; }
4992 test -n "$ac_ct_CC" && break
4993 done
4995 if test "x$ac_ct_CC" = x; then
4996 CC=""
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999 yes:)
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002 ac_tool_warned=yes ;;
5003 esac
5004 CC=$ac_ct_CC
5009 if test -z "$CC"; then
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}clang; ac_word=$2
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 printf %s "checking for $ac_word... " >&6; }
5015 if test ${ac_cv_prog_CC+y}
5016 then :
5017 printf %s "(cached) " >&6
5018 else $as_nop
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 case $as_dir in #(((
5027 '') as_dir=./ ;;
5028 */) ;;
5029 *) as_dir=$as_dir/ ;;
5030 esac
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_CC="${ac_tool_prefix}clang"
5034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 CC=$ac_cv_prog_CC
5044 if test -n "$CC"; then
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046 printf "%s\n" "$CC" >&6; }
5047 else
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 printf "%s\n" "no" >&6; }
5054 if test -z "$ac_cv_prog_CC"; then
5055 ac_ct_CC=$CC
5056 # Extract the first word of "clang", so it can be a program name with args.
5057 set dummy clang; ac_word=$2
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 printf %s "checking for $ac_word... " >&6; }
5060 if test ${ac_cv_prog_ac_ct_CC+y}
5061 then :
5062 printf %s "(cached) " >&6
5063 else $as_nop
5064 if test -n "$ac_ct_CC"; then
5065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 case $as_dir in #(((
5072 '') as_dir=./ ;;
5073 */) ;;
5074 *) as_dir=$as_dir/ ;;
5075 esac
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_CC="clang"
5079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5089 if test -n "$ac_ct_CC"; then
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5091 printf "%s\n" "$ac_ct_CC" >&6; }
5092 else
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 printf "%s\n" "no" >&6; }
5097 if test "x$ac_ct_CC" = x; then
5098 CC=""
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 CC=$ac_ct_CC
5108 else
5109 CC="$ac_cv_prog_CC"
5115 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5117 as_fn_error $? "no acceptable C compiler found in \$PATH
5118 See \`config.log' for more details" "$LINENO" 5; }
5120 # Provide some information about the compiler.
5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5122 set X $ac_compile
5123 ac_compiler=$2
5124 for ac_option in --version -v -V -qversion -version; do
5125 { { ac_try="$ac_compiler $ac_option >&5"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131 printf "%s\n" "$ac_try_echo"; } >&5
5132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5133 ac_status=$?
5134 if test -s conftest.err; then
5135 sed '10a\
5136 ... rest of stderr output deleted ...
5137 10q' conftest.err >conftest.er1
5138 cat conftest.er1 >&5
5140 rm -f conftest.er1 conftest.err
5141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5142 test $ac_status = 0; }
5143 done
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5146 printf %s "checking whether the compiler supports GNU C... " >&6; }
5147 if test ${ac_cv_c_compiler_gnu+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else $as_nop
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5155 main (void)
5157 #ifndef __GNUC__
5158 choke me
5159 #endif
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"
5166 then :
5167 ac_compiler_gnu=yes
5168 else $as_nop
5169 ac_compiler_gnu=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179 if test $ac_compiler_gnu = yes; then
5180 GCC=yes
5181 else
5182 GCC=
5184 ac_test_CFLAGS=${CFLAGS+y}
5185 ac_save_CFLAGS=$CFLAGS
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5187 printf %s "checking whether $CC accepts -g... " >&6; }
5188 if test ${ac_cv_prog_cc_g+y}
5189 then :
5190 printf %s "(cached) " >&6
5191 else $as_nop
5192 ac_save_c_werror_flag=$ac_c_werror_flag
5193 ac_c_werror_flag=yes
5194 ac_cv_prog_cc_g=no
5195 CFLAGS="-g"
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5200 main (void)
5204 return 0;
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"
5208 then :
5209 ac_cv_prog_cc_g=yes
5210 else $as_nop
5211 CFLAGS=""
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5216 main (void)
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"
5224 then :
5226 else $as_nop
5227 ac_c_werror_flag=$ac_save_c_werror_flag
5228 CFLAGS="-g"
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5233 main (void)
5237 return 0;
5239 _ACEOF
5240 if ac_fn_c_try_compile "$LINENO"
5241 then :
5242 ac_cv_prog_cc_g=yes
5244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249 ac_c_werror_flag=$ac_save_c_werror_flag
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5253 if test $ac_test_CFLAGS; then
5254 CFLAGS=$ac_save_CFLAGS
5255 elif test $ac_cv_prog_cc_g = yes; then
5256 if test "$GCC" = yes; then
5257 CFLAGS="-g -O2"
5258 else
5259 CFLAGS="-g"
5261 else
5262 if test "$GCC" = yes; then
5263 CFLAGS="-O2"
5264 else
5265 CFLAGS=
5268 ac_prog_cc_stdc=no
5269 if test x$ac_prog_cc_stdc = xno
5270 then :
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5272 printf %s "checking for $CC option to enable C11 features... " >&6; }
5273 if test ${ac_cv_prog_cc_c11+y}
5274 then :
5275 printf %s "(cached) " >&6
5276 else $as_nop
5277 ac_cv_prog_cc_c11=no
5278 ac_save_CC=$CC
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 $ac_c_conftest_c11_program
5282 _ACEOF
5283 for ac_arg in '' -std=gnu11
5285 CC="$ac_save_CC $ac_arg"
5286 if ac_fn_c_try_compile "$LINENO"
5287 then :
5288 ac_cv_prog_cc_c11=$ac_arg
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam
5291 test "x$ac_cv_prog_cc_c11" != "xno" && break
5292 done
5293 rm -f conftest.$ac_ext
5294 CC=$ac_save_CC
5297 if test "x$ac_cv_prog_cc_c11" = xno
5298 then :
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5300 printf "%s\n" "unsupported" >&6; }
5301 else $as_nop
5302 if test "x$ac_cv_prog_cc_c11" = x
5303 then :
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5305 printf "%s\n" "none needed" >&6; }
5306 else $as_nop
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5309 CC="$CC $ac_cv_prog_cc_c11"
5311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5312 ac_prog_cc_stdc=c11
5315 if test x$ac_prog_cc_stdc = xno
5316 then :
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5318 printf %s "checking for $CC option to enable C99 features... " >&6; }
5319 if test ${ac_cv_prog_cc_c99+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else $as_nop
5323 ac_cv_prog_cc_c99=no
5324 ac_save_CC=$CC
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 $ac_c_conftest_c99_program
5328 _ACEOF
5329 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5331 CC="$ac_save_CC $ac_arg"
5332 if ac_fn_c_try_compile "$LINENO"
5333 then :
5334 ac_cv_prog_cc_c99=$ac_arg
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam
5337 test "x$ac_cv_prog_cc_c99" != "xno" && break
5338 done
5339 rm -f conftest.$ac_ext
5340 CC=$ac_save_CC
5343 if test "x$ac_cv_prog_cc_c99" = xno
5344 then :
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5346 printf "%s\n" "unsupported" >&6; }
5347 else $as_nop
5348 if test "x$ac_cv_prog_cc_c99" = x
5349 then :
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351 printf "%s\n" "none needed" >&6; }
5352 else $as_nop
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5355 CC="$CC $ac_cv_prog_cc_c99"
5357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5358 ac_prog_cc_stdc=c99
5361 if test x$ac_prog_cc_stdc = xno
5362 then :
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5364 printf %s "checking for $CC option to enable C89 features... " >&6; }
5365 if test ${ac_cv_prog_cc_c89+y}
5366 then :
5367 printf %s "(cached) " >&6
5368 else $as_nop
5369 ac_cv_prog_cc_c89=no
5370 ac_save_CC=$CC
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 $ac_c_conftest_c89_program
5374 _ACEOF
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5377 CC="$ac_save_CC $ac_arg"
5378 if ac_fn_c_try_compile "$LINENO"
5379 then :
5380 ac_cv_prog_cc_c89=$ac_arg
5382 rm -f core conftest.err conftest.$ac_objext conftest.beam
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5384 done
5385 rm -f conftest.$ac_ext
5386 CC=$ac_save_CC
5389 if test "x$ac_cv_prog_cc_c89" = xno
5390 then :
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 printf "%s\n" "unsupported" >&6; }
5393 else $as_nop
5394 if test "x$ac_cv_prog_cc_c89" = x
5395 then :
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5397 printf "%s\n" "none needed" >&6; }
5398 else $as_nop
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5401 CC="$CC $ac_cv_prog_cc_c89"
5403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5404 ac_prog_cc_stdc=c89
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415 ac_ext=c
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5421 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5422 if test ${am_cv_prog_cc_c_o+y}
5423 then :
5424 printf %s "(cached) " >&6
5425 else $as_nop
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5430 main (void)
5434 return 0;
5436 _ACEOF
5437 # Make sure it works both with $CC and with simple cc.
5438 # Following AC_PROG_CC_C_O, we do the test twice because some
5439 # compilers refuse to overwrite an existing .o file with -o,
5440 # though they will create one.
5441 am_cv_prog_cc_c_o=yes
5442 for am_i in 1 2; do
5443 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5444 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } \
5448 && test -f conftest2.$ac_objext; then
5449 : OK
5450 else
5451 am_cv_prog_cc_c_o=no
5452 break
5454 done
5455 rm -f core conftest*
5456 unset am_i
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5459 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5460 if test "$am_cv_prog_cc_c_o" != yes; then
5461 # Losing compiler, so override with the script.
5462 # FIXME: It is wrong to rewrite CC.
5463 # But if we don't then we get into trouble of one sort or another.
5464 # A longer-term fix would be to have automake use am__CC in this case,
5465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5466 CC="$am_aux_dir/compile $CC"
5468 ac_ext=c
5469 ac_cpp='$CPP $CPPFLAGS'
5470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 depcc="$CC" am_compiler_list=
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5478 printf %s "checking dependency style of $depcc... " >&6; }
5479 if test ${am_cv_CC_dependencies_compiler_type+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5484 # We make a subdir and do the tests there. Otherwise we can end up
5485 # making bogus files that we don't know about and never remove. For
5486 # instance it was reported that on HP-UX the gcc test will end up
5487 # making a dummy file named 'D' -- because '-MD' means "put the output
5488 # in D".
5489 rm -rf conftest.dir
5490 mkdir conftest.dir
5491 # Copy depcomp to subdir because otherwise we won't find it if we're
5492 # using a relative directory.
5493 cp "$am_depcomp" conftest.dir
5494 cd conftest.dir
5495 # We will build objects and dependencies in a subdirectory because
5496 # it helps to detect inapplicable dependency modes. For instance
5497 # both Tru64's cc and ICC support -MD to output dependencies as a
5498 # side effect of compilation, but ICC will put the dependencies in
5499 # the current directory while Tru64 will put them in the object
5500 # directory.
5501 mkdir sub
5503 am_cv_CC_dependencies_compiler_type=none
5504 if test "$am_compiler_list" = ""; then
5505 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5507 am__universal=false
5508 case " $depcc " in #(
5509 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5510 esac
5512 for depmode in $am_compiler_list; do
5513 # Setup a source with many dependencies, because some compilers
5514 # like to wrap large dependency lists on column 80 (with \), and
5515 # we should not choose a depcomp mode which is confused by this.
5517 # We need to recreate these files for each test, as the compiler may
5518 # overwrite some of them when testing with obscure command lines.
5519 # This happens at least with the AIX C compiler.
5520 : > sub/conftest.c
5521 for i in 1 2 3 4 5 6; do
5522 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5523 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5524 # Solaris 10 /bin/sh.
5525 echo '/* dummy */' > sub/conftst$i.h
5526 done
5527 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5529 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5530 # mode. It turns out that the SunPro C++ compiler does not properly
5531 # handle '-M -o', and we need to detect this. Also, some Intel
5532 # versions had trouble with output in subdirs.
5533 am__obj=sub/conftest.${OBJEXT-o}
5534 am__minus_obj="-o $am__obj"
5535 case $depmode in
5536 gcc)
5537 # This depmode causes a compiler race in universal mode.
5538 test "$am__universal" = false || continue
5540 nosideeffect)
5541 # After this tag, mechanisms are not by side-effect, so they'll
5542 # only be used when explicitly requested.
5543 if test "x$enable_dependency_tracking" = xyes; then
5544 continue
5545 else
5546 break
5549 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5550 # This compiler won't grok '-c -o', but also, the minuso test has
5551 # not run yet. These depmodes are late enough in the game, and
5552 # so weak that their functioning should not be impacted.
5553 am__obj=conftest.${OBJEXT-o}
5554 am__minus_obj=
5556 none) break ;;
5557 esac
5558 if depmode=$depmode \
5559 source=sub/conftest.c object=$am__obj \
5560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5561 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5562 >/dev/null 2>conftest.err &&
5563 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5565 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5567 # icc doesn't choke on unknown options, it will just issue warnings
5568 # or remarks (even with -Werror). So we grep stderr for any message
5569 # that says an option was ignored or not supported.
5570 # When given -MP, icc 7.0 and 7.1 complain thusly:
5571 # icc: Command line warning: ignoring option '-M'; no argument required
5572 # The diagnosis changed in icc 8.0:
5573 # icc: Command line remark: option '-MP' not supported
5574 if (grep 'ignoring option' conftest.err ||
5575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5576 am_cv_CC_dependencies_compiler_type=$depmode
5577 break
5580 done
5582 cd ..
5583 rm -rf conftest.dir
5584 else
5585 am_cv_CC_dependencies_compiler_type=none
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5590 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5591 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594 test "x$enable_dependency_tracking" != xno \
5595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5596 am__fastdepCC_TRUE=
5597 am__fastdepCC_FALSE='#'
5598 else
5599 am__fastdepCC_TRUE='#'
5600 am__fastdepCC_FALSE=
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5606 printf %s "checking whether ln -s works... " >&6; }
5607 LN_S=$as_ln_s
5608 if test "$LN_S" = "ln -s"; then
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 printf "%s\n" "yes" >&6; }
5611 else
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5613 printf "%s\n" "no, using $LN_S" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5617 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5618 set x ${MAKE-make}
5619 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5620 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 cat >conftest.make <<\_ACEOF
5625 SHELL = /bin/sh
5626 all:
5627 @echo '@@@%%%=$(MAKE)=@@@%%%'
5628 _ACEOF
5629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5631 *@@@%%%=?*=@@@%%%*)
5632 eval ac_cv_prog_make_${ac_make}_set=yes;;
5634 eval ac_cv_prog_make_${ac_make}_set=no;;
5635 esac
5636 rm -f conftest.make
5638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 printf "%s\n" "yes" >&6; }
5641 SET_MAKE=
5642 else
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printf "%s\n" "no" >&6; }
5645 SET_MAKE="MAKE=${MAKE-make}"
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5650 printf %s "checking for library containing tgetent... " >&6; }
5651 if test ${ac_cv_search_tgetent+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else $as_nop
5655 ac_func_search_save_LIBS=$LIBS
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5659 /* Override any GCC internal prototype to avoid an error.
5660 Use char because int might match the return type of a GCC
5661 builtin and then its argument prototype would still apply. */
5662 char tgetent ();
5664 main (void)
5666 return tgetent ();
5668 return 0;
5670 _ACEOF
5671 for ac_lib in '' tinfo curses ncursesw ncurses
5673 if test -z "$ac_lib"; then
5674 ac_res="none required"
5675 else
5676 ac_res=-l$ac_lib
5677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5679 if ac_fn_c_try_link "$LINENO"
5680 then :
5681 ac_cv_search_tgetent=$ac_res
5683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5684 conftest$ac_exeext
5685 if test ${ac_cv_search_tgetent+y}
5686 then :
5687 break
5689 done
5690 if test ${ac_cv_search_tgetent+y}
5691 then :
5693 else $as_nop
5694 ac_cv_search_tgetent=no
5696 rm conftest.$ac_ext
5697 LIBS=$ac_func_search_save_LIBS
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5700 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
5701 ac_res=$ac_cv_search_tgetent
5702 if test "$ac_res" != no
5703 then :
5704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5705 HAVE_CURSES=True
5709 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5711 printf %s "checking for library containing clock_gettime... " >&6; }
5712 if test ${ac_cv_search_clock_gettime+y}
5713 then :
5714 printf %s "(cached) " >&6
5715 else $as_nop
5716 ac_func_search_save_LIBS=$LIBS
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5723 char clock_gettime ();
5725 main (void)
5727 return clock_gettime ();
5729 return 0;
5731 _ACEOF
5732 for ac_lib in '' rt
5734 if test -z "$ac_lib"; then
5735 ac_res="none required"
5736 else
5737 ac_res=-l$ac_lib
5738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5740 if ac_fn_c_try_link "$LINENO"
5741 then :
5742 ac_cv_search_clock_gettime=$ac_res
5744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5745 conftest$ac_exeext
5746 if test ${ac_cv_search_clock_gettime+y}
5747 then :
5748 break
5750 done
5751 if test ${ac_cv_search_clock_gettime+y}
5752 then :
5754 else $as_nop
5755 ac_cv_search_clock_gettime=no
5757 rm conftest.$ac_ext
5758 LIBS=$ac_func_search_save_LIBS
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5761 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
5762 ac_res=$ac_cv_search_clock_gettime
5763 if test "$ac_res" != no
5764 then :
5765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5768 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5773 # Checks for libraries.
5775 # Checks for header files.
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5778 printf %s "checking for grep that handles long lines and -e... " >&6; }
5779 if test ${ac_cv_path_GREP+y}
5780 then :
5781 printf %s "(cached) " >&6
5782 else $as_nop
5783 if test -z "$GREP"; then
5784 ac_path_GREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5789 IFS=$as_save_IFS
5790 case $as_dir in #(((
5791 '') as_dir=./ ;;
5792 */) ;;
5793 *) as_dir=$as_dir/ ;;
5794 esac
5795 for ac_prog in grep ggrep
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5799 as_fn_executable_p "$ac_path_GREP" || continue
5800 # Check for GNU ac_path_GREP and select it if it is found.
5801 # Check for GNU $ac_path_GREP
5802 case `"$ac_path_GREP" --version 2>&1` in
5803 *GNU*)
5804 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5806 ac_count=0
5807 printf %s 0123456789 >"conftest.in"
5808 while :
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 printf "%s\n" 'GREP' >> "conftest.nl"
5814 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_GREP="$ac_path_GREP"
5820 ac_path_GREP_max=$ac_count
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826 esac
5828 $ac_path_GREP_found && break 3
5829 done
5830 done
5831 done
5832 IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_GREP"; then
5834 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5836 else
5837 ac_cv_path_GREP=$GREP
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5842 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5843 GREP="$ac_cv_path_GREP"
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5847 printf %s "checking for egrep... " >&6; }
5848 if test ${ac_cv_path_EGREP+y}
5849 then :
5850 printf %s "(cached) " >&6
5851 else $as_nop
5852 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5853 then ac_cv_path_EGREP="$GREP -E"
5854 else
5855 if test -z "$EGREP"; then
5856 ac_path_EGREP_found=false
5857 # Loop through the user's path and test for each of PROGNAME-LIST
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5861 IFS=$as_save_IFS
5862 case $as_dir in #(((
5863 '') as_dir=./ ;;
5864 */) ;;
5865 *) as_dir=$as_dir/ ;;
5866 esac
5867 for ac_prog in egrep
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5871 as_fn_executable_p "$ac_path_EGREP" || continue
5872 # Check for GNU ac_path_EGREP and select it if it is found.
5873 # Check for GNU $ac_path_EGREP
5874 case `"$ac_path_EGREP" --version 2>&1` in
5875 *GNU*)
5876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5878 ac_count=0
5879 printf %s 0123456789 >"conftest.in"
5880 while :
5882 cat "conftest.in" "conftest.in" >"conftest.tmp"
5883 mv "conftest.tmp" "conftest.in"
5884 cp "conftest.in" "conftest.nl"
5885 printf "%s\n" 'EGREP' >> "conftest.nl"
5886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5888 as_fn_arith $ac_count + 1 && ac_count=$as_val
5889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5890 # Best one so far, save it but keep looking for a better one
5891 ac_cv_path_EGREP="$ac_path_EGREP"
5892 ac_path_EGREP_max=$ac_count
5894 # 10*(2^10) chars as input seems more than enough
5895 test $ac_count -gt 10 && break
5896 done
5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5898 esac
5900 $ac_path_EGREP_found && break 3
5901 done
5902 done
5903 done
5904 IFS=$as_save_IFS
5905 if test -z "$ac_cv_path_EGREP"; then
5906 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5908 else
5909 ac_cv_path_EGREP=$EGREP
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5915 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5916 EGREP="$ac_cv_path_EGREP"
5920 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_fcntl_h" = xyes
5922 then :
5923 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5926 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_limits_h" = xyes
5928 then :
5929 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5932 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5933 if test "x$ac_cv_header_langinfo_h" = xyes
5934 then :
5935 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
5938 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5939 if test "x$ac_cv_header_locale_h" = xyes
5940 then :
5941 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
5944 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5945 if test "x$ac_cv_header_stdint_h" = xyes
5946 then :
5947 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
5950 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5951 if test "x$ac_cv_header_stdlib_h" = xyes
5952 then :
5953 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5956 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5957 if test "x$ac_cv_header_string_h" = xyes
5958 then :
5959 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5962 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5963 if test "x$ac_cv_header_sys_ioctl_h" = xyes
5964 then :
5965 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5968 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5969 if test "x$ac_cv_header_sys_time_h" = xyes
5970 then :
5971 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5974 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
5975 if test "x$ac_cv_header_termios_h" = xyes
5976 then :
5977 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
5980 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5981 if test "x$ac_cv_header_unistd_h" = xyes
5982 then :
5983 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5986 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5987 if test "x$ac_cv_header_wchar_h" = xyes
5988 then :
5989 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
5994 # Checks for typedefs, structures, and compiler characteristics.
5995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5996 if test "x$ac_cv_type_size_t" = xyes
5997 then :
5999 else $as_nop
6001 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6006 # Checks for library functions.
6009 # Make sure we can run config.sub.
6010 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6011 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6014 printf %s "checking build system type... " >&6; }
6015 if test ${ac_cv_build+y}
6016 then :
6017 printf %s "(cached) " >&6
6018 else $as_nop
6019 ac_build_alias=$build_alias
6020 test "x$ac_build_alias" = x &&
6021 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6022 test "x$ac_build_alias" = x &&
6023 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6024 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6029 printf "%s\n" "$ac_cv_build" >&6; }
6030 case $ac_cv_build in
6031 *-*-*) ;;
6032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6033 esac
6034 build=$ac_cv_build
6035 ac_save_IFS=$IFS; IFS='-'
6036 set x $ac_cv_build
6037 shift
6038 build_cpu=$1
6039 build_vendor=$2
6040 shift; shift
6041 # Remember, the first character of IFS is used to create $*,
6042 # except with old shells:
6043 build_os=$*
6044 IFS=$ac_save_IFS
6045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6049 printf %s "checking host system type... " >&6; }
6050 if test ${ac_cv_host+y}
6051 then :
6052 printf %s "(cached) " >&6
6053 else $as_nop
6054 if test "x$host_alias" = x; then
6055 ac_cv_host=$ac_cv_build
6056 else
6057 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6058 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6063 printf "%s\n" "$ac_cv_host" >&6; }
6064 case $ac_cv_host in
6065 *-*-*) ;;
6066 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6067 esac
6068 host=$ac_cv_host
6069 ac_save_IFS=$IFS; IFS='-'
6070 set x $ac_cv_host
6071 shift
6072 host_cpu=$1
6073 host_vendor=$2
6074 shift; shift
6075 # Remember, the first character of IFS is used to create $*,
6076 # except with old shells:
6077 host_os=$*
6078 IFS=$ac_save_IFS
6079 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6083 printf %s "checking for GNU libc compatible malloc... " >&6; }
6084 if test ${ac_cv_func_malloc_0_nonnull+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 if test "$cross_compiling" = yes
6089 then :
6090 case "$host_os" in # ((
6091 # Guess yes on platforms where we know the result.
6092 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6093 | hpux* | solaris* | cygwin* | mingw* | msys* )
6094 ac_cv_func_malloc_0_nonnull=yes ;;
6095 # If we don't know, assume the worst.
6096 *) ac_cv_func_malloc_0_nonnull=no ;;
6097 esac
6098 else $as_nop
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #include <stdlib.h>
6104 main (void)
6106 void *p = malloc (0);
6107 int result = !p;
6108 free (p);
6109 return result;
6111 return 0;
6113 _ACEOF
6114 if ac_fn_c_try_run "$LINENO"
6115 then :
6116 ac_cv_func_malloc_0_nonnull=yes
6117 else $as_nop
6118 ac_cv_func_malloc_0_nonnull=no
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121 conftest.$ac_objext conftest.beam conftest.$ac_ext
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6126 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
6127 if test $ac_cv_func_malloc_0_nonnull = yes
6128 then :
6130 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
6132 else $as_nop
6133 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
6135 case " $LIBOBJS " in
6136 *" malloc.$ac_objext "* ) ;;
6137 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6139 esac
6142 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6148 printf %s "checking for GNU libc compatible realloc... " >&6; }
6149 if test ${ac_cv_func_realloc_0_nonnull+y}
6150 then :
6151 printf %s "(cached) " >&6
6152 else $as_nop
6153 if test "$cross_compiling" = yes
6154 then :
6155 case "$host_os" in # ((
6156 # Guess yes on platforms where we know the result.
6157 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6158 | hpux* | solaris* | cygwin* | mingw* | msys* )
6159 ac_cv_func_realloc_0_nonnull=yes ;;
6160 # If we don't know, assume the worst.
6161 *) ac_cv_func_realloc_0_nonnull=no ;;
6162 esac
6163 else $as_nop
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <stdlib.h>
6169 main (void)
6171 void *p = realloc (0, 0);
6172 int result = !p;
6173 free (p);
6174 return result;
6176 return 0;
6178 _ACEOF
6179 if ac_fn_c_try_run "$LINENO"
6180 then :
6181 ac_cv_func_realloc_0_nonnull=yes
6182 else $as_nop
6183 ac_cv_func_realloc_0_nonnull=no
6185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6186 conftest.$ac_objext conftest.beam conftest.$ac_ext
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6191 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
6192 if test $ac_cv_func_realloc_0_nonnull = yes
6193 then :
6195 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
6197 else $as_nop
6198 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
6200 case " $LIBOBJS " in
6201 *" realloc.$ac_objext "* ) ;;
6202 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6204 esac
6207 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
6212 ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen"
6213 if test "x$ac_cv_func_mblen" = xyes
6214 then :
6215 printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h
6218 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
6219 if test "x$ac_cv_func_memset" = xyes
6220 then :
6221 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6224 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6225 if test "x$ac_cv_func_nl_langinfo" = xyes
6226 then :
6227 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
6230 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
6231 if test "x$ac_cv_func_pathconf" = xyes
6232 then :
6233 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
6236 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
6237 if test "x$ac_cv_func_regcomp" = xyes
6238 then :
6239 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
6242 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6243 if test "x$ac_cv_func_setlocale" = xyes
6244 then :
6245 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
6249 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
6250 if test "x$ac_cv_func_strchr" = xyes
6251 then :
6252 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
6255 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
6256 if test "x$ac_cv_func_strrchr" = xyes
6257 then :
6258 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
6261 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
6262 if test "x$ac_cv_func_strspn" = xyes
6263 then :
6264 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
6267 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6268 if test "x$ac_cv_func_strcasecmp" = xyes
6269 then :
6270 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
6276 # OS-specific tests
6277 case "${host_os}" in
6278 *freebsd*|*dragonfly*)
6279 CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
6282 *darwin*)
6283 CPPFLAGS="-D_DARWIN_C_SOURCE $CPPFLAGS"
6286 *netbsd*)
6287 CPPFLAGS="-D_NETBSD_SOURCE $CPPFLAGS"
6290 *openbsd*|*bitrig*)
6291 CPPFLAGS="-D_BSD_SOURCE $CPPFLAGS"
6293 esac
6295 ac_config_files="$ac_config_files Makefile"
6297 cat >confcache <<\_ACEOF
6298 # This file is a shell script that caches the results of configure
6299 # tests run on this system so they can be shared between configure
6300 # scripts and configure runs, see configure's option --config-cache.
6301 # It is not useful on other systems. If it contains results you don't
6302 # want to keep, you may remove or edit it.
6304 # config.status only pays attention to the cache file if you give it
6305 # the --recheck option to rerun configure.
6307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6309 # following values.
6311 _ACEOF
6313 # The following way of writing the cache mishandles newlines in values,
6314 # but we know of no workaround that is simple, portable, and efficient.
6315 # So, we kill variables containing newlines.
6316 # Ultrix sh set writes to stderr and can't be redirected directly,
6317 # and sets the high bit in the cache file unless we assign to the vars.
6319 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6320 eval ac_val=\$$ac_var
6321 case $ac_val in #(
6322 *${as_nl}*)
6323 case $ac_var in #(
6324 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6325 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6326 esac
6327 case $ac_var in #(
6328 _ | IFS | as_nl) ;; #(
6329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6330 *) { eval $ac_var=; unset $ac_var;} ;;
6331 esac ;;
6332 esac
6333 done
6335 (set) 2>&1 |
6336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6337 *${as_nl}ac_space=\ *)
6338 # `set' does not quote correctly, so add quotes: double-quote
6339 # substitution turns \\\\ into \\, and sed turns \\ into \.
6340 sed -n \
6341 "s/'/'\\\\''/g;
6342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6343 ;; #(
6345 # `set' quotes correctly as required by POSIX, so do not add quotes.
6346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6348 esac |
6349 sort
6351 sed '
6352 /^ac_cv_env_/b end
6353 t clear
6354 :clear
6355 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6356 t end
6357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6358 :end' >>confcache
6359 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6360 if test -w "$cache_file"; then
6361 if test "x$cache_file" != "x/dev/null"; then
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6363 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6364 if test ! -f "$cache_file" || test -h "$cache_file"; then
6365 cat confcache >"$cache_file"
6366 else
6367 case $cache_file in #(
6368 */* | ?:*)
6369 mv -f confcache "$cache_file"$$ &&
6370 mv -f "$cache_file"$$ "$cache_file" ;; #(
6372 mv -f confcache "$cache_file" ;;
6373 esac
6376 else
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6378 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6381 rm -f confcache
6383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6384 # Let make expand exec_prefix.
6385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6387 DEFS=-DHAVE_CONFIG_H
6389 ac_libobjs=
6390 ac_ltlibobjs=
6392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6393 # 1. Remove the extension, and $U if already installed.
6394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6395 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6397 # will be set to the directory where LIBOBJS objects are built.
6398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6400 done
6401 LIBOBJS=$ac_libobjs
6403 LTLIBOBJS=$ac_ltlibobjs
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6407 printf %s "checking that generated files are newer than configure... " >&6; }
6408 if test -n "$am_sleep_pid"; then
6409 # Hide warnings about reused PIDs.
6410 wait $am_sleep_pid 2>/dev/null
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6413 printf "%s\n" "done" >&6; }
6414 if test -n "$EXEEXT"; then
6415 am__EXEEXT_TRUE=
6416 am__EXEEXT_FALSE='#'
6417 else
6418 am__EXEEXT_TRUE='#'
6419 am__EXEEXT_FALSE=
6422 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6423 as_fn_error $? "conditional \"AMDEP\" was never defined.
6424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6427 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6431 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6435 : "${CONFIG_STATUS=./config.status}"
6436 ac_write_fail=0
6437 ac_clean_files_save=$ac_clean_files
6438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6440 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6441 as_write_fail=0
6442 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6443 #! $SHELL
6444 # Generated by $as_me.
6445 # Run this file to recreate the current configuration.
6446 # Compiler output produced by configure, useful for debugging
6447 # configure, is in config.log if it exists.
6449 debug=false
6450 ac_cs_recheck=false
6451 ac_cs_silent=false
6453 SHELL=\${CONFIG_SHELL-$SHELL}
6454 export SHELL
6455 _ASEOF
6456 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6457 ## -------------------- ##
6458 ## M4sh Initialization. ##
6459 ## -------------------- ##
6461 # Be more Bourne compatible
6462 DUALCASE=1; export DUALCASE # for MKS sh
6463 as_nop=:
6464 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6465 then :
6466 emulate sh
6467 NULLCMD=:
6468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6469 # is contrary to our usage. Disable this feature.
6470 alias -g '${1+"$@"}'='"$@"'
6471 setopt NO_GLOB_SUBST
6472 else $as_nop
6473 case `(set -o) 2>/dev/null` in #(
6474 *posix*) :
6475 set -o posix ;; #(
6476 *) :
6478 esac
6483 # Reset variables that may have inherited troublesome values from
6484 # the environment.
6486 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6487 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6488 # side effect of setting IFS to empty, thus disabling word splitting.)
6489 # Quoting is to prevent editors from complaining about space-tab.
6490 as_nl='
6492 export as_nl
6493 IFS=" "" $as_nl"
6495 PS1='$ '
6496 PS2='> '
6497 PS4='+ '
6499 # Ensure predictable behavior from utilities with locale-dependent output.
6500 LC_ALL=C
6501 export LC_ALL
6502 LANGUAGE=C
6503 export LANGUAGE
6505 # We cannot yet rely on "unset" to work, but we need these variables
6506 # to be unset--not just set to an empty or harmless value--now, to
6507 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6508 # also avoids known problems related to "unset" and subshell syntax
6509 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6510 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6511 do eval test \${$as_var+y} \
6512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6513 done
6515 # Ensure that fds 0, 1, and 2 are open.
6516 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6517 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6518 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6520 # The user is always right.
6521 if ${PATH_SEPARATOR+false} :; then
6522 PATH_SEPARATOR=:
6523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6525 PATH_SEPARATOR=';'
6530 # Find who we are. Look in the path if we contain no directory separator.
6531 as_myself=
6532 case $0 in #((
6533 *[\\/]* ) as_myself=$0 ;;
6534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 case $as_dir in #(((
6539 '') as_dir=./ ;;
6540 */) ;;
6541 *) as_dir=$as_dir/ ;;
6542 esac
6543 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6544 done
6545 IFS=$as_save_IFS
6548 esac
6549 # We did not find ourselves, most probably we were run as `sh COMMAND'
6550 # in which case we are not to be found in the path.
6551 if test "x$as_myself" = x; then
6552 as_myself=$0
6554 if test ! -f "$as_myself"; then
6555 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6556 exit 1
6561 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6562 # ----------------------------------------
6563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6565 # script with STATUS, using 1 if that was 0.
6566 as_fn_error ()
6568 as_status=$1; test $as_status -eq 0 && as_status=1
6569 if test "$4"; then
6570 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6573 printf "%s\n" "$as_me: error: $2" >&2
6574 as_fn_exit $as_status
6575 } # as_fn_error
6579 # as_fn_set_status STATUS
6580 # -----------------------
6581 # Set $? to STATUS, without forking.
6582 as_fn_set_status ()
6584 return $1
6585 } # as_fn_set_status
6587 # as_fn_exit STATUS
6588 # -----------------
6589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6590 as_fn_exit ()
6592 set +e
6593 as_fn_set_status $1
6594 exit $1
6595 } # as_fn_exit
6597 # as_fn_unset VAR
6598 # ---------------
6599 # Portably unset VAR.
6600 as_fn_unset ()
6602 { eval $1=; unset $1;}
6604 as_unset=as_fn_unset
6606 # as_fn_append VAR VALUE
6607 # ----------------------
6608 # Append the text in VALUE to the end of the definition contained in VAR. Take
6609 # advantage of any shell optimizations that allow amortized linear growth over
6610 # repeated appends, instead of the typical quadratic growth present in naive
6611 # implementations.
6612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6613 then :
6614 eval 'as_fn_append ()
6616 eval $1+=\$2
6618 else $as_nop
6619 as_fn_append ()
6621 eval $1=\$$1\$2
6623 fi # as_fn_append
6625 # as_fn_arith ARG...
6626 # ------------------
6627 # Perform arithmetic evaluation on the ARGs, and store the result in the
6628 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6629 # must be portable across $(()) and expr.
6630 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6631 then :
6632 eval 'as_fn_arith ()
6634 as_val=$(( $* ))
6636 else $as_nop
6637 as_fn_arith ()
6639 as_val=`expr "$@" || test $? -eq 1`
6641 fi # as_fn_arith
6644 if expr a : '\(a\)' >/dev/null 2>&1 &&
6645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6646 as_expr=expr
6647 else
6648 as_expr=false
6651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6652 as_basename=basename
6653 else
6654 as_basename=false
6657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6658 as_dirname=dirname
6659 else
6660 as_dirname=false
6663 as_me=`$as_basename -- "$0" ||
6664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6665 X"$0" : 'X\(//\)$' \| \
6666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6667 printf "%s\n" X/"$0" |
6668 sed '/^.*\/\([^/][^/]*\)\/*$/{
6669 s//\1/
6672 /^X\/\(\/\/\)$/{
6673 s//\1/
6676 /^X\/\(\/\).*/{
6677 s//\1/
6680 s/.*/./; q'`
6682 # Avoid depending upon Character Ranges.
6683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6686 as_cr_digits='0123456789'
6687 as_cr_alnum=$as_cr_Letters$as_cr_digits
6690 # Determine whether it's possible to make 'echo' print without a newline.
6691 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6692 # for compatibility with existing Makefiles.
6693 ECHO_C= ECHO_N= ECHO_T=
6694 case `echo -n x` in #(((((
6695 -n*)
6696 case `echo 'xy\c'` in
6697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6698 xy) ECHO_C='\c';;
6699 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6700 ECHO_T=' ';;
6701 esac;;
6703 ECHO_N='-n';;
6704 esac
6706 # For backward compatibility with old third-party macros, we provide
6707 # the shell variables $as_echo and $as_echo_n. New code should use
6708 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6709 as_echo='printf %s\n'
6710 as_echo_n='printf %s'
6712 rm -f conf$$ conf$$.exe conf$$.file
6713 if test -d conf$$.dir; then
6714 rm -f conf$$.dir/conf$$.file
6715 else
6716 rm -f conf$$.dir
6717 mkdir conf$$.dir 2>/dev/null
6719 if (echo >conf$$.file) 2>/dev/null; then
6720 if ln -s conf$$.file conf$$ 2>/dev/null; then
6721 as_ln_s='ln -s'
6722 # ... but there are two gotchas:
6723 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6724 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6725 # In both cases, we have to default to `cp -pR'.
6726 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6727 as_ln_s='cp -pR'
6728 elif ln conf$$.file conf$$ 2>/dev/null; then
6729 as_ln_s=ln
6730 else
6731 as_ln_s='cp -pR'
6733 else
6734 as_ln_s='cp -pR'
6736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6737 rmdir conf$$.dir 2>/dev/null
6740 # as_fn_mkdir_p
6741 # -------------
6742 # Create "$as_dir" as a directory, including parents if necessary.
6743 as_fn_mkdir_p ()
6746 case $as_dir in #(
6747 -*) as_dir=./$as_dir;;
6748 esac
6749 test -d "$as_dir" || eval $as_mkdir_p || {
6750 as_dirs=
6751 while :; do
6752 case $as_dir in #(
6753 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6754 *) as_qdir=$as_dir;;
6755 esac
6756 as_dirs="'$as_qdir' $as_dirs"
6757 as_dir=`$as_dirname -- "$as_dir" ||
6758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6759 X"$as_dir" : 'X\(//\)[^/]' \| \
6760 X"$as_dir" : 'X\(//\)$' \| \
6761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6762 printf "%s\n" X"$as_dir" |
6763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6764 s//\1/
6767 /^X\(\/\/\)[^/].*/{
6768 s//\1/
6771 /^X\(\/\/\)$/{
6772 s//\1/
6775 /^X\(\/\).*/{
6776 s//\1/
6779 s/.*/./; q'`
6780 test -d "$as_dir" && break
6781 done
6782 test -z "$as_dirs" || eval "mkdir $as_dirs"
6783 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6786 } # as_fn_mkdir_p
6787 if mkdir -p . 2>/dev/null; then
6788 as_mkdir_p='mkdir -p "$as_dir"'
6789 else
6790 test -d ./-p && rmdir ./-p
6791 as_mkdir_p=false
6795 # as_fn_executable_p FILE
6796 # -----------------------
6797 # Test if FILE is an executable regular file.
6798 as_fn_executable_p ()
6800 test -f "$1" && test -x "$1"
6801 } # as_fn_executable_p
6802 as_test_x='test -x'
6803 as_executable_p=as_fn_executable_p
6805 # Sed expression to map a string onto a valid CPP name.
6806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6808 # Sed expression to map a string onto a valid variable name.
6809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6812 exec 6>&1
6813 ## ----------------------------------- ##
6814 ## Main body of $CONFIG_STATUS script. ##
6815 ## ----------------------------------- ##
6816 _ASEOF
6817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820 # Save the log message, to keep $0 and so on meaningful, and to
6821 # report actual input values of CONFIG_FILES etc. instead of their
6822 # values after options handling.
6823 ac_log="
6824 This file was extended by smenu $as_me 1.3.0, which was
6825 generated by GNU Autoconf 2.71. Invocation command line was
6827 CONFIG_FILES = $CONFIG_FILES
6828 CONFIG_HEADERS = $CONFIG_HEADERS
6829 CONFIG_LINKS = $CONFIG_LINKS
6830 CONFIG_COMMANDS = $CONFIG_COMMANDS
6831 $ $0 $@
6833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6836 _ACEOF
6838 case $ac_config_files in *"
6839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6840 esac
6842 case $ac_config_headers in *"
6843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6844 esac
6847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6848 # Files that config.status was made for.
6849 config_files="$ac_config_files"
6850 config_headers="$ac_config_headers"
6851 config_commands="$ac_config_commands"
6853 _ACEOF
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6856 ac_cs_usage="\
6857 \`$as_me' instantiates files and other configuration actions
6858 from templates according to the current configuration. Unless the files
6859 and actions are specified as TAGs, all are instantiated by default.
6861 Usage: $0 [OPTION]... [TAG]...
6863 -h, --help print this help, then exit
6864 -V, --version print version number and configuration settings, then exit
6865 --config print configuration, then exit
6866 -q, --quiet, --silent
6867 do not print progress messages
6868 -d, --debug don't remove temporary files
6869 --recheck update $as_me by reconfiguring in the same conditions
6870 --file=FILE[:TEMPLATE]
6871 instantiate the configuration file FILE
6872 --header=FILE[:TEMPLATE]
6873 instantiate the configuration header FILE
6875 Configuration files:
6876 $config_files
6878 Configuration headers:
6879 $config_headers
6881 Configuration commands:
6882 $config_commands
6884 Report bugs to <p.gen.progs@gmail.com>."
6886 _ACEOF
6887 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6888 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890 ac_cs_config='$ac_cs_config_escaped'
6891 ac_cs_version="\\
6892 smenu config.status 1.3.0
6893 configured by $0, generated by GNU Autoconf 2.71,
6894 with options \\"\$ac_cs_config\\"
6896 Copyright (C) 2021 Free Software Foundation, Inc.
6897 This config.status script is free software; the Free Software Foundation
6898 gives unlimited permission to copy, distribute and modify it."
6900 ac_pwd='$ac_pwd'
6901 srcdir='$srcdir'
6902 INSTALL='$INSTALL'
6903 MKDIR_P='$MKDIR_P'
6904 AWK='$AWK'
6905 test -n "\$AWK" || AWK=awk
6906 _ACEOF
6908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6909 # The default lists apply if the user does not specify any file.
6910 ac_need_defaults=:
6911 while test $# != 0
6913 case $1 in
6914 --*=?*)
6915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6917 ac_shift=:
6919 --*=)
6920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6921 ac_optarg=
6922 ac_shift=:
6925 ac_option=$1
6926 ac_optarg=$2
6927 ac_shift=shift
6929 esac
6931 case $ac_option in
6932 # Handling of the options.
6933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6934 ac_cs_recheck=: ;;
6935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6936 printf "%s\n" "$ac_cs_version"; exit ;;
6937 --config | --confi | --conf | --con | --co | --c )
6938 printf "%s\n" "$ac_cs_config"; exit ;;
6939 --debug | --debu | --deb | --de | --d | -d )
6940 debug=: ;;
6941 --file | --fil | --fi | --f )
6942 $ac_shift
6943 case $ac_optarg in
6944 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6945 '') as_fn_error $? "missing file argument" ;;
6946 esac
6947 as_fn_append CONFIG_FILES " '$ac_optarg'"
6948 ac_need_defaults=false;;
6949 --header | --heade | --head | --hea )
6950 $ac_shift
6951 case $ac_optarg in
6952 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6953 esac
6954 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6955 ac_need_defaults=false;;
6956 --he | --h)
6957 # Conflict between --help and --header
6958 as_fn_error $? "ambiguous option: \`$1'
6959 Try \`$0 --help' for more information.";;
6960 --help | --hel | -h )
6961 printf "%s\n" "$ac_cs_usage"; exit ;;
6962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6964 ac_cs_silent=: ;;
6966 # This is an error.
6967 -*) as_fn_error $? "unrecognized option: \`$1'
6968 Try \`$0 --help' for more information." ;;
6970 *) as_fn_append ac_config_targets " $1"
6971 ac_need_defaults=false ;;
6973 esac
6974 shift
6975 done
6977 ac_configure_extra_args=
6979 if $ac_cs_silent; then
6980 exec 6>/dev/null
6981 ac_configure_extra_args="$ac_configure_extra_args --silent"
6984 _ACEOF
6985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6986 if \$ac_cs_recheck; then
6987 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6988 shift
6989 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6990 CONFIG_SHELL='$SHELL'
6991 export CONFIG_SHELL
6992 exec "\$@"
6995 _ACEOF
6996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6997 exec 5>>config.log
6999 echo
7000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7001 ## Running $as_me. ##
7002 _ASBOX
7003 printf "%s\n" "$ac_log"
7004 } >&5
7006 _ACEOF
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7009 # INIT-COMMANDS
7011 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7013 _ACEOF
7015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7017 # Handling of arguments.
7018 for ac_config_target in $ac_config_targets
7020 case $ac_config_target in
7021 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7022 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7023 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7025 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7026 esac
7027 done
7030 # If the user did not use the arguments to specify the items to instantiate,
7031 # then the envvar interface is used. Set only those that are not.
7032 # We use the long form for the default assignment because of an extremely
7033 # bizarre bug on SunOS 4.1.3.
7034 if $ac_need_defaults; then
7035 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7036 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7037 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7040 # Have a temporary directory for convenience. Make it in the build tree
7041 # simply because there is no reason against having it here, and in addition,
7042 # creating and moving files from /tmp can sometimes cause problems.
7043 # Hook for its removal unless debugging.
7044 # Note that there is a small window in which the directory will not be cleaned:
7045 # after its creation but before its name has been assigned to `$tmp'.
7046 $debug ||
7048 tmp= ac_tmp=
7049 trap 'exit_status=$?
7050 : "${ac_tmp:=$tmp}"
7051 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7053 trap 'as_fn_exit 1' 1 2 13 15
7055 # Create a (secure) tmp directory for tmp files.
7058 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7059 test -d "$tmp"
7060 } ||
7062 tmp=./conf$$-$RANDOM
7063 (umask 077 && mkdir "$tmp")
7064 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7065 ac_tmp=$tmp
7067 # Set up the scripts for CONFIG_FILES section.
7068 # No need to generate them if there are no CONFIG_FILES.
7069 # This happens for instance with `./config.status config.h'.
7070 if test -n "$CONFIG_FILES"; then
7073 ac_cr=`echo X | tr X '\015'`
7074 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7075 # But we know of no other shell where ac_cr would be empty at this
7076 # point, so we can use a bashism as a fallback.
7077 if test "x$ac_cr" = x; then
7078 eval ac_cr=\$\'\\r\'
7080 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7081 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7082 ac_cs_awk_cr='\\r'
7083 else
7084 ac_cs_awk_cr=$ac_cr
7087 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7088 _ACEOF
7092 echo "cat >conf$$subs.awk <<_ACEOF" &&
7093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7094 echo "_ACEOF"
7095 } >conf$$subs.sh ||
7096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7098 ac_delim='%!_!# '
7099 for ac_last_try in false false false false false :; do
7100 . ./conf$$subs.sh ||
7101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7103 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7104 if test $ac_delim_n = $ac_delim_num; then
7105 break
7106 elif $ac_last_try; then
7107 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7108 else
7109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7111 done
7112 rm -f conf$$subs.sh
7114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7115 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7116 _ACEOF
7117 sed -n '
7119 s/^/S["/; s/!.*/"]=/
7122 s/^[^!]*!//
7123 :repl
7124 t repl
7125 s/'"$ac_delim"'$//
7126 t delim
7129 s/\(.\{148\}\)..*/\1/
7130 t more1
7131 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7134 b repl
7135 :more1
7136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7139 s/.\{148\}//
7140 t nl
7141 :delim
7143 s/\(.\{148\}\)..*/\1/
7144 t more2
7145 s/["\\]/\\&/g; s/^/"/; s/$/"/
7148 :more2
7149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7152 s/.\{148\}//
7153 t delim
7154 ' <conf$$subs.awk | sed '
7155 /^[^""]/{
7157 s/\n//
7159 ' >>$CONFIG_STATUS || ac_write_fail=1
7160 rm -f conf$$subs.awk
7161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7162 _ACAWK
7163 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7164 for (key in S) S_is_set[key] = 1
7165 FS = "\a"
7169 line = $ 0
7170 nfields = split(line, field, "@")
7171 substed = 0
7172 len = length(field[1])
7173 for (i = 2; i < nfields; i++) {
7174 key = field[i]
7175 keylen = length(key)
7176 if (S_is_set[key]) {
7177 value = S[key]
7178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7179 len += length(value) + length(field[++i])
7180 substed = 1
7181 } else
7182 len += 1 + keylen
7185 print line
7188 _ACAWK
7189 _ACEOF
7190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7191 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7192 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7193 else
7195 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7196 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7197 _ACEOF
7199 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7200 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7201 # trailing colons and then remove the whole line if VPATH becomes empty
7202 # (actually we leave an empty line to preserve line numbers).
7203 if test "x$srcdir" = x.; then
7204 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7206 s///
7207 s/^/:/
7208 s/[ ]*$/:/
7209 s/:\$(srcdir):/:/g
7210 s/:\${srcdir}:/:/g
7211 s/:@srcdir@:/:/g
7212 s/^:*//
7213 s/:*$//
7215 s/\(=[ ]*\).*/\1/
7217 s/\n//
7218 s/^[^=]*=[ ]*$//
7222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7223 fi # test -n "$CONFIG_FILES"
7225 # Set up the scripts for CONFIG_HEADERS section.
7226 # No need to generate them if there are no CONFIG_HEADERS.
7227 # This happens for instance with `./config.status Makefile'.
7228 if test -n "$CONFIG_HEADERS"; then
7229 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7230 BEGIN {
7231 _ACEOF
7233 # Transform confdefs.h into an awk script `defines.awk', embedded as
7234 # here-document in config.status, that substitutes the proper values into
7235 # config.h.in to produce config.h.
7237 # Create a delimiter string that does not exist in confdefs.h, to ease
7238 # handling of long lines.
7239 ac_delim='%!_!# '
7240 for ac_last_try in false false :; do
7241 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7242 if test -z "$ac_tt"; then
7243 break
7244 elif $ac_last_try; then
7245 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7246 else
7247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7249 done
7251 # For the awk script, D is an array of macro values keyed by name,
7252 # likewise P contains macro parameters if any. Preserve backslash
7253 # newline sequences.
7255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7256 sed -n '
7257 s/.\{148\}/&'"$ac_delim"'/g
7258 t rset
7259 :rset
7260 s/^[ ]*#[ ]*define[ ][ ]*/ /
7261 t def
7263 :def
7264 s/\\$//
7265 t bsnl
7266 s/["\\]/\\&/g
7267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7268 D["\1"]=" \3"/p
7269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7271 :bsnl
7272 s/["\\]/\\&/g
7273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7274 D["\1"]=" \3\\\\\\n"\\/p
7275 t cont
7276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7277 t cont
7279 :cont
7281 s/.\{148\}/&'"$ac_delim"'/g
7282 t clear
7283 :clear
7284 s/\\$//
7285 t bsnlc
7286 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7288 :bsnlc
7289 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7290 b cont
7291 ' <confdefs.h | sed '
7292 s/'"$ac_delim"'/"\\\
7293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7296 for (key in D) D_is_set[key] = 1
7297 FS = "\a"
7299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7300 line = \$ 0
7301 split(line, arg, " ")
7302 if (arg[1] == "#") {
7303 defundef = arg[2]
7304 mac1 = arg[3]
7305 } else {
7306 defundef = substr(arg[1], 2)
7307 mac1 = arg[2]
7309 split(mac1, mac2, "(") #)
7310 macro = mac2[1]
7311 prefix = substr(line, 1, index(line, defundef) - 1)
7312 if (D_is_set[macro]) {
7313 # Preserve the white space surrounding the "#".
7314 print prefix "define", macro P[macro] D[macro]
7315 next
7316 } else {
7317 # Replace #undef with comments. This is necessary, for example,
7318 # in the case of _POSIX_SOURCE, which is predefined and required
7319 # on some systems where configure will not decide to define it.
7320 if (defundef == "undef") {
7321 print "/*", prefix defundef, macro, "*/"
7322 next
7326 { print }
7327 _ACAWK
7328 _ACEOF
7329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7330 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7331 fi # test -n "$CONFIG_HEADERS"
7334 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7335 shift
7336 for ac_tag
7338 case $ac_tag in
7339 :[FHLC]) ac_mode=$ac_tag; continue;;
7340 esac
7341 case $ac_mode$ac_tag in
7342 :[FHL]*:*);;
7343 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7344 :[FH]-) ac_tag=-:-;;
7345 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7346 esac
7347 ac_save_IFS=$IFS
7348 IFS=:
7349 set x $ac_tag
7350 IFS=$ac_save_IFS
7351 shift
7352 ac_file=$1
7353 shift
7355 case $ac_mode in
7356 :L) ac_source=$1;;
7357 :[FH])
7358 ac_file_inputs=
7359 for ac_f
7361 case $ac_f in
7362 -) ac_f="$ac_tmp/stdin";;
7363 *) # Look for the file first in the build tree, then in the source tree
7364 # (if the path is not absolute). The absolute path cannot be DOS-style,
7365 # because $ac_f cannot contain `:'.
7366 test -f "$ac_f" ||
7367 case $ac_f in
7368 [\\/$]*) false;;
7369 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7370 esac ||
7371 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7372 esac
7373 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7374 as_fn_append ac_file_inputs " '$ac_f'"
7375 done
7377 # Let's still pretend it is `configure' which instantiates (i.e., don't
7378 # use $as_me), people would be surprised to read:
7379 # /* config.h. Generated by config.status. */
7380 configure_input='Generated from '`
7381 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7382 `' by configure.'
7383 if test x"$ac_file" != x-; then
7384 configure_input="$ac_file. $configure_input"
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7386 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7388 # Neutralize special characters interpreted by sed in replacement strings.
7389 case $configure_input in #(
7390 *\&* | *\|* | *\\* )
7391 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7393 *) ac_sed_conf_input=$configure_input;;
7394 esac
7396 case $ac_tag in
7397 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7399 esac
7401 esac
7403 ac_dir=`$as_dirname -- "$ac_file" ||
7404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7405 X"$ac_file" : 'X\(//\)[^/]' \| \
7406 X"$ac_file" : 'X\(//\)$' \| \
7407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7408 printf "%s\n" X"$ac_file" |
7409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7410 s//\1/
7413 /^X\(\/\/\)[^/].*/{
7414 s//\1/
7417 /^X\(\/\/\)$/{
7418 s//\1/
7421 /^X\(\/\).*/{
7422 s//\1/
7425 s/.*/./; q'`
7426 as_dir="$ac_dir"; as_fn_mkdir_p
7427 ac_builddir=.
7429 case "$ac_dir" in
7430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7432 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7433 # A ".." for each directory in $ac_dir_suffix.
7434 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7435 case $ac_top_builddir_sub in
7436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7438 esac ;;
7439 esac
7440 ac_abs_top_builddir=$ac_pwd
7441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7442 # for backward compatibility:
7443 ac_top_builddir=$ac_top_build_prefix
7445 case $srcdir in
7446 .) # We are building in place.
7447 ac_srcdir=.
7448 ac_top_srcdir=$ac_top_builddir_sub
7449 ac_abs_top_srcdir=$ac_pwd ;;
7450 [\\/]* | ?:[\\/]* ) # Absolute name.
7451 ac_srcdir=$srcdir$ac_dir_suffix;
7452 ac_top_srcdir=$srcdir
7453 ac_abs_top_srcdir=$srcdir ;;
7454 *) # Relative name.
7455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7456 ac_top_srcdir=$ac_top_build_prefix$srcdir
7457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7458 esac
7459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7462 case $ac_mode in
7465 # CONFIG_FILE
7468 case $INSTALL in
7469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7470 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7471 esac
7472 ac_MKDIR_P=$MKDIR_P
7473 case $MKDIR_P in
7474 [\\/$]* | ?:[\\/]* ) ;;
7475 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7476 esac
7477 _ACEOF
7479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7480 # If the template does not know about datarootdir, expand it.
7481 # FIXME: This hack should be removed a few years after 2.60.
7482 ac_datarootdir_hack=; ac_datarootdir_seen=
7483 ac_sed_dataroot='
7484 /datarootdir/ {
7488 /@datadir@/p
7489 /@docdir@/p
7490 /@infodir@/p
7491 /@localedir@/p
7492 /@mandir@/p'
7493 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7494 *datarootdir*) ac_datarootdir_seen=yes;;
7495 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7497 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7498 _ACEOF
7499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7500 ac_datarootdir_hack='
7501 s&@datadir@&$datadir&g
7502 s&@docdir@&$docdir&g
7503 s&@infodir@&$infodir&g
7504 s&@localedir@&$localedir&g
7505 s&@mandir@&$mandir&g
7506 s&\\\${datarootdir}&$datarootdir&g' ;;
7507 esac
7508 _ACEOF
7510 # Neutralize VPATH when `$srcdir' = `.'.
7511 # Shell code in configure.ac might set extrasub.
7512 # FIXME: do we really want to maintain this feature?
7513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7514 ac_sed_extra="$ac_vpsub
7515 $extrasub
7516 _ACEOF
7517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7520 s|@configure_input@|$ac_sed_conf_input|;t t
7521 s&@top_builddir@&$ac_top_builddir_sub&;t t
7522 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7523 s&@srcdir@&$ac_srcdir&;t t
7524 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7525 s&@top_srcdir@&$ac_top_srcdir&;t t
7526 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7527 s&@builddir@&$ac_builddir&;t t
7528 s&@abs_builddir@&$ac_abs_builddir&;t t
7529 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7530 s&@INSTALL@&$ac_INSTALL&;t t
7531 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7532 $ac_datarootdir_hack
7534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7535 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7537 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7540 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7542 which seems to be undefined. Please make sure it is defined" >&5
7543 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7544 which seems to be undefined. Please make sure it is defined" >&2;}
7546 rm -f "$ac_tmp/stdin"
7547 case $ac_file in
7548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7550 esac \
7551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7555 # CONFIG_HEADER
7557 if test x"$ac_file" != x-; then
7559 printf "%s\n" "/* $configure_input */" >&1 \
7560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7561 } >"$ac_tmp/config.h" \
7562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7563 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7565 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7566 else
7567 rm -f "$ac_file"
7568 mv "$ac_tmp/config.h" "$ac_file" \
7569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7571 else
7572 printf "%s\n" "/* $configure_input */" >&1 \
7573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7574 || as_fn_error $? "could not create -" "$LINENO" 5
7576 # Compute "$ac_file"'s index in $config_headers.
7577 _am_arg="$ac_file"
7578 _am_stamp_count=1
7579 for _am_header in $config_headers :; do
7580 case $_am_header in
7581 $_am_arg | $_am_arg:* )
7582 break ;;
7584 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7585 esac
7586 done
7587 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7588 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7589 X"$_am_arg" : 'X\(//\)[^/]' \| \
7590 X"$_am_arg" : 'X\(//\)$' \| \
7591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7592 printf "%s\n" X"$_am_arg" |
7593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7594 s//\1/
7597 /^X\(\/\/\)[^/].*/{
7598 s//\1/
7601 /^X\(\/\/\)$/{
7602 s//\1/
7605 /^X\(\/\).*/{
7606 s//\1/
7609 s/.*/./; q'`/stamp-h$_am_stamp_count
7612 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7613 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7615 esac
7618 case $ac_file$ac_mode in
7619 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7620 # Older Autoconf quotes --file arguments for eval, but not when files
7621 # are listed without --file. Let's play safe and only enable the eval
7622 # if we detect the quoting.
7623 # TODO: see whether this extra hack can be removed once we start
7624 # requiring Autoconf 2.70 or later.
7625 case $CONFIG_FILES in #(
7626 *\'*) :
7627 eval set x "$CONFIG_FILES" ;; #(
7628 *) :
7629 set x $CONFIG_FILES ;; #(
7630 *) :
7632 esac
7633 shift
7634 # Used to flag and report bootstrapping failures.
7635 am_rc=0
7636 for am_mf
7638 # Strip MF so we end up with the name of the file.
7639 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7640 # Check whether this is an Automake generated Makefile which includes
7641 # dependency-tracking related rules and includes.
7642 # Grep'ing the whole file directly is not great: AIX grep has a line
7643 # limit of 2048, but all sed's we know have understand at least 4000.
7644 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7645 || continue
7646 am_dirpart=`$as_dirname -- "$am_mf" ||
7647 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7648 X"$am_mf" : 'X\(//\)[^/]' \| \
7649 X"$am_mf" : 'X\(//\)$' \| \
7650 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7651 printf "%s\n" X"$am_mf" |
7652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7653 s//\1/
7656 /^X\(\/\/\)[^/].*/{
7657 s//\1/
7660 /^X\(\/\/\)$/{
7661 s//\1/
7664 /^X\(\/\).*/{
7665 s//\1/
7668 s/.*/./; q'`
7669 am_filepart=`$as_basename -- "$am_mf" ||
7670 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7671 X"$am_mf" : 'X\(//\)$' \| \
7672 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7673 printf "%s\n" X/"$am_mf" |
7674 sed '/^.*\/\([^/][^/]*\)\/*$/{
7675 s//\1/
7678 /^X\/\(\/\/\)$/{
7679 s//\1/
7682 /^X\/\(\/\).*/{
7683 s//\1/
7686 s/.*/./; q'`
7687 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7688 && sed -e '/# am--include-marker/d' "$am_filepart" \
7689 | $MAKE -f - am--depfiles" >&5
7690 (cd "$am_dirpart" \
7691 && sed -e '/# am--include-marker/d' "$am_filepart" \
7692 | $MAKE -f - am--depfiles) >&5 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } || am_rc=$?
7696 done
7697 if test $am_rc -ne 0; then
7698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7699 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7700 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7701 for automatic dependency tracking. If GNU make was not used, consider
7702 re-running the configure script with MAKE=\"gmake\" (or whatever is
7703 necessary). You can also try re-running configure with the
7704 '--disable-dependency-tracking' option to at least be able to build
7705 the package (albeit without support for automatic dependency tracking).
7706 See \`config.log' for more details" "$LINENO" 5; }
7708 { am_dirpart=; unset am_dirpart;}
7709 { am_filepart=; unset am_filepart;}
7710 { am_mf=; unset am_mf;}
7711 { am_rc=; unset am_rc;}
7712 rm -f conftest-deps.mk
7716 esac
7717 done # for ac_tag
7720 as_fn_exit 0
7721 _ACEOF
7722 ac_clean_files=$ac_clean_files_save
7724 test $ac_write_fail = 0 ||
7725 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7728 # configure is writing to config.log, and then calls config.status.
7729 # config.status does its own redirection, appending to config.log.
7730 # Unfortunately, on DOS this fails, as config.log is still kept open
7731 # by configure, so config.status won't be able to write to it; its
7732 # output is simply discarded. So we exec the FD to /dev/null,
7733 # effectively closing config.log, so it can be properly (re)opened and
7734 # appended to by config.status. When coming back to configure, we
7735 # need to make the FD available again.
7736 if test "$no_create" != yes; then
7737 ac_cs_success=:
7738 ac_config_status_args=
7739 test "$silent" = yes &&
7740 ac_config_status_args="$ac_config_status_args --quiet"
7741 exec 5>/dev/null
7742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7743 exec 5>>config.log
7744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7745 # would make configure fail if this is the last instruction.
7746 $ac_cs_success || as_fn_exit 1
7748 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7750 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}