added imgproc routines
[gpiv.git] / configure
blob839683a048d5eac02d99ff360b3fc01ad91c9934
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_DESKTOP_RULE
722 INTLTOOL_DIRECTORY_RULE
723 INTLTOOL_KEYS_RULE
724 INTLTOOL_PROP_RULE
725 INTLTOOL_OAF_RULE
726 INTLTOOL_PONG_RULE
727 INTLTOOL_SERVER_RULE
728 INTLTOOL_SHEET_RULE
729 INTLTOOL_SOUNDLIST_RULE
730 INTLTOOL_UI_RULE
731 INTLTOOL_XAM_RULE
732 INTLTOOL_KBD_RULE
733 INTLTOOL_XML_RULE
734 INTLTOOL_XML_NOMERGE_RULE
735 INTLTOOL_CAVES_RULE
736 INTLTOOL_SCHEMAS_RULE
737 INTLTOOL_THEME_RULE
738 INTLTOOL_SERVICE_RULE
739 INTLTOOL_POLICY_RULE
740 MSGMERGE
741 INTLTOOL_EXTRACT
742 INTLTOOL_MERGE
743 INTLTOOL_UPDATE
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 LIBOBJS
759 LTLIBOBJS'
760 ac_subst_files=''
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
770 PKG_CONFIG
771 GPIV_UI_CFLAGS
772 GPIV_UI_LIBS
773 GPIV_PRINT_CFLAGS
774 GPIV_PRINT_LIBS
775 GPIV_CFLAGS
776 GPIV_LIBS'
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
825 ac_prev=
826 ac_dashdash=
827 for ac_option
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
836 case $ac_option in
837 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *) ac_optarg=yes ;;
839 esac
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
845 ac_dashdash=yes ;;
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
864 --config-cache | -C)
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
883 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
884 { (exit 1); exit 1; }; }
885 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
886 eval enable_$ac_feature=no ;;
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
898 -enable-* | --enable-*)
899 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
902 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903 { (exit 1); exit 1; }; }
904 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
905 eval enable_$ac_feature=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1095 -with-* | --with-*)
1096 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid package name: $ac_package" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1102 eval with_$ac_package=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid package name: $ac_package" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1111 eval with_$ac_package=no ;;
1113 --x)
1114 # Obsolete; use --with-x.
1115 with_x=yes ;;
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1131 -*) { echo "$as_me: error: unrecognized option: $ac_option
1132 Try \`$0 --help' for more information." >&2
1133 { (exit 1); exit 1; }; }
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1141 { (exit 1); exit 1; }; }
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 esac
1154 done
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 { echo "$as_me: error: missing argument to $ac_option" >&2
1159 { (exit 1); exit 1; }; }
1162 # Be sure to have absolute directory names.
1163 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir
1168 eval ac_val=\$$ac_var
1169 case $ac_val in
1170 [\\/$]* | ?:[\\/]* ) continue;;
1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172 esac
1173 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1174 { (exit 1); exit 1; }; }
1175 done
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189 If a cross compiler is detected then cross compile mode will be used." >&2
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198 test "$silent" = yes && exec 6>/dev/null
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 { echo "$as_me: error: Working directory cannot be determined" >&2
1205 { (exit 1); exit 1; }; }
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 { echo "$as_me: error: pwd does not report name of working directory" >&2
1208 { (exit 1); exit 1; }; }
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$0" ||
1216 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$0" : 'X\(//\)[^/]' \| \
1218 X"$0" : 'X\(//\)$' \| \
1219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1220 echo X"$0" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 s//\1/
1225 /^X\(\/\/\)[^/].*/{
1226 s//\1/
1229 /^X\(\/\/\)$/{
1230 s//\1/
1233 /^X\(\/\).*/{
1234 s//\1/
1237 s/.*/./; q'`
1238 srcdir=$ac_confdir
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1240 srcdir=..
1242 else
1243 ac_srcdir_defaulted=no
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1248 { (exit 1); exit 1; }; }
1250 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 ac_abs_confdir=`(
1252 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1253 { (exit 1); exit 1; }; }
1254 pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279 \`configure' configures gpiv 0.5.2 to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1288 Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/gpiv]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1332 _ACEOF
1334 cat <<\_ACEOF
1336 Program names:
1337 --program-prefix=PREFIX prepend PREFIX to installed program names
1338 --program-suffix=SUFFIX append SUFFIX to installed program names
1339 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1340 _ACEOF
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of gpiv 0.5.2:";;
1346 esac
1347 cat <<\_ACEOF
1349 Optional Features:
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --enable-maintainer-mode enable make rules and dependencies not useful
1353 (and sometimes confusing) to the casual installer
1354 --disable-dependency-tracking speeds up one-time build
1355 --enable-dependency-tracking do not reject slow dependency extractors
1356 --enable-cam enable data acquisition
1357 --enable-trig enable (realtime) triggering
1358 --enable-rta=RTA_DIR place where the RTAI code resides
1359 (default /usr/lib/realtime)
1360 --enable-k=K_DIR place where the installed kernel
1361 headers resides
1362 (default /usr/src/kernel-headers-2.4.27-adeos)
1363 --enable-img-width=WIDTH maximum image width to be used (default SVGA)
1364 --enable-img-height=HEIGHT maximum image height to be used (default SVGA)
1365 --enable-canvas-aa Use Anti Aliased canvas for viewer; slower but
1366 better displaying of image and resulting data
1367 --enable-debug debug version (more verbose)
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1378 PKG_CONFIG path to pkg-config utility
1379 GPIV_UI_CFLAGS
1380 C compiler flags for GPIV_UI, overriding pkg-config
1381 GPIV_UI_LIBS
1382 linker flags for GPIV_UI, overriding pkg-config
1383 GPIV_PRINT_CFLAGS
1384 C compiler flags for GPIV_PRINT, overriding pkg-config
1385 GPIV_PRINT_LIBS
1386 linker flags for GPIV_PRINT, overriding pkg-config
1387 GPIV_CFLAGS C compiler flags for GPIV, overriding pkg-config
1388 GPIV_LIBS linker flags for GPIV, overriding pkg-config
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv>.
1394 _ACEOF
1395 ac_status=$?
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1402 ac_builddir=.
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 gpiv configure 0.5.2
1455 generated by GNU Autoconf 2.61
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by gpiv $as_me 0.5.2, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1471 $ $0 $@
1473 _ACEOF
1474 exec 5>>config.log
1476 cat <<_ASUNAME
1477 ## --------- ##
1478 ## Platform. ##
1479 ## --------- ##
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498 _ASUNAME
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506 done
1507 IFS=$as_save_IFS
1509 } >&5
1511 cat >&5 <<_ACEOF
1514 ## ----------- ##
1515 ## Core tests. ##
1516 ## ----------- ##
1518 _ACEOF
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_configure_args=
1527 ac_configure_args0=
1528 ac_configure_args1=
1529 ac_must_keep_next=false
1530 for ac_pass in 1 2
1532 for ac_arg
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
1539 *\'*)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1548 else
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1558 -* ) ac_must_keep_next=true ;;
1559 esac
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1563 esac
1564 done
1565 done
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1577 echo
1579 cat <<\_ASBOX
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1583 _ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
1601 (set) 2>&1 |
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1604 sed -n \
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611 esac |
1612 sort
1614 echo
1616 cat <<\_ASBOX
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1637 _ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
1646 done | sort
1647 echo
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652 ## ----------- ##
1653 ## confdefs.h. ##
1654 ## ----------- ##
1655 _ASBOX
1656 echo
1657 cat confdefs.h
1658 echo
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 exit $exit_status
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 done
1671 ac_signal=0
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 _ACEOF
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1713 shift
1714 for ac_site_file
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1720 . "$ac_site_file"
1722 done
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1733 esac
1735 else
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1741 # Check that the precious variables saved in the cache have kept the same
1742 # value.
1743 ac_cache_corrupted=false
1744 for ac_var in $ac_precious_vars; do
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1750 set,)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,set)
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,);;
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764 echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766 echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted=:
1768 fi;;
1769 esac
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1772 case $ac_new_val in
1773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 *) ac_arg=$ac_var=$ac_new_val ;;
1775 esac
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779 esac
1781 done
1782 if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 am__api_version="1.9"
1822 ac_aux_dir=
1823 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1824 if test -f "$ac_dir/install-sh"; then
1825 ac_aux_dir=$ac_dir
1826 ac_install_sh="$ac_aux_dir/install-sh -c"
1827 break
1828 elif test -f "$ac_dir/install.sh"; then
1829 ac_aux_dir=$ac_dir
1830 ac_install_sh="$ac_aux_dir/install.sh -c"
1831 break
1832 elif test -f "$ac_dir/shtool"; then
1833 ac_aux_dir=$ac_dir
1834 ac_install_sh="$ac_aux_dir/shtool install -c"
1835 break
1837 done
1838 if test -z "$ac_aux_dir"; then
1839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1840 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1841 { (exit 1); exit 1; }; }
1844 # These three variables are undocumented and unsupported,
1845 # and are intended to be withdrawn in a future Autoconf release.
1846 # They can cause serious problems if a builder's source tree is in a directory
1847 # whose full name contains unusual characters.
1848 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1849 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1850 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1853 # Find a good install program. We prefer a C program (faster),
1854 # so one script is as good as another. But avoid the broken or
1855 # incompatible versions:
1856 # SysV /etc/install, /usr/sbin/install
1857 # SunOS /usr/etc/install
1858 # IRIX /sbin/install
1859 # AIX /bin/install
1860 # AmigaOS /C/install, which installs bootblocks on floppy discs
1861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1864 # OS/2's system install, which has a completely different semantic
1865 # ./install, which can be erroneously created by make from ./install.sh.
1866 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1868 if test -z "$INSTALL"; then
1869 if test "${ac_cv_path_install+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 # Account for people who put trailing slashes in PATH elements.
1878 case $as_dir/ in
1879 ./ | .// | /cC/* | \
1880 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1881 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1882 /usr/ucb/* ) ;;
1884 # OSF1 and SCO ODT 3.0 have their own names for install.
1885 # Don't use installbsd from OSF since it installs stuff as root
1886 # by default.
1887 for ac_prog in ginstall scoinst install; do
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1890 if test $ac_prog = install &&
1891 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1892 # AIX install. It has an incompatible calling convention.
1894 elif test $ac_prog = install &&
1895 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1896 # program-specific install script used by HP pwplus--don't use.
1898 else
1899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1900 break 3
1903 done
1904 done
1906 esac
1907 done
1908 IFS=$as_save_IFS
1912 if test "${ac_cv_path_install+set}" = set; then
1913 INSTALL=$ac_cv_path_install
1914 else
1915 # As a last resort, use the slow shell script. Don't cache a
1916 # value for INSTALL within a source directory, because that will
1917 # break other packages using the cache if that directory is
1918 # removed, or if the value is a relative name.
1919 INSTALL=$ac_install_sh
1922 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1923 echo "${ECHO_T}$INSTALL" >&6; }
1925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1926 # It thinks the first close brace ends the variable substitution.
1927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1933 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1934 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1935 # Just in case
1936 sleep 1
1937 echo timestamp > conftest.file
1938 # Do `set' in a subshell so we don't clobber the current shell's
1939 # arguments. Must try -L first in case configure is actually a
1940 # symlink; some systems play weird games with the mod time of symlinks
1941 # (eg FreeBSD returns the mod time of the symlink's containing
1942 # directory).
1943 if (
1944 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1945 if test "$*" = "X"; then
1946 # -L didn't work.
1947 set X `ls -t $srcdir/configure conftest.file`
1949 rm -f conftest.file
1950 if test "$*" != "X $srcdir/configure conftest.file" \
1951 && test "$*" != "X conftest.file $srcdir/configure"; then
1953 # If neither matched, then we have a broken ls. This can happen
1954 # if, for instance, CONFIG_SHELL is bash and it inherits a
1955 # broken ls alias from the environment. This has actually
1956 # happened. Such a system could not be considered "sane".
1957 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1958 alias in your environment" >&5
1959 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1960 alias in your environment" >&2;}
1961 { (exit 1); exit 1; }; }
1964 test "$2" = conftest.file
1966 then
1967 # Ok.
1969 else
1970 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1971 Check your system clock" >&5
1972 echo "$as_me: error: newly created file is older than distributed files!
1973 Check your system clock" >&2;}
1974 { (exit 1); exit 1; }; }
1976 { echo "$as_me:$LINENO: result: yes" >&5
1977 echo "${ECHO_T}yes" >&6; }
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $. echo might interpret backslashes.
1984 # By default was `s,x,x', remove it if useless.
1985 cat <<\_ACEOF >conftest.sed
1986 s/[\\$]/&&/g;s/;s,x,x,$//
1987 _ACEOF
1988 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1989 rm -f conftest.sed
1991 # expand $ac_aux_dir to an absolute path
1992 am_aux_dir=`cd $ac_aux_dir && pwd`
1994 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1995 # Use eval to expand $SHELL
1996 if eval "$MISSING --run true"; then
1997 am_missing_run="$MISSING --run "
1998 else
1999 am_missing_run=
2000 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2001 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2004 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2005 # We used to keeping the `.' as first argument, in order to
2006 # allow $(mkdir_p) to be used without argument. As in
2007 # $(mkdir_p) $(somedir)
2008 # where $(somedir) is conditionally defined. However this is wrong
2009 # for two reasons:
2010 # 1. if the package is installed by a user who cannot write `.'
2011 # make install will fail,
2012 # 2. the above comment should most certainly read
2013 # $(mkdir_p) $(DESTDIR)$(somedir)
2014 # so it does not work when $(somedir) is undefined and
2015 # $(DESTDIR) is not.
2016 # To support the latter case, we have to write
2017 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2018 # so the `.' trick is pointless.
2019 mkdir_p='mkdir -p --'
2020 else
2021 # On NextStep and OpenStep, the `mkdir' command does not
2022 # recognize any option. It will interpret all options as
2023 # directories to create, and then abort because `.' already
2024 # exists.
2025 for d in ./-p ./--version;
2027 test -d $d && rmdir $d
2028 done
2029 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2030 if test -f "$ac_aux_dir/mkinstalldirs"; then
2031 mkdir_p='$(mkinstalldirs)'
2032 else
2033 mkdir_p='$(install_sh) -d'
2037 for ac_prog in gawk mawk nawk awk
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043 if test "${ac_cv_prog_AWK+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test -n "$AWK"; then
2047 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2056 ac_cv_prog_AWK="$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2062 IFS=$as_save_IFS
2066 AWK=$ac_cv_prog_AWK
2067 if test -n "$AWK"; then
2068 { echo "$as_me:$LINENO: result: $AWK" >&5
2069 echo "${ECHO_T}$AWK" >&6; }
2070 else
2071 { echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6; }
2076 test -n "$AWK" && break
2077 done
2079 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2080 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2081 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2082 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 cat >conftest.make <<\_ACEOF
2086 SHELL = /bin/sh
2087 all:
2088 @echo '@@@%%%=$(MAKE)=@@@%%%'
2089 _ACEOF
2090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2092 *@@@%%%=?*=@@@%%%*)
2093 eval ac_cv_prog_make_${ac_make}_set=yes;;
2095 eval ac_cv_prog_make_${ac_make}_set=no;;
2096 esac
2097 rm -f conftest.make
2099 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2100 { echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6; }
2102 SET_MAKE=
2103 else
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2106 SET_MAKE="MAKE=${MAKE-make}"
2109 rm -rf .tst 2>/dev/null
2110 mkdir .tst 2>/dev/null
2111 if test -d .tst; then
2112 am__leading_dot=.
2113 else
2114 am__leading_dot=_
2116 rmdir .tst 2>/dev/null
2118 # test to see if srcdir already configured
2119 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2120 test -f $srcdir/config.status; then
2121 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2122 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2123 { (exit 1); exit 1; }; }
2126 # test whether we have cygpath
2127 if test -z "$CYGPATH_W"; then
2128 if (cygpath --version) >/dev/null 2>/dev/null; then
2129 CYGPATH_W='cygpath -w'
2130 else
2131 CYGPATH_W=echo
2136 # Define the identity of the package.
2137 PACKAGE=gpiv
2138 VERSION=0.5.2
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE "$PACKAGE"
2143 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define VERSION "$VERSION"
2148 _ACEOF
2150 # Some tools Automake needs.
2152 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2155 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2158 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2161 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2164 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2166 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2168 # Installed binaries are usually stripped using `strip' when the user
2169 # run `make install-strip'. However `strip' might not be the right
2170 # tool to use in cross-compilation environments, therefore Automake
2171 # will honor the `STRIP' environment variable to overrule this program.
2172 if test "$cross_compiling" != no; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}strip; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_STRIP+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$STRIP"; then
2182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2197 IFS=$as_save_IFS
2201 STRIP=$ac_cv_prog_STRIP
2202 if test -n "$STRIP"; then
2203 { echo "$as_me:$LINENO: result: $STRIP" >&5
2204 echo "${ECHO_T}$STRIP" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2212 if test -z "$ac_cv_prog_STRIP"; then
2213 ac_ct_STRIP=$STRIP
2214 # Extract the first word of "strip", so it can be a program name with args.
2215 set dummy strip; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$ac_ct_STRIP"; then
2222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_ac_ct_STRIP="strip"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2235 done
2236 done
2237 IFS=$as_save_IFS
2241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2242 if test -n "$ac_ct_STRIP"; then
2243 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2244 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2250 if test "x$ac_ct_STRIP" = x; then
2251 STRIP=":"
2252 else
2253 case $cross_compiling:$ac_tool_warned in
2254 yes:)
2255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet. If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&5
2258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2259 whose name does not start with the host triplet. If you think this
2260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2261 ac_tool_warned=yes ;;
2262 esac
2263 STRIP=$ac_ct_STRIP
2265 else
2266 STRIP="$ac_cv_prog_STRIP"
2270 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2272 # We need awk for the "check" target. The system "awk" is bad on
2273 # some platforms.
2274 # Always define AMTAR for backward compatibility.
2276 AMTAR=${AMTAR-"${am_missing_run}tar"}
2278 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2284 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2285 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2286 # Check whether --enable-maintainer-mode was given.
2287 if test "${enable_maintainer_mode+set}" = set; then
2288 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2289 else
2290 USE_MAINTAINER_MODE=no
2293 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2294 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2297 if test $USE_MAINTAINER_MODE = yes; then
2298 MAINTAINER_MODE_TRUE=
2299 MAINTAINER_MODE_FALSE='#'
2300 else
2301 MAINTAINER_MODE_TRUE='#'
2302 MAINTAINER_MODE_FALSE=
2305 MAINT=$MAINTAINER_MODE_TRUE
2310 DEPDIR="${am__leading_dot}deps"
2312 ac_config_commands="$ac_config_commands depfiles"
2315 am_make=${MAKE-make}
2316 cat > confinc << 'END'
2317 am__doit:
2318 @echo done
2319 .PHONY: am__doit
2321 # If we don't find an include directive, just comment out the code.
2322 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2323 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2324 am__include="#"
2325 am__quote=
2326 _am_result=none
2327 # First try GNU make style include.
2328 echo "include confinc" > confmf
2329 # We grep out `Entering directory' and `Leaving directory'
2330 # messages which can occur if `w' ends up in MAKEFLAGS.
2331 # In particular we don't look at `^make:' because GNU make might
2332 # be invoked under some other name (usually "gmake"), in which
2333 # case it prints its new name instead of `make'.
2334 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2335 am__include=include
2336 am__quote=
2337 _am_result=GNU
2339 # Now try BSD make style include.
2340 if test "$am__include" = "#"; then
2341 echo '.include "confinc"' > confmf
2342 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2343 am__include=.include
2344 am__quote="\""
2345 _am_result=BSD
2350 { echo "$as_me:$LINENO: result: $_am_result" >&5
2351 echo "${ECHO_T}$_am_result" >&6; }
2352 rm -f confinc confmf
2354 # Check whether --enable-dependency-tracking was given.
2355 if test "${enable_dependency_tracking+set}" = set; then
2356 enableval=$enable_dependency_tracking;
2359 if test "x$enable_dependency_tracking" != xno; then
2360 am_depcomp="$ac_aux_dir/depcomp"
2361 AMDEPBACKSLASH='\'
2365 if test "x$enable_dependency_tracking" != xno; then
2366 AMDEP_TRUE=
2367 AMDEP_FALSE='#'
2368 else
2369 AMDEP_TRUE='#'
2370 AMDEP_FALSE=
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6; }
2412 else
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2419 if test -z "$ac_cv_prog_CC"; then
2420 ac_ct_CC=$CC
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_CC="gcc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2444 IFS=$as_save_IFS
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2451 echo "${ECHO_T}$ac_ct_CC" >&6; }
2452 else
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2457 if test "x$ac_ct_CC" = x; then
2458 CC=""
2459 else
2460 case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2463 whose name does not start with the host triplet. If you think this
2464 configuration is useful to you, please write to autoconf@gnu.org." >&5
2465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2466 whose name does not start with the host triplet. If you think this
2467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2468 ac_tool_warned=yes ;;
2469 esac
2470 CC=$ac_ct_CC
2472 else
2473 CC="$ac_cv_prog_CC"
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC="${ac_tool_prefix}cc"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2499 done
2500 done
2501 IFS=$as_save_IFS
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2517 if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519 set dummy cc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 ac_prog_rejected=no
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2537 ac_prog_rejected=yes
2538 continue
2540 ac_cv_prog_CC="cc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2544 done
2545 done
2546 IFS=$as_save_IFS
2548 if test $ac_prog_rejected = yes; then
2549 # We found a bogon in the path, so make sure we never use it.
2550 set dummy $ac_cv_prog_CC
2551 shift
2552 if test $# != 0; then
2553 # We chose a different compiler from the bogus one.
2554 # However, it has the same basename, so the bogon will be chosen
2555 # first if we set CC to just the basename; use the full file name.
2556 shift
2557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$CC" && break
2615 done
2617 if test -z "$CC"; then
2618 ac_ct_CC=$CC
2619 for ac_prog in cl.exe
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_CC="$ac_prog"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2651 echo "${ECHO_T}$ac_ct_CC" >&6; }
2652 else
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2658 test -n "$ac_ct_CC" && break
2659 done
2661 if test "x$ac_ct_CC" = x; then
2662 CC=""
2663 else
2664 case $cross_compiling:$ac_tool_warned in
2665 yes:)
2666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2667 whose name does not start with the host triplet. If you think this
2668 configuration is useful to you, please write to autoconf@gnu.org." >&5
2669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2670 whose name does not start with the host triplet. If you think this
2671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2672 ac_tool_warned=yes ;;
2673 esac
2674 CC=$ac_ct_CC
2681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: no acceptable C compiler found in \$PATH
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO: checking for C compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (ac_try="$ac_compiler --version >&5"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compiler --version >&5") 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (ac_try="$ac_compiler -v >&5"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler -v >&5") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -V >&5"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -V >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 main ()
2733 return 0;
2735 _ACEOF
2736 ac_clean_files_save=$ac_clean_files
2737 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2738 # Try to create an executable without -o first, disregard a.out.
2739 # It will help us diagnose broken compilers, and finding out an intuition
2740 # of exeext.
2741 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2742 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2745 # List of possible output files, starting from the most likely.
2746 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2747 # only as a last resort. b.out is created by i960 compilers.
2748 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2750 # The IRIX 6 linker writes into existing files which may not be
2751 # executable, retaining their permissions. Remove them first so a
2752 # subsequent execution test works.
2753 ac_rmfiles=
2754 for ac_file in $ac_files
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2759 esac
2760 done
2761 rm -f $ac_rmfiles
2763 if { (ac_try="$ac_link_default"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_link_default") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; then
2773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2774 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2776 # so that the user can short-circuit this test for compilers unknown to
2777 # Autoconf.
2778 for ac_file in $ac_files ''
2780 test -f "$ac_file" || continue
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2784 [ab].out )
2785 # We found the default executable, but exeext='' is most
2786 # certainly right.
2787 break;;
2788 *.* )
2789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2790 then :; else
2791 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793 # We set ac_cv_exeext here because the later test for it is not
2794 # safe: cross compilers may not add the suffix if given an `-o'
2795 # argument, so we may need to know it at that point already.
2796 # Even if this section looks crufty: it has the advantage of
2797 # actually working.
2798 break;;
2800 break;;
2801 esac
2802 done
2803 test "$ac_cv_exeext" = no && ac_cv_exeext=
2805 else
2806 ac_file=''
2809 { echo "$as_me:$LINENO: result: $ac_file" >&5
2810 echo "${ECHO_T}$ac_file" >&6; }
2811 if test -z "$ac_file"; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&5
2817 echo "$as_me: error: C compiler cannot create executables
2818 See \`config.log' for more details." >&2;}
2819 { (exit 77); exit 77; }; }
2822 ac_exeext=$ac_cv_exeext
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 cross_compiling=no
2842 else
2843 if test "$cross_compiling" = maybe; then
2844 cross_compiling=yes
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: cannot run C compiled programs.
2850 If you meant to cross compile, use \`--host'.
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2856 { echo "$as_me:$LINENO: result: yes" >&5
2857 echo "${ECHO_T}yes" >&6; }
2859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866 echo "${ECHO_T}$cross_compiling" >&6; }
2868 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870 if { (ac_try="$ac_link"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe'), while it won't with
2883 # `rm'.
2884 for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 break;;
2890 * ) break;;
2891 esac
2892 done
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest$ac_cv_exeext
2902 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905 rm -f conftest.$ac_ext
2906 EXEEXT=$ac_cv_exeext
2907 ac_exeext=$EXEEXT
2908 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910 if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 main ()
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.o conftest.obj
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 break;;
2945 esac
2946 done
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2961 echo "${ECHO_T}$ac_cv_objext" >&6; }
2962 OBJEXT=$ac_cv_objext
2963 ac_objext=$OBJEXT
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2979 #ifndef __GNUC__
2980 choke me
2981 #endif
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3004 ac_compiler_gnu=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 ac_compiler_gnu=no
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3018 GCC=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CFLAGS=${CFLAGS+set}
3020 ac_save_CFLAGS=$CFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cc_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3028 ac_cv_prog_cc_g=no
3029 CFLAGS="-g"
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3038 main ()
3042 return 0;
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3053 ac_status=$?
3054 grep -v '^ *+' conftest.er1 >conftest.err
3055 rm -f conftest.er1
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3062 ac_cv_prog_cc_g=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3067 CFLAGS=""
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3076 main ()
3080 return 0;
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 main ()
3119 return 0;
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3158 if test "$ac_test_CFLAGS" = set; then
3159 CFLAGS=$ac_save_CFLAGS
3160 elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3162 CFLAGS="-g -O2"
3163 else
3164 CFLAGS="-g"
3166 else
3167 if test "$GCC" = yes; then
3168 CFLAGS="-O2"
3169 else
3170 CFLAGS=
3173 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3174 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_cc_c89+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 ac_cv_prog_cc_c89=no
3179 ac_save_CC=$CC
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <stdarg.h>
3187 #include <stdio.h>
3188 #include <sys/types.h>
3189 #include <sys/stat.h>
3190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3191 struct buf { int x; };
3192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193 static char *e (p, i)
3194 char **p;
3195 int i;
3197 return p[i];
3199 static char *f (char * (*g) (char **, int), char **p, ...)
3201 char *s;
3202 va_list v;
3203 va_start (v,p);
3204 s = g (p, va_arg (v,int));
3205 va_end (v);
3206 return s;
3209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3210 function prototypes and stuff, but not '\xHH' hex character constants.
3211 These don't provoke an error unfortunately, instead are silently treated
3212 as 'x'. The following induces an error, until -std is added to get
3213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3214 array size at least. It's necessary to write '\x00'==0 to get something
3215 that's true only with -std. */
3216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3219 inside strings and character constants. */
3220 #define FOO(x) 'x'
3221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223 int test (int i, double x);
3224 struct s1 {int (*f) (int a);};
3225 struct s2 {int (*f) (double a);};
3226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3227 int argc;
3228 char **argv;
3230 main ()
3232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 return 0;
3236 _ACEOF
3237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240 CC="$ac_save_CC $ac_arg"
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } && {
3255 test -z "$ac_c_werror_flag" ||
3256 test ! -s conftest.err
3257 } && test -s conftest.$ac_objext; then
3258 ac_cv_prog_cc_c89=$ac_arg
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext
3267 test "x$ac_cv_prog_cc_c89" != "xno" && break
3268 done
3269 rm -f conftest.$ac_ext
3270 CC=$ac_save_CC
3273 # AC_CACHE_VAL
3274 case "x$ac_cv_prog_cc_c89" in
3276 { echo "$as_me:$LINENO: result: none needed" >&5
3277 echo "${ECHO_T}none needed" >&6; } ;;
3278 xno)
3279 { echo "$as_me:$LINENO: result: unsupported" >&5
3280 echo "${ECHO_T}unsupported" >&6; } ;;
3282 CC="$CC $ac_cv_prog_cc_c89"
3283 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3285 esac
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 depcc="$CC" am_compiler_list=
3296 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3297 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3298 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3302 # We make a subdir and do the tests there. Otherwise we can end up
3303 # making bogus files that we don't know about and never remove. For
3304 # instance it was reported that on HP-UX the gcc test will end up
3305 # making a dummy file named `D' -- because `-MD' means `put the output
3306 # in D'.
3307 mkdir conftest.dir
3308 # Copy depcomp to subdir because otherwise we won't find it if we're
3309 # using a relative directory.
3310 cp "$am_depcomp" conftest.dir
3311 cd conftest.dir
3312 # We will build objects and dependencies in a subdirectory because
3313 # it helps to detect inapplicable dependency modes. For instance
3314 # both Tru64's cc and ICC support -MD to output dependencies as a
3315 # side effect of compilation, but ICC will put the dependencies in
3316 # the current directory while Tru64 will put them in the object
3317 # directory.
3318 mkdir sub
3320 am_cv_CC_dependencies_compiler_type=none
3321 if test "$am_compiler_list" = ""; then
3322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3324 for depmode in $am_compiler_list; do
3325 # Setup a source with many dependencies, because some compilers
3326 # like to wrap large dependency lists on column 80 (with \), and
3327 # we should not choose a depcomp mode which is confused by this.
3329 # We need to recreate these files for each test, as the compiler may
3330 # overwrite some of them when testing with obscure command lines.
3331 # This happens at least with the AIX C compiler.
3332 : > sub/conftest.c
3333 for i in 1 2 3 4 5 6; do
3334 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3335 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3336 # Solaris 8's {/usr,}/bin/sh.
3337 touch sub/conftst$i.h
3338 done
3339 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3341 case $depmode in
3342 nosideeffect)
3343 # after this tag, mechanisms are not by side-effect, so they'll
3344 # only be used when explicitly requested
3345 if test "x$enable_dependency_tracking" = xyes; then
3346 continue
3347 else
3348 break
3351 none) break ;;
3352 esac
3353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3354 # mode. It turns out that the SunPro C++ compiler does not properly
3355 # handle `-M -o', and we need to detect this.
3356 if depmode=$depmode \
3357 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3358 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3359 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3360 >/dev/null 2>conftest.err &&
3361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3362 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3364 # icc doesn't choke on unknown options, it will just issue warnings
3365 # or remarks (even with -Werror). So we grep stderr for any message
3366 # that says an option was ignored or not supported.
3367 # When given -MP, icc 7.0 and 7.1 complain thusly:
3368 # icc: Command line warning: ignoring option '-M'; no argument required
3369 # The diagnosis changed in icc 8.0:
3370 # icc: Command line remark: option '-MP' not supported
3371 if (grep 'ignoring option' conftest.err ||
3372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3373 am_cv_CC_dependencies_compiler_type=$depmode
3374 break
3377 done
3379 cd ..
3380 rm -rf conftest.dir
3381 else
3382 am_cv_CC_dependencies_compiler_type=none
3386 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3387 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3388 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3393 test "x$enable_dependency_tracking" != xno \
3394 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3395 am__fastdepCC_TRUE=
3396 am__fastdepCC_FALSE='#'
3397 else
3398 am__fastdepCC_TRUE='#'
3399 am__fastdepCC_FALSE=
3404 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3405 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3406 if test "${ac_cv_search_strerror+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 ac_func_search_save_LIBS=$LIBS
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3417 /* Override any GCC internal prototype to avoid an error.
3418 Use char because int might match the return type of a GCC
3419 builtin and then its argument prototype would still apply. */
3420 #ifdef __cplusplus
3421 extern "C"
3422 #endif
3423 char strerror ();
3425 main ()
3427 return strerror ();
3429 return 0;
3431 _ACEOF
3432 for ac_lib in '' cposix; do
3433 if test -z "$ac_lib"; then
3434 ac_res="none required"
3435 else
3436 ac_res=-l$ac_lib
3437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3439 rm -f conftest.$ac_objext conftest$ac_exeext
3440 if { (ac_try="$ac_link"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_link") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest$ac_exeext &&
3456 $as_test_x conftest$ac_exeext; then
3457 ac_cv_search_strerror=$ac_res
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3466 conftest$ac_exeext
3467 if test "${ac_cv_search_strerror+set}" = set; then
3468 break
3470 done
3471 if test "${ac_cv_search_strerror+set}" = set; then
3473 else
3474 ac_cv_search_strerror=no
3476 rm conftest.$ac_ext
3477 LIBS=$ac_func_search_save_LIBS
3479 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3480 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3481 ac_res=$ac_cv_search_strerror
3482 if test "$ac_res" != no; then
3483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3514 done
3515 done
3516 IFS=$as_save_IFS
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522 { echo "$as_me:$LINENO: result: $CC" >&5
3523 echo "${ECHO_T}$CC" >&6; }
3524 else
3525 { echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6; }
3531 if test -z "$ac_cv_prog_CC"; then
3532 ac_ct_CC=$CC
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563 echo "${ECHO_T}$ac_ct_CC" >&6; }
3564 else
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3575 whose name does not start with the host triplet. If you think this
3576 configuration is useful to you, please write to autoconf@gnu.org." >&5
3577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3578 whose name does not start with the host triplet. If you think this
3579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3580 ac_tool_warned=yes ;;
3581 esac
3582 CC=$ac_ct_CC
3584 else
3585 CC="$ac_cv_prog_CC"
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}cc; ac_word=$2
3592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC="${ac_tool_prefix}cc"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { echo "$as_me:$LINENO: result: $CC" >&5
3620 echo "${ECHO_T}$CC" >&6; }
3621 else
3622 { echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6; }
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_CC+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3649 ac_prog_rejected=yes
3650 continue
3652 ac_cv_prog_CC="cc"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3658 IFS=$as_save_IFS
3660 if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { echo "$as_me:$LINENO: result: $CC" >&5
3677 echo "${ECHO_T}$CC" >&6; }
3678 else
3679 { echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6; }
3685 if test -z "$CC"; then
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog in cl.exe
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3693 if test "${ac_cv_prog_CC+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { echo "$as_me:$LINENO: result: $CC" >&5
3719 echo "${ECHO_T}$CC" >&6; }
3720 else
3721 { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3726 test -n "$CC" && break
3727 done
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl.exe
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3756 IFS=$as_save_IFS
3760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3763 echo "${ECHO_T}$ac_ct_CC" >&6; }
3764 else
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3770 test -n "$ac_ct_CC" && break
3771 done
3773 if test "x$ac_ct_CC" = x; then
3774 CC=""
3775 else
3776 case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3779 whose name does not start with the host triplet. If you think this
3780 configuration is useful to you, please write to autoconf@gnu.org." >&5
3781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3782 whose name does not start with the host triplet. If you think this
3783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786 CC=$ac_ct_CC
3793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details." >&5
3795 echo "$as_me: error: no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." >&2;}
3797 { (exit 1); exit 1; }; }
3799 # Provide some information about the compiler.
3800 echo "$as_me:$LINENO: checking for C compiler version" >&5
3801 ac_compiler=`set X $ac_compile; echo $2`
3802 { (ac_try="$ac_compiler --version >&5"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_compiler --version >&5") 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }
3812 { (ac_try="$ac_compiler -v >&5"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_compiler -v >&5") 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }
3822 { (ac_try="$ac_compiler -V >&5"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_compiler -V >&5") 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }
3833 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3846 main ()
3848 #ifndef __GNUC__
3849 choke me
3850 #endif
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 ac_compiler_gnu=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_compiler_gnu=no
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3887 GCC=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CFLAGS=${CFLAGS+set}
3889 ac_save_CFLAGS=$CFLAGS
3890 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3891 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3892 if test "${ac_cv_prog_cc_g+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
3897 ac_cv_prog_cc_g=no
3898 CFLAGS="-g"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 ac_cv_prog_cc_g=yes
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 CFLAGS=""
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3945 main ()
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3975 CFLAGS="-g"
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 main ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_prog_cc_g=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4042 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4043 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <stdarg.h>
4056 #include <stdio.h>
4057 #include <sys/types.h>
4058 #include <sys/stat.h>
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4063 char **p;
4064 int i;
4066 return p[i];
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4070 char *s;
4071 va_list v;
4072 va_start (v,p);
4073 s = g (p, va_arg (v,int));
4074 va_end (v);
4075 return s;
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4089 #define FOO(x) 'x'
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096 int argc;
4097 char **argv;
4099 main ()
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4103 return 0;
4105 _ACEOF
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest.$ac_objext; then
4127 ac_cv_prog_cc_c89=$ac_arg
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f core conftest.err conftest.$ac_objext
4136 test "x$ac_cv_prog_cc_c89" != "xno" && break
4137 done
4138 rm -f conftest.$ac_ext
4139 CC=$ac_save_CC
4142 # AC_CACHE_VAL
4143 case "x$ac_cv_prog_cc_c89" in
4145 { echo "$as_me:$LINENO: result: none needed" >&5
4146 echo "${ECHO_T}none needed" >&6; } ;;
4147 xno)
4148 { echo "$as_me:$LINENO: result: unsupported" >&5
4149 echo "${ECHO_T}unsupported" >&6; } ;;
4151 CC="$CC $ac_cv_prog_cc_c89"
4152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4154 esac
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 depcc="$CC" am_compiler_list=
4165 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4166 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4167 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4171 # We make a subdir and do the tests there. Otherwise we can end up
4172 # making bogus files that we don't know about and never remove. For
4173 # instance it was reported that on HP-UX the gcc test will end up
4174 # making a dummy file named `D' -- because `-MD' means `put the output
4175 # in D'.
4176 mkdir conftest.dir
4177 # Copy depcomp to subdir because otherwise we won't find it if we're
4178 # using a relative directory.
4179 cp "$am_depcomp" conftest.dir
4180 cd conftest.dir
4181 # We will build objects and dependencies in a subdirectory because
4182 # it helps to detect inapplicable dependency modes. For instance
4183 # both Tru64's cc and ICC support -MD to output dependencies as a
4184 # side effect of compilation, but ICC will put the dependencies in
4185 # the current directory while Tru64 will put them in the object
4186 # directory.
4187 mkdir sub
4189 am_cv_CC_dependencies_compiler_type=none
4190 if test "$am_compiler_list" = ""; then
4191 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4193 for depmode in $am_compiler_list; do
4194 # Setup a source with many dependencies, because some compilers
4195 # like to wrap large dependency lists on column 80 (with \), and
4196 # we should not choose a depcomp mode which is confused by this.
4198 # We need to recreate these files for each test, as the compiler may
4199 # overwrite some of them when testing with obscure command lines.
4200 # This happens at least with the AIX C compiler.
4201 : > sub/conftest.c
4202 for i in 1 2 3 4 5 6; do
4203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4205 # Solaris 8's {/usr,}/bin/sh.
4206 touch sub/conftst$i.h
4207 done
4208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4210 case $depmode in
4211 nosideeffect)
4212 # after this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested
4214 if test "x$enable_dependency_tracking" = xyes; then
4215 continue
4216 else
4217 break
4220 none) break ;;
4221 esac
4222 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4223 # mode. It turns out that the SunPro C++ compiler does not properly
4224 # handle `-M -o', and we need to detect this.
4225 if depmode=$depmode \
4226 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4227 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4228 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4229 >/dev/null 2>conftest.err &&
4230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4231 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4233 # icc doesn't choke on unknown options, it will just issue warnings
4234 # or remarks (even with -Werror). So we grep stderr for any message
4235 # that says an option was ignored or not supported.
4236 # When given -MP, icc 7.0 and 7.1 complain thusly:
4237 # icc: Command line warning: ignoring option '-M'; no argument required
4238 # The diagnosis changed in icc 8.0:
4239 # icc: Command line remark: option '-MP' not supported
4240 if (grep 'ignoring option' conftest.err ||
4241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4242 am_cv_CC_dependencies_compiler_type=$depmode
4243 break
4246 done
4248 cd ..
4249 rm -rf conftest.dir
4250 else
4251 am_cv_CC_dependencies_compiler_type=none
4255 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4256 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264 am__fastdepCC_TRUE=
4265 am__fastdepCC_FALSE='#'
4266 else
4267 am__fastdepCC_TRUE='#'
4268 am__fastdepCC_FALSE=
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$CC"; then
4286 ac_cv_prog_CC="$CC" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307 { echo "$as_me:$LINENO: result: $CC" >&5
4308 echo "${ECHO_T}$CC" >&6; }
4309 else
4310 { echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6; }
4316 if test -z "$ac_cv_prog_CC"; then
4317 ac_ct_CC=$CC
4318 # Extract the first word of "gcc", so it can be a program name with args.
4319 set dummy gcc; ac_word=$2
4320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 if test -n "$ac_ct_CC"; then
4326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_ac_ct_CC="gcc"
4336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4346 if test -n "$ac_ct_CC"; then
4347 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4348 echo "${ECHO_T}$ac_ct_CC" >&6; }
4349 else
4350 { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4360 whose name does not start with the host triplet. If you think this
4361 configuration is useful to you, please write to autoconf@gnu.org." >&5
4362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4363 whose name does not start with the host triplet. If you think this
4364 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4365 ac_tool_warned=yes ;;
4366 esac
4367 CC=$ac_ct_CC
4369 else
4370 CC="$ac_cv_prog_CC"
4373 if test -z "$CC"; then
4374 if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4376 set dummy ${ac_tool_prefix}cc; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_prog_CC+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_CC="${ac_tool_prefix}cc"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4396 done
4397 done
4398 IFS=$as_save_IFS
4402 CC=$ac_cv_prog_CC
4403 if test -n "$CC"; then
4404 { echo "$as_me:$LINENO: result: $CC" >&5
4405 echo "${ECHO_T}$CC" >&6; }
4406 else
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4414 if test -z "$CC"; then
4415 # Extract the first word of "cc", so it can be a program name with args.
4416 set dummy cc; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 if test -n "$CC"; then
4423 ac_cv_prog_CC="$CC" # Let the user override the test.
4424 else
4425 ac_prog_rejected=no
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4434 ac_prog_rejected=yes
4435 continue
4437 ac_cv_prog_CC="cc"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4445 if test $ac_prog_rejected = yes; then
4446 # We found a bogon in the path, so make sure we never use it.
4447 set dummy $ac_cv_prog_CC
4448 shift
4449 if test $# != 0; then
4450 # We chose a different compiler from the bogus one.
4451 # However, it has the same basename, so the bogon will be chosen
4452 # first if we set CC to just the basename; use the full file name.
4453 shift
4454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4459 CC=$ac_cv_prog_CC
4460 if test -n "$CC"; then
4461 { echo "$as_me:$LINENO: result: $CC" >&5
4462 echo "${ECHO_T}$CC" >&6; }
4463 else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4470 if test -z "$CC"; then
4471 if test -n "$ac_tool_prefix"; then
4472 for ac_prog in cl.exe
4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_CC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$CC"; then
4482 ac_cv_prog_CC="$CC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 CC=$ac_cv_prog_CC
4502 if test -n "$CC"; then
4503 { echo "$as_me:$LINENO: result: $CC" >&5
4504 echo "${ECHO_T}$CC" >&6; }
4505 else
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 test -n "$CC" && break
4512 done
4514 if test -z "$CC"; then
4515 ac_ct_CC=$CC
4516 for ac_prog in cl.exe
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -n "$ac_ct_CC"; then
4526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_ac_ct_CC="$ac_prog"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4546 if test -n "$ac_ct_CC"; then
4547 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4548 echo "${ECHO_T}$ac_ct_CC" >&6; }
4549 else
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4555 test -n "$ac_ct_CC" && break
4556 done
4558 if test "x$ac_ct_CC" = x; then
4559 CC=""
4560 else
4561 case $cross_compiling:$ac_tool_warned in
4562 yes:)
4563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4564 whose name does not start with the host triplet. If you think this
4565 configuration is useful to you, please write to autoconf@gnu.org." >&5
4566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4567 whose name does not start with the host triplet. If you think this
4568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4569 ac_tool_warned=yes ;;
4570 esac
4571 CC=$ac_ct_CC
4578 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4579 See \`config.log' for more details." >&5
4580 echo "$as_me: error: no acceptable C compiler found in \$PATH
4581 See \`config.log' for more details." >&2;}
4582 { (exit 1); exit 1; }; }
4584 # Provide some information about the compiler.
4585 echo "$as_me:$LINENO: checking for C compiler version" >&5
4586 ac_compiler=`set X $ac_compile; echo $2`
4587 { (ac_try="$ac_compiler --version >&5"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_compiler --version >&5") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }
4597 { (ac_try="$ac_compiler -v >&5"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_compiler -v >&5") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }
4607 { (ac_try="$ac_compiler -V >&5"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compiler -V >&5") 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }
4618 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4631 main ()
4633 #ifndef __GNUC__
4634 choke me
4635 #endif
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4658 ac_compiler_gnu=yes
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_compiler_gnu=no
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4670 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4671 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4672 GCC=`test $ac_compiler_gnu = yes && echo yes`
4673 ac_test_CFLAGS=${CFLAGS+set}
4674 ac_save_CFLAGS=$CFLAGS
4675 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_cc_g+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 ac_save_c_werror_flag=$ac_c_werror_flag
4681 ac_c_werror_flag=yes
4682 ac_cv_prog_cc_g=no
4683 CFLAGS="-g"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4692 main ()
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706 (eval "$ac_compile") 2>conftest.er1
4707 ac_status=$?
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } && {
4713 test -z "$ac_c_werror_flag" ||
4714 test ! -s conftest.err
4715 } && test -s conftest.$ac_objext; then
4716 ac_cv_prog_cc_g=yes
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 CFLAGS=""
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (ac_try="$ac_compile"
4739 case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_compile") 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest.$ac_objext; then
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_c_werror_flag=$ac_save_c_werror_flag
4760 CFLAGS="-g"
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4769 main ()
4773 return 0;
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4778 case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 ac_cv_prog_cc_g=yes
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4810 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4812 if test "$ac_test_CFLAGS" = set; then
4813 CFLAGS=$ac_save_CFLAGS
4814 elif test $ac_cv_prog_cc_g = yes; then
4815 if test "$GCC" = yes; then
4816 CFLAGS="-g -O2"
4817 else
4818 CFLAGS="-g"
4820 else
4821 if test "$GCC" = yes; then
4822 CFLAGS="-O2"
4823 else
4824 CFLAGS=
4827 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4828 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_cc_c89+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 ac_cv_prog_cc_c89=no
4833 ac_save_CC=$CC
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <stdarg.h>
4841 #include <stdio.h>
4842 #include <sys/types.h>
4843 #include <sys/stat.h>
4844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845 struct buf { int x; };
4846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847 static char *e (p, i)
4848 char **p;
4849 int i;
4851 return p[i];
4853 static char *f (char * (*g) (char **, int), char **p, ...)
4855 char *s;
4856 va_list v;
4857 va_start (v,p);
4858 s = g (p, va_arg (v,int));
4859 va_end (v);
4860 return s;
4863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
4866 as 'x'. The following induces an error, until -std is added to get
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
4869 that's true only with -std. */
4870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4874 #define FOO(x) 'x'
4875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4877 int test (int i, double x);
4878 struct s1 {int (*f) (int a);};
4879 struct s2 {int (*f) (double a);};
4880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 int argc;
4882 char **argv;
4884 main ()
4886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4888 return 0;
4890 _ACEOF
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894 CC="$ac_save_CC $ac_arg"
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4912 ac_cv_prog_cc_c89=$ac_arg
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4920 rm -f core conftest.err conftest.$ac_objext
4921 test "x$ac_cv_prog_cc_c89" != "xno" && break
4922 done
4923 rm -f conftest.$ac_ext
4924 CC=$ac_save_CC
4927 # AC_CACHE_VAL
4928 case "x$ac_cv_prog_cc_c89" in
4930 { echo "$as_me:$LINENO: result: none needed" >&5
4931 echo "${ECHO_T}none needed" >&6; } ;;
4932 xno)
4933 { echo "$as_me:$LINENO: result: unsupported" >&5
4934 echo "${ECHO_T}unsupported" >&6; } ;;
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4939 esac
4942 ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948 depcc="$CC" am_compiler_list=
4950 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4956 # We make a subdir and do the tests there. Otherwise we can end up
4957 # making bogus files that we don't know about and never remove. For
4958 # instance it was reported that on HP-UX the gcc test will end up
4959 # making a dummy file named `D' -- because `-MD' means `put the output
4960 # in D'.
4961 mkdir conftest.dir
4962 # Copy depcomp to subdir because otherwise we won't find it if we're
4963 # using a relative directory.
4964 cp "$am_depcomp" conftest.dir
4965 cd conftest.dir
4966 # We will build objects and dependencies in a subdirectory because
4967 # it helps to detect inapplicable dependency modes. For instance
4968 # both Tru64's cc and ICC support -MD to output dependencies as a
4969 # side effect of compilation, but ICC will put the dependencies in
4970 # the current directory while Tru64 will put them in the object
4971 # directory.
4972 mkdir sub
4974 am_cv_CC_dependencies_compiler_type=none
4975 if test "$am_compiler_list" = ""; then
4976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978 for depmode in $am_compiler_list; do
4979 # Setup a source with many dependencies, because some compilers
4980 # like to wrap large dependency lists on column 80 (with \), and
4981 # we should not choose a depcomp mode which is confused by this.
4983 # We need to recreate these files for each test, as the compiler may
4984 # overwrite some of them when testing with obscure command lines.
4985 # This happens at least with the AIX C compiler.
4986 : > sub/conftest.c
4987 for i in 1 2 3 4 5 6; do
4988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4989 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4990 # Solaris 8's {/usr,}/bin/sh.
4991 touch sub/conftst$i.h
4992 done
4993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4995 case $depmode in
4996 nosideeffect)
4997 # after this tag, mechanisms are not by side-effect, so they'll
4998 # only be used when explicitly requested
4999 if test "x$enable_dependency_tracking" = xyes; then
5000 continue
5001 else
5002 break
5005 none) break ;;
5006 esac
5007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5008 # mode. It turns out that the SunPro C++ compiler does not properly
5009 # handle `-M -o', and we need to detect this.
5010 if depmode=$depmode \
5011 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5013 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5014 >/dev/null 2>conftest.err &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CC_dependencies_compiler_type=$depmode
5028 break
5031 done
5033 cd ..
5034 rm -rf conftest.dir
5035 else
5036 am_cv_CC_dependencies_compiler_type=none
5040 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5041 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5047 test "x$enable_dependency_tracking" != xno \
5048 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5049 am__fastdepCC_TRUE=
5050 am__fastdepCC_FALSE='#'
5051 else
5052 am__fastdepCC_TRUE='#'
5053 am__fastdepCC_FALSE=
5058 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5071 if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078 ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098 Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null && {
5113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 }; then
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 # Broken: fails on valid input.
5122 continue
5125 rm -f conftest.err conftest.$ac_ext
5127 # OK, works on sane cases. Now check whether nonexistent headers
5128 # can be detected and how.
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <ac_nonexistent.h>
5136 _ACEOF
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null && {
5150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 }; then
5153 # Broken: success on invalid input.
5154 continue
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5164 rm -f conftest.err conftest.$ac_ext
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5170 break
5173 done
5174 ac_cv_prog_CPP=$CPP
5177 CPP=$ac_cv_prog_CPP
5178 else
5179 ac_cv_prog_CPP=$CPP
5181 { echo "$as_me:$LINENO: result: $CPP" >&5
5182 echo "${ECHO_T}$CPP" >&6; }
5183 ac_preproc_ok=false
5184 for ac_c_preproc_warn_flag in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 #ifdef __STDC__
5199 # include <limits.h>
5200 #else
5201 # include <assert.h>
5202 #endif
5203 Syntax error
5204 _ACEOF
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null && {
5218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 }; then
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 # Broken: fails on valid input.
5227 continue
5230 rm -f conftest.err conftest.$ac_ext
5232 # OK, works on sane cases. Now check whether nonexistent headers
5233 # can be detected and how.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5243 case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null && {
5255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5256 test ! -s conftest.err
5257 }; then
5258 # Broken: success on invalid input.
5259 continue
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 # Passes both tests.
5265 ac_preproc_ok=:
5266 break
5269 rm -f conftest.err conftest.$ac_ext
5271 done
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5276 else
5277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&2;}
5281 { (exit 1); exit 1; }; }
5284 ac_ext=c
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5292 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5293 if test "${ac_cv_path_GREP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 # Extract the first word of "grep ggrep" to use in msg output
5297 if test -z "$GREP"; then
5298 set dummy grep ggrep; ac_prog_name=$2
5299 if test "${ac_cv_path_GREP+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 ac_path_GREP_found=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_prog in grep ggrep; do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5313 # Check for GNU ac_path_GREP and select it if it is found.
5314 # Check for GNU $ac_path_GREP
5315 case `"$ac_path_GREP" --version 2>&1` in
5316 *GNU*)
5317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5319 ac_count=0
5320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5321 while :
5323 cat "conftest.in" "conftest.in" >"conftest.tmp"
5324 mv "conftest.tmp" "conftest.in"
5325 cp "conftest.in" "conftest.nl"
5326 echo 'GREP' >> "conftest.nl"
5327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5329 ac_count=`expr $ac_count + 1`
5330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5331 # Best one so far, save it but keep looking for a better one
5332 ac_cv_path_GREP="$ac_path_GREP"
5333 ac_path_GREP_max=$ac_count
5335 # 10*(2^10) chars as input seems more than enough
5336 test $ac_count -gt 10 && break
5337 done
5338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5339 esac
5342 $ac_path_GREP_found && break 3
5343 done
5344 done
5346 done
5347 IFS=$as_save_IFS
5352 GREP="$ac_cv_path_GREP"
5353 if test -z "$GREP"; then
5354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5355 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5356 { (exit 1); exit 1; }; }
5359 else
5360 ac_cv_path_GREP=$GREP
5365 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5366 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5367 GREP="$ac_cv_path_GREP"
5370 { echo "$as_me:$LINENO: checking for egrep" >&5
5371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5372 if test "${ac_cv_path_EGREP+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5376 then ac_cv_path_EGREP="$GREP -E"
5377 else
5378 # Extract the first word of "egrep" to use in msg output
5379 if test -z "$EGREP"; then
5380 set dummy egrep; ac_prog_name=$2
5381 if test "${ac_cv_path_EGREP+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 ac_path_EGREP_found=false
5385 # Loop through the user's path and test for each of PROGNAME-LIST
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_prog in egrep; do
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5395 # Check for GNU ac_path_EGREP and select it if it is found.
5396 # Check for GNU $ac_path_EGREP
5397 case `"$ac_path_EGREP" --version 2>&1` in
5398 *GNU*)
5399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5401 ac_count=0
5402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5403 while :
5405 cat "conftest.in" "conftest.in" >"conftest.tmp"
5406 mv "conftest.tmp" "conftest.in"
5407 cp "conftest.in" "conftest.nl"
5408 echo 'EGREP' >> "conftest.nl"
5409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5411 ac_count=`expr $ac_count + 1`
5412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5413 # Best one so far, save it but keep looking for a better one
5414 ac_cv_path_EGREP="$ac_path_EGREP"
5415 ac_path_EGREP_max=$ac_count
5417 # 10*(2^10) chars as input seems more than enough
5418 test $ac_count -gt 10 && break
5419 done
5420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421 esac
5424 $ac_path_EGREP_found && break 3
5425 done
5426 done
5428 done
5429 IFS=$as_save_IFS
5434 EGREP="$ac_cv_path_EGREP"
5435 if test -z "$EGREP"; then
5436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5437 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5438 { (exit 1); exit 1; }; }
5441 else
5442 ac_cv_path_EGREP=$EGREP
5448 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5449 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5450 EGREP="$ac_cv_path_EGREP"
5453 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5455 if test "${ac_cv_header_stdc+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <stdlib.h>
5465 #include <stdarg.h>
5466 #include <string.h>
5467 #include <float.h>
5470 main ()
5474 return 0;
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5479 case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_c_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_cv_header_stdc=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_cv_header_stdc=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 if test $ac_cv_header_stdc = yes; then
5505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <string.h>
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then
5518 else
5519 ac_cv_header_stdc=no
5521 rm -f conftest*
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "free" >/dev/null 2>&1; then
5539 else
5540 ac_cv_header_stdc=no
5542 rm -f conftest*
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <ctype.h>
5558 #include <stdlib.h>
5559 #if ((' ' & 0x0FF) == 0x020)
5560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 #else
5563 # define ISLOWER(c) \
5564 (('a' <= (c) && (c) <= 'i') \
5565 || ('j' <= (c) && (c) <= 'r') \
5566 || ('s' <= (c) && (c) <= 'z'))
5567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5568 #endif
5570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5572 main ()
5574 int i;
5575 for (i = 0; i < 256; i++)
5576 if (XOR (islower (i), ISLOWER (i))
5577 || toupper (i) != TOUPPER (i))
5578 return 2;
5579 return 0;
5581 _ACEOF
5582 rm -f conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_try") 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5603 else
5604 echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ( exit $ac_status )
5609 ac_cv_header_stdc=no
5611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5623 _ACEOF
5629 # ============ Switched off:
5630 #AC_SUBST(CFLAGS)
5631 #AC_SUBST(CPPFLAGS)
5632 #AC_SUBST(LDFLAGS)
5635 GNOME_COMPILE_WARNINGS
5637 #------------------------------------------------------------------------------
5638 # From gpaint:
5639 # The gnomeui library is required but the gnomeprint and gnomeprintui libraries
5640 # are optional. First we verify the gnomeui library is present. Then we check
5641 # for the presence of the gnomeprint libraries and set a flag to indicate the
5642 # print libraries are present. Finally, we run pkg-config to get the compile and
5643 # link flags for the combined set of libraries to eliminate duplications in
5644 # the CFLAGS.
5645 ## GNOME_MODULES="libgnomeui-2 >= 2.0.0"
5646 GNOME_PRINT="libgnomeprint-2.2 >= 2.2.0 libgnomeprintui-2.2 >=2.2.0"
5649 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 case $PKG_CONFIG in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5679 esac
5681 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5682 if test -n "$PKG_CONFIG"; then
5683 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5684 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5685 else
5686 { echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6; }
5692 if test -z "$ac_cv_path_PKG_CONFIG"; then
5693 ac_pt_PKG_CONFIG=$PKG_CONFIG
5694 # Extract the first word of "pkg-config", so it can be a program name with args.
5695 set dummy pkg-config; ac_word=$2
5696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 case $ac_pt_PKG_CONFIG in
5702 [\\/]* | ?:[\\/]*)
5703 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5722 esac
5724 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5725 if test -n "$ac_pt_PKG_CONFIG"; then
5726 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5727 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5728 else
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5733 if test "x$ac_pt_PKG_CONFIG" = x; then
5734 PKG_CONFIG=""
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737 yes:)
5738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739 whose name does not start with the host triplet. If you think this
5740 configuration is useful to you, please write to autoconf@gnu.org." >&5
5741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742 whose name does not start with the host triplet. If you think this
5743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746 PKG_CONFIG=$ac_pt_PKG_CONFIG
5748 else
5749 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5753 if test -n "$PKG_CONFIG"; then
5754 _pkg_min_version=0.9.0
5755 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5756 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5757 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5758 { echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6; }
5760 else
5761 { echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6; }
5763 PKG_CONFIG=""
5768 pkg_failed=no
5769 { echo "$as_me:$LINENO: checking for GPIV_UI" >&5
5770 echo $ECHO_N "checking for GPIV_UI... $ECHO_C" >&6; }
5772 if test -n "$PKG_CONFIG"; then
5773 if test -n "$GPIV_UI_CFLAGS"; then
5774 pkg_cv_GPIV_UI_CFLAGS="$GPIV_UI_CFLAGS"
5775 else
5776 if test -n "$PKG_CONFIG" && \
5777 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5778 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; then
5782 pkg_cv_GPIV_UI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
5783 else
5784 pkg_failed=yes
5787 else
5788 pkg_failed=untried
5790 if test -n "$PKG_CONFIG"; then
5791 if test -n "$GPIV_UI_LIBS"; then
5792 pkg_cv_GPIV_UI_LIBS="$GPIV_UI_LIBS"
5793 else
5794 if test -n "$PKG_CONFIG" && \
5795 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
5796 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; then
5800 pkg_cv_GPIV_UI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
5801 else
5802 pkg_failed=yes
5805 else
5806 pkg_failed=untried
5811 if test $pkg_failed = yes; then
5813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5814 _pkg_short_errors_supported=yes
5815 else
5816 _pkg_short_errors_supported=no
5818 if test $_pkg_short_errors_supported = yes; then
5819 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeui-2.0"`
5820 else
5821 GPIV_UI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0"`
5823 # Put the nasty error message in config.log where it belongs
5824 echo "$GPIV_UI_PKG_ERRORS" >&5
5826 { { echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
5828 $GPIV_UI_PKG_ERRORS
5830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5831 installed software in a non-standard prefix.
5833 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5834 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5835 See the pkg-config man page for more details.
5836 " >&5
5837 echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
5839 $GPIV_UI_PKG_ERRORS
5841 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5842 installed software in a non-standard prefix.
5844 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5845 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5846 See the pkg-config man page for more details.
5847 " >&2;}
5848 { (exit 1); exit 1; }; }
5849 elif test $pkg_failed = untried; then
5850 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5851 is in your PATH or set the PKG_CONFIG environment variable to the full
5852 path to pkg-config.
5854 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5855 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5856 See the pkg-config man page for more details.
5858 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5859 See \`config.log' for more details." >&5
5860 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5861 is in your PATH or set the PKG_CONFIG environment variable to the full
5862 path to pkg-config.
5864 Alternatively, you may set the environment variables GPIV_UI_CFLAGS
5865 and GPIV_UI_LIBS to avoid the need to call pkg-config.
5866 See the pkg-config man page for more details.
5868 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5869 See \`config.log' for more details." >&2;}
5870 { (exit 1); exit 1; }; }
5871 else
5872 GPIV_UI_CFLAGS=$pkg_cv_GPIV_UI_CFLAGS
5873 GPIV_UI_LIBS=$pkg_cv_GPIV_UI_LIBS
5874 { echo "$as_me:$LINENO: result: yes" >&5
5875 echo "${ECHO_T}yes" >&6; }
5879 pkg_failed=no
5880 { echo "$as_me:$LINENO: checking for GPIV_PRINT" >&5
5881 echo $ECHO_N "checking for GPIV_PRINT... $ECHO_C" >&6; }
5883 if test -n "$PKG_CONFIG"; then
5884 if test -n "$GPIV_PRINT_CFLAGS"; then
5885 pkg_cv_GPIV_PRINT_CFLAGS="$GPIV_PRINT_CFLAGS"
5886 else
5887 if test -n "$PKG_CONFIG" && \
5888 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
5889 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; then
5893 pkg_cv_GPIV_PRINT_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
5894 else
5895 pkg_failed=yes
5898 else
5899 pkg_failed=untried
5901 if test -n "$PKG_CONFIG"; then
5902 if test -n "$GPIV_PRINT_LIBS"; then
5903 pkg_cv_GPIV_PRINT_LIBS="$GPIV_PRINT_LIBS"
5904 else
5905 if test -n "$PKG_CONFIG" && \
5906 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprint-2.2 libgnomeprintui-2.2\"") >&5
5907 ($PKG_CONFIG --exists --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; then
5911 pkg_cv_GPIV_PRINT_LIBS=`$PKG_CONFIG --libs "libgnomeprint-2.2 libgnomeprintui-2.2" 2>/dev/null`
5912 else
5913 pkg_failed=yes
5916 else
5917 pkg_failed=untried
5922 if test $pkg_failed = yes; then
5924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5925 _pkg_short_errors_supported=yes
5926 else
5927 _pkg_short_errors_supported=no
5929 if test $_pkg_short_errors_supported = yes; then
5930 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
5931 else
5932 GPIV_PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprint-2.2 libgnomeprintui-2.2"`
5934 # Put the nasty error message in config.log where it belongs
5935 echo "$GPIV_PRINT_PKG_ERRORS" >&5
5937 { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5939 echo "gnomeprint libraries are not available."
5940 elif test $pkg_failed = untried; then
5941 echo "gnomeprint libraries are not available."
5942 else
5943 GPIV_PRINT_CFLAGS=$pkg_cv_GPIV_PRINT_CFLAGS
5944 GPIV_PRINT_LIBS=$pkg_cv_GPIV_PRINT_LIBS
5945 { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5947 gpiv_have_gnome_print=1
5950 if test "x$gpiv_have_gnome_print" = "x1"; then
5951 echo "gnomeprint IS available"
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_GNOME_PRINT "1"
5954 _ACEOF
5956 GPIV_GNOME_LIBS="libgnomeui-2.0 libgnomeprint-2.2 libgnomeprintui-2.2"
5957 else
5958 echo "gnomeprint NOT available"
5959 GPIV_GNOME_LIBS="libgnomeui-2.0"
5962 echo "configuring with libraries: " $gpiv_gnome_libs
5964 pkg_failed=no
5965 { echo "$as_me:$LINENO: checking for GPIV" >&5
5966 echo $ECHO_N "checking for GPIV... $ECHO_C" >&6; }
5968 if test -n "$PKG_CONFIG"; then
5969 if test -n "$GPIV_CFLAGS"; then
5970 pkg_cv_GPIV_CFLAGS="$GPIV_CFLAGS"
5971 else
5972 if test -n "$PKG_CONFIG" && \
5973 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
5974 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; then
5978 pkg_cv_GPIV_CFLAGS=`$PKG_CONFIG --cflags "$GPIV_GNOME_LIBS" 2>/dev/null`
5979 else
5980 pkg_failed=yes
5983 else
5984 pkg_failed=untried
5986 if test -n "$PKG_CONFIG"; then
5987 if test -n "$GPIV_LIBS"; then
5988 pkg_cv_GPIV_LIBS="$GPIV_LIBS"
5989 else
5990 if test -n "$PKG_CONFIG" && \
5991 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$GPIV_GNOME_LIBS\"") >&5
5992 ($PKG_CONFIG --exists --print-errors "$GPIV_GNOME_LIBS") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; then
5996 pkg_cv_GPIV_LIBS=`$PKG_CONFIG --libs "$GPIV_GNOME_LIBS" 2>/dev/null`
5997 else
5998 pkg_failed=yes
6001 else
6002 pkg_failed=untried
6007 if test $pkg_failed = yes; then
6009 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6010 _pkg_short_errors_supported=yes
6011 else
6012 _pkg_short_errors_supported=no
6014 if test $_pkg_short_errors_supported = yes; then
6015 GPIV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6016 else
6017 GPIV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GPIV_GNOME_LIBS"`
6019 # Put the nasty error message in config.log where it belongs
6020 echo "$GPIV_PKG_ERRORS" >&5
6022 { { echo "$as_me:$LINENO: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6024 $GPIV_PKG_ERRORS
6026 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6027 installed software in a non-standard prefix.
6029 Alternatively, you may set the environment variables GPIV_CFLAGS
6030 and GPIV_LIBS to avoid the need to call pkg-config.
6031 See the pkg-config man page for more details.
6032 " >&5
6033 echo "$as_me: error: Package requirements ($GPIV_GNOME_LIBS) were not met:
6035 $GPIV_PKG_ERRORS
6037 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6038 installed software in a non-standard prefix.
6040 Alternatively, you may set the environment variables GPIV_CFLAGS
6041 and GPIV_LIBS to avoid the need to call pkg-config.
6042 See the pkg-config man page for more details.
6043 " >&2;}
6044 { (exit 1); exit 1; }; }
6045 elif test $pkg_failed = untried; then
6046 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6047 is in your PATH or set the PKG_CONFIG environment variable to the full
6048 path to pkg-config.
6050 Alternatively, you may set the environment variables GPIV_CFLAGS
6051 and GPIV_LIBS to avoid the need to call pkg-config.
6052 See the pkg-config man page for more details.
6054 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6055 See \`config.log' for more details." >&5
6056 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6057 is in your PATH or set the PKG_CONFIG environment variable to the full
6058 path to pkg-config.
6060 Alternatively, you may set the environment variables GPIV_CFLAGS
6061 and GPIV_LIBS to avoid the need to call pkg-config.
6062 See the pkg-config man page for more details.
6064 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6065 See \`config.log' for more details." >&2;}
6066 { (exit 1); exit 1; }; }
6067 else
6068 GPIV_CFLAGS=$pkg_cv_GPIV_CFLAGS
6069 GPIV_LIBS=$pkg_cv_GPIV_LIBS
6070 { echo "$as_me:$LINENO: result: yes" >&5
6071 echo "${ECHO_T}yes" >&6; }
6078 GETTEXT_PACKAGE=gpiv
6080 cat >>confdefs.h <<_ACEOF
6081 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6082 _ACEOF
6084 ALL_LINGUAS="ca de nl"
6085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6096 inttypes.h stdint.h unistd.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6112 #include <$ac_header>
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (ac_try="$ac_compile"
6116 case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest.$ac_objext; then
6131 eval "$as_ac_Header=yes"
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 eval "$as_ac_Header=no"
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 ac_res=`eval echo '${'$as_ac_Header'}'`
6142 { echo "$as_me:$LINENO: result: $ac_res" >&5
6143 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6151 done
6156 for ac_header in locale.h
6158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 ac_res=`eval echo '${'$as_ac_Header'}'`
6166 { echo "$as_me:$LINENO: result: $ac_res" >&5
6167 echo "${ECHO_T}$ac_res" >&6; }
6168 else
6169 # Is the header compilable?
6170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 #include <$ac_header>
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (ac_try="$ac_compile"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_header_compiler=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_header_compiler=no
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6208 echo "${ECHO_T}$ac_header_compiler" >&6; }
6210 # Is the header present?
6211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 #include <$ac_header>
6220 _ACEOF
6221 if { (ac_try="$ac_cpp conftest.$ac_ext"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } >/dev/null && {
6234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6235 test ! -s conftest.err
6236 }; then
6237 ac_header_preproc=yes
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_header_preproc=no
6245 rm -f conftest.err conftest.$ac_ext
6246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247 echo "${ECHO_T}$ac_header_preproc" >&6; }
6249 # So? What about this header?
6250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6251 yes:no: )
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6256 ac_header_preproc=yes
6258 no:yes:* )
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6271 ( cat <<\_ASBOX
6272 ## ------------------------------------------------------------------- ##
6273 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6274 ## ------------------------------------------------------------------- ##
6275 _ASBOX
6276 ) | sed "s/^/$as_me: WARNING: /" >&2
6278 esac
6279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 eval "$as_ac_Header=\$ac_header_preproc"
6286 ac_res=`eval echo '${'$as_ac_Header'}'`
6287 { echo "$as_me:$LINENO: result: $ac_res" >&5
6288 echo "${ECHO_T}$ac_res" >&6; }
6291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6292 cat >>confdefs.h <<_ACEOF
6293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6294 _ACEOF
6298 done
6300 if test $ac_cv_header_locale_h = yes; then
6301 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6302 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6303 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <locale.h>
6314 main ()
6316 return LC_MESSAGES
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (ac_try="$ac_link"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_link") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest$ac_exeext &&
6338 $as_test_x conftest$ac_exeext; then
6339 am_cv_val_LC_MESSAGES=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 am_cv_val_LC_MESSAGES=no
6347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6348 conftest$ac_exeext conftest.$ac_ext
6350 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6351 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6352 if test $am_cv_val_LC_MESSAGES = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_LC_MESSAGES 1
6356 _ACEOF
6360 USE_NLS=yes
6363 gt_cv_have_gettext=no
6365 CATOBJEXT=NONE
6366 XGETTEXT=:
6367 INTLLIBS=
6369 if test "${ac_cv_header_libintl_h+set}" = set; then
6370 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6371 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6372 if test "${ac_cv_header_libintl_h+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6376 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6377 else
6378 # Is the header compilable?
6379 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6380 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 $ac_includes_default
6388 #include <libintl.h>
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_header_compiler=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_header_compiler=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6; }
6419 # Is the header present?
6420 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6421 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <libintl.h>
6429 _ACEOF
6430 if { (ac_try="$ac_cpp conftest.$ac_ext"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null && {
6443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 }; then
6446 ac_header_preproc=yes
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_header_preproc=no
6454 rm -f conftest.err conftest.$ac_ext
6455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456 echo "${ECHO_T}$ac_header_preproc" >&6; }
6458 # So? What about this header?
6459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6460 yes:no: )
6461 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6462 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6464 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6465 ac_header_preproc=yes
6467 no:yes:* )
6468 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6469 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6471 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6473 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6475 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6477 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6479 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6480 ( cat <<\_ASBOX
6481 ## ------------------------------------------------------------------- ##
6482 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
6483 ## ------------------------------------------------------------------- ##
6484 _ASBOX
6485 ) | sed "s/^/$as_me: WARNING: /" >&2
6487 esac
6488 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6489 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6490 if test "${ac_cv_header_libintl_h+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 ac_cv_header_libintl_h=$ac_header_preproc
6495 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6496 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6499 if test $ac_cv_header_libintl_h = yes; then
6500 gt_cv_func_dgettext_libintl="no"
6501 libintl_extra_libs=""
6504 # First check in libc
6506 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6507 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6508 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6518 #include <libintl.h>
6521 main ()
6523 return !ngettext ("","", 1)
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (ac_try="$ac_link"
6530 case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_link") 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest$ac_exeext &&
6545 $as_test_x conftest$ac_exeext; then
6546 gt_cv_func_ngettext_libc=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 gt_cv_func_ngettext_libc=no
6554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6555 conftest$ac_exeext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6559 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6561 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6562 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6563 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6564 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6574 #include <libintl.h>
6577 main ()
6579 return !dgettext ("","")
6581 return 0;
6583 _ACEOF
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (ac_try="$ac_link"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_link") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest$ac_exeext &&
6601 $as_test_x conftest$ac_exeext; then
6602 gt_cv_func_dgettext_libc=yes
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 gt_cv_func_dgettext_libc=no
6610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6611 conftest$ac_exeext conftest.$ac_ext
6614 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6615 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6618 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6620 for ac_func in bind_textdomain_codeset
6622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6636 #define $ac_func innocuous_$ac_func
6638 /* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func (); below.
6640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6641 <limits.h> exists even on freestanding compilers. */
6643 #ifdef __STDC__
6644 # include <limits.h>
6645 #else
6646 # include <assert.h>
6647 #endif
6649 #undef $ac_func
6651 /* Override any GCC internal prototype to avoid an error.
6652 Use char because int might match the return type of a GCC
6653 builtin and then its argument prototype would still apply. */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 char $ac_func ();
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined __stub_$ac_func || defined __stub___$ac_func
6662 choke me
6663 #endif
6666 main ()
6668 return $ac_func ();
6670 return 0;
6672 _ACEOF
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (ac_try="$ac_link"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_link") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest$ac_exeext &&
6690 $as_test_x conftest$ac_exeext; then
6691 eval "$as_ac_var=yes"
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 eval "$as_ac_var=no"
6699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6700 conftest$ac_exeext conftest.$ac_ext
6702 ac_res=`eval echo '${'$as_ac_var'}'`
6703 { echo "$as_me:$LINENO: result: $ac_res" >&5
6704 echo "${ECHO_T}$ac_res" >&6; }
6705 if test `eval echo '${'$as_ac_var'}'` = yes; then
6706 cat >>confdefs.h <<_ACEOF
6707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6708 _ACEOF
6711 done
6716 # If we don't have everything we want, check in libintl
6718 if test "$gt_cv_func_dgettext_libc" != "yes" \
6719 || test "$gt_cv_func_ngettext_libc" != "yes" \
6720 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6722 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6723 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6724 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 ac_check_lib_save_LIBS=$LIBS
6728 LIBS="-lintl $LIBS"
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 /* Override any GCC internal prototype to avoid an error.
6737 Use char because int might match the return type of a GCC
6738 builtin and then its argument prototype would still apply. */
6739 #ifdef __cplusplus
6740 extern "C"
6741 #endif
6742 char bindtextdomain ();
6744 main ()
6746 return bindtextdomain ();
6748 return 0;
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (ac_try="$ac_link"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_link") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest$ac_exeext &&
6768 $as_test_x conftest$ac_exeext; then
6769 ac_cv_lib_intl_bindtextdomain=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_lib_intl_bindtextdomain=no
6777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6778 conftest$ac_exeext conftest.$ac_ext
6779 LIBS=$ac_check_lib_save_LIBS
6781 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6782 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6783 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6784 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6785 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6786 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 ac_check_lib_save_LIBS=$LIBS
6790 LIBS="-lintl $LIBS"
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6798 /* Override any GCC internal prototype to avoid an error.
6799 Use char because int might match the return type of a GCC
6800 builtin and then its argument prototype would still apply. */
6801 #ifdef __cplusplus
6802 extern "C"
6803 #endif
6804 char ngettext ();
6806 main ()
6808 return ngettext ();
6810 return 0;
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (ac_try="$ac_link"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_link") 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && {
6827 test -z "$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 } && test -s conftest$ac_exeext &&
6830 $as_test_x conftest$ac_exeext; then
6831 ac_cv_lib_intl_ngettext=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_lib_intl_ngettext=no
6839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6840 conftest$ac_exeext conftest.$ac_ext
6841 LIBS=$ac_check_lib_save_LIBS
6843 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6844 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6845 if test $ac_cv_lib_intl_ngettext = yes; then
6846 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6847 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6848 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 ac_check_lib_save_LIBS=$LIBS
6852 LIBS="-lintl $LIBS"
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6860 /* Override any GCC internal prototype to avoid an error.
6861 Use char because int might match the return type of a GCC
6862 builtin and then its argument prototype would still apply. */
6863 #ifdef __cplusplus
6864 extern "C"
6865 #endif
6866 char dgettext ();
6868 main ()
6870 return dgettext ();
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
6893 ac_cv_lib_intl_dgettext=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_lib_intl_dgettext=no
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6906 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6907 if test $ac_cv_lib_intl_dgettext = yes; then
6908 gt_cv_func_dgettext_libintl=yes
6916 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6917 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6918 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6919 { echo "$as_me:$LINENO: result: " >&5
6920 echo "${ECHO_T}" >&6; }
6921 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6922 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6923 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 ac_check_lib_save_LIBS=$LIBS
6927 LIBS="-lintl -liconv $LIBS"
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6935 /* Override any GCC internal prototype to avoid an error.
6936 Use char because int might match the return type of a GCC
6937 builtin and then its argument prototype would still apply. */
6938 #ifdef __cplusplus
6939 extern "C"
6940 #endif
6941 char ngettext ();
6943 main ()
6945 return ngettext ();
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (ac_try="$ac_link"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_link") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest$ac_exeext &&
6967 $as_test_x conftest$ac_exeext; then
6968 ac_cv_lib_intl_ngettext=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_cv_lib_intl_ngettext=no
6976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LIBS=$ac_check_lib_save_LIBS
6980 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6981 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6982 if test $ac_cv_lib_intl_ngettext = yes; then
6983 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6984 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6985 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 ac_check_lib_save_LIBS=$LIBS
6989 LIBS="-lintl -liconv $LIBS"
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6997 /* Override any GCC internal prototype to avoid an error.
6998 Use char because int might match the return type of a GCC
6999 builtin and then its argument prototype would still apply. */
7000 #ifdef __cplusplus
7001 extern "C"
7002 #endif
7003 char dcgettext ();
7005 main ()
7007 return dcgettext ();
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest$ac_exeext &&
7029 $as_test_x conftest$ac_exeext; then
7030 ac_cv_lib_intl_dcgettext=yes
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_lib_intl_dcgettext=no
7038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7039 conftest$ac_exeext conftest.$ac_ext
7040 LIBS=$ac_check_lib_save_LIBS
7042 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7043 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7044 if test $ac_cv_lib_intl_dcgettext = yes; then
7045 gt_cv_func_dgettext_libintl=yes
7046 libintl_extra_libs=-liconv
7047 else
7051 else
7058 # If we found libintl, then check in it for bind_textdomain_codeset();
7059 # we'll prefer libc if neither have bind_textdomain_codeset(),
7060 # and both have dgettext and ngettext
7062 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7063 glib_save_LIBS="$LIBS"
7064 LIBS="$LIBS -lintl $libintl_extra_libs"
7065 unset ac_cv_func_bind_textdomain_codeset
7067 for ac_func in bind_textdomain_codeset
7069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7083 #define $ac_func innocuous_$ac_func
7085 /* System header to define __stub macros and hopefully few prototypes,
7086 which can conflict with char $ac_func (); below.
7087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088 <limits.h> exists even on freestanding compilers. */
7090 #ifdef __STDC__
7091 # include <limits.h>
7092 #else
7093 # include <assert.h>
7094 #endif
7096 #undef $ac_func
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 char $ac_func ();
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined __stub_$ac_func || defined __stub___$ac_func
7109 choke me
7110 #endif
7113 main ()
7115 return $ac_func ();
7117 return 0;
7119 _ACEOF
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (ac_try="$ac_link"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_link") 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext &&
7137 $as_test_x conftest$ac_exeext; then
7138 eval "$as_ac_var=yes"
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 eval "$as_ac_var=no"
7146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7147 conftest$ac_exeext conftest.$ac_ext
7149 ac_res=`eval echo '${'$as_ac_var'}'`
7150 { echo "$as_me:$LINENO: result: $ac_res" >&5
7151 echo "${ECHO_T}$ac_res" >&6; }
7152 if test `eval echo '${'$as_ac_var'}'` = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 _ACEOF
7158 done
7160 LIBS="$glib_save_LIBS"
7162 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7163 gt_cv_func_dgettext_libc=no
7164 else
7165 if test "$gt_cv_func_dgettext_libc" = "yes" \
7166 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7167 gt_cv_func_dgettext_libintl=no
7173 if test "$gt_cv_func_dgettext_libc" = "yes" \
7174 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7175 gt_cv_have_gettext=yes
7178 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7179 INTLLIBS="-lintl $libintl_extra_libs"
7182 if test "$gt_cv_have_gettext" = "yes"; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_GETTEXT 1
7186 _ACEOF
7188 # Extract the first word of "msgfmt", so it can be a program name with args.
7189 set dummy msgfmt; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_MSGFMT+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 case "$MSGFMT" in
7197 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7201 for ac_dir in $PATH; do
7202 test -z "$ac_dir" && ac_dir=.
7203 if test -f $ac_dir/$ac_word; then
7204 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7205 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7206 break
7209 done
7210 IFS="$ac_save_ifs"
7211 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7213 esac
7215 MSGFMT="$ac_cv_path_MSGFMT"
7216 if test "$MSGFMT" != "no"; then
7217 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7218 echo "${ECHO_T}$MSGFMT" >&6; }
7219 else
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7223 if test "$MSGFMT" != "no"; then
7224 glib_save_LIBS="$LIBS"
7225 LIBS="$LIBS $INTLLIBS"
7227 for ac_func in dcgettext
7229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7243 #define $ac_func innocuous_$ac_func
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func (); below.
7247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 <limits.h> exists even on freestanding compilers. */
7250 #ifdef __STDC__
7251 # include <limits.h>
7252 #else
7253 # include <assert.h>
7254 #endif
7256 #undef $ac_func
7258 /* Override any GCC internal prototype to avoid an error.
7259 Use char because int might match the return type of a GCC
7260 builtin and then its argument prototype would still apply. */
7261 #ifdef __cplusplus
7262 extern "C"
7263 #endif
7264 char $ac_func ();
7265 /* The GNU C library defines this for functions which it implements
7266 to always fail with ENOSYS. Some functions are actually named
7267 something starting with __ and the normal name is an alias. */
7268 #if defined __stub_$ac_func || defined __stub___$ac_func
7269 choke me
7270 #endif
7273 main ()
7275 return $ac_func ();
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext &&
7297 $as_test_x conftest$ac_exeext; then
7298 eval "$as_ac_var=yes"
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 eval "$as_ac_var=no"
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 conftest$ac_exeext conftest.$ac_ext
7309 ac_res=`eval echo '${'$as_ac_var'}'`
7310 { echo "$as_me:$LINENO: result: $ac_res" >&5
7311 echo "${ECHO_T}$ac_res" >&6; }
7312 if test `eval echo '${'$as_ac_var'}'` = yes; then
7313 cat >>confdefs.h <<_ACEOF
7314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7315 _ACEOF
7318 done
7320 MSGFMT_OPTS=
7321 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
7322 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
7323 cat >conftest.foo <<_ACEOF
7325 msgid ""
7326 msgstr ""
7327 "Content-Type: text/plain; charset=UTF-8\n"
7328 "Project-Id-Version: test 1.0\n"
7329 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
7330 "Last-Translator: test <foo@bar.xx>\n"
7331 "Language-Team: C <LL@li.org>\n"
7332 "MIME-Version: 1.0\n"
7333 "Content-Transfer-Encoding: 8bit\n"
7335 _ACEOF
7336 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
7337 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; then
7341 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
7342 echo "${ECHO_T}yes" >&6; }
7343 else { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 echo "$as_me: failed input was:" >&5
7346 sed 's/^/| /' conftest.foo >&5
7349 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7350 set dummy gmsgfmt; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 case $GMSGFMT in
7357 [\\/]* | ?:[\\/]*)
7358 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7372 done
7373 done
7374 IFS=$as_save_IFS
7376 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7378 esac
7380 GMSGFMT=$ac_cv_path_GMSGFMT
7381 if test -n "$GMSGFMT"; then
7382 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7383 echo "${ECHO_T}$GMSGFMT" >&6; }
7384 else
7385 { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7390 # Extract the first word of "xgettext", so it can be a program name with args.
7391 set dummy xgettext; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 case "$XGETTEXT" in
7399 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7403 for ac_dir in $PATH; do
7404 test -z "$ac_dir" && ac_dir=.
7405 if test -f $ac_dir/$ac_word; then
7406 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7408 break
7411 done
7412 IFS="$ac_save_ifs"
7413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7415 esac
7417 XGETTEXT="$ac_cv_path_XGETTEXT"
7418 if test "$XGETTEXT" != ":"; then
7419 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7420 echo "${ECHO_T}$XGETTEXT" >&6; }
7421 else
7422 { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7434 main ()
7436 extern int _nl_msg_cat_cntr;
7437 return _nl_msg_cat_cntr
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_link") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest$ac_exeext &&
7459 $as_test_x conftest$ac_exeext; then
7460 CATOBJEXT=.gmo
7461 DATADIRNAME=share
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 case $host in
7467 *-*-solaris*)
7468 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7469 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7470 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h. */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7481 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7483 /* System header to define __stub macros and hopefully few prototypes,
7484 which can conflict with char bind_textdomain_codeset (); below.
7485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7486 <limits.h> exists even on freestanding compilers. */
7488 #ifdef __STDC__
7489 # include <limits.h>
7490 #else
7491 # include <assert.h>
7492 #endif
7494 #undef bind_textdomain_codeset
7496 /* Override any GCC internal prototype to avoid an error.
7497 Use char because int might match the return type of a GCC
7498 builtin and then its argument prototype would still apply. */
7499 #ifdef __cplusplus
7500 extern "C"
7501 #endif
7502 char bind_textdomain_codeset ();
7503 /* The GNU C library defines this for functions which it implements
7504 to always fail with ENOSYS. Some functions are actually named
7505 something starting with __ and the normal name is an alias. */
7506 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7507 choke me
7508 #endif
7511 main ()
7513 return bind_textdomain_codeset ();
7515 return 0;
7517 _ACEOF
7518 rm -f conftest.$ac_objext conftest$ac_exeext
7519 if { (ac_try="$ac_link"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_link") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest$ac_exeext &&
7535 $as_test_x conftest$ac_exeext; then
7536 ac_cv_func_bind_textdomain_codeset=yes
7537 else
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_func_bind_textdomain_codeset=no
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545 conftest$ac_exeext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7548 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7549 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7550 CATOBJEXT=.gmo
7551 DATADIRNAME=share
7552 else
7553 CATOBJEXT=.mo
7554 DATADIRNAME=lib
7559 CATOBJEXT=.mo
7560 DATADIRNAME=lib
7562 esac
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS="$glib_save_LIBS"
7568 INSTOBJEXT=.mo
7569 else
7570 gt_cv_have_gettext=no
7578 if test "$gt_cv_have_gettext" = "yes" ; then
7580 cat >>confdefs.h <<\_ACEOF
7581 #define ENABLE_NLS 1
7582 _ACEOF
7586 if test "$XGETTEXT" != ":"; then
7587 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7589 else
7590 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7591 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7592 XGETTEXT=":"
7596 # We need to process the po/ directory.
7597 POSUB=po
7599 ac_config_commands="$ac_config_commands default-1"
7602 for lang in $ALL_LINGUAS; do
7603 GMOFILES="$GMOFILES $lang.gmo"
7604 POFILES="$POFILES $lang.po"
7605 done
7619 if test "$gt_cv_have_gettext" = "yes"; then
7620 if test "x$ALL_LINGUAS" = "x"; then
7621 LINGUAS=
7622 else
7623 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7624 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7625 NEW_LINGUAS=
7626 for presentlang in $ALL_LINGUAS; do
7627 useit=no
7628 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7629 desiredlanguages="$LINGUAS"
7630 else
7631 desiredlanguages="$ALL_LINGUAS"
7633 for desiredlang in $desiredlanguages; do
7634 # Use the presentlang catalog if desiredlang is
7635 # a. equal to presentlang, or
7636 # b. a variant of presentlang (because in this case,
7637 # presentlang can be used as a fallback for messages
7638 # which are not translated in the desiredlang catalog).
7639 case "$desiredlang" in
7640 "$presentlang"*) useit=yes;;
7641 esac
7642 done
7643 if test $useit = yes; then
7644 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7646 done
7647 LINGUAS=$NEW_LINGUAS
7648 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7649 echo "${ECHO_T}$LINGUAS" >&6; }
7652 if test -n "$LINGUAS"; then
7653 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7657 MKINSTALLDIRS=
7658 if test -n "$ac_aux_dir"; then
7659 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7661 if test -z "$MKINSTALLDIRS"; then
7662 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7666 test -d po || mkdir po
7667 if test "x$srcdir" != "x."; then
7668 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7669 posrcprefix="$srcdir/"
7670 else
7671 posrcprefix="../$srcdir/"
7673 else
7674 posrcprefix="../"
7676 rm -f po/POTFILES
7677 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7678 < $srcdir/po/POTFILES.in > po/POTFILES
7683 case "$am__api_version" in
7684 1.01234)
7685 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7686 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7687 { (exit 1); exit 1; }; }
7691 esac
7693 if test -n ""; then
7694 { echo "$as_me:$LINENO: checking for intltool >= " >&5
7695 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
7697 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7698 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
7699 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
7701 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7702 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7703 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7704 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
7705 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
7706 { (exit 1); exit 1; }; }
7709 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 $< $@'
7710 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 $< $@'
7711 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 $< $@'
7712 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 $< $@'
7713 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7714 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 $< $@'
7715 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 $< $@'
7716 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 $< $@'
7717 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 $< $@'
7718 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 $< $@'
7719 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 $< $@'
7720 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7721 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 $< $@'
7722 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 $< $@'
7723 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 $< $@'
7724 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 $< $@'
7725 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 $< $@'
7726 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 $< $@'
7727 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 $< $@'
7749 # Check the gettext tools to make sure they are GNU
7750 # Extract the first word of "xgettext", so it can be a program name with args.
7751 set dummy xgettext; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 case $XGETTEXT in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7778 esac
7780 XGETTEXT=$ac_cv_path_XGETTEXT
7781 if test -n "$XGETTEXT"; then
7782 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7783 echo "${ECHO_T}$XGETTEXT" >&6; }
7784 else
7785 { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7790 # Extract the first word of "msgmerge", so it can be a program name with args.
7791 set dummy msgmerge; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 case $MSGMERGE in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7818 esac
7820 MSGMERGE=$ac_cv_path_MSGMERGE
7821 if test -n "$MSGMERGE"; then
7822 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7823 echo "${ECHO_T}$MSGMERGE" >&6; }
7824 else
7825 { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7830 # Extract the first word of "msgfmt", so it can be a program name with args.
7831 set dummy msgfmt; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_MSGFMT+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 case $MSGFMT in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7853 done
7854 done
7855 IFS=$as_save_IFS
7858 esac
7860 MSGFMT=$ac_cv_path_MSGFMT
7861 if test -n "$MSGFMT"; then
7862 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7863 echo "${ECHO_T}$MSGFMT" >&6; }
7864 else
7865 { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7870 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
7871 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
7872 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
7873 { (exit 1); exit 1; }; }
7875 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
7876 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
7877 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
7878 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
7879 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
7880 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
7881 { (exit 1); exit 1; }; }
7884 # Use the tools built into the package, not the ones that are installed.
7885 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7887 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7889 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7892 # Extract the first word of "perl", so it can be a program name with args.
7893 set dummy perl; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 case $INTLTOOL_PERL in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7915 done
7916 done
7917 IFS=$as_save_IFS
7920 esac
7922 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7923 if test -n "$INTLTOOL_PERL"; then
7924 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7925 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7926 else
7927 { echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6; }
7932 if test -z "$INTLTOOL_PERL"; then
7933 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7934 echo "$as_me: error: perl not found; required for intltool" >&2;}
7935 { (exit 1); exit 1; }; }
7937 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7938 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7939 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7940 { (exit 1); exit 1; }; }
7942 if test "x" != "xno-xml"; then
7943 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
7944 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
7945 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
7946 { echo "$as_me:$LINENO: result: ok" >&5
7947 echo "${ECHO_T}ok" >&6; }
7948 else
7949 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
7950 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
7951 { (exit 1); exit 1; }; }
7955 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7958 # Set DATADIRNAME correctly if it is not set yet
7959 # (copied from glib-gettext.m4)
7960 if test -z "$DATADIRNAME"; then
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7969 main ()
7971 extern int _nl_msg_cat_cntr;
7972 return _nl_msg_cat_cntr
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest$ac_exeext &&
7994 $as_test_x conftest$ac_exeext; then
7995 DATADIRNAME=share
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 case $host in
8001 *-*-solaris*)
8002 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8003 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8004 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8015 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char bind_textdomain_codeset (); below.
8019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8020 <limits.h> exists even on freestanding compilers. */
8022 #ifdef __STDC__
8023 # include <limits.h>
8024 #else
8025 # include <assert.h>
8026 #endif
8028 #undef bind_textdomain_codeset
8030 /* Override any GCC internal prototype to avoid an error.
8031 Use char because int might match the return type of a GCC
8032 builtin and then its argument prototype would still apply. */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 char bind_textdomain_codeset ();
8037 /* The GNU C library defines this for functions which it implements
8038 to always fail with ENOSYS. Some functions are actually named
8039 something starting with __ and the normal name is an alias. */
8040 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8041 choke me
8042 #endif
8045 main ()
8047 return bind_textdomain_codeset ();
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_link") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest$ac_exeext &&
8069 $as_test_x conftest$ac_exeext; then
8070 ac_cv_func_bind_textdomain_codeset=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 ac_cv_func_bind_textdomain_codeset=no
8078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8079 conftest$ac_exeext conftest.$ac_ext
8081 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8082 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8083 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8084 DATADIRNAME=share
8085 else
8086 DATADIRNAME=lib
8091 DATADIRNAME=lib
8093 esac
8096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8097 conftest$ac_exeext conftest.$ac_ext
8104 ac_config_commands="$ac_config_commands intltool"
8111 { echo "$as_me:$LINENO: checking for g_malloc0 in -lglib-2.0" >&5
8112 echo $ECHO_N "checking for g_malloc0 in -lglib-2.0... $ECHO_C" >&6; }
8113 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 ac_check_lib_save_LIBS=$LIBS
8117 LIBS="-lglib-2.0 $LIBS"
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 /* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 char g_malloc0 ();
8133 main ()
8135 return g_malloc0 ();
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest$ac_exeext &&
8157 $as_test_x conftest$ac_exeext; then
8158 ac_cv_lib_glib_2_0_g_malloc0=yes
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8163 ac_cv_lib_glib_2_0_g_malloc0=no
8166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8170 { echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
8171 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
8172 if test $ac_cv_lib_glib_2_0_g_malloc0 = yes; then
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_LIBGLIB_2_0 1
8175 _ACEOF
8177 LIBS="-lglib-2.0 $LIBS"
8179 else
8180 { { echo "$as_me:$LINENO: error: \"libglib not installed\"" >&5
8181 echo "$as_me: error: \"libglib not installed\"" >&2;}
8182 { (exit 1); exit 1; }; }
8189 { echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8190 echo $ECHO_N "checking for fftw_plan_dft_r2c_2d in -lfftw3... $ECHO_C" >&6; }
8191 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lfftw3 $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 char fftw_plan_dft_r2c_2d ();
8211 main ()
8213 return fftw_plan_dft_r2c_2d ();
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (ac_try="$ac_link"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_link") 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest$ac_exeext &&
8235 $as_test_x conftest$ac_exeext; then
8236 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
8237 else
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
8249 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
8250 if test $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_LIBFFTW3 1
8253 _ACEOF
8255 LIBS="-lfftw3 $LIBS"
8257 else
8258 { { echo "$as_me:$LINENO: error: \"libfftw3 not installed\"" >&5
8259 echo "$as_me: error: \"libfftw3 not installed\"" >&2;}
8260 { (exit 1); exit 1; }; }
8265 { echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
8266 echo $ECHO_N "checking for main in -lgslcblas... $ECHO_C" >&6; }
8267 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 ac_check_lib_save_LIBS=$LIBS
8271 LIBS="-lgslcblas $LIBS"
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8281 main ()
8283 return main ();
8285 return 0;
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest$ac_exeext &&
8305 $as_test_x conftest$ac_exeext; then
8306 ac_cv_lib_gslcblas_main=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_lib_gslcblas_main=no
8314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8315 conftest$ac_exeext conftest.$ac_ext
8316 LIBS=$ac_check_lib_save_LIBS
8318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
8319 echo "${ECHO_T}$ac_cv_lib_gslcblas_main" >&6; }
8320 if test $ac_cv_lib_gslcblas_main = yes; then
8321 cat >>confdefs.h <<_ACEOF
8322 #define HAVE_LIBGSLCBLAS 1
8323 _ACEOF
8325 LIBS="-lgslcblas $LIBS"
8327 else
8328 { { echo "$as_me:$LINENO: error: \"libgslcblas not installed\"" >&5
8329 echo "$as_me: error: \"libgslcblas not installed\"" >&2;}
8330 { (exit 1); exit 1; }; }
8335 { echo "$as_me:$LINENO: checking for main in -lgsl" >&5
8336 echo $ECHO_N "checking for main in -lgsl... $ECHO_C" >&6; }
8337 if test "${ac_cv_lib_gsl_main+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-lgsl $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8351 main ()
8353 return main ();
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_link") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest$ac_exeext &&
8375 $as_test_x conftest$ac_exeext; then
8376 ac_cv_lib_gsl_main=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_lib_gsl_main=no
8384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsl_main" >&5
8389 echo "${ECHO_T}$ac_cv_lib_gsl_main" >&6; }
8390 if test $ac_cv_lib_gsl_main = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_LIBGSL 1
8393 _ACEOF
8395 LIBS="-lgsl $LIBS"
8397 else
8398 { { echo "$as_me:$LINENO: error: \"libgsl not installed\"" >&5
8399 echo "$as_me: error: \"libgsl not installed\"" >&2;}
8400 { (exit 1); exit 1; }; }
8406 { echo "$as_me:$LINENO: checking for gpiv_piv_interrogate_ia in -lgpiv" >&5
8407 echo $ECHO_N "checking for gpiv_piv_interrogate_ia in -lgpiv... $ECHO_C" >&6; }
8408 if test "${ac_cv_lib_gpiv_gpiv_piv_interrogate_ia+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 ac_check_lib_save_LIBS=$LIBS
8412 LIBS="-lgpiv $LIBS"
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8420 /* Override any GCC internal prototype to avoid an error.
8421 Use char because int might match the return type of a GCC
8422 builtin and then its argument prototype would still apply. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 char gpiv_piv_interrogate_ia ();
8428 main ()
8430 return gpiv_piv_interrogate_ia ();
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest$ac_exeext &&
8452 $as_test_x conftest$ac_exeext; then
8453 ac_cv_lib_gpiv_gpiv_piv_interrogate_ia=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_lib_gpiv_gpiv_piv_interrogate_ia=no
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_piv_interrogate_ia" >&5
8466 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_piv_interrogate_ia" >&6; }
8467 if test $ac_cv_lib_gpiv_gpiv_piv_interrogate_ia = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_LIBGPIV 1
8470 _ACEOF
8472 LIBS="-lgpiv $LIBS"
8474 else
8475 { { echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
8476 echo "$as_me: error: libgpiv has not been installed" >&2;}
8477 { (exit 1); exit 1; }; }
8481 { echo "$as_me:$LINENO: checking for gpiv_scan_resourcefiles in -lgpiv" >&5
8482 echo $ECHO_N "checking for gpiv_scan_resourcefiles in -lgpiv... $ECHO_C" >&6; }
8483 if test "${ac_cv_lib_gpiv_gpiv_scan_resourcefiles+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lgpiv $LIBS"
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 char gpiv_scan_resourcefiles ();
8503 main ()
8505 return gpiv_scan_resourcefiles ();
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 ac_cv_lib_gpiv_gpiv_scan_resourcefiles=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_lib_gpiv_gpiv_scan_resourcefiles=no
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_scan_resourcefiles" >&5
8541 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_scan_resourcefiles" >&6; }
8542 if test $ac_cv_lib_gpiv_gpiv_scan_resourcefiles = yes; then
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_LIBGPIV 1
8545 _ACEOF
8547 LIBS="-lgpiv $LIBS"
8549 else
8550 { { echo "$as_me:$LINENO: error: libgpiv has not been installed" >&5
8551 echo "$as_me: error: libgpiv has not been installed" >&2;}
8552 { (exit 1); exit 1; }; }
8561 for ac_header in stdlib.h string.h unistd.h fftw3.h gpiv.h
8563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8573 else
8574 # Is the header compilable?
8575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #include <$ac_header>
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8588 case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_header_compiler=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_header_compiler=no
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613 echo "${ECHO_T}$ac_header_compiler" >&6; }
8615 # Is the header present?
8616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 #include <$ac_header>
8625 _ACEOF
8626 if { (ac_try="$ac_cpp conftest.$ac_ext"
8627 case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } >/dev/null && {
8639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 }; then
8642 ac_header_preproc=yes
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_header_preproc=no
8650 rm -f conftest.err conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652 echo "${ECHO_T}$ac_header_preproc" >&6; }
8654 # So? What about this header?
8655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8656 yes:no: )
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661 ac_header_preproc=yes
8663 no:yes:* )
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8676 ( cat <<\_ASBOX
8677 ## ------------------------------------------------------------------- ##
8678 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
8679 ## ------------------------------------------------------------------- ##
8680 _ASBOX
8681 ) | sed "s/^/$as_me: WARNING: /" >&2
8683 esac
8684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 eval "$as_ac_Header=\$ac_header_preproc"
8691 ac_res=`eval echo '${'$as_ac_Header'}'`
8692 { echo "$as_me:$LINENO: result: $ac_res" >&5
8693 echo "${ECHO_T}$ac_res" >&6; }
8696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8699 _ACEOF
8703 done
8706 # Check whether --enable-cam was given.
8707 if test "${enable_cam+set}" = set; then
8708 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
8715 # Check whether --enable-trig was given.
8716 if test "${enable_trig+set}" = set; then
8717 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
8724 if test $ENABLE_CAM || test $ENABLE_TRIG; then
8725 ENABLE_DAC="-DENABLE_DAC"
8729 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
8731 { echo "$as_me:$LINENO: checking for gpiv_cam_get_camvar in -lgpiv" >&5
8732 echo $ECHO_N "checking for gpiv_cam_get_camvar in -lgpiv... $ECHO_C" >&6; }
8733 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lgpiv $LIBS"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char gpiv_cam_get_camvar ();
8753 main ()
8755 return gpiv_cam_get_camvar ();
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (ac_try="$ac_link"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_link") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest$ac_exeext &&
8777 $as_test_x conftest$ac_exeext; then
8778 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
8786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787 conftest$ac_exeext conftest.$ac_ext
8788 LIBS=$ac_check_lib_save_LIBS
8790 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
8791 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
8792 if test $ac_cv_lib_gpiv_gpiv_cam_get_camvar = yes; then
8793 cat >>confdefs.h <<_ACEOF
8794 #define HAVE_LIBGPIV 1
8795 _ACEOF
8797 LIBS="-lgpiv $LIBS"
8799 else
8800 { { echo "$as_me:$LINENO: error: \"(IEEE-1394) camera is not working in libgpiv. \
8801 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&5
8802 echo "$as_me: error: \"(IEEE-1394) camera is not working in libgpiv. \
8803 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" >&2;}
8804 { (exit 1); exit 1; }; }
8809 { echo "$as_me:$LINENO: checking for raw1394_destroy_handle in -lraw1394" >&5
8810 echo $ECHO_N "checking for raw1394_destroy_handle in -lraw1394... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lraw1394 $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h. */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char raw1394_destroy_handle ();
8831 main ()
8833 return raw1394_destroy_handle ();
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext &&
8855 $as_test_x conftest$ac_exeext; then
8856 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_raw1394_raw1394_destroy_handle=no
8864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8868 { echo "$as_me:$LINENO: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
8869 echo "${ECHO_T}$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
8870 if test $ac_cv_lib_raw1394_raw1394_destroy_handle = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_LIBRAW1394 1
8873 _ACEOF
8875 LIBS="-lraw1394 $LIBS"
8877 else
8878 { { echo "$as_me:$LINENO: error: \"libraw1394 not installed\"" >&5
8879 echo "$as_me: error: \"libraw1394 not installed\"" >&2;}
8880 { (exit 1); exit 1; }; }
8885 { echo "$as_me:$LINENO: checking for dc1394_create_handle in -ldc1394_control" >&5
8886 echo $ECHO_N "checking for dc1394_create_handle in -ldc1394_control... $ECHO_C" >&6; }
8887 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 ac_check_lib_save_LIBS=$LIBS
8891 LIBS="-ldc1394_control $LIBS"
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 char dc1394_create_handle ();
8907 main ()
8909 return dc1394_create_handle ();
8911 return 0;
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (ac_try="$ac_link"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_link") 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && {
8928 test -z "$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8930 } && test -s conftest$ac_exeext &&
8931 $as_test_x conftest$ac_exeext; then
8932 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
8933 else
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 ac_cv_lib_dc1394_control_dc1394_create_handle=no
8940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LIBS=$ac_check_lib_save_LIBS
8944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
8945 echo "${ECHO_T}$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
8946 if test $ac_cv_lib_dc1394_control_dc1394_create_handle = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_LIBDC1394_CONTROL 1
8949 _ACEOF
8951 LIBS="-ldc1394_control $LIBS"
8953 else
8954 { { echo "$as_me:$LINENO: error: \"libdc1394_control not installed\"" >&5
8955 echo "$as_me: error: \"libdc1394_control not installed\"" >&2;}
8956 { (exit 1); exit 1; }; }
8960 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
8961 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
8962 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
8963 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
8967 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
8968 else
8969 # Is the header compilable?
8970 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
8971 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6; }
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8979 #include <libdc1394/dc1394_control.h>
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (ac_try="$ac_compile"
8983 case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_compile") 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest.$ac_objext; then
8998 ac_header_compiler=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_header_compiler=no
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9008 echo "${ECHO_T}$ac_header_compiler" >&6; }
9010 # Is the header present?
9011 { echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
9012 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6; }
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 #include <libdc1394/dc1394_control.h>
9020 _ACEOF
9021 if { (ac_try="$ac_cpp conftest.$ac_ext"
9022 case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025 esac
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } >/dev/null && {
9034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 }; then
9037 ac_header_preproc=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_preproc=no
9045 rm -f conftest.err conftest.$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9047 echo "${ECHO_T}$ac_header_preproc" >&6; }
9049 # So? What about this header?
9050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9051 yes:no: )
9052 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
9053 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
9055 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
9056 ac_header_preproc=yes
9058 no:yes:* )
9059 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
9060 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
9062 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
9064 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
9066 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
9068 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
9070 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
9071 ( cat <<\_ASBOX
9072 ## ------------------------------------------------------------------- ##
9073 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9074 ## ------------------------------------------------------------------- ##
9075 _ASBOX
9076 ) | sed "s/^/$as_me: WARNING: /" >&2
9078 esac
9079 { echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
9080 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6; }
9081 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
9086 { echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
9087 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6; }
9090 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
9092 else
9093 { { echo "$as_me:$LINENO: error: \"missing dc1394_control.h\"" >&5
9094 echo "$as_me: error: \"missing dc1394_control.h\"" >&2;}
9095 { (exit 1); exit 1; }; }
9100 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9102 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
9103 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
9108 else
9109 # Is the header compilable?
9110 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
9111 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <libraw1394/raw1394.h>
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9123 case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_header_compiler=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_header_compiler=no
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6; }
9150 # Is the header present?
9151 { echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
9152 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6; }
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <libraw1394/raw1394.h>
9160 _ACEOF
9161 if { (ac_try="$ac_cpp conftest.$ac_ext"
9162 case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 }; then
9177 ac_header_preproc=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6; }
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 yes:no: )
9192 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9198 no:yes:* )
9199 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
9211 ( cat <<\_ASBOX
9212 ## ------------------------------------------------------------------- ##
9213 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gpiv ##
9214 ## ------------------------------------------------------------------- ##
9215 _ASBOX
9216 ) | sed "s/^/$as_me: WARNING: /" >&2
9218 esac
9219 { echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
9220 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6; }
9221 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
9226 { echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
9227 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6; }
9230 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
9232 else
9233 { { echo "$as_me:$LINENO: error: \"missing raw1394.h\"" >&5
9234 echo "$as_me: error: \"missing raw1394.h\"" >&2;}
9235 { (exit 1); exit 1; }; }
9242 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
9244 { echo "$as_me:$LINENO: checking for gpiv_trig_openrtfs in -lgpiv" >&5
9245 echo $ECHO_N "checking for gpiv_trig_openrtfs in -lgpiv... $ECHO_C" >&6; }
9246 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lgpiv $LIBS"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 char gpiv_trig_openrtfs ();
9266 main ()
9268 return gpiv_trig_openrtfs ();
9270 return 0;
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9275 case "(($ac_try" in
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9278 esac
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280 (eval "$ac_link") 2>conftest.er1
9281 ac_status=$?
9282 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && {
9287 test -z "$ac_c_werror_flag" ||
9288 test ! -s conftest.err
9289 } && test -s conftest$ac_exeext &&
9290 $as_test_x conftest$ac_exeext; then
9291 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
9292 else
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
9299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9300 conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
9304 echo "${ECHO_T}$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
9305 if test $ac_cv_lib_gpiv_gpiv_trig_openrtfs = yes; then
9306 cat >>confdefs.h <<_ACEOF
9307 #define HAVE_LIBGPIV 1
9308 _ACEOF
9310 LIBS="-lgpiv $LIBS"
9312 else
9313 { { echo "$as_me:$LINENO: error: \"(Realtime) triggering is not working in libgpiv. \
9314 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&5
9315 echo "$as_me: error: \"(Realtime) triggering is not working in libgpiv. \
9316 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" >&2;}
9317 { (exit 1); exit 1; }; }
9323 # Extract the first word of "gpiv_control", so it can be a program name with args.
9324 set dummy gpiv_control; ac_word=$2
9325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9327 if test "${ac_cv_prog_CONTROL+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 if test -n "$CONTROL"; then
9331 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
9332 else
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_prog_CONTROL="true"
9341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9344 done
9345 done
9346 IFS=$as_save_IFS
9348 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
9351 CONTROL=$ac_cv_prog_CONTROL
9352 if test -n "$CONTROL"; then
9353 { echo "$as_me:$LINENO: result: $CONTROL" >&5
9354 echo "${ECHO_T}$CONTROL" >&6; }
9355 else
9356 { echo "$as_me:$LINENO: result: no" >&5
9357 echo "${ECHO_T}no" >&6; }
9363 if $CONTROL; then
9364 HAVE_CONTROL_TRUE=
9365 HAVE_CONTROL_FALSE='#'
9366 else
9367 HAVE_CONTROL_TRUE='#'
9368 HAVE_CONTROL_FALSE=
9372 # Check whether --enable-rta was given.
9373 if test "${enable_rta+set}" = set; then
9374 enableval=$enable_rta; RTA_TOPDIR="$enableval"
9375 else
9376 RTA_TOPDIR="/usr/lib/realtime"
9383 # Check whether --enable-k was given.
9384 if test "${enable_k+set}" = set; then
9385 enableval=$enable_k; K_TOPDIR="$enableval"
9386 else
9387 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
9394 # Check whether --enable-img-width was given.
9395 if test "${enable_img_width+set}" = set; then
9396 enableval=$enable_img_width; OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
9404 # Check whether --enable-img-height was given.
9405 if test "${enable_img_height+set}" = set; then
9406 enableval=$enable_img_height; OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
9413 # Check whether --enable-canvas_aa was given.
9414 if test "${enable_canvas_aa+set}" = set; then
9415 enableval=$enable_canvas_aa; CANVAS_AA="-DCANVAS_AA"
9422 # Check whether --enable-debug was given.
9423 if test "${enable_debug+set}" = set; then
9424 enableval=$enable_debug; DEBUG="-DDEBUG"
9434 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"
9436 cat >confcache <<\_ACEOF
9437 # This file is a shell script that caches the results of configure
9438 # tests run on this system so they can be shared between configure
9439 # scripts and configure runs, see configure's option --config-cache.
9440 # It is not useful on other systems. If it contains results you don't
9441 # want to keep, you may remove or edit it.
9443 # config.status only pays attention to the cache file if you give it
9444 # the --recheck option to rerun configure.
9446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9448 # following values.
9450 _ACEOF
9452 # The following way of writing the cache mishandles newlines in values,
9453 # but we know of no workaround that is simple, portable, and efficient.
9454 # So, we kill variables containing newlines.
9455 # Ultrix sh set writes to stderr and can't be redirected directly,
9456 # and sets the high bit in the cache file unless we assign to the vars.
9458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9459 eval ac_val=\$$ac_var
9460 case $ac_val in #(
9461 *${as_nl}*)
9462 case $ac_var in #(
9463 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9464 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9465 esac
9466 case $ac_var in #(
9467 _ | IFS | as_nl) ;; #(
9468 *) $as_unset $ac_var ;;
9469 esac ;;
9470 esac
9471 done
9473 (set) 2>&1 |
9474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9475 *${as_nl}ac_space=\ *)
9476 # `set' does not quote correctly, so add quotes (double-quote
9477 # substitution turns \\\\ into \\, and sed turns \\ into \).
9478 sed -n \
9479 "s/'/'\\\\''/g;
9480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9481 ;; #(
9483 # `set' quotes correctly as required by POSIX, so do not add quotes.
9484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9486 esac |
9487 sort
9489 sed '
9490 /^ac_cv_env_/b end
9491 t clear
9492 :clear
9493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9494 t end
9495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9496 :end' >>confcache
9497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9498 if test -w "$cache_file"; then
9499 test "x$cache_file" != "x/dev/null" &&
9500 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9501 echo "$as_me: updating cache $cache_file" >&6;}
9502 cat confcache >$cache_file
9503 else
9504 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9505 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9508 rm -f confcache
9510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9511 # Let make expand exec_prefix.
9512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9514 # Transform confdefs.h into DEFS.
9515 # Protect against shell expansion while executing Makefile rules.
9516 # Protect against Makefile macro expansion.
9518 # If the first sed substitution is executed (which looks for macros that
9519 # take arguments), then branch to the quote section. Otherwise,
9520 # look for a macro that doesn't take arguments.
9521 ac_script='
9522 t clear
9523 :clear
9524 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9525 t quote
9526 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9527 t quote
9528 b any
9529 :quote
9530 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9531 s/\[/\\&/g
9532 s/\]/\\&/g
9533 s/\$/$$/g
9535 :any
9538 s/^\n//
9539 s/\n/ /g
9543 DEFS=`sed -n "$ac_script" confdefs.h`
9546 ac_libobjs=
9547 ac_ltlibobjs=
9548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9549 # 1. Remove the extension, and $U if already installed.
9550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9551 ac_i=`echo "$ac_i" | sed "$ac_script"`
9552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9553 # will be set to the directory where LIBOBJS objects are built.
9554 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9555 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9556 done
9557 LIBOBJS=$ac_libobjs
9559 LTLIBOBJS=$ac_ltlibobjs
9562 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9563 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9564 Usually this means the macro was only invoked conditionally." >&5
9565 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9566 Usually this means the macro was only invoked conditionally." >&2;}
9567 { (exit 1); exit 1; }; }
9569 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9570 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9571 Usually this means the macro was only invoked conditionally." >&5
9572 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9573 Usually this means the macro was only invoked conditionally." >&2;}
9574 { (exit 1); exit 1; }; }
9576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9577 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9578 Usually this means the macro was only invoked conditionally." >&5
9579 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9580 Usually this means the macro was only invoked conditionally." >&2;}
9581 { (exit 1); exit 1; }; }
9583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9584 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9585 Usually this means the macro was only invoked conditionally." >&5
9586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9587 Usually this means the macro was only invoked conditionally." >&2;}
9588 { (exit 1); exit 1; }; }
9590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9591 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9592 Usually this means the macro was only invoked conditionally." >&5
9593 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9594 Usually this means the macro was only invoked conditionally." >&2;}
9595 { (exit 1); exit 1; }; }
9598 ac_config_commands="$ac_config_commands po/stamp-it"
9601 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
9602 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CONTROL\" was never defined.
9603 Usually this means the macro was only invoked conditionally." >&5
9604 echo "$as_me: error: conditional \"HAVE_CONTROL\" was never defined.
9605 Usually this means the macro was only invoked conditionally." >&2;}
9606 { (exit 1); exit 1; }; }
9609 : ${CONFIG_STATUS=./config.status}
9610 ac_clean_files_save=$ac_clean_files
9611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9612 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9614 cat >$CONFIG_STATUS <<_ACEOF
9615 #! $SHELL
9616 # Generated by $as_me.
9617 # Run this file to recreate the current configuration.
9618 # Compiler output produced by configure, useful for debugging
9619 # configure, is in config.log if it exists.
9621 debug=false
9622 ac_cs_recheck=false
9623 ac_cs_silent=false
9624 SHELL=\${CONFIG_SHELL-$SHELL}
9625 _ACEOF
9627 cat >>$CONFIG_STATUS <<\_ACEOF
9628 ## --------------------- ##
9629 ## M4sh Initialization. ##
9630 ## --------------------- ##
9632 # Be more Bourne compatible
9633 DUALCASE=1; export DUALCASE # for MKS sh
9634 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9635 emulate sh
9636 NULLCMD=:
9637 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9638 # is contrary to our usage. Disable this feature.
9639 alias -g '${1+"$@"}'='"$@"'
9640 setopt NO_GLOB_SUBST
9641 else
9642 case `(set -o) 2>/dev/null` in
9643 *posix*) set -o posix ;;
9644 esac
9651 # PATH needs CR
9652 # Avoid depending upon Character Ranges.
9653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9656 as_cr_digits='0123456789'
9657 as_cr_alnum=$as_cr_Letters$as_cr_digits
9659 # The user is always right.
9660 if test "${PATH_SEPARATOR+set}" != set; then
9661 echo "#! /bin/sh" >conf$$.sh
9662 echo "exit 0" >>conf$$.sh
9663 chmod +x conf$$.sh
9664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9665 PATH_SEPARATOR=';'
9666 else
9667 PATH_SEPARATOR=:
9669 rm -f conf$$.sh
9672 # Support unset when possible.
9673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9674 as_unset=unset
9675 else
9676 as_unset=false
9680 # IFS
9681 # We need space, tab and new line, in precisely that order. Quoting is
9682 # there to prevent editors from complaining about space-tab.
9683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9684 # splitting by setting IFS to empty value.)
9685 as_nl='
9687 IFS=" "" $as_nl"
9689 # Find who we are. Look in the path if we contain no directory separator.
9690 case $0 in
9691 *[\\/]* ) as_myself=$0 ;;
9692 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9698 done
9699 IFS=$as_save_IFS
9702 esac
9703 # We did not find ourselves, most probably we were run as `sh COMMAND'
9704 # in which case we are not to be found in the path.
9705 if test "x$as_myself" = x; then
9706 as_myself=$0
9708 if test ! -f "$as_myself"; then
9709 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9710 { (exit 1); exit 1; }
9713 # Work around bugs in pre-3.0 UWIN ksh.
9714 for as_var in ENV MAIL MAILPATH
9715 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9716 done
9717 PS1='$ '
9718 PS2='> '
9719 PS4='+ '
9721 # NLS nuisances.
9722 for as_var in \
9723 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9724 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9725 LC_TELEPHONE LC_TIME
9727 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9728 eval $as_var=C; export $as_var
9729 else
9730 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9732 done
9734 # Required to use basename.
9735 if expr a : '\(a\)' >/dev/null 2>&1 &&
9736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9737 as_expr=expr
9738 else
9739 as_expr=false
9742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9743 as_basename=basename
9744 else
9745 as_basename=false
9749 # Name of the executable.
9750 as_me=`$as_basename -- "$0" ||
9751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9752 X"$0" : 'X\(//\)$' \| \
9753 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9754 echo X/"$0" |
9755 sed '/^.*\/\([^/][^/]*\)\/*$/{
9756 s//\1/
9759 /^X\/\(\/\/\)$/{
9760 s//\1/
9763 /^X\/\(\/\).*/{
9764 s//\1/
9767 s/.*/./; q'`
9769 # CDPATH.
9770 $as_unset CDPATH
9774 as_lineno_1=$LINENO
9775 as_lineno_2=$LINENO
9776 test "x$as_lineno_1" != "x$as_lineno_2" &&
9777 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9780 # uniformly replaced by the line number. The first 'sed' inserts a
9781 # line-number line after each line using $LINENO; the second 'sed'
9782 # does the real work. The second script uses 'N' to pair each
9783 # line-number line with the line containing $LINENO, and appends
9784 # trailing '-' during substitution so that $LINENO is not a special
9785 # case at line end.
9786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9787 # scripts with optimization help from Paolo Bonzini. Blame Lee
9788 # E. McMahon (1931-1989) for sed's syntax. :-)
9789 sed -n '
9791 /[$]LINENO/=
9792 ' <$as_myself |
9793 sed '
9794 s/[$]LINENO.*/&-/
9795 t lineno
9797 :lineno
9799 :loop
9800 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9801 t loop
9802 s/-\n.*//
9803 ' >$as_me.lineno &&
9804 chmod +x "$as_me.lineno" ||
9805 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9806 { (exit 1); exit 1; }; }
9808 # Don't try to exec as it changes $[0], causing all sort of problems
9809 # (the dirname of $[0] is not the place where we might find the
9810 # original and so on. Autoconf is especially sensitive to this).
9811 . "./$as_me.lineno"
9812 # Exit status is that of the last command.
9813 exit
9817 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9818 as_dirname=dirname
9819 else
9820 as_dirname=false
9823 ECHO_C= ECHO_N= ECHO_T=
9824 case `echo -n x` in
9825 -n*)
9826 case `echo 'x\c'` in
9827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9828 *) ECHO_C='\c';;
9829 esac;;
9831 ECHO_N='-n';;
9832 esac
9834 if expr a : '\(a\)' >/dev/null 2>&1 &&
9835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9836 as_expr=expr
9837 else
9838 as_expr=false
9841 rm -f conf$$ conf$$.exe conf$$.file
9842 if test -d conf$$.dir; then
9843 rm -f conf$$.dir/conf$$.file
9844 else
9845 rm -f conf$$.dir
9846 mkdir conf$$.dir
9848 echo >conf$$.file
9849 if ln -s conf$$.file conf$$ 2>/dev/null; then
9850 as_ln_s='ln -s'
9851 # ... but there are two gotchas:
9852 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9853 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9854 # In both cases, we have to default to `cp -p'.
9855 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9856 as_ln_s='cp -p'
9857 elif ln conf$$.file conf$$ 2>/dev/null; then
9858 as_ln_s=ln
9859 else
9860 as_ln_s='cp -p'
9862 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9863 rmdir conf$$.dir 2>/dev/null
9865 if mkdir -p . 2>/dev/null; then
9866 as_mkdir_p=:
9867 else
9868 test -d ./-p && rmdir ./-p
9869 as_mkdir_p=false
9872 if test -x / >/dev/null 2>&1; then
9873 as_test_x='test -x'
9874 else
9875 if ls -dL / >/dev/null 2>&1; then
9876 as_ls_L_option=L
9877 else
9878 as_ls_L_option=
9880 as_test_x='
9881 eval sh -c '\''
9882 if test -d "$1"; then
9883 test -d "$1/.";
9884 else
9885 case $1 in
9886 -*)set "./$1";;
9887 esac;
9888 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9889 ???[sx]*):;;*)false;;esac;fi
9890 '\'' sh
9893 as_executable_p=$as_test_x
9895 # Sed expression to map a string onto a valid CPP name.
9896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9898 # Sed expression to map a string onto a valid variable name.
9899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9902 exec 6>&1
9904 # Save the log message, to keep $[0] and so on meaningful, and to
9905 # report actual input values of CONFIG_FILES etc. instead of their
9906 # values after options handling.
9907 ac_log="
9908 This file was extended by gpiv $as_me 0.5.2, which was
9909 generated by GNU Autoconf 2.61. Invocation command line was
9911 CONFIG_FILES = $CONFIG_FILES
9912 CONFIG_HEADERS = $CONFIG_HEADERS
9913 CONFIG_LINKS = $CONFIG_LINKS
9914 CONFIG_COMMANDS = $CONFIG_COMMANDS
9915 $ $0 $@
9917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9920 _ACEOF
9922 cat >>$CONFIG_STATUS <<_ACEOF
9923 # Files that config.status was made for.
9924 config_files="$ac_config_files"
9925 config_commands="$ac_config_commands"
9927 _ACEOF
9929 cat >>$CONFIG_STATUS <<\_ACEOF
9930 ac_cs_usage="\
9931 \`$as_me' instantiates files from templates according to the
9932 current configuration.
9934 Usage: $0 [OPTIONS] [FILE]...
9936 -h, --help print this help, then exit
9937 -V, --version print version number and configuration settings, then exit
9938 -q, --quiet do not print progress messages
9939 -d, --debug don't remove temporary files
9940 --recheck update $as_me by reconfiguring in the same conditions
9941 --file=FILE[:TEMPLATE]
9942 instantiate the configuration file FILE
9944 Configuration files:
9945 $config_files
9947 Configuration commands:
9948 $config_commands
9950 Report bugs to <bug-autoconf@gnu.org>."
9952 _ACEOF
9953 cat >>$CONFIG_STATUS <<_ACEOF
9954 ac_cs_version="\\
9955 gpiv config.status 0.5.2
9956 configured by $0, generated by GNU Autoconf 2.61,
9957 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9959 Copyright (C) 2006 Free Software Foundation, Inc.
9960 This config.status script is free software; the Free Software Foundation
9961 gives unlimited permission to copy, distribute and modify it."
9963 ac_pwd='$ac_pwd'
9964 srcdir='$srcdir'
9965 INSTALL='$INSTALL'
9966 _ACEOF
9968 cat >>$CONFIG_STATUS <<\_ACEOF
9969 # If no file are specified by the user, then we need to provide default
9970 # value. By we need to know if files were specified by the user.
9971 ac_need_defaults=:
9972 while test $# != 0
9974 case $1 in
9975 --*=*)
9976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9978 ac_shift=:
9981 ac_option=$1
9982 ac_optarg=$2
9983 ac_shift=shift
9985 esac
9987 case $ac_option in
9988 # Handling of the options.
9989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9990 ac_cs_recheck=: ;;
9991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9992 echo "$ac_cs_version"; exit ;;
9993 --debug | --debu | --deb | --de | --d | -d )
9994 debug=: ;;
9995 --file | --fil | --fi | --f )
9996 $ac_shift
9997 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9998 ac_need_defaults=false;;
9999 --he | --h | --help | --hel | -h )
10000 echo "$ac_cs_usage"; exit ;;
10001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10003 ac_cs_silent=: ;;
10005 # This is an error.
10006 -*) { echo "$as_me: error: unrecognized option: $1
10007 Try \`$0 --help' for more information." >&2
10008 { (exit 1); exit 1; }; } ;;
10010 *) ac_config_targets="$ac_config_targets $1"
10011 ac_need_defaults=false ;;
10013 esac
10014 shift
10015 done
10017 ac_configure_extra_args=
10019 if $ac_cs_silent; then
10020 exec 6>/dev/null
10021 ac_configure_extra_args="$ac_configure_extra_args --silent"
10024 _ACEOF
10025 cat >>$CONFIG_STATUS <<_ACEOF
10026 if \$ac_cs_recheck; then
10027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10028 CONFIG_SHELL=$SHELL
10029 export CONFIG_SHELL
10030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10033 _ACEOF
10034 cat >>$CONFIG_STATUS <<\_ACEOF
10035 exec 5>>config.log
10037 echo
10038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10039 ## Running $as_me. ##
10040 _ASBOX
10041 echo "$ac_log"
10042 } >&5
10044 _ACEOF
10045 cat >>$CONFIG_STATUS <<_ACEOF
10047 # INIT-COMMANDS
10049 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10051 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
10052 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
10053 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
10055 _ACEOF
10057 cat >>$CONFIG_STATUS <<\_ACEOF
10059 # Handling of arguments.
10060 for ac_config_target in $ac_config_targets
10062 case $ac_config_target in
10063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10064 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10065 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
10066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10067 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10068 "doc/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/Makefile" ;;
10069 "doc/C/figures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/C/figures/Makefile" ;;
10070 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10071 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10072 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10073 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
10074 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
10076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10078 { (exit 1); exit 1; }; };;
10079 esac
10080 done
10083 # If the user did not use the arguments to specify the items to instantiate,
10084 # then the envvar interface is used. Set only those that are not.
10085 # We use the long form for the default assignment because of an extremely
10086 # bizarre bug on SunOS 4.1.3.
10087 if $ac_need_defaults; then
10088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10092 # Have a temporary directory for convenience. Make it in the build tree
10093 # simply because there is no reason against having it here, and in addition,
10094 # creating and moving files from /tmp can sometimes cause problems.
10095 # Hook for its removal unless debugging.
10096 # Note that there is a small window in which the directory will not be cleaned:
10097 # after its creation but before its name has been assigned to `$tmp'.
10098 $debug ||
10100 tmp=
10101 trap 'exit_status=$?
10102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10104 trap '{ (exit 1); exit 1; }' 1 2 13 15
10106 # Create a (secure) tmp directory for tmp files.
10109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10110 test -n "$tmp" && test -d "$tmp"
10111 } ||
10113 tmp=./conf$$-$RANDOM
10114 (umask 077 && mkdir "$tmp")
10115 } ||
10117 echo "$me: cannot create a temporary directory in ." >&2
10118 { (exit 1); exit 1; }
10122 # Set up the sed scripts for CONFIG_FILES section.
10125 # No need to generate the scripts if there are no CONFIG_FILES.
10126 # This happens for instance when ./config.status config.h
10127 if test -n "$CONFIG_FILES"; then
10129 _ACEOF
10133 ac_delim='%!_!# '
10134 for ac_last_try in false false false false false :; do
10135 cat >conf$$subs.sed <<_ACEOF
10136 SHELL!$SHELL$ac_delim
10137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10143 exec_prefix!$exec_prefix$ac_delim
10144 prefix!$prefix$ac_delim
10145 program_transform_name!$program_transform_name$ac_delim
10146 bindir!$bindir$ac_delim
10147 sbindir!$sbindir$ac_delim
10148 libexecdir!$libexecdir$ac_delim
10149 datarootdir!$datarootdir$ac_delim
10150 datadir!$datadir$ac_delim
10151 sysconfdir!$sysconfdir$ac_delim
10152 sharedstatedir!$sharedstatedir$ac_delim
10153 localstatedir!$localstatedir$ac_delim
10154 includedir!$includedir$ac_delim
10155 oldincludedir!$oldincludedir$ac_delim
10156 docdir!$docdir$ac_delim
10157 infodir!$infodir$ac_delim
10158 htmldir!$htmldir$ac_delim
10159 dvidir!$dvidir$ac_delim
10160 pdfdir!$pdfdir$ac_delim
10161 psdir!$psdir$ac_delim
10162 libdir!$libdir$ac_delim
10163 localedir!$localedir$ac_delim
10164 mandir!$mandir$ac_delim
10165 DEFS!$DEFS$ac_delim
10166 ECHO_C!$ECHO_C$ac_delim
10167 ECHO_N!$ECHO_N$ac_delim
10168 ECHO_T!$ECHO_T$ac_delim
10169 LIBS!$LIBS$ac_delim
10170 build_alias!$build_alias$ac_delim
10171 host_alias!$host_alias$ac_delim
10172 target_alias!$target_alias$ac_delim
10173 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10174 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10175 INSTALL_DATA!$INSTALL_DATA$ac_delim
10176 CYGPATH_W!$CYGPATH_W$ac_delim
10177 PACKAGE!$PACKAGE$ac_delim
10178 VERSION!$VERSION$ac_delim
10179 ACLOCAL!$ACLOCAL$ac_delim
10180 AUTOCONF!$AUTOCONF$ac_delim
10181 AUTOMAKE!$AUTOMAKE$ac_delim
10182 AUTOHEADER!$AUTOHEADER$ac_delim
10183 MAKEINFO!$MAKEINFO$ac_delim
10184 install_sh!$install_sh$ac_delim
10185 STRIP!$STRIP$ac_delim
10186 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10187 mkdir_p!$mkdir_p$ac_delim
10188 AWK!$AWK$ac_delim
10189 SET_MAKE!$SET_MAKE$ac_delim
10190 am__leading_dot!$am__leading_dot$ac_delim
10191 AMTAR!$AMTAR$ac_delim
10192 am__tar!$am__tar$ac_delim
10193 am__untar!$am__untar$ac_delim
10194 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
10195 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
10196 MAINT!$MAINT$ac_delim
10197 CC!$CC$ac_delim
10198 CFLAGS!$CFLAGS$ac_delim
10199 LDFLAGS!$LDFLAGS$ac_delim
10200 CPPFLAGS!$CPPFLAGS$ac_delim
10201 ac_ct_CC!$ac_ct_CC$ac_delim
10202 EXEEXT!$EXEEXT$ac_delim
10203 OBJEXT!$OBJEXT$ac_delim
10204 DEPDIR!$DEPDIR$ac_delim
10205 am__include!$am__include$ac_delim
10206 am__quote!$am__quote$ac_delim
10207 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10208 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10209 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10210 CCDEPMODE!$CCDEPMODE$ac_delim
10211 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10212 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10213 CPP!$CPP$ac_delim
10214 GREP!$GREP$ac_delim
10215 EGREP!$EGREP$ac_delim
10216 PKG_CONFIG!$PKG_CONFIG$ac_delim
10217 GPIV_UI_CFLAGS!$GPIV_UI_CFLAGS$ac_delim
10218 GPIV_UI_LIBS!$GPIV_UI_LIBS$ac_delim
10219 GPIV_PRINT_CFLAGS!$GPIV_PRINT_CFLAGS$ac_delim
10220 GPIV_PRINT_LIBS!$GPIV_PRINT_LIBS$ac_delim
10221 GPIV_CFLAGS!$GPIV_CFLAGS$ac_delim
10222 GPIV_LIBS!$GPIV_LIBS$ac_delim
10223 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
10224 USE_NLS!$USE_NLS$ac_delim
10225 MSGFMT!$MSGFMT$ac_delim
10226 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
10227 GMSGFMT!$GMSGFMT$ac_delim
10228 XGETTEXT!$XGETTEXT$ac_delim
10229 CATALOGS!$CATALOGS$ac_delim
10230 CATOBJEXT!$CATOBJEXT$ac_delim
10231 DATADIRNAME!$DATADIRNAME$ac_delim
10232 GMOFILES!$GMOFILES$ac_delim
10233 _ACEOF
10235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10236 break
10237 elif $ac_last_try; then
10238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10240 { (exit 1); exit 1; }; }
10241 else
10242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10244 done
10246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10247 if test -n "$ac_eof"; then
10248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10249 ac_eof=`expr $ac_eof + 1`
10252 cat >>$CONFIG_STATUS <<_ACEOF
10253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10255 _ACEOF
10256 sed '
10257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10258 s/^/s,@/; s/!/@,|#_!!_#|/
10261 s/'"$ac_delim"'$/,g/; t
10262 s/$/\\/; p
10263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10264 ' >>$CONFIG_STATUS <conf$$subs.sed
10265 rm -f conf$$subs.sed
10266 cat >>$CONFIG_STATUS <<_ACEOF
10267 CEOF$ac_eof
10268 _ACEOF
10271 ac_delim='%!_!# '
10272 for ac_last_try in false false false false false :; do
10273 cat >conf$$subs.sed <<_ACEOF
10274 INSTOBJEXT!$INSTOBJEXT$ac_delim
10275 INTLLIBS!$INTLLIBS$ac_delim
10276 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
10277 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
10278 POFILES!$POFILES$ac_delim
10279 POSUB!$POSUB$ac_delim
10280 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
10281 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
10282 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
10283 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
10284 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
10285 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
10286 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
10287 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
10288 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
10289 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
10290 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
10291 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
10292 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
10293 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
10294 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
10295 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
10296 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
10297 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
10298 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
10299 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
10300 MSGMERGE!$MSGMERGE$ac_delim
10301 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
10302 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
10303 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
10304 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
10305 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
10306 ENABLE_CAM!$ENABLE_CAM$ac_delim
10307 ENABLE_TRIG!$ENABLE_TRIG$ac_delim
10308 ENABLE_DAC!$ENABLE_DAC$ac_delim
10309 CONTROL!$CONTROL$ac_delim
10310 HAVE_CONTROL_TRUE!$HAVE_CONTROL_TRUE$ac_delim
10311 HAVE_CONTROL_FALSE!$HAVE_CONTROL_FALSE$ac_delim
10312 RTA_TOPDIR!$RTA_TOPDIR$ac_delim
10313 K_TOPDIR!$K_TOPDIR$ac_delim
10314 OVERRIDE_IMAGE_WIDTH_MAX!$OVERRIDE_IMAGE_WIDTH_MAX$ac_delim
10315 OVERRIDE_IMAGE_HEIGHT_MAX!$OVERRIDE_IMAGE_HEIGHT_MAX$ac_delim
10316 CANVAS_AA!$CANVAS_AA$ac_delim
10317 DEBUG!$DEBUG$ac_delim
10318 LIBOBJS!$LIBOBJS$ac_delim
10319 LTLIBOBJS!$LTLIBOBJS$ac_delim
10320 _ACEOF
10322 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
10323 break
10324 elif $ac_last_try; then
10325 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10327 { (exit 1); exit 1; }; }
10328 else
10329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10331 done
10333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10334 if test -n "$ac_eof"; then
10335 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10336 ac_eof=`expr $ac_eof + 1`
10339 cat >>$CONFIG_STATUS <<_ACEOF
10340 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10342 _ACEOF
10343 sed '
10344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10345 s/^/s,@/; s/!/@,|#_!!_#|/
10348 s/'"$ac_delim"'$/,g/; t
10349 s/$/\\/; p
10350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10351 ' >>$CONFIG_STATUS <conf$$subs.sed
10352 rm -f conf$$subs.sed
10353 cat >>$CONFIG_STATUS <<_ACEOF
10354 :end
10355 s/|#_!!_#|//g
10356 CEOF$ac_eof
10357 _ACEOF
10360 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10361 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10362 # trailing colons and then remove the whole line if VPATH becomes empty
10363 # (actually we leave an empty line to preserve line numbers).
10364 if test "x$srcdir" = x.; then
10365 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10366 s/:*\$(srcdir):*/:/
10367 s/:*\${srcdir}:*/:/
10368 s/:*@srcdir@:*/:/
10369 s/^\([^=]*=[ ]*\):*/\1/
10370 s/:*$//
10371 s/^[^=]*=[ ]*$//
10375 cat >>$CONFIG_STATUS <<\_ACEOF
10376 fi # test -n "$CONFIG_FILES"
10379 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
10381 case $ac_tag in
10382 :[FHLC]) ac_mode=$ac_tag; continue;;
10383 esac
10384 case $ac_mode$ac_tag in
10385 :[FHL]*:*);;
10386 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10387 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10388 { (exit 1); exit 1; }; };;
10389 :[FH]-) ac_tag=-:-;;
10390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10391 esac
10392 ac_save_IFS=$IFS
10393 IFS=:
10394 set x $ac_tag
10395 IFS=$ac_save_IFS
10396 shift
10397 ac_file=$1
10398 shift
10400 case $ac_mode in
10401 :L) ac_source=$1;;
10402 :[FH])
10403 ac_file_inputs=
10404 for ac_f
10406 case $ac_f in
10407 -) ac_f="$tmp/stdin";;
10408 *) # Look for the file first in the build tree, then in the source tree
10409 # (if the path is not absolute). The absolute path cannot be DOS-style,
10410 # because $ac_f cannot contain `:'.
10411 test -f "$ac_f" ||
10412 case $ac_f in
10413 [\\/$]*) false;;
10414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10415 esac ||
10416 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10417 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10418 { (exit 1); exit 1; }; };;
10419 esac
10420 ac_file_inputs="$ac_file_inputs $ac_f"
10421 done
10423 # Let's still pretend it is `configure' which instantiates (i.e., don't
10424 # use $as_me), people would be surprised to read:
10425 # /* config.h. Generated by config.status. */
10426 configure_input="Generated from "`IFS=:
10427 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10428 if test x"$ac_file" != x-; then
10429 configure_input="$ac_file. $configure_input"
10430 { echo "$as_me:$LINENO: creating $ac_file" >&5
10431 echo "$as_me: creating $ac_file" >&6;}
10434 case $ac_tag in
10435 *:-:* | *:-) cat >"$tmp/stdin";;
10436 esac
10438 esac
10440 ac_dir=`$as_dirname -- "$ac_file" ||
10441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10442 X"$ac_file" : 'X\(//\)[^/]' \| \
10443 X"$ac_file" : 'X\(//\)$' \| \
10444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10445 echo X"$ac_file" |
10446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10447 s//\1/
10450 /^X\(\/\/\)[^/].*/{
10451 s//\1/
10454 /^X\(\/\/\)$/{
10455 s//\1/
10458 /^X\(\/\).*/{
10459 s//\1/
10462 s/.*/./; q'`
10463 { as_dir="$ac_dir"
10464 case $as_dir in #(
10465 -*) as_dir=./$as_dir;;
10466 esac
10467 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10468 as_dirs=
10469 while :; do
10470 case $as_dir in #(
10471 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10472 *) as_qdir=$as_dir;;
10473 esac
10474 as_dirs="'$as_qdir' $as_dirs"
10475 as_dir=`$as_dirname -- "$as_dir" ||
10476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10477 X"$as_dir" : 'X\(//\)[^/]' \| \
10478 X"$as_dir" : 'X\(//\)$' \| \
10479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10480 echo X"$as_dir" |
10481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10482 s//\1/
10485 /^X\(\/\/\)[^/].*/{
10486 s//\1/
10489 /^X\(\/\/\)$/{
10490 s//\1/
10493 /^X\(\/\).*/{
10494 s//\1/
10497 s/.*/./; q'`
10498 test -d "$as_dir" && break
10499 done
10500 test -z "$as_dirs" || eval "mkdir $as_dirs"
10501 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10502 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10503 { (exit 1); exit 1; }; }; }
10504 ac_builddir=.
10506 case "$ac_dir" in
10507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10510 # A ".." for each directory in $ac_dir_suffix.
10511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10512 case $ac_top_builddir_sub in
10513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10515 esac ;;
10516 esac
10517 ac_abs_top_builddir=$ac_pwd
10518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10519 # for backward compatibility:
10520 ac_top_builddir=$ac_top_build_prefix
10522 case $srcdir in
10523 .) # We are building in place.
10524 ac_srcdir=.
10525 ac_top_srcdir=$ac_top_builddir_sub
10526 ac_abs_top_srcdir=$ac_pwd ;;
10527 [\\/]* | ?:[\\/]* ) # Absolute name.
10528 ac_srcdir=$srcdir$ac_dir_suffix;
10529 ac_top_srcdir=$srcdir
10530 ac_abs_top_srcdir=$srcdir ;;
10531 *) # Relative name.
10532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10533 ac_top_srcdir=$ac_top_build_prefix$srcdir
10534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10535 esac
10536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10539 case $ac_mode in
10542 # CONFIG_FILE
10545 case $INSTALL in
10546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10548 esac
10549 _ACEOF
10551 cat >>$CONFIG_STATUS <<\_ACEOF
10552 # If the template does not know about datarootdir, expand it.
10553 # FIXME: This hack should be removed a few years after 2.60.
10554 ac_datarootdir_hack=; ac_datarootdir_seen=
10556 case `sed -n '/datarootdir/ {
10560 /@datadir@/p
10561 /@docdir@/p
10562 /@infodir@/p
10563 /@localedir@/p
10564 /@mandir@/p
10565 ' $ac_file_inputs` in
10566 *datarootdir*) ac_datarootdir_seen=yes;;
10567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10568 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10569 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10570 _ACEOF
10571 cat >>$CONFIG_STATUS <<_ACEOF
10572 ac_datarootdir_hack='
10573 s&@datadir@&$datadir&g
10574 s&@docdir@&$docdir&g
10575 s&@infodir@&$infodir&g
10576 s&@localedir@&$localedir&g
10577 s&@mandir@&$mandir&g
10578 s&\\\${datarootdir}&$datarootdir&g' ;;
10579 esac
10580 _ACEOF
10582 # Neutralize VPATH when `$srcdir' = `.'.
10583 # Shell code in configure.ac might set extrasub.
10584 # FIXME: do we really want to maintain this feature?
10585 cat >>$CONFIG_STATUS <<_ACEOF
10586 sed "$ac_vpsub
10587 $extrasub
10588 _ACEOF
10589 cat >>$CONFIG_STATUS <<\_ACEOF
10591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10592 s&@configure_input@&$configure_input&;t t
10593 s&@top_builddir@&$ac_top_builddir_sub&;t t
10594 s&@srcdir@&$ac_srcdir&;t t
10595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10596 s&@top_srcdir@&$ac_top_srcdir&;t t
10597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10598 s&@builddir@&$ac_builddir&;t t
10599 s&@abs_builddir@&$ac_abs_builddir&;t t
10600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10601 s&@INSTALL@&$ac_INSTALL&;t t
10602 $ac_datarootdir_hack
10603 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10608 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10609 which seems to be undefined. Please make sure it is defined." >&5
10610 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10611 which seems to be undefined. Please make sure it is defined." >&2;}
10613 rm -f "$tmp/stdin"
10614 case $ac_file in
10615 -) cat "$tmp/out"; rm -f "$tmp/out";;
10616 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10617 esac
10621 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10622 echo "$as_me: executing $ac_file commands" >&6;}
10624 esac
10627 case $ac_file$ac_mode in
10628 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10629 # Strip MF so we end up with the name of the file.
10630 mf=`echo "$mf" | sed -e 's/:.*$//'`
10631 # Check whether this is an Automake generated Makefile or not.
10632 # We used to match only the files named `Makefile.in', but
10633 # some people rename them; so instead we look at the file content.
10634 # Grep'ing the first line is not enough: some people post-process
10635 # each Makefile.in and add a new line on top of each file to say so.
10636 # So let's grep whole file.
10637 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10638 dirpart=`$as_dirname -- "$mf" ||
10639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10640 X"$mf" : 'X\(//\)[^/]' \| \
10641 X"$mf" : 'X\(//\)$' \| \
10642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10643 echo X"$mf" |
10644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10645 s//\1/
10648 /^X\(\/\/\)[^/].*/{
10649 s//\1/
10652 /^X\(\/\/\)$/{
10653 s//\1/
10656 /^X\(\/\).*/{
10657 s//\1/
10660 s/.*/./; q'`
10661 else
10662 continue
10664 # Extract the definition of DEPDIR, am__include, and am__quote
10665 # from the Makefile without running `make'.
10666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10667 test -z "$DEPDIR" && continue
10668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10669 test -z "am__include" && continue
10670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10671 # When using ansi2knr, U may be empty or an underscore; expand it
10672 U=`sed -n 's/^U = //p' < "$mf"`
10673 # Find all dependency output files, they are included files with
10674 # $(DEPDIR) in their names. We invoke sed twice because it is the
10675 # simplest approach to changing $(DEPDIR) to its actual value in the
10676 # expansion.
10677 for file in `sed -n "
10678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10680 # Make sure the directory exists.
10681 test -f "$dirpart/$file" && continue
10682 fdir=`$as_dirname -- "$file" ||
10683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10684 X"$file" : 'X\(//\)[^/]' \| \
10685 X"$file" : 'X\(//\)$' \| \
10686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10687 echo X"$file" |
10688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10689 s//\1/
10692 /^X\(\/\/\)[^/].*/{
10693 s//\1/
10696 /^X\(\/\/\)$/{
10697 s//\1/
10700 /^X\(\/\).*/{
10701 s//\1/
10704 s/.*/./; q'`
10705 { as_dir=$dirpart/$fdir
10706 case $as_dir in #(
10707 -*) as_dir=./$as_dir;;
10708 esac
10709 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10710 as_dirs=
10711 while :; do
10712 case $as_dir in #(
10713 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10714 *) as_qdir=$as_dir;;
10715 esac
10716 as_dirs="'$as_qdir' $as_dirs"
10717 as_dir=`$as_dirname -- "$as_dir" ||
10718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10719 X"$as_dir" : 'X\(//\)[^/]' \| \
10720 X"$as_dir" : 'X\(//\)$' \| \
10721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10722 echo X"$as_dir" |
10723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10724 s//\1/
10727 /^X\(\/\/\)[^/].*/{
10728 s//\1/
10731 /^X\(\/\/\)$/{
10732 s//\1/
10735 /^X\(\/\).*/{
10736 s//\1/
10739 s/.*/./; q'`
10740 test -d "$as_dir" && break
10741 done
10742 test -z "$as_dirs" || eval "mkdir $as_dirs"
10743 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10745 { (exit 1); exit 1; }; }; }
10746 # echo "creating $dirpart/$file"
10747 echo '# dummy' > "$dirpart/$file"
10748 done
10749 done
10751 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
10752 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10753 esac ;;
10754 "intltool":C)
10756 for file in intltool-extract intltool-merge intltool-update; do
10757 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
10758 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
10759 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
10760 < ${ac_aux_dir}/${file}.in > ${file}.out
10761 if cmp -s ${file} ${file}.out 2>/dev/null; then
10762 rm -f ${file}.out
10763 else
10764 mv -f ${file}.out ${file}
10766 chmod ugo+x ${file}
10767 chmod u+w ${file}
10768 done
10771 "po/stamp-it":C)
10772 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
10773 >"po/stamp-it.tmp"
10774 sed '/^#/d
10775 s/^[[].*] *//
10776 /^[ ]*$/d
10777 '"s|^| $ac_top_srcdir/|" \
10778 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
10780 if test ! -f "po/Makefile"; then
10781 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
10782 echo "$as_me: error: po/Makefile is not ready." >&2;}
10783 { (exit 1); exit 1; }; }
10785 mv "po/Makefile" "po/Makefile.tmp"
10786 sed '/^POTFILES =/,/[^\\]$/ {
10787 /^POTFILES =/!d
10788 r po/POTFILES
10790 ' "po/Makefile.tmp" >"po/Makefile"
10791 rm -f "po/Makefile.tmp"
10792 mv "po/stamp-it.tmp" "po/stamp-it"
10795 esac
10796 done # for ac_tag
10799 { (exit 0); exit 0; }
10800 _ACEOF
10801 chmod +x $CONFIG_STATUS
10802 ac_clean_files=$ac_clean_files_save
10805 # configure is writing to config.log, and then calls config.status.
10806 # config.status does its own redirection, appending to config.log.
10807 # Unfortunately, on DOS this fails, as config.log is still kept open
10808 # by configure, so config.status won't be able to write to it; its
10809 # output is simply discarded. So we exec the FD to /dev/null,
10810 # effectively closing config.log, so it can be properly (re)opened and
10811 # appended to by config.status. When coming back to configure, we
10812 # need to make the FD available again.
10813 if test "$no_create" != yes; then
10814 ac_cs_success=:
10815 ac_config_status_args=
10816 test "$silent" = yes &&
10817 ac_config_status_args="$ac_config_status_args --quiet"
10818 exec 5>/dev/null
10819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10820 exec 5>>config.log
10821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10822 # would make configure fail if this is the last instruction.
10823 $ac_cs_success || { (exit 1); exit 1; }
10828 echo "===================================================================="
10829 echo "Configuration succesfully finished"
10830 if test $HAVE_GNOME_PRINT; then
10831 echo "with gnomeprint"
10832 else
10833 echo "without gnomeprint"
10836 if test $ENABLE_CAM; then
10837 echo "with (IEEE-1394) camera enabled"
10840 if test $ENABLE_TRIG; then
10841 echo "with (realtime) triggering enabled."
10843 if test x$CONTROL = xfalse ; then
10844 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
10845 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
10846 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers"
10847 echo ""
10850 echo "Type 'make' and 'make install' to build and install gpiv"
10851 echo "===================================================================="