switch4g: completely re-writen
[tomato.git] / release / src / router / nano / configure
blob238dbf94b32ad8fa59d59422af4c8ef57b5c6fde
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for GNU nano 2.2.6.
5 # Report bugs to <nano-devel@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and nano-devel@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='GNU nano'
554 PACKAGE_TARNAME='nano'
555 PACKAGE_VERSION='2.2.6'
556 PACKAGE_STRING='GNU nano 2.2.6'
557 PACKAGE_BUGREPORT='nano-devel@gnu.org'
558 PACKAGE_URL='http://www.gnu.org/software/nano/'
560 ac_unique_file="src/nano.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='am__EXEEXT_FALSE
598 am__EXEEXT_TRUE
599 LTLIBOBJS
600 LIBOBJS
601 GROFF_HTML_FALSE
602 GROFF_HTML_TRUE
603 CURSES_LIB
604 GLIB_MKENUMS
605 GOBJECT_QUERY
606 GLIB_GENMARSHAL
607 GLIB_LIBS
608 GLIB_CFLAGS
609 PKG_CONFIG
610 USE_NANORC_FALSE
611 USE_NANORC_TRUE
612 USE_COLOR_FALSE
613 USE_COLOR_TRUE
614 PKGDATADIR
615 USE_NLS_FALSE
616 USE_NLS_TRUE
617 POSUB
618 LTLIBINTL
619 LIBINTL
620 INTLLIBS
621 LTLIBICONV
622 LIBICONV
623 USE_NLS
624 MSGMERGE
625 XGETTEXT
626 GMSGFMT
627 MSGFMT
628 MKINSTALLDIRS
629 LN_S
630 EGREP
631 GREP
633 am__fastdepCC_FALSE
634 am__fastdepCC_TRUE
635 CCDEPMODE
636 AMDEPBACKSLASH
637 AMDEP_FALSE
638 AMDEP_TRUE
639 am__quote
640 am__include
641 DEPDIR
642 OBJEXT
643 EXEEXT
644 ac_ct_CC
645 CPPFLAGS
646 LDFLAGS
647 CFLAGS
649 am__untar
650 am__tar
651 AMTAR
652 am__leading_dot
653 SET_MAKE
655 mkdir_p
656 MKDIR_P
657 INSTALL_STRIP_PROGRAM
658 STRIP
659 install_sh
660 MAKEINFO
661 AUTOHEADER
662 AUTOMAKE
663 AUTOCONF
664 ACLOCAL
665 VERSION
666 PACKAGE
667 CYGPATH_W
668 am__isrc
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 target_os
673 target_vendor
674 target_cpu
675 target
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 localstatedir
704 sharedstatedir
705 sysconfdir
706 datadir
707 datarootdir
708 libexecdir
709 sbindir
710 bindir
711 program_transform_name
712 prefix
713 exec_prefix
714 PACKAGE_URL
715 PACKAGE_BUGREPORT
716 PACKAGE_STRING
717 PACKAGE_VERSION
718 PACKAGE_TARNAME
719 PACKAGE_NAME
720 PATH_SEPARATOR
721 SHELL'
722 ac_subst_files=''
723 ac_user_opts='
724 enable_option_checking
725 enable_dependency_tracking
726 enable_largefile
727 with_gnu_ld
728 enable_rpath
729 with_libiconv_prefix
730 enable_nls
731 with_libintl_prefix
732 enable_debug
733 enable_tiny
734 enable_extra
735 enable_browser
736 enable_help
737 enable_justify
738 enable_mouse
739 enable_operatingdir
740 enable_speller
741 enable_tabcomp
742 enable_wrapping
743 enable_wrapping_as_root
744 enable_color
745 enable_multibuffer
746 enable_nanorc
747 enable_all
748 enable_utf8
749 with_slang
750 enable_altrcname
751 enable_glibtest
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CPP'
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
812 ac_prev=
813 ac_dashdash=
814 for ac_option
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
828 # Accept the important Cygnus configure options, so we can diagnose typos.
830 case $ac_dashdash$ac_option in
832 ac_dashdash=yes ;;
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 ac_prev=bindir ;;
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 bindir=$ac_optarg ;;
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
851 --config-cache | -C)
852 cache_file=config.cache ;;
854 -datadir | --datadir | --datadi | --datad)
855 ac_prev=datadir ;;
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=no ;;
882 -docdir | --docdir | --docdi | --doc | --do)
883 ac_prev=docdir ;;
884 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885 docdir=$ac_optarg ;;
887 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 ac_prev=dvidir ;;
889 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890 dvidir=$ac_optarg ;;
892 -enable-* | --enable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1096 -with-* | --with-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=\$ac_optarg ;;
1112 -without-* | --without-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid package name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "with_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval with_$ac_useropt=no ;;
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1146 -*) as_fn_error "unrecognized option: \`$ac_option'
1147 Try \`$0 --help' for more information."
1150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 case $ac_envvar in #(
1154 '' | [0-9]* | *[!_$as_cr_alnum]* )
1155 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1156 esac
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1161 # FIXME: should be removed in autoconf 3.0.
1162 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 esac
1169 done
1171 if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 as_fn_error "missing argument to $ac_option"
1176 if test -n "$ac_unrecognized_opts"; then
1177 case $enable_option_checking in
1178 no) ;;
1179 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1180 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 esac
1184 # Check all directory arguments for consistency.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1190 eval ac_val=\$$ac_var
1191 # Remove trailing slashes.
1192 case $ac_val in
1193 */ )
1194 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1195 eval $ac_var=\$ac_val;;
1196 esac
1197 # Be sure to have absolute directory names.
1198 case $ac_val in
1199 [\\/$]* | ?:[\\/]* ) continue;;
1200 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 esac
1202 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1203 done
1205 # There might be people who depend on the old broken behavior: `$host'
1206 # used to hold the argument of --host etc.
1207 # FIXME: To remove some day.
1208 build=$build_alias
1209 host=$host_alias
1210 target=$target_alias
1212 # FIXME: To remove some day.
1213 if test "x$host_alias" != x; then
1214 if test "x$build_alias" = x; then
1215 cross_compiling=maybe
1216 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1217 If a cross compiler is detected then cross compile mode will be used." >&2
1218 elif test "x$build_alias" != "x$host_alias"; then
1219 cross_compiling=yes
1223 ac_tool_prefix=
1224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226 test "$silent" = yes && exec 6>/dev/null
1229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1230 ac_ls_di=`ls -di .` &&
1231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1232 as_fn_error "working directory cannot be determined"
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234 as_fn_error "pwd does not report name of working directory"
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1255 /^X\(\/\/\)$/{
1256 s//\1/
1259 /^X\(\/\).*/{
1260 s//\1/
1263 s/.*/./; q'`
1264 srcdir=$ac_confdir
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 srcdir=..
1268 else
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1278 pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303 \`configure' configures GNU nano 2.2.6 to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1312 Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1327 [PREFIX]
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/nano]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1356 _ACEOF
1358 cat <<\_ACEOF
1360 Program names:
1361 --program-prefix=PREFIX prepend PREFIX to installed program names
1362 --program-suffix=SUFFIX append SUFFIX to installed program names
1363 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365 System types:
1366 --build=BUILD configure for building on BUILD [guessed]
1367 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 --target=TARGET configure for building compilers for TARGET [HOST]
1369 _ACEOF
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of GNU nano 2.2.6:";;
1375 esac
1376 cat <<\_ACEOF
1378 Optional Features:
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --disable-largefile omit support for large files
1385 --disable-rpath do not hardcode runtime library paths
1386 --disable-nls do not use Native Language Support
1387 --enable-debug Enable debugging (disabled by default)
1388 --enable-tiny Disable features for the sake of size
1389 --disable-extra Disable extra features, currently only easter eggs
1390 --disable-browser Disable built-in file browser
1391 --disable-help Disable help functions
1392 --disable-justify Disable justify/unjustify functions
1393 --disable-mouse Disable mouse support (and -m flag)
1394 --disable-operatingdir Disable setting of operating directory (chroot of sorts)
1395 --disable-speller Disable spell checker functions
1396 --disable-tabcomp Disable tab completion functions
1397 --disable-wrapping Disable all wrapping of text (and -w flag)
1398 --disable-wrapping-as-root Disable wrapping of text as root by default
1399 --disable-color Disable color and syntax highlighting
1400 --disable-multibuffer Disable multiple file buffers
1401 --disable-nanorc Disable use of .nanorc files
1402 --enable-all Enable ALL extra nano functionality (ignored for compatibility as all options default to on)
1403 --enable-utf8 Enable UTF-8 support
1404 --enable-altrcname Specify alternate rcfile name (default: .nanorc)
1405 --disable-glibtest do not try to compile and run a test GLIB program
1407 Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-gnu-ld assume the C compiler uses GNU ld default=no
1411 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1412 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1413 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1414 --without-libintl-prefix don't search for libintl in includedir and libdir
1415 --with-slang=DIR Use the slang library instead of curses
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CPP C preprocessor
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1430 Report bugs to <nano-devel@gnu.org>.
1431 GNU nano home page: <http://www.gnu.org/software/nano/>.
1432 General help using GNU software: <http://www.gnu.org/gethelp/>.
1433 _ACEOF
1434 ac_status=$?
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 continue
1443 ac_builddir=.
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1461 case $srcdir in
1462 .) # We are building in place.
1463 ac_srcdir=.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1470 *) # Relative name.
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 GNU nano configure 2.2.6
1496 generated by GNU Autoconf 2.65
1498 Copyright (C) 2009 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502 exit
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1540 ac_retval=1
1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_c_try_compile
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } >/dev/null && {
1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 }; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1577 ac_retval=1
1579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580 as_fn_set_status $ac_retval
1582 } # ac_fn_c_try_cpp
1584 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587 # the include files in INCLUDES and setting the cache variable VAR
1588 # accordingly.
1589 ac_fn_c_check_header_mongrel ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1596 $as_echo_n "(cached) " >&6
1598 eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1601 else
1602 # Is the header compilable?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604 $as_echo_n "checking $2 usability... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_header_compiler=yes
1612 else
1613 ac_header_compiler=no
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617 $as_echo "$ac_header_compiler" >&6; }
1619 # Is the header present?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621 $as_echo_n "checking $2 presence... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_cpp "$LINENO"; then :
1627 ac_header_preproc=yes
1628 else
1629 ac_header_preproc=no
1631 rm -f conftest.err conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633 $as_echo "$ac_header_preproc" >&6; }
1635 # So? What about this header?
1636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637 yes:no: )
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 no:yes:* )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1647 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1651 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ( cat <<\_ASBOX
1655 ## --------------------------------- ##
1656 ## Report this to nano-devel@gnu.org ##
1657 ## --------------------------------- ##
1658 _ASBOX
1659 ) | sed "s/^/$as_me: WARNING: /" >&2
1661 esac
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 eval "$3=\$ac_header_compiler"
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 } # ac_fn_c_check_header_mongrel
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
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 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=$ac_status
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_run
1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists and can be compiled using the include files in
1722 # INCLUDES, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 eval "$3=yes"
1738 else
1739 eval "$3=no"
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 } # ac_fn_c_check_header_compile
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 as_fn_set_status $ac_retval
1794 } # ac_fn_c_try_link
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811 #define $2 innocuous_$2
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1824 #undef $2
1826 /* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 ();
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1841 main ()
1843 return $2 ();
1845 return 0;
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1853 rm -f core conftest.err conftest.$ac_objext \
1854 conftest$ac_exeext conftest.$ac_ext
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_check_func
1862 cat >config.log <<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by GNU nano $as_me 2.2.6, which was
1867 generated by GNU Autoconf 2.65. Invocation command line was
1869 $ $0 $@
1871 _ACEOF
1872 exec 5>>config.log
1874 cat <<_ASUNAME
1875 ## --------- ##
1876 ## Platform. ##
1877 ## --------- ##
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 _ASUNAME
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 $as_echo "PATH: $as_dir"
1904 done
1905 IFS=$as_save_IFS
1907 } >&5
1909 cat >&5 <<_ACEOF
1912 ## ----------- ##
1913 ## Core tests. ##
1914 ## ----------- ##
1916 _ACEOF
1919 # Keep a trace of the command line.
1920 # Strip out --no-create and --no-recursion so they do not pile up.
1921 # Strip out --silent because we don't want to record it for future runs.
1922 # Also quote any args containing shell meta-characters.
1923 # Make two passes to allow for proper duplicate-argument suppression.
1924 ac_configure_args=
1925 ac_configure_args0=
1926 ac_configure_args1=
1927 ac_must_keep_next=false
1928 for ac_pass in 1 2
1930 for ac_arg
1932 case $ac_arg in
1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935 | -silent | --silent | --silen | --sile | --sil)
1936 continue ;;
1937 *\'*)
1938 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 esac
1940 case $ac_pass in
1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 as_fn_append ac_configure_args1 " '$ac_arg'"
1944 if test $ac_must_keep_next = true; then
1945 ac_must_keep_next=false # Got value, back to normal.
1946 else
1947 case $ac_arg in
1948 *=* | --config-cache | -C | -disable-* | --disable-* \
1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951 | -with-* | --with-* | -without-* | --without-* | --x)
1952 case "$ac_configure_args0 " in
1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 esac
1956 -* ) ac_must_keep_next=true ;;
1957 esac
1959 as_fn_append ac_configure_args " '$ac_arg'"
1961 esac
1962 done
1963 done
1964 { ac_configure_args0=; unset ac_configure_args0;}
1965 { ac_configure_args1=; unset ac_configure_args1;}
1967 # When interrupted or exit'd, cleanup temporary files, and complete
1968 # config.log. We remove comments because anyway the quotes in there
1969 # would cause problems or look ugly.
1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972 trap 'exit_status=$?
1973 # Save into config.log some information that might help in debugging.
1975 echo
1977 cat <<\_ASBOX
1978 ## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##
1981 _ASBOX
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 esac |
2011 sort
2013 echo
2015 cat <<\_ASBOX
2016 ## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##
2019 _ASBOX
2020 echo
2021 for ac_var in $ac_subst_vars
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2031 if test -n "$ac_subst_files"; then
2032 cat <<\_ASBOX
2033 ## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 cat <<\_ASBOX
2051 ## ----------- ##
2052 ## confdefs.h. ##
2053 ## ----------- ##
2054 _ASBOX
2055 echo
2056 cat confdefs.h
2057 echo
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109 ac_site_file1=$CONFIG_SITE
2110 elif test "x$prefix" != xNONE; then
2111 ac_site_file1=$prefix/share/config.site
2112 ac_site_file2=$prefix/etc/config.site
2113 else
2114 ac_site_file1=$ac_default_prefix/share/config.site
2115 ac_site_file2=$ac_default_prefix/etc/config.site
2117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 test "x$ac_site_file" = xNONE && continue
2120 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file"
2126 done
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 ac_aux_dir=
2215 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2216 for ac_t in install-sh install.sh shtool; do
2217 if test -f "$ac_dir/$ac_t"; then
2218 ac_aux_dir=$ac_dir
2219 ac_install_sh="$ac_aux_dir/$ac_t -c"
2220 break 2
2222 done
2223 done
2224 if test -z "$ac_aux_dir"; then
2225 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2228 # These three variables are undocumented and unsupported,
2229 # and are intended to be withdrawn in a future Autoconf release.
2230 # They can cause serious problems if a builder's source tree is in a directory
2231 # whose full name contains unusual characters.
2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2237 # Make sure we can run config.sub.
2238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2239 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2242 $as_echo_n "checking build system type... " >&6; }
2243 if test "${ac_cv_build+set}" = set; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 ac_build_alias=$build_alias
2247 test "x$ac_build_alias" = x &&
2248 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2249 test "x$ac_build_alias" = x &&
2250 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2251 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2252 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2256 $as_echo "$ac_cv_build" >&6; }
2257 case $ac_cv_build in
2258 *-*-*) ;;
2259 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2260 esac
2261 build=$ac_cv_build
2262 ac_save_IFS=$IFS; IFS='-'
2263 set x $ac_cv_build
2264 shift
2265 build_cpu=$1
2266 build_vendor=$2
2267 shift; shift
2268 # Remember, the first character of IFS is used to create $*,
2269 # except with old shells:
2270 build_os=$*
2271 IFS=$ac_save_IFS
2272 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2276 $as_echo_n "checking host system type... " >&6; }
2277 if test "${ac_cv_host+set}" = set; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 if test "x$host_alias" = x; then
2281 ac_cv_host=$ac_cv_build
2282 else
2283 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2284 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2289 $as_echo "$ac_cv_host" >&6; }
2290 case $ac_cv_host in
2291 *-*-*) ;;
2292 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2293 esac
2294 host=$ac_cv_host
2295 ac_save_IFS=$IFS; IFS='-'
2296 set x $ac_cv_host
2297 shift
2298 host_cpu=$1
2299 host_vendor=$2
2300 shift; shift
2301 # Remember, the first character of IFS is used to create $*,
2302 # except with old shells:
2303 host_os=$*
2304 IFS=$ac_save_IFS
2305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2309 $as_echo_n "checking target system type... " >&6; }
2310 if test "${ac_cv_target+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 if test "x$target_alias" = x; then
2314 ac_cv_target=$ac_cv_host
2315 else
2316 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2317 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2322 $as_echo "$ac_cv_target" >&6; }
2323 case $ac_cv_target in
2324 *-*-*) ;;
2325 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2326 esac
2327 target=$ac_cv_target
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_target
2330 shift
2331 target_cpu=$1
2332 target_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 target_os=$*
2337 IFS=$ac_save_IFS
2338 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2341 # The aliases save the names the user supplied, while $host etc.
2342 # will get canonicalized.
2343 test -n "$target_alias" &&
2344 test "$program_prefix$program_suffix$program_transform_name" = \
2345 NONENONEs,x,x, &&
2346 program_prefix=${target_alias}-
2347 am__api_version='1.11'
2349 # Find a good install program. We prefer a C program (faster),
2350 # so one script is as good as another. But avoid the broken or
2351 # incompatible versions:
2352 # SysV /etc/install, /usr/sbin/install
2353 # SunOS /usr/etc/install
2354 # IRIX /sbin/install
2355 # AIX /bin/install
2356 # AmigaOS /C/install, which installs bootblocks on floppy discs
2357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360 # OS/2's system install, which has a completely different semantic
2361 # ./install, which can be erroneously created by make from ./install.sh.
2362 # Reject install programs that cannot install multiple files.
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2365 if test -z "$INSTALL"; then
2366 if test "${ac_cv_path_install+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 # Account for people who put trailing slashes in PATH elements.
2375 case $as_dir/ in #((
2376 ./ | .// | /[cC]/* | \
2377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2379 /usr/ucb/* ) ;;
2381 # OSF1 and SCO ODT 3.0 have their own names for install.
2382 # Don't use installbsd from OSF since it installs stuff as root
2383 # by default.
2384 for ac_prog in ginstall scoinst install; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2387 if test $ac_prog = install &&
2388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # AIX install. It has an incompatible calling convention.
2391 elif test $ac_prog = install &&
2392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393 # program-specific install script used by HP pwplus--don't use.
2395 else
2396 rm -rf conftest.one conftest.two conftest.dir
2397 echo one > conftest.one
2398 echo two > conftest.two
2399 mkdir conftest.dir
2400 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401 test -s conftest.one && test -s conftest.two &&
2402 test -s conftest.dir/conftest.one &&
2403 test -s conftest.dir/conftest.two
2404 then
2405 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406 break 3
2410 done
2411 done
2413 esac
2415 done
2416 IFS=$as_save_IFS
2418 rm -rf conftest.one conftest.two conftest.dir
2421 if test "${ac_cv_path_install+set}" = set; then
2422 INSTALL=$ac_cv_path_install
2423 else
2424 # As a last resort, use the slow shell script. Don't cache a
2425 # value for INSTALL within a source directory, because that will
2426 # break other packages using the cache if that directory is
2427 # removed, or if the value is a relative name.
2428 INSTALL=$ac_install_sh
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432 $as_echo "$INSTALL" >&6; }
2434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435 # It thinks the first close brace ends the variable substitution.
2436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443 $as_echo_n "checking whether build environment is sane... " >&6; }
2444 # Just in case
2445 sleep 1
2446 echo timestamp > conftest.file
2447 # Reject unsafe characters in $srcdir or the absolute working directory
2448 # name. Accept space and tab only in the latter.
2449 am_lf='
2451 case `pwd` in
2452 *[\\\"\#\$\&\'\`$am_lf]*)
2453 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2454 esac
2455 case $srcdir in
2456 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2457 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2458 esac
2460 # Do `set' in a subshell so we don't clobber the current shell's
2461 # arguments. Must try -L first in case configure is actually a
2462 # symlink; some systems play weird games with the mod time of symlinks
2463 # (eg FreeBSD returns the mod time of the symlink's containing
2464 # directory).
2465 if (
2466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467 if test "$*" = "X"; then
2468 # -L didn't work.
2469 set X `ls -t "$srcdir/configure" conftest.file`
2471 rm -f conftest.file
2472 if test "$*" != "X $srcdir/configure conftest.file" \
2473 && test "$*" != "X conftest.file $srcdir/configure"; then
2475 # If neither matched, then we have a broken ls. This can happen
2476 # if, for instance, CONFIG_SHELL is bash and it inherits a
2477 # broken ls alias from the environment. This has actually
2478 # happened. Such a system could not be considered "sane".
2479 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2480 alias in your environment" "$LINENO" 5
2483 test "$2" = conftest.file
2485 then
2486 # Ok.
2488 else
2489 as_fn_error "newly created file is older than distributed files!
2490 Check your system clock" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 test "$program_prefix" != NONE &&
2495 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2496 # Use a double $ so make ignores it.
2497 test "$program_suffix" != NONE &&
2498 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2499 # Double any \ or $.
2500 # By default was `s,x,x', remove it if useless.
2501 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2502 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504 # expand $ac_aux_dir to an absolute path
2505 am_aux_dir=`cd $ac_aux_dir && pwd`
2507 if test x"${MISSING+set}" != xset; then
2508 case $am_aux_dir in
2509 *\ * | *\ *)
2510 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2512 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2513 esac
2515 # Use eval to expand $SHELL
2516 if eval "$MISSING --run true"; then
2517 am_missing_run="$MISSING --run "
2518 else
2519 am_missing_run=
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2521 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2524 if test x"${install_sh}" != xset; then
2525 case $am_aux_dir in
2526 *\ * | *\ *)
2527 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2529 install_sh="\${SHELL} $am_aux_dir/install-sh"
2530 esac
2533 # Installed binaries are usually stripped using `strip' when the user
2534 # run `make install-strip'. However `strip' might not be the right
2535 # tool to use in cross-compilation environments, therefore Automake
2536 # will honor the `STRIP' environment variable to overrule this program.
2537 if test "$cross_compiling" != no; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}strip; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_STRIP+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$STRIP"; then
2547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2566 STRIP=$ac_cv_prog_STRIP
2567 if test -n "$STRIP"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2569 $as_echo "$STRIP" >&6; }
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2577 if test -z "$ac_cv_prog_STRIP"; then
2578 ac_ct_STRIP=$STRIP
2579 # Extract the first word of "strip", so it can be a program name with args.
2580 set dummy strip; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test -n "$ac_ct_STRIP"; then
2587 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_STRIP="strip"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2607 if test -n "$ac_ct_STRIP"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2609 $as_echo "$ac_ct_STRIP" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2615 if test "x$ac_ct_STRIP" = x; then
2616 STRIP=":"
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624 STRIP=$ac_ct_STRIP
2626 else
2627 STRIP="$ac_cv_prog_STRIP"
2631 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2634 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2635 if test -z "$MKDIR_P"; then
2636 if test "${ac_cv_path_mkdir+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_prog in mkdir gmkdir; do
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2647 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2648 'mkdir (GNU coreutils) '* | \
2649 'mkdir (coreutils) '* | \
2650 'mkdir (fileutils) '4.1*)
2651 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2652 break 3;;
2653 esac
2654 done
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 test -d ./--version && rmdir ./--version
2662 if test "${ac_cv_path_mkdir+set}" = set; then
2663 MKDIR_P="$ac_cv_path_mkdir -p"
2664 else
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for MKDIR_P within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 MKDIR_P="$ac_install_sh -d"
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2673 $as_echo "$MKDIR_P" >&6; }
2675 mkdir_p="$MKDIR_P"
2676 case $mkdir_p in
2677 [\\/$]* | ?:[\\/]*) ;;
2678 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2679 esac
2681 for ac_prog in gawk mawk nawk awk
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if test "${ac_cv_prog_AWK+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$AWK"; then
2691 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_AWK="$ac_prog"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2704 done
2705 done
2706 IFS=$as_save_IFS
2710 AWK=$ac_cv_prog_AWK
2711 if test -n "$AWK"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2713 $as_echo "$AWK" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2720 test -n "$AWK" && break
2721 done
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2724 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2725 set x ${MAKE-make}
2726 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2727 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 cat >conftest.make <<\_ACEOF
2731 SHELL = /bin/sh
2732 all:
2733 @echo '@@@%%%=$(MAKE)=@@@%%%'
2734 _ACEOF
2735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2737 *@@@%%%=?*=@@@%%%*)
2738 eval ac_cv_prog_make_${ac_make}_set=yes;;
2740 eval ac_cv_prog_make_${ac_make}_set=no;;
2741 esac
2742 rm -f conftest.make
2744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746 $as_echo "yes" >&6; }
2747 SET_MAKE=
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 SET_MAKE="MAKE=${MAKE-make}"
2754 rm -rf .tst 2>/dev/null
2755 mkdir .tst 2>/dev/null
2756 if test -d .tst; then
2757 am__leading_dot=.
2758 else
2759 am__leading_dot=_
2761 rmdir .tst 2>/dev/null
2763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2765 # is not polluted with repeated "-I."
2766 am__isrc=' -I$(srcdir)'
2767 # test to see if srcdir already configured
2768 if test -f $srcdir/config.status; then
2769 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2773 # test whether we have cygpath
2774 if test -z "$CYGPATH_W"; then
2775 if (cygpath --version) >/dev/null 2>/dev/null; then
2776 CYGPATH_W='cygpath -w'
2777 else
2778 CYGPATH_W=echo
2783 # Define the identity of the package.
2784 PACKAGE='nano'
2785 VERSION='2.2.6'
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE "$PACKAGE"
2790 _ACEOF
2793 cat >>confdefs.h <<_ACEOF
2794 #define VERSION "$VERSION"
2795 _ACEOF
2797 # Some tools Automake needs.
2799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2813 # We need awk for the "check" target. The system "awk" is bad on
2814 # some platforms.
2815 # Always define AMTAR for backward compatibility.
2817 AMTAR=${AMTAR-"${am_missing_run}tar"}
2819 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2825 ac_config_headers="$ac_config_headers config.h"
2831 DEPDIR="${am__leading_dot}deps"
2833 ac_config_commands="$ac_config_commands depfiles"
2836 am_make=${MAKE-make}
2837 cat > confinc << 'END'
2838 am__doit:
2839 @echo this is the am__doit target
2840 .PHONY: am__doit
2842 # If we don't find an include directive, just comment out the code.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2844 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2845 am__include="#"
2846 am__quote=
2847 _am_result=none
2848 # First try GNU make style include.
2849 echo "include confinc" > confmf
2850 # Ignore all kinds of additional output from `make'.
2851 case `$am_make -s -f confmf 2> /dev/null` in #(
2852 *the\ am__doit\ target*)
2853 am__include=include
2854 am__quote=
2855 _am_result=GNU
2857 esac
2858 # Now try BSD make style include.
2859 if test "$am__include" = "#"; then
2860 echo '.include "confinc"' > confmf
2861 case `$am_make -s -f confmf 2> /dev/null` in #(
2862 *the\ am__doit\ target*)
2863 am__include=.include
2864 am__quote="\""
2865 _am_result=BSD
2867 esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2872 $as_echo "$_am_result" >&6; }
2873 rm -f confinc confmf
2875 # Check whether --enable-dependency-tracking was given.
2876 if test "${enable_dependency_tracking+set}" = set; then :
2877 enableval=$enable_dependency_tracking;
2880 if test "x$enable_dependency_tracking" != xno; then
2881 am_depcomp="$ac_aux_dir/depcomp"
2882 AMDEPBACKSLASH='\'
2884 if test "x$enable_dependency_tracking" != xno; then
2885 AMDEP_TRUE=
2886 AMDEP_FALSE='#'
2887 else
2888 AMDEP_TRUE='#'
2889 AMDEP_FALSE=
2893 ac_ext=c
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_CC+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2920 done
2921 done
2922 IFS=$as_save_IFS
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2937 if test -z "$ac_cv_prog_CC"; then
2938 ac_ct_CC=$CC
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_ac_ct_CC="gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2960 done
2961 done
2962 IFS=$as_save_IFS
2966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967 if test -n "$ac_ct_CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2969 $as_echo "$ac_ct_CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2983 esac
2984 CC=$ac_ct_CC
2986 else
2987 CC="$ac_cv_prog_CC"
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}cc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_CC="${ac_tool_prefix}cc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022 $as_echo "$CC" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3031 if test -z "$CC"; then
3032 # Extract the first word of "cc", so it can be a program name with args.
3033 set dummy cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 ac_prog_rejected=no
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3051 ac_prog_rejected=yes
3052 continue
3054 ac_cv_prog_CC="cc"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3058 done
3059 done
3060 IFS=$as_save_IFS
3062 if test $ac_prog_rejected = yes; then
3063 # We found a bogon in the path, so make sure we never use it.
3064 set dummy $ac_cv_prog_CC
3065 shift
3066 if test $# != 0; then
3067 # We chose a different compiler from the bogus one.
3068 # However, it has the same basename, so the bogon will be chosen
3069 # first if we set CC to just the basename; use the full file name.
3070 shift
3071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_CC+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$CC" && break
3129 done
3131 if test -z "$CC"; then
3132 ac_ct_CC=$CC
3133 for ac_prog in cl.exe
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$ac_ct_CC"; then
3143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_ac_ct_CC="$ac_prog"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3156 done
3157 done
3158 IFS=$as_save_IFS
3162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163 if test -n "$ac_ct_CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3165 $as_echo "$ac_ct_CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3172 test -n "$ac_ct_CC" && break
3173 done
3175 if test "x$ac_ct_CC" = x; then
3176 CC=""
3177 else
3178 case $cross_compiling:$ac_tool_warned in
3179 yes:)
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3183 esac
3184 CC=$ac_ct_CC
3191 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error "no acceptable C compiler found in \$PATH
3194 See \`config.log' for more details." "$LINENO" 5; }
3196 # Provide some information about the compiler.
3197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3198 set X $ac_compile
3199 ac_compiler=$2
3200 for ac_option in --version -v -V -qversion; do
3201 { { ac_try="$ac_compiler $ac_option >&5"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3209 ac_status=$?
3210 if test -s conftest.err; then
3211 sed '10a\
3212 ... rest of stderr output deleted ...
3213 10q' conftest.err >conftest.er1
3214 cat conftest.er1 >&5
3216 rm -f conftest.er1 conftest.err
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }
3219 done
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3225 main ()
3229 return 0;
3231 _ACEOF
3232 ac_clean_files_save=$ac_clean_files
3233 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3234 # Try to create an executable without -o first, disregard a.out.
3235 # It will help us diagnose broken compilers, and finding out an intuition
3236 # of exeext.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3238 $as_echo_n "checking whether the C compiler works... " >&6; }
3239 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3241 # The possible output files:
3242 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3244 ac_rmfiles=
3245 for ac_file in $ac_files
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3250 esac
3251 done
3252 rm -f $ac_rmfiles
3254 if { { ac_try="$ac_link_default"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link_default") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3267 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3268 # so that the user can short-circuit this test for compilers unknown to
3269 # Autoconf.
3270 for ac_file in $ac_files ''
3272 test -f "$ac_file" || continue
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3276 [ab].out )
3277 # We found the default executable, but exeext='' is most
3278 # certainly right.
3279 break;;
3280 *.* )
3281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3282 then :; else
3283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3285 # We set ac_cv_exeext here because the later test for it is not
3286 # safe: cross compilers may not add the suffix if given an `-o'
3287 # argument, so we may need to know it at that point already.
3288 # Even if this section looks crufty: it has the advantage of
3289 # actually working.
3290 break;;
3292 break;;
3293 esac
3294 done
3295 test "$ac_cv_exeext" = no && ac_cv_exeext=
3297 else
3298 ac_file=''
3300 if test -z "$ac_file"; then :
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 $as_echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 { as_fn_set_status 77
3309 as_fn_error "C compiler cannot create executables
3310 See \`config.log' for more details." "$LINENO" 5; }; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3316 $as_echo_n "checking for C compiler default output file name... " >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3318 $as_echo "$ac_file" >&6; }
3319 ac_exeext=$ac_cv_exeext
3321 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3324 $as_echo_n "checking for suffix of executables... " >&6; }
3325 if { { ac_try="$ac_link"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3337 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3338 # work properly (i.e., refer to `conftest.exe'), while it won't with
3339 # `rm'.
3340 for ac_file in conftest.exe conftest conftest.*; do
3341 test -f "$ac_file" || continue
3342 case $ac_file in
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 break;;
3346 * ) break;;
3347 esac
3348 done
3349 else
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error "cannot compute suffix of executables: cannot compile and link
3353 See \`config.log' for more details." "$LINENO" 5; }
3355 rm -f conftest conftest$ac_cv_exeext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3357 $as_echo "$ac_cv_exeext" >&6; }
3359 rm -f conftest.$ac_ext
3360 EXEEXT=$ac_cv_exeext
3361 ac_exeext=$EXEEXT
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364 #include <stdio.h>
3366 main ()
3368 FILE *f = fopen ("conftest.out", "w");
3369 return ferror (f) || fclose (f) != 0;
3372 return 0;
3374 _ACEOF
3375 ac_clean_files="$ac_clean_files conftest.out"
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3379 $as_echo_n "checking whether we are cross compiling... " >&6; }
3380 if test "$cross_compiling" != yes; then
3381 { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }
3392 if { ac_try='./conftest$ac_cv_exeext'
3393 { { case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_try") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; }; then
3403 cross_compiling=no
3404 else
3405 if test "$cross_compiling" = maybe; then
3406 cross_compiling=yes
3407 else
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error "cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." "$LINENO" 5; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417 $as_echo "$cross_compiling" >&6; }
3419 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3420 ac_clean_files=$ac_clean_files_save
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3430 main ()
3434 return 0;
3436 _ACEOF
3437 rm -f conftest.o conftest.obj
3438 if { { ac_try="$ac_compile"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compile") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456 done
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error "cannot compute suffix of object files: cannot compile
3464 See \`config.log' for more details." "$LINENO" 5; }
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 main ()
3483 #ifndef __GNUC__
3484 choke me
3485 #endif
3488 return 0;
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_compiler_gnu=yes
3493 else
3494 ac_compiler_gnu=no
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3503 GCC=yes
3504 else
3505 GCC=
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3511 if test "${ac_cv_prog_cc_g+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3516 ac_cv_prog_cc_g=no
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3522 main ()
3526 return 0;
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 else
3532 CFLAGS=""
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3546 else
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3557 return 0;
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3576 CFLAGS="-g -O2"
3577 else
3578 CFLAGS="-g"
3580 else
3581 if test "$GCC" = yes; then
3582 CFLAGS="-O2"
3583 else
3584 CFLAGS=
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <stdarg.h>
3597 #include <stdio.h>
3598 #include <sys/types.h>
3599 #include <sys/stat.h>
3600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601 struct buf { int x; };
3602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603 static char *e (p, i)
3604 char **p;
3605 int i;
3607 return p[i];
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630 #define FOO(x) 'x'
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3633 int test (int i, double x);
3634 struct s1 {int (*f) (int a);};
3635 struct s2 {int (*f) (double a);};
3636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637 int argc;
3638 char **argv;
3640 main ()
3642 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 return 0;
3646 _ACEOF
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 done
3657 rm -f conftest.$ac_ext
3658 CC=$ac_save_CC
3661 # AC_CACHE_VAL
3662 case "x$ac_cv_prog_cc_c89" in
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 esac
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 depcc="$CC" am_compiler_list=
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3687 $as_echo_n "checking dependency style of $depcc... " >&6; }
3688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3692 # We make a subdir and do the tests there. Otherwise we can end up
3693 # making bogus files that we don't know about and never remove. For
3694 # instance it was reported that on HP-UX the gcc test will end up
3695 # making a dummy file named `D' -- because `-MD' means `put the output
3696 # in D'.
3697 mkdir conftest.dir
3698 # Copy depcomp to subdir because otherwise we won't find it if we're
3699 # using a relative directory.
3700 cp "$am_depcomp" conftest.dir
3701 cd conftest.dir
3702 # We will build objects and dependencies in a subdirectory because
3703 # it helps to detect inapplicable dependency modes. For instance
3704 # both Tru64's cc and ICC support -MD to output dependencies as a
3705 # side effect of compilation, but ICC will put the dependencies in
3706 # the current directory while Tru64 will put them in the object
3707 # directory.
3708 mkdir sub
3710 am_cv_CC_dependencies_compiler_type=none
3711 if test "$am_compiler_list" = ""; then
3712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 am__universal=false
3715 case " $depcc " in #(
3716 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3717 esac
3719 for depmode in $am_compiler_list; do
3720 # Setup a source with many dependencies, because some compilers
3721 # like to wrap large dependency lists on column 80 (with \), and
3722 # we should not choose a depcomp mode which is confused by this.
3724 # We need to recreate these files for each test, as the compiler may
3725 # overwrite some of them when testing with obscure command lines.
3726 # This happens at least with the AIX C compiler.
3727 : > sub/conftest.c
3728 for i in 1 2 3 4 5 6; do
3729 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3730 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3731 # Solaris 8's {/usr,}/bin/sh.
3732 touch sub/conftst$i.h
3733 done
3734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3736 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3737 # mode. It turns out that the SunPro C++ compiler does not properly
3738 # handle `-M -o', and we need to detect this. Also, some Intel
3739 # versions had trouble with output in subdirs
3740 am__obj=sub/conftest.${OBJEXT-o}
3741 am__minus_obj="-o $am__obj"
3742 case $depmode in
3743 gcc)
3744 # This depmode causes a compiler race in universal mode.
3745 test "$am__universal" = false || continue
3747 nosideeffect)
3748 # after this tag, mechanisms are not by side-effect, so they'll
3749 # only be used when explicitly requested
3750 if test "x$enable_dependency_tracking" = xyes; then
3751 continue
3752 else
3753 break
3756 msvisualcpp | msvcmsys)
3757 # This compiler won't grok `-c -o', but also, the minuso test has
3758 # not run yet. These depmodes are late enough in the game, and
3759 # so weak that their functioning should not be impacted.
3760 am__obj=conftest.${OBJEXT-o}
3761 am__minus_obj=
3763 none) break ;;
3764 esac
3765 if depmode=$depmode \
3766 source=sub/conftest.c object=$am__obj \
3767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3769 >/dev/null 2>conftest.err &&
3770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3774 # icc doesn't choke on unknown options, it will just issue warnings
3775 # or remarks (even with -Werror). So we grep stderr for any message
3776 # that says an option was ignored or not supported.
3777 # When given -MP, icc 7.0 and 7.1 complain thusly:
3778 # icc: Command line warning: ignoring option '-M'; no argument required
3779 # The diagnosis changed in icc 8.0:
3780 # icc: Command line remark: option '-MP' not supported
3781 if (grep 'ignoring option' conftest.err ||
3782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3783 am_cv_CC_dependencies_compiler_type=$depmode
3784 break
3787 done
3789 cd ..
3790 rm -rf conftest.dir
3791 else
3792 am_cv_CC_dependencies_compiler_type=none
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3801 test "x$enable_dependency_tracking" != xno \
3802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3803 am__fastdepCC_TRUE=
3804 am__fastdepCC_FALSE='#'
3805 else
3806 am__fastdepCC_TRUE='#'
3807 am__fastdepCC_FALSE=
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3818 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3819 # On Suns, sometimes $CPP names a directory.
3820 if test -n "$CPP" && test -d "$CPP"; then
3821 CPP=
3823 if test -z "$CPP"; then
3824 if test "${ac_cv_prog_CPP+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 # Double quotes because CPP needs to be expanded
3828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 ac_preproc_ok=false
3831 for ac_c_preproc_warn_flag in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3841 #ifdef __STDC__
3842 # include <limits.h>
3843 #else
3844 # include <assert.h>
3845 #endif
3846 Syntax error
3847 _ACEOF
3848 if ac_fn_c_try_cpp "$LINENO"; then :
3850 else
3851 # Broken: fails on valid input.
3852 continue
3854 rm -f conftest.err conftest.$ac_ext
3856 # OK, works on sane cases. Now check whether nonexistent headers
3857 # can be detected and how.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <ac_nonexistent.h>
3861 _ACEOF
3862 if ac_fn_c_try_cpp "$LINENO"; then :
3863 # Broken: success on invalid input.
3864 continue
3865 else
3866 # Passes both tests.
3867 ac_preproc_ok=:
3868 break
3870 rm -f conftest.err conftest.$ac_ext
3872 done
3873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874 rm -f conftest.err conftest.$ac_ext
3875 if $ac_preproc_ok; then :
3876 break
3879 done
3880 ac_cv_prog_CPP=$CPP
3883 CPP=$ac_cv_prog_CPP
3884 else
3885 ac_cv_prog_CPP=$CPP
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3888 $as_echo "$CPP" >&6; }
3889 ac_preproc_ok=false
3890 for ac_c_preproc_warn_flag in '' yes
3892 # Use a header file that comes with gcc, so configuring glibc
3893 # with a fresh cross-compiler works.
3894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895 # <limits.h> exists even on freestanding compilers.
3896 # On the NeXT, cc -E runs the code through the compiler's parser,
3897 # not just through cpp. "Syntax error" is here to catch this case.
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 #ifdef __STDC__
3901 # include <limits.h>
3902 #else
3903 # include <assert.h>
3904 #endif
3905 Syntax error
3906 _ACEOF
3907 if ac_fn_c_try_cpp "$LINENO"; then :
3909 else
3910 # Broken: fails on valid input.
3911 continue
3913 rm -f conftest.err conftest.$ac_ext
3915 # OK, works on sane cases. Now check whether nonexistent headers
3916 # can be detected and how.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3920 _ACEOF
3921 if ac_fn_c_try_cpp "$LINENO"; then :
3922 # Broken: success on invalid input.
3923 continue
3924 else
3925 # Passes both tests.
3926 ac_preproc_ok=:
3927 break
3929 rm -f conftest.err conftest.$ac_ext
3931 done
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.err conftest.$ac_ext
3934 if $ac_preproc_ok; then :
3936 else
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3940 See \`config.log' for more details." "$LINENO" 5; }
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -z "$GREP"; then
3956 ac_path_GREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in grep ggrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3967 # Check for GNU ac_path_GREP and select it if it is found.
3968 # Check for GNU $ac_path_GREP
3969 case `"$ac_path_GREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'GREP' >> "conftest.nl"
3981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP="$ac_path_GREP"
3987 ac_path_GREP_max=$ac_count
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3995 $ac_path_GREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_GREP"; then
4001 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003 else
4004 ac_cv_path_GREP=$GREP
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4009 $as_echo "$ac_cv_path_GREP" >&6; }
4010 GREP="$ac_cv_path_GREP"
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4014 $as_echo_n "checking for egrep... " >&6; }
4015 if test "${ac_cv_path_EGREP+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4019 then ac_cv_path_EGREP="$GREP -E"
4020 else
4021 if test -z "$EGREP"; then
4022 ac_path_EGREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in egrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4033 # Check for GNU ac_path_EGREP and select it if it is found.
4034 # Check for GNU $ac_path_EGREP
4035 case `"$ac_path_EGREP" --version 2>&1` in
4036 *GNU*)
4037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 ac_count=0
4040 $as_echo_n 0123456789 >"conftest.in"
4041 while :
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 $as_echo 'EGREP' >> "conftest.nl"
4047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 as_fn_arith $ac_count + 1 && ac_count=$as_val
4050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_EGREP="$ac_path_EGREP"
4053 ac_path_EGREP_max=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4061 $ac_path_EGREP_found && break 3
4062 done
4063 done
4064 done
4065 IFS=$as_save_IFS
4066 if test -z "$ac_cv_path_EGREP"; then
4067 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 else
4070 ac_cv_path_EGREP=$EGREP
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4076 $as_echo "$ac_cv_path_EGREP" >&6; }
4077 EGREP="$ac_cv_path_EGREP"
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4081 $as_echo_n "checking for ANSI C header files... " >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdlib.h>
4088 #include <stdarg.h>
4089 #include <string.h>
4090 #include <float.h>
4093 main ()
4097 return 0;
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_header_stdc=yes
4102 else
4103 ac_cv_header_stdc=no
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <string.h>
4113 _ACEOF
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "memchr" >/dev/null 2>&1; then :
4117 else
4118 ac_cv_header_stdc=no
4120 rm -f conftest*
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <stdlib.h>
4130 _ACEOF
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 $EGREP "free" >/dev/null 2>&1; then :
4134 else
4135 ac_cv_header_stdc=no
4137 rm -f conftest*
4141 if test $ac_cv_header_stdc = yes; then
4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4143 if test "$cross_compiling" = yes; then :
4145 else
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <ctype.h>
4149 #include <stdlib.h>
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 #else
4154 # define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159 #endif
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 main ()
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 return 2;
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_run "$LINENO"; then :
4175 else
4176 ac_cv_header_stdc=no
4178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4179 conftest.$ac_objext conftest.beam conftest.$ac_ext
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4185 $as_echo "$ac_cv_header_stdc" >&6; }
4186 if test $ac_cv_header_stdc = yes; then
4188 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4194 inttypes.h stdint.h unistd.h
4195 do :
4196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4197 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199 eval as_val=\$$as_ac_Header
4200 if test "x$as_val" = x""yes; then :
4201 cat >>confdefs.h <<_ACEOF
4202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4203 _ACEOF
4207 done
4211 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4212 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4213 MINIX=yes
4214 else
4215 MINIX=
4219 if test "$MINIX" = yes; then
4221 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4224 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4227 $as_echo "#define _MINIX 1" >>confdefs.h
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4233 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4234 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 # define __EXTENSIONS__ 1
4241 $ac_includes_default
4243 main ()
4247 return 0;
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_cv_safe_to_define___extensions__=yes
4252 else
4253 ac_cv_safe_to_define___extensions__=no
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4258 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4259 test $ac_cv_safe_to_define___extensions__ = yes &&
4260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_CC+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -n "$CC"; then
4286 ac_cv_prog_CC="$CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 $as_echo "$CC" >&6; }
4309 else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_prog_CC"; then
4317 ac_ct_CC=$CC
4318 # Extract the first word of "gcc", so it can be a program name with args.
4319 set dummy gcc; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_CC="gcc"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4348 $as_echo "$ac_ct_CC" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CC=$ac_ct_CC
4365 else
4366 CC="$ac_cv_prog_CC"
4369 if test -z "$CC"; then
4370 if test -n "$ac_tool_prefix"; then
4371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4372 set dummy ${ac_tool_prefix}cc; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if test "${ac_cv_prog_CC+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_prog_CC="${ac_tool_prefix}cc"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 CC=$ac_cv_prog_CC
4399 if test -n "$CC"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401 $as_echo "$CC" >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4410 if test -z "$CC"; then
4411 # Extract the first word of "cc", so it can be a program name with args.
4412 set dummy cc; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_CC+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
4420 else
4421 ac_prog_rejected=no
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4430 ac_prog_rejected=yes
4431 continue
4433 ac_cv_prog_CC="cc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4441 if test $ac_prog_rejected = yes; then
4442 # We found a bogon in the path, so make sure we never use it.
4443 set dummy $ac_cv_prog_CC
4444 shift
4445 if test $# != 0; then
4446 # We chose a different compiler from the bogus one.
4447 # However, it has the same basename, so the bogon will be chosen
4448 # first if we set CC to just the basename; use the full file name.
4449 shift
4450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4458 $as_echo "$CC" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4466 if test -z "$CC"; then
4467 if test -n "$ac_tool_prefix"; then
4468 for ac_prog in cl.exe
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_CC+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4497 CC=$ac_cv_prog_CC
4498 if test -n "$CC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4500 $as_echo "$CC" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4507 test -n "$CC" && break
4508 done
4510 if test -z "$CC"; then
4511 ac_ct_CC=$CC
4512 for ac_prog in cl.exe
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$ac_ct_CC"; then
4522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_ac_ct_CC="$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4542 if test -n "$ac_ct_CC"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4544 $as_echo "$ac_ct_CC" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$ac_ct_CC" && break
4552 done
4554 if test "x$ac_ct_CC" = x; then
4555 CC=""
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563 CC=$ac_ct_CC
4570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "no acceptable C compiler found in \$PATH
4573 See \`config.log' for more details." "$LINENO" 5; }
4575 # Provide some information about the compiler.
4576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4577 set X $ac_compile
4578 ac_compiler=$2
4579 for ac_option in --version -v -V -qversion; do
4580 { { ac_try="$ac_compiler $ac_option >&5"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4588 ac_status=$?
4589 if test -s conftest.err; then
4590 sed '10a\
4591 ... rest of stderr output deleted ...
4592 10q' conftest.err >conftest.er1
4593 cat conftest.er1 >&5
4595 rm -f conftest.er1 conftest.err
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 done
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4611 #ifndef __GNUC__
4612 choke me
4613 #endif
4616 return 0;
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_compiler_gnu=yes
4621 else
4622 ac_compiler_gnu=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630 if test $ac_compiler_gnu = yes; then
4631 GCC=yes
4632 else
4633 GCC=
4635 ac_test_CFLAGS=${CFLAGS+set}
4636 ac_save_CFLAGS=$CFLAGS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4639 if test "${ac_cv_prog_cc_g+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4644 ac_cv_prog_cc_g=no
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4650 main ()
4654 return 0;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_prog_cc_g=yes
4659 else
4660 CFLAGS=""
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 main ()
4669 return 0;
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4674 else
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 CFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4681 main ()
4685 return 0;
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_prog_cc_g=yes
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699 $as_echo "$ac_cv_prog_cc_g" >&6; }
4700 if test "$ac_test_CFLAGS" = set; then
4701 CFLAGS=$ac_save_CFLAGS
4702 elif test $ac_cv_prog_cc_g = yes; then
4703 if test "$GCC" = yes; then
4704 CFLAGS="-g -O2"
4705 else
4706 CFLAGS="-g"
4708 else
4709 if test "$GCC" = yes; then
4710 CFLAGS="-O2"
4711 else
4712 CFLAGS=
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 ac_cv_prog_cc_c89=no
4721 ac_save_CC=$CC
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 #include <stdarg.h>
4725 #include <stdio.h>
4726 #include <sys/types.h>
4727 #include <sys/stat.h>
4728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4729 struct buf { int x; };
4730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731 static char *e (p, i)
4732 char **p;
4733 int i;
4735 return p[i];
4737 static char *f (char * (*g) (char **, int), char **p, ...)
4739 char *s;
4740 va_list v;
4741 va_start (v,p);
4742 s = g (p, va_arg (v,int));
4743 va_end (v);
4744 return s;
4747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4748 function prototypes and stuff, but not '\xHH' hex character constants.
4749 These don't provoke an error unfortunately, instead are silently treated
4750 as 'x'. The following induces an error, until -std is added to get
4751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4752 array size at least. It's necessary to write '\x00'==0 to get something
4753 that's true only with -std. */
4754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4757 inside strings and character constants. */
4758 #define FOO(x) 'x'
4759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4761 int test (int i, double x);
4762 struct s1 {int (*f) (int a);};
4763 struct s2 {int (*f) (double a);};
4764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765 int argc;
4766 char **argv;
4768 main ()
4770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4772 return 0;
4774 _ACEOF
4775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4778 CC="$ac_save_CC $ac_arg"
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_prog_cc_c89=$ac_arg
4782 rm -f core conftest.err conftest.$ac_objext
4783 test "x$ac_cv_prog_cc_c89" != "xno" && break
4784 done
4785 rm -f conftest.$ac_ext
4786 CC=$ac_save_CC
4789 # AC_CACHE_VAL
4790 case "x$ac_cv_prog_cc_c89" in
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4793 $as_echo "none needed" >&6; } ;;
4794 xno)
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4796 $as_echo "unsupported" >&6; } ;;
4798 CC="$CC $ac_cv_prog_cc_c89"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4801 esac
4802 if test "x$ac_cv_prog_cc_c89" != xno; then :
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 depcc="$CC" am_compiler_list=
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4815 $as_echo_n "checking dependency style of $depcc... " >&6; }
4816 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4820 # We make a subdir and do the tests there. Otherwise we can end up
4821 # making bogus files that we don't know about and never remove. For
4822 # instance it was reported that on HP-UX the gcc test will end up
4823 # making a dummy file named `D' -- because `-MD' means `put the output
4824 # in D'.
4825 mkdir conftest.dir
4826 # Copy depcomp to subdir because otherwise we won't find it if we're
4827 # using a relative directory.
4828 cp "$am_depcomp" conftest.dir
4829 cd conftest.dir
4830 # We will build objects and dependencies in a subdirectory because
4831 # it helps to detect inapplicable dependency modes. For instance
4832 # both Tru64's cc and ICC support -MD to output dependencies as a
4833 # side effect of compilation, but ICC will put the dependencies in
4834 # the current directory while Tru64 will put them in the object
4835 # directory.
4836 mkdir sub
4838 am_cv_CC_dependencies_compiler_type=none
4839 if test "$am_compiler_list" = ""; then
4840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4842 am__universal=false
4843 case " $depcc " in #(
4844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4845 esac
4847 for depmode in $am_compiler_list; do
4848 # Setup a source with many dependencies, because some compilers
4849 # like to wrap large dependency lists on column 80 (with \), and
4850 # we should not choose a depcomp mode which is confused by this.
4852 # We need to recreate these files for each test, as the compiler may
4853 # overwrite some of them when testing with obscure command lines.
4854 # This happens at least with the AIX C compiler.
4855 : > sub/conftest.c
4856 for i in 1 2 3 4 5 6; do
4857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4859 # Solaris 8's {/usr,}/bin/sh.
4860 touch sub/conftst$i.h
4861 done
4862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4865 # mode. It turns out that the SunPro C++ compiler does not properly
4866 # handle `-M -o', and we need to detect this. Also, some Intel
4867 # versions had trouble with output in subdirs
4868 am__obj=sub/conftest.${OBJEXT-o}
4869 am__minus_obj="-o $am__obj"
4870 case $depmode in
4871 gcc)
4872 # This depmode causes a compiler race in universal mode.
4873 test "$am__universal" = false || continue
4875 nosideeffect)
4876 # after this tag, mechanisms are not by side-effect, so they'll
4877 # only be used when explicitly requested
4878 if test "x$enable_dependency_tracking" = xyes; then
4879 continue
4880 else
4881 break
4884 msvisualcpp | msvcmsys)
4885 # This compiler won't grok `-c -o', but also, the minuso test has
4886 # not run yet. These depmodes are late enough in the game, and
4887 # so weak that their functioning should not be impacted.
4888 am__obj=conftest.${OBJEXT-o}
4889 am__minus_obj=
4891 none) break ;;
4892 esac
4893 if depmode=$depmode \
4894 source=sub/conftest.c object=$am__obj \
4895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4897 >/dev/null 2>conftest.err &&
4898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4902 # icc doesn't choke on unknown options, it will just issue warnings
4903 # or remarks (even with -Werror). So we grep stderr for any message
4904 # that says an option was ignored or not supported.
4905 # When given -MP, icc 7.0 and 7.1 complain thusly:
4906 # icc: Command line warning: ignoring option '-M'; no argument required
4907 # The diagnosis changed in icc 8.0:
4908 # icc: Command line remark: option '-MP' not supported
4909 if (grep 'ignoring option' conftest.err ||
4910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911 am_cv_CC_dependencies_compiler_type=$depmode
4912 break
4915 done
4917 cd ..
4918 rm -rf conftest.dir
4919 else
4920 am_cv_CC_dependencies_compiler_type=none
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4929 test "x$enable_dependency_tracking" != xno \
4930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4931 am__fastdepCC_TRUE=
4932 am__fastdepCC_FALSE='#'
4933 else
4934 am__fastdepCC_TRUE='#'
4935 am__fastdepCC_FALSE=
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4940 $as_echo_n "checking whether ln -s works... " >&6; }
4941 LN_S=$as_ln_s
4942 if test "$LN_S" = "ln -s"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4944 $as_echo "yes" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4947 $as_echo "no, using $LN_S" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4952 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4953 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 ac_check_lib_save_LIBS=$LIBS
4957 LIBS="-lcposix $LIBS"
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4961 /* Override any GCC internal prototype to avoid an error.
4962 Use char because int might match the return type of a GCC
4963 builtin and then its argument prototype would still apply. */
4964 #ifdef __cplusplus
4965 extern "C"
4966 #endif
4967 char strerror ();
4969 main ()
4971 return strerror ();
4973 return 0;
4975 _ACEOF
4976 if ac_fn_c_try_link "$LINENO"; then :
4977 ac_cv_lib_cposix_strerror=yes
4978 else
4979 ac_cv_lib_cposix_strerror=no
4981 rm -f core conftest.err conftest.$ac_objext \
4982 conftest$ac_exeext conftest.$ac_ext
4983 LIBS=$ac_check_lib_save_LIBS
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4986 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4987 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
4988 LIBS="$LIBS -lcposix"
4993 # Check whether --enable-largefile was given.
4994 if test "${enable_largefile+set}" = set; then :
4995 enableval=$enable_largefile;
4998 if test "$enable_largefile" != no; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5002 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_cv_sys_largefile_CC=no
5006 if test "$GCC" != yes; then
5007 ac_save_CC=$CC
5008 while :; do
5009 # IRIX 6.2 and later do not support large files by default,
5010 # so use the C compiler's -n32 option if that helps.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <sys/types.h>
5014 /* Check that off_t can represent 2**63 - 1 correctly.
5015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5016 since some C++ compilers masquerading as C compilers
5017 incorrectly reject 9223372036854775807. */
5018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5020 && LARGE_OFF_T % 2147483647 == 1)
5021 ? 1 : -1];
5023 main ()
5027 return 0;
5029 _ACEOF
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 break
5033 rm -f core conftest.err conftest.$ac_objext
5034 CC="$CC -n32"
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_sys_largefile_CC=' -n32'; break
5038 rm -f core conftest.err conftest.$ac_objext
5039 break
5040 done
5041 CC=$ac_save_CC
5042 rm -f conftest.$ac_ext
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5047 if test "$ac_cv_sys_largefile_CC" != no; then
5048 CC=$CC$ac_cv_sys_largefile_CC
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5053 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 while :; do
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #include <sys/types.h>
5060 /* Check that off_t can represent 2**63 - 1 correctly.
5061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5062 since some C++ compilers masquerading as C compilers
5063 incorrectly reject 9223372036854775807. */
5064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5066 && LARGE_OFF_T % 2147483647 == 1)
5067 ? 1 : -1];
5069 main ()
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_sys_file_offset_bits=no; break
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 #define _FILE_OFFSET_BITS 64
5083 #include <sys/types.h>
5084 /* Check that off_t can represent 2**63 - 1 correctly.
5085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5086 since some C++ compilers masquerading as C compilers
5087 incorrectly reject 9223372036854775807. */
5088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5090 && LARGE_OFF_T % 2147483647 == 1)
5091 ? 1 : -1];
5093 main ()
5097 return 0;
5099 _ACEOF
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_sys_file_offset_bits=64; break
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 ac_cv_sys_file_offset_bits=unknown
5105 break
5106 done
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5110 case $ac_cv_sys_file_offset_bits in #(
5111 no | unknown) ;;
5113 cat >>confdefs.h <<_ACEOF
5114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5115 _ACEOF
5117 esac
5118 rm -rf conftest*
5119 if test $ac_cv_sys_file_offset_bits = unknown; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5122 if test "${ac_cv_sys_large_files+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 while :; do
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #include <sys/types.h>
5129 /* Check that off_t can represent 2**63 - 1 correctly.
5130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131 since some C++ compilers masquerading as C compilers
5132 incorrectly reject 9223372036854775807. */
5133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135 && LARGE_OFF_T % 2147483647 == 1)
5136 ? 1 : -1];
5138 main ()
5142 return 0;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 ac_cv_sys_large_files=no; break
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #define _LARGE_FILES 1
5152 #include <sys/types.h>
5153 /* Check that off_t can represent 2**63 - 1 correctly.
5154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5155 since some C++ compilers masquerading as C compilers
5156 incorrectly reject 9223372036854775807. */
5157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5159 && LARGE_OFF_T % 2147483647 == 1)
5160 ? 1 : -1];
5162 main ()
5166 return 0;
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 ac_cv_sys_large_files=1; break
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_sys_large_files=unknown
5174 break
5175 done
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5178 $as_echo "$ac_cv_sys_large_files" >&6; }
5179 case $ac_cv_sys_large_files in #(
5180 no | unknown) ;;
5182 cat >>confdefs.h <<_ACEOF
5183 #define _LARGE_FILES $ac_cv_sys_large_files
5184 _ACEOF
5186 esac
5187 rm -rf conftest*
5195 MKINSTALLDIRS=
5196 if test -n "$ac_aux_dir"; then
5197 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5199 if test -z "$MKINSTALLDIRS"; then
5200 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5207 # Extract the first word of "msgfmt", so it can be a program name with args.
5208 set dummy msgfmt; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 case "$MSGFMT" in
5216 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5220 for ac_dir in $PATH; do
5221 test -z "$ac_dir" && ac_dir=.
5222 if test -f $ac_dir/$ac_word; then
5223 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5224 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5225 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5226 break
5229 done
5230 IFS="$ac_save_ifs"
5231 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5233 esac
5235 MSGFMT="$ac_cv_path_MSGFMT"
5236 if test "$MSGFMT" != ":"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5238 $as_echo "$MSGFMT" >&6; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5244 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5245 set dummy gmsgfmt; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 case $GMSGFMT in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5271 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5273 esac
5275 GMSGFMT=$ac_cv_path_GMSGFMT
5276 if test -n "$GMSGFMT"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5278 $as_echo "$GMSGFMT" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5286 # Extract the first word of "xgettext", so it can be a program name with args.
5287 set dummy xgettext; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 case "$XGETTEXT" in
5295 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5299 for ac_dir in $PATH; do
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f $ac_dir/$ac_word; then
5302 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5303 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5304 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5305 break
5308 done
5309 IFS="$ac_save_ifs"
5310 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5312 esac
5314 XGETTEXT="$ac_cv_path_XGETTEXT"
5315 if test "$XGETTEXT" != ":"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5317 $as_echo "$XGETTEXT" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5323 rm -f messages.po
5325 # Extract the first word of "msgmerge", so it can be a program name with args.
5326 set dummy msgmerge; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 case "$MSGMERGE" in
5334 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5338 for ac_dir in $PATH; do
5339 test -z "$ac_dir" && ac_dir=.
5340 if test -f $ac_dir/$ac_word; then
5341 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5342 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5343 break
5346 done
5347 IFS="$ac_save_ifs"
5348 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5350 esac
5352 MSGMERGE="$ac_cv_path_MSGMERGE"
5353 if test "$MSGMERGE" != ":"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5355 $as_echo "$MSGMERGE" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 if test "$GMSGFMT" != ":"; then
5363 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5364 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5366 else
5367 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5369 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5370 GMSGFMT=":"
5374 if test "$XGETTEXT" != ":"; then
5375 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5376 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5380 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5381 XGETTEXT=":"
5383 rm -f messages.po
5386 ac_config_commands="$ac_config_commands default-1"
5390 if test "X$prefix" = "XNONE"; then
5391 acl_final_prefix="$ac_default_prefix"
5392 else
5393 acl_final_prefix="$prefix"
5395 if test "X$exec_prefix" = "XNONE"; then
5396 acl_final_exec_prefix='${prefix}'
5397 else
5398 acl_final_exec_prefix="$exec_prefix"
5400 acl_save_prefix="$prefix"
5401 prefix="$acl_final_prefix"
5402 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5403 prefix="$acl_save_prefix"
5406 # Check whether --with-gnu-ld was given.
5407 if test "${with_gnu_ld+set}" = set; then :
5408 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5409 else
5410 with_gnu_ld=no
5413 ac_prog=ld
5414 if test "$GCC" = yes; then
5415 # Check if gcc -print-prog-name=ld gives a path.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5417 $as_echo_n "checking for ld used by GCC... " >&6; }
5418 case $host in
5419 *-*-mingw*)
5420 # gcc leaves a trailing carriage return which upsets mingw
5421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5424 esac
5425 case $ac_prog in
5426 # Accept absolute paths.
5427 [\\/]* | [A-Za-z]:[\\/]*)
5428 re_direlt='/[^/][^/]*/\.\./'
5429 # Canonicalize the path of ld
5430 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5431 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5432 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5433 done
5434 test -z "$LD" && LD="$ac_prog"
5437 # If it fails, then pretend we aren't using GCC.
5438 ac_prog=ld
5441 # If it is relative, then search for the first ld in PATH.
5442 with_gnu_ld=unknown
5444 esac
5445 elif test "$with_gnu_ld" = yes; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5447 $as_echo_n "checking for GNU ld... " >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5450 $as_echo_n "checking for non-GNU ld... " >&6; }
5452 if test "${acl_cv_path_LD+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -z "$LD"; then
5456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5457 for ac_dir in $PATH; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5460 acl_cv_path_LD="$ac_dir/$ac_prog"
5461 # Check to see if the program is GNU ld. I'd rather use --version,
5462 # but apparently some GNU ld's only accept -v.
5463 # Break only if it was the GNU/non-GNU ld that we prefer.
5464 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5465 test "$with_gnu_ld" != no && break
5466 else
5467 test "$with_gnu_ld" != yes && break
5470 done
5471 IFS="$ac_save_ifs"
5472 else
5473 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5477 LD="$acl_cv_path_LD"
5478 if test -n "$LD"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5480 $as_echo "$LD" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5485 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5487 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5488 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5492 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5493 acl_cv_prog_gnu_ld=yes
5494 else
5495 acl_cv_prog_gnu_ld=no
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5499 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5500 with_gnu_ld=$acl_cv_prog_gnu_ld
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5505 $as_echo_n "checking for shared library run path origin... " >&6; }
5506 if test "${acl_cv_rpath+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5510 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5511 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5512 . ./conftest.sh
5513 rm -f ./conftest.sh
5514 acl_cv_rpath=done
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5518 $as_echo "$acl_cv_rpath" >&6; }
5519 wl="$acl_cv_wl"
5520 libext="$acl_cv_libext"
5521 shlibext="$acl_cv_shlibext"
5522 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5523 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5524 hardcode_direct="$acl_cv_hardcode_direct"
5525 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5526 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5527 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5528 # Check whether --enable-rpath was given.
5529 if test "${enable_rpath+set}" = set; then :
5530 enableval=$enable_rpath; :
5531 else
5532 enable_rpath=yes
5542 use_additional=yes
5544 acl_save_prefix="$prefix"
5545 prefix="$acl_final_prefix"
5546 acl_save_exec_prefix="$exec_prefix"
5547 exec_prefix="$acl_final_exec_prefix"
5549 eval additional_includedir=\"$includedir\"
5550 eval additional_libdir=\"$libdir\"
5552 exec_prefix="$acl_save_exec_prefix"
5553 prefix="$acl_save_prefix"
5556 # Check whether --with-libiconv-prefix was given.
5557 if test "${with_libiconv_prefix+set}" = set; then :
5558 withval=$with_libiconv_prefix;
5559 if test "X$withval" = "Xno"; then
5560 use_additional=no
5561 else
5562 if test "X$withval" = "X"; then
5564 acl_save_prefix="$prefix"
5565 prefix="$acl_final_prefix"
5566 acl_save_exec_prefix="$exec_prefix"
5567 exec_prefix="$acl_final_exec_prefix"
5569 eval additional_includedir=\"$includedir\"
5570 eval additional_libdir=\"$libdir\"
5572 exec_prefix="$acl_save_exec_prefix"
5573 prefix="$acl_save_prefix"
5575 else
5576 additional_includedir="$withval/include"
5577 additional_libdir="$withval/lib"
5583 LIBICONV=
5584 LTLIBICONV=
5585 INCICONV=
5586 rpathdirs=
5587 ltrpathdirs=
5588 names_already_handled=
5589 names_next_round='iconv '
5590 while test -n "$names_next_round"; do
5591 names_this_round="$names_next_round"
5592 names_next_round=
5593 for name in $names_this_round; do
5594 already_handled=
5595 for n in $names_already_handled; do
5596 if test "$n" = "$name"; then
5597 already_handled=yes
5598 break
5600 done
5601 if test -z "$already_handled"; then
5602 names_already_handled="$names_already_handled $name"
5603 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5604 eval value=\"\$HAVE_LIB$uppername\"
5605 if test -n "$value"; then
5606 if test "$value" = yes; then
5607 eval value=\"\$LIB$uppername\"
5608 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5609 eval value=\"\$LTLIB$uppername\"
5610 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5611 else
5614 else
5615 found_dir=
5616 found_la=
5617 found_so=
5618 found_a=
5619 if test $use_additional = yes; then
5620 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5621 found_dir="$additional_libdir"
5622 found_so="$additional_libdir/lib$name.$shlibext"
5623 if test -f "$additional_libdir/lib$name.la"; then
5624 found_la="$additional_libdir/lib$name.la"
5626 else
5627 if test -f "$additional_libdir/lib$name.$libext"; then
5628 found_dir="$additional_libdir"
5629 found_a="$additional_libdir/lib$name.$libext"
5630 if test -f "$additional_libdir/lib$name.la"; then
5631 found_la="$additional_libdir/lib$name.la"
5636 if test "X$found_dir" = "X"; then
5637 for x in $LDFLAGS $LTLIBICONV; do
5639 acl_save_prefix="$prefix"
5640 prefix="$acl_final_prefix"
5641 acl_save_exec_prefix="$exec_prefix"
5642 exec_prefix="$acl_final_exec_prefix"
5643 eval x=\"$x\"
5644 exec_prefix="$acl_save_exec_prefix"
5645 prefix="$acl_save_prefix"
5647 case "$x" in
5648 -L*)
5649 dir=`echo "X$x" | sed -e 's/^X-L//'`
5650 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5651 found_dir="$dir"
5652 found_so="$dir/lib$name.$shlibext"
5653 if test -f "$dir/lib$name.la"; then
5654 found_la="$dir/lib$name.la"
5656 else
5657 if test -f "$dir/lib$name.$libext"; then
5658 found_dir="$dir"
5659 found_a="$dir/lib$name.$libext"
5660 if test -f "$dir/lib$name.la"; then
5661 found_la="$dir/lib$name.la"
5666 esac
5667 if test "X$found_dir" != "X"; then
5668 break
5670 done
5672 if test "X$found_dir" != "X"; then
5673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5674 if test "X$found_so" != "X"; then
5675 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5677 else
5678 haveit=
5679 for x in $ltrpathdirs; do
5680 if test "X$x" = "X$found_dir"; then
5681 haveit=yes
5682 break
5684 done
5685 if test -z "$haveit"; then
5686 ltrpathdirs="$ltrpathdirs $found_dir"
5688 if test "$hardcode_direct" = yes; then
5689 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5690 else
5691 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5692 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5693 haveit=
5694 for x in $rpathdirs; do
5695 if test "X$x" = "X$found_dir"; then
5696 haveit=yes
5697 break
5699 done
5700 if test -z "$haveit"; then
5701 rpathdirs="$rpathdirs $found_dir"
5703 else
5704 haveit=
5705 for x in $LDFLAGS $LIBICONV; do
5707 acl_save_prefix="$prefix"
5708 prefix="$acl_final_prefix"
5709 acl_save_exec_prefix="$exec_prefix"
5710 exec_prefix="$acl_final_exec_prefix"
5711 eval x=\"$x\"
5712 exec_prefix="$acl_save_exec_prefix"
5713 prefix="$acl_save_prefix"
5715 if test "X$x" = "X-L$found_dir"; then
5716 haveit=yes
5717 break
5719 done
5720 if test -z "$haveit"; then
5721 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5723 if test "$hardcode_minus_L" != no; then
5724 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5725 else
5726 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5731 else
5732 if test "X$found_a" != "X"; then
5733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5734 else
5735 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5738 additional_includedir=
5739 case "$found_dir" in
5740 */lib | */lib/)
5741 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5742 additional_includedir="$basedir/include"
5744 esac
5745 if test "X$additional_includedir" != "X"; then
5746 if test "X$additional_includedir" != "X/usr/include"; then
5747 haveit=
5748 if test "X$additional_includedir" = "X/usr/local/include"; then
5749 if test -n "$GCC"; then
5750 case $host_os in
5751 linux*) haveit=yes;;
5752 esac
5755 if test -z "$haveit"; then
5756 for x in $CPPFLAGS $INCICONV; do
5758 acl_save_prefix="$prefix"
5759 prefix="$acl_final_prefix"
5760 acl_save_exec_prefix="$exec_prefix"
5761 exec_prefix="$acl_final_exec_prefix"
5762 eval x=\"$x\"
5763 exec_prefix="$acl_save_exec_prefix"
5764 prefix="$acl_save_prefix"
5766 if test "X$x" = "X-I$additional_includedir"; then
5767 haveit=yes
5768 break
5770 done
5771 if test -z "$haveit"; then
5772 if test -d "$additional_includedir"; then
5773 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5779 if test -n "$found_la"; then
5780 save_libdir="$libdir"
5781 case "$found_la" in
5782 */* | *\\*) . "$found_la" ;;
5783 *) . "./$found_la" ;;
5784 esac
5785 libdir="$save_libdir"
5786 for dep in $dependency_libs; do
5787 case "$dep" in
5788 -L*)
5789 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5790 if test "X$additional_libdir" != "X/usr/lib"; then
5791 haveit=
5792 if test "X$additional_libdir" = "X/usr/local/lib"; then
5793 if test -n "$GCC"; then
5794 case $host_os in
5795 linux*) haveit=yes;;
5796 esac
5799 if test -z "$haveit"; then
5800 haveit=
5801 for x in $LDFLAGS $LIBICONV; do
5803 acl_save_prefix="$prefix"
5804 prefix="$acl_final_prefix"
5805 acl_save_exec_prefix="$exec_prefix"
5806 exec_prefix="$acl_final_exec_prefix"
5807 eval x=\"$x\"
5808 exec_prefix="$acl_save_exec_prefix"
5809 prefix="$acl_save_prefix"
5811 if test "X$x" = "X-L$additional_libdir"; then
5812 haveit=yes
5813 break
5815 done
5816 if test -z "$haveit"; then
5817 if test -d "$additional_libdir"; then
5818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5821 haveit=
5822 for x in $LDFLAGS $LTLIBICONV; do
5824 acl_save_prefix="$prefix"
5825 prefix="$acl_final_prefix"
5826 acl_save_exec_prefix="$exec_prefix"
5827 exec_prefix="$acl_final_exec_prefix"
5828 eval x=\"$x\"
5829 exec_prefix="$acl_save_exec_prefix"
5830 prefix="$acl_save_prefix"
5832 if test "X$x" = "X-L$additional_libdir"; then
5833 haveit=yes
5834 break
5836 done
5837 if test -z "$haveit"; then
5838 if test -d "$additional_libdir"; then
5839 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5845 -R*)
5846 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5847 if test "$enable_rpath" != no; then
5848 haveit=
5849 for x in $rpathdirs; do
5850 if test "X$x" = "X$dir"; then
5851 haveit=yes
5852 break
5854 done
5855 if test -z "$haveit"; then
5856 rpathdirs="$rpathdirs $dir"
5858 haveit=
5859 for x in $ltrpathdirs; do
5860 if test "X$x" = "X$dir"; then
5861 haveit=yes
5862 break
5864 done
5865 if test -z "$haveit"; then
5866 ltrpathdirs="$ltrpathdirs $dir"
5870 -l*)
5871 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5873 *.la)
5874 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5877 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5878 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5880 esac
5881 done
5883 else
5884 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5885 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5889 done
5890 done
5891 if test "X$rpathdirs" != "X"; then
5892 if test -n "$hardcode_libdir_separator"; then
5893 alldirs=
5894 for found_dir in $rpathdirs; do
5895 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5896 done
5897 acl_save_libdir="$libdir"
5898 libdir="$alldirs"
5899 eval flag=\"$hardcode_libdir_flag_spec\"
5900 libdir="$acl_save_libdir"
5901 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5902 else
5903 for found_dir in $rpathdirs; do
5904 acl_save_libdir="$libdir"
5905 libdir="$found_dir"
5906 eval flag=\"$hardcode_libdir_flag_spec\"
5907 libdir="$acl_save_libdir"
5908 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5909 done
5912 if test "X$ltrpathdirs" != "X"; then
5913 for found_dir in $ltrpathdirs; do
5914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5915 done
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5935 $as_echo_n "checking whether NLS is requested... " >&6; }
5936 # Check whether --enable-nls was given.
5937 if test "${enable_nls+set}" = set; then :
5938 enableval=$enable_nls; USE_NLS=$enableval
5939 else
5940 USE_NLS=yes
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5944 $as_echo "$USE_NLS" >&6; }
5948 LIBINTL=
5949 LTLIBINTL=
5950 POSUB=
5952 if test "$USE_NLS" = "yes"; then
5953 gt_use_preinstalled_gnugettext=no
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5961 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5962 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <libintl.h>
5968 extern int _nl_msg_cat_cntr;
5969 extern int *_nl_domain_bindings;
5971 main ()
5973 bindtextdomain ("", "");
5974 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 gt_cv_func_gnugettext2_libc=yes
5981 else
5982 gt_cv_func_gnugettext2_libc=no
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
5988 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
5990 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
5996 am_save_CPPFLAGS="$CPPFLAGS"
5998 for element in $INCICONV; do
5999 haveit=
6000 for x in $CPPFLAGS; do
6002 acl_save_prefix="$prefix"
6003 prefix="$acl_final_prefix"
6004 acl_save_exec_prefix="$exec_prefix"
6005 exec_prefix="$acl_final_exec_prefix"
6006 eval x=\"$x\"
6007 exec_prefix="$acl_save_exec_prefix"
6008 prefix="$acl_save_prefix"
6010 if test "X$x" = "X$element"; then
6011 haveit=yes
6012 break
6014 done
6015 if test -z "$haveit"; then
6016 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6018 done
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6022 $as_echo_n "checking for iconv... " >&6; }
6023 if test "${am_cv_func_iconv+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6027 am_cv_func_iconv="no, consider installing GNU libiconv"
6028 am_cv_lib_iconv=no
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <stdlib.h>
6032 #include <iconv.h>
6034 main ()
6036 iconv_t cd = iconv_open("","");
6037 iconv(cd,NULL,NULL,NULL,NULL);
6038 iconv_close(cd);
6040 return 0;
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 am_cv_func_iconv=yes
6046 rm -f core conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 if test "$am_cv_func_iconv" != yes; then
6049 am_save_LIBS="$LIBS"
6050 LIBS="$LIBS $LIBICONV"
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <stdlib.h>
6054 #include <iconv.h>
6056 main ()
6058 iconv_t cd = iconv_open("","");
6059 iconv(cd,NULL,NULL,NULL,NULL);
6060 iconv_close(cd);
6062 return 0;
6064 _ACEOF
6065 if ac_fn_c_try_link "$LINENO"; then :
6066 am_cv_lib_iconv=yes
6067 am_cv_func_iconv=yes
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 LIBS="$am_save_LIBS"
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6076 $as_echo "$am_cv_func_iconv" >&6; }
6077 if test "$am_cv_func_iconv" = yes; then
6079 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6082 if test "$am_cv_lib_iconv" = yes; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6084 $as_echo_n "checking how to link with libiconv... " >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6086 $as_echo "$LIBICONV" >&6; }
6087 else
6088 CPPFLAGS="$am_save_CPPFLAGS"
6089 LIBICONV=
6090 LTLIBICONV=
6098 use_additional=yes
6100 acl_save_prefix="$prefix"
6101 prefix="$acl_final_prefix"
6102 acl_save_exec_prefix="$exec_prefix"
6103 exec_prefix="$acl_final_exec_prefix"
6105 eval additional_includedir=\"$includedir\"
6106 eval additional_libdir=\"$libdir\"
6108 exec_prefix="$acl_save_exec_prefix"
6109 prefix="$acl_save_prefix"
6112 # Check whether --with-libintl-prefix was given.
6113 if test "${with_libintl_prefix+set}" = set; then :
6114 withval=$with_libintl_prefix;
6115 if test "X$withval" = "Xno"; then
6116 use_additional=no
6117 else
6118 if test "X$withval" = "X"; then
6120 acl_save_prefix="$prefix"
6121 prefix="$acl_final_prefix"
6122 acl_save_exec_prefix="$exec_prefix"
6123 exec_prefix="$acl_final_exec_prefix"
6125 eval additional_includedir=\"$includedir\"
6126 eval additional_libdir=\"$libdir\"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6131 else
6132 additional_includedir="$withval/include"
6133 additional_libdir="$withval/lib"
6139 LIBINTL=
6140 LTLIBINTL=
6141 INCINTL=
6142 rpathdirs=
6143 ltrpathdirs=
6144 names_already_handled=
6145 names_next_round='intl '
6146 while test -n "$names_next_round"; do
6147 names_this_round="$names_next_round"
6148 names_next_round=
6149 for name in $names_this_round; do
6150 already_handled=
6151 for n in $names_already_handled; do
6152 if test "$n" = "$name"; then
6153 already_handled=yes
6154 break
6156 done
6157 if test -z "$already_handled"; then
6158 names_already_handled="$names_already_handled $name"
6159 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6160 eval value=\"\$HAVE_LIB$uppername\"
6161 if test -n "$value"; then
6162 if test "$value" = yes; then
6163 eval value=\"\$LIB$uppername\"
6164 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6165 eval value=\"\$LTLIB$uppername\"
6166 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6167 else
6170 else
6171 found_dir=
6172 found_la=
6173 found_so=
6174 found_a=
6175 if test $use_additional = yes; then
6176 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6177 found_dir="$additional_libdir"
6178 found_so="$additional_libdir/lib$name.$shlibext"
6179 if test -f "$additional_libdir/lib$name.la"; then
6180 found_la="$additional_libdir/lib$name.la"
6182 else
6183 if test -f "$additional_libdir/lib$name.$libext"; then
6184 found_dir="$additional_libdir"
6185 found_a="$additional_libdir/lib$name.$libext"
6186 if test -f "$additional_libdir/lib$name.la"; then
6187 found_la="$additional_libdir/lib$name.la"
6192 if test "X$found_dir" = "X"; then
6193 for x in $LDFLAGS $LTLIBINTL; do
6195 acl_save_prefix="$prefix"
6196 prefix="$acl_final_prefix"
6197 acl_save_exec_prefix="$exec_prefix"
6198 exec_prefix="$acl_final_exec_prefix"
6199 eval x=\"$x\"
6200 exec_prefix="$acl_save_exec_prefix"
6201 prefix="$acl_save_prefix"
6203 case "$x" in
6204 -L*)
6205 dir=`echo "X$x" | sed -e 's/^X-L//'`
6206 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6207 found_dir="$dir"
6208 found_so="$dir/lib$name.$shlibext"
6209 if test -f "$dir/lib$name.la"; then
6210 found_la="$dir/lib$name.la"
6212 else
6213 if test -f "$dir/lib$name.$libext"; then
6214 found_dir="$dir"
6215 found_a="$dir/lib$name.$libext"
6216 if test -f "$dir/lib$name.la"; then
6217 found_la="$dir/lib$name.la"
6222 esac
6223 if test "X$found_dir" != "X"; then
6224 break
6226 done
6228 if test "X$found_dir" != "X"; then
6229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6230 if test "X$found_so" != "X"; then
6231 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6233 else
6234 haveit=
6235 for x in $ltrpathdirs; do
6236 if test "X$x" = "X$found_dir"; then
6237 haveit=yes
6238 break
6240 done
6241 if test -z "$haveit"; then
6242 ltrpathdirs="$ltrpathdirs $found_dir"
6244 if test "$hardcode_direct" = yes; then
6245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6246 else
6247 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249 haveit=
6250 for x in $rpathdirs; do
6251 if test "X$x" = "X$found_dir"; then
6252 haveit=yes
6253 break
6255 done
6256 if test -z "$haveit"; then
6257 rpathdirs="$rpathdirs $found_dir"
6259 else
6260 haveit=
6261 for x in $LDFLAGS $LIBINTL; do
6263 acl_save_prefix="$prefix"
6264 prefix="$acl_final_prefix"
6265 acl_save_exec_prefix="$exec_prefix"
6266 exec_prefix="$acl_final_exec_prefix"
6267 eval x=\"$x\"
6268 exec_prefix="$acl_save_exec_prefix"
6269 prefix="$acl_save_prefix"
6271 if test "X$x" = "X-L$found_dir"; then
6272 haveit=yes
6273 break
6275 done
6276 if test -z "$haveit"; then
6277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6279 if test "$hardcode_minus_L" != no; then
6280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6281 else
6282 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6287 else
6288 if test "X$found_a" != "X"; then
6289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6290 else
6291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6294 additional_includedir=
6295 case "$found_dir" in
6296 */lib | */lib/)
6297 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6298 additional_includedir="$basedir/include"
6300 esac
6301 if test "X$additional_includedir" != "X"; then
6302 if test "X$additional_includedir" != "X/usr/include"; then
6303 haveit=
6304 if test "X$additional_includedir" = "X/usr/local/include"; then
6305 if test -n "$GCC"; then
6306 case $host_os in
6307 linux*) haveit=yes;;
6308 esac
6311 if test -z "$haveit"; then
6312 for x in $CPPFLAGS $INCINTL; do
6314 acl_save_prefix="$prefix"
6315 prefix="$acl_final_prefix"
6316 acl_save_exec_prefix="$exec_prefix"
6317 exec_prefix="$acl_final_exec_prefix"
6318 eval x=\"$x\"
6319 exec_prefix="$acl_save_exec_prefix"
6320 prefix="$acl_save_prefix"
6322 if test "X$x" = "X-I$additional_includedir"; then
6323 haveit=yes
6324 break
6326 done
6327 if test -z "$haveit"; then
6328 if test -d "$additional_includedir"; then
6329 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6335 if test -n "$found_la"; then
6336 save_libdir="$libdir"
6337 case "$found_la" in
6338 */* | *\\*) . "$found_la" ;;
6339 *) . "./$found_la" ;;
6340 esac
6341 libdir="$save_libdir"
6342 for dep in $dependency_libs; do
6343 case "$dep" in
6344 -L*)
6345 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6346 if test "X$additional_libdir" != "X/usr/lib"; then
6347 haveit=
6348 if test "X$additional_libdir" = "X/usr/local/lib"; then
6349 if test -n "$GCC"; then
6350 case $host_os in
6351 linux*) haveit=yes;;
6352 esac
6355 if test -z "$haveit"; then
6356 haveit=
6357 for x in $LDFLAGS $LIBINTL; do
6359 acl_save_prefix="$prefix"
6360 prefix="$acl_final_prefix"
6361 acl_save_exec_prefix="$exec_prefix"
6362 exec_prefix="$acl_final_exec_prefix"
6363 eval x=\"$x\"
6364 exec_prefix="$acl_save_exec_prefix"
6365 prefix="$acl_save_prefix"
6367 if test "X$x" = "X-L$additional_libdir"; then
6368 haveit=yes
6369 break
6371 done
6372 if test -z "$haveit"; then
6373 if test -d "$additional_libdir"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6377 haveit=
6378 for x in $LDFLAGS $LTLIBINTL; do
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6384 eval x=\"$x\"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6388 if test "X$x" = "X-L$additional_libdir"; then
6389 haveit=yes
6390 break
6392 done
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6401 -R*)
6402 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6403 if test "$enable_rpath" != no; then
6404 haveit=
6405 for x in $rpathdirs; do
6406 if test "X$x" = "X$dir"; then
6407 haveit=yes
6408 break
6410 done
6411 if test -z "$haveit"; then
6412 rpathdirs="$rpathdirs $dir"
6414 haveit=
6415 for x in $ltrpathdirs; do
6416 if test "X$x" = "X$dir"; then
6417 haveit=yes
6418 break
6420 done
6421 if test -z "$haveit"; then
6422 ltrpathdirs="$ltrpathdirs $dir"
6426 -l*)
6427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6429 *.la)
6430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6433 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6436 esac
6437 done
6439 else
6440 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6445 done
6446 done
6447 if test "X$rpathdirs" != "X"; then
6448 if test -n "$hardcode_libdir_separator"; then
6449 alldirs=
6450 for found_dir in $rpathdirs; do
6451 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6452 done
6453 acl_save_libdir="$libdir"
6454 libdir="$alldirs"
6455 eval flag=\"$hardcode_libdir_flag_spec\"
6456 libdir="$acl_save_libdir"
6457 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6458 else
6459 for found_dir in $rpathdirs; do
6460 acl_save_libdir="$libdir"
6461 libdir="$found_dir"
6462 eval flag=\"$hardcode_libdir_flag_spec\"
6463 libdir="$acl_save_libdir"
6464 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6465 done
6468 if test "X$ltrpathdirs" != "X"; then
6469 for found_dir in $ltrpathdirs; do
6470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6471 done
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6475 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6476 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 gt_save_CPPFLAGS="$CPPFLAGS"
6480 CPPFLAGS="$CPPFLAGS $INCINTL"
6481 gt_save_LIBS="$LIBS"
6482 LIBS="$LIBS $LIBINTL"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 #include <libintl.h>
6486 extern int _nl_msg_cat_cntr;
6487 extern
6488 #ifdef __cplusplus
6490 #endif
6491 const char *_nl_expand_alias ();
6493 main ()
6495 bindtextdomain ("", "");
6496 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6498 return 0;
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 gt_cv_func_gnugettext2_libintl=yes
6503 else
6504 gt_cv_func_gnugettext2_libintl=no
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6509 LIBS="$LIBS $LIBICONV"
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <libintl.h>
6513 extern int _nl_msg_cat_cntr;
6514 extern
6515 #ifdef __cplusplus
6517 #endif
6518 const char *_nl_expand_alias ();
6520 main ()
6522 bindtextdomain ("", "");
6523 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6525 return 0;
6527 _ACEOF
6528 if ac_fn_c_try_link "$LINENO"; then :
6529 LIBINTL="$LIBINTL $LIBICONV"
6530 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6531 gt_cv_func_gnugettext2_libintl=yes
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6537 CPPFLAGS="$gt_save_CPPFLAGS"
6538 LIBS="$gt_save_LIBS"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6541 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6544 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6545 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6546 && test "$PACKAGE" != gettext; }; then
6547 gt_use_preinstalled_gnugettext=yes
6548 else
6549 LIBINTL=
6550 LTLIBINTL=
6551 INCINTL=
6556 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6557 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6559 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6561 else
6562 USE_NLS=no
6566 if test "$USE_NLS" = "yes"; then
6568 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6569 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6571 $as_echo_n "checking how to link with libintl... " >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6573 $as_echo "$LIBINTL" >&6; }
6575 for element in $INCINTL; do
6576 haveit=
6577 for x in $CPPFLAGS; do
6579 acl_save_prefix="$prefix"
6580 prefix="$acl_final_prefix"
6581 acl_save_exec_prefix="$exec_prefix"
6582 exec_prefix="$acl_final_exec_prefix"
6583 eval x=\"$x\"
6584 exec_prefix="$acl_save_exec_prefix"
6585 prefix="$acl_save_prefix"
6587 if test "X$x" = "X$element"; then
6588 haveit=yes
6589 break
6591 done
6592 if test -z "$haveit"; then
6593 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6595 done
6600 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6603 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6607 POSUB=po
6612 INTLLIBS="$LIBINTL"
6619 if test x$USE_NLS = xyes; then
6620 USE_NLS_TRUE=
6621 USE_NLS_FALSE='#'
6622 else
6623 USE_NLS_TRUE='#'
6624 USE_NLS_FALSE=
6629 pkgdatadir=${datadir}/${PACKAGE}
6631 prefix_NONE=
6632 exec_prefix_NONE=
6633 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6634 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6635 eval ac_define_dir="\"$pkgdatadir\""
6636 eval ac_define_dir="\"$ac_define_dir\""
6637 PKGDATADIR="$ac_define_dir"
6640 cat >>confdefs.h <<_ACEOF
6641 #define PKGDATADIR "$ac_define_dir"
6642 _ACEOF
6644 test "$prefix_NONE" && prefix=NONE
6645 test "$exec_prefix_NONE" && exec_prefix=NONE
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6650 $as_echo_n "checking for ANSI C header files... " >&6; }
6651 if test "${ac_cv_header_stdc+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <stdlib.h>
6657 #include <stdarg.h>
6658 #include <string.h>
6659 #include <float.h>
6662 main ()
6666 return 0;
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 ac_cv_header_stdc=yes
6671 else
6672 ac_cv_header_stdc=no
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 if test $ac_cv_header_stdc = yes; then
6677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #include <string.h>
6682 _ACEOF
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 $EGREP "memchr" >/dev/null 2>&1; then :
6686 else
6687 ac_cv_header_stdc=no
6689 rm -f conftest*
6693 if test $ac_cv_header_stdc = yes; then
6694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <stdlib.h>
6699 _ACEOF
6700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6701 $EGREP "free" >/dev/null 2>&1; then :
6703 else
6704 ac_cv_header_stdc=no
6706 rm -f conftest*
6710 if test $ac_cv_header_stdc = yes; then
6711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6712 if test "$cross_compiling" = yes; then :
6714 else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 #include <ctype.h>
6718 #include <stdlib.h>
6719 #if ((' ' & 0x0FF) == 0x020)
6720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6722 #else
6723 # define ISLOWER(c) \
6724 (('a' <= (c) && (c) <= 'i') \
6725 || ('j' <= (c) && (c) <= 'r') \
6726 || ('s' <= (c) && (c) <= 'z'))
6727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6728 #endif
6730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6732 main ()
6734 int i;
6735 for (i = 0; i < 256; i++)
6736 if (XOR (islower (i), ISLOWER (i))
6737 || toupper (i) != TOUPPER (i))
6738 return 2;
6739 return 0;
6741 _ACEOF
6742 if ac_fn_c_try_run "$LINENO"; then :
6744 else
6745 ac_cv_header_stdc=no
6747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6748 conftest.$ac_objext conftest.beam conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6754 $as_echo "$ac_cv_header_stdc" >&6; }
6755 if test $ac_cv_header_stdc = yes; then
6757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6761 for ac_header in getopt.h libintl.h limits.h regex.h sys/param.h wchar.h wctype.h stdarg.h
6762 do :
6763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6765 eval as_val=\$$as_ac_Header
6766 if test "x$as_val" = x""yes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6769 _ACEOF
6773 done
6777 # Check whether --enable-debug was given.
6778 if test "${enable_debug+set}" = set; then :
6779 enableval=$enable_debug; if test x$enableval = xyes; then
6781 $as_echo "#define DEBUG 1" >>confdefs.h
6782 debug_support=yes
6787 if test x$debug_support != xyes; then
6789 $as_echo "#define NDEBUG 1" >>confdefs.h
6793 # Check whether --enable-tiny was given.
6794 if test "${enable_tiny+set}" = set; then :
6795 enableval=$enable_tiny; if test x$enableval = xyes; then
6797 $as_echo "#define NANO_TINY 1" >>confdefs.h
6798 tiny_support=yes
6800 $as_echo "#define DISABLE_BROWSER 1" >>confdefs.h
6803 $as_echo "#define DISABLE_HELP 1" >>confdefs.h
6806 $as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h
6809 $as_echo "#define DISABLE_MOUSE 1" >>confdefs.h
6812 $as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h
6815 $as_echo "#define DISABLE_SPELLER 1" >>confdefs.h
6818 $as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h
6821 $as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h
6828 # Check whether --enable-extra was given.
6829 if test "${enable_extra+set}" = set; then :
6830 enableval=$enable_extra; if test x$enableval != xno; then
6832 $as_echo "#define NANO_EXTRA 1" >>confdefs.h
6833 extra_support=yes
6835 else
6836 if test x$enable_tiny != xyes; then
6838 $as_echo "#define NANO_EXTRA 1" >>confdefs.h
6839 extra_support=yes
6844 # Check whether --enable-browser was given.
6845 if test "${enable_browser+set}" = set; then :
6846 enableval=$enable_browser; if test x$enableval != xyes; then
6848 $as_echo "#define DISABLE_BROWSER 1" >>confdefs.h
6854 # Check whether --enable-help was given.
6855 if test "${enable_help+set}" = set; then :
6856 enableval=$enable_help; if test x$enableval != xyes; then
6858 $as_echo "#define DISABLE_HELP 1" >>confdefs.h
6864 # Check whether --enable-justify was given.
6865 if test "${enable_justify+set}" = set; then :
6866 enableval=$enable_justify; if test x$enableval != xyes; then
6868 $as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h
6874 # Check whether --enable-mouse was given.
6875 if test "${enable_mouse+set}" = set; then :
6876 enableval=$enable_mouse; if test x$enableval != xyes; then
6878 $as_echo "#define DISABLE_MOUSE 1" >>confdefs.h
6884 # Check whether --enable-operatingdir was given.
6885 if test "${enable_operatingdir+set}" = set; then :
6886 enableval=$enable_operatingdir; if test x$enableval != xyes; then
6888 $as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h
6894 # Check whether --enable-speller was given.
6895 if test "${enable_speller+set}" = set; then :
6896 enableval=$enable_speller; if test x$enableval != xyes; then
6898 $as_echo "#define DISABLE_SPELLER 1" >>confdefs.h
6904 # Check whether --enable-tabcomp was given.
6905 if test "${enable_tabcomp+set}" = set; then :
6906 enableval=$enable_tabcomp; if test x$enableval != xyes; then
6908 $as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h
6914 # Check whether --enable-wrapping was given.
6915 if test "${enable_wrapping+set}" = set; then :
6916 enableval=$enable_wrapping; if test x$enableval != xyes; then
6918 $as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h
6924 # Check whether --enable-wrapping-as-root was given.
6925 if test "${enable_wrapping_as_root+set}" = set; then :
6926 enableval=$enable_wrapping_as_root; if test x$enableval != xyes; then
6928 $as_echo "#define DISABLE_ROOTWRAPPING 1" >>confdefs.h
6934 # Check whether --enable-color was given.
6935 if test "${enable_color+set}" = set; then :
6936 enableval=$enable_color; if test x$enableval != xno; then
6937 if test x$ac_cv_header_regex_h = xyes; then
6939 $as_echo "#define ENABLE_NANORC 1" >>confdefs.h
6940 nanorc_support=yes
6942 $as_echo "#define ENABLE_COLOR 1" >>confdefs.h
6943 color_support=yes
6944 else
6945 as_fn_error "
6946 *** The header file regex.h was not found. If you wish to use color
6947 *** support this header file is required. Please either install C
6948 *** libraries that include the regex.h file or call the configure
6949 *** script with --disable-color." "$LINENO" 5
6952 else
6953 if test x$enable_tiny != xyes; then
6954 if test x$ac_cv_header_regex_h = xyes; then
6956 $as_echo "#define ENABLE_NANORC 1" >>confdefs.h
6957 nanorc_support=yes
6959 $as_echo "#define ENABLE_COLOR 1" >>confdefs.h
6960 color_support=yes
6961 else
6962 as_fn_error "
6963 *** The header file regex.h was not found. If you wish to use color
6964 *** support this header file is required. Please either install C
6965 *** libraries that include the regex.h file or call the configure
6966 *** script with --disable-color." "$LINENO" 5
6973 # Check whether --enable-multibuffer was given.
6974 if test "${enable_multibuffer+set}" = set; then :
6975 enableval=$enable_multibuffer; if test x$enableval != xno; then
6977 $as_echo "#define ENABLE_MULTIBUFFER 1" >>confdefs.h
6978 multibuffer_support=yes
6980 else
6981 if test x$enable_tiny != xyes; then
6983 $as_echo "#define ENABLE_MULTIBUFFER 1" >>confdefs.h
6984 multibuffer_support=yes
6989 # Check whether --enable-nanorc was given.
6990 if test "${enable_nanorc+set}" = set; then :
6991 enableval=$enable_nanorc; if test x$enableval != xno; then
6993 $as_echo "#define ENABLE_NANORC 1" >>confdefs.h
6994 nanorc_support=yes
6996 else
6997 if test x$enable_tiny != xyes; then
6999 $as_echo "#define ENABLE_NANORC 1" >>confdefs.h
7000 nanorc_support=yes
7005 # Check whether --enable-all was given.
7006 if test "${enable_all+set}" = set; then :
7007 enableval=$enable_all; if test x$enableval = xyes; then
7008 echo "--enable-all option no longer needed, ignoring for compatibility"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable UTF-8 support" >&5
7014 $as_echo_n "checking whether to enable UTF-8 support... " >&6; }
7015 # Check whether --enable-utf8 was given.
7016 if test "${enable_utf8+set}" = set; then :
7017 enableval=$enable_utf8; if test x$enableval = xyes; then
7018 enable_utf8=yes
7019 else
7020 enable_utf8=no
7022 else
7023 enable_utf8=auto
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_utf8" >&5
7027 $as_echo "$enable_utf8" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use slang" >&5
7030 $as_echo_n "checking whether to use slang... " >&6; }
7031 CURSES_LIB_NAME=""
7033 # Check whether --with-slang was given.
7034 if test "${with_slang+set}" = set; then :
7035 withval=$with_slang; case "$with_slang" in
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7042 $as_echo "yes" >&6; }
7044 if test x$with_slang != xyes; then
7045 # Add additional search path
7046 LDFLAGS="-L$with_slang/lib $LDFLAGS"
7047 CPPFLAGS="-I$with_slang/include $CPPFLAGS"
7050 if test x$enable_utf8 != xno; then
7051 ac_fn_c_check_header_mongrel "$LINENO" "slcurses.h" "ac_cv_header_slcurses_h" "$ac_includes_default"
7052 if test "x$ac_cv_header_slcurses_h" = x""yes; then :
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang" >&5
7054 $as_echo_n "checking for SLutf8_enable in -lslang... " >&6; }
7055 _libs=$LIBS
7056 LIBS="$LIBS -lslang"
7057 if test "$cross_compiling" = yes; then :
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7059 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7060 else
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7064 #include <slcurses.h>
7065 int main(void)
7067 SLutf8_enable(1);
7068 return 0;
7070 _ACEOF
7071 if ac_fn_c_try_run "$LINENO"; then :
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7073 $as_echo "yes" >&6; }
7075 $as_echo "#define USE_SLANG 1" >>confdefs.h
7076 slang_support=yes
7077 CURSES_LIB_WIDE=yes
7078 if test x$with_slang != xyes; then
7079 CURSES_LIB="-L${with_slang}/lib -lslang"
7080 else
7081 CURSES_LIB="-lslang"
7083 CURSES_LIB_NAME=slang
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7088 # We might need the term library
7089 for termlib in ncurses curses termcap terminfo termlib; do
7090 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
7092 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
7093 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-l${termlib} $LIBS"
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7101 /* Override any GCC internal prototype to avoid an error.
7102 Use char because int might match the return type of a GCC
7103 builtin and then its argument prototype would still apply. */
7104 #ifdef __cplusplus
7105 extern "C"
7106 #endif
7107 char tputs ();
7109 main ()
7111 return tputs ();
7113 return 0;
7115 _ACEOF
7116 if ac_fn_c_try_link "$LINENO"; then :
7117 eval "$as_ac_Lib=yes"
7118 else
7119 eval "$as_ac_Lib=no"
7121 rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 LIBS=$ac_check_lib_save_LIBS
7125 eval ac_res=\$$as_ac_Lib
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 eval as_val=\$$as_ac_Lib
7129 if test "x$as_val" = x""yes; then :
7130 tcap="-l$termlib"
7133 test -n "$tcap" && break
7134 done
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang $tcap" >&5
7137 $as_echo_n "checking for SLutf8_enable in -lslang $tcap... " >&6; }
7138 LIBS="$LIBS $tcap"
7139 if test "$cross_compiling" = yes; then :
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7141 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7142 else
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7146 #include <slcurses.h>
7147 int main(void)
7149 SLutf8_enable(1);
7150 return 0;
7152 _ACEOF
7153 if ac_fn_c_try_run "$LINENO"; then :
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7155 $as_echo "yes" >&6; }
7157 $as_echo "#define USE_SLANG 1" >>confdefs.h
7158 slang_support=yes
7159 CURSES_LIB_WIDE=yes
7160 if test x$with_slang != xyes; then
7161 CURSES_LIB="-L${with_slang}/lib -lslang $tcap"
7162 else
7163 CURSES_LIB="-lslang $tcap"
7165 CURSES_LIB_NAME=slang
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7170 # We might need the math library
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLutf8_enable in -lslang $tcap -lm" >&5
7172 $as_echo_n "checking for SLutf8_enable in -lslang $tcap -lm... " >&6; }
7173 LIBS="$LIBS -lm"
7174 if test "$cross_compiling" = yes; then :
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7176 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7181 #include <slcurses.h>
7182 int main(void)
7184 SLutf8_enable(1);
7185 return 0;
7187 _ACEOF
7188 if ac_fn_c_try_run "$LINENO"; then :
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190 $as_echo "yes" >&6; }
7192 $as_echo "#define USE_SLANG 1" >>confdefs.h
7193 slang_support=yes
7194 CURSES_LIB_WIDE=yes
7195 if test x$with_slang != xyes; then
7196 CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm"
7197 else
7198 CURSES_LIB="-lslang $tcap -lm"
7200 CURSES_LIB_NAME=slang
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7206 conftest.$ac_objext conftest.beam conftest.$ac_ext
7210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7211 conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216 conftest.$ac_objext conftest.beam conftest.$ac_ext
7219 else
7220 as_fn_error "
7221 *** The header file slcurses.h was not found. If you wish to use
7222 *** slang support this header file is required. Please either
7223 *** install a version of slang that includes the slcurses.h file or
7224 *** do not call the configure script with --with-slang." "$LINENO" 5
7230 if eval "test x$CURSES_LIB_NAME = x"; then
7231 # Reset libs if the above slang tests failed
7232 if test x$enable_utf8 != xno; then
7233 LIBS=$_libs
7236 ac_fn_c_check_header_mongrel "$LINENO" "slcurses.h" "ac_cv_header_slcurses_h" "$ac_includes_default"
7237 if test "x$ac_cv_header_slcurses_h" = x""yes; then :
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang" >&5
7239 $as_echo_n "checking for SLtt_initialize in -lslang... " >&6; }
7240 _libs=$LIBS
7241 LIBS="$LIBS -lslang"
7242 if test "$cross_compiling" = yes; then :
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7244 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7245 else
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7249 #include <slcurses.h>
7250 int main(void)
7252 SLtt_initialize(NULL);
7253 return 0;
7255 _ACEOF
7256 if ac_fn_c_try_run "$LINENO"; then :
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7258 $as_echo "yes" >&6; }
7260 $as_echo "#define USE_SLANG 1" >>confdefs.h
7261 slang_support=yes
7262 if test x$with_slang != xyes; then
7263 CURSES_LIB="-L${with_slang}/lib -lslang"
7264 else
7265 CURSES_LIB="-lslang"
7267 CURSES_LIB_NAME=slang
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7272 # We might need the term library
7273 for termlib in ncurses curses termcap terminfo termlib; do
7274 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
7276 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
7277 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 ac_check_lib_save_LIBS=$LIBS
7281 LIBS="-l${termlib} $LIBS"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7288 #ifdef __cplusplus
7289 extern "C"
7290 #endif
7291 char tputs ();
7293 main ()
7295 return tputs ();
7297 return 0;
7299 _ACEOF
7300 if ac_fn_c_try_link "$LINENO"; then :
7301 eval "$as_ac_Lib=yes"
7302 else
7303 eval "$as_ac_Lib=no"
7305 rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7307 LIBS=$ac_check_lib_save_LIBS
7309 eval ac_res=\$$as_ac_Lib
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7311 $as_echo "$ac_res" >&6; }
7312 eval as_val=\$$as_ac_Lib
7313 if test "x$as_val" = x""yes; then :
7314 tcap="-l$termlib"
7317 test -n "$tcap" && break
7318 done
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang $tcap" >&5
7321 $as_echo_n "checking for SLtt_initialize in -lslang $tcap... " >&6; }
7322 LIBS="$LIBS $tcap"
7323 if test "$cross_compiling" = yes; then :
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7325 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7326 else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7330 #include <slcurses.h>
7331 int main(void)
7333 SLtt_initialize(NULL);
7334 return 0;
7336 _ACEOF
7337 if ac_fn_c_try_run "$LINENO"; then :
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7339 $as_echo "yes" >&6; }
7341 $as_echo "#define USE_SLANG 1" >>confdefs.h
7342 slang_support=yes
7343 if test x$with_slang != xyes; then
7344 CURSES_LIB="-L${with_slang}/lib -lslang $tcap"
7345 else
7346 CURSES_LIB="-lslang $tcap"
7348 CURSES_LIB_NAME=slang
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7353 # We might need the math library
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLtt_initialize in -lslang $tcap -lm" >&5
7355 $as_echo_n "checking for SLtt_initialize in -lslang $tcap -lm... " >&6; }
7356 LIBS="$LIBS -lm"
7357 if test "$cross_compiling" = yes; then :
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can not use slang when cross-compiling" >&5
7359 $as_echo "$as_me: WARNING: *** Can not use slang when cross-compiling" >&2;}
7360 else
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7364 #include <slcurses.h>
7365 int main(void)
7367 SLtt_initialize(NULL);
7368 return 0;
7370 _ACEOF
7371 if ac_fn_c_try_run "$LINENO"; then :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373 $as_echo "yes" >&6; }
7375 $as_echo "#define USE_SLANG 1" >>confdefs.h
7376 slang_support=yes
7377 if test x$with_slang != xyes; then
7378 CURSES_LIB="-L${with_slang}/lib -lslang $tcap -lm"
7379 else
7380 CURSES_LIB="-lslang $tcap -lm"
7382 CURSES_LIB_NAME=slang
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7388 conftest.$ac_objext conftest.beam conftest.$ac_ext
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7393 conftest.$ac_objext conftest.beam conftest.$ac_ext
7397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7398 conftest.$ac_objext conftest.beam conftest.$ac_ext
7401 else
7402 as_fn_error "
7403 *** The header file slcurses.h was not found. If you wish to use
7404 *** slang support this header file is required. Please either
7405 *** install a version of slang that includes the slcurses.h file or
7406 *** do not call the configure script with --with-slang." "$LINENO" 5
7412 if test "${_libs+set}" = "set"; then
7413 LIBS=$_libs
7416 if test x$with_slang != xyes; then
7417 LDFLAGS=${_ldflags}
7420 esac
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7427 if test x$CURSES_LIB_NAME = xslang; then
7429 $as_echo "#define NANO_TINY 1" >>confdefs.h
7430 tiny_support=yes
7432 $as_echo "#define DISABLE_BROWSER 1" >>confdefs.h
7435 $as_echo "#define DISABLE_HELP 1" >>confdefs.h
7438 $as_echo "#define DISABLE_JUSTIFY 1" >>confdefs.h
7441 $as_echo "#define DISABLE_MOUSE 1" >>confdefs.h
7444 $as_echo "#define DISABLE_OPERATINGDIR 1" >>confdefs.h
7447 $as_echo "#define DISABLE_SPELLER 1" >>confdefs.h
7450 $as_echo "#define DISABLE_TABCOMP 1" >>confdefs.h
7453 $as_echo "#define DISABLE_WRAPPING 1" >>confdefs.h
7457 if test x$color_support = xyes; then
7458 USE_COLOR_TRUE=
7459 USE_COLOR_FALSE='#'
7460 else
7461 USE_COLOR_TRUE='#'
7462 USE_COLOR_FALSE=
7465 if test x$nanorc_support = xyes; then
7466 USE_NANORC_TRUE=
7467 USE_NANORC_FALSE='#'
7468 else
7469 USE_NANORC_TRUE='#'
7470 USE_NANORC_FALSE=
7474 # Check whether --enable-altrcname was given.
7475 if test "${enable_altrcname+set}" = set; then :
7476 enableval=$enable_altrcname; if test x$enableval != no; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define RCFILE_NAME "$enableval"
7480 _ACEOF
7481 rcfilename=$enableval
7487 for ac_func in getdelim getline isblank strcasecmp strcasestr strncasecmp strnlen vsnprintf
7488 do :
7489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7491 eval as_val=\$$as_ac_var
7492 if test "x$as_val" = x""yes; then :
7493 cat >>confdefs.h <<_ACEOF
7494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495 _ACEOF
7498 done
7501 if test x$enable_utf8 != xno; then
7502 for ac_func in iswalnum iswblank iswpunct iswspace nl_langinfo mblen mbstowcs mbtowc wctomb wcwidth
7503 do :
7504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7506 eval as_val=\$$as_ac_var
7507 if test "x$as_val" = x""yes; then :
7508 cat >>confdefs.h <<_ACEOF
7509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7510 _ACEOF
7513 done
7517 if test x$ac_cv_func_vsnprintf = xno; then
7518 # Check whether --enable-glibtest was given.
7519 if test "${enable_glibtest+set}" = set; then :
7520 enableval=$enable_glibtest;
7521 else
7522 enable_glibtest=yes
7526 pkg_config_args=glib-2.0
7527 for module in . glib
7529 case "$module" in
7530 gmodule)
7531 pkg_config_args="$pkg_config_args gmodule-2.0"
7533 gmodule-no-export)
7534 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7536 gobject)
7537 pkg_config_args="$pkg_config_args gobject-2.0"
7539 gthread)
7540 pkg_config_args="$pkg_config_args gthread-2.0"
7542 esac
7543 done
7545 # Extract the first word of "pkg-config", so it can be a program name with args.
7546 set dummy pkg-config; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 case $PKG_CONFIG in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7570 IFS=$as_save_IFS
7572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7574 esac
7576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7577 if test -n "$PKG_CONFIG"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7579 $as_echo "$PKG_CONFIG" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 no_glib=""
7589 if test x$PKG_CONFIG != xno ; then
7590 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
7592 else
7593 echo *** pkg-config too old; version 0.7 or better required.
7594 no_glib=yes
7595 PKG_CONFIG=no
7597 else
7598 no_glib=yes
7601 min_glib_version=2.0.0
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
7603 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7605 if test x$PKG_CONFIG != xno ; then
7606 ## don't try to run the test against uninstalled libtool libs
7607 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7608 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7609 enable_glibtest=no
7612 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7614 else
7615 no_glib=yes
7619 if test x"$no_glib" = x ; then
7620 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7621 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7622 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7624 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7625 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7626 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7628 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7629 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7630 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7631 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7632 if test "x$enable_glibtest" = "xyes" ; then
7633 ac_save_CFLAGS="$CFLAGS"
7634 ac_save_LIBS="$LIBS"
7635 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7636 LIBS="$GLIB_LIBS $LIBS"
7637 rm -f conf.glibtest
7638 if test "$cross_compiling" = yes; then :
7639 echo $ac_n "cross compiling; assumed OK... $ac_c"
7640 else
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 #include <glib.h>
7645 #include <stdio.h>
7646 #include <stdlib.h>
7649 main ()
7651 int major, minor, micro;
7652 char *tmp_version;
7654 system ("touch conf.glibtest");
7656 /* HP/UX 9 (%@#!) writes to sscanf strings */
7657 tmp_version = g_strdup("$min_glib_version");
7658 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7659 printf("%s, bad version string\n", "$min_glib_version");
7660 exit(1);
7663 if ((glib_major_version != $glib_config_major_version) ||
7664 (glib_minor_version != $glib_config_minor_version) ||
7665 (glib_micro_version != $glib_config_micro_version))
7667 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7668 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7669 glib_major_version, glib_minor_version, glib_micro_version);
7670 printf ("*** was found! If pkg-config was correct, then it is best\n");
7671 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7672 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7673 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7674 printf("*** required on your system.\n");
7675 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7676 printf("*** to point to the correct configuration files\n");
7678 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7679 (glib_minor_version != GLIB_MINOR_VERSION) ||
7680 (glib_micro_version != GLIB_MICRO_VERSION))
7682 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7683 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7684 printf("*** library (version %d.%d.%d)\n",
7685 glib_major_version, glib_minor_version, glib_micro_version);
7687 else
7689 if ((glib_major_version > major) ||
7690 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7691 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7693 return 0;
7695 else
7697 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7698 glib_major_version, glib_minor_version, glib_micro_version);
7699 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7700 major, minor, micro);
7701 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7702 printf("***\n");
7703 printf("*** If you have already installed a sufficiently new version, this error\n");
7704 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7705 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7706 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7707 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7708 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7709 printf("*** so that the correct libraries are found at run-time))\n");
7712 return 1;
7715 _ACEOF
7716 if ac_fn_c_try_run "$LINENO"; then :
7718 else
7719 no_glib=yes
7721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7722 conftest.$ac_objext conftest.beam conftest.$ac_ext
7725 CFLAGS="$ac_save_CFLAGS"
7726 LIBS="$ac_save_LIBS"
7729 if test "x$no_glib" = x ; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7731 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 if test "$PKG_CONFIG" = "no" ; then
7737 echo "*** A new enough version of pkg-config was not found."
7738 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7739 else
7740 if test -f conf.glibtest ; then
7742 else
7743 echo "*** Could not run GLIB test program, checking why..."
7744 ac_save_CFLAGS="$CFLAGS"
7745 ac_save_LIBS="$LIBS"
7746 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7747 LIBS="$LIBS $GLIB_LIBS"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7751 #include <glib.h>
7752 #include <stdio.h>
7755 main ()
7757 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7759 return 0;
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 echo "*** The test program compiled, but did not run. This usually means"
7764 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7765 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7766 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7767 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7768 echo "*** is required on your system"
7769 echo "***"
7770 echo "*** If you have an old version installed, it is best to remove it, although"
7771 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7772 else
7773 echo "*** The test program failed to compile or link. See the file config.log for the"
7774 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 CFLAGS="$ac_save_CFLAGS"
7779 LIBS="$ac_save_LIBS"
7782 GLIB_CFLAGS=""
7783 GLIB_LIBS=""
7784 GLIB_GENMARSHAL=""
7785 GOBJECT_QUERY=""
7786 GLIB_MKENUMS=""
7787 as_fn_error "
7788 *** vsnprintf() not found. GLIB 2.x not found either. You should
7789 *** install the GLIB 2.x library which can be found at
7790 *** ftp://ftp.gtk.org/." "$LINENO" 5
7797 rm -f conf.glibtest
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7803 $as_echo_n "checking return type of signal handlers... " >&6; }
7804 if test "${ac_cv_type_signal+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 #include <sys/types.h>
7810 #include <signal.h>
7813 main ()
7815 return *(signal (0, 0)) (0) == 1;
7817 return 0;
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821 ac_cv_type_signal=int
7822 else
7823 ac_cv_type_signal=void
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7828 $as_echo "$ac_cv_type_signal" >&6; }
7830 cat >>confdefs.h <<_ACEOF
7831 #define RETSIGTYPE $ac_cv_type_signal
7832 _ACEOF
7835 for ac_func in vprintf
7836 do :
7837 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7838 if test "x$ac_cv_func_vprintf" = x""yes; then :
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_VPRINTF 1
7841 _ACEOF
7843 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7844 if test "x$ac_cv_func__doprnt" = x""yes; then :
7846 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7851 done
7854 for ac_func in getopt_long
7855 do :
7856 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
7857 if test "x$ac_cv_func_getopt_long" = x""yes; then :
7858 cat >>confdefs.h <<_ACEOF
7859 #define HAVE_GETOPT_LONG 1
7860 _ACEOF
7863 done
7866 if eval "test x$CURSES_LIB_NAME = x"; then
7867 for ac_header in ncurses.h
7868 do :
7869 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
7870 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
7871 cat >>confdefs.h <<_ACEOF
7872 #define HAVE_NCURSES_H 1
7873 _ACEOF
7877 done
7880 if test x$enable_utf8 != xno; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_wch in -lncursesw" >&5
7882 $as_echo_n "checking for get_wch in -lncursesw... " >&6; }
7883 if test "${ac_cv_lib_ncursesw_get_wch+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 ac_check_lib_save_LIBS=$LIBS
7887 LIBS="-lncursesw $LIBS"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7891 /* Override any GCC internal prototype to avoid an error.
7892 Use char because int might match the return type of a GCC
7893 builtin and then its argument prototype would still apply. */
7894 #ifdef __cplusplus
7895 extern "C"
7896 #endif
7897 char get_wch ();
7899 main ()
7901 return get_wch ();
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_link "$LINENO"; then :
7907 ac_cv_lib_ncursesw_get_wch=yes
7908 else
7909 ac_cv_lib_ncursesw_get_wch=no
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913 LIBS=$ac_check_lib_save_LIBS
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_get_wch" >&5
7916 $as_echo "$ac_cv_lib_ncursesw_get_wch" >&6; }
7917 if test "x$ac_cv_lib_ncursesw_get_wch" = x""yes; then :
7918 CURSES_LIB="-lncursesw" CPPFLAGS="-I/usr/include/ncursesw $CPPFLAGS" CURSES_LIB_NAME=ncursesw CURSES_LIB_WIDE=yes
7923 if eval "test x$CURSES_LIB_NAME = x"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7925 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7926 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 ac_check_lib_save_LIBS=$LIBS
7930 LIBS="-lncurses $LIBS"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 char initscr ();
7942 main ()
7944 return initscr ();
7946 return 0;
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_lib_ncurses_initscr=yes
7951 else
7952 ac_cv_lib_ncurses_initscr=no
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7959 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7960 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then :
7961 CURSES_LIB="-lncurses" CURSES_LIB_NAME=ncurses
7967 if eval "test x$CURSES_LIB_NAME = x"; then
7968 for ac_header in curses.h
7969 do :
7970 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
7971 if test "x$ac_cv_header_curses_h" = x""yes; then :
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_CURSES_H 1
7974 _ACEOF
7978 done
7981 if test x$enable_utf8 != xno; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_wch in -lcurses" >&5
7983 $as_echo_n "checking for get_wch in -lcurses... " >&6; }
7984 if test "${ac_cv_lib_curses_get_wch+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-lcurses $LIBS"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995 #ifdef __cplusplus
7996 extern "C"
7997 #endif
7998 char get_wch ();
8000 main ()
8002 return get_wch ();
8004 return 0;
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_curses_get_wch=yes
8009 else
8010 ac_cv_lib_curses_get_wch=no
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_get_wch" >&5
8017 $as_echo "$ac_cv_lib_curses_get_wch" >&6; }
8018 if test "x$ac_cv_lib_curses_get_wch" = x""yes; then :
8019 CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses CURSES_LIB_WIDE=yes
8024 if eval "test x$CURSES_LIB_NAME = x"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
8026 $as_echo_n "checking for initscr in -lcurses... " >&6; }
8027 if test "${ac_cv_lib_curses_initscr+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-lcurses $LIBS"
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8035 /* Override any GCC internal prototype to avoid an error.
8036 Use char because int might match the return type of a GCC
8037 builtin and then its argument prototype would still apply. */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 char initscr ();
8043 main ()
8045 return initscr ();
8047 return 0;
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8051 ac_cv_lib_curses_initscr=yes
8052 else
8053 ac_cv_lib_curses_initscr=no
8055 rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
8060 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
8061 if test "x$ac_cv_lib_curses_initscr" = x""yes; then :
8062 CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses
8068 if eval "test x$CURSES_LIB_NAME = x"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8070 *** No curses lib available. Consider getting the official ncurses
8071 *** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
8072 *** errors compiling nano." >&5
8073 $as_echo "$as_me: WARNING:
8074 *** No curses lib available. Consider getting the official ncurses
8075 *** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
8076 *** errors compiling nano." >&2;}
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CURSES_LIB_NAME as the curses library" >&5
8079 $as_echo "Using $CURSES_LIB_NAME as the curses library" >&6; }
8082 as_ac_Lib=`$as_echo "ac_cv_lib_$CURSES_LIB_NAME''_use_default_colors" | $as_tr_sh`
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_default_colors in -l$CURSES_LIB_NAME" >&5
8084 $as_echo_n "checking for use_default_colors in -l$CURSES_LIB_NAME... " >&6; }
8085 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-l$CURSES_LIB_NAME $LIBS"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char use_default_colors ();
8101 main ()
8103 return use_default_colors ();
8105 return 0;
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 eval "$as_ac_Lib=yes"
8110 else
8111 eval "$as_ac_Lib=no"
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8117 eval ac_res=\$$as_ac_Lib
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8119 $as_echo "$ac_res" >&6; }
8120 eval as_val=\$$as_ac_Lib
8121 if test "x$as_val" = x""yes; then :
8123 $as_echo "#define HAVE_USE_DEFAULT_COLORS 1" >>confdefs.h
8129 LIBS="$LIBS $CURSES_LIB"
8133 if test "x$GLIB_CFLAGS" != "x"; then
8134 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8136 if test "x$GLIB_LIBS" != "x"; then
8137 LDFLAGS="$LDFLAGS $GLIB_LIBS"
8140 if test x$enable_utf8 != xno && \
8141 test x$CURSES_LIB_WIDE = xyes && \
8142 test x$ac_cv_func_iswalnum = xyes && \
8143 test x$ac_cv_func_iswpunct = xyes && \
8144 (test x$ac_cv_func_iswblank = xyes || test x$ac_cv_func_iswspace = xyes) && \
8145 test x$ac_cv_func_nl_langinfo = xyes && \
8146 test x$ac_cv_func_mblen = xyes && \
8147 test x$ac_cv_func_mbstowcs = xyes && \
8148 test x$ac_cv_func_mbtowc = xyes && \
8149 test x$ac_cv_func_wctomb = xyes && \
8150 test x$ac_cv_func_wcwidth = xyes; then
8152 $as_echo "#define ENABLE_UTF8 1" >>confdefs.h
8154 else
8155 if test x$enable_utf8 = xyes; then
8156 as_fn_error "
8157 *** UTF-8 support was requested, but insufficient UTF-8 support was
8158 *** detected in your curses and/or C libraries. Please verify that your
8159 *** slang was built with UTF-8 support or your curses was built with
8160 *** wide character support, and that your C library was built with wide
8161 *** character support." "$LINENO" 5
8162 elif test x$enable_utf8 != xno; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8164 *** Insufficient UTF-8 support was detected in your curses and/or C
8165 *** libraries. If you want UTF-8 support, please verify that your slang
8166 *** was built with UTF-8 support or your curses was built with wide
8167 *** character support, and that your C library was built with wide
8168 *** character support." >&5
8169 $as_echo "$as_me: WARNING:
8170 *** Insufficient UTF-8 support was detected in your curses and/or C
8171 *** libraries. If you want UTF-8 support, please verify that your slang
8172 *** was built with UTF-8 support or your curses was built with wide
8173 *** character support, and that your C library was built with wide
8174 *** character support." >&2;}
8178 if test x$color_support = xyes; then
8179 # now check for the end of word boundary support (/< and />)
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style word boundary regex support" >&5
8181 $as_echo_n "checking for GNU-style word boundary regex support... " >&6; }
8182 if test "$cross_compiling" = yes; then :
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check for GNU-style word boundary support when cross-compiling" >&5
8184 $as_echo "$as_me: WARNING: *** Can't check for GNU-style word boundary support when cross-compiling" >&2;}
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 #ifdef HAVE_SYS_TYPES_H
8191 #include <sys/types.h>
8192 #endif
8193 #include <regex.h>
8194 int main(void)
8196 regex_t r;
8197 size_t nmatch;
8198 regmatch_t pmatch;
8200 if (regcomp(&r, "\\\\>", REG_EXTENDED|REG_NOSUB))
8201 return 1;
8202 if (regexec(&r, "word boundary", nmatch, &pmatch, 0))
8203 return 1;
8204 return 0;
8206 _ACEOF
8207 if ac_fn_c_try_run "$LINENO"; then :
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8209 $as_echo "yes" >&6; }
8211 $as_echo "#define GNU_WORDBOUNDS 1" >>confdefs.h
8212 gnu_wordbounds=yes
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8218 conftest.$ac_objext conftest.beam conftest.$ac_ext
8221 # if test x$CURSES_LIB_NAME = xcurses; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE_EXTENDED is needed" >&5
8223 $as_echo_n "checking whether _XOPEN_SOURCE_EXTENDED is needed... " >&6; }
8224 if test "$cross_compiling" = yes; then :
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check need for _XOPEN_SOURCE_EXTENDED when cross-compiling" >&5
8226 $as_echo "$as_me: WARNING: *** Can't check need for _XOPEN_SOURCE_EXTENDED when cross-compiling" >&2;}
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 #include <curses.h>
8232 int main(void)
8234 int testcolor = COLOR_WHITE;
8235 return 0;
8237 _ACEOF
8238 if ac_fn_c_try_run "$LINENO"; then :
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 else
8242 if test "$cross_compiling" = yes; then :
8243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8245 as_fn_error "cannot run test program while cross compiling
8246 See \`config.log' for more details." "$LINENO" 5; }
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8251 #ifndef _XOPEN_SOURCE_EXTENDED
8252 #define _XOPEN_SOURCE_EXTENDED 1
8253 #endif
8254 #include <curses.h>
8255 int main(void)
8257 int testcolor = COLOR_WHITE;
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_run "$LINENO"; then :
8263 $as_echo "#define NEED_XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8266 $as_echo "yes" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not sure" >&5
8269 $as_echo "not sure" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't successfully compile basic color test with or without _XOPEN_SOURCE_EXTENDED" >&5
8271 $as_echo "$as_me: WARNING: *** Couldn't successfully compile basic color test with or without _XOPEN_SOURCE_EXTENDED" >&2;}
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This build may not compile. Consider configuring with --disable-color or installing ncurses" >&5
8273 $as_echo "$as_me: WARNING: *** This build may not compile. Consider configuring with --disable-color or installing ncurses" >&2;}
8275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8276 conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8281 conftest.$ac_objext conftest.beam conftest.$ac_ext
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LINES and COLS can be redefined" >&5
8288 $as_echo_n "checking whether LINES and COLS can be redefined... " >&6; }
8289 if test "$cross_compiling" = yes; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Can't check for macro redefinability when cross-compiling" >&5
8291 $as_echo "$as_me: WARNING: *** Can't check for macro redefinability when cross-compiling" >&2;}
8292 else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8296 #include <curses.h>
8297 int main(void)
8299 LINES = 80;
8300 COLS = 25;
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_run "$LINENO"; then :
8306 $as_echo "#define REDEFINIG_MACROS_OK 1" >>confdefs.h
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8309 $as_echo "yes" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8315 conftest.$ac_objext conftest.beam conftest.$ac_ext
8320 # Check for groff html support
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HTML support in groff" >&5
8322 $as_echo_n "checking for HTML support in groff... " >&6; }
8323 groff -t -mandoc -Thtml </dev/null >/dev/null
8324 if test $? -ne 0 ; then
8325 echo "no"
8326 echo "*** Will not generate HTML version of man pages ***"
8327 echo "*** Consider installing a newer version of groff with HTML support ***"
8328 groff_html_support=no
8329 else
8330 echo "yes"
8331 groff_html_support=yes
8333 if test x$groff_html_support = xyes; then
8334 GROFF_HTML_TRUE=
8335 GROFF_HTML_FALSE='#'
8336 else
8337 GROFF_HTML_TRUE='#'
8338 GROFF_HTML_FALSE=
8343 ac_config_files="$ac_config_files Makefile doc/Makefile doc/nanorc.sample doc/man/Makefile doc/man/fr/Makefile doc/syntax/Makefile doc/texinfo/Makefile m4/Makefile po/Makefile.in src/Makefile nano.spec"
8346 cat >confcache <<\_ACEOF
8347 # This file is a shell script that caches the results of configure
8348 # tests run on this system so they can be shared between configure
8349 # scripts and configure runs, see configure's option --config-cache.
8350 # It is not useful on other systems. If it contains results you don't
8351 # want to keep, you may remove or edit it.
8353 # config.status only pays attention to the cache file if you give it
8354 # the --recheck option to rerun configure.
8356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8358 # following values.
8360 _ACEOF
8362 # The following way of writing the cache mishandles newlines in values,
8363 # but we know of no workaround that is simple, portable, and efficient.
8364 # So, we kill variables containing newlines.
8365 # Ultrix sh set writes to stderr and can't be redirected directly,
8366 # and sets the high bit in the cache file unless we assign to the vars.
8368 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8369 eval ac_val=\$$ac_var
8370 case $ac_val in #(
8371 *${as_nl}*)
8372 case $ac_var in #(
8373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8375 esac
8376 case $ac_var in #(
8377 _ | IFS | as_nl) ;; #(
8378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8379 *) { eval $ac_var=; unset $ac_var;} ;;
8380 esac ;;
8381 esac
8382 done
8384 (set) 2>&1 |
8385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8386 *${as_nl}ac_space=\ *)
8387 # `set' does not quote correctly, so add quotes: double-quote
8388 # substitution turns \\\\ into \\, and sed turns \\ into \.
8389 sed -n \
8390 "s/'/'\\\\''/g;
8391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8392 ;; #(
8394 # `set' quotes correctly as required by POSIX, so do not add quotes.
8395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8397 esac |
8398 sort
8400 sed '
8401 /^ac_cv_env_/b end
8402 t clear
8403 :clear
8404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8405 t end
8406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8407 :end' >>confcache
8408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8409 if test -w "$cache_file"; then
8410 test "x$cache_file" != "x/dev/null" &&
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8412 $as_echo "$as_me: updating cache $cache_file" >&6;}
8413 cat confcache >$cache_file
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8419 rm -f confcache
8421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8422 # Let make expand exec_prefix.
8423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8425 DEFS=-DHAVE_CONFIG_H
8427 ac_libobjs=
8428 ac_ltlibobjs=
8429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8430 # 1. Remove the extension, and $U if already installed.
8431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8434 # will be set to the directory where LIBOBJS objects are built.
8435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8437 done
8438 LIBOBJS=$ac_libobjs
8440 LTLIBOBJS=$ac_ltlibobjs
8443 if test -n "$EXEEXT"; then
8444 am__EXEEXT_TRUE=
8445 am__EXEEXT_FALSE='#'
8446 else
8447 am__EXEEXT_TRUE='#'
8448 am__EXEEXT_FALSE=
8451 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8452 as_fn_error "conditional \"AMDEP\" was never defined.
8453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8455 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8456 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8460 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8463 if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
8464 as_fn_error "conditional \"USE_NLS\" was never defined.
8465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8467 if test -z "${USE_COLOR_TRUE}" && test -z "${USE_COLOR_FALSE}"; then
8468 as_fn_error "conditional \"USE_COLOR\" was never defined.
8469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8471 if test -z "${USE_NANORC_TRUE}" && test -z "${USE_NANORC_FALSE}"; then
8472 as_fn_error "conditional \"USE_NANORC\" was never defined.
8473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8475 if test -z "${GROFF_HTML_TRUE}" && test -z "${GROFF_HTML_FALSE}"; then
8476 as_fn_error "conditional \"GROFF_HTML\" was never defined.
8477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8480 : ${CONFIG_STATUS=./config.status}
8481 ac_write_fail=0
8482 ac_clean_files_save=$ac_clean_files
8483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8486 as_write_fail=0
8487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8488 #! $SHELL
8489 # Generated by $as_me.
8490 # Run this file to recreate the current configuration.
8491 # Compiler output produced by configure, useful for debugging
8492 # configure, is in config.log if it exists.
8494 debug=false
8495 ac_cs_recheck=false
8496 ac_cs_silent=false
8498 SHELL=\${CONFIG_SHELL-$SHELL}
8499 export SHELL
8500 _ASEOF
8501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8502 ## -------------------- ##
8503 ## M4sh Initialization. ##
8504 ## -------------------- ##
8506 # Be more Bourne compatible
8507 DUALCASE=1; export DUALCASE # for MKS sh
8508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8509 emulate sh
8510 NULLCMD=:
8511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8512 # is contrary to our usage. Disable this feature.
8513 alias -g '${1+"$@"}'='"$@"'
8514 setopt NO_GLOB_SUBST
8515 else
8516 case `(set -o) 2>/dev/null` in #(
8517 *posix*) :
8518 set -o posix ;; #(
8519 *) :
8521 esac
8525 as_nl='
8527 export as_nl
8528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8532 # Prefer a ksh shell builtin over an external printf program on Solaris,
8533 # but without wasting forks for bash or zsh.
8534 if test -z "$BASH_VERSION$ZSH_VERSION" \
8535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8536 as_echo='print -r --'
8537 as_echo_n='print -rn --'
8538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8539 as_echo='printf %s\n'
8540 as_echo_n='printf %s'
8541 else
8542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8544 as_echo_n='/usr/ucb/echo -n'
8545 else
8546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8547 as_echo_n_body='eval
8548 arg=$1;
8549 case $arg in #(
8550 *"$as_nl"*)
8551 expr "X$arg" : "X\\(.*\\)$as_nl";
8552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8553 esac;
8554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8556 export as_echo_n_body
8557 as_echo_n='sh -c $as_echo_n_body as_echo'
8559 export as_echo_body
8560 as_echo='sh -c $as_echo_body as_echo'
8563 # The user is always right.
8564 if test "${PATH_SEPARATOR+set}" != set; then
8565 PATH_SEPARATOR=:
8566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8568 PATH_SEPARATOR=';'
8573 # IFS
8574 # We need space, tab and new line, in precisely that order. Quoting is
8575 # there to prevent editors from complaining about space-tab.
8576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8577 # splitting by setting IFS to empty value.)
8578 IFS=" "" $as_nl"
8580 # Find who we are. Look in the path if we contain no directory separator.
8581 case $0 in #((
8582 *[\\/]* ) as_myself=$0 ;;
8583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8589 done
8590 IFS=$as_save_IFS
8593 esac
8594 # We did not find ourselves, most probably we were run as `sh COMMAND'
8595 # in which case we are not to be found in the path.
8596 if test "x$as_myself" = x; then
8597 as_myself=$0
8599 if test ! -f "$as_myself"; then
8600 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8601 exit 1
8604 # Unset variables that we do not need and which cause bugs (e.g. in
8605 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8606 # suppresses any "Segmentation fault" message there. '((' could
8607 # trigger a bug in pdksh 5.2.14.
8608 for as_var in BASH_ENV ENV MAIL MAILPATH
8609 do eval test x\${$as_var+set} = xset \
8610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8611 done
8612 PS1='$ '
8613 PS2='> '
8614 PS4='+ '
8616 # NLS nuisances.
8617 LC_ALL=C
8618 export LC_ALL
8619 LANGUAGE=C
8620 export LANGUAGE
8622 # CDPATH.
8623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8626 # as_fn_error ERROR [LINENO LOG_FD]
8627 # ---------------------------------
8628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8630 # script with status $?, using 1 if that was 0.
8631 as_fn_error ()
8633 as_status=$?; test $as_status -eq 0 && as_status=1
8634 if test "$3"; then
8635 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8636 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8638 $as_echo "$as_me: error: $1" >&2
8639 as_fn_exit $as_status
8640 } # as_fn_error
8643 # as_fn_set_status STATUS
8644 # -----------------------
8645 # Set $? to STATUS, without forking.
8646 as_fn_set_status ()
8648 return $1
8649 } # as_fn_set_status
8651 # as_fn_exit STATUS
8652 # -----------------
8653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8654 as_fn_exit ()
8656 set +e
8657 as_fn_set_status $1
8658 exit $1
8659 } # as_fn_exit
8661 # as_fn_unset VAR
8662 # ---------------
8663 # Portably unset VAR.
8664 as_fn_unset ()
8666 { eval $1=; unset $1;}
8668 as_unset=as_fn_unset
8669 # as_fn_append VAR VALUE
8670 # ----------------------
8671 # Append the text in VALUE to the end of the definition contained in VAR. Take
8672 # advantage of any shell optimizations that allow amortized linear growth over
8673 # repeated appends, instead of the typical quadratic growth present in naive
8674 # implementations.
8675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8676 eval 'as_fn_append ()
8678 eval $1+=\$2
8680 else
8681 as_fn_append ()
8683 eval $1=\$$1\$2
8685 fi # as_fn_append
8687 # as_fn_arith ARG...
8688 # ------------------
8689 # Perform arithmetic evaluation on the ARGs, and store the result in the
8690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8691 # must be portable across $(()) and expr.
8692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8693 eval 'as_fn_arith ()
8695 as_val=$(( $* ))
8697 else
8698 as_fn_arith ()
8700 as_val=`expr "$@" || test $? -eq 1`
8702 fi # as_fn_arith
8705 if expr a : '\(a\)' >/dev/null 2>&1 &&
8706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8707 as_expr=expr
8708 else
8709 as_expr=false
8712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8713 as_basename=basename
8714 else
8715 as_basename=false
8718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8719 as_dirname=dirname
8720 else
8721 as_dirname=false
8724 as_me=`$as_basename -- "$0" ||
8725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8726 X"$0" : 'X\(//\)$' \| \
8727 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8728 $as_echo X/"$0" |
8729 sed '/^.*\/\([^/][^/]*\)\/*$/{
8730 s//\1/
8733 /^X\/\(\/\/\)$/{
8734 s//\1/
8737 /^X\/\(\/\).*/{
8738 s//\1/
8741 s/.*/./; q'`
8743 # Avoid depending upon Character Ranges.
8744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8747 as_cr_digits='0123456789'
8748 as_cr_alnum=$as_cr_Letters$as_cr_digits
8750 ECHO_C= ECHO_N= ECHO_T=
8751 case `echo -n x` in #(((((
8752 -n*)
8753 case `echo 'xy\c'` in
8754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8755 xy) ECHO_C='\c';;
8756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8757 ECHO_T=' ';;
8758 esac;;
8760 ECHO_N='-n';;
8761 esac
8763 rm -f conf$$ conf$$.exe conf$$.file
8764 if test -d conf$$.dir; then
8765 rm -f conf$$.dir/conf$$.file
8766 else
8767 rm -f conf$$.dir
8768 mkdir conf$$.dir 2>/dev/null
8770 if (echo >conf$$.file) 2>/dev/null; then
8771 if ln -s conf$$.file conf$$ 2>/dev/null; then
8772 as_ln_s='ln -s'
8773 # ... but there are two gotchas:
8774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8776 # In both cases, we have to default to `cp -p'.
8777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8778 as_ln_s='cp -p'
8779 elif ln conf$$.file conf$$ 2>/dev/null; then
8780 as_ln_s=ln
8781 else
8782 as_ln_s='cp -p'
8784 else
8785 as_ln_s='cp -p'
8787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8788 rmdir conf$$.dir 2>/dev/null
8791 # as_fn_mkdir_p
8792 # -------------
8793 # Create "$as_dir" as a directory, including parents if necessary.
8794 as_fn_mkdir_p ()
8797 case $as_dir in #(
8798 -*) as_dir=./$as_dir;;
8799 esac
8800 test -d "$as_dir" || eval $as_mkdir_p || {
8801 as_dirs=
8802 while :; do
8803 case $as_dir in #(
8804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8805 *) as_qdir=$as_dir;;
8806 esac
8807 as_dirs="'$as_qdir' $as_dirs"
8808 as_dir=`$as_dirname -- "$as_dir" ||
8809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8810 X"$as_dir" : 'X\(//\)[^/]' \| \
8811 X"$as_dir" : 'X\(//\)$' \| \
8812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8813 $as_echo X"$as_dir" |
8814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8815 s//\1/
8818 /^X\(\/\/\)[^/].*/{
8819 s//\1/
8822 /^X\(\/\/\)$/{
8823 s//\1/
8826 /^X\(\/\).*/{
8827 s//\1/
8830 s/.*/./; q'`
8831 test -d "$as_dir" && break
8832 done
8833 test -z "$as_dirs" || eval "mkdir $as_dirs"
8834 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8837 } # as_fn_mkdir_p
8838 if mkdir -p . 2>/dev/null; then
8839 as_mkdir_p='mkdir -p "$as_dir"'
8840 else
8841 test -d ./-p && rmdir ./-p
8842 as_mkdir_p=false
8845 if test -x / >/dev/null 2>&1; then
8846 as_test_x='test -x'
8847 else
8848 if ls -dL / >/dev/null 2>&1; then
8849 as_ls_L_option=L
8850 else
8851 as_ls_L_option=
8853 as_test_x='
8854 eval sh -c '\''
8855 if test -d "$1"; then
8856 test -d "$1/.";
8857 else
8858 case $1 in #(
8859 -*)set "./$1";;
8860 esac;
8861 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8862 ???[sx]*):;;*)false;;esac;fi
8863 '\'' sh
8866 as_executable_p=$as_test_x
8868 # Sed expression to map a string onto a valid CPP name.
8869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8871 # Sed expression to map a string onto a valid variable name.
8872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8875 exec 6>&1
8876 ## ----------------------------------- ##
8877 ## Main body of $CONFIG_STATUS script. ##
8878 ## ----------------------------------- ##
8879 _ASEOF
8880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8883 # Save the log message, to keep $0 and so on meaningful, and to
8884 # report actual input values of CONFIG_FILES etc. instead of their
8885 # values after options handling.
8886 ac_log="
8887 This file was extended by GNU nano $as_me 2.2.6, which was
8888 generated by GNU Autoconf 2.65. Invocation command line was
8890 CONFIG_FILES = $CONFIG_FILES
8891 CONFIG_HEADERS = $CONFIG_HEADERS
8892 CONFIG_LINKS = $CONFIG_LINKS
8893 CONFIG_COMMANDS = $CONFIG_COMMANDS
8894 $ $0 $@
8896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8899 _ACEOF
8901 case $ac_config_files in *"
8902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8903 esac
8905 case $ac_config_headers in *"
8906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8907 esac
8910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8911 # Files that config.status was made for.
8912 config_files="$ac_config_files"
8913 config_headers="$ac_config_headers"
8914 config_commands="$ac_config_commands"
8916 _ACEOF
8918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8919 ac_cs_usage="\
8920 \`$as_me' instantiates files and other configuration actions
8921 from templates according to the current configuration. Unless the files
8922 and actions are specified as TAGs, all are instantiated by default.
8924 Usage: $0 [OPTION]... [TAG]...
8926 -h, --help print this help, then exit
8927 -V, --version print version number and configuration settings, then exit
8928 --config print configuration, then exit
8929 -q, --quiet, --silent
8930 do not print progress messages
8931 -d, --debug don't remove temporary files
8932 --recheck update $as_me by reconfiguring in the same conditions
8933 --file=FILE[:TEMPLATE]
8934 instantiate the configuration file FILE
8935 --header=FILE[:TEMPLATE]
8936 instantiate the configuration header FILE
8938 Configuration files:
8939 $config_files
8941 Configuration headers:
8942 $config_headers
8944 Configuration commands:
8945 $config_commands
8947 Report bugs to <nano-devel@gnu.org>.
8948 GNU nano home page: <http://www.gnu.org/software/nano/>.
8949 General help using GNU software: <http://www.gnu.org/gethelp/>."
8951 _ACEOF
8952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8954 ac_cs_version="\\
8955 GNU nano config.status 2.2.6
8956 configured by $0, generated by GNU Autoconf 2.65,
8957 with options \\"\$ac_cs_config\\"
8959 Copyright (C) 2009 Free Software Foundation, Inc.
8960 This config.status script is free software; the Free Software Foundation
8961 gives unlimited permission to copy, distribute and modify it."
8963 ac_pwd='$ac_pwd'
8964 srcdir='$srcdir'
8965 INSTALL='$INSTALL'
8966 MKDIR_P='$MKDIR_P'
8967 AWK='$AWK'
8968 test -n "\$AWK" || AWK=awk
8969 _ACEOF
8971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8972 # The default lists apply if the user does not specify any file.
8973 ac_need_defaults=:
8974 while test $# != 0
8976 case $1 in
8977 --*=*)
8978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8980 ac_shift=:
8983 ac_option=$1
8984 ac_optarg=$2
8985 ac_shift=shift
8987 esac
8989 case $ac_option in
8990 # Handling of the options.
8991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8992 ac_cs_recheck=: ;;
8993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8994 $as_echo "$ac_cs_version"; exit ;;
8995 --config | --confi | --conf | --con | --co | --c )
8996 $as_echo "$ac_cs_config"; exit ;;
8997 --debug | --debu | --deb | --de | --d | -d )
8998 debug=: ;;
8999 --file | --fil | --fi | --f )
9000 $ac_shift
9001 case $ac_optarg in
9002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9003 esac
9004 as_fn_append CONFIG_FILES " '$ac_optarg'"
9005 ac_need_defaults=false;;
9006 --header | --heade | --head | --hea )
9007 $ac_shift
9008 case $ac_optarg in
9009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9010 esac
9011 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9012 ac_need_defaults=false;;
9013 --he | --h)
9014 # Conflict between --help and --header
9015 as_fn_error "ambiguous option: \`$1'
9016 Try \`$0 --help' for more information.";;
9017 --help | --hel | -h )
9018 $as_echo "$ac_cs_usage"; exit ;;
9019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9021 ac_cs_silent=: ;;
9023 # This is an error.
9024 -*) as_fn_error "unrecognized option: \`$1'
9025 Try \`$0 --help' for more information." ;;
9027 *) as_fn_append ac_config_targets " $1"
9028 ac_need_defaults=false ;;
9030 esac
9031 shift
9032 done
9034 ac_configure_extra_args=
9036 if $ac_cs_silent; then
9037 exec 6>/dev/null
9038 ac_configure_extra_args="$ac_configure_extra_args --silent"
9041 _ACEOF
9042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9043 if \$ac_cs_recheck; then
9044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9045 shift
9046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9047 CONFIG_SHELL='$SHELL'
9048 export CONFIG_SHELL
9049 exec "\$@"
9052 _ACEOF
9053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9054 exec 5>>config.log
9056 echo
9057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9058 ## Running $as_me. ##
9059 _ASBOX
9060 $as_echo "$ac_log"
9061 } >&5
9063 _ACEOF
9064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9066 # INIT-COMMANDS
9068 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9069 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9070 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9071 # from automake.
9072 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9073 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9074 LINGUAS="${LINGUAS-%UNSET%}"
9077 _ACEOF
9079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9081 # Handling of arguments.
9082 for ac_config_target in $ac_config_targets
9084 case $ac_config_target in
9085 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9086 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9087 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9088 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9089 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9090 "doc/nanorc.sample") CONFIG_FILES="$CONFIG_FILES doc/nanorc.sample" ;;
9091 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
9092 "doc/man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/fr/Makefile" ;;
9093 "doc/syntax/Makefile") CONFIG_FILES="$CONFIG_FILES doc/syntax/Makefile" ;;
9094 "doc/texinfo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/texinfo/Makefile" ;;
9095 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9096 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9097 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9098 "nano.spec") CONFIG_FILES="$CONFIG_FILES nano.spec" ;;
9100 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9101 esac
9102 done
9105 # If the user did not use the arguments to specify the items to instantiate,
9106 # then the envvar interface is used. Set only those that are not.
9107 # We use the long form for the default assignment because of an extremely
9108 # bizarre bug on SunOS 4.1.3.
9109 if $ac_need_defaults; then
9110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9115 # Have a temporary directory for convenience. Make it in the build tree
9116 # simply because there is no reason against having it here, and in addition,
9117 # creating and moving files from /tmp can sometimes cause problems.
9118 # Hook for its removal unless debugging.
9119 # Note that there is a small window in which the directory will not be cleaned:
9120 # after its creation but before its name has been assigned to `$tmp'.
9121 $debug ||
9123 tmp=
9124 trap 'exit_status=$?
9125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9127 trap 'as_fn_exit 1' 1 2 13 15
9129 # Create a (secure) tmp directory for tmp files.
9132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9133 test -n "$tmp" && test -d "$tmp"
9134 } ||
9136 tmp=./conf$$-$RANDOM
9137 (umask 077 && mkdir "$tmp")
9138 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9140 # Set up the scripts for CONFIG_FILES section.
9141 # No need to generate them if there are no CONFIG_FILES.
9142 # This happens for instance with `./config.status config.h'.
9143 if test -n "$CONFIG_FILES"; then
9146 ac_cr=`echo X | tr X '\015'`
9147 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9148 # But we know of no other shell where ac_cr would be empty at this
9149 # point, so we can use a bashism as a fallback.
9150 if test "x$ac_cr" = x; then
9151 eval ac_cr=\$\'\\r\'
9153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9155 ac_cs_awk_cr='\r'
9156 else
9157 ac_cs_awk_cr=$ac_cr
9160 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9161 _ACEOF
9165 echo "cat >conf$$subs.awk <<_ACEOF" &&
9166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9167 echo "_ACEOF"
9168 } >conf$$subs.sh ||
9169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9171 ac_delim='%!_!# '
9172 for ac_last_try in false false false false false :; do
9173 . ./conf$$subs.sh ||
9174 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9177 if test $ac_delim_n = $ac_delim_num; then
9178 break
9179 elif $ac_last_try; then
9180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9181 else
9182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9184 done
9185 rm -f conf$$subs.sh
9187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9188 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9189 _ACEOF
9190 sed -n '
9192 s/^/S["/; s/!.*/"]=/
9195 s/^[^!]*!//
9196 :repl
9197 t repl
9198 s/'"$ac_delim"'$//
9199 t delim
9202 s/\(.\{148\}\)..*/\1/
9203 t more1
9204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9207 b repl
9208 :more1
9209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9212 s/.\{148\}//
9213 t nl
9214 :delim
9216 s/\(.\{148\}\)..*/\1/
9217 t more2
9218 s/["\\]/\\&/g; s/^/"/; s/$/"/
9221 :more2
9222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9225 s/.\{148\}//
9226 t delim
9227 ' <conf$$subs.awk | sed '
9228 /^[^""]/{
9230 s/\n//
9232 ' >>$CONFIG_STATUS || ac_write_fail=1
9233 rm -f conf$$subs.awk
9234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9235 _ACAWK
9236 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9237 for (key in S) S_is_set[key] = 1
9238 FS = "\a"
9242 line = $ 0
9243 nfields = split(line, field, "@")
9244 substed = 0
9245 len = length(field[1])
9246 for (i = 2; i < nfields; i++) {
9247 key = field[i]
9248 keylen = length(key)
9249 if (S_is_set[key]) {
9250 value = S[key]
9251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9252 len += length(value) + length(field[++i])
9253 substed = 1
9254 } else
9255 len += 1 + keylen
9258 print line
9261 _ACAWK
9262 _ACEOF
9263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9264 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9265 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9266 else
9268 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9269 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9270 _ACEOF
9272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9274 # trailing colons and then remove the whole line if VPATH becomes empty
9275 # (actually we leave an empty line to preserve line numbers).
9276 if test "x$srcdir" = x.; then
9277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9278 s/:*\$(srcdir):*/:/
9279 s/:*\${srcdir}:*/:/
9280 s/:*@srcdir@:*/:/
9281 s/^\([^=]*=[ ]*\):*/\1/
9282 s/:*$//
9283 s/^[^=]*=[ ]*$//
9287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9288 fi # test -n "$CONFIG_FILES"
9290 # Set up the scripts for CONFIG_HEADERS section.
9291 # No need to generate them if there are no CONFIG_HEADERS.
9292 # This happens for instance with `./config.status Makefile'.
9293 if test -n "$CONFIG_HEADERS"; then
9294 cat >"$tmp/defines.awk" <<\_ACAWK ||
9295 BEGIN {
9296 _ACEOF
9298 # Transform confdefs.h into an awk script `defines.awk', embedded as
9299 # here-document in config.status, that substitutes the proper values into
9300 # config.h.in to produce config.h.
9302 # Create a delimiter string that does not exist in confdefs.h, to ease
9303 # handling of long lines.
9304 ac_delim='%!_!# '
9305 for ac_last_try in false false :; do
9306 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9307 if test -z "$ac_t"; then
9308 break
9309 elif $ac_last_try; then
9310 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9311 else
9312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9314 done
9316 # For the awk script, D is an array of macro values keyed by name,
9317 # likewise P contains macro parameters if any. Preserve backslash
9318 # newline sequences.
9320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9321 sed -n '
9322 s/.\{148\}/&'"$ac_delim"'/g
9323 t rset
9324 :rset
9325 s/^[ ]*#[ ]*define[ ][ ]*/ /
9326 t def
9328 :def
9329 s/\\$//
9330 t bsnl
9331 s/["\\]/\\&/g
9332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9333 D["\1"]=" \3"/p
9334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9336 :bsnl
9337 s/["\\]/\\&/g
9338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9339 D["\1"]=" \3\\\\\\n"\\/p
9340 t cont
9341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9342 t cont
9344 :cont
9346 s/.\{148\}/&'"$ac_delim"'/g
9347 t clear
9348 :clear
9349 s/\\$//
9350 t bsnlc
9351 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9353 :bsnlc
9354 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9355 b cont
9356 ' <confdefs.h | sed '
9357 s/'"$ac_delim"'/"\\\
9358 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9361 for (key in D) D_is_set[key] = 1
9362 FS = "\a"
9364 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9365 line = \$ 0
9366 split(line, arg, " ")
9367 if (arg[1] == "#") {
9368 defundef = arg[2]
9369 mac1 = arg[3]
9370 } else {
9371 defundef = substr(arg[1], 2)
9372 mac1 = arg[2]
9374 split(mac1, mac2, "(") #)
9375 macro = mac2[1]
9376 prefix = substr(line, 1, index(line, defundef) - 1)
9377 if (D_is_set[macro]) {
9378 # Preserve the white space surrounding the "#".
9379 print prefix "define", macro P[macro] D[macro]
9380 next
9381 } else {
9382 # Replace #undef with comments. This is necessary, for example,
9383 # in the case of _POSIX_SOURCE, which is predefined and required
9384 # on some systems where configure will not decide to define it.
9385 if (defundef == "undef") {
9386 print "/*", prefix defundef, macro, "*/"
9387 next
9391 { print }
9392 _ACAWK
9393 _ACEOF
9394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9395 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9396 fi # test -n "$CONFIG_HEADERS"
9399 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9400 shift
9401 for ac_tag
9403 case $ac_tag in
9404 :[FHLC]) ac_mode=$ac_tag; continue;;
9405 esac
9406 case $ac_mode$ac_tag in
9407 :[FHL]*:*);;
9408 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9409 :[FH]-) ac_tag=-:-;;
9410 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9411 esac
9412 ac_save_IFS=$IFS
9413 IFS=:
9414 set x $ac_tag
9415 IFS=$ac_save_IFS
9416 shift
9417 ac_file=$1
9418 shift
9420 case $ac_mode in
9421 :L) ac_source=$1;;
9422 :[FH])
9423 ac_file_inputs=
9424 for ac_f
9426 case $ac_f in
9427 -) ac_f="$tmp/stdin";;
9428 *) # Look for the file first in the build tree, then in the source tree
9429 # (if the path is not absolute). The absolute path cannot be DOS-style,
9430 # because $ac_f cannot contain `:'.
9431 test -f "$ac_f" ||
9432 case $ac_f in
9433 [\\/$]*) false;;
9434 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9435 esac ||
9436 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9437 esac
9438 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9439 as_fn_append ac_file_inputs " '$ac_f'"
9440 done
9442 # Let's still pretend it is `configure' which instantiates (i.e., don't
9443 # use $as_me), people would be surprised to read:
9444 # /* config.h. Generated by config.status. */
9445 configure_input='Generated from '`
9446 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9447 `' by configure.'
9448 if test x"$ac_file" != x-; then
9449 configure_input="$ac_file. $configure_input"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9451 $as_echo "$as_me: creating $ac_file" >&6;}
9453 # Neutralize special characters interpreted by sed in replacement strings.
9454 case $configure_input in #(
9455 *\&* | *\|* | *\\* )
9456 ac_sed_conf_input=`$as_echo "$configure_input" |
9457 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9458 *) ac_sed_conf_input=$configure_input;;
9459 esac
9461 case $ac_tag in
9462 *:-:* | *:-) cat >"$tmp/stdin" \
9463 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9464 esac
9466 esac
9468 ac_dir=`$as_dirname -- "$ac_file" ||
9469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9470 X"$ac_file" : 'X\(//\)[^/]' \| \
9471 X"$ac_file" : 'X\(//\)$' \| \
9472 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9473 $as_echo X"$ac_file" |
9474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9475 s//\1/
9478 /^X\(\/\/\)[^/].*/{
9479 s//\1/
9482 /^X\(\/\/\)$/{
9483 s//\1/
9486 /^X\(\/\).*/{
9487 s//\1/
9490 s/.*/./; q'`
9491 as_dir="$ac_dir"; as_fn_mkdir_p
9492 ac_builddir=.
9494 case "$ac_dir" in
9495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9498 # A ".." for each directory in $ac_dir_suffix.
9499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9500 case $ac_top_builddir_sub in
9501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9503 esac ;;
9504 esac
9505 ac_abs_top_builddir=$ac_pwd
9506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9507 # for backward compatibility:
9508 ac_top_builddir=$ac_top_build_prefix
9510 case $srcdir in
9511 .) # We are building in place.
9512 ac_srcdir=.
9513 ac_top_srcdir=$ac_top_builddir_sub
9514 ac_abs_top_srcdir=$ac_pwd ;;
9515 [\\/]* | ?:[\\/]* ) # Absolute name.
9516 ac_srcdir=$srcdir$ac_dir_suffix;
9517 ac_top_srcdir=$srcdir
9518 ac_abs_top_srcdir=$srcdir ;;
9519 *) # Relative name.
9520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9521 ac_top_srcdir=$ac_top_build_prefix$srcdir
9522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9523 esac
9524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9527 case $ac_mode in
9530 # CONFIG_FILE
9533 case $INSTALL in
9534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9535 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9536 esac
9537 ac_MKDIR_P=$MKDIR_P
9538 case $MKDIR_P in
9539 [\\/$]* | ?:[\\/]* ) ;;
9540 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9541 esac
9542 _ACEOF
9544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9545 # If the template does not know about datarootdir, expand it.
9546 # FIXME: This hack should be removed a few years after 2.60.
9547 ac_datarootdir_hack=; ac_datarootdir_seen=
9548 ac_sed_dataroot='
9549 /datarootdir/ {
9553 /@datadir@/p
9554 /@docdir@/p
9555 /@infodir@/p
9556 /@localedir@/p
9557 /@mandir@/p'
9558 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9559 *datarootdir*) ac_datarootdir_seen=yes;;
9560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9562 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9563 _ACEOF
9564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9565 ac_datarootdir_hack='
9566 s&@datadir@&$datadir&g
9567 s&@docdir@&$docdir&g
9568 s&@infodir@&$infodir&g
9569 s&@localedir@&$localedir&g
9570 s&@mandir@&$mandir&g
9571 s&\\\${datarootdir}&$datarootdir&g' ;;
9572 esac
9573 _ACEOF
9575 # Neutralize VPATH when `$srcdir' = `.'.
9576 # Shell code in configure.ac might set extrasub.
9577 # FIXME: do we really want to maintain this feature?
9578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9579 ac_sed_extra="$ac_vpsub
9580 $extrasub
9581 _ACEOF
9582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9585 s|@configure_input@|$ac_sed_conf_input|;t t
9586 s&@top_builddir@&$ac_top_builddir_sub&;t t
9587 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9588 s&@srcdir@&$ac_srcdir&;t t
9589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9590 s&@top_srcdir@&$ac_top_srcdir&;t t
9591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9592 s&@builddir@&$ac_builddir&;t t
9593 s&@abs_builddir@&$ac_abs_builddir&;t t
9594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9595 s&@INSTALL@&$ac_INSTALL&;t t
9596 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9597 $ac_datarootdir_hack
9599 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9600 || as_fn_error "could not create $ac_file" "$LINENO" 5
9602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9606 which seems to be undefined. Please make sure it is defined." >&5
9607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9608 which seems to be undefined. Please make sure it is defined." >&2;}
9610 rm -f "$tmp/stdin"
9611 case $ac_file in
9612 -) cat "$tmp/out" && rm -f "$tmp/out";;
9613 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9614 esac \
9615 || as_fn_error "could not create $ac_file" "$LINENO" 5
9619 # CONFIG_HEADER
9621 if test x"$ac_file" != x-; then
9623 $as_echo "/* $configure_input */" \
9624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9625 } >"$tmp/config.h" \
9626 || as_fn_error "could not create $ac_file" "$LINENO" 5
9627 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9630 else
9631 rm -f "$ac_file"
9632 mv "$tmp/config.h" "$ac_file" \
9633 || as_fn_error "could not create $ac_file" "$LINENO" 5
9635 else
9636 $as_echo "/* $configure_input */" \
9637 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9638 || as_fn_error "could not create -" "$LINENO" 5
9640 # Compute "$ac_file"'s index in $config_headers.
9641 _am_arg="$ac_file"
9642 _am_stamp_count=1
9643 for _am_header in $config_headers :; do
9644 case $_am_header in
9645 $_am_arg | $_am_arg:* )
9646 break ;;
9648 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9649 esac
9650 done
9651 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9652 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9653 X"$_am_arg" : 'X\(//\)[^/]' \| \
9654 X"$_am_arg" : 'X\(//\)$' \| \
9655 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9656 $as_echo X"$_am_arg" |
9657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9658 s//\1/
9661 /^X\(\/\/\)[^/].*/{
9662 s//\1/
9665 /^X\(\/\/\)$/{
9666 s//\1/
9669 /^X\(\/\).*/{
9670 s//\1/
9673 s/.*/./; q'`/stamp-h$_am_stamp_count
9676 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9677 $as_echo "$as_me: executing $ac_file commands" >&6;}
9679 esac
9682 case $ac_file$ac_mode in
9683 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9684 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9685 # are listed without --file. Let's play safe and only enable the eval
9686 # if we detect the quoting.
9687 case $CONFIG_FILES in
9688 *\'*) eval set x "$CONFIG_FILES" ;;
9689 *) set x $CONFIG_FILES ;;
9690 esac
9691 shift
9692 for mf
9694 # Strip MF so we end up with the name of the file.
9695 mf=`echo "$mf" | sed -e 's/:.*$//'`
9696 # Check whether this is an Automake generated Makefile or not.
9697 # We used to match only the files named `Makefile.in', but
9698 # some people rename them; so instead we look at the file content.
9699 # Grep'ing the first line is not enough: some people post-process
9700 # each Makefile.in and add a new line on top of each file to say so.
9701 # Grep'ing the whole file is not good either: AIX grep has a line
9702 # limit of 2048, but all sed's we know have understand at least 4000.
9703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9704 dirpart=`$as_dirname -- "$mf" ||
9705 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9706 X"$mf" : 'X\(//\)[^/]' \| \
9707 X"$mf" : 'X\(//\)$' \| \
9708 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9709 $as_echo X"$mf" |
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9711 s//\1/
9714 /^X\(\/\/\)[^/].*/{
9715 s//\1/
9718 /^X\(\/\/\)$/{
9719 s//\1/
9722 /^X\(\/\).*/{
9723 s//\1/
9726 s/.*/./; q'`
9727 else
9728 continue
9730 # Extract the definition of DEPDIR, am__include, and am__quote
9731 # from the Makefile without running `make'.
9732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9733 test -z "$DEPDIR" && continue
9734 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9735 test -z "am__include" && continue
9736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9737 # When using ansi2knr, U may be empty or an underscore; expand it
9738 U=`sed -n 's/^U = //p' < "$mf"`
9739 # Find all dependency output files, they are included files with
9740 # $(DEPDIR) in their names. We invoke sed twice because it is the
9741 # simplest approach to changing $(DEPDIR) to its actual value in the
9742 # expansion.
9743 for file in `sed -n "
9744 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9745 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9746 # Make sure the directory exists.
9747 test -f "$dirpart/$file" && continue
9748 fdir=`$as_dirname -- "$file" ||
9749 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9750 X"$file" : 'X\(//\)[^/]' \| \
9751 X"$file" : 'X\(//\)$' \| \
9752 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9753 $as_echo X"$file" |
9754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9755 s//\1/
9758 /^X\(\/\/\)[^/].*/{
9759 s//\1/
9762 /^X\(\/\/\)$/{
9763 s//\1/
9766 /^X\(\/\).*/{
9767 s//\1/
9770 s/.*/./; q'`
9771 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9772 # echo "creating $dirpart/$file"
9773 echo '# dummy' > "$dirpart/$file"
9774 done
9775 done
9778 "default-1":C)
9779 for ac_file in $CONFIG_FILES; do
9780 # Support "outfile[:infile[:infile...]]"
9781 case "$ac_file" in
9782 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9783 esac
9784 # PO directories have a Makefile.in generated from Makefile.in.in.
9785 case "$ac_file" in */Makefile.in)
9786 # Adjust a relative srcdir.
9787 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9788 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9789 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9790 # In autoconf-2.13 it is called $ac_given_srcdir.
9791 # In autoconf-2.50 it is called $srcdir.
9792 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9793 case "$ac_given_srcdir" in
9794 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9795 /*) top_srcdir="$ac_given_srcdir" ;;
9796 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9797 esac
9798 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9799 rm -f "$ac_dir/POTFILES"
9800 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9801 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9802 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9803 # on $ac_dir but don't depend on user-specified configuration
9804 # parameters.
9805 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9806 # The LINGUAS file contains the set of available languages.
9807 if test -n "$ALL_LINGUAS"; then
9808 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9810 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9811 # Hide the ALL_LINGUAS assigment from automake.
9812 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9814 case "$ac_given_srcdir" in
9815 .) srcdirpre= ;;
9816 *) srcdirpre='$(srcdir)/' ;;
9817 esac
9818 POFILES=
9819 GMOFILES=
9820 UPDATEPOFILES=
9821 DUMMYPOFILES=
9822 for lang in $ALL_LINGUAS; do
9823 POFILES="$POFILES $srcdirpre$lang.po"
9824 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9825 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9826 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9827 done
9828 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9829 # environment variable.
9830 INST_LINGUAS=
9831 if test -n "$ALL_LINGUAS"; then
9832 for presentlang in $ALL_LINGUAS; do
9833 useit=no
9834 if test "%UNSET%" != "$LINGUAS"; then
9835 desiredlanguages="$LINGUAS"
9836 else
9837 desiredlanguages="$ALL_LINGUAS"
9839 for desiredlang in $desiredlanguages; do
9840 # Use the presentlang catalog if desiredlang is
9841 # a. equal to presentlang, or
9842 # b. a variant of presentlang (because in this case,
9843 # presentlang can be used as a fallback for messages
9844 # which are not translated in the desiredlang catalog).
9845 case "$desiredlang" in
9846 "$presentlang"*) useit=yes;;
9847 esac
9848 done
9849 if test $useit = yes; then
9850 INST_LINGUAS="$INST_LINGUAS $presentlang"
9852 done
9854 CATALOGS=
9855 if test -n "$INST_LINGUAS"; then
9856 for lang in $INST_LINGUAS; do
9857 CATALOGS="$CATALOGS $lang.gmo"
9858 done
9860 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9861 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9862 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9863 if test -f "$f"; then
9864 case "$f" in
9865 *.orig | *.bak | *~) ;;
9866 *) cat "$f" >> "$ac_dir/Makefile" ;;
9867 esac
9869 done
9872 esac
9873 done ;;
9875 esac
9876 done # for ac_tag
9879 as_fn_exit 0
9880 _ACEOF
9881 ac_clean_files=$ac_clean_files_save
9883 test $ac_write_fail = 0 ||
9884 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9887 # configure is writing to config.log, and then calls config.status.
9888 # config.status does its own redirection, appending to config.log.
9889 # Unfortunately, on DOS this fails, as config.log is still kept open
9890 # by configure, so config.status won't be able to write to it; its
9891 # output is simply discarded. So we exec the FD to /dev/null,
9892 # effectively closing config.log, so it can be properly (re)opened and
9893 # appended to by config.status. When coming back to configure, we
9894 # need to make the FD available again.
9895 if test "$no_create" != yes; then
9896 ac_cs_success=:
9897 ac_config_status_args=
9898 test "$silent" = yes &&
9899 ac_config_status_args="$ac_config_status_args --quiet"
9900 exec 5>/dev/null
9901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9902 exec 5>>config.log
9903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9904 # would make configure fail if this is the last instruction.
9905 $ac_cs_success || as_fn_exit $?
9907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}