ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.40
Committed: Sun Aug 10 10:35:26 2008 UTC (16 years, 3 months ago) by pcg
Branch: MAIN
CVS Tags: rel-2_2
Changes since 1.39: +4 -23 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/gvpe.C"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 INSTALL_PROGRAM
666 INSTALL_SCRIPT
667 INSTALL_DATA
668 CYGPATH_W
669 PACKAGE
670 VERSION
671 ACLOCAL
672 AUTOCONF
673 AUTOMAKE
674 AUTOHEADER
675 MAKEINFO
676 AMTAR
677 install_sh
678 STRIP
679 INSTALL_STRIP_PROGRAM
680 AWK
681 SET_MAKE
682 am__leading_dot
683 MAINTAINER_MODE_TRUE
684 MAINTAINER_MODE_FALSE
685 MAINT
686 MKINSTALLDIRS
687 MSGFMT
688 GMSGFMT
689 XGETTEXT
690 MSGMERGE
691 CC
692 CFLAGS
693 LDFLAGS
694 CPPFLAGS
695 ac_ct_CC
696 EXEEXT
697 OBJEXT
698 DEPDIR
699 am__include
700 am__quote
701 AMDEP_TRUE
702 AMDEP_FALSE
703 AMDEPBACKSLASH
704 CCDEPMODE
705 am__fastdepCC_TRUE
706 am__fastdepCC_FALSE
707 USE_NLS
708 LIBICONV
709 LTLIBICONV
710 INTLLIBS
711 LIBINTL
712 LTLIBINTL
713 POSUB
714 CPP
715 CXX
716 CXXFLAGS
717 ac_ct_CXX
718 CXXDEPMODE
719 am__fastdepCXX_TRUE
720 am__fastdepCXX_FALSE
721 GREP
722 EGREP
723 LN_S
724 RANLIB
725 IFTYPE
726 IFSUBTYPE
727 CXXCPP
728 ALLOCA
729 LINUX_IF_TUN_H
730 HAVE_TUNTAP
731 LDFLAGS_DAEMON
732 ROHC_TRUE
733 ROHC_FALSE
734 INCLUDES
735 LIBOBJS
736 LTLIBOBJS'
737 ac_subst_files=''
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 CXX
748 CXXFLAGS
749 CCC
750 CXXCPP'
751
752
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
808 fi
809
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=no ;;
861
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
866
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
871
872 -enable-* | --enable-*)
873 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_$ac_feature=\$ac_optarg ;;
880
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
889
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
893
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
900
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
905
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
911
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
918
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
923
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
928
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
935
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
940
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
947
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
952
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
956
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
960
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
964
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
973
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
978
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
985
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
992
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1009
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1014
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1019
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1023
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1029
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1040
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1045
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1050
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1057
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1062
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1065
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1068
1069 -with-* | --with-*)
1070 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=\$ac_optarg ;;
1077
1078 -without-* | --without-*)
1079 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_$ac_package=no ;;
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1108 ;;
1109
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 ;;
1126
1127 esac
1128 done
1129
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1134 fi
1135
1136 # Be sure to have absolute directory names.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1141 do
1142 eval ac_val=\$$ac_var
1143 case $ac_val in
1144 [\\/$]* | ?:[\\/]* ) continue;;
1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 esac
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1149 done
1150
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1154 build=$build_alias
1155 host=$host_alias
1156 target=$target_alias
1157
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160 if test "x$build_alias" = x; then
1161 cross_compiling=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1165 cross_compiling=yes
1166 fi
1167 fi
1168
1169 ac_tool_prefix=
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171
1172 test "$silent" = yes && exec 6>/dev/null
1173
1174
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1183
1184
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 echo X"$0" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\/\)[^/].*/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)$/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\).*/{
1208 s//\1/
1209 q
1210 }
1211 s/.*/./; q'`
1212 srcdir=$ac_confdir
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 srcdir=..
1215 fi
1216 else
1217 ac_srcdir_defaulted=no
1218 fi
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1223 fi
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1232 fi
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1245
1246 #
1247 # Report the --help message.
1248 #
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures this package to adapt to many kinds of systems.
1254
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1256
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1259
1260 Defaults for the options are specified in brackets.
1261
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1278
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1283
1284 For better control, use the options below.
1285
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1307
1308 cat <<\_ACEOF
1309
1310 Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314
1315 System types:
1316 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318 --target=TARGET configure for building compilers for TARGET [HOST]
1319 _ACEOF
1320 fi
1321
1322 if test -n "$ac_init_help"; then
1323
1324 cat <<\_ACEOF
1325
1326 Optional Features:
1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 --enable-maintainer-mode enable make rules and dependencies not useful
1330 (and sometimes confusing) to the casual installer
1331 --disable-dependency-tracking Speeds up one-time builds
1332 --enable-dependency-tracking Do not reject slow dependency extractors
1333 --disable-rpath do not hardcode runtime library paths
1334 --disable-nls do not use Native Language Support
1335 --enable-iftype=TYPE/SUBTYPE
1336 Use kernel/net device interface TYPE/SUBTYPE.
1337 Working combinations are (see doc/gvpe.osdep.5.pod):
1338 "native/linux" "tincd/linux" "tincd/netbsd"
1339 "tincd/freebsd" "tincd/openbsd" "native/darwin"
1340 "tincd/darwin" "native/cygwin"; Untested
1341 combinations are: "tincd/bsd" "tincd/solaris"
1342 "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
1343 Broken combinations are: "tincd/cygwin"; The default
1344 is to autodetect.
1345 --enable-static-daemon enable statically linked daemon.
1346 --enable-icmp enable icmp protocol support (default disabled).
1347 --enable-tcp enable tcp protocol support (default disabled).
1348 --enable-dns enable dns tunnel protocol support (DOES NOT WORK).
1349 --enable-http-proxy enable http proxy connect support (default
1350 disabled).
1351 --enable-hmac-length=BYTES
1352 use a hmac of length BYTES bytes (default 12).
1353 Allowed values are 4, 8, 12, 16.
1354 --enable-rand-length=BYTES
1355 use BYTES bytes of extra randomness (default 8).
1356 Allowed values are 0, 4, 8.
1357 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1358 Use 9100 for jumbogram support.
1359 --disable-compression Disable compression support.
1360 --enable-cipher Select the symmetric cipher (default "aes-128").
1361 Must be one of "bf" (blowfish), "aes-128"
1362 (rijndael), "aes-192" or "aes-256".
1363 --enable-digest Select the digest algorithm to use (default
1364 "ripemd160"). Must be one of "sha512", "sha256",
1365 "sha1", "ripemd160", "md5" or "md4" (insecure).
1366
1367 Optional Packages:
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-gnu-ld assume the C compiler uses GNU ld default=no
1371 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1372 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1373 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1374 --without-libintl-prefix don't search for libintl in includedir and libdir
1375 --with-kernel=dir give the directory with kernel sources
1376 (default: /usr/src/linux)
1377 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1378 --with-openssl-lib=DIR OpenSSL library directory
1379
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1389 CXX C++ compiler command
1390 CXXFLAGS C++ compiler flags
1391 CXXCPP C++ preprocessor
1392
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1395
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1404 ac_builddir=.
1405
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1421
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 configure
1457 generated by GNU Autoconf 2.61
1458
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464 exit
1465 fi
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1469
1470 It was created by $as_me, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1472
1473 $ $0 $@
1474
1475 _ACEOF
1476 exec 5>>config.log
1477 {
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1482
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1491
1492 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1493 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1496 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1497 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1498 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1499
1500 _ASUNAME
1501
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1510
1511 } >&5
1512
1513 cat >&5 <<_ACEOF
1514
1515
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1519
1520 _ACEOF
1521
1522
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1533 do
1534 for ac_arg
1535 do
1536 case $ac_arg in
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1540 continue ;;
1541 *\'*)
1542 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 esac
1544 case $ac_pass in
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546 2)
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1550 else
1551 case $ac_arg in
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 esac
1559 ;;
1560 -* ) ac_must_keep_next=true ;;
1561 esac
1562 fi
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 ;;
1565 esac
1566 done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1578 {
1579 echo
1580
1581 cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586 echo
1587 # The following way of writing the cache mishandles newlines in values,
1588 (
1589 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in #(
1592 *${as_nl}*)
1593 case $ac_var in #(
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 esac
1597 case $ac_var in #(
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1600 esac ;;
1601 esac
1602 done
1603 (set) 2>&1 |
1604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1606 sed -n \
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 ;; #(
1610 *)
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612 ;;
1613 esac |
1614 sort
1615 )
1616 echo
1617
1618 cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_vars
1625 do
1626 eval ac_val=\$$ac_var
1627 case $ac_val in
1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 esac
1630 echo "$ac_var='\''$ac_val'\''"
1631 done | sort
1632 echo
1633
1634 if test -n "$ac_subst_files"; then
1635 cat <<\_ASBOX
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1639 _ASBOX
1640 echo
1641 for ac_var in $ac_subst_files
1642 do
1643 eval ac_val=\$$ac_var
1644 case $ac_val in
1645 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646 esac
1647 echo "$ac_var='\''$ac_val'\''"
1648 done | sort
1649 echo
1650 fi
1651
1652 if test -s confdefs.h; then
1653 cat <<\_ASBOX
1654 ## ----------- ##
1655 ## confdefs.h. ##
1656 ## ----------- ##
1657 _ASBOX
1658 echo
1659 cat confdefs.h
1660 echo
1661 fi
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1665 } >&5
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 exit $exit_status
1669 ' 0
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 done
1673 ac_signal=0
1674
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1677
1678 # Predefined preprocessor variables.
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1693
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
1703
1704
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711 else
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1714 fi
1715 shift
1716 for ac_site_file
1717 do
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1722 . "$ac_site_file"
1723 fi
1724 done
1725
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1732 case $cache_file in
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1735 esac
1736 fi
1737 else
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1740 >$cache_file
1741 fi
1742
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1761 *)
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1782 fi
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1790 fi
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813
1814
1815
1816 ac_aux_dir=
1817 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1818 if test -f "$ac_dir/install-sh"; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install-sh -c"
1821 break
1822 elif test -f "$ac_dir/install.sh"; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/install.sh -c"
1825 break
1826 elif test -f "$ac_dir/shtool"; then
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/shtool install -c"
1829 break
1830 fi
1831 done
1832 if test -z "$ac_aux_dir"; then
1833 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1834 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1835 { (exit 1); exit 1; }; }
1836 fi
1837
1838 # These three variables are undocumented and unsupported,
1839 # and are intended to be withdrawn in a future Autoconf release.
1840 # They can cause serious problems if a builder's source tree is in a directory
1841 # whose full name contains unusual characters.
1842 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1843 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1844 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845
1846
1847 # Make sure we can run config.sub.
1848 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1849 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1850 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1851 { (exit 1); exit 1; }; }
1852
1853 { echo "$as_me:$LINENO: checking build system type" >&5
1854 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1855 if test "${ac_cv_build+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 ac_build_alias=$build_alias
1859 test "x$ac_build_alias" = x &&
1860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1861 test "x$ac_build_alias" = x &&
1862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1864 { (exit 1); exit 1; }; }
1865 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1866 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1867 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1868 { (exit 1); exit 1; }; }
1869
1870 fi
1871 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1872 echo "${ECHO_T}$ac_cv_build" >&6; }
1873 case $ac_cv_build in
1874 *-*-*) ;;
1875 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1876 echo "$as_me: error: invalid value of canonical build" >&2;}
1877 { (exit 1); exit 1; }; };;
1878 esac
1879 build=$ac_cv_build
1880 ac_save_IFS=$IFS; IFS='-'
1881 set x $ac_cv_build
1882 shift
1883 build_cpu=$1
1884 build_vendor=$2
1885 shift; shift
1886 # Remember, the first character of IFS is used to create $*,
1887 # except with old shells:
1888 build_os=$*
1889 IFS=$ac_save_IFS
1890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1891
1892
1893 { echo "$as_me:$LINENO: checking host system type" >&5
1894 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1895 if test "${ac_cv_host+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 if test "x$host_alias" = x; then
1899 ac_cv_host=$ac_cv_build
1900 else
1901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1902 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1903 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1904 { (exit 1); exit 1; }; }
1905 fi
1906
1907 fi
1908 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1909 echo "${ECHO_T}$ac_cv_host" >&6; }
1910 case $ac_cv_host in
1911 *-*-*) ;;
1912 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1913 echo "$as_me: error: invalid value of canonical host" >&2;}
1914 { (exit 1); exit 1; }; };;
1915 esac
1916 host=$ac_cv_host
1917 ac_save_IFS=$IFS; IFS='-'
1918 set x $ac_cv_host
1919 shift
1920 host_cpu=$1
1921 host_vendor=$2
1922 shift; shift
1923 # Remember, the first character of IFS is used to create $*,
1924 # except with old shells:
1925 host_os=$*
1926 IFS=$ac_save_IFS
1927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1928
1929
1930 { echo "$as_me:$LINENO: checking target system type" >&5
1931 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_target+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test "x$target_alias" = x; then
1936 ac_cv_target=$ac_cv_host
1937 else
1938 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1939 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1940 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1941 { (exit 1); exit 1; }; }
1942 fi
1943
1944 fi
1945 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1946 echo "${ECHO_T}$ac_cv_target" >&6; }
1947 case $ac_cv_target in
1948 *-*-*) ;;
1949 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1950 echo "$as_me: error: invalid value of canonical target" >&2;}
1951 { (exit 1); exit 1; }; };;
1952 esac
1953 target=$ac_cv_target
1954 ac_save_IFS=$IFS; IFS='-'
1955 set x $ac_cv_target
1956 shift
1957 target_cpu=$1
1958 target_vendor=$2
1959 shift; shift
1960 # Remember, the first character of IFS is used to create $*,
1961 # except with old shells:
1962 target_os=$*
1963 IFS=$ac_save_IFS
1964 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1965
1966
1967 # The aliases save the names the user supplied, while $host etc.
1968 # will get canonicalized.
1969 test -n "$target_alias" &&
1970 test "$program_prefix$program_suffix$program_transform_name" = \
1971 NONENONEs,x,x, &&
1972 program_prefix=${target_alias}-
1973 am__api_version="1.7"
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1980 # AIX /bin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 break 3
2022 fi
2023 fi
2024 done
2025 done
2026 ;;
2027 esac
2028 done
2029 IFS=$as_save_IFS
2030
2031
2032 fi
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2041 fi
2042 fi
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2045
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2069 fi
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 test "$2" = conftest.file
2086 )
2087 then
2088 # Ok.
2089 :
2090 else
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2108 _ACEOF
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 rm -f conftest.sed
2111
2112
2113 # expand $ac_aux_dir to an absolute path
2114 am_aux_dir=`cd $ac_aux_dir && pwd`
2115
2116 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117 # Use eval to expand $SHELL
2118 if eval "$MISSING --run true"; then
2119 am_missing_run="$MISSING --run "
2120 else
2121 am_missing_run=
2122 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2124 fi
2125
2126 for ac_prog in gawk mawk nawk awk
2127 do
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2132 if test "${ac_cv_prog_AWK+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 if test -n "$AWK"; then
2136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2145 ac_cv_prog_AWK="$ac_prog"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2148 fi
2149 done
2150 done
2151 IFS=$as_save_IFS
2152
2153 fi
2154 fi
2155 AWK=$ac_cv_prog_AWK
2156 if test -n "$AWK"; then
2157 { echo "$as_me:$LINENO: result: $AWK" >&5
2158 echo "${ECHO_T}$AWK" >&6; }
2159 else
2160 { echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6; }
2162 fi
2163
2164
2165 test -n "$AWK" && break
2166 done
2167
2168 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2169 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2170 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2171 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 cat >conftest.make <<\_ACEOF
2175 SHELL = /bin/sh
2176 all:
2177 @echo '@@@%%%=$(MAKE)=@@@%%%'
2178 _ACEOF
2179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2180 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2181 *@@@%%%=?*=@@@%%%*)
2182 eval ac_cv_prog_make_${ac_make}_set=yes;;
2183 *)
2184 eval ac_cv_prog_make_${ac_make}_set=no;;
2185 esac
2186 rm -f conftest.make
2187 fi
2188 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2189 { echo "$as_me:$LINENO: result: yes" >&5
2190 echo "${ECHO_T}yes" >&6; }
2191 SET_MAKE=
2192 else
2193 { echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6; }
2195 SET_MAKE="MAKE=${MAKE-make}"
2196 fi
2197
2198 rm -rf .tst 2>/dev/null
2199 mkdir .tst 2>/dev/null
2200 if test -d .tst; then
2201 am__leading_dot=.
2202 else
2203 am__leading_dot=_
2204 fi
2205 rmdir .tst 2>/dev/null
2206
2207 # test to see if srcdir already configured
2208 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2209 test -f $srcdir/config.status; then
2210 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2211 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2212 { (exit 1); exit 1; }; }
2213 fi
2214
2215 # test whether we have cygpath
2216 if test -z "$CYGPATH_W"; then
2217 if (cygpath --version) >/dev/null 2>/dev/null; then
2218 CYGPATH_W='cygpath -w'
2219 else
2220 CYGPATH_W=echo
2221 fi
2222 fi
2223
2224
2225 # Define the identity of the package.
2226 PACKAGE=gvpe
2227 VERSION=2.2
2228
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE "$PACKAGE"
2232 _ACEOF
2233
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define VERSION "$VERSION"
2237 _ACEOF
2238
2239 # Some tools Automake needs.
2240
2241 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2242
2243
2244 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2245
2246
2247 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2248
2249
2250 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2251
2252
2253 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2254
2255
2256 AMTAR=${AMTAR-"${am_missing_run}tar"}
2257
2258 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2259
2260 # Installed binaries are usually stripped using `strip' when the user
2261 # run `make install-strip'. However `strip' might not be the right
2262 # tool to use in cross-compilation environments, therefore Automake
2263 # will honor the `STRIP' environment variable to overrule this program.
2264 if test "$cross_compiling" != no; then
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}strip; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_STRIP+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$STRIP"; then
2274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287 done
2288 done
2289 IFS=$as_save_IFS
2290
2291 fi
2292 fi
2293 STRIP=$ac_cv_prog_STRIP
2294 if test -n "$STRIP"; then
2295 { echo "$as_me:$LINENO: result: $STRIP" >&5
2296 echo "${ECHO_T}$STRIP" >&6; }
2297 else
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2300 fi
2301
2302
2303 fi
2304 if test -z "$ac_cv_prog_STRIP"; then
2305 ac_ct_STRIP=$STRIP
2306 # Extract the first word of "strip", so it can be a program name with args.
2307 set dummy strip; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$ac_ct_STRIP"; then
2314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_STRIP="strip"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331 fi
2332 fi
2333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2334 if test -n "$ac_ct_STRIP"; then
2335 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2336 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2337 else
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2340 fi
2341
2342 if test "x$ac_ct_STRIP" = x; then
2343 STRIP=":"
2344 else
2345 case $cross_compiling:$ac_tool_warned in
2346 yes:)
2347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2348 whose name does not start with the host triplet. If you think this
2349 configuration is useful to you, please write to autoconf@gnu.org." >&5
2350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2353 ac_tool_warned=yes ;;
2354 esac
2355 STRIP=$ac_ct_STRIP
2356 fi
2357 else
2358 STRIP="$ac_cv_prog_STRIP"
2359 fi
2360
2361 fi
2362 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2363
2364 # We need awk for the "check" target. The system "awk" is bad on
2365 # some platforms.
2366
2367
2368
2369 ac_config_headers="$ac_config_headers config.h"
2370
2371 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2372 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2373 # Check whether --enable-maintainer-mode was given.
2374 if test "${enable_maintainer_mode+set}" = set; then
2375 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2376 else
2377 USE_MAINTAINER_MODE=no
2378 fi
2379
2380 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2381 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2382
2383
2384 if test $USE_MAINTAINER_MODE = yes; then
2385 MAINTAINER_MODE_TRUE=
2386 MAINTAINER_MODE_FALSE='#'
2387 else
2388 MAINTAINER_MODE_TRUE='#'
2389 MAINTAINER_MODE_FALSE=
2390 fi
2391
2392 MAINT=$MAINTAINER_MODE_TRUE
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2404
2405 for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
2406
2407
2408
2409 MKINSTALLDIRS=
2410 if test -n "$ac_aux_dir"; then
2411 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2412 fi
2413 if test -z "$MKINSTALLDIRS"; then
2414 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2415 fi
2416
2417
2418
2419
2420
2421 # Extract the first word of "msgfmt", so it can be a program name with args.
2422 set dummy msgfmt; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_path_MSGFMT+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 case "$MSGFMT" in
2429 /*)
2430 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2431 ;;
2432 *)
2433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2434 for ac_dir in $PATH; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2438 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2439 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2440 break
2441 fi
2442 fi
2443 done
2444 IFS="$ac_save_ifs"
2445 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2446 ;;
2447 esac
2448 fi
2449 MSGFMT="$ac_cv_path_MSGFMT"
2450 if test "$MSGFMT" != ":"; then
2451 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2452 echo "${ECHO_T}$MSGFMT" >&6; }
2453 else
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2456 fi
2457
2458 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2459 set dummy gmsgfmt; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 case $GMSGFMT in
2466 [\\/]* | ?:[\\/]*)
2467 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2468 ;;
2469 *)
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2486 ;;
2487 esac
2488 fi
2489 GMSGFMT=$ac_cv_path_GMSGFMT
2490 if test -n "$GMSGFMT"; then
2491 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2492 echo "${ECHO_T}$GMSGFMT" >&6; }
2493 else
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499
2500 # Extract the first word of "xgettext", so it can be a program name with args.
2501 set dummy xgettext; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 case "$XGETTEXT" in
2508 /*)
2509 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2510 ;;
2511 *)
2512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2513 for ac_dir in $PATH; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if test -f $ac_dir/$ac_word; then
2516 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2517 (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
2518 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2519 break
2520 fi
2521 fi
2522 done
2523 IFS="$ac_save_ifs"
2524 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2525 ;;
2526 esac
2527 fi
2528 XGETTEXT="$ac_cv_path_XGETTEXT"
2529 if test "$XGETTEXT" != ":"; then
2530 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2531 echo "${ECHO_T}$XGETTEXT" >&6; }
2532 else
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537 rm -f messages.po
2538
2539 # Extract the first word of "msgmerge", so it can be a program name with args.
2540 set dummy msgmerge; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 case "$MSGMERGE" in
2547 /*)
2548 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2549 ;;
2550 *)
2551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2552 for ac_dir in $PATH; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2556 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2557 break
2558 fi
2559 fi
2560 done
2561 IFS="$ac_save_ifs"
2562 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2563 ;;
2564 esac
2565 fi
2566 MSGMERGE="$ac_cv_path_MSGMERGE"
2567 if test "$MSGMERGE" != ":"; then
2568 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2569 echo "${ECHO_T}$MSGMERGE" >&6; }
2570 else
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2573 fi
2574
2575
2576 if test "$GMSGFMT" != ":"; then
2577 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2578 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2579 : ;
2580 else
2581 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2582 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2583 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2584 GMSGFMT=":"
2585 fi
2586 fi
2587
2588 if test "$XGETTEXT" != ":"; then
2589 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2590 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2591 : ;
2592 else
2593 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2594 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2595 XGETTEXT=":"
2596 fi
2597 rm -f messages.po
2598 fi
2599
2600 ac_config_commands="$ac_config_commands default-1"
2601
2602
2603
2604 if test "X$prefix" = "XNONE"; then
2605 acl_final_prefix="$ac_default_prefix"
2606 else
2607 acl_final_prefix="$prefix"
2608 fi
2609 if test "X$exec_prefix" = "XNONE"; then
2610 acl_final_exec_prefix='${prefix}'
2611 else
2612 acl_final_exec_prefix="$exec_prefix"
2613 fi
2614 acl_save_prefix="$prefix"
2615 prefix="$acl_final_prefix"
2616 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2617 prefix="$acl_save_prefix"
2618
2619 DEPDIR="${am__leading_dot}deps"
2620
2621 ac_config_commands="$ac_config_commands depfiles"
2622
2623
2624 am_make=${MAKE-make}
2625 cat > confinc << 'END'
2626 am__doit:
2627 @echo done
2628 .PHONY: am__doit
2629 END
2630 # If we don't find an include directive, just comment out the code.
2631 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2632 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2633 am__include="#"
2634 am__quote=
2635 _am_result=none
2636 # First try GNU make style include.
2637 echo "include confinc" > confmf
2638 # We grep out `Entering directory' and `Leaving directory'
2639 # messages which can occur if `w' ends up in MAKEFLAGS.
2640 # In particular we don't look at `^make:' because GNU make might
2641 # be invoked under some other name (usually "gmake"), in which
2642 # case it prints its new name instead of `make'.
2643 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2644 am__include=include
2645 am__quote=
2646 _am_result=GNU
2647 fi
2648 # Now try BSD make style include.
2649 if test "$am__include" = "#"; then
2650 echo '.include "confinc"' > confmf
2651 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2652 am__include=.include
2653 am__quote="\""
2654 _am_result=BSD
2655 fi
2656 fi
2657
2658
2659 { echo "$as_me:$LINENO: result: $_am_result" >&5
2660 echo "${ECHO_T}$_am_result" >&6; }
2661 rm -f confinc confmf
2662
2663 # Check whether --enable-dependency-tracking was given.
2664 if test "${enable_dependency_tracking+set}" = set; then
2665 enableval=$enable_dependency_tracking;
2666 fi
2667
2668 if test "x$enable_dependency_tracking" != xno; then
2669 am_depcomp="$ac_aux_dir/depcomp"
2670 AMDEPBACKSLASH='\'
2671 fi
2672
2673
2674 if test "x$enable_dependency_tracking" != xno; then
2675 AMDEP_TRUE=
2676 AMDEP_FALSE='#'
2677 else
2678 AMDEP_TRUE='#'
2679 AMDEP_FALSE=
2680 fi
2681
2682
2683
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6; }
2721 else
2722 { echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$ac_cv_prog_CC"; then
2729 ac_ct_CC=$CC
2730 # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="gcc"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6; }
2761 else
2762 { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_CC" = x; then
2767 CC=""
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772 whose name does not start with the host triplet. If you think this
2773 configuration is useful to you, please write to autoconf@gnu.org." >&5
2774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775 whose name does not start with the host triplet. If you think this
2776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2777 ac_tool_warned=yes ;;
2778 esac
2779 CC=$ac_ct_CC
2780 fi
2781 else
2782 CC="$ac_cv_prog_CC"
2783 fi
2784
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}cc; ac_word=$2
2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_CC+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CC="${ac_tool_prefix}cc"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6; }
2818 else
2819 { echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6; }
2821 fi
2822
2823
2824 fi
2825 fi
2826 if test -z "$CC"; then
2827 # Extract the first word of "cc", so it can be a program name with args.
2828 set dummy cc; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 ac_prog_rejected=no
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2846 ac_prog_rejected=yes
2847 continue
2848 fi
2849 ac_cv_prog_CC="cc"
2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 if test $ac_prog_rejected = yes; then
2858 # We found a bogon in the path, so make sure we never use it.
2859 set dummy $ac_cv_prog_CC
2860 shift
2861 if test $# != 0; then
2862 # We chose a different compiler from the bogus one.
2863 # However, it has the same basename, so the bogon will be chosen
2864 # first if we set CC to just the basename; use the full file name.
2865 shift
2866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2867 fi
2868 fi
2869 fi
2870 fi
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873 { echo "$as_me:$LINENO: result: $CC" >&5
2874 echo "${ECHO_T}$CC" >&6; }
2875 else
2876 { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2878 fi
2879
2880
2881 fi
2882 if test -z "$CC"; then
2883 if test -n "$ac_tool_prefix"; then
2884 for ac_prog in cl.exe
2885 do
2886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915 { echo "$as_me:$LINENO: result: $CC" >&5
2916 echo "${ECHO_T}$CC" >&6; }
2917 else
2918 { echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6; }
2920 fi
2921
2922
2923 test -n "$CC" && break
2924 done
2925 fi
2926 if test -z "$CC"; then
2927 ac_ct_CC=$CC
2928 for ac_prog in cl.exe
2929 do
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_ac_ct_CC="$ac_prog"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2960 echo "${ECHO_T}$ac_ct_CC" >&6; }
2961 else
2962 { echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6; }
2964 fi
2965
2966
2967 test -n "$ac_ct_CC" && break
2968 done
2969
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2976 whose name does not start with the host triplet. If you think this
2977 configuration is useful to you, please write to autoconf@gnu.org." >&5
2978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2979 whose name does not start with the host triplet. If you think this
2980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2981 ac_tool_warned=yes ;;
2982 esac
2983 CC=$ac_ct_CC
2984 fi
2985 fi
2986
2987 fi
2988
2989
2990 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: no acceptable C compiler found in \$PATH
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2995
2996 # Provide some information about the compiler.
2997 echo "$as_me:$LINENO: checking for C compiler version" >&5
2998 ac_compiler=`set X $ac_compile; echo $2`
2999 { (ac_try="$ac_compiler --version >&5"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compiler --version >&5") 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (ac_try="$ac_compiler -v >&5"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compiler -v >&5") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3019 { (ac_try="$ac_compiler -V >&5"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compiler -V >&5") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036
3037 int
3038 main ()
3039 {
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 ac_clean_files_save=$ac_clean_files
3046 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3047 # Try to create an executable without -o first, disregard a.out.
3048 # It will help us diagnose broken compilers, and finding out an intuition
3049 # of exeext.
3050 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3051 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3052 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3053 #
3054 # List of possible output files, starting from the most likely.
3055 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3056 # only as a last resort. b.out is created by i960 compilers.
3057 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3058 #
3059 # The IRIX 6 linker writes into existing files which may not be
3060 # executable, retaining their permissions. Remove them first so a
3061 # subsequent execution test works.
3062 ac_rmfiles=
3063 for ac_file in $ac_files
3064 do
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068 esac
3069 done
3070 rm -f $ac_rmfiles
3071
3072 if { (ac_try="$ac_link_default"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_link_default") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3085 # so that the user can short-circuit this test for compilers unknown to
3086 # Autoconf.
3087 for ac_file in $ac_files ''
3088 do
3089 test -f "$ac_file" || continue
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3092 ;;
3093 [ab].out )
3094 # We found the default executable, but exeext='' is most
3095 # certainly right.
3096 break;;
3097 *.* )
3098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3099 then :; else
3100 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 fi
3102 # We set ac_cv_exeext here because the later test for it is not
3103 # safe: cross compilers may not add the suffix if given an `-o'
3104 # argument, so we may need to know it at that point already.
3105 # Even if this section looks crufty: it has the advantage of
3106 # actually working.
3107 break;;
3108 * )
3109 break;;
3110 esac
3111 done
3112 test "$ac_cv_exeext" = no && ac_cv_exeext=
3113
3114 else
3115 ac_file=''
3116 fi
3117
3118 { echo "$as_me:$LINENO: result: $ac_file" >&5
3119 echo "${ECHO_T}$ac_file" >&6; }
3120 if test -z "$ac_file"; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: C compiler cannot create executables
3127 See \`config.log' for more details." >&2;}
3128 { (exit 77); exit 77; }; }
3129 fi
3130
3131 ac_exeext=$ac_cv_exeext
3132
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try='./$ac_file'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 cross_compiling=no
3151 else
3152 if test "$cross_compiling" = maybe; then
3153 cross_compiling=yes
3154 else
3155 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot run C compiled programs.
3159 If you meant to cross compile, use \`--host'.
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163 fi
3164 fi
3165 { echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6; }
3167
3168 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3169 ac_clean_files=$ac_clean_files_save
3170 # Check that the compiler produces executables we can run. If not, either
3171 # the compiler is broken, or we cross compile.
3172 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3173 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3174 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3175 echo "${ECHO_T}$cross_compiling" >&6; }
3176
3177 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3178 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3179 if { (ac_try="$ac_link"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_link") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; then
3189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3191 # work properly (i.e., refer to `conftest.exe'), while it won't with
3192 # `rm'.
3193 for ac_file in conftest.exe conftest conftest.*; do
3194 test -f "$ac_file" || continue
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 break;;
3199 * ) break;;
3200 esac
3201 done
3202 else
3203 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210 rm -f conftest$ac_cv_exeext
3211 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3212 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3213
3214 rm -f conftest.$ac_ext
3215 EXEEXT=$ac_cv_exeext
3216 ac_exeext=$EXEEXT
3217 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3218 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3219 if test "${ac_cv_objext+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { (ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; then
3248 for ac_file in conftest.o conftest.obj conftest.*; do
3249 test -f "$ac_file" || continue;
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253 break;;
3254 esac
3255 done
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3261 See \`config.log' for more details." >&5
3262 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3263 See \`config.log' for more details." >&2;}
3264 { (exit 1); exit 1; }; }
3265 fi
3266
3267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 fi
3269 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3270 echo "${ECHO_T}$ac_cv_objext" >&6; }
3271 OBJEXT=$ac_cv_objext
3272 ac_objext=$OBJEXT
3273 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3274 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3275 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284
3285 int
3286 main ()
3287 {
3288 #ifndef __GNUC__
3289 choke me
3290 #endif
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_compiler_gnu=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 ac_compiler_gnu=no
3319 fi
3320
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324 fi
3325 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3327 GCC=`test $ac_compiler_gnu = yes && echo yes`
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3331 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_cc_g+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 ac_save_c_werror_flag=$ac_c_werror_flag
3336 ac_c_werror_flag=yes
3337 ac_cv_prog_cc_g=no
3338 CFLAGS="-g"
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 rm -f conftest.$ac_objext
3355 if { (ac_try="$ac_compile"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3371 ac_cv_prog_cc_g=yes
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 CFLAGS=""
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3409 :
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 ac_c_werror_flag=$ac_save_c_werror_flag
3415 CFLAGS="-g"
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_cv_prog_cc_g=yes
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 fi
3458
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3464 fi
3465 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3467 if test "$ac_test_CFLAGS" = set; then
3468 CFLAGS=$ac_save_CFLAGS
3469 elif test $ac_cv_prog_cc_g = yes; then
3470 if test "$GCC" = yes; then
3471 CFLAGS="-g -O2"
3472 else
3473 CFLAGS="-g"
3474 fi
3475 else
3476 if test "$GCC" = yes; then
3477 CFLAGS="-O2"
3478 else
3479 CFLAGS=
3480 fi
3481 fi
3482 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3483 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3484 if test "${ac_cv_prog_cc_c89+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_cv_prog_cc_c89=no
3488 ac_save_CC=$CC
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <stdarg.h>
3496 #include <stdio.h>
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3503 char **p;
3504 int i;
3505 {
3506 return p[i];
3507 }
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3509 {
3510 char *s;
3511 va_list v;
3512 va_start (v,p);
3513 s = g (p, va_arg (v,int));
3514 va_end (v);
3515 return s;
3516 }
3517
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3519 function prototypes and stuff, but not '\xHH' hex character constants.
3520 These don't provoke an error unfortunately, instead are silently treated
3521 as 'x'. The following induces an error, until -std is added to get
3522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3523 array size at least. It's necessary to write '\x00'==0 to get something
3524 that's true only with -std. */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528 inside strings and character constants. */
3529 #define FOO(x) 'x'
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3536 int argc;
3537 char **argv;
3538 int
3539 main ()
3540 {
3541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 do
3549 CC="$ac_save_CC $ac_arg"
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_prog_cc_c89=$ac_arg
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext
3576 test "x$ac_cv_prog_cc_c89" != "xno" && break
3577 done
3578 rm -f conftest.$ac_ext
3579 CC=$ac_save_CC
3580
3581 fi
3582 # AC_CACHE_VAL
3583 case "x$ac_cv_prog_cc_c89" in
3584 x)
3585 { echo "$as_me:$LINENO: result: none needed" >&5
3586 echo "${ECHO_T}none needed" >&6; } ;;
3587 xno)
3588 { echo "$as_me:$LINENO: result: unsupported" >&5
3589 echo "${ECHO_T}unsupported" >&6; } ;;
3590 *)
3591 CC="$CC $ac_cv_prog_cc_c89"
3592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3593 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3594 esac
3595
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603 depcc="$CC" am_compiler_list=
3604
3605 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3607 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611 # We make a subdir and do the tests there. Otherwise we can end up
3612 # making bogus files that we don't know about and never remove. For
3613 # instance it was reported that on HP-UX the gcc test will end up
3614 # making a dummy file named `D' -- because `-MD' means `put the output
3615 # in D'.
3616 mkdir conftest.dir
3617 # Copy depcomp to subdir because otherwise we won't find it if we're
3618 # using a relative directory.
3619 cp "$am_depcomp" conftest.dir
3620 cd conftest.dir
3621 # We will build objects and dependencies in a subdirectory because
3622 # it helps to detect inapplicable dependency modes. For instance
3623 # both Tru64's cc and ICC support -MD to output dependencies as a
3624 # side effect of compilation, but ICC will put the dependencies in
3625 # the current directory while Tru64 will put them in the object
3626 # directory.
3627 mkdir sub
3628
3629 am_cv_CC_dependencies_compiler_type=none
3630 if test "$am_compiler_list" = ""; then
3631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3632 fi
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3637 #
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 : > sub/conftst$i.h
3645 done
3646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3647
3648 case $depmode in
3649 nosideeffect)
3650 # after this tag, mechanisms are not by side-effect, so they'll
3651 # only be used when explicitly requested
3652 if test "x$enable_dependency_tracking" = xyes; then
3653 continue
3654 else
3655 break
3656 fi
3657 ;;
3658 none) break ;;
3659 esac
3660 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3661 # mode. It turns out that the SunPro C++ compiler does not properly
3662 # handle `-M -o', and we need to detect this.
3663 if depmode=$depmode \
3664 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3666 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3667 >/dev/null 2>conftest.err &&
3668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3669 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3671 # icc doesn't choke on unknown options, it will just issue warnings
3672 # (even with -Werror). So we grep stderr for any message
3673 # that says an option was ignored.
3674 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3675 am_cv_CC_dependencies_compiler_type=$depmode
3676 break
3677 fi
3678 fi
3679 done
3680
3681 cd ..
3682 rm -rf conftest.dir
3683 else
3684 am_cv_CC_dependencies_compiler_type=none
3685 fi
3686
3687 fi
3688 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3689 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691
3692
3693
3694 if
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCC_TRUE=
3698 am__fastdepCC_FALSE='#'
3699 else
3700 am__fastdepCC_TRUE='#'
3701 am__fastdepCC_FALSE=
3702 fi
3703
3704
3705
3706 # Check whether --with-gnu-ld was given.
3707 if test "${with_gnu_ld+set}" = set; then
3708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3709 else
3710 with_gnu_ld=no
3711 fi
3712
3713 ac_prog=ld
3714 if test "$GCC" = yes; then
3715 # Check if gcc -print-prog-name=ld gives a path.
3716 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3717 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3718 case $host in
3719 *-*-mingw*)
3720 # gcc leaves a trailing carriage return which upsets mingw
3721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3722 *)
3723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724 esac
3725 case $ac_prog in
3726 # Accept absolute paths.
3727 [\\/]* | [A-Za-z]:[\\/]*)
3728 re_direlt='/[^/][^/]*/\.\./'
3729 # Canonicalize the path of ld
3730 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3731 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3732 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3733 done
3734 test -z "$LD" && LD="$ac_prog"
3735 ;;
3736 "")
3737 # If it fails, then pretend we aren't using GCC.
3738 ac_prog=ld
3739 ;;
3740 *)
3741 # If it is relative, then search for the first ld in PATH.
3742 with_gnu_ld=unknown
3743 ;;
3744 esac
3745 elif test "$with_gnu_ld" = yes; then
3746 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3748 else
3749 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3751 fi
3752 if test "${acl_cv_path_LD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 if test -z "$LD"; then
3756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3757 for ac_dir in $PATH; do
3758 test -z "$ac_dir" && ac_dir=.
3759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3760 acl_cv_path_LD="$ac_dir/$ac_prog"
3761 # Check to see if the program is GNU ld. I'd rather use --version,
3762 # but apparently some GNU ld's only accept -v.
3763 # Break only if it was the GNU/non-GNU ld that we prefer.
3764 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3765 test "$with_gnu_ld" != no && break
3766 else
3767 test "$with_gnu_ld" != yes && break
3768 fi
3769 fi
3770 done
3771 IFS="$ac_save_ifs"
3772 else
3773 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3774 fi
3775 fi
3776
3777 LD="$acl_cv_path_LD"
3778 if test -n "$LD"; then
3779 { echo "$as_me:$LINENO: result: $LD" >&5
3780 echo "${ECHO_T}$LD" >&6; }
3781 else
3782 { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3784 fi
3785 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3786 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3787 { (exit 1); exit 1; }; }
3788 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3789 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3790 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3794 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3795 acl_cv_prog_gnu_ld=yes
3796 else
3797 acl_cv_prog_gnu_ld=no
3798 fi
3799 fi
3800 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3801 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
3802 with_gnu_ld=$acl_cv_prog_gnu_ld
3803
3804
3805
3806 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3807 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
3808 if test "${acl_cv_rpath+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811
3812 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3813 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3814 . ./conftest.sh
3815 rm -f ./conftest.sh
3816 acl_cv_rpath=done
3817
3818 fi
3819 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3820 echo "${ECHO_T}$acl_cv_rpath" >&6; }
3821 wl="$acl_cv_wl"
3822 libext="$acl_cv_libext"
3823 shlibext="$acl_cv_shlibext"
3824 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3825 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3826 hardcode_direct="$acl_cv_hardcode_direct"
3827 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3828 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3829 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3830 # Check whether --enable-rpath was given.
3831 if test "${enable_rpath+set}" = set; then
3832 enableval=$enable_rpath; :
3833 else
3834 enable_rpath=yes
3835 fi
3836
3837
3838
3839
3840
3841
3842
3843
3844 use_additional=yes
3845
3846 acl_save_prefix="$prefix"
3847 prefix="$acl_final_prefix"
3848 acl_save_exec_prefix="$exec_prefix"
3849 exec_prefix="$acl_final_exec_prefix"
3850
3851 eval additional_includedir=\"$includedir\"
3852 eval additional_libdir=\"$libdir\"
3853
3854 exec_prefix="$acl_save_exec_prefix"
3855 prefix="$acl_save_prefix"
3856
3857
3858 # Check whether --with-libiconv-prefix was given.
3859 if test "${with_libiconv_prefix+set}" = set; then
3860 withval=$with_libiconv_prefix;
3861 if test "X$withval" = "Xno"; then
3862 use_additional=no
3863 else
3864 if test "X$withval" = "X"; then
3865
3866 acl_save_prefix="$prefix"
3867 prefix="$acl_final_prefix"
3868 acl_save_exec_prefix="$exec_prefix"
3869 exec_prefix="$acl_final_exec_prefix"
3870
3871 eval additional_includedir=\"$includedir\"
3872 eval additional_libdir=\"$libdir\"
3873
3874 exec_prefix="$acl_save_exec_prefix"
3875 prefix="$acl_save_prefix"
3876
3877 else
3878 additional_includedir="$withval/include"
3879 additional_libdir="$withval/lib"
3880 fi
3881 fi
3882
3883 fi
3884
3885 LIBICONV=
3886 LTLIBICONV=
3887 INCICONV=
3888 rpathdirs=
3889 ltrpathdirs=
3890 names_already_handled=
3891 names_next_round='iconv '
3892 while test -n "$names_next_round"; do
3893 names_this_round="$names_next_round"
3894 names_next_round=
3895 for name in $names_this_round; do
3896 already_handled=
3897 for n in $names_already_handled; do
3898 if test "$n" = "$name"; then
3899 already_handled=yes
3900 break
3901 fi
3902 done
3903 if test -z "$already_handled"; then
3904 names_already_handled="$names_already_handled $name"
3905 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3906 eval value=\"\$HAVE_LIB$uppername\"
3907 if test -n "$value"; then
3908 if test "$value" = yes; then
3909 eval value=\"\$LIB$uppername\"
3910 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3911 eval value=\"\$LTLIB$uppername\"
3912 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3913 else
3914 :
3915 fi
3916 else
3917 found_dir=
3918 found_la=
3919 found_so=
3920 found_a=
3921 if test $use_additional = yes; then
3922 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3923 found_dir="$additional_libdir"
3924 found_so="$additional_libdir/lib$name.$shlibext"
3925 if test -f "$additional_libdir/lib$name.la"; then
3926 found_la="$additional_libdir/lib$name.la"
3927 fi
3928 else
3929 if test -f "$additional_libdir/lib$name.$libext"; then
3930 found_dir="$additional_libdir"
3931 found_a="$additional_libdir/lib$name.$libext"
3932 if test -f "$additional_libdir/lib$name.la"; then
3933 found_la="$additional_libdir/lib$name.la"
3934 fi
3935 fi
3936 fi
3937 fi
3938 if test "X$found_dir" = "X"; then
3939 for x in $LDFLAGS $LTLIBICONV; do
3940
3941 acl_save_prefix="$prefix"
3942 prefix="$acl_final_prefix"
3943 acl_save_exec_prefix="$exec_prefix"
3944 exec_prefix="$acl_final_exec_prefix"
3945 eval x=\"$x\"
3946 exec_prefix="$acl_save_exec_prefix"
3947 prefix="$acl_save_prefix"
3948
3949 case "$x" in
3950 -L*)
3951 dir=`echo "X$x" | sed -e 's/^X-L//'`
3952 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3953 found_dir="$dir"
3954 found_so="$dir/lib$name.$shlibext"
3955 if test -f "$dir/lib$name.la"; then
3956 found_la="$dir/lib$name.la"
3957 fi
3958 else
3959 if test -f "$dir/lib$name.$libext"; then
3960 found_dir="$dir"
3961 found_a="$dir/lib$name.$libext"
3962 if test -f "$dir/lib$name.la"; then
3963 found_la="$dir/lib$name.la"
3964 fi
3965 fi
3966 fi
3967 ;;
3968 esac
3969 if test "X$found_dir" != "X"; then
3970 break
3971 fi
3972 done
3973 fi
3974 if test "X$found_dir" != "X"; then
3975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3976 if test "X$found_so" != "X"; then
3977 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3979 else
3980 haveit=
3981 for x in $ltrpathdirs; do
3982 if test "X$x" = "X$found_dir"; then
3983 haveit=yes
3984 break
3985 fi
3986 done
3987 if test -z "$haveit"; then
3988 ltrpathdirs="$ltrpathdirs $found_dir"
3989 fi
3990 if test "$hardcode_direct" = yes; then
3991 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3992 else
3993 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3995 haveit=
3996 for x in $rpathdirs; do
3997 if test "X$x" = "X$found_dir"; then
3998 haveit=yes
3999 break
4000 fi
4001 done
4002 if test -z "$haveit"; then
4003 rpathdirs="$rpathdirs $found_dir"
4004 fi
4005 else
4006 haveit=
4007 for x in $LDFLAGS $LIBICONV; do
4008
4009 acl_save_prefix="$prefix"
4010 prefix="$acl_final_prefix"
4011 acl_save_exec_prefix="$exec_prefix"
4012 exec_prefix="$acl_final_exec_prefix"
4013 eval x=\"$x\"
4014 exec_prefix="$acl_save_exec_prefix"
4015 prefix="$acl_save_prefix"
4016
4017 if test "X$x" = "X-L$found_dir"; then
4018 haveit=yes
4019 break
4020 fi
4021 done
4022 if test -z "$haveit"; then
4023 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4024 fi
4025 if test "$hardcode_minus_L" != no; then
4026 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4027 else
4028 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4029 fi
4030 fi
4031 fi
4032 fi
4033 else
4034 if test "X$found_a" != "X"; then
4035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4036 else
4037 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4038 fi
4039 fi
4040 additional_includedir=
4041 case "$found_dir" in
4042 */lib | */lib/)
4043 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4044 additional_includedir="$basedir/include"
4045 ;;
4046 esac
4047 if test "X$additional_includedir" != "X"; then
4048 if test "X$additional_includedir" != "X/usr/include"; then
4049 haveit=
4050 if test "X$additional_includedir" = "X/usr/local/include"; then
4051 if test -n "$GCC"; then
4052 case $host_os in
4053 linux*) haveit=yes;;
4054 esac
4055 fi
4056 fi
4057 if test -z "$haveit"; then
4058 for x in $CPPFLAGS $INCICONV; do
4059
4060 acl_save_prefix="$prefix"
4061 prefix="$acl_final_prefix"
4062 acl_save_exec_prefix="$exec_prefix"
4063 exec_prefix="$acl_final_exec_prefix"
4064 eval x=\"$x\"
4065 exec_prefix="$acl_save_exec_prefix"
4066 prefix="$acl_save_prefix"
4067
4068 if test "X$x" = "X-I$additional_includedir"; then
4069 haveit=yes
4070 break
4071 fi
4072 done
4073 if test -z "$haveit"; then
4074 if test -d "$additional_includedir"; then
4075 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4076 fi
4077 fi
4078 fi
4079 fi
4080 fi
4081 if test -n "$found_la"; then
4082 save_libdir="$libdir"
4083 case "$found_la" in
4084 */* | *\\*) . "$found_la" ;;
4085 *) . "./$found_la" ;;
4086 esac
4087 libdir="$save_libdir"
4088 for dep in $dependency_libs; do
4089 case "$dep" in
4090 -L*)
4091 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4092 if test "X$additional_libdir" != "X/usr/lib"; then
4093 haveit=
4094 if test "X$additional_libdir" = "X/usr/local/lib"; then
4095 if test -n "$GCC"; then
4096 case $host_os in
4097 linux*) haveit=yes;;
4098 esac
4099 fi
4100 fi
4101 if test -z "$haveit"; then
4102 haveit=
4103 for x in $LDFLAGS $LIBICONV; do
4104
4105 acl_save_prefix="$prefix"
4106 prefix="$acl_final_prefix"
4107 acl_save_exec_prefix="$exec_prefix"
4108 exec_prefix="$acl_final_exec_prefix"
4109 eval x=\"$x\"
4110 exec_prefix="$acl_save_exec_prefix"
4111 prefix="$acl_save_prefix"
4112
4113 if test "X$x" = "X-L$additional_libdir"; then
4114 haveit=yes
4115 break
4116 fi
4117 done
4118 if test -z "$haveit"; then
4119 if test -d "$additional_libdir"; then
4120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4121 fi
4122 fi
4123 haveit=
4124 for x in $LDFLAGS $LTLIBICONV; do
4125
4126 acl_save_prefix="$prefix"
4127 prefix="$acl_final_prefix"
4128 acl_save_exec_prefix="$exec_prefix"
4129 exec_prefix="$acl_final_exec_prefix"
4130 eval x=\"$x\"
4131 exec_prefix="$acl_save_exec_prefix"
4132 prefix="$acl_save_prefix"
4133
4134 if test "X$x" = "X-L$additional_libdir"; then
4135 haveit=yes
4136 break
4137 fi
4138 done
4139 if test -z "$haveit"; then
4140 if test -d "$additional_libdir"; then
4141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4142 fi
4143 fi
4144 fi
4145 fi
4146 ;;
4147 -R*)
4148 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4149 if test "$enable_rpath" != no; then
4150 haveit=
4151 for x in $rpathdirs; do
4152 if test "X$x" = "X$dir"; then
4153 haveit=yes
4154 break
4155 fi
4156 done
4157 if test -z "$haveit"; then
4158 rpathdirs="$rpathdirs $dir"
4159 fi
4160 haveit=
4161 for x in $ltrpathdirs; do
4162 if test "X$x" = "X$dir"; then
4163 haveit=yes
4164 break
4165 fi
4166 done
4167 if test -z "$haveit"; then
4168 ltrpathdirs="$ltrpathdirs $dir"
4169 fi
4170 fi
4171 ;;
4172 -l*)
4173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4174 ;;
4175 *.la)
4176 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4177 ;;
4178 *)
4179 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4181 ;;
4182 esac
4183 done
4184 fi
4185 else
4186 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4188 fi
4189 fi
4190 fi
4191 done
4192 done
4193 if test "X$rpathdirs" != "X"; then
4194 if test -n "$hardcode_libdir_separator"; then
4195 alldirs=
4196 for found_dir in $rpathdirs; do
4197 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4198 done
4199 acl_save_libdir="$libdir"
4200 libdir="$alldirs"
4201 eval flag=\"$hardcode_libdir_flag_spec\"
4202 libdir="$acl_save_libdir"
4203 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4204 else
4205 for found_dir in $rpathdirs; do
4206 acl_save_libdir="$libdir"
4207 libdir="$found_dir"
4208 eval flag=\"$hardcode_libdir_flag_spec\"
4209 libdir="$acl_save_libdir"
4210 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4211 done
4212 fi
4213 fi
4214 if test "X$ltrpathdirs" != "X"; then
4215 for found_dir in $ltrpathdirs; do
4216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4217 done
4218 fi
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4239 # Check whether --enable-nls was given.
4240 if test "${enable_nls+set}" = set; then
4241 enableval=$enable_nls; USE_NLS=$enableval
4242 else
4243 USE_NLS=yes
4244 fi
4245
4246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4247 echo "${ECHO_T}$USE_NLS" >&6; }
4248
4249
4250
4251 LIBINTL=
4252 LTLIBINTL=
4253 POSUB=
4254
4255 if test "$USE_NLS" = "yes"; then
4256 gt_use_preinstalled_gnugettext=no
4257
4258
4259
4260
4261
4262
4263 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4264 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4265 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <libintl.h>
4275 extern int _nl_msg_cat_cntr;
4276 extern int *_nl_domain_bindings;
4277 int
4278 main ()
4279 {
4280 bindtextdomain ("", "");
4281 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest$ac_exeext &&
4303 $as_test_x conftest$ac_exeext; then
4304 gt_cv_func_gnugettext1_libc=yes
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 gt_cv_func_gnugettext1_libc=no
4310 fi
4311
4312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4313 conftest$ac_exeext conftest.$ac_ext
4314 fi
4315 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4316 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4317
4318 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4319
4320
4321
4322
4323
4324 am_save_CPPFLAGS="$CPPFLAGS"
4325
4326 for element in $INCICONV; do
4327 haveit=
4328 for x in $CPPFLAGS; do
4329
4330 acl_save_prefix="$prefix"
4331 prefix="$acl_final_prefix"
4332 acl_save_exec_prefix="$exec_prefix"
4333 exec_prefix="$acl_final_exec_prefix"
4334 eval x=\"$x\"
4335 exec_prefix="$acl_save_exec_prefix"
4336 prefix="$acl_save_prefix"
4337
4338 if test "X$x" = "X$element"; then
4339 haveit=yes
4340 break
4341 fi
4342 done
4343 if test -z "$haveit"; then
4344 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4345 fi
4346 done
4347
4348
4349 { echo "$as_me:$LINENO: checking for iconv" >&5
4350 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4351 if test "${am_cv_func_iconv+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354
4355 am_cv_func_iconv="no, consider installing GNU libiconv"
4356 am_cv_lib_iconv=no
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <iconv.h>
4365 int
4366 main ()
4367 {
4368 iconv_t cd = iconv_open("","");
4369 iconv(cd,NULL,NULL,NULL,NULL);
4370 iconv_close(cd);
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (ac_try="$ac_link"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_link") 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest$ac_exeext &&
4392 $as_test_x conftest$ac_exeext; then
4393 am_cv_func_iconv=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4402 conftest$ac_exeext conftest.$ac_ext
4403 if test "$am_cv_func_iconv" != yes; then
4404 am_save_LIBS="$LIBS"
4405 LIBS="$LIBS $LIBICONV"
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <stdlib.h>
4413 #include <iconv.h>
4414 int
4415 main ()
4416 {
4417 iconv_t cd = iconv_open("","");
4418 iconv(cd,NULL,NULL,NULL,NULL);
4419 iconv_close(cd);
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (ac_try="$ac_link"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_link") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest$ac_exeext &&
4441 $as_test_x conftest$ac_exeext; then
4442 am_cv_lib_iconv=yes
4443 am_cv_func_iconv=yes
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448
4449 fi
4450
4451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4452 conftest$ac_exeext conftest.$ac_ext
4453 LIBS="$am_save_LIBS"
4454 fi
4455
4456 fi
4457 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4458 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4459 if test "$am_cv_func_iconv" = yes; then
4460
4461 cat >>confdefs.h <<\_ACEOF
4462 #define HAVE_ICONV 1
4463 _ACEOF
4464
4465 fi
4466 if test "$am_cv_lib_iconv" = yes; then
4467 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4468 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4469 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4470 echo "${ECHO_T}$LIBICONV" >&6; }
4471 else
4472 CPPFLAGS="$am_save_CPPFLAGS"
4473 LIBICONV=
4474 LTLIBICONV=
4475 fi
4476
4477
4478
4479
4480
4481
4482 use_additional=yes
4483
4484 acl_save_prefix="$prefix"
4485 prefix="$acl_final_prefix"
4486 acl_save_exec_prefix="$exec_prefix"
4487 exec_prefix="$acl_final_exec_prefix"
4488
4489 eval additional_includedir=\"$includedir\"
4490 eval additional_libdir=\"$libdir\"
4491
4492 exec_prefix="$acl_save_exec_prefix"
4493 prefix="$acl_save_prefix"
4494
4495
4496 # Check whether --with-libintl-prefix was given.
4497 if test "${with_libintl_prefix+set}" = set; then
4498 withval=$with_libintl_prefix;
4499 if test "X$withval" = "Xno"; then
4500 use_additional=no
4501 else
4502 if test "X$withval" = "X"; then
4503
4504 acl_save_prefix="$prefix"
4505 prefix="$acl_final_prefix"
4506 acl_save_exec_prefix="$exec_prefix"
4507 exec_prefix="$acl_final_exec_prefix"
4508
4509 eval additional_includedir=\"$includedir\"
4510 eval additional_libdir=\"$libdir\"
4511
4512 exec_prefix="$acl_save_exec_prefix"
4513 prefix="$acl_save_prefix"
4514
4515 else
4516 additional_includedir="$withval/include"
4517 additional_libdir="$withval/lib"
4518 fi
4519 fi
4520
4521 fi
4522
4523 LIBINTL=
4524 LTLIBINTL=
4525 INCINTL=
4526 rpathdirs=
4527 ltrpathdirs=
4528 names_already_handled=
4529 names_next_round='intl '
4530 while test -n "$names_next_round"; do
4531 names_this_round="$names_next_round"
4532 names_next_round=
4533 for name in $names_this_round; do
4534 already_handled=
4535 for n in $names_already_handled; do
4536 if test "$n" = "$name"; then
4537 already_handled=yes
4538 break
4539 fi
4540 done
4541 if test -z "$already_handled"; then
4542 names_already_handled="$names_already_handled $name"
4543 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4544 eval value=\"\$HAVE_LIB$uppername\"
4545 if test -n "$value"; then
4546 if test "$value" = yes; then
4547 eval value=\"\$LIB$uppername\"
4548 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4549 eval value=\"\$LTLIB$uppername\"
4550 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4551 else
4552 :
4553 fi
4554 else
4555 found_dir=
4556 found_la=
4557 found_so=
4558 found_a=
4559 if test $use_additional = yes; then
4560 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4561 found_dir="$additional_libdir"
4562 found_so="$additional_libdir/lib$name.$shlibext"
4563 if test -f "$additional_libdir/lib$name.la"; then
4564 found_la="$additional_libdir/lib$name.la"
4565 fi
4566 else
4567 if test -f "$additional_libdir/lib$name.$libext"; then
4568 found_dir="$additional_libdir"
4569 found_a="$additional_libdir/lib$name.$libext"
4570 if test -f "$additional_libdir/lib$name.la"; then
4571 found_la="$additional_libdir/lib$name.la"
4572 fi
4573 fi
4574 fi
4575 fi
4576 if test "X$found_dir" = "X"; then
4577 for x in $LDFLAGS $LTLIBINTL; do
4578
4579 acl_save_prefix="$prefix"
4580 prefix="$acl_final_prefix"
4581 acl_save_exec_prefix="$exec_prefix"
4582 exec_prefix="$acl_final_exec_prefix"
4583 eval x=\"$x\"
4584 exec_prefix="$acl_save_exec_prefix"
4585 prefix="$acl_save_prefix"
4586
4587 case "$x" in
4588 -L*)
4589 dir=`echo "X$x" | sed -e 's/^X-L//'`
4590 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4591 found_dir="$dir"
4592 found_so="$dir/lib$name.$shlibext"
4593 if test -f "$dir/lib$name.la"; then
4594 found_la="$dir/lib$name.la"
4595 fi
4596 else
4597 if test -f "$dir/lib$name.$libext"; then
4598 found_dir="$dir"
4599 found_a="$dir/lib$name.$libext"
4600 if test -f "$dir/lib$name.la"; then
4601 found_la="$dir/lib$name.la"
4602 fi
4603 fi
4604 fi
4605 ;;
4606 esac
4607 if test "X$found_dir" != "X"; then
4608 break
4609 fi
4610 done
4611 fi
4612 if test "X$found_dir" != "X"; then
4613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4614 if test "X$found_so" != "X"; then
4615 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4617 else
4618 haveit=
4619 for x in $ltrpathdirs; do
4620 if test "X$x" = "X$found_dir"; then
4621 haveit=yes
4622 break
4623 fi
4624 done
4625 if test -z "$haveit"; then
4626 ltrpathdirs="$ltrpathdirs $found_dir"
4627 fi
4628 if test "$hardcode_direct" = yes; then
4629 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4630 else
4631 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4632 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4633 haveit=
4634 for x in $rpathdirs; do
4635 if test "X$x" = "X$found_dir"; then
4636 haveit=yes
4637 break
4638 fi
4639 done
4640 if test -z "$haveit"; then
4641 rpathdirs="$rpathdirs $found_dir"
4642 fi
4643 else
4644 haveit=
4645 for x in $LDFLAGS $LIBINTL; do
4646
4647 acl_save_prefix="$prefix"
4648 prefix="$acl_final_prefix"
4649 acl_save_exec_prefix="$exec_prefix"
4650 exec_prefix="$acl_final_exec_prefix"
4651 eval x=\"$x\"
4652 exec_prefix="$acl_save_exec_prefix"
4653 prefix="$acl_save_prefix"
4654
4655 if test "X$x" = "X-L$found_dir"; then
4656 haveit=yes
4657 break
4658 fi
4659 done
4660 if test -z "$haveit"; then
4661 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4662 fi
4663 if test "$hardcode_minus_L" != no; then
4664 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4665 else
4666 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4667 fi
4668 fi
4669 fi
4670 fi
4671 else
4672 if test "X$found_a" != "X"; then
4673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4674 else
4675 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4676 fi
4677 fi
4678 additional_includedir=
4679 case "$found_dir" in
4680 */lib | */lib/)
4681 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4682 additional_includedir="$basedir/include"
4683 ;;
4684 esac
4685 if test "X$additional_includedir" != "X"; then
4686 if test "X$additional_includedir" != "X/usr/include"; then
4687 haveit=
4688 if test "X$additional_includedir" = "X/usr/local/include"; then
4689 if test -n "$GCC"; then
4690 case $host_os in
4691 linux*) haveit=yes;;
4692 esac
4693 fi
4694 fi
4695 if test -z "$haveit"; then
4696 for x in $CPPFLAGS $INCINTL; do
4697
4698 acl_save_prefix="$prefix"
4699 prefix="$acl_final_prefix"
4700 acl_save_exec_prefix="$exec_prefix"
4701 exec_prefix="$acl_final_exec_prefix"
4702 eval x=\"$x\"
4703 exec_prefix="$acl_save_exec_prefix"
4704 prefix="$acl_save_prefix"
4705
4706 if test "X$x" = "X-I$additional_includedir"; then
4707 haveit=yes
4708 break
4709 fi
4710 done
4711 if test -z "$haveit"; then
4712 if test -d "$additional_includedir"; then
4713 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4714 fi
4715 fi
4716 fi
4717 fi
4718 fi
4719 if test -n "$found_la"; then
4720 save_libdir="$libdir"
4721 case "$found_la" in
4722 */* | *\\*) . "$found_la" ;;
4723 *) . "./$found_la" ;;
4724 esac
4725 libdir="$save_libdir"
4726 for dep in $dependency_libs; do
4727 case "$dep" in
4728 -L*)
4729 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4730 if test "X$additional_libdir" != "X/usr/lib"; then
4731 haveit=
4732 if test "X$additional_libdir" = "X/usr/local/lib"; then
4733 if test -n "$GCC"; then
4734 case $host_os in
4735 linux*) haveit=yes;;
4736 esac
4737 fi
4738 fi
4739 if test -z "$haveit"; then
4740 haveit=
4741 for x in $LDFLAGS $LIBINTL; do
4742
4743 acl_save_prefix="$prefix"
4744 prefix="$acl_final_prefix"
4745 acl_save_exec_prefix="$exec_prefix"
4746 exec_prefix="$acl_final_exec_prefix"
4747 eval x=\"$x\"
4748 exec_prefix="$acl_save_exec_prefix"
4749 prefix="$acl_save_prefix"
4750
4751 if test "X$x" = "X-L$additional_libdir"; then
4752 haveit=yes
4753 break
4754 fi
4755 done
4756 if test -z "$haveit"; then
4757 if test -d "$additional_libdir"; then
4758 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4759 fi
4760 fi
4761 haveit=
4762 for x in $LDFLAGS $LTLIBINTL; do
4763
4764 acl_save_prefix="$prefix"
4765 prefix="$acl_final_prefix"
4766 acl_save_exec_prefix="$exec_prefix"
4767 exec_prefix="$acl_final_exec_prefix"
4768 eval x=\"$x\"
4769 exec_prefix="$acl_save_exec_prefix"
4770 prefix="$acl_save_prefix"
4771
4772 if test "X$x" = "X-L$additional_libdir"; then
4773 haveit=yes
4774 break
4775 fi
4776 done
4777 if test -z "$haveit"; then
4778 if test -d "$additional_libdir"; then
4779 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4780 fi
4781 fi
4782 fi
4783 fi
4784 ;;
4785 -R*)
4786 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4787 if test "$enable_rpath" != no; then
4788 haveit=
4789 for x in $rpathdirs; do
4790 if test "X$x" = "X$dir"; then
4791 haveit=yes
4792 break
4793 fi
4794 done
4795 if test -z "$haveit"; then
4796 rpathdirs="$rpathdirs $dir"
4797 fi
4798 haveit=
4799 for x in $ltrpathdirs; do
4800 if test "X$x" = "X$dir"; then
4801 haveit=yes
4802 break
4803 fi
4804 done
4805 if test -z "$haveit"; then
4806 ltrpathdirs="$ltrpathdirs $dir"
4807 fi
4808 fi
4809 ;;
4810 -l*)
4811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4812 ;;
4813 *.la)
4814 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4815 ;;
4816 *)
4817 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4818 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4819 ;;
4820 esac
4821 done
4822 fi
4823 else
4824 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4826 fi
4827 fi
4828 fi
4829 done
4830 done
4831 if test "X$rpathdirs" != "X"; then
4832 if test -n "$hardcode_libdir_separator"; then
4833 alldirs=
4834 for found_dir in $rpathdirs; do
4835 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4836 done
4837 acl_save_libdir="$libdir"
4838 libdir="$alldirs"
4839 eval flag=\"$hardcode_libdir_flag_spec\"
4840 libdir="$acl_save_libdir"
4841 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4842 else
4843 for found_dir in $rpathdirs; do
4844 acl_save_libdir="$libdir"
4845 libdir="$found_dir"
4846 eval flag=\"$hardcode_libdir_flag_spec\"
4847 libdir="$acl_save_libdir"
4848 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4849 done
4850 fi
4851 fi
4852 if test "X$ltrpathdirs" != "X"; then
4853 for found_dir in $ltrpathdirs; do
4854 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4855 done
4856 fi
4857
4858 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4859 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
4860 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 gt_save_CPPFLAGS="$CPPFLAGS"
4864 CPPFLAGS="$CPPFLAGS $INCINTL"
4865 gt_save_LIBS="$LIBS"
4866 LIBS="$LIBS $LIBINTL"
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <libintl.h>
4874 extern int _nl_msg_cat_cntr;
4875 extern
4876 #ifdef __cplusplus
4877 "C"
4878 #endif
4879 const char *_nl_expand_alias ();
4880 int
4881 main ()
4882 {
4883 bindtextdomain ("", "");
4884 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext conftest$ac_exeext
4890 if { (ac_try="$ac_link"
4891 case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894 esac
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 (eval "$ac_link") 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest$ac_exeext &&
4906 $as_test_x conftest$ac_exeext; then
4907 gt_cv_func_gnugettext1_libintl=yes
4908 else
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 gt_cv_func_gnugettext1_libintl=no
4913 fi
4914
4915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4916 conftest$ac_exeext conftest.$ac_ext
4917 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4918 LIBS="$LIBS $LIBICONV"
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 #include <libintl.h>
4926 extern int _nl_msg_cat_cntr;
4927 extern
4928 #ifdef __cplusplus
4929 "C"
4930 #endif
4931 const char *_nl_expand_alias ();
4932 int
4933 main ()
4934 {
4935 bindtextdomain ("", "");
4936 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 rm -f conftest.$ac_objext conftest$ac_exeext
4942 if { (ac_try="$ac_link"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_link") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest$ac_exeext &&
4958 $as_test_x conftest$ac_exeext; then
4959 LIBINTL="$LIBINTL $LIBICONV"
4960 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4961 gt_cv_func_gnugettext1_libintl=yes
4962
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967
4968 fi
4969
4970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4971 conftest$ac_exeext conftest.$ac_ext
4972 fi
4973 CPPFLAGS="$gt_save_CPPFLAGS"
4974 LIBS="$gt_save_LIBS"
4975 fi
4976 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4977 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
4978 fi
4979
4980 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4981 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4982 && test "$PACKAGE" != gettext; }; then
4983 gt_use_preinstalled_gnugettext=yes
4984 else
4985 LIBINTL=
4986 LTLIBINTL=
4987 INCINTL=
4988 fi
4989
4990
4991
4992 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4993 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4994
4995 cat >>confdefs.h <<\_ACEOF
4996 #define ENABLE_NLS 1
4997 _ACEOF
4998
4999 else
5000 USE_NLS=no
5001 fi
5002 fi
5003
5004 if test "$USE_NLS" = "yes"; then
5005
5006 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5007 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5008 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5009 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5010 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5011 echo "${ECHO_T}$LIBINTL" >&6; }
5012
5013 for element in $INCINTL; do
5014 haveit=
5015 for x in $CPPFLAGS; do
5016
5017 acl_save_prefix="$prefix"
5018 prefix="$acl_final_prefix"
5019 acl_save_exec_prefix="$exec_prefix"
5020 exec_prefix="$acl_final_exec_prefix"
5021 eval x=\"$x\"
5022 exec_prefix="$acl_save_exec_prefix"
5023 prefix="$acl_save_prefix"
5024
5025 if test "X$x" = "X$element"; then
5026 haveit=yes
5027 break
5028 fi
5029 done
5030 if test -z "$haveit"; then
5031 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5032 fi
5033 done
5034
5035 fi
5036
5037
5038 cat >>confdefs.h <<\_ACEOF
5039 #define HAVE_GETTEXT 1
5040 _ACEOF
5041
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define HAVE_DCGETTEXT 1
5045 _ACEOF
5046
5047 fi
5048
5049 POSUB=po
5050 fi
5051
5052
5053
5054 INTLLIBS="$LIBINTL"
5055
5056
5057
5058
5059
5060
5061
5062
5063 # Enable GNU extensions.
5064 # Define this here, not in acconfig's @TOP@ section, since definitions
5065 # in the latter don't make it into the configure-time tests.
5066
5067 cat >>confdefs.h <<\_ACEOF
5068 #define _GNU_SOURCE 1
5069 _ACEOF
5070
5071
5072 # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5073
5074 ALL_LINGUAS=""
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5086 if test "${ac_cv_prog_CC+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 if test -n "$CC"; then
5090 ac_cv_prog_CC="$CC" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 CC=$ac_cv_prog_CC
5110 if test -n "$CC"; then
5111 { echo "$as_me:$LINENO: result: $CC" >&5
5112 echo "${ECHO_T}$CC" >&6; }
5113 else
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116 fi
5117
5118
5119 fi
5120 if test -z "$ac_cv_prog_CC"; then
5121 ac_ct_CC=$CC
5122 # Extract the first word of "gcc", so it can be a program name with args.
5123 set dummy gcc; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5