Adapted for use on cluster (using MPI/OMP) parallelised gpiv_rr from gpivtools)
[gpiv.git] / configure
blob12e1fa5f9e950098f95c80a0cabeebea0200ad4f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gpiv 0.5.2.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='gpiv'
576 PACKAGE_TARNAME='gpiv'
577 PACKAGE_VERSION='0.5.2'
578 PACKAGE_STRING='gpiv 0.5.2'
579 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv'
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 INSTALL_PROGRAM
655 INSTALL_SCRIPT
656 INSTALL_DATA
657 CYGPATH_W
658 PACKAGE
659 VERSION
660 ACLOCAL
661 AUTOCONF
662 AUTOMAKE
663 AUTOHEADER
664 MAKEINFO
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 mkdir_p
670 SET_MAKE
671 am__leading_dot
672 AMTAR
673 am__tar
674 am__untar
675 MAINTAINER_MODE_TRUE
676 MAINTAINER_MODE_FALSE
677 MAINT
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
685 DEPDIR
686 am__include
687 am__quote
688 AMDEP_TRUE
689 AMDEP_FALSE
690 AMDEPBACKSLASH
691 CCDEPMODE
692 am__fastdepCC_TRUE
693 am__fastdepCC_FALSE
695 GREP
696 EGREP
697 PKG_CONFIG
698 GPIV_UI_CFLAGS
699 GPIV_UI_LIBS
700 GPIV_PRINT_CFLAGS
701 GPIV_PRINT_LIBS
702 GPIV_CFLAGS
703 GPIV_LIBS
704 GETTEXT_PACKAGE
705 USE_NLS
706 MSGFMT
707 MSGFMT_OPTS
708 GMSGFMT
709 XGETTEXT
710 CATALOGS
711 CATOBJEXT
712 DATADIRNAME
713 GMOFILES
714 INSTOBJEXT
715 INTLLIBS
716 PO_IN_DATADIR_TRUE
717 PO_IN_DATADIR_FALSE
718 POFILES
719 POSUB
720 MKINSTALLDIRS
721 INTLTOOL_UPDATE
722 INTLTOOL_MERGE
723 INTLTOOL_EXTRACT
724 INTLTOOL_DESKTOP_RULE
725 INTLTOOL_DIRECTORY_RULE
726 INTLTOOL_KEYS_RULE
727 INTLTOOL_PROP_RULE
728 INTLTOOL_OAF_RULE
729 INTLTOOL_PONG_RULE
730 INTLTOOL_SERVER_RULE
731 INTLTOOL_SHEET_RULE
732 INTLTOOL_SOUNDLIST_RULE
733 INTLTOOL_UI_RULE
734 INTLTOOL_XAM_RULE
735 INTLTOOL_KBD_RULE
736 INTLTOOL_XML_RULE
737 INTLTOOL_XML_NOMERGE_RULE
738 INTLTOOL_CAVES_RULE
739 INTLTOOL_SCHEMAS_RULE
740 INTLTOOL_THEME_RULE
741 INTLTOOL_SERVICE_RULE
742 INTLTOOL_POLICY_RULE
743 MSGMERGE
744 INTLTOOL_PERL
745 ALL_LINGUAS
746 ENABLE_CAM
747 ENABLE_TRIG
748 ENABLE_DAC
749 CONTROL
750 HAVE_CONTROL_TRUE
751 HAVE_CONTROL_FALSE
752 RTA_TOPDIR
753 K_TOPDIR
754 OVERRIDE_IMAGE_WIDTH_MAX
755 OVERRIDE_IMAGE_HEIGHT_MAX
756 CANVAS_AA
757 DEBUG
758 ENABLE_MPI
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files=''
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
771 PKG_CONFIG
772 GPIV_UI_CFLAGS
773 GPIV_UI_LIBS
774 GPIV_PRINT_CFLAGS
775 GPIV_PRINT_LIBS
776 GPIV_CFLAGS
777 GPIV_LIBS'
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
826 ac_prev=
827 ac_dashdash=
828 for ac_option
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_$ac_feature=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
899 -enable-* | --enable-*)
900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_$ac_feature=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 libdir=$ac_optarg ;;
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 mandir=$ac_optarg ;;
980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
986 no_create=yes ;;
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
1071 site=$ac_optarg ;;
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1096 -with-* | --with-*)
1097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_$ac_package=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1176 done
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1221 echo X"$0" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1230 /^X\(\/\/\)$/{
1231 s//\1/
1234 /^X\(\/\).*/{
1235 s//\1/
1238 s/.*/./; q'`
1239 srcdir=$ac_confdir
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 srcdir=..
1243 else
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures gpiv 0.5.2 to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/gpiv]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1335 cat <<\_ACEOF
1337 Program names:
1338 --program-prefix=PREFIX prepend PREFIX to installed program names
1339 --program-suffix=SUFFIX append SUFFIX to installed program names
1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1341 _ACEOF
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of gpiv 0.5.2:";;
1347 esac
1348 cat <<\_ACEOF
1350 Optional Features:
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --enable-maintainer-mode enable make rules and dependencies not useful
1354 (and sometimes confusing) to the casual installer
1355 --disable-dependency-tracking speeds up one-time build
1356 --enable-dependency-tracking do not reject slow dependency extractors
1357 --enable-cam enable data acquisition
1358 --enable-trig enable (realtime) triggering
1359 --enable-rta=RTA_DIR place where the RTAI code resides
1360 (default /usr/lib/realtime)
1361 --enable-k=K_DIR place where the installed kernel
1362 headers resides
1363 (default /usr/src/kernel-headers-2.4.27-adeos)
1364 --enable-img-width=WIDTH maximum image width to be used (default SVGA)
1365 --enable-img-height=HEIGHT maximum image height to be used (default SVGA)
1366 --enable-canvas-aa Use Anti Aliased canvas for viewer; slower but
1367 better displaying of image and resulting data
1368 --enable-debug debug version (more verbose)
1369 --enable-mpi enable Message Protocol Interface (MPI)
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CPP C preprocessor
1380 PKG_CONFIG path to pkg-config utility
1381 GPIV_UI_CFLAGS
1382 C compiler flags for GPIV_UI, overriding pkg-config
1383 GPIV_UI_LIBS
1384 linker flags for GPIV_UI, overriding pkg-config
1385 GPIV_PRINT_CFLAGS
1386 C compiler flags for GPIV_PRINT, overriding pkg-config
1387 GPIV_PRINT_LIBS
1388 linker flags for GPIV_PRINT, overriding pkg-config
1389 GPIV_CFLAGS C compiler flags for GPIV, overriding pkg-config
1390 GPIV_LIBS linker flags for GPIV, overriding pkg-config
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
1396 _ACEOF
1397 ac_status=$?
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=.
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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
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
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
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 gpiv configure 0.5.2
1457 generated by GNU Autoconf 2.61
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
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.
1470 It was created by gpiv $as_me 0.5.2, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1473 $ $0 $@
1475 _ACEOF
1476 exec 5>>config.log
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
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`
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`
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`
1500 _ASUNAME
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1511 } >&5
1513 cat >&5 <<_ACEOF
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1520 _ACEOF
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
1534 for ac_arg
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'" ;;
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
1560 -* ) ac_must_keep_next=true ;;
1561 esac
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1579 echo
1581 cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586 echo
1587 # The following way of writing the cache mishandles newlines in values,
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 ;; #(
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613 esac |
1614 sort
1616 echo
1618 cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_vars
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
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
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
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
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
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
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
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"
1715 shift
1716 for ac_site_file
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"
1724 done
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
1737 else
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1740 >$cache_file
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 ,);;
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
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; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 am__api_version="1.9"
1824 ac_aux_dir=
1825 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1826 if test -f "$ac_dir/install-sh"; then
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/install-sh -c"
1829 break
1830 elif test -f "$ac_dir/install.sh"; then
1831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/install.sh -c"
1833 break
1834 elif test -f "$ac_dir/shtool"; then
1835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/shtool install -c"
1837 break
1839 done
1840 if test -z "$ac_aux_dir"; then
1841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1842 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1843 { (exit 1); exit 1; }; }
1846 # These three variables are undocumented and unsupported,
1847 # and are intended to be withdrawn in a future Autoconf release.
1848 # They can cause serious problems if a builder's source tree is in a directory
1849 # whose full name contains unusual characters.
1850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1855 # Find a good install program. We prefer a C program (faster),
1856 # so one script is as good as another. But avoid the broken or
1857 # incompatible versions:
1858 # SysV /etc/install, /usr/sbin/install
1859 # SunOS /usr/etc/install
1860 # IRIX /sbin/install
1861 # AIX /bin/install
1862 # AmigaOS /C/install, which installs bootblocks on floppy discs
1863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1866 # OS/2's system install, which has a completely different semantic
1867 # ./install, which can be erroneously created by make from ./install.sh.
1868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1870 if test -z "$INSTALL"; then
1871 if test "${ac_cv_path_install+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 # Account for people who put trailing slashes in PATH elements.
1880 case $as_dir/ in
1881 ./ | .// | /cC/* | \
1882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1884 /usr/ucb/* ) ;;
1886 # OSF1 and SCO ODT 3.0 have their own names for install.
1887 # Don't use installbsd from OSF since it installs stuff as root
1888 # by default.
1889 for ac_prog in ginstall scoinst install; do
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1892 if test $ac_prog = install &&
1893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1894 # AIX install. It has an incompatible calling convention.
1896 elif test $ac_prog = install &&
1897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1898 # program-specific install script used by HP pwplus--don't use.
1900 else
1901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1902 break 3
1905 done
1906 done
1908 esac
1909 done
1910 IFS=$as_save_IFS
1914 if test "${ac_cv_path_install+set}" = set; then
1915 INSTALL=$ac_cv_path_install
1916 else
1917 # As a last resort, use the slow shell script. Don't cache a
1918 # value for INSTALL within a source directory, because that will
1919 # break other packages using the cache if that directory is
1920 # removed, or if the value is a relative name.
1921 INSTALL=$ac_install_sh
1924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1925 echo "${ECHO_T}$INSTALL" >&6; }
1927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1928 # It thinks the first close brace ends the variable substitution.
1929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1935 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1936 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1937 # Just in case
1938 sleep 1
1939 echo timestamp > conftest.file
1940 # Do `set' in a subshell so we don't clobber the current shell's
1941 # arguments. Must try -L first in case configure is actually a
1942 # symlink; some systems play weird games with the mod time of symlinks
1943 # (eg FreeBSD returns the mod time of the symlink's containing
1944 # directory).
1945 if (
1946 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1947 if test "$*" = "X"; then
1948 # -L didn't work.
1949 set X `ls -t $srcdir/configure conftest.file`
1951 rm -f conftest.file
1952 if test "$*" != "X $srcdir/configure conftest.file" \
1953 && test "$*" != "X conftest.file $srcdir/configure"; then
1955 # If neither matched, then we have a broken ls. This can happen
1956 # if, for instance, CONFIG_SHELL is bash and it inherits a
1957 # broken ls alias from the environment. This has actually
1958 # happened. Such a system could not be considered "sane".
1959 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1960 alias in your environment" >&5
1961 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1962 alias in your environment" >&2;}
1963 { (exit 1); exit 1; }; }
1966 test "$2" = conftest.file
1968 then
1969 # Ok.
1971 else
1972 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1973 Check your system clock" >&5
1974 echo "$as_me: error: newly created file is older than distributed files!
1975 Check your system clock" >&2;}
1976 { (exit 1); exit 1; }; }
1978 { echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6; }
1980 test "$program_prefix" != NONE &&
1981 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1982 # Use a double $ so make ignores it.
1983 test "$program_suffix" != NONE &&
1984 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1985 # Double any \ or $. echo might interpret backslashes.
1986 # By default was `s,x,x', remove it if useless.
1987 cat <<\_ACEOF >conftest.sed
1988 s/[\\$]/&&/g;s/;s,x,x,$//
1989 _ACEOF
1990 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1991 rm -f conftest.sed
1993 # expand $ac_aux_dir to an absolute path
1994 am_aux_dir=`cd $ac_aux_dir && pwd`
1996 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1997 # Use eval to expand $SHELL
1998 if eval "$MISSING --run true"; then
1999 am_missing_run="$MISSING --run "
2000 else
2001 am_missing_run=
2002 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2003 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2006 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2007 # We used to keeping the `.' as first argument, in order to
2008 # allow $(mkdir_p) to be used without argument. As in
2009 # $(mkdir_p) $(somedir)
2010 # where $(somedir) is conditionally defined. However this is wrong
2011 # for two reasons:
2012 # 1. if the package is installed by a user who cannot write `.'
2013 # make install will fail,
2014 # 2. the above comment should most certainly read
2015 # $(mkdir_p) $(DESTDIR)$(somedir)
2016 # so it does not work when $(somedir) is undefined and
2017 # $(DESTDIR) is not.
2018 # To support the latter case, we have to write
2019 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2020 # so the `.' trick is pointless.
2021 mkdir_p='mkdir -p --'
2022 else
2023 # On NextStep and OpenStep, the `mkdir' command does not
2024 # recognize any option. It will interpret all options as
2025 # directories to create, and then abort because `.' already
2026 # exists.
2027 for d in ./-p ./--version;
2029 test -d $d && rmdir $d
2030 done
2031 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2032 if test -f "$ac_aux_dir/mkinstalldirs"; then
2033 mkdir_p='$(mkinstalldirs)'
2034 else
2035 mkdir_p='$(install_sh) -d'
2039 for ac_prog in gawk mawk nawk awk
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_AWK+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$AWK"; then
2049 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_AWK="$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2062 done
2063 done
2064 IFS=$as_save_IFS
2068 AWK=$ac_cv_prog_AWK
2069 if test -n "$AWK"; then
2070 { echo "$as_me:$LINENO: result: $AWK" >&5
2071 echo "${ECHO_T}$AWK" >&6; }
2072 else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2078 test -n "$AWK" && break
2079 done
2081 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2083 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 cat >conftest.make <<\_ACEOF
2088 SHELL = /bin/sh
2089 all:
2090 @echo '@@@%%%=$(MAKE)=@@@%%%'
2091 _ACEOF
2092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2094 *@@@%%%=?*=@@@%%%*)
2095 eval ac_cv_prog_make_${ac_make}_set=yes;;
2097 eval ac_cv_prog_make_${ac_make}_set=no;;
2098 esac
2099 rm -f conftest.make
2101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2102 { echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6; }
2104 SET_MAKE=
2105 else
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2108 SET_MAKE="MAKE=${MAKE-make}"
2111 rm -rf .tst 2>/dev/null
2112 mkdir .tst 2>/dev/null
2113 if test -d .tst; then
2114 am__leading_dot=.
2115 else
2116 am__leading_dot=_
2118 rmdir .tst 2>/dev/null
2120 # test to see if srcdir already configured
2121 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2122 test -f $srcdir/config.status; then
2123 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2124 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2125 { (exit 1); exit 1; }; }
2128 # test whether we have cygpath
2129 if test -z "$CYGPATH_W"; then
2130 if (cygpath --version) >/dev/null 2>/dev/null; then
2131 CYGPATH_W='cygpath -w'
2132 else
2133 CYGPATH_W=echo
2138 # Define the identity of the package.
2139 PACKAGE=gpiv
2140 VERSION=0.5.2
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE "$PACKAGE"
2145 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define VERSION "$VERSION"
2150 _ACEOF
2152 # Some tools Automake needs.
2154 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2157 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2160 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2163 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2166 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2168 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2170 # Installed binaries are usually stripped using `strip' when the user
2171 # run `make install-strip'. However `strip' might not be the right
2172 # tool to use in cross-compilation environments, therefore Automake
2173 # will honor the `STRIP' environment variable to overrule this program.
2174 if test "$cross_compiling" != no; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}strip; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_STRIP+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$STRIP"; then
2184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2197 done
2198 done
2199 IFS=$as_save_IFS
2203 STRIP=$ac_cv_prog_STRIP
2204 if test -n "$STRIP"; then
2205 { echo "$as_me:$LINENO: result: $STRIP" >&5
2206 echo "${ECHO_T}$STRIP" >&6; }
2207 else
2208 { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2214 if test -z "$ac_cv_prog_STRIP"; then
2215 ac_ct_STRIP=$STRIP
2216 # Extract the first word of "strip", so it can be a program name with args.
2217 set dummy strip; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$ac_ct_STRIP"; then
2224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_ac_ct_STRIP="strip"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2239 IFS=$as_save_IFS
2243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2244 if test -n "$ac_ct_STRIP"; then
2245 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2246 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2247 else
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2252 if test "x$ac_ct_STRIP" = x; then
2253 STRIP=":"
2254 else
2255 case $cross_compiling:$ac_tool_warned in
2256 yes:)
2257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2258 whose name does not start with the host triplet. If you think this
2259 configuration is useful to you, please write to autoconf@gnu.org." >&5
2260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2261 whose name does not start with the host triplet. If you think this
2262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2263 ac_tool_warned=yes ;;
2264 esac
2265 STRIP=$ac_ct_STRIP
2267 else
2268 STRIP="$ac_cv_prog_STRIP"
2272 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2274 # We need awk for the "check" target. The system "awk" is bad on
2275 # some platforms.
2276 # Always define AMTAR for backward compatibility.
2278 AMTAR=${AMTAR-"${am_missing_run}tar"}
2280 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2286 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2287 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2288 # Check whether --enable-maintainer-mode was given.
2289 if test "${enable_maintainer_mode+set}" = set; then
2290 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2291 else
2292 USE_MAINTAINER_MODE=no
2295 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2296 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2299 if test $USE_MAINTAINER_MODE = yes; then
2300 MAINTAINER_MODE_TRUE=
2301 MAINTAINER_MODE_FALSE='#'
2302 else
2303 MAINTAINER_MODE_TRUE='#'
2304 MAINTAINER_MODE_FALSE=
2307 MAINT=$MAINTAINER_MODE_TRUE
2312 DEPDIR="${am__leading_dot}deps"
2314 ac_config_commands="$ac_config_commands depfiles"
2317 am_make=${MAKE-make}
2318 cat > confinc << 'END'
2319 am__doit:
2320 @echo done
2321 .PHONY: am__doit
2323 # If we don't find an include directive, just comment out the code.
2324 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2325 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2326 am__include="#"
2327 am__quote=
2328 _am_result=none
2329 # First try GNU make style include.
2330 echo "include confinc" > confmf
2331 # We grep out `Entering directory' and `Leaving directory'
2332 # messages which can occur if `w' ends up in MAKEFLAGS.
2333 # In particular we don't look at `^make:' because GNU make might
2334 # be invoked under some other name (usually "gmake"), in which
2335 # case it prints its new name instead of `make'.
2336 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2337 am__include=include
2338 am__quote=
2339 _am_result=GNU
2341 # Now try BSD make style include.
2342 if test "$am__include" = "#"; then
2343 echo '.include "confinc"' > confmf
2344 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2345 am__include=.include
2346 am__quote="\""
2347 _am_result=BSD
2352 { echo "$as_me:$LINENO: result: $_am_result" >&5
2353 echo "${ECHO_T}$_am_result" >&6; }
2354 rm -f confinc confmf
2356 # Check whether --enable-dependency-tracking was given.
2357 if test "${enable_dependency_tracking+set}" = set; then
2358 enableval=$enable_dependency_tracking;
2361 if test "x$enable_dependency_tracking" != xno; then
2362 am_depcomp="$ac_aux_dir/depcomp"
2363 AMDEPBACKSLASH='\'
2367 if test "x$enable_dependency_tracking" != xno; then
2368 AMDEP_TRUE=
2369 AMDEP_FALSE='#'
2370 else
2371 AMDEP_TRUE='#'
2372 AMDEP_FALSE=
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2404 done
2405 done
2406 IFS=$as_save_IFS
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412 { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2414 else
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2421 if test -z "$ac_cv_prog_CC"; then
2422 ac_ct_CC=$CC
2423 # Extract the first word of "gcc", so it can be a program name with args.
2424 set dummy gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$ac_ct_CC"; then
2431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_ac_ct_CC="gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2444 done
2445 done
2446 IFS=$as_save_IFS
2450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451 if test -n "$ac_ct_CC"; then
2452 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453 echo "${ECHO_T}$ac_ct_CC" >&6; }
2454 else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2459 if test "x$ac_ct_CC" = x; then
2460 CC=""
2461 else
2462 case $cross_compiling:$ac_tool_warned in
2463 yes:)
2464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&5
2467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet. If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2470 ac_tool_warned=yes ;;
2471 esac
2472 CC=$ac_ct_CC
2474 else
2475 CC="$ac_cv_prog_CC"
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}cc; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_CC="${ac_tool_prefix}cc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2501 done
2502 done
2503 IFS=$as_save_IFS
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509 { echo "$as_me:$LINENO: result: $CC" >&5
2510 echo "${ECHO_T}$CC" >&6; }
2511 else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2519 if test -z "$CC"; then
2520 # Extract the first word of "cc", so it can be a program name with args.
2521 set dummy cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 ac_prog_rejected=no
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2539 ac_prog_rejected=yes
2540 continue
2542 ac_cv_prog_CC="cc"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2546 done
2547 done
2548 IFS=$as_save_IFS
2550 if test $ac_prog_rejected = yes; then
2551 # We found a bogon in the path, so make sure we never use it.
2552 set dummy $ac_cv_prog_CC
2553 shift
2554 if test $# != 0; then
2555 # We chose a different compiler from the bogus one.
2556 # However, it has the same basename, so the bogon will be chosen
2557 # first if we set CC to just the basename; use the full file name.
2558 shift
2559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2568 else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2575 if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608 { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2610 else
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2616 test -n "$CC" && break
2617 done
2619 if test -z "$CC"; then
2620 ac_ct_CC=$CC
2621 for ac_prog in cl.exe
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_CC="$ac_prog"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2644 done
2645 done
2646 IFS=$as_save_IFS
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 else
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2660 test -n "$ac_ct_CC" && break
2661 done
2663 if test "x$ac_ct_CC" = x; then
2664 CC=""
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&5
2671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet. If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676 CC=$ac_ct_CC
2683 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&2;}
2687 { (exit 1); exit 1; }; }
2689 # Provide some information about the compiler.
2690 echo "$as_me:$LINENO: checking for C compiler version" >&5
2691 ac_compiler=`set X $ac_compile; echo $2`
2692 { (ac_try="$ac_compiler --version >&5"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler --version >&5") 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2702 { (ac_try="$ac_compiler -v >&5"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler -v >&5") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -V >&5"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -V >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 ac_clean_files_save=$ac_clean_files
2739 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2740 # Try to create an executable without -o first, disregard a.out.
2741 # It will help us diagnose broken compilers, and finding out an intuition
2742 # of exeext.
2743 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2744 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2745 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2747 # List of possible output files, starting from the most likely.
2748 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2749 # only as a last resort. b.out is created by i960 compilers.
2750 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2752 # The IRIX 6 linker writes into existing files which may not be
2753 # executable, retaining their permissions. Remove them first so a
2754 # subsequent execution test works.
2755 ac_rmfiles=
2756 for ac_file in $ac_files
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2761 esac
2762 done
2763 rm -f $ac_rmfiles
2765 if { (ac_try="$ac_link_default"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_link_default") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; then
2775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2776 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2777 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2778 # so that the user can short-circuit this test for compilers unknown to
2779 # Autoconf.
2780 for ac_file in $ac_files ''
2782 test -f "$ac_file" || continue
2783 case $ac_file in
2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2786 [ab].out )
2787 # We found the default executable, but exeext='' is most
2788 # certainly right.
2789 break;;
2790 *.* )
2791 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2792 then :; else
2793 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795 # We set ac_cv_exeext here because the later test for it is not
2796 # safe: cross compilers may not add the suffix if given an `-o'
2797 # argument, so we may need to know it at that point already.
2798 # Even if this section looks crufty: it has the advantage of
2799 # actually working.
2800 break;;
2802 break;;
2803 esac
2804 done
2805 test "$ac_cv_exeext" = no && ac_cv_exeext=
2807 else
2808 ac_file=''
2811 { echo "$as_me:$LINENO: result: $ac_file" >&5
2812 echo "${ECHO_T}$ac_file" >&6; }
2813 if test -z "$ac_file"; then
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&5
2819 echo "$as_me: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&2;}
2821 { (exit 77); exit 77; }; }
2824 ac_exeext=$ac_cv_exeext
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2831 # If not cross compiling, check that we can run a simple program.
2832 if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
2834 { (case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_try") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 cross_compiling=no
2844 else
2845 if test "$cross_compiling" = maybe; then
2846 cross_compiling=yes
2847 else
2848 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&5
2851 echo "$as_me: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2858 { echo "$as_me:$LINENO: result: yes" >&5
2859 echo "${ECHO_T}yes" >&6; }
2861 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2867 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 echo "${ECHO_T}$cross_compiling" >&6; }
2870 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2872 if { (ac_try="$ac_link"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_link") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 # `rm'.
2886 for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 break;;
2892 * ) break;;
2893 esac
2894 done
2895 else
2896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&5
2898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2903 rm -f conftest$ac_cv_exeext
2904 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2905 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2907 rm -f conftest.$ac_ext
2908 EXEEXT=$ac_cv_exeext
2909 ac_exeext=$EXEEXT
2910 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2912 if test "${ac_cv_objext+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2923 main ()
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.o conftest.obj
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
2941 for ac_file in conftest.o conftest.obj conftest.*; do
2942 test -f "$ac_file" || continue;
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2946 break;;
2947 esac
2948 done
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2956 See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
2960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2963 echo "${ECHO_T}$ac_cv_objext" >&6; }
2964 OBJEXT=$ac_cv_objext
2965 ac_objext=$OBJEXT
2966 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2981 #ifndef __GNUC__
2982 choke me
2983 #endif
2986 return 0;
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>conftest.er1
2997 ac_status=$?
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } && {
3003 test -z "$ac_c_werror_flag" ||
3004 test ! -s conftest.err
3005 } && test -s conftest.$ac_objext; then
3006 ac_compiler_gnu=yes
3007 else
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 ac_compiler_gnu=no
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3018 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3020 GCC=`test $ac_compiler_gnu = yes && echo yes`
3021 ac_test_CFLAGS=${CFLAGS+set}
3022 ac_save_CFLAGS=$CFLAGS
3023 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3024 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3025 if test "${ac_cv_prog_cc_g+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 ac_save_c_werror_flag=$ac_c_werror_flag
3029 ac_c_werror_flag=yes
3030 ac_cv_prog_cc_g=no
3031 CFLAGS="-g"
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3064 ac_cv_prog_cc_g=yes
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 CFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3078 main ()
3082 return 0;
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_c_werror_flag=$ac_save_c_werror_flag
3108 CFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3117 main ()
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 ac_cv_prog_cc_g=yes
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3158 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3159 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3160 if test "$ac_test_CFLAGS" = set; then
3161 CFLAGS=$ac_save_CFLAGS
3162 elif test $ac_cv_prog_cc_g = yes; then
3163 if test "$GCC" = yes; then
3164 CFLAGS="-g -O2"
3165 else
3166 CFLAGS="-g"
3168 else
3169 if test "$GCC" = yes; then
3170 CFLAGS="-O2"
3171 else
3172 CFLAGS=
3175 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3176 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_cc_c89+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 ac_cv_prog_cc_c89=no
3181 ac_save_CC=$CC
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <stdarg.h>
3189 #include <stdio.h>
3190 #include <sys/types.h>
3191 #include <sys/stat.h>
3192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193 struct buf { int x; };
3194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195 static char *e (p, i)
3196 char **p;
3197 int i;
3199 return p[i];
3201 static char *f (char * (*g) (char **, int), char **p, ...)
3203 char *s;
3204 va_list v;
3205 va_start (v,p);
3206 s = g (p, va_arg (v,int));
3207 va_end (v);
3208 return s;
3211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3222 #define FOO(x) 'x'
3223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225 int test (int i, double x);
3226 struct s1 {int (*f) (int a);};
3227 struct s2 {int (*f) (double a);};
3228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229 int argc;
3230 char **argv;
3232 main ()
3234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 return 0;
3238 _ACEOF
3239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 CC="$ac_save_CC $ac_arg"
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3260 ac_cv_prog_cc_c89=$ac_arg
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3268 rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
3270 done
3271 rm -f conftest.$ac_ext
3272 CC=$ac_save_CC
3275 # AC_CACHE_VAL
3276 case "x$ac_cv_prog_cc_c89" in
3278 { echo "$as_me:$LINENO: result: none needed" >&5
3279 echo "${ECHO_T}none needed" >&6; } ;;
3280 xno)
3281 { echo "$as_me:$LINENO: result: unsupported" >&5
3282 echo "${ECHO_T}unsupported" >&6; } ;;
3284 CC="$CC $ac_cv_prog_cc_c89"
3285 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3286 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3287 esac
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 depcc="$CC" am_compiler_list=
3298 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3299 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3300 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3304 # We make a subdir and do the tests there. Otherwise we can end up
3305 # making bogus files that we don't know about and never remove. For
3306 # instance it was reported that on HP-UX the gcc test will end up
3307 # making a dummy file named `D' -- because `-MD' means `put the output
3308 # in D'.
3309 mkdir conftest.dir
3310 # Copy depcomp to subdir because otherwise we won't find it if we're
3311 # using a relative directory.
3312 cp "$am_depcomp" conftest.dir
3313 cd conftest.dir
3314 # We will build objects and dependencies in a subdirectory because
3315 # it helps to detect inapplicable dependency modes. For instance
3316 # both Tru64's cc and ICC support -MD to output dependencies as a
3317 # side effect of compilation, but ICC will put the dependencies in
3318 # the current directory while Tru64 will put them in the object
3319 # directory.
3320 mkdir sub
3322 am_cv_CC_dependencies_compiler_type=none
3323 if test "$am_compiler_list" = ""; then
3324 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3326 for depmode in $am_compiler_list; do
3327 # Setup a source with many dependencies, because some compilers
3328 # like to wrap large dependency lists on column 80 (with \), and
3329 # we should not choose a depcomp mode which is confused by this.
3331 # We need to recreate these files for each test, as the compiler may
3332 # overwrite some of them when testing with obscure command lines.
3333 # This happens at least with the AIX C compiler.
3334 : > sub/conftest.c
3335 for i in 1 2 3 4 5 6; do
3336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3337 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3338 # Solaris 8's {/usr,}/bin/sh.
3339 touch sub/conftst$i.h
3340 done
3341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3343 case $depmode in
3344 nosideeffect)
3345 # after this tag, mechanisms are not by side-effect, so they'll
3346 # only be used when explicitly requested
3347 if test "x$enable_dependency_tracking" = xyes; then
3348 continue
3349 else
3350 break
3353 none) break ;;
3354 esac
3355 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3356 # mode. It turns out that the SunPro C++ compiler does not properly
3357 # handle `-M -o', and we need to detect this.
3358 if depmode=$depmode \
3359 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3361 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3362 >/dev/null 2>conftest.err &&
3363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3364 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3366 # icc doesn't choke on unknown options, it will just issue warnings
3367 # or remarks (even with -Werror). So we grep stderr for any message
3368 # that says an option was ignored or not supported.
3369 # When given -MP, icc 7.0 and 7.1 complain thusly:
3370 # icc: Command line warning: ignoring option '-M'; no argument required
3371 # The diagnosis changed in icc 8.0:
3372 # icc: Command line remark: option '-MP' not supported
3373 if (grep 'ignoring option' conftest.err ||
3374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3375 am_cv_CC_dependencies_compiler_type=$depmode
3376 break
3379 done
3381 cd ..
3382 rm -rf conftest.dir
3383 else
3384 am_cv_CC_dependencies_compiler_type=none
3388 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3389 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3390 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3395 test "x$enable_dependency_tracking" != xno \
3396 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3397 am__fastdepCC_TRUE=
3398 am__fastdepCC_FALSE='#'
3399 else
3400 am__fastdepCC_TRUE='#'
3401 am__fastdepCC_FALSE=
3406 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3407 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3408 if test "${ac_cv_search_strerror+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 ac_func_search_save_LIBS=$LIBS
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3419 /* Override any GCC internal prototype to avoid an error.
3420 Use char because int might match the return type of a GCC
3421 builtin and then its argument prototype would still apply. */
3422 #ifdef __cplusplus
3423 extern "C"
3424 #endif
3425 char strerror ();
3427 main ()
3429 return strerror ();
3431 return 0;
3433 _ACEOF
3434 for ac_lib in '' cposix; do
3435 if test -z "$ac_lib"; then
3436 ac_res="none required"
3437 else
3438 ac_res=-l$ac_lib
3439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3441 rm -f conftest.$ac_objext conftest$ac_exeext
3442 if { (ac_try="$ac_link"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_link") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest$ac_exeext &&
3458 $as_test_x conftest$ac_exeext; then
3459 ac_cv_search_strerror=$ac_res
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3468 conftest$ac_exeext
3469 if test "${ac_cv_search_strerror+set}" = set; then
3470 break
3472 done
3473 if test "${ac_cv_search_strerror+set}" = set; then
3475 else
3476 ac_cv_search_strerror=no
3478 rm conftest.$ac_ext
3479 LIBS=$ac_func_search_save_LIBS
3481 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3482 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3483 ac_res=$ac_cv_search_strerror
3484 if test "$ac_res" != no; then
3485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3516 done
3517 done
3518 IFS=$as_save_IFS
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { echo "$as_me:$LINENO: result: $CC" >&5
3525 echo "${ECHO_T}$CC" >&6; }
3526 else
3527 { echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3565 echo "${ECHO_T}$ac_ct_CC" >&6; }
3566 else
3567 { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3577 whose name does not start with the host triplet. If you think this
3578 configuration is useful to you, please write to autoconf@gnu.org." >&5
3579 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3580 whose name does not start with the host triplet. If you think this
3581 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CC=$ac_ct_CC
3586 else
3587 CC="$ac_cv_prog_CC"
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}cc; ac_word=$2
3594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_CC="${ac_tool_prefix}cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621 { echo "$as_me:$LINENO: result: $CC" >&5
3622 echo "${ECHO_T}$CC" >&6; }
3623 else
3624 { echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6; }
3631 if test -z "$CC"; then
3632 # Extract the first word of "cc", so it can be a program name with args.
3633 set dummy cc; ac_word=$2
3634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 ac_prog_rejected=no
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected=yes
3652 continue
3654 ac_cv_prog_CC="cc"
3655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3660 IFS=$as_save_IFS
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { echo "$as_me:$LINENO: result: $CC" >&5
3679 echo "${ECHO_T}$CC" >&6; }
3680 else
3681 { echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6; }
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl.exe
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3714 IFS=$as_save_IFS
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720 { echo "$as_me:$LINENO: result: $CC" >&5
3721 echo "${ECHO_T}$CC" >&6; }
3722 else
3723 { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3728 test -n "$CC" && break
3729 done
3731 if test -z "$CC"; then
3732 ac_ct_CC=$CC
3733 for ac_prog in cl.exe
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_CC="$ac_prog"
3753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3756 done
3757 done
3758 IFS=$as_save_IFS
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3765 echo "${ECHO_T}$ac_ct_CC" >&6; }
3766 else
3767 { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3772 test -n "$ac_ct_CC" && break
3773 done
3775 if test "x$ac_ct_CC" = x; then
3776 CC=""
3777 else
3778 case $cross_compiling:$ac_tool_warned in
3779 yes:)
3780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3781 whose name does not start with the host triplet. If you think this
3782 configuration is useful to you, please write to autoconf@gnu.org." >&5
3783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3784 whose name does not start with the host triplet. If you think this
3785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3795 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." >&5
3797 echo "$as_me: error: no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." >&2;}
3799 { (exit 1); exit 1; }; }
3801 # Provide some information about the compiler.
3802 echo "$as_me:$LINENO: checking for C compiler version" >&5
3803 ac_compiler=`set X $ac_compile; echo $2`
3804 { (ac_try="$ac_compiler --version >&5"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compiler --version >&5") 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }
3814 { (ac_try="$ac_compiler -v >&5"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compiler -v >&5") 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }
3824 { (ac_try="$ac_compiler -V >&5"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compiler -V >&5") 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }
3835 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3836 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3837 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 main ()
3850 #ifndef __GNUC__
3851 choke me
3852 #endif
3855 return 0;
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (ac_try="$ac_compile"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_compile") 2>conftest.er1
3866 ac_status=$?
3867 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then
3875 ac_compiler_gnu=yes
3876 else
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_compiler_gnu=no
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3887 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3888 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3889 GCC=`test $ac_compiler_gnu = yes && echo yes`
3890 ac_test_CFLAGS=${CFLAGS+set}
3891 ac_save_CFLAGS=$CFLAGS
3892 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3893 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3894 if test "${ac_cv_prog_cc_g+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 ac_save_c_werror_flag=$ac_c_werror_flag
3898 ac_c_werror_flag=yes
3899 ac_cv_prog_cc_g=no
3900 CFLAGS="-g"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3909 main ()
3913 return 0;
3915 _ACEOF
3916 rm -f conftest.$ac_objext
3917 if { (ac_try="$ac_compile"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923 (eval "$ac_compile") 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } && {
3930 test -z "$ac_c_werror_flag" ||
3931 test ! -s conftest.err
3932 } && test -s conftest.$ac_objext; then
3933 ac_cv_prog_cc_g=yes
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 CFLAGS=""
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3947 main ()
3951 return 0;
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_c_werror_flag=$ac_save_c_werror_flag
3977 CFLAGS="-g"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest.$ac_objext; then
4010 ac_cv_prog_cc_g=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4029 if test "$ac_test_CFLAGS" = set; then
4030 CFLAGS=$ac_save_CFLAGS
4031 elif test $ac_cv_prog_cc_g = yes; then
4032 if test "$GCC" = yes; then
4033 CFLAGS="-g -O2"
4034 else
4035 CFLAGS="-g"
4037 else
4038 if test "$GCC" = yes; then
4039 CFLAGS="-O2"
4040 else
4041 CFLAGS=
4044 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4045 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4046 if test "${ac_cv_prog_cc_c89+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_cv_prog_cc_c89=no
4050 ac_save_CC=$CC
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <stdarg.h>
4058 #include <stdio.h>
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4065 char **p;
4066 int i;
4068 return p[i];
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4072 char *s;
4073 va_list v;
4074 va_start (v,p);
4075 s = g (p, va_arg (v,int));
4076 va_end (v);
4077 return s;
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4091 #define FOO(x) 'x'
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 int argc;
4099 char **argv;
4101 main ()
4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 return 0;
4107 _ACEOF
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 CC="$ac_save_CC $ac_arg"
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && {
4126 test -z "$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 } && test -s conftest.$ac_objext; then
4129 ac_cv_prog_cc_c89=$ac_arg
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4137 rm -f core conftest.err conftest.$ac_objext
4138 test "x$ac_cv_prog_cc_c89" != "xno" && break
4139 done
4140 rm -f conftest.$ac_ext
4141 CC=$ac_save_CC
4144 # AC_CACHE_VAL
4145 case "x$ac_cv_prog_cc_c89" in
4147 { echo "$as_me:$LINENO: result: none needed" >&5
4148 echo "${ECHO_T}none needed" >&6; } ;;
4149 xno)
4150 { echo "$as_me:$LINENO: result: unsupported" >&5
4151 echo "${ECHO_T}unsupported" >&6; } ;;
4153 CC="$CC $ac_cv_prog_cc_c89"
4154 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4155 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4156 esac
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 depcc="$CC" am_compiler_list=
4167 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4173 # We make a subdir and do the tests there. Otherwise we can end up
4174 # making bogus files that we don't know about and never remove. For
4175 # instance it was reported that on HP-UX the gcc test will end up
4176 # making a dummy file named `D' -- because `-MD' means `put the output
4177 # in D'.
4178 mkdir conftest.dir
4179 # Copy depcomp to subdir because otherwise we won't find it if we're
4180 # using a relative directory.
4181 cp "$am_depcomp" conftest.dir
4182 cd conftest.dir
4183 # We will build objects and dependencies in a subdirectory because
4184 # it helps to detect inapplicable dependency modes. For instance
4185 # both Tru64's cc and ICC support -MD to output dependencies as a
4186 # side effect of compilation, but ICC will put the dependencies in
4187 # the current directory while Tru64 will put them in the object
4188 # directory.
4189 mkdir sub
4191 am_cv_CC_dependencies_compiler_type=none
4192 if test "$am_compiler_list" = ""; then
4193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4203 : > sub/conftest.c
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4207 # Solaris 8's {/usr,}/bin/sh.
4208 touch sub/conftst$i.h
4209 done
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4212 case $depmode in
4213 nosideeffect)
4214 # after this tag, mechanisms are not by side-effect, so they'll
4215 # only be used when explicitly requested
4216 if test "x$enable_dependency_tracking" = xyes; then
4217 continue
4218 else
4219 break
4222 none) break ;;
4223 esac
4224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4225 # mode. It turns out that the SunPro C++ compiler does not properly
4226 # handle `-M -o', and we need to detect this.
4227 if depmode=$depmode \
4228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4231 >/dev/null 2>conftest.err &&
4232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type=$depmode
4245 break
4248 done
4250 cd ..
4251 rm -rf conftest.dir
4252 else
4253 am_cv_CC_dependencies_compiler_type=none
4257 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4264 test "x$enable_dependency_tracking" != xno \
4265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4266 am__fastdepCC_TRUE=
4267 am__fastdepCC_FALSE='#'
4268 else
4269 am__fastdepCC_TRUE='#'
4270 am__fastdepCC_FALSE=
4274 ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4284 if test "${ac_cv_prog_CC+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 if test -n "$CC"; then
4288 ac_cv_prog_CC="$CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4307 CC=$ac_cv_prog_CC
4308 if test -n "$CC"; then
4309 { echo "$as_me:$LINENO: result: $CC" >&5
4310 echo "${ECHO_T}$CC" >&6; }
4311 else
4312 { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4318 if test -z "$ac_cv_prog_CC"; then
4319 ac_ct_CC=$CC
4320 # Extract the first word of "gcc", so it can be a program name with args.
4321 set dummy gcc; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -n "$ac_ct_CC"; then
4328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_ac_ct_CC="gcc"
4338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4343 IFS=$as_save_IFS
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6; }
4351 else
4352 { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4356 if test "x$ac_ct_CC" = x; then
4357 CC=""
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4362 whose name does not start with the host triplet. If you think this
4363 configuration is useful to you, please write to autoconf@gnu.org." >&5
4364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4365 whose name does not start with the host triplet. If you think this
4366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 CC=$ac_ct_CC
4371 else
4372 CC="$ac_cv_prog_CC"
4375 if test -z "$CC"; then
4376 if test -n "$ac_tool_prefix"; then
4377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4378 set dummy ${ac_tool_prefix}cc; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$CC"; then
4385 ac_cv_prog_CC="$CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_CC="${ac_tool_prefix}cc"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 CC=$ac_cv_prog_CC
4405 if test -n "$CC"; then
4406 { echo "$as_me:$LINENO: result: $CC" >&5
4407 echo "${ECHO_T}$CC" >&6; }
4408 else
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4416 if test -z "$CC"; then
4417 # Extract the first word of "cc", so it can be a program name with args.
4418 set dummy cc; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 else
4427 ac_prog_rejected=no
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4436 ac_prog_rejected=yes
4437 continue
4439 ac_cv_prog_CC="cc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4447 if test $ac_prog_rejected = yes; then
4448 # We found a bogon in the path, so make sure we never use it.
4449 set dummy $ac_cv_prog_CC
4450 shift
4451 if test $# != 0; then
4452 # We chose a different compiler from the bogus one.
4453 # However, it has the same basename, so the bogon will be chosen
4454 # first if we set CC to just the basename; use the full file name.
4455 shift
4456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4461 CC=$ac_cv_prog_CC
4462 if test -n "$CC"; then
4463 { echo "$as_me:$LINENO: result: $CC" >&5
4464 echo "${ECHO_T}$CC" >&6; }
4465 else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4472 if test -z "$CC"; then
4473 if test -n "$ac_tool_prefix"; then
4474 for ac_prog in cl.exe
4476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_CC+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$CC"; then
4484 ac_cv_prog_CC="$CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505 { echo "$as_me:$LINENO: result: $CC" >&5
4506 echo "${ECHO_T}$CC" >&6; }
4507 else
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4513 test -n "$CC" && break
4514 done
4516 if test -z "$CC"; then
4517 ac_ct_CC=$CC
4518 for ac_prog in cl.exe
4520 # Extract the first word of "$ac_prog", so it can be a program name with args.
4521 set dummy $ac_prog; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 if test -n "$ac_ct_CC"; then
4528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_CC="$ac_prog"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4548 if test -n "$ac_ct_CC"; then
4549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4550 echo "${ECHO_T}$ac_ct_CC" >&6; }
4551 else
4552 { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4557 test -n "$ac_ct_CC" && break
4558 done
4560 if test "x$ac_ct_CC" = x; then
4561 CC=""
4562 else
4563 case $cross_compiling:$ac_tool_warned in
4564 yes:)
4565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&5
4568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4569 whose name does not start with the host triplet. If you think this
4570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4571 ac_tool_warned=yes ;;
4572 esac
4573 CC=$ac_ct_CC
4580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4581 See \`config.log' for more details." >&5
4582 echo "$as_me: error: no acceptable C compiler found in \$PATH
4583 See \`config.log' for more details." >&2;}
4584 { (exit 1); exit 1; }; }
4586 # Provide some information about the compiler.
4587 echo "$as_me:$LINENO: checking for C compiler version" >&5
4588 ac_compiler=`set X $ac_compile; echo $2`
4589 { (ac_try="$ac_compiler --version >&5"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compiler --version >&5") 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }
4599 { (ac_try="$ac_compiler -v >&5"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_compiler -v >&5") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }
4609 { (ac_try="$ac_compiler -V >&5"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compiler -V >&5") 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }
4620 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4633 main ()
4635 #ifndef __GNUC__
4636 choke me
4637 #endif
4640 return 0;
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4660 ac_compiler_gnu=yes
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_compiler_gnu=no
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4672 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4673 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4674 GCC=`test $ac_compiler_gnu = yes && echo yes`
4675 ac_test_CFLAGS=${CFLAGS+set}
4676 ac_save_CFLAGS=$CFLAGS
4677 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4678 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_cc_g+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_save_c_werror_flag=$ac_c_werror_flag
4683 ac_c_werror_flag=yes
4684 ac_cv_prog_cc_g=no
4685 CFLAGS="-g"
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4694 main ()
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext
4702 if { (ac_try="$ac_compile"
4703 case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_compile") 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && {
4715 test -z "$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4717 } && test -s conftest.$ac_objext; then
4718 ac_cv_prog_cc_g=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 CFLAGS=""
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4732 main ()
4736 return 0;
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4762 CFLAGS="-g"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4771 main ()
4775 return 0;
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (ac_try="$ac_compile"
4780 case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783 esac
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_compile") 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && {
4792 test -z "$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 } && test -s conftest.$ac_objext; then
4795 ac_cv_prog_cc_g=yes
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_c_werror_flag=$ac_save_c_werror_flag
4812 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4814 if test "$ac_test_CFLAGS" = set; then
4815 CFLAGS=$ac_save_CFLAGS
4816 elif test $ac_cv_prog_cc_g = yes; then
4817 if test "$GCC" = yes; then
4818 CFLAGS="-g -O2"
4819 else
4820 CFLAGS="-g"
4822 else
4823 if test "$GCC" = yes; then
4824 CFLAGS="-O2"
4825 else
4826 CFLAGS=
4829 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4830 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_cc_c89+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 ac_cv_prog_cc_c89=no
4835 ac_save_CC=$CC
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <stdarg.h>
4843 #include <stdio.h>
4844 #include <sys/types.h>
4845 #include <sys/stat.h>
4846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4847 struct buf { int x; };
4848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4849 static char *e (p, i)
4850 char **p;
4851 int i;
4853 return p[i];
4855 static char *f (char * (*g) (char **, int), char **p, ...)
4857 char *s;
4858 va_list v;
4859 va_start (v,p);
4860 s = g (p, va_arg (v,int));
4861 va_end (v);
4862 return s;
4865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4866 function prototypes and stuff, but not '\xHH' hex character constants.
4867 These don't provoke an error unfortunately, instead are silently treated
4868 as 'x'. The following induces an error, until -std is added to get
4869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4870 array size at least. It's necessary to write '\x00'==0 to get something
4871 that's true only with -std. */
4872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4875 inside strings and character constants. */
4876 #define FOO(x) 'x'
4877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4879 int test (int i, double x);
4880 struct s1 {int (*f) (int a);};
4881 struct s2 {int (*f) (double a);};
4882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4883 int argc;
4884 char **argv;
4886 main ()
4888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 return 0;
4892 _ACEOF
4893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4896 CC="$ac_save_CC $ac_arg"
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4914 ac_cv_prog_cc_c89=$ac_arg
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924 done
4925 rm -f conftest.$ac_ext
4926 CC=$ac_save_CC
4929 # AC_CACHE_VAL
4930 case "x$ac_cv_prog_cc_c89" in
4932 { echo "$as_me:$LINENO: result: none needed" >&5
4933 echo "${ECHO_T}none needed" >&6; } ;;
4934 xno)
4935 { echo "$as_me:$LINENO: result: unsupported" >&5
4936 echo "${ECHO_T}unsupported" >&6; } ;;
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4940 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4941 esac
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 depcc="$CC" am_compiler_list=
4952 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4953 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4954 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4958 # We make a subdir and do the tests there. Otherwise we can end up
4959 # making bogus files that we don't know about and never remove. For
4960 # instance it was reported that on HP-UX the gcc test will end up
4961 # making a dummy file named `D' -- because `-MD' means `put the output
4962 # in D'.
4963 mkdir conftest.dir
4964 # Copy depcomp to subdir because otherwise we won't find it if we're
4965 # using a relative directory.
4966 cp "$am_depcomp" conftest.dir
4967 cd conftest.dir
4968 # We will build objects and dependencies in a subdirectory because
4969 # it helps to detect inapplicable dependency modes. For instance
4970 # both Tru64's cc and ICC support -MD to output dependencies as a
4971 # side effect of compilation, but ICC will put the dependencies in
4972 # the current directory while Tru64 will put them in the object
4973 # directory.
4974 mkdir sub
4976 am_cv_CC_dependencies_compiler_type=none
4977 if test "$am_compiler_list" = ""; then
4978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 for depmode in $am_compiler_list; do
4981 # Setup a source with many dependencies, because some compilers
4982 # like to wrap large dependency lists on column 80 (with \), and
4983 # we should not choose a depcomp mode which is confused by this.
4985 # We need to recreate these files for each test, as the compiler may
4986 # overwrite some of them when testing with obscure command lines.
4987 # This happens at least with the AIX C compiler.
4988 : > sub/conftest.c
4989 for i in 1 2 3 4 5 6; do
4990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4992 # Solaris 8's {/usr,}/bin/sh.
4993 touch sub/conftst$i.h
4994 done
4995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4997 case $depmode in
4998 nosideeffect)
4999 # after this tag, mechanisms are not by side-effect, so they'll
5000 # only be used when explicitly requested
5001 if test "x$enable_dependency_tracking" = xyes; then
5002 continue
5003 else
5004 break
5007 none) break ;;
5008 esac
5009 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5010 # mode. It turns out that the SunPro C++ compiler does not properly
5011 # handle `-M -o', and we need to detect this.
5012 if depmode=$depmode \
5013 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5015 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5016 >/dev/null 2>conftest.err &&
5017 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5018 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5019 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5020 # icc doesn't choke on unknown options, it will just issue warnings
5021 # or remarks (even with -Werror). So we grep stderr for any message
5022 # that says an option was ignored or not supported.
5023 # When given -MP, icc 7.0 and 7.1 complain thusly:
5024 # icc: Command line warning: ignoring option '-M'; no argument required
5025 # The diagnosis changed in icc 8.0:
5026 # icc: Command line remark: option '-MP' not supported
5027 if (grep 'ignoring option' conftest.err ||
5028 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5029 am_cv_CC_dependencies_compiler_type=$depmode
5030 break
5033 done
5035 cd ..
5036 rm -rf conftest.dir
5037 else
5038 am_cv_CC_dependencies_compiler_type=none
5042 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5043 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5044 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5049 test "x$enable_dependency_tracking" != xno \
5050 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5051 am__fastdepCC_TRUE=
5052 am__fastdepCC_FALSE='#'
5053 else
5054 am__fastdepCC_TRUE='#'
5055 am__fastdepCC_FALSE=
5060 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5062 ac_ext=c
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5068 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5069 # On Suns, sometimes $CPP names a directory.
5070 if test -n "$CPP" && test -d "$CPP"; then
5071 CPP=
5073 if test -z "$CPP"; then
5074 if test "${ac_cv_prog_CPP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 # Double quotes because CPP needs to be expanded
5078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5080 ac_preproc_ok=false
5081 for ac_c_preproc_warn_flag in '' yes
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #ifdef __STDC__
5096 # include <limits.h>
5097 #else
5098 # include <assert.h>
5099 #endif
5100 Syntax error
5101 _ACEOF
5102 if { (ac_try="$ac_cpp conftest.$ac_ext"
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null && {
5115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5116 test ! -s conftest.err
5117 }; then
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Broken: fails on valid input.
5124 continue
5127 rm -f conftest.err conftest.$ac_ext
5129 # OK, works on sane cases. Now check whether nonexistent headers
5130 # can be detected and how.
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if { (ac_try="$ac_cpp conftest.$ac_ext"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null && {
5152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 }; then
5155 # Broken: success on invalid input.
5156 continue
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 # Passes both tests.
5162 ac_preproc_ok=:
5163 break
5166 rm -f conftest.err conftest.$ac_ext
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172 break
5175 done
5176 ac_cv_prog_CPP=$CPP
5179 CPP=$ac_cv_prog_CPP
5180 else
5181 ac_cv_prog_CPP=$CPP
5183 { echo "$as_me:$LINENO: result: $CPP" >&5
5184 echo "${ECHO_T}$CPP" >&6; }
5185 ac_preproc_ok=false
5186 for ac_c_preproc_warn_flag in '' yes
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h. */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205 Syntax error
5206 _ACEOF
5207 if { (ac_try="$ac_cpp conftest.$ac_ext"
5208 case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null && {
5220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 }; then
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 # Broken: fails on valid input.
5229 continue
5232 rm -f conftest.err conftest.$ac_ext
5234 # OK, works on sane cases. Now check whether nonexistent headers
5235 # can be detected and how.
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #include <ac_nonexistent.h>
5243 _ACEOF
5244 if { (ac_try="$ac_cpp conftest.$ac_ext"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } >/dev/null && {
5257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 }; then
5260 # Broken: success on invalid input.
5261 continue
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 # Passes both tests.
5267 ac_preproc_ok=:
5268 break
5271 rm -f conftest.err conftest.$ac_ext
5273 done
5274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275 rm -f conftest.err conftest.$ac_ext
5276 if $ac_preproc_ok; then
5278 else
5279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&5
5281 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5282 See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5286 ac_ext=c
5287 ac_cpp='$CPP $CPPFLAGS'
5288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5294 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5295 if test "${ac_cv_path_GREP+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 # Extract the first word of "grep ggrep" to use in msg output
5299 if test -z "$GREP"; then
5300 set dummy grep ggrep; ac_prog_name=$2
5301 if test "${ac_cv_path_GREP+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 ac_path_GREP_found=false
5305 # Loop through the user's path and test for each of PROGNAME-LIST
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_prog in grep ggrep; do
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5314 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5315 # Check for GNU ac_path_GREP and select it if it is found.
5316 # Check for GNU $ac_path_GREP
5317 case `"$ac_path_GREP" --version 2>&1` in
5318 *GNU*)
5319 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5321 ac_count=0
5322 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5323 while :
5325 cat "conftest.in" "conftest.in" >"conftest.tmp"
5326 mv "conftest.tmp" "conftest.in"
5327 cp "conftest.in" "conftest.nl"
5328 echo 'GREP' >> "conftest.nl"
5329 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331 ac_count=`expr $ac_count + 1`
5332 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5333 # Best one so far, save it but keep looking for a better one
5334 ac_cv_path_GREP="$ac_path_GREP"
5335 ac_path_GREP_max=$ac_count
5337 # 10*(2^10) chars as input seems more than enough
5338 test $ac_count -gt 10 && break
5339 done
5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341 esac
5344 $ac_path_GREP_found && break 3
5345 done
5346 done
5348 done
5349 IFS=$as_save_IFS
5354 GREP="$ac_cv_path_GREP"
5355 if test -z "$GREP"; then
5356 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5357 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5358 { (exit 1); exit 1; }; }
5361 else
5362 ac_cv_path_GREP=$GREP
5367 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5368 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5372 { echo "$as_me:$LINENO: checking for egrep" >&5
5373 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5374 if test "${ac_cv_path_EGREP+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378 then ac_cv_path_EGREP="$GREP -E"
5379 else
5380 # Extract the first word of "egrep" to use in msg output
5381 if test -z "$EGREP"; then
5382 set dummy egrep; ac_prog_name=$2
5383 if test "${ac_cv_path_EGREP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 ac_path_EGREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in egrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5396 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5397 # Check for GNU ac_path_EGREP and select it if it is found.
5398 # Check for GNU $ac_path_EGREP
5399 case `"$ac_path_EGREP" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5403 ac_count=0
5404 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5405 while :
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 echo 'EGREP' >> "conftest.nl"
5411 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 ac_count=`expr $ac_count + 1`
5414 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_EGREP="$ac_path_EGREP"
5417 ac_path_EGREP_max=$ac_count
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5426 $ac_path_EGREP_found && break 3
5427 done
5428 done
5430 done
5431 IFS=$as_save_IFS
5436 EGREP="$ac_cv_path_EGREP"
5437 if test -z "$EGREP"; then
5438 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5439 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5440 { (exit 1); exit 1; }; }
5443 else
5444 ac_cv_path_EGREP=$EGREP
5450 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5451 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5452 EGREP="$ac_cv_path_EGREP"
5455 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5456 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5457 if test "${ac_cv_header_stdc+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <stdlib.h>
5467 #include <stdarg.h>
5468 #include <string.h>
5469 #include <float.h>
5472 main ()
5476 return 0;
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 ac_cv_header_stdc=yes
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_header_stdc=no
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 if test $ac_cv_header_stdc = yes; then
5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <string.h>
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev/null 2>&1; then
5520 else
5521 ac_cv_header_stdc=no
5523 rm -f conftest*
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <stdlib.h>
5537 _ACEOF
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then
5541 else
5542 ac_cv_header_stdc=no
5544 rm -f conftest*
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <ctype.h>
5560 #include <stdlib.h>
5561 #if ((' ' & 0x0FF) == 0x020)
5562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5564 #else
5565 # define ISLOWER(c) \
5566 (('a' <= (c) && (c) <= 'i') \
5567 || ('j' <= (c) && (c) <= 'r') \
5568 || ('s' <= (c) && (c) <= 'z'))
5569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5570 #endif
5572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5574 main ()
5576 int i;
5577 for (i = 0; i < 256; i++)
5578 if (XOR (islower (i), ISLOWER (i))
5579 || toupper (i) != TOUPPER (i))
5580 return 2;
5581 return 0;
5583 _ACEOF
5584 rm -f conftest$ac_exeext
5585 if { (ac_try="$ac_link"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_link") 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5605 else
5606 echo "$as_me: program exited with status $ac_status" >&5
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ( exit $ac_status )
5611 ac_cv_header_stdc=no
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5620 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5621 if test $ac_cv_header_stdc = yes; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define STDC_HEADERS 1
5625 _ACEOF
5631 # ============ Switched off:
5632 #AC_SUBST(CFLAGS)
5633 #AC_SUBST(CPPFLAGS)
5634 #AC_SUBST(LDFLAGS)
5637 GNOME_COMPILE_WARNINGS
5639 #------------------------------------------------------------------------------
5640 # From gpaint:
5641 # The gnomeui library is required but the gnomeprint and gnomeprintui libraries
5642 # are optional. First we verify the gnomeui library is present. Then we check
5643 # for the presence of the gnomeprint libraries and set a flag to indicate the
5644 # print libraries are present. Finally, we run pkg-config to get the compile and
5645 # link flags for the combined set of libraries to eliminate duplications in
5646 # the CFLAGS.
5647 ## GNOME_MODULES="libgnomeui-2 >= 2.0.0"
5648 GNOME_PRINT="libgnomeprint-2.2 >= 2.2.0 libgnomeprintui-2.2 >=2.2.0"
5651 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 case $PKG_CONFIG in
5661 [\\/]* | ?:[\\/]*)
5662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5676 done
5677 done
5678 IFS=$as_save_IFS
5681 esac
5683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5684 if test -n "$PKG_CONFIG"; then
5685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5687 else
5688 { echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6; }
5694 if test -z "$ac_cv_path_PKG_CONFIG"; then
5695 ac_pt_PKG_CONFIG=$PKG_CONFIG
5696 # Extract the first word of "pkg-config", so it can be a program name with args.
5697 set dummy pkg-config; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 case $ac_pt_PKG_CONFIG in
5704 [\\/]* | ?:[\\/]*)
5705 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5724 esac
5726 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5727 if test -n "$ac_pt_PKG_CONFIG"; then
5728 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5729 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5730 else
5731 { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5735 if test "x$ac_pt_PKG_CONFIG" = x; then
5736 PKG_CONFIG=""
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5741 whose name does not start with the host triplet. If you think this
5742 configuration is useful to you, please write to autoconf@gnu.org." >&5
5743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5744 whose name does not start with the host triplet. If you think this
5745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5746 ac_tool_warned=yes ;;
5747 esac
5748 PKG_CONFIG=$ac_pt_PKG_CONFIG
5750 else
5751 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5755 if test -n "$PKG_CONFIG"; then
5756 _pkg_min_version=0.9.0
5757 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5758 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5759 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5760 { echo "$as_me:$LINENO: result: yes" >&5
5761 echo "${ECHO_T}yes" >&6; }
5762 else
5763 { echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6; }
5765 PKG_CONFIG=""
5770 pkg_failed=no
5771 { echo "$as_me:$LINENO: checking for GPIV_UI" >&5
5772 echo $ECHO_N "checking for GPIV_UI... $ECHO_C" >&6; }
5774 if test -n "$PKG_CONFIG"; then
5775 if test -n "$GPIV_UI_CFLAGS"; then
5776 pkg_cv_GPIV_UI_CFLAGS="$GPIV_UI_CFLAGS"
5777 else
5778 if test -n "$PKG_CONFIG" && \
5779 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5780 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; then
5784 pkg_cv_GPIV_UI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
5785 else
5786 pkg_failed=yes
5789 else
5790 pkg_failed=untried
5792 if test -n "$PKG_CONFIG"; then
5793 if test -n "$GPIV_UI_LIBS"; then
5794 pkg_cv_GPIV_UI_LIBS="$GPIV_UI_LIBS"
5795 else
5796 if test -n "$PKG_CONFIG" && \
5797 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5798 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; then
5802 pkg_cv_GPIV_UI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
5803 else
5804 pkg_failed=yes
5807 else
5808 pkg_failed=untried
5813 if test $pkg_failed = yes; then
5815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5816 _pkg_short_errors_supported=yes
5817 else
5818 _pkg_short_errors_supported=no
5820 if test $_pkg_short_errors_supported = yes; then
5821 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
5822 else
5823 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
5825 # Put the nasty error message in config.log where it belongs
5826 echo "$GPIV_UI_PKG_ERRORS" >&5
5828 { { echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
5830 $GPIV_UI_PKG_ERRORS
5832 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5833 installed software in a non-standard prefix.
5835 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5836 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5837 See the pkg-config man page for more details.
5838 " >&5
5839 echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
5841 $GPIV_UI_PKG_ERRORS
5843 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5844 installed software in a non-standard prefix.
5846 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5847 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5848 See the pkg-config man page for more details.
5849 " >&2;}
5850 { (exit 1); exit 1; }; }
5851 elif test $pkg_failed = untried; then
5852 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5853 is in your PATH or set the PKG_CONFIG environment variable to the full
5854 path to pkg-config.
5856 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5857 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5858 See the pkg-config man page for more details.
5860 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5861 See \`config.log' for more details." >&5
5862 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5863 is in your PATH or set the PKG_CONFIG environment variable to the full
5864 path to pkg-config.
5866 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5867 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5868 See the pkg-config man page for more details.
5870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5871 See \`config.log' for more details." >&2;}
5872 { (exit 1); exit 1; }; }
5873 else
5874 GPIV_UI_CFLAGS=$pkg_cv_GPIV_UI_CFLAGS
5875 GPIV_UI_LIBS=$pkg_cv_GPIV_UI_LIBS
5876 { echo "$as_me:$LINENO: result: yes" >&5
5877 echo "${ECHO_T}yes" >&6; }
5881 pkg_failed=no
5882 { echo "$as_me:$LINENO: checking for GPIV_PRINT" >&5
5883 echo $ECHO_N "checking for GPIV_PRINT... $ECHO_C" >&6; }
5885 if test -n "$PKG_CONFIG"; then
5886 if test -n "$GPIV_PRINT_CFLAGS"; then
5887 pkg_cv_GPIV_PRINT_CFLAGS="$GPIV_PRINT_CFLAGS"
5888 else
5889 if test -n "$PKG_CONFIG" && \
5890 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
5891 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; then
5895 pkg_cv_GPIV_PRINT_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
5896 else
5897 pkg_failed=yes
5900 else
5901 pkg_failed=untried
5903 if test -n "$PKG_CONFIG"; then
5904 if test -n "$GPIV_PRINT_LIBS"; then
5905 pkg_cv_GPIV_PRINT_LIBS="$GPIV_PRINT_LIBS"
5906 else
5907 if test -n "$PKG_CONFIG" && \
5908 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
5909 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; then
5913 pkg_cv_GPIV_PRINT_LIBS=`$PKG_CONFIG --libs "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
5914 else
5915 pkg_failed=yes
5918 else
5919 pkg_failed=untried
5924 if test $pkg_failed = yes; then
5926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5927 _pkg_short_errors_supported=yes
5928 else
5929 _pkg_short_errors_supported=no
5931 if test $_pkg_short_errors_supported = yes; then
5932 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
5933 else
5934 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
5936 # Put the nasty error message in config.log where it belongs
5937 echo "$GPIV_PRINT_PKG_ERRORS" >&5
5939 { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 echo "gnomeprint libraries are not available."
5942 elif test $pkg_failed = untried; then
5943 echo "gnomeprint libraries are not available."
5944 else
5945 GPIV_PRINT_CFLAGS=$pkg_cv_GPIV_PRINT_CFLAGS
5946 GPIV_PRINT_LIBS=$pkg_cv_GPIV_PRINT_LIBS
5947 { echo "$as_me:$LINENO: result: yes" >&5
5948 echo "${ECHO_T}yes" >&6; }
5949 gpiv_have_gnome_print=1
5952 if test "x$gpiv_have_gnome_print" = "x1"; then
5953 echo "gnomeprint IS available"
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_GNOME_PRINT "1"
5956 _ACEOF
5958 GPIV_GNOME_LIBS="libgnomeui-2.0 libgnomeprint-2.2 libgnomeprintui-2.2"
5959 else
5960 echo "gnomeprint NOT available"
5961 GPIV_GNOME_LIBS="libgnomeui-2.0"
5964 echo "configuring with libraries: " $gpiv_gnome_libs
5966 pkg_failed=no
5967 { echo "$as_me:$LINENO: checking for GPIV" >&5
5968 echo $ECHO_N "checking for GPIV... $ECHO_C" >&6; }
5970 if test -n "$PKG_CONFIG"; then
5971 if test -n "$GPIV_CFLAGS"; then
5972 pkg_cv_GPIV_CFLAGS="$GPIV_CFLAGS"
5973 else
5974 if test -n "$PKG_CONFIG" && \
5975 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
5976 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; then
5980 pkg_cv_GPIV_CFLAGS=`$PKG_CONFIG --cflags "$GPIV_GNOME_LIBS" 2>/dev/null`
5981 else
5982 pkg_failed=yes
5985 else
5986 pkg_failed=untried
5988 if test -n "$PKG_CONFIG"; then
5989 if test -n "$GPIV_LIBS"; then
5990 pkg_cv_GPIV_LIBS="$GPIV_LIBS"
5991 else
5992 if test -n "$PKG_CONFIG" && \
5993 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
5994 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; then
5998 pkg_cv_GPIV_LIBS=`$PKG_CONFIG --libs "$GPIV_GNOME_LIBS" 2>/dev/null`
5999 else
6000 pkg_failed=yes
6003 else
6004 pkg_failed=untried
6009 if test $pkg_failed = yes; then
6011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6012 _pkg_short_errors_supported=yes
6013 else
6014 _pkg_short_errors_supported=no
6016 if test $_pkg_short_errors_supported = yes; then
6017 GPIV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6018 else
6019 GPIV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6021 # Put the nasty error message in config.log where it belongs
6022 echo "$GPIV_PKG_ERRORS" >&5
6024 { { echo "$as_me:$LINENO: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6026 $GPIV_PKG_ERRORS
6028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6029 installed software in a non-standard prefix.
6031 Alternatively, you may set the environment variables GPIV_CFLAGS
6032 and GPIV_LIBS to avoid the need to call pkg-config.
6033 See the pkg-config man page for more details.
6034 " >&5
6035 echo "$as_me: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6037 $GPIV_PKG_ERRORS
6039 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6040 installed software in a non-standard prefix.
6042 Alternatively, you may set the environment variables GPIV_CFLAGS
6043 and GPIV_LIBS to avoid the need to call pkg-config.
6044 See the pkg-config man page for more details.
6045 " >&2;}
6046 { (exit 1); exit 1; }; }
6047 elif test $pkg_failed = untried; then
6048 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6049 is in your PATH or set the PKG_CONFIG environment variable to the full
6050 path to pkg-config.
6052 Alternatively, you may set the environment variables GPIV_CFLAGS
6053 and GPIV_LIBS to avoid the need to call pkg-config.
6054 See the pkg-config man page for more details.
6056 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6057 See \`config.log' for more details." >&5
6058 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6059 is in your PATH or set the PKG_CONFIG environment variable to the full
6060 path to pkg-config.
6062 Alternatively, you may set the environment variables GPIV_CFLAGS
6063 and GPIV_LIBS to avoid the need to call pkg-config.
6064 See the pkg-config man page for more details.
6066 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }
6069 else
6070 GPIV_CFLAGS=$pkg_cv_GPIV_CFLAGS
6071 GPIV_LIBS=$pkg_cv_GPIV_LIBS
6072 { echo "$as_me:$LINENO: result: yes" >&5
6073 echo "${ECHO_T}yes" >&6; }
6080 GETTEXT_PACKAGE=gpiv
6082 cat >>confdefs.h <<_ACEOF
6083 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6084 _ACEOF
6086 ALL_LINGUAS="ca de nl"
6087 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6098 inttypes.h stdint.h unistd.h
6100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6114 #include <$ac_header>
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (ac_try="$ac_compile"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 eval "$as_ac_Header=yes"
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 eval "$as_ac_Header=no"
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 ac_res=`eval echo '${'$as_ac_Header'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145 echo "${ECHO_T}$ac_res" >&6; }
6146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6149 _ACEOF
6153 done
6158 for ac_header in locale.h
6160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 ac_res=`eval echo '${'$as_ac_Header'}'`
6168 { echo "$as_me:$LINENO: result: $ac_res" >&5
6169 echo "${ECHO_T}$ac_res" >&6; }
6170 else
6171 # Is the header compilable?
6172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6181 #include <$ac_header>
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (ac_try="$ac_compile"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest.$ac_objext; then
6200 ac_header_compiler=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_header_compiler=no
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6210 echo "${ECHO_T}$ac_header_compiler" >&6; }
6212 # Is the header present?
6213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <$ac_header>
6222 _ACEOF
6223 if { (ac_try="$ac_cpp conftest.$ac_ext"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } >/dev/null && {
6236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 }; then
6239 ac_header_preproc=yes
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 ac_header_preproc=no
6247 rm -f conftest.err conftest.$ac_ext
6248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6249 echo "${ECHO_T}$ac_header_preproc" >&6; }
6251 # So? What about this header?
6252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6253 yes:no: )
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6258 ac_header_preproc=yes
6260 no:yes:* )
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6273 ( cat <<\_ASBOX
6274 ## ------------------------------------------------------------------- ##
6275 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6276 ## ------------------------------------------------------------------- ##
6277 _ASBOX
6278 ) | sed "s/^/$as_me: WARNING: /" >&2
6280 esac
6281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 eval "$as_ac_Header=\$ac_header_preproc"
6288 ac_res=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290 echo "${ECHO_T}$ac_res" >&6; }
6293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294 cat >>confdefs.h <<_ACEOF
6295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6300 done
6302 if test $ac_cv_header_locale_h = yes; then
6303 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6304 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6305 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <locale.h>
6316 main ()
6318 return LC_MESSAGES
6320 return 0;
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest$ac_exeext &&
6340 $as_test_x conftest$ac_exeext; then
6341 am_cv_val_LC_MESSAGES=yes
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 am_cv_val_LC_MESSAGES=no
6349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6350 conftest$ac_exeext conftest.$ac_ext
6352 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6353 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6354 if test $am_cv_val_LC_MESSAGES = yes; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_LC_MESSAGES 1
6358 _ACEOF
6362 USE_NLS=yes
6365 gt_cv_have_gettext=no
6367 CATOBJEXT=NONE
6368 XGETTEXT=:
6369 INTLLIBS=
6371 if test "${ac_cv_header_libintl_h+set}" = set; then
6372 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6373 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6374 if test "${ac_cv_header_libintl_h+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6378 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6379 else
6380 # Is the header compilable?
6381 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6382 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <libintl.h>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 ac_header_compiler=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_header_compiler=no
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6419 echo "${ECHO_T}$ac_header_compiler" >&6; }
6421 # Is the header present?
6422 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6423 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h. */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 #include <libintl.h>
6431 _ACEOF
6432 if { (ac_try="$ac_cpp conftest.$ac_ext"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } >/dev/null && {
6445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 }; then
6448 ac_header_preproc=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_header_preproc=no
6456 rm -f conftest.err conftest.$ac_ext
6457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6; }
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 yes:no: )
6463 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc=yes
6469 no:yes:* )
6470 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6482 ( cat <<\_ASBOX
6483 ## ------------------------------------------------------------------- ##
6484 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6485 ## ------------------------------------------------------------------- ##
6486 _ASBOX
6487 ) | sed "s/^/$as_me: WARNING: /" >&2
6489 esac
6490 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6491 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6492 if test "${ac_cv_header_libintl_h+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495 ac_cv_header_libintl_h=$ac_header_preproc
6497 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6498 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6501 if test $ac_cv_header_libintl_h = yes; then
6502 gt_cv_func_dgettext_libintl="no"
6503 libintl_extra_libs=""
6506 # First check in libc
6508 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6509 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6510 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6520 #include <libintl.h>
6523 main ()
6525 return !ngettext ("","", 1)
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (ac_try="$ac_link"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_link") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest$ac_exeext &&
6547 $as_test_x conftest$ac_exeext; then
6548 gt_cv_func_ngettext_libc=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 gt_cv_func_ngettext_libc=no
6556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6557 conftest$ac_exeext conftest.$ac_ext
6560 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6561 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6563 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6564 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6565 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6566 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 #include <libintl.h>
6579 main ()
6581 return !dgettext ("","")
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (ac_try="$ac_link"
6588 case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_link") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && {
6600 test -z "$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 } && test -s conftest$ac_exeext &&
6603 $as_test_x conftest$ac_exeext; then
6604 gt_cv_func_dgettext_libc=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 gt_cv_func_dgettext_libc=no
6612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6613 conftest$ac_exeext conftest.$ac_ext
6616 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6617 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6620 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6622 for ac_func in bind_textdomain_codeset
6624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6638 #define $ac_func innocuous_$ac_func
6640 /* System header to define __stub macros and hopefully few prototypes,
6641 which can conflict with char $ac_func (); below.
6642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6643 <limits.h> exists even on freestanding compilers. */
6645 #ifdef __STDC__
6646 # include <limits.h>
6647 #else
6648 # include <assert.h>
6649 #endif
6651 #undef $ac_func
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 char $ac_func ();
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined __stub_$ac_func || defined __stub___$ac_func
6664 choke me
6665 #endif
6668 main ()
6670 return $ac_func ();
6672 return 0;
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (ac_try="$ac_link"
6677 case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680 esac
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_link") 2>conftest.er1
6683 ac_status=$?
6684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } && {
6689 test -z "$ac_c_werror_flag" ||
6690 test ! -s conftest.err
6691 } && test -s conftest$ac_exeext &&
6692 $as_test_x conftest$ac_exeext; then
6693 eval "$as_ac_var=yes"
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6698 eval "$as_ac_var=no"
6701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6702 conftest$ac_exeext conftest.$ac_ext
6704 ac_res=`eval echo '${'$as_ac_var'}'`
6705 { echo "$as_me:$LINENO: result: $ac_res" >&5
6706 echo "${ECHO_T}$ac_res" >&6; }
6707 if test `eval echo '${'$as_ac_var'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6710 _ACEOF
6713 done
6718 # If we don't have everything we want, check in libintl
6720 if test "$gt_cv_func_dgettext_libc" != "yes" \
6721 || test "$gt_cv_func_ngettext_libc" != "yes" \
6722 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6724 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6725 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6726 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 ac_check_lib_save_LIBS=$LIBS
6730 LIBS="-lintl $LIBS"
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 /* Override any GCC internal prototype to avoid an error.
6739 Use char because int might match the return type of a GCC
6740 builtin and then its argument prototype would still apply. */
6741 #ifdef __cplusplus
6742 extern "C"
6743 #endif
6744 char bindtextdomain ();
6746 main ()
6748 return bindtextdomain ();
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6755 case "(($ac_try" in
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_link") 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest$ac_exeext &&
6770 $as_test_x conftest$ac_exeext; then
6771 ac_cv_lib_intl_bindtextdomain=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_cv_lib_intl_bindtextdomain=no
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781 LIBS=$ac_check_lib_save_LIBS
6783 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6784 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6785 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6786 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6787 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6788 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 ac_check_lib_save_LIBS=$LIBS
6792 LIBS="-lintl $LIBS"
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6800 /* Override any GCC internal prototype to avoid an error.
6801 Use char because int might match the return type of a GCC
6802 builtin and then its argument prototype would still apply. */
6803 #ifdef __cplusplus
6804 extern "C"
6805 #endif
6806 char ngettext ();
6808 main ()
6810 return ngettext ();
6812 return 0;
6814 _ACEOF
6815 rm -f conftest.$ac_objext conftest$ac_exeext
6816 if { (ac_try="$ac_link"
6817 case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820 esac
6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_link") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest$ac_exeext &&
6832 $as_test_x conftest$ac_exeext; then
6833 ac_cv_lib_intl_ngettext=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_cv_lib_intl_ngettext=no
6841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6842 conftest$ac_exeext conftest.$ac_ext
6843 LIBS=$ac_check_lib_save_LIBS
6845 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6846 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6847 if test $ac_cv_lib_intl_ngettext = yes; then
6848 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6849 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6850 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 ac_check_lib_save_LIBS=$LIBS
6854 LIBS="-lintl $LIBS"
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6862 /* Override any GCC internal prototype to avoid an error.
6863 Use char because int might match the return type of a GCC
6864 builtin and then its argument prototype would still apply. */
6865 #ifdef __cplusplus
6866 extern "C"
6867 #endif
6868 char dgettext ();
6870 main ()
6872 return dgettext ();
6874 return 0;
6876 _ACEOF
6877 rm -f conftest.$ac_objext conftest$ac_exeext
6878 if { (ac_try="$ac_link"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_link") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest$ac_exeext &&
6894 $as_test_x conftest$ac_exeext; then
6895 ac_cv_lib_intl_dgettext=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_lib_intl_dgettext=no
6903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6904 conftest$ac_exeext conftest.$ac_ext
6905 LIBS=$ac_check_lib_save_LIBS
6907 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6908 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6909 if test $ac_cv_lib_intl_dgettext = yes; then
6910 gt_cv_func_dgettext_libintl=yes
6918 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6919 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6920 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6921 { echo "$as_me:$LINENO: result: " >&5
6922 echo "${ECHO_T}" >&6; }
6923 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6924 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6925 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 ac_check_lib_save_LIBS=$LIBS
6929 LIBS="-lintl -liconv $LIBS"
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6937 /* Override any GCC internal prototype to avoid an error.
6938 Use char because int might match the return type of a GCC
6939 builtin and then its argument prototype would still apply. */
6940 #ifdef __cplusplus
6941 extern "C"
6942 #endif
6943 char ngettext ();
6945 main ()
6947 return ngettext ();
6949 return 0;
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6954 case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_link") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest$ac_exeext &&
6969 $as_test_x conftest$ac_exeext; then
6970 ac_cv_lib_intl_ngettext=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_lib_intl_ngettext=no
6978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6982 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6983 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6984 if test $ac_cv_lib_intl_ngettext = yes; then
6985 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6986 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6987 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 ac_check_lib_save_LIBS=$LIBS
6991 LIBS="-lintl -liconv $LIBS"
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6999 /* Override any GCC internal prototype to avoid an error.
7000 Use char because int might match the return type of a GCC
7001 builtin and then its argument prototype would still apply. */
7002 #ifdef __cplusplus
7003 extern "C"
7004 #endif
7005 char dcgettext ();
7007 main ()
7009 return dcgettext ();
7011 return 0;
7013 _ACEOF
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_link") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest$ac_exeext &&
7031 $as_test_x conftest$ac_exeext; then
7032 ac_cv_lib_intl_dcgettext=yes
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_lib_intl_dcgettext=no
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041 conftest$ac_exeext conftest.$ac_ext
7042 LIBS=$ac_check_lib_save_LIBS
7044 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7045 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7046 if test $ac_cv_lib_intl_dcgettext = yes; then
7047 gt_cv_func_dgettext_libintl=yes
7048 libintl_extra_libs=-liconv
7049 else
7053 else
7060 # If we found libintl, then check in it for bind_textdomain_codeset();
7061 # we'll prefer libc if neither have bind_textdomain_codeset(),
7062 # and both have dgettext and ngettext
7064 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7065 glib_save_LIBS="$LIBS"
7066 LIBS="$LIBS -lintl $libintl_extra_libs"
7067 unset ac_cv_func_bind_textdomain_codeset
7069 for ac_func in bind_textdomain_codeset
7071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7085 #define $ac_func innocuous_$ac_func
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func (); below.
7089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 <limits.h> exists even on freestanding compilers. */
7092 #ifdef __STDC__
7093 # include <limits.h>
7094 #else
7095 # include <assert.h>
7096 #endif
7098 #undef $ac_func
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 char $ac_func ();
7107 /* The GNU C library defines this for functions which it implements
7108 to always fail with ENOSYS. Some functions are actually named
7109 something starting with __ and the normal name is an alias. */
7110 #if defined __stub_$ac_func || defined __stub___$ac_func
7111 choke me
7112 #endif
7115 main ()
7117 return $ac_func ();
7119 return 0;
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_link") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest$ac_exeext &&
7139 $as_test_x conftest$ac_exeext; then
7140 eval "$as_ac_var=yes"
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 eval "$as_ac_var=no"
7148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7149 conftest$ac_exeext conftest.$ac_ext
7151 ac_res=`eval echo '${'$as_ac_var'}'`
7152 { echo "$as_me:$LINENO: result: $ac_res" >&5
7153 echo "${ECHO_T}$ac_res" >&6; }
7154 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7157 _ACEOF
7160 done
7162 LIBS="$glib_save_LIBS"
7164 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7165 gt_cv_func_dgettext_libc=no
7166 else
7167 if test "$gt_cv_func_dgettext_libc" = "yes" \
7168 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7169 gt_cv_func_dgettext_libintl=no
7175 if test "$gt_cv_func_dgettext_libc" = "yes" \
7176 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7177 gt_cv_have_gettext=yes
7180 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7181 INTLLIBS="-lintl $libintl_extra_libs"
7184 if test "$gt_cv_have_gettext" = "yes"; then
7186 cat >>confdefs.h <<\_ACEOF
7187 #define HAVE_GETTEXT 1
7188 _ACEOF
7190 # Extract the first word of "msgfmt", so it can be a program name with args.
7191 set dummy msgfmt; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_MSGFMT+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 case "$MSGFMT" in
7199 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7203 for ac_dir in $PATH; do
7204 test -z "$ac_dir" && ac_dir=.
7205 if test -f $ac_dir/$ac_word; then
7206 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7207 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7208 break
7211 done
7212 IFS="$ac_save_ifs"
7213 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7215 esac
7217 MSGFMT="$ac_cv_path_MSGFMT"
7218 if test "$MSGFMT" != "no"; then
7219 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7220 echo "${ECHO_T}$MSGFMT" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7225 if test "$MSGFMT" != "no"; then
7226 glib_save_LIBS="$LIBS"
7227 LIBS="$LIBS $INTLLIBS"
7229 for ac_func in dcgettext
7231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7245 #define $ac_func innocuous_$ac_func
7247 /* System header to define __stub macros and hopefully few prototypes,
7248 which can conflict with char $ac_func (); below.
7249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7250 <limits.h> exists even on freestanding compilers. */
7252 #ifdef __STDC__
7253 # include <limits.h>
7254 #else
7255 # include <assert.h>
7256 #endif
7258 #undef $ac_func
7260 /* Override any GCC internal prototype to avoid an error.
7261 Use char because int might match the return type of a GCC
7262 builtin and then its argument prototype would still apply. */
7263 #ifdef __cplusplus
7264 extern "C"
7265 #endif
7266 char $ac_func ();
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined __stub_$ac_func || defined __stub___$ac_func
7271 choke me
7272 #endif
7275 main ()
7277 return $ac_func ();
7279 return 0;
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (ac_try="$ac_link"
7284 case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_link") 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest$ac_exeext &&
7299 $as_test_x conftest$ac_exeext; then
7300 eval "$as_ac_var=yes"
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 eval "$as_ac_var=no"
7308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7309 conftest$ac_exeext conftest.$ac_ext
7311 ac_res=`eval echo '${'$as_ac_var'}'`
7312 { echo "$as_me:$LINENO: result: $ac_res" >&5
7313 echo "${ECHO_T}$ac_res" >&6; }
7314 if test `eval echo '${'$as_ac_var'}'` = yes; then
7315 cat >>confdefs.h <<_ACEOF
7316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7317 _ACEOF
7320 done
7322 MSGFMT_OPTS=
7323 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7324 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
7325 cat >conftest.foo <<_ACEOF
7327 msgid ""
7328 msgstr ""
7329 "Content-Type: text/plain; charset=UTF-8\n"
7330 "Project-Id-Version: test 1.0\n"
7331 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7332 "Last-Translator: test <foo@bar.xx>\n"
7333 "Language-Team: C <LL@li.org>\n"
7334 "MIME-Version: 1.0\n"
7335 "Content-Transfer-Encoding: 8bit\n"
7337 _ACEOF
7338 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7339 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; then
7343 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
7344 echo "${ECHO_T}yes" >&6; }
7345 else { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7347 echo "$as_me: failed input was:" >&5
7348 sed 's/^/| /' conftest.foo >&5
7351 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7352 set dummy gmsgfmt; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358 case $GMSGFMT in
7359 [\\/]* | ?:[\\/]*)
7360 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7378 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7380 esac
7382 GMSGFMT=$ac_cv_path_GMSGFMT
7383 if test -n "$GMSGFMT"; then
7384 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7385 echo "${ECHO_T}$GMSGFMT" >&6; }
7386 else
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7392 # Extract the first word of "xgettext", so it can be a program name with args.
7393 set dummy xgettext; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 case "$XGETTEXT" in
7401 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7405 for ac_dir in $PATH; do
7406 test -z "$ac_dir" && ac_dir=.
7407 if test -f $ac_dir/$ac_word; then
7408 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7409 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7410 break
7413 done
7414 IFS="$ac_save_ifs"
7415 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7417 esac
7419 XGETTEXT="$ac_cv_path_XGETTEXT"
7420 if test "$XGETTEXT" != ":"; then
7421 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7422 echo "${ECHO_T}$XGETTEXT" >&6; }
7423 else
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7436 main ()
7438 extern int _nl_msg_cat_cntr;
7439 return _nl_msg_cat_cntr
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && {
7458 test -z "$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 } && test -s conftest$ac_exeext &&
7461 $as_test_x conftest$ac_exeext; then
7462 CATOBJEXT=.gmo
7463 DATADIRNAME=share
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 case $host in
7469 *-*-solaris*)
7470 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7471 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7472 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7483 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char bind_textdomain_codeset (); below.
7487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7488 <limits.h> exists even on freestanding compilers. */
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7496 #undef bind_textdomain_codeset
7498 /* Override any GCC internal prototype to avoid an error.
7499 Use char because int might match the return type of a GCC
7500 builtin and then its argument prototype would still apply. */
7501 #ifdef __cplusplus
7502 extern "C"
7503 #endif
7504 char bind_textdomain_codeset ();
7505 /* The GNU C library defines this for functions which it implements
7506 to always fail with ENOSYS. Some functions are actually named
7507 something starting with __ and the normal name is an alias. */
7508 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7509 choke me
7510 #endif
7513 main ()
7515 return bind_textdomain_codeset ();
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest$ac_exeext &&
7537 $as_test_x conftest$ac_exeext; then
7538 ac_cv_func_bind_textdomain_codeset=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_func_bind_textdomain_codeset=no
7546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7547 conftest$ac_exeext conftest.$ac_ext
7549 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7550 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7551 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7552 CATOBJEXT=.gmo
7553 DATADIRNAME=share
7554 else
7555 CATOBJEXT=.mo
7556 DATADIRNAME=lib
7561 CATOBJEXT=.mo
7562 DATADIRNAME=lib
7564 esac
7567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LIBS="$glib_save_LIBS"
7570 INSTOBJEXT=.mo
7571 else
7572 gt_cv_have_gettext=no
7580 if test "$gt_cv_have_gettext" = "yes" ; then
7582 cat >>confdefs.h <<\_ACEOF
7583 #define ENABLE_NLS 1
7584 _ACEOF
7588 if test "$XGETTEXT" != ":"; then
7589 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7591 else
7592 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7593 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7594 XGETTEXT=":"
7598 # We need to process the po/ directory.
7599 POSUB=po
7601 ac_config_commands="$ac_config_commands default-1"
7604 for lang in $ALL_LINGUAS; do
7605 GMOFILES="$GMOFILES $lang.gmo"
7606 POFILES="$POFILES $lang.po"
7607 done
7621 if test "$gt_cv_have_gettext" = "yes"; then
7622 if test "x$ALL_LINGUAS" = "x"; then
7623 LINGUAS=
7624 else
7625 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7626 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7627 NEW_LINGUAS=
7628 for presentlang in $ALL_LINGUAS; do
7629 useit=no
7630 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7631 desiredlanguages="$LINGUAS"
7632 else
7633 desiredlanguages="$ALL_LINGUAS"
7635 for desiredlang in $desiredlanguages; do
7636 # Use the presentlang catalog if desiredlang is
7637 # a. equal to presentlang, or
7638 # b. a variant of presentlang (because in this case,
7639 # presentlang can be used as a fallback for messages
7640 # which are not translated in the desiredlang catalog).
7641 case "$desiredlang" in
7642 "$presentlang"*) useit=yes;;
7643 esac
7644 done
7645 if test $useit = yes; then
7646 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7648 done
7649 LINGUAS=$NEW_LINGUAS
7650 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7651 echo "${ECHO_T}$LINGUAS" >&6; }
7654 if test -n "$LINGUAS"; then
7655 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7659 MKINSTALLDIRS=
7660 if test -n "$ac_aux_dir"; then
7661 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7663 if test -z "$MKINSTALLDIRS"; then
7664 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7668 test -d po || mkdir po
7669 if test "x$srcdir" != "x."; then
7670 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7671 posrcprefix="$srcdir/"
7672 else
7673 posrcprefix="../$srcdir/"
7675 else
7676 posrcprefix="../"
7678 rm -f po/POTFILES
7679 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7680 < $srcdir/po/POTFILES.in > po/POTFILES
7685 case "$am__api_version" in
7686 1.01234)
7687 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7688 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7689 { (exit 1); exit 1; }; }
7693 esac
7695 if test -n ""; then
7696 { echo "$as_me:$LINENO: checking for intltool >= " >&5
7697 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
7699 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7700 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7701 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7703 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7704 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7705 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7706 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
7707 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
7708 { (exit 1); exit 1; }; }
7711 # Extract the first word of "intltool-update", so it can be a program name with args.
7712 set dummy intltool-update; ac_word=$2
7713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7715 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 case $INTLTOOL_UPDATE in
7719 [\\/]* | ?:[\\/]*)
7720 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7739 esac
7741 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7742 if test -n "$INTLTOOL_UPDATE"; then
7743 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
7744 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
7745 else
7746 { echo "$as_me:$LINENO: result: no" >&5
7747 echo "${ECHO_T}no" >&6; }
7751 # Extract the first word of "intltool-merge", so it can be a program name with args.
7752 set dummy intltool-merge; ac_word=$2
7753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7755 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758 case $INTLTOOL_MERGE in
7759 [\\/]* | ?:[\\/]*)
7760 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7779 esac
7781 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
7782 if test -n "$INTLTOOL_MERGE"; then
7783 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
7784 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
7785 else
7786 { echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6; }
7791 # Extract the first word of "intltool-extract", so it can be a program name with args.
7792 set dummy intltool-extract; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798 case $INTLTOOL_EXTRACT in
7799 [\\/]* | ?:[\\/]*)
7800 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7816 IFS=$as_save_IFS
7819 esac
7821 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7822 if test -n "$INTLTOOL_EXTRACT"; then
7823 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
7824 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
7825 else
7826 { echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6; }
7831 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7832 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
7833 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
7834 { (exit 1); exit 1; }; }
7837 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7838 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7839 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7840 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7841 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7842 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7843 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7844 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7845 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7846 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7847 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7848 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7849 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7850 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7851 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7852 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7853 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7854 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7855 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7877 # Check the gettext tools to make sure they are GNU
7878 # Extract the first word of "xgettext", so it can be a program name with args.
7879 set dummy xgettext; ac_word=$2
7880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7882 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 case $XGETTEXT in
7886 [\\/]* | ?:[\\/]*)
7887 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7901 done
7902 done
7903 IFS=$as_save_IFS
7906 esac
7908 XGETTEXT=$ac_cv_path_XGETTEXT
7909 if test -n "$XGETTEXT"; then
7910 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7911 echo "${ECHO_T}$XGETTEXT" >&6; }
7912 else
7913 { echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6; }
7918 # Extract the first word of "msgmerge", so it can be a program name with args.
7919 set dummy msgmerge; ac_word=$2
7920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7922 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 case $MSGMERGE in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in $PATH
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7943 IFS=$as_save_IFS
7946 esac
7948 MSGMERGE=$ac_cv_path_MSGMERGE
7949 if test -n "$MSGMERGE"; then
7950 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7951 echo "${ECHO_T}$MSGMERGE" >&6; }
7952 else
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7958 # Extract the first word of "msgfmt", so it can be a program name with args.
7959 set dummy msgfmt; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_MSGFMT+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 case $MSGFMT in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7983 IFS=$as_save_IFS
7986 esac
7988 MSGFMT=$ac_cv_path_MSGFMT
7989 if test -n "$MSGFMT"; then
7990 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7991 echo "${ECHO_T}$MSGFMT" >&6; }
7992 else
7993 { echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6; }
7998 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
7999 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8000 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8001 { (exit 1); exit 1; }; }
8003 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8004 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8005 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8006 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8007 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
8008 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
8009 { (exit 1); exit 1; }; }
8012 # Extract the first word of "perl", so it can be a program name with args.
8013 set dummy perl; ac_word=$2
8014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 case $INTLTOOL_PERL in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8040 esac
8042 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8043 if test -n "$INTLTOOL_PERL"; then
8044 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8045 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
8046 else
8047 { echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6; }
8052 if test -z "$INTLTOOL_PERL"; then
8053 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
8054 echo "$as_me: error: perl not found; required for intltool" >&2;}
8055 { (exit 1); exit 1; }; }
8057 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8058 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
8059 echo "$as_me: error: perl 5.x required for intltool" >&2;}
8060 { (exit 1); exit 1; }; }
8062 if test "x" != "xno-xml"; then
8063 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
8064 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
8065 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8066 { echo "$as_me:$LINENO: result: ok" >&5
8067 echo "${ECHO_T}ok" >&6; }
8068 else
8069 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
8070 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
8071 { (exit 1); exit 1; }; }
8075 # Substitute ALL_LINGUAS so we can use it in po/Makefile
8078 # Set DATADIRNAME correctly if it is not set yet
8079 # (copied from glib-gettext.m4)
8080 if test -z "$DATADIRNAME"; then
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8089 main ()
8091 extern int _nl_msg_cat_cntr;
8092 return _nl_msg_cat_cntr
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest$ac_exeext &&
8114 $as_test_x conftest$ac_exeext; then
8115 DATADIRNAME=share
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 case $host in
8121 *-*-solaris*)
8122 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8123 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8124 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8135 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8137 /* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char bind_textdomain_codeset (); below.
8139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140 <limits.h> exists even on freestanding compilers. */
8142 #ifdef __STDC__
8143 # include <limits.h>
8144 #else
8145 # include <assert.h>
8146 #endif
8148 #undef bind_textdomain_codeset
8150 /* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 char bind_textdomain_codeset ();
8157 /* The GNU C library defines this for functions which it implements
8158 to always fail with ENOSYS. Some functions are actually named
8159 something starting with __ and the normal name is an alias. */
8160 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8161 choke me
8162 #endif
8165 main ()
8167 return bind_textdomain_codeset ();
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (ac_try="$ac_link"
8174 case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
8190 ac_cv_func_bind_textdomain_codeset=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_func_bind_textdomain_codeset=no
8198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199 conftest$ac_exeext conftest.$ac_ext
8201 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8202 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8203 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8204 DATADIRNAME=share
8205 else
8206 DATADIRNAME=lib
8211 DATADIRNAME=lib
8213 esac
8216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217 conftest$ac_exeext conftest.$ac_ext
8227 { echo "$as_me:$LINENO: checking for g_malloc0 in -lglib-2.0" >&5
8228 echo $ECHO_N "checking for g_malloc0 in -lglib-2.0... $ECHO_C" >&6; }
8229 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lglib-2.0 $LIBS"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char g_malloc0 ();
8249 main ()
8251 return g_malloc0 ();
8253 return 0;
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8258 case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest$ac_exeext &&
8273 $as_test_x conftest$ac_exeext; then
8274 ac_cv_lib_glib_2_0_g_malloc0=yes
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_lib_glib_2_0_g_malloc0=no
8282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283 conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_lib_save_LIBS
8286 { echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
8287 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
8288 if test $ac_cv_lib_glib_2_0_g_malloc0 = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290 #define HAVE_LIBGLIB_2_0 1
8291 _ACEOF
8293 LIBS="-lglib-2.0 $LIBS"
8295 else
8296 { { echo "$as_me:$LINENO: error: \"libglib not installed\"" >&5
8297 echo "$as_me: error: \"libglib not installed\"" >&2;}
8298 { (exit 1); exit 1; }; }
8305 { echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8306 echo $ECHO_N "checking for fftw_plan_dft_r2c_2d in -lfftw3... $ECHO_C" >&6; }
8307 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 ac_check_lib_save_LIBS=$LIBS
8311 LIBS="-lfftw3 $LIBS"
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8319 /* Override any GCC internal prototype to avoid an error.
8320 Use char because int might match the return type of a GCC
8321 builtin and then its argument prototype would still apply. */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 char fftw_plan_dft_r2c_2d ();
8327 main ()
8329 return fftw_plan_dft_r2c_2d ();
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_link") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest$ac_exeext &&
8351 $as_test_x conftest$ac_exeext; then
8352 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
8353 else
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
8360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8361 conftest$ac_exeext conftest.$ac_ext
8362 LIBS=$ac_check_lib_save_LIBS
8364 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
8365 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
8366 if test $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d = yes; then
8367 cat >>confdefs.h <<_ACEOF
8368 #define HAVE_LIBFFTW3 1
8369 _ACEOF
8371 LIBS="-lfftw3 $LIBS"
8373 else
8374 { { echo "$as_me:$LINENO: error: \"libfftw3 not installed\"" >&5
8375 echo "$as_me: error: \"libfftw3 not installed\"" >&2;}
8376 { (exit 1); exit 1; }; }
8381 { echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
8382 echo $ECHO_N "checking for main in -lgslcblas... $ECHO_C" >&6; }
8383 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-lgslcblas $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8397 main ()
8399 return main ();
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (ac_try="$ac_link"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_link") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest$ac_exeext &&
8421 $as_test_x conftest$ac_exeext; then
8422 ac_cv_lib_gslcblas_main=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_lib_gslcblas_main=no
8430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 { echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
8435 echo "${ECHO_T}$ac_cv_lib_gslcblas_main" >&6; }
8436 if test $ac_cv_lib_gslcblas_main = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_LIBGSLCBLAS 1
8439 _ACEOF
8441 LIBS="-lgslcblas $LIBS"
8443 else
8444 { { echo "$as_me:$LINENO: error: \"libgslcblas not installed\"" >&5
8445 echo "$as_me: error: \"libgslcblas not installed\"" >&2;}
8446 { (exit 1); exit 1; }; }
8451 { echo "$as_me:$LINENO: checking for main in -lgsl" >&5
8452 echo $ECHO_N "checking for main in -lgsl... $ECHO_C" >&6; }
8453 if test "${ac_cv_lib_gsl_main+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lgsl $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8467 main ()
8469 return main ();
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (ac_try="$ac_link"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_link") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest$ac_exeext &&
8491 $as_test_x conftest$ac_exeext; then
8492 ac_cv_lib_gsl_main=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_lib_gsl_main=no
8500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8504 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsl_main" >&5
8505 echo "${ECHO_T}$ac_cv_lib_gsl_main" >&6; }
8506 if test $ac_cv_lib_gsl_main = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_LIBGSL 1
8509 _ACEOF
8511 LIBS="-lgsl $LIBS"
8513 else
8514 { { echo "$as_me:$LINENO: error: \"libgsl not installed\"" >&5
8515 echo "$as_me: error: \"libgsl not installed\"" >&2;}
8516 { (exit 1); exit 1; }; }
8522 { echo "$as_me:$LINENO: checking for gpiv_piv_interrogate_ia in -lgpiv" >&5
8523 echo $ECHO_N "checking for gpiv_piv_interrogate_ia in -lgpiv... $ECHO_C" >&6; }
8524 if test "${ac_cv_lib_gpiv_gpiv_piv_interrogate_ia+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 ac_check_lib_save_LIBS=$LIBS
8528 LIBS="-lgpiv $LIBS"
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8536 /* Override any GCC internal prototype to avoid an error.
8537 Use char because int might match the return type of a GCC
8538 builtin and then its argument prototype would still apply. */
8539 #ifdef __cplusplus
8540 extern "C"
8541 #endif
8542 char gpiv_piv_interrogate_ia ();
8544 main ()
8546 return gpiv_piv_interrogate_ia ();
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (ac_try="$ac_link"
8553 case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_link") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest$ac_exeext &&
8568 $as_test_x conftest$ac_exeext; then
8569 ac_cv_lib_gpiv_gpiv_piv_interrogate_ia=yes
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_cv_lib_gpiv_gpiv_piv_interrogate_ia=no
8577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8578 conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_piv_interrogate_ia" >&5
8582 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_piv_interrogate_ia" >&6; }
8583 if test $ac_cv_lib_gpiv_gpiv_piv_interrogate_ia = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_LIBGPIV 1
8586 _ACEOF
8588 LIBS="-lgpiv $LIBS"
8590 else
8591 { { echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
8592 echo "$as_me: error: libgpiv has not been installed" >&2;}
8593 { (exit 1); exit 1; }; }
8597 { echo "$as_me:$LINENO: checking for gpiv_scan_resourcefiles in -lgpiv" >&5
8598 echo $ECHO_N "checking for gpiv_scan_resourcefiles in -lgpiv... $ECHO_C" >&6; }
8599 if test "${ac_cv_lib_gpiv_gpiv_scan_resourcefiles+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lgpiv $LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any GCC internal prototype to avoid an error.
8612 Use char because int might match the return type of a GCC
8613 builtin and then its argument prototype would still apply. */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 char gpiv_scan_resourcefiles ();
8619 main ()
8621 return gpiv_scan_resourcefiles ();
8623 return 0;
8625 _ACEOF
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (ac_try="$ac_link"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_link") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest$ac_exeext &&
8643 $as_test_x conftest$ac_exeext; then
8644 ac_cv_lib_gpiv_gpiv_scan_resourcefiles=yes
8645 else
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_cv_lib_gpiv_gpiv_scan_resourcefiles=no
8652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_scan_resourcefiles" >&5
8657 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_scan_resourcefiles" >&6; }
8658 if test $ac_cv_lib_gpiv_gpiv_scan_resourcefiles = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_LIBGPIV 1
8661 _ACEOF
8663 LIBS="-lgpiv $LIBS"
8665 else
8666 { { echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
8667 echo "$as_me: error: libgpiv has not been installed" >&2;}
8668 { (exit 1); exit 1; }; }
8677 for ac_header in stdlib.h string.h unistd.h fftw3.h gpiv.h
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 ac_res=`eval echo '${'$as_ac_Header'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689 else
8690 # Is the header compilable?
8691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 #include <$ac_header>
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 ac_header_compiler=yes
8720 else
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_header_compiler=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8729 echo "${ECHO_T}$ac_header_compiler" >&6; }
8731 # Is the header present?
8732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 #include <$ac_header>
8741 _ACEOF
8742 if { (ac_try="$ac_cpp conftest.$ac_ext"
8743 case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } >/dev/null && {
8755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 }; then
8758 ac_header_preproc=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_header_preproc=no
8766 rm -f conftest.err conftest.$ac_ext
8767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8768 echo "${ECHO_T}$ac_header_preproc" >&6; }
8770 # So? What about this header?
8771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8772 yes:no: )
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8777 ac_header_preproc=yes
8779 no:yes:* )
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8792 ( cat <<\_ASBOX
8793 ## ------------------------------------------------------------------- ##
8794 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
8795 ## ------------------------------------------------------------------- ##
8796 _ASBOX
8797 ) | sed "s/^/$as_me: WARNING: /" >&2
8799 esac
8800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 eval "$as_ac_Header=\$ac_header_preproc"
8807 ac_res=`eval echo '${'$as_ac_Header'}'`
8808 { echo "$as_me:$LINENO: result: $ac_res" >&5
8809 echo "${ECHO_T}$ac_res" >&6; }
8812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8813 cat >>confdefs.h <<_ACEOF
8814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8815 _ACEOF
8819 done
8822 # Check whether --enable-cam was given.
8823 if test "${enable_cam+set}" = set; then
8824 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
8831 # Check whether --enable-trig was given.
8832 if test "${enable_trig+set}" = set; then
8833 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
8840 if test $ENABLE_CAM || test $ENABLE_TRIG; then
8841 ENABLE_DAC="-DENABLE_DAC"
8845 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
8847 { echo "$as_me:$LINENO: checking for gpiv_cam_get_camvar in -lgpiv" >&5
8848 echo $ECHO_N "checking for gpiv_cam_get_camvar in -lgpiv... $ECHO_C" >&6; }
8849 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-lgpiv $LIBS"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 /* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char gpiv_cam_get_camvar ();
8869 main ()
8871 return gpiv_cam_get_camvar ();
8873 return 0;
8875 _ACEOF
8876 rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (ac_try="$ac_link"
8878 case "(($ac_try" in
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8881 esac
8882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883 (eval "$ac_link") 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } && {
8890 test -z "$ac_c_werror_flag" ||
8891 test ! -s conftest.err
8892 } && test -s conftest$ac_exeext &&
8893 $as_test_x conftest$ac_exeext; then
8894 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
8902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LIBS=$ac_check_lib_save_LIBS
8906 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
8907 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
8908 if test $ac_cv_lib_gpiv_gpiv_cam_get_camvar = yes; then
8909 cat >>confdefs.h <<_ACEOF
8910 #define HAVE_LIBGPIV 1
8911 _ACEOF
8913 LIBS="-lgpiv $LIBS"
8915 else
8916 { { echo "$as_me:$LINENO: error: \"(IEEE-1394) camera is not working in libgpiv. \
8917 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&5
8918 echo "$as_me: error: \"(IEEE-1394) camera is not working in libgpiv. \
8919 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&2;}
8920 { (exit 1); exit 1; }; }
8925 { echo "$as_me:$LINENO: checking for raw1394_destroy_handle in -lraw1394" >&5
8926 echo $ECHO_N "checking for raw1394_destroy_handle in -lraw1394... $ECHO_C" >&6; }
8927 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 ac_check_lib_save_LIBS=$LIBS
8931 LIBS="-lraw1394 $LIBS"
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8939 /* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
8942 #ifdef __cplusplus
8943 extern "C"
8944 #endif
8945 char raw1394_destroy_handle ();
8947 main ()
8949 return raw1394_destroy_handle ();
8951 return 0;
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (ac_try="$ac_link"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest$ac_exeext &&
8971 $as_test_x conftest$ac_exeext; then
8972 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_lib_raw1394_raw1394_destroy_handle=no
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
8985 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
8986 if test $ac_cv_lib_raw1394_raw1394_destroy_handle = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBRAW1394 1
8989 _ACEOF
8991 LIBS="-lraw1394 $LIBS"
8993 else
8994 { { echo "$as_me:$LINENO: error: \"libraw1394 not installed\"" >&5
8995 echo "$as_me: error: \"libraw1394 not installed\"" >&2;}
8996 { (exit 1); exit 1; }; }
9001 { echo "$as_me:$LINENO: checking for dc1394_create_handle in -ldc1394_control" >&5
9002 echo $ECHO_N "checking for dc1394_create_handle in -ldc1394_control... $ECHO_C" >&6; }
9003 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 ac_check_lib_save_LIBS=$LIBS
9007 LIBS="-ldc1394_control $LIBS"
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9015 /* Override any GCC internal prototype to avoid an error.
9016 Use char because int might match the return type of a GCC
9017 builtin and then its argument prototype would still apply. */
9018 #ifdef __cplusplus
9019 extern "C"
9020 #endif
9021 char dc1394_create_handle ();
9023 main ()
9025 return dc1394_create_handle ();
9027 return 0;
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9032 case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035 esac
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_link") 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest$ac_exeext &&
9047 $as_test_x conftest$ac_exeext; then
9048 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
9049 else
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9053 ac_cv_lib_dc1394_control_dc1394_create_handle=no
9056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9057 conftest$ac_exeext conftest.$ac_ext
9058 LIBS=$ac_check_lib_save_LIBS
9060 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
9061 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
9062 if test $ac_cv_lib_dc1394_control_dc1394_create_handle = yes; then
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_LIBDC1394_CONTROL 1
9065 _ACEOF
9067 LIBS="-ldc1394_control $LIBS"
9069 else
9070 { { echo "$as_me:$LINENO: error: \"libdc1394_control not installed\"" >&5
9071 echo "$as_me: error: \"libdc1394_control not installed\"" >&2;}
9072 { (exit 1); exit 1; }; }
9076 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9077 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9078 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
9079 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9084 else
9085 # Is the header compilable?
9086 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
9087 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 #include <libdc1394/dc1394_control.h>
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.$ac_objext; then
9114 ac_header_compiler=yes
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_header_compiler=no
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9124 echo "${ECHO_T}$ac_header_compiler" >&6; }
9126 # Is the header present?
9127 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
9128 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <libdc1394/dc1394_control.h>
9136 _ACEOF
9137 if { (ac_try="$ac_cpp conftest.$ac_ext"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null && {
9150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 }; then
9153 ac_header_preproc=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_header_preproc=no
9161 rm -f conftest.err conftest.$ac_ext
9162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 echo "${ECHO_T}$ac_header_preproc" >&6; }
9165 # So? What about this header?
9166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9167 yes:no: )
9168 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
9169 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
9171 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
9172 ac_header_preproc=yes
9174 no:yes:* )
9175 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
9176 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
9178 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
9180 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
9182 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
9184 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
9186 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
9187 ( cat <<\_ASBOX
9188 ## ------------------------------------------------------------------- ##
9189 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9190 ## ------------------------------------------------------------------- ##
9191 _ASBOX
9192 ) | sed "s/^/$as_me: WARNING: /" >&2
9194 esac
9195 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9196 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
9197 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
9202 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9203 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9206 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
9208 else
9209 { { echo "$as_me:$LINENO: error: \"missing dc1394_control.h\"" >&5
9210 echo "$as_me: error: \"missing dc1394_control.h\"" >&2;}
9211 { (exit 1); exit 1; }; }
9216 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9217 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9218 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
9219 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9223 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
9224 else
9225 # Is the header compilable?
9226 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
9227 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9235 #include <libraw1394/raw1394.h>
9236 _ACEOF
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9239 case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 ac_header_compiler=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_header_compiler=no
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6; }
9266 # Is the header present?
9267 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
9268 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <libraw1394/raw1394.h>
9276 _ACEOF
9277 if { (ac_try="$ac_cpp conftest.$ac_ext"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } >/dev/null && {
9290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 }; then
9293 ac_header_preproc=yes
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_header_preproc=no
9301 rm -f conftest.err conftest.$ac_ext
9302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303 echo "${ECHO_T}$ac_header_preproc" >&6; }
9305 # So? What about this header?
9306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307 yes:no: )
9308 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
9309 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
9311 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
9312 ac_header_preproc=yes
9314 no:yes:* )
9315 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
9320 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
9322 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
9326 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
9327 ( cat <<\_ASBOX
9328 ## ------------------------------------------------------------------- ##
9329 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9330 ## ------------------------------------------------------------------- ##
9331 _ASBOX
9332 ) | sed "s/^/$as_me: WARNING: /" >&2
9334 esac
9335 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9336 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
9337 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
9342 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9343 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
9346 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
9348 else
9349 { { echo "$as_me:$LINENO: error: \"missing raw1394.h\"" >&5
9350 echo "$as_me: error: \"missing raw1394.h\"" >&2;}
9351 { (exit 1); exit 1; }; }
9358 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
9360 { echo "$as_me:$LINENO: checking for gpiv_trig_openrtfs in -lgpiv" >&5
9361 echo $ECHO_N "checking for gpiv_trig_openrtfs in -lgpiv... $ECHO_C" >&6; }
9362 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lgpiv $LIBS"
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char gpiv_trig_openrtfs ();
9382 main ()
9384 return gpiv_trig_openrtfs ();
9386 return 0;
9388 _ACEOF
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9391 case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_link") 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && {
9403 test -z "$ac_c_werror_flag" ||
9404 test ! -s conftest.err
9405 } && test -s conftest$ac_exeext &&
9406 $as_test_x conftest$ac_exeext; then
9407 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
9415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9416 conftest$ac_exeext conftest.$ac_ext
9417 LIBS=$ac_check_lib_save_LIBS
9419 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
9420 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
9421 if test $ac_cv_lib_gpiv_gpiv_trig_openrtfs = yes; then
9422 cat >>confdefs.h <<_ACEOF
9423 #define HAVE_LIBGPIV 1
9424 _ACEOF
9426 LIBS="-lgpiv $LIBS"
9428 else
9429 { { echo "$as_me:$LINENO: error: \"(Realtime) triggering is not working in libgpiv. \
9430 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&5
9431 echo "$as_me: error: \"(Realtime) triggering is not working in libgpiv. \
9432 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&2;}
9433 { (exit 1); exit 1; }; }
9439 # Extract the first word of "gpiv_control", so it can be a program name with args.
9440 set dummy gpiv_control; ac_word=$2
9441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9443 if test "${ac_cv_prog_CONTROL+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 if test -n "$CONTROL"; then
9447 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
9448 else
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_prog_CONTROL="true"
9457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9464 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
9467 CONTROL=$ac_cv_prog_CONTROL
9468 if test -n "$CONTROL"; then
9469 { echo "$as_me:$LINENO: result: $CONTROL" >&5
9470 echo "${ECHO_T}$CONTROL" >&6; }
9471 else
9472 { echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6; }
9479 if $CONTROL; then
9480 HAVE_CONTROL_TRUE=
9481 HAVE_CONTROL_FALSE='#'
9482 else
9483 HAVE_CONTROL_TRUE='#'
9484 HAVE_CONTROL_FALSE=
9488 # Check whether --enable-rta was given.
9489 if test "${enable_rta+set}" = set; then
9490 enableval=$enable_rta; RTA_TOPDIR="$enableval"
9491 else
9492 RTA_TOPDIR="/usr/lib/realtime"
9499 # Check whether --enable-k was given.
9500 if test "${enable_k+set}" = set; then
9501 enableval=$enable_k; K_TOPDIR="$enableval"
9502 else
9503 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
9510 # Check whether --enable-img-width was given.
9511 if test "${enable_img_width+set}" = set; then
9512 enableval=$enable_img_width; OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
9520 # Check whether --enable-img-height was given.
9521 if test "${enable_img_height+set}" = set; then
9522 enableval=$enable_img_height; OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
9529 # Check whether --enable-canvas_aa was given.
9530 if test "${enable_canvas_aa+set}" = set; then
9531 enableval=$enable_canvas_aa; CANVAS_AA="-DCANVAS_AA"
9538 # Check whether --enable-debug was given.
9539 if test "${enable_debug+set}" = set; then
9540 enableval=$enable_debug; DEBUG="-DDEBUG"
9548 # Check whether --enable-mpi was given.
9549 if test "${enable_mpi+set}" = set; then
9550 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
9556 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
9559 { echo "$as_me:$LINENO: checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv" >&5
9560 echo $ECHO_N "checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv... $ECHO_C" >&6; }
9561 if test "${ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 ac_check_lib_save_LIBS=$LIBS
9565 LIBS="-lgpiv $LIBS"
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char gpiv_piv_mpi_bcast_pivpar ();
9581 main ()
9583 return gpiv_piv_mpi_bcast_pivpar ();
9585 return 0;
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (ac_try="$ac_link"
9590 case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_link") 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && {
9602 test -z "$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9604 } && test -s conftest$ac_exeext &&
9605 $as_test_x conftest$ac_exeext; then
9606 ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar=no
9614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LIBS=$ac_check_lib_save_LIBS
9618 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar" >&5
9619 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar" >&6; }
9620 if test $ac_cv_lib_gpiv_gpiv_piv_mpi_bcast_pivpar = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622 #define HAVE_LIBGPIV 1
9623 _ACEOF
9625 LIBS="-lgpiv $LIBS"
9627 else
9628 { { echo "$as_me:$LINENO: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv. \
9629 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&5
9630 echo "$as_me: error: \"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv. \
9631 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" >&2;}
9632 { (exit 1); exit 1; }; }
9641 ac_config_files="$ac_config_files Makefile doc/Makefile doc/C/Makefile doc/C/figures/Makefile src/Makefile po/Makefile.in man/Makefile pixmaps/Makefile"
9643 cat >confcache <<\_ACEOF
9644 # This file is a shell script that caches the results of configure
9645 # tests run on this system so they can be shared between configure
9646 # scripts and configure runs, see configure's option --config-cache.
9647 # It is not useful on other systems. If it contains results you don't
9648 # want to keep, you may remove or edit it.
9650 # config.status only pays attention to the cache file if you give it
9651 # the --recheck option to rerun configure.
9653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9655 # following values.
9657 _ACEOF
9659 # The following way of writing the cache mishandles newlines in values,
9660 # but we know of no workaround that is simple, portable, and efficient.
9661 # So, we kill variables containing newlines.
9662 # Ultrix sh set writes to stderr and can't be redirected directly,
9663 # and sets the high bit in the cache file unless we assign to the vars.
9665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9666 eval ac_val=\$$ac_var
9667 case $ac_val in #(
9668 *${as_nl}*)
9669 case $ac_var in #(
9670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9672 esac
9673 case $ac_var in #(
9674 _ | IFS | as_nl) ;; #(
9675 *) $as_unset $ac_var ;;
9676 esac ;;
9677 esac
9678 done
9680 (set) 2>&1 |
9681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9682 *${as_nl}ac_space=\ *)
9683 # `set' does not quote correctly, so add quotes (double-quote
9684 # substitution turns \\\\ into \\, and sed turns \\ into \).
9685 sed -n \
9686 "s/'/'\\\\''/g;
9687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9688 ;; #(
9690 # `set' quotes correctly as required by POSIX, so do not add quotes.
9691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9693 esac |
9694 sort
9696 sed '
9697 /^ac_cv_env_/b end
9698 t clear
9699 :clear
9700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9701 t end
9702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9703 :end' >>confcache
9704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9705 if test -w "$cache_file"; then
9706 test "x$cache_file" != "x/dev/null" &&
9707 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9708 echo "$as_me: updating cache $cache_file" >&6;}
9709 cat confcache >$cache_file
9710 else
9711 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9712 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9715 rm -f confcache
9717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9718 # Let make expand exec_prefix.
9719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9721 # Transform confdefs.h into DEFS.
9722 # Protect against shell expansion while executing Makefile rules.
9723 # Protect against Makefile macro expansion.
9725 # If the first sed substitution is executed (which looks for macros that
9726 # take arguments), then branch to the quote section. Otherwise,
9727 # look for a macro that doesn't take arguments.
9728 ac_script='
9729 t clear
9730 :clear
9731 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9732 t quote
9733 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9734 t quote
9735 b any
9736 :quote
9737 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9738 s/\[/\\&/g
9739 s/\]/\\&/g
9740 s/\$/$$/g
9742 :any
9745 s/^\n//
9746 s/\n/ /g
9750 DEFS=`sed -n "$ac_script" confdefs.h`
9753 ac_libobjs=
9754 ac_ltlibobjs=
9755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9756 # 1. Remove the extension, and $U if already installed.
9757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9758 ac_i=`echo "$ac_i" | sed "$ac_script"`
9759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9760 # will be set to the directory where LIBOBJS objects are built.
9761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9763 done
9764 LIBOBJS=$ac_libobjs
9766 LTLIBOBJS=$ac_ltlibobjs
9769 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9770 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9771 Usually this means the macro was only invoked conditionally." >&5
9772 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9773 Usually this means the macro was only invoked conditionally." >&2;}
9774 { (exit 1); exit 1; }; }
9776 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9777 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9778 Usually this means the macro was only invoked conditionally." >&5
9779 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9780 Usually this means the macro was only invoked conditionally." >&2;}
9781 { (exit 1); exit 1; }; }
9783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9784 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9785 Usually this means the macro was only invoked conditionally." >&5
9786 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9787 Usually this means the macro was only invoked conditionally." >&2;}
9788 { (exit 1); exit 1; }; }
9790 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9791 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9792 Usually this means the macro was only invoked conditionally." >&5
9793 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9794 Usually this means the macro was only invoked conditionally." >&2;}
9795 { (exit 1); exit 1; }; }
9797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9799 Usually this means the macro was only invoked conditionally." >&5
9800 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9801 Usually this means the macro was only invoked conditionally." >&2;}
9802 { (exit 1); exit 1; }; }
9805 ac_config_commands="$ac_config_commands po/stamp-it"
9808 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
9809 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CONTROL\" was never defined.
9810 Usually this means the macro was only invoked conditionally." >&5
9811 echo "$as_me: error: conditional \"HAVE_CONTROL\" was never defined.
9812 Usually this means the macro was only invoked conditionally." >&2;}
9813 { (exit 1); exit 1; }; }
9816 : ${CONFIG_STATUS=./config.status}
9817 ac_clean_files_save=$ac_clean_files
9818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9819 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9820 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9821 cat >$CONFIG_STATUS <<_ACEOF
9822 #! $SHELL
9823 # Generated by $as_me.
9824 # Run this file to recreate the current configuration.
9825 # Compiler output produced by configure, useful for debugging
9826 # configure, is in config.log if it exists.
9828 debug=false
9829 ac_cs_recheck=false
9830 ac_cs_silent=false
9831 SHELL=\${CONFIG_SHELL-$SHELL}
9832 _ACEOF
9834 cat >>$CONFIG_STATUS <<\_ACEOF
9835 ## --------------------- ##
9836 ## M4sh Initialization. ##
9837 ## --------------------- ##
9839 # Be more Bourne compatible
9840 DUALCASE=1; export DUALCASE # for MKS sh
9841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9842 emulate sh
9843 NULLCMD=:
9844 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9845 # is contrary to our usage. Disable this feature.
9846 alias -g '${1+"$@"}'='"$@"'
9847 setopt NO_GLOB_SUBST
9848 else
9849 case `(set -o) 2>/dev/null` in
9850 *posix*) set -o posix ;;
9851 esac
9858 # PATH needs CR
9859 # Avoid depending upon Character Ranges.
9860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9863 as_cr_digits='0123456789'
9864 as_cr_alnum=$as_cr_Letters$as_cr_digits
9866 # The user is always right.
9867 if test "${PATH_SEPARATOR+set}" != set; then
9868 echo "#! /bin/sh" >conf$$.sh
9869 echo "exit 0" >>conf$$.sh
9870 chmod +x conf$$.sh
9871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9872 PATH_SEPARATOR=';'
9873 else
9874 PATH_SEPARATOR=:
9876 rm -f conf$$.sh
9879 # Support unset when possible.
9880 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9881 as_unset=unset
9882 else
9883 as_unset=false
9887 # IFS
9888 # We need space, tab and new line, in precisely that order. Quoting is
9889 # there to prevent editors from complaining about space-tab.
9890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9891 # splitting by setting IFS to empty value.)
9892 as_nl='
9894 IFS=" "" $as_nl"
9896 # Find who we are. Look in the path if we contain no directory separator.
9897 case $0 in
9898 *[\\/]* ) as_myself=$0 ;;
9899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9905 done
9906 IFS=$as_save_IFS
9909 esac
9910 # We did not find ourselves, most probably we were run as `sh COMMAND'
9911 # in which case we are not to be found in the path.
9912 if test "x$as_myself" = x; then
9913 as_myself=$0
9915 if test ! -f "$as_myself"; then
9916 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9917 { (exit 1); exit 1; }
9920 # Work around bugs in pre-3.0 UWIN ksh.
9921 for as_var in ENV MAIL MAILPATH
9922 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9923 done
9924 PS1='$ '
9925 PS2='> '
9926 PS4='+ '
9928 # NLS nuisances.
9929 for as_var in \
9930 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9931 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9932 LC_TELEPHONE LC_TIME
9934 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9935 eval $as_var=C; export $as_var
9936 else
9937 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9939 done
9941 # Required to use basename.
9942 if expr a : '\(a\)' >/dev/null 2>&1 &&
9943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9944 as_expr=expr
9945 else
9946 as_expr=false
9949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9950 as_basename=basename
9951 else
9952 as_basename=false
9956 # Name of the executable.
9957 as_me=`$as_basename -- "$0" ||
9958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9959 X"$0" : 'X\(//\)$' \| \
9960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9961 echo X/"$0" |
9962 sed '/^.*\/\([^/][^/]*\)\/*$/{
9963 s//\1/
9966 /^X\/\(\/\/\)$/{
9967 s//\1/
9970 /^X\/\(\/\).*/{
9971 s//\1/
9974 s/.*/./; q'`
9976 # CDPATH.
9977 $as_unset CDPATH
9981 as_lineno_1=$LINENO
9982 as_lineno_2=$LINENO
9983 test "x$as_lineno_1" != "x$as_lineno_2" &&
9984 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9986 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9987 # uniformly replaced by the line number. The first 'sed' inserts a
9988 # line-number line after each line using $LINENO; the second 'sed'
9989 # does the real work. The second script uses 'N' to pair each
9990 # line-number line with the line containing $LINENO, and appends
9991 # trailing '-' during substitution so that $LINENO is not a special
9992 # case at line end.
9993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9994 # scripts with optimization help from Paolo Bonzini. Blame Lee
9995 # E. McMahon (1931-1989) for sed's syntax. :-)
9996 sed -n '
9998 /[$]LINENO/=
9999 ' <$as_myself |
10000 sed '
10001 s/[$]LINENO.*/&-/
10002 t lineno
10004 :lineno
10006 :loop
10007 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10008 t loop
10009 s/-\n.*//
10010 ' >$as_me.lineno &&
10011 chmod +x "$as_me.lineno" ||
10012 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10013 { (exit 1); exit 1; }; }
10015 # Don't try to exec as it changes $[0], causing all sort of problems
10016 # (the dirname of $[0] is not the place where we might find the
10017 # original and so on. Autoconf is especially sensitive to this).
10018 . "./$as_me.lineno"
10019 # Exit status is that of the last command.
10020 exit
10024 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10025 as_dirname=dirname
10026 else
10027 as_dirname=false
10030 ECHO_C= ECHO_N= ECHO_T=
10031 case `echo -n x` in
10032 -n*)
10033 case `echo 'x\c'` in
10034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10035 *) ECHO_C='\c';;
10036 esac;;
10038 ECHO_N='-n';;
10039 esac
10041 if expr a : '\(a\)' >/dev/null 2>&1 &&
10042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10043 as_expr=expr
10044 else
10045 as_expr=false
10048 rm -f conf$$ conf$$.exe conf$$.file
10049 if test -d conf$$.dir; then
10050 rm -f conf$$.dir/conf$$.file
10051 else
10052 rm -f conf$$.dir
10053 mkdir conf$$.dir
10055 echo >conf$$.file
10056 if ln -s conf$$.file conf$$ 2>/dev/null; then
10057 as_ln_s='ln -s'
10058 # ... but there are two gotchas:
10059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10061 # In both cases, we have to default to `cp -p'.
10062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10063 as_ln_s='cp -p'
10064 elif ln conf$$.file conf$$ 2>/dev/null; then
10065 as_ln_s=ln
10066 else
10067 as_ln_s='cp -p'
10069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10070 rmdir conf$$.dir 2>/dev/null
10072 if mkdir -p . 2>/dev/null; then
10073 as_mkdir_p=:
10074 else
10075 test -d ./-p && rmdir ./-p
10076 as_mkdir_p=false
10079 if test -x / >/dev/null 2>&1; then
10080 as_test_x='test -x'
10081 else
10082 if ls -dL / >/dev/null 2>&1; then
10083 as_ls_L_option=L
10084 else
10085 as_ls_L_option=
10087 as_test_x='
10088 eval sh -c '\''
10089 if test -d "$1"; then
10090 test -d "$1/.";
10091 else
10092 case $1 in
10093 -*)set "./$1";;
10094 esac;
10095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10096 ???[sx]*):;;*)false;;esac;fi
10097 '\'' sh
10100 as_executable_p=$as_test_x
10102 # Sed expression to map a string onto a valid CPP name.
10103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10105 # Sed expression to map a string onto a valid variable name.
10106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10109 exec 6>&1
10111 # Save the log message, to keep $[0] and so on meaningful, and to
10112 # report actual input values of CONFIG_FILES etc. instead of their
10113 # values after options handling.
10114 ac_log="
10115 This file was extended by gpiv $as_me 0.5.2, which was
10116 generated by GNU Autoconf 2.61. Invocation command line was
10118 CONFIG_FILES = $CONFIG_FILES
10119 CONFIG_HEADERS = $CONFIG_HEADERS
10120 CONFIG_LINKS = $CONFIG_LINKS
10121 CONFIG_COMMANDS = $CONFIG_COMMANDS
10122 $ $0 $@
10124 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10127 _ACEOF
10129 cat >>$CONFIG_STATUS <<_ACEOF
10130 # Files that config.status was made for.
10131 config_files="$ac_config_files"
10132 config_commands="$ac_config_commands"
10134 _ACEOF
10136 cat >>$CONFIG_STATUS <<\_ACEOF
10137 ac_cs_usage="\
10138 \`$as_me' instantiates files from templates according to the
10139 current configuration.
10141 Usage: $0 [OPTIONS] [FILE]...
10143 -h, --help print this help, then exit
10144 -V, --version print version number and configuration settings, then exit
10145 -q, --quiet do not print progress messages
10146 -d, --debug don't remove temporary files
10147 --recheck update $as_me by reconfiguring in the same conditions
10148 --file=FILE[:TEMPLATE]
10149 instantiate the configuration file FILE
10151 Configuration files:
10152 $config_files
10154 Configuration commands:
10155 $config_commands
10157 Report bugs to <bug-autoconf@gnu.org>."
10159 _ACEOF
10160 cat >>$CONFIG_STATUS <<_ACEOF
10161 ac_cs_version="\\
10162 gpiv config.status 0.5.2
10163 configured by $0, generated by GNU Autoconf 2.61,
10164 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10166 Copyright (C) 2006 Free Software Foundation, Inc.
10167 This config.status script is free software; the Free Software Foundation
10168 gives unlimited permission to copy, distribute and modify it."
10170 ac_pwd='$ac_pwd'
10171 srcdir='$srcdir'
10172 INSTALL='$INSTALL'
10173 _ACEOF
10175 cat >>$CONFIG_STATUS <<\_ACEOF
10176 # If no file are specified by the user, then we need to provide default
10177 # value. By we need to know if files were specified by the user.
10178 ac_need_defaults=:
10179 while test $# != 0
10181 case $1 in
10182 --*=*)
10183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10185 ac_shift=:
10188 ac_option=$1
10189 ac_optarg=$2
10190 ac_shift=shift
10192 esac
10194 case $ac_option in
10195 # Handling of the options.
10196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10197 ac_cs_recheck=: ;;
10198 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10199 echo "$ac_cs_version"; exit ;;
10200 --debug | --debu | --deb | --de | --d | -d )
10201 debug=: ;;
10202 --file | --fil | --fi | --f )
10203 $ac_shift
10204 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10205 ac_need_defaults=false;;
10206 --he | --h | --help | --hel | -h )
10207 echo "$ac_cs_usage"; exit ;;
10208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10210 ac_cs_silent=: ;;
10212 # This is an error.
10213 -*) { echo "$as_me: error: unrecognized option: $1
10214 Try \`$0 --help' for more information." >&2
10215 { (exit 1); exit 1; }; } ;;
10217 *) ac_config_targets="$ac_config_targets $1"
10218 ac_need_defaults=false ;;
10220 esac
10221 shift
10222 done
10224 ac_configure_extra_args=
10226 if $ac_cs_silent; then
10227 exec 6>/dev/null
10228 ac_configure_extra_args="$ac_configure_extra_args --silent"
10231 _ACEOF
10232 cat >>$CONFIG_STATUS <<_ACEOF
10233 if \$ac_cs_recheck; then
10234 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10235 CONFIG_SHELL=$SHELL
10236 export CONFIG_SHELL
10237 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10240 _ACEOF
10241 cat >>$CONFIG_STATUS <<\_ACEOF
10242 exec 5>>config.log
10244 echo
10245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10246 ## Running $as_me. ##
10247 _ASBOX
10248 echo "$ac_log"
10249 } >&5
10251 _ACEOF
10252 cat >>$CONFIG_STATUS <<_ACEOF
10254 # INIT-COMMANDS
10256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10259 _ACEOF
10261 cat >>$CONFIG_STATUS <<\_ACEOF
10263 # Handling of arguments.
10264 for ac_config_target in $ac_config_targets
10266 case $ac_config_target in
10267 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10268 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10269 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10270 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10271 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
10272 "doc/C/figures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/figures/Makefile" ;;
10273 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10274 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10275 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10276 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
10277 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
10279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10281 { (exit 1); exit 1; }; };;
10282 esac
10283 done
10286 # If the user did not use the arguments to specify the items to instantiate,
10287 # then the envvar interface is used. Set only those that are not.
10288 # We use the long form for the default assignment because of an extremely
10289 # bizarre bug on SunOS 4.1.3.
10290 if $ac_need_defaults; then
10291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10295 # Have a temporary directory for convenience. Make it in the build tree
10296 # simply because there is no reason against having it here, and in addition,
10297 # creating and moving files from /tmp can sometimes cause problems.
10298 # Hook for its removal unless debugging.
10299 # Note that there is a small window in which the directory will not be cleaned:
10300 # after its creation but before its name has been assigned to `$tmp'.
10301 $debug ||
10303 tmp=
10304 trap 'exit_status=$?
10305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10307 trap '{ (exit 1); exit 1; }' 1 2 13 15
10309 # Create a (secure) tmp directory for tmp files.
10312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10313 test -n "$tmp" && test -d "$tmp"
10314 } ||
10316 tmp=./conf$$-$RANDOM
10317 (umask 077 && mkdir "$tmp")
10318 } ||
10320 echo "$me: cannot create a temporary directory in ." >&2
10321 { (exit 1); exit 1; }
10325 # Set up the sed scripts for CONFIG_FILES section.
10328 # No need to generate the scripts if there are no CONFIG_FILES.
10329 # This happens for instance when ./config.status config.h
10330 if test -n "$CONFIG_FILES"; then
10332 _ACEOF
10336 ac_delim='%!_!# '
10337 for ac_last_try in false false false false false :; do
10338 cat >conf$$subs.sed <<_ACEOF
10339 SHELL!$SHELL$ac_delim
10340 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10341 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10342 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10343 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10344 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10345 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10346 exec_prefix!$exec_prefix$ac_delim
10347 prefix!$prefix$ac_delim
10348 program_transform_name!$program_transform_name$ac_delim
10349 bindir!$bindir$ac_delim
10350 sbindir!$sbindir$ac_delim
10351 libexecdir!$libexecdir$ac_delim
10352 datarootdir!$datarootdir$ac_delim
10353 datadir!$datadir$ac_delim
10354 sysconfdir!$sysconfdir$ac_delim
10355 sharedstatedir!$sharedstatedir$ac_delim
10356 localstatedir!$localstatedir$ac_delim
10357 includedir!$includedir$ac_delim
10358 oldincludedir!$oldincludedir$ac_delim
10359 docdir!$docdir$ac_delim
10360 infodir!$infodir$ac_delim
10361 htmldir!$htmldir$ac_delim
10362 dvidir!$dvidir$ac_delim
10363 pdfdir!$pdfdir$ac_delim
10364 psdir!$psdir$ac_delim
10365 libdir!$libdir$ac_delim
10366 localedir!$localedir$ac_delim
10367 mandir!$mandir$ac_delim
10368 DEFS!$DEFS$ac_delim
10369 ECHO_C!$ECHO_C$ac_delim
10370 ECHO_N!$ECHO_N$ac_delim
10371 ECHO_T!$ECHO_T$ac_delim
10372 LIBS!$LIBS$ac_delim
10373 build_alias!$build_alias$ac_delim
10374 host_alias!$host_alias$ac_delim
10375 target_alias!$target_alias$ac_delim
10376 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10377 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10378 INSTALL_DATA!$INSTALL_DATA$ac_delim
10379 CYGPATH_W!$CYGPATH_W$ac_delim
10380 PACKAGE!$PACKAGE$ac_delim
10381 VERSION!$VERSION$ac_delim
10382 ACLOCAL!$ACLOCAL$ac_delim
10383 AUTOCONF!$AUTOCONF$ac_delim
10384 AUTOMAKE!$AUTOMAKE$ac_delim
10385 AUTOHEADER!$AUTOHEADER$ac_delim
10386 MAKEINFO!$MAKEINFO$ac_delim
10387 install_sh!$install_sh$ac_delim
10388 STRIP!$STRIP$ac_delim
10389 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10390 mkdir_p!$mkdir_p$ac_delim
10391 AWK!$AWK$ac_delim
10392 SET_MAKE!$SET_MAKE$ac_delim
10393 am__leading_dot!$am__leading_dot$ac_delim
10394 AMTAR!$AMTAR$ac_delim
10395 am__tar!$am__tar$ac_delim
10396 am__untar!$am__untar$ac_delim
10397 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10398 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10399 MAINT!$MAINT$ac_delim
10400 CC!$CC$ac_delim
10401 CFLAGS!$CFLAGS$ac_delim
10402 LDFLAGS!$LDFLAGS$ac_delim
10403 CPPFLAGS!$CPPFLAGS$ac_delim
10404 ac_ct_CC!$ac_ct_CC$ac_delim
10405 EXEEXT!$EXEEXT$ac_delim
10406 OBJEXT!$OBJEXT$ac_delim
10407 DEPDIR!$DEPDIR$ac_delim
10408 am__include!$am__include$ac_delim
10409 am__quote!$am__quote$ac_delim
10410 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10411 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10412 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10413 CCDEPMODE!$CCDEPMODE$ac_delim
10414 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10415 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10416 CPP!$CPP$ac_delim
10417 GREP!$GREP$ac_delim
10418 EGREP!$EGREP$ac_delim
10419 PKG_CONFIG!$PKG_CONFIG$ac_delim
10420 GPIV_UI_CFLAGS!$GPIV_UI_CFLAGS$ac_delim
10421 GPIV_UI_LIBS!$GPIV_UI_LIBS$ac_delim
10422 GPIV_PRINT_CFLAGS!$GPIV_PRINT_CFLAGS$ac_delim
10423 GPIV_PRINT_LIBS!$GPIV_PRINT_LIBS$ac_delim
10424 GPIV_CFLAGS!$GPIV_CFLAGS$ac_delim
10425 GPIV_LIBS!$GPIV_LIBS$ac_delim
10426 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
10427 USE_NLS!$USE_NLS$ac_delim
10428 MSGFMT!$MSGFMT$ac_delim
10429 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
10430 GMSGFMT!$GMSGFMT$ac_delim
10431 XGETTEXT!$XGETTEXT$ac_delim
10432 CATALOGS!$CATALOGS$ac_delim
10433 CATOBJEXT!$CATOBJEXT$ac_delim
10434 DATADIRNAME!$DATADIRNAME$ac_delim
10435 GMOFILES!$GMOFILES$ac_delim
10436 _ACEOF
10438 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10439 break
10440 elif $ac_last_try; then
10441 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10443 { (exit 1); exit 1; }; }
10444 else
10445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10447 done
10449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10450 if test -n "$ac_eof"; then
10451 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10452 ac_eof=`expr $ac_eof + 1`
10455 cat >>$CONFIG_STATUS <<_ACEOF
10456 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10458 _ACEOF
10459 sed '
10460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10461 s/^/s,@/; s/!/@,|#_!!_#|/
10464 s/'"$ac_delim"'$/,g/; t
10465 s/$/\\/; p
10466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10467 ' >>$CONFIG_STATUS <conf$$subs.sed
10468 rm -f conf$$subs.sed
10469 cat >>$CONFIG_STATUS <<_ACEOF
10470 CEOF$ac_eof
10471 _ACEOF
10474 ac_delim='%!_!# '
10475 for ac_last_try in false false false false false :; do
10476 cat >conf$$subs.sed <<_ACEOF
10477 INSTOBJEXT!$INSTOBJEXT$ac_delim
10478 INTLLIBS!$INTLLIBS$ac_delim
10479 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
10480 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
10481 POFILES!$POFILES$ac_delim
10482 POSUB!$POSUB$ac_delim
10483 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
10484 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
10485 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
10486 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
10487 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
10488 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
10489 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
10490 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
10491 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
10492 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
10493 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
10494 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
10495 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
10496 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
10497 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
10498 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
10499 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
10500 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
10501 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
10502 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
10503 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
10504 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
10505 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
10506 MSGMERGE!$MSGMERGE$ac_delim
10507 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
10508 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
10509 ENABLE_CAM!$ENABLE_CAM$ac_delim
10510 ENABLE_TRIG!$ENABLE_TRIG$ac_delim
10511 ENABLE_DAC!$ENABLE_DAC$ac_delim
10512 CONTROL!$CONTROL$ac_delim
10513 HAVE_CONTROL_TRUE!$HAVE_CONTROL_TRUE$ac_delim
10514 HAVE_CONTROL_FALSE!$HAVE_CONTROL_FALSE$ac_delim
10515 RTA_TOPDIR!$RTA_TOPDIR$ac_delim
10516 K_TOPDIR!$K_TOPDIR$ac_delim
10517 OVERRIDE_IMAGE_WIDTH_MAX!$OVERRIDE_IMAGE_WIDTH_MAX$ac_delim
10518 OVERRIDE_IMAGE_HEIGHT_MAX!$OVERRIDE_IMAGE_HEIGHT_MAX$ac_delim
10519 CANVAS_AA!$CANVAS_AA$ac_delim
10520 DEBUG!$DEBUG$ac_delim
10521 ENABLE_MPI!$ENABLE_MPI$ac_delim
10522 LIBOBJS!$LIBOBJS$ac_delim
10523 LTLIBOBJS!$LTLIBOBJS$ac_delim
10524 _ACEOF
10526 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
10527 break
10528 elif $ac_last_try; then
10529 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10531 { (exit 1); exit 1; }; }
10532 else
10533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10535 done
10537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10538 if test -n "$ac_eof"; then
10539 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10540 ac_eof=`expr $ac_eof + 1`
10543 cat >>$CONFIG_STATUS <<_ACEOF
10544 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10546 _ACEOF
10547 sed '
10548 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10549 s/^/s,@/; s/!/@,|#_!!_#|/
10552 s/'"$ac_delim"'$/,g/; t
10553 s/$/\\/; p
10554 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10555 ' >>$CONFIG_STATUS <conf$$subs.sed
10556 rm -f conf$$subs.sed
10557 cat >>$CONFIG_STATUS <<_ACEOF
10558 :end
10559 s/|#_!!_#|//g
10560 CEOF$ac_eof
10561 _ACEOF
10564 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10565 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10566 # trailing colons and then remove the whole line if VPATH becomes empty
10567 # (actually we leave an empty line to preserve line numbers).
10568 if test "x$srcdir" = x.; then
10569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10570 s/:*\$(srcdir):*/:/
10571 s/:*\${srcdir}:*/:/
10572 s/:*@srcdir@:*/:/
10573 s/^\([^=]*=[ ]*\):*/\1/
10574 s/:*$//
10575 s/^[^=]*=[ ]*$//
10579 cat >>$CONFIG_STATUS <<\_ACEOF
10580 fi # test -n "$CONFIG_FILES"
10583 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
10585 case $ac_tag in
10586 :[FHLC]) ac_mode=$ac_tag; continue;;
10587 esac
10588 case $ac_mode$ac_tag in
10589 :[FHL]*:*);;
10590 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10591 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10592 { (exit 1); exit 1; }; };;
10593 :[FH]-) ac_tag=-:-;;
10594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10595 esac
10596 ac_save_IFS=$IFS
10597 IFS=:
10598 set x $ac_tag
10599 IFS=$ac_save_IFS
10600 shift
10601 ac_file=$1
10602 shift
10604 case $ac_mode in
10605 :L) ac_source=$1;;
10606 :[FH])
10607 ac_file_inputs=
10608 for ac_f
10610 case $ac_f in
10611 -) ac_f="$tmp/stdin";;
10612 *) # Look for the file first in the build tree, then in the source tree
10613 # (if the path is not absolute). The absolute path cannot be DOS-style,
10614 # because $ac_f cannot contain `:'.
10615 test -f "$ac_f" ||
10616 case $ac_f in
10617 [\\/$]*) false;;
10618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10619 esac ||
10620 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10621 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10622 { (exit 1); exit 1; }; };;
10623 esac
10624 ac_file_inputs="$ac_file_inputs $ac_f"
10625 done
10627 # Let's still pretend it is `configure' which instantiates (i.e., don't
10628 # use $as_me), people would be surprised to read:
10629 # /* config.h. Generated by config.status. */
10630 configure_input="Generated from "`IFS=:
10631 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10632 if test x"$ac_file" != x-; then
10633 configure_input="$ac_file. $configure_input"
10634 { echo "$as_me:$LINENO: creating $ac_file" >&5
10635 echo "$as_me: creating $ac_file" >&6;}
10638 case $ac_tag in
10639 *:-:* | *:-) cat >"$tmp/stdin";;
10640 esac
10642 esac
10644 ac_dir=`$as_dirname -- "$ac_file" ||
10645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10646 X"$ac_file" : 'X\(//\)[^/]' \| \
10647 X"$ac_file" : 'X\(//\)$' \| \
10648 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10649 echo X"$ac_file" |
10650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10651 s//\1/
10654 /^X\(\/\/\)[^/].*/{
10655 s//\1/
10658 /^X\(\/\/\)$/{
10659 s//\1/
10662 /^X\(\/\).*/{
10663 s//\1/
10666 s/.*/./; q'`
10667 { as_dir="$ac_dir"
10668 case $as_dir in #(
10669 -*) as_dir=./$as_dir;;
10670 esac
10671 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10672 as_dirs=
10673 while :; do
10674 case $as_dir in #(
10675 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10676 *) as_qdir=$as_dir;;
10677 esac
10678 as_dirs="'$as_qdir' $as_dirs"
10679 as_dir=`$as_dirname -- "$as_dir" ||
10680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10681 X"$as_dir" : 'X\(//\)[^/]' \| \
10682 X"$as_dir" : 'X\(//\)$' \| \
10683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10684 echo X"$as_dir" |
10685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10686 s//\1/
10689 /^X\(\/\/\)[^/].*/{
10690 s//\1/
10693 /^X\(\/\/\)$/{
10694 s//\1/
10697 /^X\(\/\).*/{
10698 s//\1/
10701 s/.*/./; q'`
10702 test -d "$as_dir" && break
10703 done
10704 test -z "$as_dirs" || eval "mkdir $as_dirs"
10705 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10706 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10707 { (exit 1); exit 1; }; }; }
10708 ac_builddir=.
10710 case "$ac_dir" in
10711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10714 # A ".." for each directory in $ac_dir_suffix.
10715 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10716 case $ac_top_builddir_sub in
10717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10719 esac ;;
10720 esac
10721 ac_abs_top_builddir=$ac_pwd
10722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10723 # for backward compatibility:
10724 ac_top_builddir=$ac_top_build_prefix
10726 case $srcdir in
10727 .) # We are building in place.
10728 ac_srcdir=.
10729 ac_top_srcdir=$ac_top_builddir_sub
10730 ac_abs_top_srcdir=$ac_pwd ;;
10731 [\\/]* | ?:[\\/]* ) # Absolute name.
10732 ac_srcdir=$srcdir$ac_dir_suffix;
10733 ac_top_srcdir=$srcdir
10734 ac_abs_top_srcdir=$srcdir ;;
10735 *) # Relative name.
10736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10737 ac_top_srcdir=$ac_top_build_prefix$srcdir
10738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10739 esac
10740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10743 case $ac_mode in
10746 # CONFIG_FILE
10749 case $INSTALL in
10750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10752 esac
10753 _ACEOF
10755 cat >>$CONFIG_STATUS <<\_ACEOF
10756 # If the template does not know about datarootdir, expand it.
10757 # FIXME: This hack should be removed a few years after 2.60.
10758 ac_datarootdir_hack=; ac_datarootdir_seen=
10760 case `sed -n '/datarootdir/ {
10764 /@datadir@/p
10765 /@docdir@/p
10766 /@infodir@/p
10767 /@localedir@/p
10768 /@mandir@/p
10769 ' $ac_file_inputs` in
10770 *datarootdir*) ac_datarootdir_seen=yes;;
10771 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10772 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10773 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10774 _ACEOF
10775 cat >>$CONFIG_STATUS <<_ACEOF
10776 ac_datarootdir_hack='
10777 s&@datadir@&$datadir&g
10778 s&@docdir@&$docdir&g
10779 s&@infodir@&$infodir&g
10780 s&@localedir@&$localedir&g
10781 s&@mandir@&$mandir&g
10782 s&\\\${datarootdir}&$datarootdir&g' ;;
10783 esac
10784 _ACEOF
10786 # Neutralize VPATH when `$srcdir' = `.'.
10787 # Shell code in configure.ac might set extrasub.
10788 # FIXME: do we really want to maintain this feature?
10789 cat >>$CONFIG_STATUS <<_ACEOF
10790 sed "$ac_vpsub
10791 $extrasub
10792 _ACEOF
10793 cat >>$CONFIG_STATUS <<\_ACEOF
10795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10796 s&@configure_input@&$configure_input&;t t
10797 s&@top_builddir@&$ac_top_builddir_sub&;t t
10798 s&@srcdir@&$ac_srcdir&;t t
10799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10800 s&@top_srcdir@&$ac_top_srcdir&;t t
10801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10802 s&@builddir@&$ac_builddir&;t t
10803 s&@abs_builddir@&$ac_abs_builddir&;t t
10804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10805 s&@INSTALL@&$ac_INSTALL&;t t
10806 $ac_datarootdir_hack
10807 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10812 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10813 which seems to be undefined. Please make sure it is defined." >&5
10814 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10815 which seems to be undefined. Please make sure it is defined." >&2;}
10817 rm -f "$tmp/stdin"
10818 case $ac_file in
10819 -) cat "$tmp/out"; rm -f "$tmp/out";;
10820 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10821 esac
10825 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10826 echo "$as_me: executing $ac_file commands" >&6;}
10828 esac
10831 case $ac_file$ac_mode in
10832 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10833 # Strip MF so we end up with the name of the file.
10834 mf=`echo "$mf" | sed -e 's/:.*$//'`
10835 # Check whether this is an Automake generated Makefile or not.
10836 # We used to match only the files named `Makefile.in', but
10837 # some people rename them; so instead we look at the file content.
10838 # Grep'ing the first line is not enough: some people post-process
10839 # each Makefile.in and add a new line on top of each file to say so.
10840 # So let's grep whole file.
10841 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10842 dirpart=`$as_dirname -- "$mf" ||
10843 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10844 X"$mf" : 'X\(//\)[^/]' \| \
10845 X"$mf" : 'X\(//\)$' \| \
10846 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10847 echo X"$mf" |
10848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10849 s//\1/
10852 /^X\(\/\/\)[^/].*/{
10853 s//\1/
10856 /^X\(\/\/\)$/{
10857 s//\1/
10860 /^X\(\/\).*/{
10861 s//\1/
10864 s/.*/./; q'`
10865 else
10866 continue
10868 # Extract the definition of DEPDIR, am__include, and am__quote
10869 # from the Makefile without running `make'.
10870 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10871 test -z "$DEPDIR" && continue
10872 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10873 test -z "am__include" && continue
10874 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10875 # When using ansi2knr, U may be empty or an underscore; expand it
10876 U=`sed -n 's/^U = //p' < "$mf"`
10877 # Find all dependency output files, they are included files with
10878 # $(DEPDIR) in their names. We invoke sed twice because it is the
10879 # simplest approach to changing $(DEPDIR) to its actual value in the
10880 # expansion.
10881 for file in `sed -n "
10882 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10883 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10884 # Make sure the directory exists.
10885 test -f "$dirpart/$file" && continue
10886 fdir=`$as_dirname -- "$file" ||
10887 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10888 X"$file" : 'X\(//\)[^/]' \| \
10889 X"$file" : 'X\(//\)$' \| \
10890 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10891 echo X"$file" |
10892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10893 s//\1/
10896 /^X\(\/\/\)[^/].*/{
10897 s//\1/
10900 /^X\(\/\/\)$/{
10901 s//\1/
10904 /^X\(\/\).*/{
10905 s//\1/
10908 s/.*/./; q'`
10909 { as_dir=$dirpart/$fdir
10910 case $as_dir in #(
10911 -*) as_dir=./$as_dir;;
10912 esac
10913 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10914 as_dirs=
10915 while :; do
10916 case $as_dir in #(
10917 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10918 *) as_qdir=$as_dir;;
10919 esac
10920 as_dirs="'$as_qdir' $as_dirs"
10921 as_dir=`$as_dirname -- "$as_dir" ||
10922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10923 X"$as_dir" : 'X\(//\)[^/]' \| \
10924 X"$as_dir" : 'X\(//\)$' \| \
10925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10926 echo X"$as_dir" |
10927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10928 s//\1/
10931 /^X\(\/\/\)[^/].*/{
10932 s//\1/
10935 /^X\(\/\/\)$/{
10936 s//\1/
10939 /^X\(\/\).*/{
10940 s//\1/
10943 s/.*/./; q'`
10944 test -d "$as_dir" && break
10945 done
10946 test -z "$as_dirs" || eval "mkdir $as_dirs"
10947 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10949 { (exit 1); exit 1; }; }; }
10950 # echo "creating $dirpart/$file"
10951 echo '# dummy' > "$dirpart/$file"
10952 done
10953 done
10955 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
10956 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10957 esac ;;
10958 "po/stamp-it":C)
10959 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
10960 >"po/stamp-it.tmp"
10961 sed '/^#/d
10962 s/^[[].*] *//
10963 /^[ ]*$/d
10964 '"s|^| $ac_top_srcdir/|" \
10965 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
10967 if test ! -f "po/Makefile"; then
10968 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
10969 echo "$as_me: error: po/Makefile is not ready." >&2;}
10970 { (exit 1); exit 1; }; }
10972 mv "po/Makefile" "po/Makefile.tmp"
10973 sed '/^POTFILES =/,/[^\\]$/ {
10974 /^POTFILES =/!d
10975 r po/POTFILES
10977 ' "po/Makefile.tmp" >"po/Makefile"
10978 rm -f "po/Makefile.tmp"
10979 mv "po/stamp-it.tmp" "po/stamp-it"
10982 esac
10983 done # for ac_tag
10986 { (exit 0); exit 0; }
10987 _ACEOF
10988 chmod +x $CONFIG_STATUS
10989 ac_clean_files=$ac_clean_files_save
10992 # configure is writing to config.log, and then calls config.status.
10993 # config.status does its own redirection, appending to config.log.
10994 # Unfortunately, on DOS this fails, as config.log is still kept open
10995 # by configure, so config.status won't be able to write to it; its
10996 # output is simply discarded. So we exec the FD to /dev/null,
10997 # effectively closing config.log, so it can be properly (re)opened and
10998 # appended to by config.status. When coming back to configure, we
10999 # need to make the FD available again.
11000 if test "$no_create" != yes; then
11001 ac_cs_success=:
11002 ac_config_status_args=
11003 test "$silent" = yes &&
11004 ac_config_status_args="$ac_config_status_args --quiet"
11005 exec 5>/dev/null
11006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11007 exec 5>>config.log
11008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11009 # would make configure fail if this is the last instruction.
11010 $ac_cs_success || { (exit 1); exit 1; }
11015 echo "===================================================================="
11016 echo "Configuration succesfully finished"
11017 if test $HAVE_GNOME_PRINT; then
11018 echo "with gnomeprint"
11019 else
11020 echo "without gnomeprint"
11023 if test $ENABLE_CAM; then
11024 echo "with (IEEE-1394) camera enabled"
11027 if test $ENABLE_TRIG; then
11028 echo "with (realtime) triggering enabled."
11030 if test x$CONTROL = xfalse ; then
11031 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
11032 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
11033 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
11034 echo ""
11038 if test $ENABLE_MPI; then
11039 echo "Using Message Passing Interface (MPI)"
11040 echo "for processing on distributed memory systems"
11043 echo "Type 'make' and 'make install' to build and install gpiv"
11044 echo "===================================================================="