2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for bazar 1.3.1.
5 # Report bugs to <julien.pilet@epfl.ch>.
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
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
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
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
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
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`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME
='bazar'
577 PACKAGE_VERSION
='1.3.1'
578 PACKAGE_STRING
='bazar 1.3.1'
579 PACKAGE_BUGREPORT
='julien.pilet@epfl.ch'
581 ac_unique_file
="starter/starter.h"
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
669 INSTALL_STRIP_PROGRAM
735 ac_precious_vars
='build_alias
753 # Initialize some variables set by options.
755 ac_init_version
=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name
=s
,x
,x
,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir
='${exec_prefix}/bin'
780 sbindir
='${exec_prefix}/sbin'
781 libexecdir
='${exec_prefix}/libexec'
782 datarootdir
='${prefix}/share'
783 datadir
='${datarootdir}'
784 sysconfdir
='${prefix}/etc'
785 sharedstatedir
='${prefix}/com'
786 localstatedir
='${prefix}/var'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
823 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
826 -build |
--build |
--buil |
--bui |
--bu)
827 ac_prev
=build_alias
;;
828 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
829 build_alias
=$ac_optarg ;;
831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
833 ac_prev
=cache_file
;;
834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
836 cache_file
=$ac_optarg ;;
839 cache_file
=config.cache
;;
841 -datadir |
--datadir |
--datadi |
--datad)
843 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
844 datadir
=$ac_optarg ;;
846 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
847 |
--dataroo |
--dataro |
--datar)
848 ac_prev
=datarootdir
;;
849 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
850 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
851 datarootdir
=$ac_optarg ;;
853 -disable-* |
--disable-*)
854 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_
$ac_feature=no
;;
862 -docdir |
--docdir |
--docdi |
--doc |
--do)
864 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
867 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
869 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
872 -enable-* |
--enable-*)
873 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_
$ac_feature=\
$ac_optarg ;;
881 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
882 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
883 |
--exec |
--exe |
--ex)
884 ac_prev
=exec_prefix
;;
885 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
886 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
887 |
--exec=* |
--exe=* |
--ex=*)
888 exec_prefix
=$ac_optarg ;;
890 -gas |
--gas |
--ga |
--g)
891 # Obsolete; use --with-gas.
894 -help |
--help |
--hel |
--he |
-h)
896 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
897 ac_init_help
=recursive
;;
898 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
899 ac_init_help
=short
;;
901 -host |
--host |
--hos |
--ho)
902 ac_prev
=host_alias
;;
903 -host=* |
--host=* |
--hos=* |
--ho=*)
904 host_alias
=$ac_optarg ;;
906 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
908 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
910 htmldir
=$ac_optarg ;;
912 -includedir |
--includedir |
--includedi |
--included |
--include \
913 |
--includ |
--inclu |
--incl |
--inc)
914 ac_prev
=includedir
;;
915 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
916 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
917 includedir
=$ac_optarg ;;
919 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
921 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
922 infodir
=$ac_optarg ;;
924 -libdir |
--libdir |
--libdi |
--libd)
926 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
929 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
930 |
--libexe |
--libex |
--libe)
931 ac_prev
=libexecdir
;;
932 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
933 |
--libexe=* |
--libex=* |
--libe=*)
934 libexecdir
=$ac_optarg ;;
936 -localedir |
--localedir |
--localedi |
--localed |
--locale)
938 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
939 localedir
=$ac_optarg ;;
941 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
942 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
943 ac_prev
=localstatedir
;;
944 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
945 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
946 localstatedir
=$ac_optarg ;;
948 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
950 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
954 # Obsolete; use --without-fp.
957 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
958 |
--no-cr |
--no-c |
-n)
961 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
962 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
965 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
966 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
967 |
--oldin |
--oldi |
--old |
--ol |
--o)
968 ac_prev
=oldincludedir
;;
969 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
970 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
971 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
972 oldincludedir
=$ac_optarg ;;
974 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
976 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
979 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
980 |
--program-pre |
--program-pr |
--program-p)
981 ac_prev
=program_prefix
;;
982 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
983 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
984 program_prefix
=$ac_optarg ;;
986 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
987 |
--program-suf |
--program-su |
--program-s)
988 ac_prev
=program_suffix
;;
989 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
990 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
991 program_suffix
=$ac_optarg ;;
993 -program-transform-name |
--program-transform-name \
994 |
--program-transform-nam |
--program-transform-na \
995 |
--program-transform-n |
--program-transform- \
996 |
--program-transform |
--program-transfor \
997 |
--program-transfo |
--program-transf \
998 |
--program-trans |
--program-tran \
999 |
--progr-tra |
--program-tr |
--program-t)
1000 ac_prev
=program_transform_name
;;
1001 -program-transform-name=* |
--program-transform-name=* \
1002 |
--program-transform-nam=* |
--program-transform-na=* \
1003 |
--program-transform-n=* |
--program-transform-=* \
1004 |
--program-transform=* |
--program-transfor=* \
1005 |
--program-transfo=* |
--program-transf=* \
1006 |
--program-trans=* |
--program-tran=* \
1007 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1008 program_transform_name
=$ac_optarg ;;
1010 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1012 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1013 pdfdir
=$ac_optarg ;;
1015 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1017 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1020 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1021 |
-silent |
--silent |
--silen |
--sile |
--sil)
1024 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1026 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1028 sbindir
=$ac_optarg ;;
1030 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1031 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1032 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1034 ac_prev
=sharedstatedir
;;
1035 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1036 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1037 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1039 sharedstatedir
=$ac_optarg ;;
1041 -site |
--site |
--sit)
1043 -site=* |
--site=* |
--sit=*)
1046 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1048 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1049 srcdir
=$ac_optarg ;;
1051 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1052 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1053 ac_prev
=sysconfdir
;;
1054 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1055 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1056 sysconfdir
=$ac_optarg ;;
1058 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1059 ac_prev
=target_alias
;;
1060 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1061 target_alias
=$ac_optarg ;;
1063 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1066 -version |
--version |
--versio |
--versi |
--vers |
-V)
1067 ac_init_version
=: ;;
1070 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=\
$ac_optarg ;;
1078 -without-* |
--without-*)
1079 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_
$ac_package=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1111 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val
=\$
$ac_var
1144 [\\/$
]* | ?
:[\\/]* ) continue;;
1145 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1156 target
=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x
; then
1160 if test "x$build_alias" = x
; then
1161 cross_compiling
=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1170 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1172 test "$silent" = yes && exec 6>/dev
/null
1175 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di
=`ls -di .` &&
1177 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted
=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir
=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted
=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1237 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 for ac_var
in $ac_precious_vars; do
1240 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1242 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1253 \`configure' configures bazar 1.3.1 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/bazar]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1316 --x-includes=DIR X include files are
in DIR
1317 --x-libraries=DIR X library files are
in DIR
1320 --build=BUILD configure
for building on BUILD
[guessed
]
1321 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive
) echo "Configuration of bazar 1.3.1:";;
1332 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1333 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1334 --disable-dependency-tracking speeds up one-time build
1335 --enable-dependency-tracking do not reject slow dependency extractors
1338 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1339 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1340 --with-x use the X Window System
1341 --with-apple-opengl-framework
1342 use Apple OpenGL framework
(Mac OS X only
)
1344 Some influential environment variables
:
1345 CXX C
++ compiler
command
1346 CXXFLAGS C
++ compiler flags
1347 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1348 nonstandard directory
<lib dir
>
1349 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1350 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1351 you have headers
in a nonstandard directory
<include dir
>
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1356 PKG_CONFIG path to pkg-config utility
1358 C compiler flags
for OPENCV
, overriding pkg-config
1359 OPENCV_LIBS linker flags
for OPENCV
, overriding pkg-config
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <julien.pilet@epfl.ch>.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1425 bazar configure 1.3.1
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by bazar $as_me 1.3.1, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 # Check that the precious variables saved in the cache have kept the same
1714 ac_cache_corrupted=false
1715 for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1723 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1734 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1735 echo "$as_me: former value
: $ac_old_val" >&2;}
1736 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1737 echo "$as_me: current value
: $ac_new_val" >&2;}
1738 ac_cache_corrupted=:
1741 # Pass precious variables to config.status.
1742 if test "$ac_new_set" = set; then
1744 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1745 *) ac_arg=$ac_var=$ac_new_val ;;
1747 case " $ac_configure_args " in
1748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1749 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 if $ac_cache_corrupted; then
1754 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1755 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1756 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1757 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1758 { (exit 1); exit 1; }; }
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 am__api_version='1.10'
1795 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1796 if test -f "$ac_dir/install-sh"; then
1798 ac_install_sh="$ac_aux_dir/install-sh -c"
1800 elif test -f "$ac_dir/install.sh"; then
1802 ac_install_sh="$ac_aux_dir/install.sh -c"
1804 elif test -f "$ac_dir/shtool"; then
1806 ac_install_sh="$ac_aux_dir/shtool install -c"
1810 if test -z "$ac_aux_dir"; then
1811 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1812 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1813 { (exit 1); exit 1; }; }
1816 # These three variables are undocumented and unsupported,
1817 # and are intended to be withdrawn in a future Autoconf release.
1818 # They can cause serious problems if a builder's source tree is in a directory
1819 # whose full name contains unusual characters.
1820 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1821 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1822 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1825 # Find a good install program. We prefer a C program (faster),
1826 # so one script is as good as another. But avoid the broken or
1827 # incompatible versions:
1828 # SysV /etc/install, /usr/sbin/install
1829 # SunOS /usr/etc/install
1830 # IRIX /sbin/install
1832 # AmigaOS /C/install, which installs bootblocks on floppy discs
1833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1836 # OS/2's system install, which has a completely different semantic
1837 # ./install, which can be erroneously created by make from ./install.sh.
1838 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1840 if test -z "$INSTALL"; then
1841 if test "${ac_cv_path_install+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 # Account for people who put trailing slashes in PATH elements.
1851 ./ | .// | /cC/* | \
1852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1856 # OSF1 and SCO ODT 3.0 have their own names for install.
1857 # Don't use installbsd from OSF since it installs stuff as root
1859 for ac_prog in ginstall scoinst install; do
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1862 if test $ac_prog = install &&
1863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1864 # AIX install. It has an incompatible calling convention.
1866 elif test $ac_prog = install &&
1867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1868 # program-specific install script used by HP pwplus--don't use.
1871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1884 if test "${ac_cv_path_install+set}" = set; then
1885 INSTALL=$ac_cv_path_install
1887 # As a last resort, use the slow shell script. Don't cache a
1888 # value for INSTALL within a source directory, because that will
1889 # break other packages using the cache if that directory is
1890 # removed, or if the value is a relative name.
1891 INSTALL=$ac_install_sh
1894 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1895 echo "${ECHO_T}$INSTALL" >&6; }
1897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1898 # It thinks the first close brace ends the variable substitution.
1899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1905 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1906 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1909 echo timestamp > conftest.file
1910 # Do `set' in a subshell so we don't clobber the current shell
's
1911 # arguments. Must try -L first in case configure is actually a
1912 # symlink; some systems play weird games with the mod time of symlinks
1913 # (eg FreeBSD returns the mod time of the symlink's containing
1916 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1917 if test "$*" = "X"; then
1919 set X
`ls -t $srcdir/configure conftest.file`
1922 if test "$*" != "X $srcdir/configure conftest.file" \
1923 && test "$*" != "X conftest.file $srcdir/configure"; then
1925 # If neither matched, then we have a broken ls. This can happen
1926 # if, for instance, CONFIG_SHELL is bash and it inherits a
1927 # broken ls alias from the environment. This has actually
1928 # happened. Such a system could not be considered "sane".
1929 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1930 alias in your environment" >&5
1931 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1932 alias in your environment" >&2;}
1933 { (exit 1); exit 1; }; }
1936 test "$2" = conftest.
file
1942 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1943 Check your system clock" >&5
1944 echo "$as_me: error: newly created file is older than distributed files!
1945 Check your system clock" >&2;}
1946 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6; }
1950 test "$program_prefix" != NONE
&&
1951 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1952 # Use a double $ so make ignores it.
1953 test "$program_suffix" != NONE
&&
1954 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1955 # Double any \ or $. echo might interpret backslashes.
1956 # By default was `s,x,x', remove it if useless.
1957 cat <<\_ACEOF
>conftest.
sed
1958 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1960 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1963 # expand $ac_aux_dir to an absolute path
1964 am_aux_dir
=`cd $ac_aux_dir && pwd`
1966 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1967 # Use eval to expand $SHELL
1968 if eval "$MISSING --run true"; then
1969 am_missing_run
="$MISSING --run "
1972 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1973 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1976 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1977 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1978 if test -z "$MKDIR_P"; then
1979 if test "${ac_cv_path_mkdir+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1983 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
1986 test -z "$as_dir" && as_dir
=.
1987 for ac_prog
in mkdir gmkdir
; do
1988 for ac_exec_ext
in '' $ac_executable_extensions; do
1989 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
1990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1991 'mkdir (GNU coreutils) '* | \
1992 'mkdir (coreutils) '* | \
1993 'mkdir (fileutils) '4.1*)
1994 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2004 if test "${ac_cv_path_mkdir+set}" = set; then
2005 MKDIR_P
="$ac_cv_path_mkdir -p"
2007 # As a last resort, use the slow shell script. Don't cache a
2008 # value for MKDIR_P within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the value is a relative name.
2011 test -d .
/--version && rmdir .
/--version
2012 MKDIR_P
="$ac_install_sh -d"
2015 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2016 echo "${ECHO_T}$MKDIR_P" >&6; }
2020 [\\/$
]* | ?
:[\\/]*) ;;
2021 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2024 for ac_prog
in gawk mawk nawk
awk
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy
$ac_prog; ac_word
=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_AWK+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$AWK"; then
2034 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir
=.
2041 for ac_exec_ext
in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_AWK
="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 if test -n "$AWK"; then
2055 { echo "$as_me:$LINENO: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$AWK" && break
2066 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2068 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2069 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 cat >conftest.
make <<\_ACEOF
2075 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2080 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2082 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2086 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2091 { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093 SET_MAKE
="MAKE=${MAKE-make}"
2096 rm -rf .tst
2>/dev
/null
2097 mkdir .tst
2>/dev
/null
2098 if test -d .tst
; then
2103 rmdir .tst
2>/dev
/null
2105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2107 # is not polluted with repeated "-I."
2108 am__isrc
=' -I$(srcdir)'
2109 # test to see if srcdir already configured
2110 if test -f $srcdir/config.status
; then
2111 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2112 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2113 { (exit 1); exit 1; }; }
2117 # test whether we have cygpath
2118 if test -z "$CYGPATH_W"; then
2119 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2120 CYGPATH_W
='cygpath -w'
2127 # Define the identity of the package.
2132 cat >>confdefs.h
<<_ACEOF
2133 #define PACKAGE "$PACKAGE"
2137 cat >>confdefs.h
<<_ACEOF
2138 #define VERSION "$VERSION"
2141 # Some tools Automake needs.
2143 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2146 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2149 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2152 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2155 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2157 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2159 # Installed binaries are usually stripped using `strip' when the user
2160 # run `make install-strip'. However `strip' might not be the right
2161 # tool to use in cross-compilation environments, therefore Automake
2162 # will honor the `STRIP' environment variable to overrule this program.
2163 if test "$cross_compiling" != no
; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_STRIP+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$STRIP"; then
2173 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir
=.
2180 for ac_exec_ext
in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 STRIP
=$ac_cv_prog_STRIP
2193 if test -n "$STRIP"; then
2194 { echo "$as_me:$LINENO: result: $STRIP" >&5
2195 echo "${ECHO_T}$STRIP" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2203 if test -z "$ac_cv_prog_STRIP"; then
2205 # Extract the first word of "strip", so it can be a program name with args.
2206 set dummy strip
; ac_word
=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$ac_ct_STRIP"; then
2213 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir
=.
2220 for ac_exec_ext
in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_ac_ct_STRIP
="strip"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2233 if test -n "$ac_ct_STRIP"; then
2234 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2235 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2241 if test "x$ac_ct_STRIP" = x
; then
2244 case $cross_compiling:$ac_tool_warned in
2246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 whose name does not start with the host triplet. If you think this
2251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 ac_tool_warned
=yes ;;
2257 STRIP
="$ac_cv_prog_STRIP"
2261 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2263 # We need awk for the "check" target. The system "awk" is bad on
2265 # Always define AMTAR for backward compatibility.
2267 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2269 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2278 ac_config_headers
="$ac_config_headers config.h"
2281 # Checks for programs.
2283 ac_cpp
='$CXXCPP $CPPFLAGS'
2284 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2287 if test -z "$CXX"; then
2288 if test -n "$CCC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_CXX+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$CXX"; then
2302 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir
=.
2309 for ac_exec_ext
in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 if test -n "$CXX"; then
2323 { echo "$as_me:$LINENO: result: $CXX" >&5
2324 echo "${ECHO_T}$CXX" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2331 test -n "$CXX" && break
2334 if test -z "$CXX"; then
2336 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy
$ac_prog; ac_word
=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$ac_ct_CXX"; then
2346 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir
=.
2353 for ac_exec_ext
in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2366 if test -n "$ac_ct_CXX"; then
2367 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2368 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2375 test -n "$ac_ct_CXX" && break
2378 if test "x$ac_ct_CXX" = x
; then
2381 case $cross_compiling:$ac_tool_warned in
2383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&5
2386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet. If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389 ac_tool_warned
=yes ;;
2397 # Provide some information about the compiler.
2398 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2399 ac_compiler
=`set X $ac_compile; echo $2`
2400 { (ac_try
="$ac_compiler --version >&5"
2402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compiler --version >&5") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2410 { (ac_try="$ac_compiler -v >&5"
2412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2413 *) ac_try_echo
=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_compiler -v >&5") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (ac_try
="$ac_compiler -V >&5"
2422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compiler -V >&5") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2451 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2452 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2453 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2455 # List of possible output files, starting from the most likely.
2456 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2457 # only as a last resort. b.out is created by i960 compilers.
2458 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2460 # The IRIX 6 linker writes into existing files which may not be
2461 # executable, retaining their permissions. Remove them first so a
2462 # subsequent execution test works.
2464 for ac_file in $ac_files
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2468 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2473 if { (ac_try="$ac_link_default"
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_link_default") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; then
2483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2485 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2486 # so that the user can short-circuit this test for compilers unknown to
2488 for ac_file
in $ac_files ''
2490 test -f "$ac_file" ||
continue
2492 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2495 # We found the default executable, but exeext='' is most
2499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2501 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503 # We set ac_cv_exeext here because the later test for it is not
2504 # safe: cross compilers may not add the suffix if given an `-o'
2505 # argument, so we may need to know it at that point already.
2506 # Even if this section looks crufty: it has the advantage of
2513 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2519 { echo "$as_me:$LINENO: result: $ac_file" >&5
2520 echo "${ECHO_T}$ac_file" >&6; }
2521 if test -z "$ac_file"; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.
$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: C++ compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529 { (exit 77); exit 77; }; }
2532 ac_exeext
=$ac_cv_exeext
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2537 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541 if { ac_try
='./$ac_file'
2542 { (case "(($ac_try" in
2543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_try") 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2553 if test "$cross_compiling" = maybe; then
2556 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details.
" >&5
2559 echo "$as_me: error
: cannot run C
++ compiled programs.
2560 If you meant to cross compile
, use \
`--host'.
2561 See \`config.log
' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2566 { echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6; }
2569 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2570 ac_clean_files=$ac_clean_files_save
2571 # Check that the compiler produces executables we can run. If not, either
2572 # the compiler is broken, or we cross compile.
2573 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2574 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2575 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2576 echo "${ECHO_T}$cross_compiling" >&6; }
2578 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2579 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2580 if { (ac_try="$ac_link"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_link") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2591 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2594 for ac_file
in conftest.exe conftest conftest.
*; do
2595 test -f "$ac_file" ||
continue
2597 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2598 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2611 rm -f conftest
$ac_cv_exeext
2612 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2613 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2615 rm -f conftest.
$ac_ext
2616 EXEEXT
=$ac_cv_exeext
2618 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2619 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2620 if test "${ac_cv_objext+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.
$ac_ext <<_ACEOF
2626 cat confdefs.h
>>conftest.
$ac_ext
2627 cat >>conftest.
$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2638 rm -f conftest.o conftest.obj
2639 if { (ac_try
="$ac_compile"
2641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 for ac_file in conftest.o conftest.obj conftest.*; do
2650 test -f "$ac_file" || continue;
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log
' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details.
" >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6; }
2672 OBJEXT=$ac_cv_objext
2674 { echo "$as_me:$LINENO: checking whether we are using the GNU C
++ compiler
" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C
++ compiler...
$ECHO_C" >&6; }
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached
) $ECHO_C" >&6
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_cxx_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was
:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2726 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2728 GXX=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CXXFLAGS=${CXXFLAGS+set}
2730 ac_save_CXXFLAGS=$CXXFLAGS
2731 { echo "$as_me:$LINENO: checking whether
$CXX accepts
-g" >&5
2732 echo $ECHO_N "checking whether
$CXX accepts
-g...
$ECHO_C" >&6; }
2733 if test "${ac_cv_prog_cxx_g+set}" = set; then
2734 echo $ECHO_N "(cached
) $ECHO_C" >&6
2736 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2737 ac_cxx_werror_flag=yes
2739 CXXFLAGS="-g -O3 -mtune=native
-msse3"
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compile") 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2768 (exit $ac_status); } && {
2769 test -z "$ac_cxx_werror_flag" ||
2770 test ! -s conftest.err
2771 } && test -s conftest.$ac_objext; then
2772 ac_cv_prog_cxx_g=yes
2774 echo "$as_me: failed program was
:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2806 (exit $ac_status); } && {
2807 test -z "$ac_cxx_werror_flag" ||
2808 test ! -s conftest.err
2809 } && test -s conftest.$ac_objext; then
2812 echo "$as_me: failed program was
:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2816 CXXFLAGS="-g -O3 -mtune=native
-msse3"
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compile") 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2845 (exit $ac_status); } && {
2846 test -z "$ac_cxx_werror_flag" ||
2847 test ! -s conftest.err
2848 } && test -s conftest.$ac_objext; then
2849 ac_cv_prog_cxx_g=yes
2851 echo "$as_me: failed program was
:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2866 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cxx_g" >&5
2867 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2868 if test "$ac_test_CXXFLAGS" = set; then
2869 CXXFLAGS=$ac_save_CXXFLAGS
2870 elif test $ac_cv_prog_cxx_g = yes; then
2871 if test "$GXX" = yes; then
2872 CXXFLAGS="-g -O3 -mtune=native
-msse3"
2877 if test "$GXX" = yes; then
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 DEPDIR="${am__leading_dot}deps
"
2890 ac_config_commands="$ac_config_commands depfiles
"
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2899 # If we don't find an include directive, just comment out the code.
2900 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
2901 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # We grep out `Entering directory' and `Leaving directory'
2908 # messages which can occur if `w' ends up in MAKEFLAGS.
2909 # In particular we don't look at `^make:' because GNU make might
2910 # be invoked under some other name (usually "gmake"), in which
2911 # case it prints its new name instead of `make'.
2912 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2917 # Now try BSD make style include.
2918 if test "$am__include" = "#"; then
2919 echo '.include "confinc"' > confmf
2920 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2921 am__include
=.include
2928 { echo "$as_me:$LINENO: result: $_am_result" >&5
2929 echo "${ECHO_T}$_am_result" >&6; }
2930 rm -f confinc confmf
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then
2934 enableval
=$enable_dependency_tracking;
2937 if test "x$enable_dependency_tracking" != xno
; then
2938 am_depcomp
="$ac_aux_dir/depcomp"
2941 if test "x$enable_dependency_tracking" != xno; then
2951 depcc
="$CXX" am_compiler_list
=
2953 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2954 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2955 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959 # We make a subdir and do the tests there. Otherwise we can end up
2960 # making bogus files that we don't know about and never remove. For
2961 # instance it was reported that on HP-UX the gcc test will end up
2962 # making a dummy file named `D' -- because `-MD' means `put the output
2965 # Copy depcomp to subdir because otherwise we won't find it if we're
2966 # using a relative directory.
2967 cp "$am_depcomp" conftest.dir
2969 # We will build objects and dependencies in a subdirectory because
2970 # it helps to detect inapplicable dependency modes. For instance
2971 # both Tru64's cc and ICC support -MD to output dependencies as a
2972 # side effect of compilation, but ICC will put the dependencies in
2973 # the current directory while Tru64 will put them in the object
2977 am_cv_CXX_dependencies_compiler_type
=none
2978 if test "$am_compiler_list" = ""; then
2979 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981 for depmode
in $am_compiler_list; do
2982 # Setup a source with many dependencies, because some compilers
2983 # like to wrap large dependency lists on column 80 (with \), and
2984 # we should not choose a depcomp mode which is confused by this.
2986 # We need to recreate these files for each test, as the compiler may
2987 # overwrite some of them when testing with obscure command lines.
2988 # This happens at least with the AIX C compiler.
2990 for i
in 1 2 3 4 5 6; do
2991 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2993 # Solaris 8's {/usr,}/bin/sh.
2994 touch sub
/conftst
$i.h
2996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3000 # after this tag, mechanisms are not by side-effect, so they'll
3001 # only be used when explicitly requested
3002 if test "x$enable_dependency_tracking" = xyes
; then
3010 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3011 # mode. It turns out that the SunPro C++ compiler does not properly
3012 # handle `-M -o', and we need to detect this.
3013 if depmode
=$depmode \
3014 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3015 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3016 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3017 >/dev
/null
2>conftest.err
&&
3018 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3019 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3020 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3021 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3022 # icc doesn't choke on unknown options, it will just issue warnings
3023 # or remarks (even with -Werror). So we grep stderr for any message
3024 # that says an option was ignored or not supported.
3025 # When given -MP, icc 7.0 and 7.1 complain thusly:
3026 # icc: Command line warning: ignoring option '-M'; no argument required
3027 # The diagnosis changed in icc 8.0:
3028 # icc: Command line remark: option '-MP' not supported
3029 if (grep 'ignoring option' conftest.err ||
3030 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3031 am_cv_CXX_dependencies_compiler_type
=$depmode
3040 am_cv_CXX_dependencies_compiler_type
=none
3044 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3045 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3046 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3049 test "x$enable_dependency_tracking" != xno \
3050 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3051 am__fastdepCXX_TRUE
=
3052 am__fastdepCXX_FALSE
='#'
3054 am__fastdepCXX_TRUE
='#'
3055 am__fastdepCXX_FALSE
=
3060 ac_cpp
='$CPP $CPPFLAGS'
3061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC
="$CC" # Let the user override the test.
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { echo "$as_me:$LINENO: result: $CC" >&5
3095 echo "${ECHO_T}$CC" >&6; }
3097 { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3103 if test -z "$ac_cv_prog_CC"; then
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc
; ac_word
=$2
3107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir
=.
3120 for ac_exec_ext
in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC
="gcc"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3135 echo "${ECHO_T}$ac_ct_CC" >&6; }
3137 { echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6; }
3141 if test "x$ac_ct_CC" = x
; then
3144 case $cross_compiling:$ac_tool_warned in
3146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet. If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&5
3149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3152 ac_tool_warned
=yes ;;
3160 if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3163 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6; }
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3201 if test -z "$CC"; then
3202 # Extract the first word of "cc", so it can be a program name with args.
3203 set dummy cc
; ac_word
=$2
3204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC
="$CC" # Let the user override the test.
3213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir
=.
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3221 ac_prog_rejected
=yes
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 if test $ac_prog_rejected = yes; then
3233 # We found a bogon in the path, so make sure we never use it.
3234 set dummy
$ac_cv_prog_CC
3236 if test $# != 0; then
3237 # We chose a different compiler from the bogus one.
3238 # However, it has the same basename, so the bogon will be chosen
3239 # first if we set CC to just the basename; use the full file name.
3241 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3247 if test -n "$CC"; then
3248 { echo "$as_me:$LINENO: result: $CC" >&5
3249 echo "${ECHO_T}$CC" >&6; }
3251 { echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6; }
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 for ac_prog
in cl.exe
3261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC
="$CC" # Let the user override the test.
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CC"; then
3290 { echo "$as_me:$LINENO: result: $CC" >&5
3291 echo "${ECHO_T}$CC" >&6; }
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3298 test -n "$CC" && break
3301 if test -z "$CC"; then
3303 for ac_prog
in cl.exe
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy
$ac_prog; ac_word
=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if test -n "$ac_ct_CC"; then
3313 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir
=.
3320 for ac_exec_ext
in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_ac_ct_CC
="$ac_prog"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3333 if test -n "$ac_ct_CC"; then
3334 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3335 echo "${ECHO_T}$ac_ct_CC" >&6; }
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3342 test -n "$ac_ct_CC" && break
3345 if test "x$ac_ct_CC" = x
; then
3348 case $cross_compiling:$ac_tool_warned in
3350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3351 whose name does not start with the host triplet. If you think this
3352 configuration is useful to you, please write to autoconf@gnu.org." >&5
3353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet. If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3356 ac_tool_warned
=yes ;;
3365 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: no acceptable C compiler found in \$PATH
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3371 # Provide some information about the compiler.
3372 echo "$as_me:$LINENO: checking for C compiler version" >&5
3373 ac_compiler
=`set X $ac_compile; echo $2`
3374 { (ac_try
="$ac_compiler --version >&5"
3376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compiler --version >&5") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384 { (ac_try="$ac_compiler -v >&5"
3386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3387 *) ac_try_echo
=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compiler -v >&5") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394 { (ac_try
="$ac_compiler -V >&5"
3396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compiler -V >&5") 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3405 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3406 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3407 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3428 rm -f conftest.$ac_objext
3429 if { (ac_try="$ac_compile"
3431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3432 *) ac_try_echo
=$ac_try;;
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_compile") 2>conftest.er1
3437 grep -v '^ *+' conftest.er1
>conftest.err
3439 cat conftest.err
>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } && {
3442 test -z "$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 } && test -s conftest.
$ac_objext; then
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.
$ac_ext >&5
3453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3454 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3457 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3458 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3459 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3460 ac_test_CFLAGS
=${CFLAGS+set}
3461 ac_save_CFLAGS
=$CFLAGS
3462 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3463 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_cc_g+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_save_c_werror_flag
=$ac_c_werror_flag
3468 ac_c_werror_flag
=yes
3470 CFLAGS
="-g -O3 -mtune=native -msse3"
3471 cat >conftest.
$ac_ext <<_ACEOF
3474 cat confdefs.h
>>conftest.
$ac_ext
3475 cat >>conftest.
$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.
$ac_objext
3487 if { (ac_try
="$ac_compile"
3489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compile") 2>conftest.er1
3495 grep -v '^ *+' conftest.er1 >conftest.err
3497 cat conftest.err >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && {
3500 test -z "$ac_c_werror_flag" ||
3501 test ! -s conftest.err
3502 } && test -s conftest.$ac_objext; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3528 *) ac_try_echo
=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1
>conftest.err
3535 cat conftest.err
>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.
$ac_objext; then
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.
$ac_ext >&5
3546 ac_c_werror_flag
=$ac_save_c_werror_flag
3547 CFLAGS
="-g -O3 -mtune=native -msse3"
3548 cat >conftest.
$ac_ext <<_ACEOF
3551 cat confdefs.h
>>conftest.
$ac_ext
3552 cat >>conftest.
$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3563 rm -f conftest.
$ac_objext
3564 if { (ac_try
="$ac_compile"
3566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3597 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3598 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3599 if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601 elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O3 -mtune=native -msse3"
3608 if test "$GCC" = yes; then
3609 CFLAGS=" -O3 -mtune=native -msse3 "
3614 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3615 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_cc_c89+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_cv_prog_cc_c89=no
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 #include <sys/types.h>
3630 #include <sys/stat.h>
3631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632 struct buf { int x; };
3633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634 static char *e (p, i)
3640 static char *f (char * (*g) (char **, int), char **p, ...)
3645 s = g (p, va_arg (v,int));
3650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664 int test (int i, double x);
3665 struct s1 {int (*f) (int a);};
3666 struct s2 {int (*f) (double a);};
3667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 CC="$ac_save_CC $ac_arg"
3682 rm -f conftest.$ac_objext
3683 if { (ac_try="$ac_compile"
3685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3686 *) ac_try_echo
=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compile") 2>conftest.er1
3691 grep -v '^ *+' conftest.er1
>conftest.err
3693 cat conftest.err
>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } && {
3696 test -z "$ac_c_werror_flag" ||
3697 test ! -s conftest.err
3698 } && test -s conftest.
$ac_objext; then
3699 ac_cv_prog_cc_c89
=$ac_arg
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.
$ac_ext >&5
3707 rm -f core conftest.err conftest.
$ac_objext
3708 test "x$ac_cv_prog_cc_c89" != "xno" && break
3710 rm -f conftest.
$ac_ext
3715 case "x$ac_cv_prog_cc_c89" in
3717 { echo "$as_me:$LINENO: result: none needed" >&5
3718 echo "${ECHO_T}none needed" >&6; } ;;
3720 { echo "$as_me:$LINENO: result: unsupported" >&5
3721 echo "${ECHO_T}unsupported" >&6; } ;;
3723 CC
="$CC $ac_cv_prog_cc_c89"
3724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3725 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3730 ac_cpp
='$CPP $CPPFLAGS'
3731 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3735 depcc
="$CC" am_compiler_list
=
3737 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3738 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3739 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743 # We make a subdir and do the tests there. Otherwise we can end up
3744 # making bogus files that we don't know about and never remove. For
3745 # instance it was reported that on HP-UX the gcc test will end up
3746 # making a dummy file named `D' -- because `-MD' means `put the output
3749 # Copy depcomp to subdir because otherwise we won't find it if we're
3750 # using a relative directory.
3751 cp "$am_depcomp" conftest.dir
3753 # We will build objects and dependencies in a subdirectory because
3754 # it helps to detect inapplicable dependency modes. For instance
3755 # both Tru64's cc and ICC support -MD to output dependencies as a
3756 # side effect of compilation, but ICC will put the dependencies in
3757 # the current directory while Tru64 will put them in the object
3761 am_cv_CC_dependencies_compiler_type
=none
3762 if test "$am_compiler_list" = ""; then
3763 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765 for depmode
in $am_compiler_list; do
3766 # Setup a source with many dependencies, because some compilers
3767 # like to wrap large dependency lists on column 80 (with \), and
3768 # we should not choose a depcomp mode which is confused by this.
3770 # We need to recreate these files for each test, as the compiler may
3771 # overwrite some of them when testing with obscure command lines.
3772 # This happens at least with the AIX C compiler.
3774 for i
in 1 2 3 4 5 6; do
3775 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3776 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3777 # Solaris 8's {/usr,}/bin/sh.
3778 touch sub
/conftst
$i.h
3780 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3784 # after this tag, mechanisms are not by side-effect, so they'll
3785 # only be used when explicitly requested
3786 if test "x$enable_dependency_tracking" = xyes
; then
3794 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3795 # mode. It turns out that the SunPro C++ compiler does not properly
3796 # handle `-M -o', and we need to detect this.
3797 if depmode
=$depmode \
3798 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3799 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3800 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3801 >/dev
/null
2>conftest.err
&&
3802 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3803 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3804 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3805 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type
=$depmode
3824 am_cv_CC_dependencies_compiler_type
=none
3828 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3833 test "x$enable_dependency_tracking" != xno \
3834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3836 am__fastdepCC_FALSE
='#'
3838 am__fastdepCC_TRUE
='#'
3839 am__fastdepCC_FALSE
=
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3845 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3848 if test "${ac_cv_prog_RANLIB+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -n "$RANLIB"; then
3852 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir
=.
3859 for ac_exec_ext
in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 RANLIB
=$ac_cv_prog_RANLIB
3872 if test -n "$RANLIB"; then
3873 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3874 echo "${ECHO_T}$RANLIB" >&6; }
3876 { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3882 if test -z "$ac_cv_prog_RANLIB"; then
3883 ac_ct_RANLIB
=$RANLIB
3884 # Extract the first word of "ranlib", so it can be a program name with args.
3885 set dummy ranlib
; ac_word
=$2
3886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3888 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test -n "$ac_ct_RANLIB"; then
3892 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir
=.
3899 for ac_exec_ext
in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3912 if test -n "$ac_ct_RANLIB"; then
3913 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3914 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3916 { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3920 if test "x$ac_ct_RANLIB" = x
; then
3923 case $cross_compiling:$ac_tool_warned in
3925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3926 whose name does not start with the host triplet. If you think this
3927 configuration is useful to you, please write to autoconf@gnu.org." >&5
3928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3929 whose name does not start with the host triplet. If you think this
3930 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3931 ac_tool_warned
=yes ;;
3933 RANLIB
=$ac_ct_RANLIB
3936 RANLIB
="$ac_cv_prog_RANLIB"
3940 # Checks for libraries.
3943 ac_cpp
='$CPP $CPPFLAGS'
3944 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3947 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3948 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3953 if test -z "$CPP"; then
3954 if test "${ac_cv_prog_CPP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 # Double quotes because CPP needs to be expanded
3958 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 for ac_c_preproc_warn_flag
in '' yes
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat >conftest.
$ac_ext <<_ACEOF
3972 cat confdefs.h
>>conftest.
$ac_ext
3973 cat >>conftest.
$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3976 # include <limits.h>
3978 # include <assert.h>
3982 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null && {
3995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3996 test ! -s conftest.err
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 # Broken: fails on valid input.
4007 rm -f conftest.err conftest.$ac_ext
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 #include <ac_nonexistent.h>
4019 if { (ac_try="$ac_cpp conftest.$ac_ext"
4021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4022 *) ac_try_echo
=$ac_try;;
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1
>conftest.err
4029 cat conftest.err
>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev
/null
&& {
4032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4035 # Broken: success on invalid input.
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.
$ac_ext >&5
4041 # Passes both tests.
4046 rm -f conftest.err conftest.
$ac_ext
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.err conftest.
$ac_ext
4051 if $ac_preproc_ok; then
4063 { echo "$as_me:$LINENO: result: $CPP" >&5
4064 echo "${ECHO_T}$CPP" >&6; }
4066 for ac_c_preproc_warn_flag
in '' yes
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat >conftest.
$ac_ext <<_ACEOF
4077 cat confdefs.h
>>conftest.
$ac_ext
4078 cat >>conftest.
$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4081 # include <limits.h>
4083 # include <assert.h>
4087 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if { (ac_try="$ac_cpp conftest.$ac_ext"
4126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4127 *) ac_try_echo
=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1
>conftest.err
4134 cat conftest.err
>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } >/dev
/null
&& {
4137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4140 # Broken: success on invalid input.
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.
$ac_ext >&5
4146 # Passes both tests.
4151 rm -f conftest.err conftest.
$ac_ext
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.
$ac_ext
4156 if $ac_preproc_ok; then
4159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4160 See \`config.log' for more details." >&5
4161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4162 See \`config.log' for more details." >&2;}
4163 { (exit 1); exit 1; }; }
4167 ac_cpp
='$CPP $CPPFLAGS'
4168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4173 { echo "$as_me:$LINENO: checking for X" >&5
4174 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4177 # Check whether --with-x was given.
4178 if test "${with_x+set}" = set; then
4182 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4183 if test "x$with_x" = xno
; then
4184 # The user explicitly disabled X.
4187 case $x_includes,$x_libraries in #(
4188 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4189 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4190 { (exit 1); exit 1; }; };; #(
4191 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 # One or both of the vars are not set, and there is no cached value.
4195 ac_x_includes
=no ac_x_libraries
=no
4196 rm -f -r conftest.dir
4197 if mkdir conftest.dir
; then
4199 cat >Imakefile
<<'_ACEOF'
4201 @echo incroot='${INCROOT}'
4203 @echo usrlibdir='${USRLIBDIR}'
4205 @echo libdir='${LIBDIR}'
4207 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4209 for ac_var
in incroot usrlibdir libdir
; do
4210 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4212 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4213 for ac_extension
in a so sl
; do
4214 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4215 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4216 ac_im_usrlibdir
=$ac_im_libdir; break
4219 # Screen out bogus values from the imake configuration. They are
4220 # bogus both because they are the default anyway, and because
4221 # using them would break gcc on systems where it needs fixed includes.
4222 case $ac_im_incroot in
4223 /usr
/include
) ac_x_includes
= ;;
4224 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
4226 case $ac_im_usrlibdir in
4228 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
4232 rm -f -r conftest.dir
4235 # Standard set of common directories for X headers.
4236 # Check X11 before X11Rn because it is often a symlink to the current release.
4248 /usr/local/X11/include
4249 /usr/local/X11R6/include
4250 /usr/local/X11R5/include
4251 /usr/local/X11R4/include
4253 /usr/local/include/X11
4254 /usr/local/include/X11R6
4255 /usr/local/include/X11R5
4256 /usr/local/include/X11R4
4260 /usr/XFree86/include/X11
4264 /usr/unsupported/include
4266 /usr/local/x11r5/include
4267 /usr/lpp/Xamples/include
4269 /usr/openwin/include
4270 /usr/openwin/share/include'
4272 if test "$ac_x_includes" = no
; then
4273 # Guess where to find include files, by looking for Xlib.h.
4274 # First, try using that file with no special directory specified.
4275 cat >conftest.
$ac_ext <<_ACEOF
4278 cat confdefs.h
>>conftest.
$ac_ext
4279 cat >>conftest.
$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <X11/Xlib.h>
4283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } >/dev/null && {
4296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4299 # We can compile using X headers with no special include directory.
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 for ac_dir in $ac_x_header_dirs; do
4306 if test -r "$ac_dir/X11/Xlib.h"; then
4307 ac_x_includes=$ac_dir
4313 rm -f conftest.err conftest.$ac_ext
4314 fi # $ac_x_includes = no
4316 if test "$ac_x_libraries" = no; then
4317 # Check for the libraries.
4318 # See if we find them without any special options.
4319 # Don't add to $LIBS permanently.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #include <X11/Xlib.h>
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (ac_try="$ac_link"
4340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4341 *) ac_try_echo
=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_link") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1
>conftest.err
4348 cat conftest.err
>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest
$ac_exeext &&
4354 $as_test_x conftest
$ac_exeext; then
4356 # We can link X programs with no special library path.
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.
$ac_ext >&5
4363 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4365 # Don't even attempt the hair of trying to link an X program!
4366 for ac_extension
in a so sl
; do
4367 if test -r "$ac_dir/libX11.$ac_extension"; then
4368 ac_x_libraries
=$ac_dir
4375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4376 conftest
$ac_exeext conftest.
$ac_ext
4377 fi # $ac_x_libraries = no
4379 case $ac_x_includes,$ac_x_libraries in #(
4381 # Didn't find X, or a directory has "'" in its name.
4382 ac_cv_have_x
="have_x=no";; #(
4384 # Record where we found X for the cache.
4385 ac_cv_have_x
="have_x=yes\
4386 ac_x_includes='$ac_x_includes'\
4387 ac_x_libraries='$ac_x_libraries'"
4393 eval "$ac_cv_have_x"
4396 if test "$have_x" != yes; then
4397 { echo "$as_me:$LINENO: result: $have_x" >&5
4398 echo "${ECHO_T}$have_x" >&6; }
4401 # If each of the values was on the command line, it overrides each guess.
4402 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4403 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4404 # Update the cache value to reflect the command line values.
4405 ac_cv_have_x
="have_x=yes\
4406 ac_x_includes='$x_includes'\
4407 ac_x_libraries='$x_libraries'"
4408 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4412 # Make sure we can run config.sub.
4413 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4414 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4415 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4416 { (exit 1); exit 1; }; }
4418 { echo "$as_me:$LINENO: checking build system type" >&5
4419 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4420 if test "${ac_cv_build+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 ac_build_alias
=$build_alias
4424 test "x$ac_build_alias" = x
&&
4425 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4426 test "x$ac_build_alias" = x
&&
4427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4429 { (exit 1); exit 1; }; }
4430 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4431 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4433 { (exit 1); exit 1; }; }
4436 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4437 echo "${ECHO_T}$ac_cv_build" >&6; }
4438 case $ac_cv_build in
4440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4441 echo "$as_me: error: invalid value of canonical build" >&2;}
4442 { (exit 1); exit 1; }; };;
4445 ac_save_IFS
=$IFS; IFS
='-'
4451 # Remember, the first character of IFS is used to create $*,
4452 # except with old shells:
4455 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4458 { echo "$as_me:$LINENO: checking host system type" >&5
4459 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4460 if test "${ac_cv_host+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test "x$host_alias" = x
; then
4464 ac_cv_host
=$ac_cv_build
4466 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4467 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4468 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4469 { (exit 1); exit 1; }; }
4473 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4474 echo "${ECHO_T}$ac_cv_host" >&6; }
4477 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4478 echo "$as_me: error: invalid value of canonical host" >&2;}
4479 { (exit 1); exit 1; }; };;
4482 ac_save_IFS
=$IFS; IFS
='-'
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4492 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4499 ac_cpp
='$CPP $CPPFLAGS'
4500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4506 # We used to check for pthread.h first, but this fails if pthread.h
4507 # requires special compiler flags (e.g. on True64 or Sequent).
4508 # It gets checked for in the link test anyway.
4510 # First of all, check if the user has set any of the PTHREAD_LIBS,
4511 # etcetera environment variables, and if threads linking works using
4513 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
4514 save_CFLAGS
="$CFLAGS"
4515 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4517 LIBS
="$PTHREAD_LIBS $LIBS"
4518 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4519 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4533 char pthread_join ();
4537 return pthread_join ();
4542 rm -f conftest.
$ac_objext conftest
$ac_exeext
4543 if { (ac_try
="$ac_link"
4545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_link") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && {
4556 test -z "$ac_c_werror_flag" ||
4557 test ! -s conftest.err
4558 } && test -s conftest$ac_exeext &&
4559 $as_test_x conftest$ac_exeext; then
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4569 conftest$ac_exeext conftest.$ac_ext
4570 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4571 echo "${ECHO_T}$acx_pthread_ok" >&6; }
4572 if test x"$acx_pthread_ok" = xno; then
4577 CFLAGS="$save_CFLAGS"
4580 # We must check for the threads library under a number of different
4581 # names; the ordering is very important because some systems
4582 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4583 # libraries is broken (non-POSIX).
4585 # Create a list of thread flags to try. Items starting with a "-" are
4586 # C compiler flags, and other items are library names, except for "none"
4587 # which indicates that we try without any flags at all, and "pthread-config"
4588 # which is a program returning the flags for the Pth emulation library.
4590 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4592 # The ordering *is* (sometimes) important. Some notes on the
4593 # individual items follow:
4595 # pthreads: AIX (must check this before -lpthread)
4596 # none: in case threads are in libc; should be tried before -Kthread and
4597 # other compiler flags to prevent continual compiler warnings
4598 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4599 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4600 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4601 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4602 # -pthreads: Solaris/gcc
4603 # -mthreads: Mingw32/gcc, Lynx/gcc
4604 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4605 # doesn't hurt to check since this sometimes defines pthreads too;
4606 # also defines -D_REENTRANT)
4607 # ... -mt is also the pthreads flag for HP/aCC
4608 # pthread: Linux, etcetera
4609 # --thread-safe: KAI C++
4610 # pthread-config: use pthread-config program (for GNU Pth library)
4612 case "${host_cpu}-${host_os}" in
4615 # On Solaris (at least, for some versions), libc contains stubbed
4616 # (non-functional) versions of the pthreads routines, so link-based
4617 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4618 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4619 # a function called by this macro, so we could check for that, but
4620 # who knows whether they'll stub that too in a future libc.) So,
4621 # we'll just look for -pthreads and -lpthread first:
4623 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
4627 if test x"$acx_pthread_ok" = xno; then
4628 for flag in $acx_pthread_flags; do
4632 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4633 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
4637 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4638 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
4639 PTHREAD_CFLAGS="$flag"
4643 # Extract the first word of "pthread-config", so it can be a program name with args.
4644 set dummy pthread-config; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test -n "$acx_pthread_config"; then
4651 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_acx_pthread_config="yes"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4671 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4672 if test -n "$acx_pthread_config"; then
4673 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
4674 echo "${ECHO_T}$acx_pthread_config" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 if test x"$acx_pthread_config" = xno; then continue; fi
4682 PTHREAD_CFLAGS="`pthread-config
--cflags`"
4683 PTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
4687 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4688 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
4689 PTHREAD_LIBS="-l$flag"
4694 save_CFLAGS="$CFLAGS"
4695 LIBS="$PTHREAD_LIBS $LIBS"
4696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4698 # Check for various functions. We must include pthread.h,
4699 # since some functions may be macros. (On the Sequent, we
4700 # need a special flag -Kthread to make this header compile.)
4701 # We check for pthread_join because it is in -lpthread on IRIX
4702 # while pthread_create is in libc. We check for pthread_attr_init
4703 # due to DEC craziness with -lpthreads. We check for
4704 # pthread_cleanup_push because it is one of the few pthread
4705 # functions on Solaris that doesn't have a non-functional libc stub.
4706 # We try pthread_create on general principles.
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <pthread.h>
4717 pthread_t th; pthread_join(th, 0);
4718 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4719 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4724 rm -f conftest.$ac_objext conftest$ac_exeext
4725 if { (ac_try="$ac_link"
4727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4728 *) ac_try_echo
=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_link") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1
>conftest.err
4735 cat conftest.err
>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest
$ac_exeext &&
4741 $as_test_x conftest
$ac_exeext; then
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4751 conftest
$ac_exeext conftest.
$ac_ext
4754 CFLAGS
="$save_CFLAGS"
4756 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4757 echo "${ECHO_T}$acx_pthread_ok" >&6; }
4758 if test "x$acx_pthread_ok" = xyes
; then
4767 # Various other checks:
4768 if test "x$acx_pthread_ok" = xyes
; then
4770 LIBS
="$PTHREAD_LIBS $LIBS"
4771 save_CFLAGS
="$CFLAGS"
4772 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
4774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4775 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4776 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
4778 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
4779 cat >conftest.
$ac_ext <<_ACEOF
4782 cat confdefs.h
>>conftest.
$ac_ext
4783 cat >>conftest.
$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <pthread.h>
4789 int attr=$attr; return attr;
4794 rm -f conftest.
$ac_objext conftest
$ac_exeext
4795 if { (ac_try
="$ac_link"
4797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_link") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest$ac_exeext &&
4811 $as_test_x conftest$ac_exeext; then
4812 attr_name=$attr; break
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4821 conftest$ac_exeext conftest.$ac_ext
4823 { echo "$as_me:$LINENO: result: $attr_name" >&5
4824 echo "${ECHO_T}$attr_name" >&6; }
4825 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define PTHREAD_CREATE_JOINABLE $attr_name
4833 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4834 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
4836 case "${host_cpu}-${host_os}" in
4837 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4838 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4840 { echo "$as_me:$LINENO: result: ${flag}" >&5
4841 echo "${ECHO_T}${flag}" >&6; }
4842 if test "x$flag" != xno; then
4843 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4847 CFLAGS="$save_CFLAGS"
4849 # More AIX lossage: must compile with xlc_r or cc_r
4850 if test x"$GCC" != xyes; then
4851 for ac_prog in xlc_r cc_r
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$PTHREAD_CC"; then
4861 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_PTHREAD_CC="$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4881 if test -n "$PTHREAD_CC"; then
4882 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
4883 echo "${ECHO_T}$PTHREAD_CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 test -n "$PTHREAD_CC" && break
4892 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
4905 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4906 if test x"$acx_pthread_ok" = xyes; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_PTHREAD 1
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4925 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_GREP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 # Extract the first word of "grep ggrep" to use in msg output
4930 if test -z "$GREP"; then
4931 set dummy grep ggrep; ac_prog_name=$2
4932 if test "${ac_cv_path_GREP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_path_GREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in grep ggrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4946 # Check for GNU ac_path_GREP and select it if it is found.
4947 # Check for GNU $ac_path_GREP
4948 case `"$ac_path_GREP" --version 2>&1` in
4950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 echo 'GREP' >> "conftest.nl"
4960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 ac_count=`expr $ac_count + 1`
4963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_GREP="$ac_path_GREP"
4966 ac_path_GREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975 $ac_path_GREP_found && break 3
4985 GREP="$ac_cv_path_GREP"
4986 if test -z "$GREP"; then
4987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4988 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4989 { (exit 1); exit 1; }; }
4993 ac_cv_path_GREP=$GREP
4998 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4999 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5000 GREP="$ac_cv_path_GREP"
5003 { echo "$as_me:$LINENO: checking for egrep" >&5
5004 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5005 if test "${ac_cv_path_EGREP+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5009 then ac_cv_path_EGREP="$GREP -E"
5011 # Extract the first word of "egrep" to use in msg output
5012 if test -z "$EGREP"; then
5013 set dummy egrep; ac_prog_name=$2
5014 if test "${ac_cv_path_EGREP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 ac_path_EGREP_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in egrep; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5028 # Check for GNU ac_path_EGREP and select it if it is found.
5029 # Check for GNU $ac_path_EGREP
5030 case `"$ac_path_EGREP" --version 2>&1` in
5032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5035 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 echo 'EGREP' >> "conftest.nl"
5042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 ac_count=`expr $ac_count + 1`
5045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_EGREP="$ac_path_EGREP"
5048 ac_path_EGREP_max=$ac_count
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 $ac_path_EGREP_found && break 3
5067 EGREP="$ac_cv_path_EGREP"
5068 if test -z "$EGREP"; then
5069 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5070 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5071 { (exit 1); exit 1; }; }
5075 ac_cv_path_EGREP=$EGREP
5081 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5082 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5083 EGREP="$ac_cv_path_EGREP"
5086 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5088 if test "${ac_cv_header_stdc+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5110 rm -f conftest.$ac_objext
5111 if { (ac_try="$ac_compile"
5113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5114 *) ac_try_echo
=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_compile") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1
>conftest.err
5121 cat conftest.err
>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest.
$ac_objext; then
5127 ac_cv_header_stdc
=yes
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.
$ac_ext >&5
5132 ac_cv_header_stdc
=no
5135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5137 if test $ac_cv_header_stdc = yes; then
5138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5139 cat >conftest.
$ac_ext <<_ACEOF
5142 cat confdefs.h
>>conftest.
$ac_ext
5143 cat >>conftest.
$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149 $EGREP "memchr" >/dev
/null
2>&1; then
5152 ac_cv_header_stdc
=no
5158 if test $ac_cv_header_stdc = yes; then
5159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5160 cat >conftest.
$ac_ext <<_ACEOF
5163 cat confdefs.h
>>conftest.
$ac_ext
5164 cat >>conftest.
$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 $EGREP "free" >/dev
/null
2>&1; then
5173 ac_cv_header_stdc
=no
5179 if test $ac_cv_header_stdc = yes; then
5180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5181 if test "$cross_compiling" = yes; then
5184 cat >conftest.
$ac_ext <<_ACEOF
5187 cat confdefs.h
>>conftest.
$ac_ext
5188 cat >>conftest.
$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5192 #if ((' ' & 0x0FF) == 0x020)
5193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5196 # define ISLOWER(c) \
5197 (('a' <= (c) && (c) <= 'i') \
5198 || ('j' <= (c) && (c) <= 'r') \
5199 || ('s' <= (c) && (c) <= 'z'))
5200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5208 for (i = 0; i < 256; i++)
5209 if (XOR (islower (i), ISLOWER (i))
5210 || toupper (i) != TOUPPER (i))
5215 rm -f conftest
$ac_exeext
5216 if { (ac_try
="$ac_link"
5218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5226 { (case "(($ac_try" in
5227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5228 *) ac_try_echo
=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5237 echo "$as_me: program exited with status $ac_status" >&5
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.
$ac_ext >&5
5242 ac_cv_header_stdc
=no
5244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5251 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5252 if test $ac_cv_header_stdc = yes; then
5254 cat >>confdefs.h
<<\_ACEOF
5255 #define STDC_HEADERS 1
5260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5271 inttypes.h stdint.h unistd.h
5273 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5276 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 cat >conftest.
$ac_ext <<_ACEOF
5282 cat confdefs.h
>>conftest.
$ac_ext
5283 cat >>conftest.
$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 $ac_includes_default
5287 #include <$ac_header>
5289 rm -f conftest.
$ac_objext
5290 if { (ac_try
="$ac_compile"
5292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 eval "$as_ac_Header=yes"
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 eval "$as_ac_Header=no"
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5320 cat >>confdefs.h <<_ACEOF
5321 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5331 # There isn't a reliable way to know we should use the Apple OpenGL framework
5332 # without a configure option. A Mac OS X user may have installed an
5333 # alternative GL implementation (e.g., Mesa), which may or may not depend on X.
5336 # Check whether --with-apple-opengl-framework was given.
5337 if test "${with_apple_opengl_framework+set}" = set; then
5338 withval=$with_apple_opengl_framework;
5341 if test "X$with_apple_opengl_framework" = "Xyes"; then
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_APPLE_OPENGL_FRAMEWORK 1
5347 GL_LIBS="-framework OpenGL"
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
5357 echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; }
5358 if test "${ax_cv_c_compiler_ms+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5383 *) ac_try_echo
=$ac_try;;
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compile") 2>conftest.er1
5388 grep -v '^ *+' conftest.er1
>conftest.err
5390 cat conftest.err
>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } && {
5393 test -z "$ac_c_werror_flag" ||
5394 test ! -s conftest.err
5395 } && test -s conftest.
$ac_objext; then
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.
$ac_ext >&5
5404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 ax_cv_c_compiler_ms
=$ax_compiler_ms
5408 { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
5409 echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; }
5410 if test X
$ax_compiler_ms = Xno
; then
5411 GL_CFLAGS
="${PTHREAD_CFLAGS}"
5412 GL_LIBS
="${PTHREAD_LIBS} -lm"
5416 # Use x_includes and x_libraries if they have been set (presumably by
5419 if test "X$no_x" != "Xyes"; then
5420 if test -n "$x_includes"; then
5421 GL_CFLAGS
="-I${x_includes} ${GL_CFLAGS}"
5423 if test -n "$x_libraries"; then
5424 GL_LIBS
="-L${x_libraries} -lX11 ${GL_LIBS}"
5429 for ac_header
in windows.h
5431 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5435 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 ac_res
=`eval echo '${'$as_ac_Header'}'`
5439 { echo "$as_me:$LINENO: result: $ac_res" >&5
5440 echo "${ECHO_T}$ac_res" >&6; }
5442 # Is the header compilable?
5443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5445 cat >conftest.
$ac_ext <<_ACEOF
5448 cat confdefs.h
>>conftest.
$ac_ext
5449 cat >>conftest.
$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5452 #include <$ac_header>
5454 rm -f conftest.
$ac_objext
5455 if { (ac_try
="$ac_compile"
5457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_header_compiler=yes
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_header_compiler=no
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5481 echo "${ECHO_T}$ac_header_compiler" >&6; }
5483 # Is the header present?
5484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <$ac_header>
5494 if { (ac_try="$ac_cpp conftest.$ac_ext"
5496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5497 *) ac_try_echo
=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1
>conftest.err
5504 cat conftest.err
>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } >/dev
/null
&& {
5507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5510 ac_header_preproc
=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.
$ac_ext >&5
5515 ac_header_preproc
=no
5518 rm -f conftest.err conftest.
$ac_ext
5519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5520 echo "${ECHO_T}$ac_header_preproc" >&6; }
5522 # So? What about this header?
5523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5529 ac_header_preproc
=yes
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5545 ## ----------------------------------- ##
5546 ## Report this to julien.pilet@epfl.ch ##
5547 ## ----------------------------------- ##
5549 ) |
sed "s/^/$as_me: WARNING: /" >&2
5552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 eval "$as_ac_Header=\$ac_header_preproc"
5559 ac_res
=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h
<<_ACEOF
5566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 { echo "$as_me:$LINENO: checking for OpenGL library" >&5
5575 echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; }
5576 if test "${ax_cv_check_gl_libgl+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 ax_cv_check_gl_libgl
="no"
5580 ax_save_CPPFLAGS
="${CPPFLAGS}"
5581 CPPFLAGS
="${GL_CFLAGS} ${CPPFLAGS}"
5582 ax_save_LIBS
="${LIBS}"
5584 ax_check_libs
="-lopengl32 -lGL"
5585 for ax_lib
in ${ax_check_libs}; do
5586 if test X
$ax_compiler_ms = Xyes
; then
5587 ax_try_lib
=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
5589 ax_try_lib
="${ax_lib}"
5591 LIBS
="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
5592 cat >conftest.
$ac_ext <<_ACEOF
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 # if HAVE_WINDOWS_H && defined(_WIN32)
5600 # include <windows.h>
5611 rm -f conftest.
$ac_objext conftest
$ac_exeext
5612 if { (ac_try
="$ac_link"
5614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_link") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest$ac_exeext &&
5628 $as_test_x conftest$ac_exeext; then
5629 ax_cv_check_gl_libgl="${ax_try_lib}"; break
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5638 conftest$ac_exeext conftest.$ac_ext
5640 LIBS=${ax_save_LIBS}
5641 CPPFLAGS=${ax_save_CPPFLAGS}
5643 { echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
5644 echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; }
5646 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then
5651 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664 GLU_CFLAGS="${GL_CFLAGS}"
5665 if test "X${with_apple_opengl_framework}" != "Xyes"; then
5666 { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
5667 echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; }
5668 if test "${ax_cv_check_glu_libglu+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 ax_cv_check_glu_libglu="no"
5672 ax_save_CPPFLAGS="${CPPFLAGS}"
5673 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
5674 ax_save_LIBS="${LIBS}"
5676 ax_check_libs="-lglu32 -lGLU"
5677 for ax_lib in ${ax_check_libs}; do
5678 if test X$ax_compiler_ms = Xyes; then
5679 ax_try_lib=`echo $ax_lib |
sed -e 's/^-l//' -e 's/$/.lib/'`
5681 ax_try_lib="${ax_lib}"
5683 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
5685 # libGLU typically links with libstdc++ on POSIX platforms. However,
5686 # setting the language to C++ means that test program source is named
5687 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
5691 ac_cpp='$CXXCPP $CPPFLAGS'
5692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 if test X$ax_compiler_ms = Xyes; then
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5711 # if HAVE_WINDOWS_H && defined(_WIN32)
5712 # include <windows.h>
5714 # include <GL/glu.h>
5723 rm -f conftest.$ac_objext conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5727 *) ac_try_echo
=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_link") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1
>conftest.err
5734 cat conftest.err
>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest
$ac_exeext &&
5740 $as_test_x conftest
$ac_exeext; then
5741 ax_cv_check_glu_libglu
="${ax_try_lib}"; break
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.
$ac_ext >&5
5749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5750 conftest
$ac_exeext conftest.
$ac_ext
5751 if test X
$ax_compiler_ms = Xyes
; then
5753 ac_cpp
='$CXXCPP $CPPFLAGS'
5754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5760 ac_cpp
='$CPP $CPPFLAGS'
5761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5766 LIBS
=${ax_save_LIBS}
5767 CPPFLAGS
=${ax_save_CPPFLAGS}
5769 { echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
5770 echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; }
5771 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
5776 GLU_LIBS
="${ax_cv_check_glu_libglu} ${GL_LIBS}"
5782 if test "$no_x" = yes; then
5783 # Not all programs may use this symbol, but it does not hurt to define it.
5785 cat >>confdefs.h
<<\_ACEOF
5786 #define X_DISPLAY_MISSING 1
5789 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
5791 if test -n "$x_includes"; then
5792 X_CFLAGS
="$X_CFLAGS -I$x_includes"
5795 # It would also be nice to do this for all -L options, not just this one.
5796 if test -n "$x_libraries"; then
5797 X_LIBS
="$X_LIBS -L$x_libraries"
5798 # For Solaris; some versions of Sun CC require a space after -R and
5799 # others require no space. Words are not sufficient . . . .
5800 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5801 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5802 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
5803 ac_xsave_c_werror_flag
=$ac_c_werror_flag
5804 ac_c_werror_flag
=yes
5805 cat >conftest.
$ac_ext <<_ACEOF
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5820 rm -f conftest.
$ac_objext conftest
$ac_exeext
5821 if { (ac_try
="$ac_link"
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_link") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest$ac_exeext &&
5837 $as_test_x conftest$ac_exeext; then
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 X_LIBS="$X_LIBS -R$x_libraries"
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 LIBS="$ac_xsave_LIBS -R $x_libraries"
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5861 rm -f conftest.$ac_objext conftest$ac_exeext
5862 if { (ac_try="$ac_link"
5864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5865 *) ac_try_echo
=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_link") 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest
$ac_exeext &&
5878 $as_test_x conftest
$ac_exeext; then
5879 { echo "$as_me:$LINENO: result: yes" >&5
5880 echo "${ECHO_T}yes" >&6; }
5881 X_LIBS
="$X_LIBS -R $x_libraries"
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.
$ac_ext >&5
5886 { echo "$as_me:$LINENO: result: neither works" >&5
5887 echo "${ECHO_T}neither works" >&6; }
5890 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5891 conftest
$ac_exeext conftest.
$ac_ext
5894 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5895 conftest
$ac_exeext conftest.
$ac_ext
5896 ac_c_werror_flag
=$ac_xsave_c_werror_flag
5900 # Check for system-dependent libraries X programs must link with.
5901 # Do this before checking for the system-independent R6 libraries
5902 # (-lICE), since we may need -lsocket or whatever for X linking.
5904 if test "$ISC" = yes; then
5905 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
5907 # Martyn Johnson says this is needed for Ultrix, if the X
5908 # libraries were built with DECnet support. And Karl Berry says
5909 # the Alpha needs dnet_stub (dnet does not exist).
5910 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5924 char XOpenDisplay ();
5928 return XOpenDisplay ();
5933 rm -f conftest.
$ac_objext conftest
$ac_exeext
5934 if { (ac_try
="$ac_link"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext &&
5950 $as_test_x conftest$ac_exeext; then
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5957 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5958 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_check_lib_save_LIBS=$LIBS
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5980 return dnet_ntoa ();
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (ac_try="$ac_link"
5988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5989 *) ac_try_echo
=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest
$ac_exeext &&
6002 $as_test_x conftest
$ac_exeext; then
6003 ac_cv_lib_dnet_dnet_ntoa
=yes
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.
$ac_ext >&5
6008 ac_cv_lib_dnet_dnet_ntoa
=no
6011 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6012 conftest
$ac_exeext conftest.
$ac_ext
6013 LIBS
=$ac_check_lib_save_LIBS
6015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6016 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6017 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6018 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6021 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6022 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6023 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6024 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_check_lib_save_LIBS
=$LIBS
6028 LIBS
="-ldnet_stub $LIBS"
6029 cat >conftest.
$ac_ext <<_ACEOF
6032 cat confdefs.h
>>conftest.
$ac_ext
6033 cat >>conftest.
$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6036 /* Override any GCC internal prototype to avoid an error.
6037 Use char because int might match the return type of a GCC
6038 builtin and then its argument prototype would still apply. */
6046 return dnet_ntoa ();
6051 rm -f conftest.
$ac_objext conftest
$ac_exeext
6052 if { (ac_try
="$ac_link"
6054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest$ac_exeext &&
6068 $as_test_x conftest$ac_exeext; then
6069 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_lib_dnet_stub_dnet_ntoa=no
6077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6082 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6083 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6084 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6091 conftest$ac_exeext conftest.$ac_ext
6092 LIBS="$ac_xsave_LIBS"
6094 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6095 # to get the SysV transport functions.
6096 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6098 # The nsl library prevents programs from opening the X display
6099 # on Irix 5.2, according to T.E. Dickey.
6100 # The functions gethostbyname, getservbyname, and inet_addr are
6101 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6102 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6103 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6104 if test "${ac_cv_func_gethostbyname+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6115 #define gethostbyname innocuous_gethostbyname
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char gethostbyname (); below.
6119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 <limits.h> exists even on freestanding compilers. */
6123 # include <limits.h>
6125 # include <assert.h>
6128 #undef gethostbyname
6130 /* Override any GCC internal prototype to avoid an error.
6131 Use char because int might match the return type of a GCC
6132 builtin and then its argument prototype would still apply. */
6136 char gethostbyname ();
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6147 return gethostbyname ();
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (ac_try="$ac_link"
6155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_link") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest
$ac_exeext &&
6169 $as_test_x conftest
$ac_exeext; then
6170 ac_cv_func_gethostbyname
=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6175 ac_cv_func_gethostbyname
=no
6178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6179 conftest
$ac_exeext conftest.
$ac_ext
6181 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6182 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6184 if test $ac_cv_func_gethostbyname = no
; then
6185 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6186 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6187 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 ac_check_lib_save_LIBS
=$LIBS
6192 cat >conftest.
$ac_ext <<_ACEOF
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6199 /* Override any GCC internal prototype to avoid an error.
6200 Use char because int might match the return type of a GCC
6201 builtin and then its argument prototype would still apply. */
6205 char gethostbyname ();
6209 return gethostbyname ();
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext
6215 if { (ac_try
="$ac_link"
6217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_link") 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext &&
6231 $as_test_x conftest$ac_exeext; then
6232 ac_cv_lib_nsl_gethostbyname=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_lib_nsl_gethostbyname=no
6240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6241 conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6250 if test $ac_cv_lib_nsl_gethostbyname = no; then
6251 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_check_lib_save_LIBS=$LIBS
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6265 /* Override any GCC internal prototype to avoid an error.
6266 Use char because int might match the return type of a GCC
6267 builtin and then its argument prototype would still apply. */
6271 char gethostbyname ();
6275 return gethostbyname ();
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6284 *) ac_try_echo
=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_link") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1
>conftest.err
6291 cat conftest.err
>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest
$ac_exeext &&
6297 $as_test_x conftest
$ac_exeext; then
6298 ac_cv_lib_bsd_gethostbyname
=yes
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6303 ac_cv_lib_bsd_gethostbyname
=no
6306 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6307 conftest
$ac_exeext conftest.
$ac_ext
6308 LIBS
=$ac_check_lib_save_LIBS
6310 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6311 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6312 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6313 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
6319 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6320 # socket/setsockopt and other routines are undefined under SCO ODT
6321 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6322 # on later versions), says Simon Leinen: it contains gethostby*
6323 # variants that don't use the name server (or something). -lsocket
6324 # must be given before -lnsl if both are needed. We assume that
6325 # if connect needs -lnsl, so does gethostbyname.
6326 { echo "$as_me:$LINENO: checking for connect" >&5
6327 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6328 if test "${ac_cv_func_connect+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.
$ac_ext <<_ACEOF
6334 cat confdefs.h
>>conftest.
$ac_ext
6335 cat >>conftest.
$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6339 #define connect innocuous_connect
6341 /* System header to define __stub macros and hopefully few prototypes,
6342 which can conflict with char connect (); below.
6343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344 <limits.h> exists even on freestanding compilers. */
6347 # include <limits.h>
6349 # include <assert.h>
6354 /* Override any GCC internal prototype to avoid an error.
6355 Use char because int might match the return type of a GCC
6356 builtin and then its argument prototype would still apply. */
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined __stub_connect || defined __stub___connect
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext
6377 if { (ac_try
="$ac_link"
6379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext &&
6393 $as_test_x conftest$ac_exeext; then
6394 ac_cv_func_connect=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_cv_func_connect=no
6402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6403 conftest$ac_exeext conftest.$ac_ext
6405 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6406 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6408 if test $ac_cv_func_connect = no; then
6409 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6410 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6411 if test "${ac_cv_lib_socket_connect+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_check_lib_save_LIBS=$LIBS
6415 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6416 cat >conftest.$ac_ext <<_ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6423 /* Override any GCC internal prototype to avoid an error.
6424 Use char because int might match the return type of a GCC
6425 builtin and then its argument prototype would still apply. */
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6442 *) ac_try_echo
=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1
>conftest.err
6449 cat conftest.err
>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest
$ac_exeext &&
6455 $as_test_x conftest
$ac_exeext; then
6456 ac_cv_lib_socket_connect
=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.
$ac_ext >&5
6461 ac_cv_lib_socket_connect
=no
6464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6465 conftest
$ac_exeext conftest.
$ac_ext
6466 LIBS
=$ac_check_lib_save_LIBS
6468 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6469 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6470 if test $ac_cv_lib_socket_connect = yes; then
6471 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6476 # Guillermo Gomez says -lposix is necessary on A/UX.
6477 { echo "$as_me:$LINENO: checking for remove" >&5
6478 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6479 if test "${ac_cv_func_remove+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 cat >conftest.
$ac_ext <<_ACEOF
6485 cat confdefs.h
>>conftest.
$ac_ext
6486 cat >>conftest.
$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6490 #define remove innocuous_remove
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char remove (); below.
6494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6495 <limits.h> exists even on freestanding compilers. */
6498 # include <limits.h>
6500 # include <assert.h>
6505 /* Override any GCC internal prototype to avoid an error.
6506 Use char because int might match the return type of a GCC
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined __stub_remove || defined __stub___remove
6527 rm -f conftest.
$ac_objext conftest
$ac_exeext
6528 if { (ac_try
="$ac_link"
6530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_link") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1 >conftest.err
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest$ac_exeext &&
6544 $as_test_x conftest$ac_exeext; then
6545 ac_cv_func_remove=yes
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 ac_cv_func_remove=no
6553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554 conftest$ac_exeext conftest.$ac_ext
6556 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6557 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6559 if test $ac_cv_func_remove = no; then
6560 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6561 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6562 if test "${ac_cv_lib_posix_remove+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-lposix $LIBS"
6567 cat >conftest.$ac_ext <<_ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6574 /* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6589 rm -f conftest.$ac_objext conftest$ac_exeext
6590 if { (ac_try="$ac_link"
6592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6593 *) ac_try_echo
=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_link") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest
$ac_exeext &&
6606 $as_test_x conftest
$ac_exeext; then
6607 ac_cv_lib_posix_remove
=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.
$ac_ext >&5
6612 ac_cv_lib_posix_remove
=no
6615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6616 conftest
$ac_exeext conftest.
$ac_ext
6617 LIBS
=$ac_check_lib_save_LIBS
6619 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6620 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6621 if test $ac_cv_lib_posix_remove = yes; then
6622 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6628 { echo "$as_me:$LINENO: checking for shmat" >&5
6629 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6630 if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6641 #define shmat innocuous_shmat
6643 /* System header to define __stub macros and hopefully few prototypes,
6644 which can conflict with char shmat (); below.
6645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6646 <limits.h> exists even on freestanding compilers. */
6649 # include <limits.h>
6651 # include <assert.h>
6656 /* Override any GCC internal prototype to avoid an error.
6657 Use char because int might match the return type of a GCC
6658 builtin and then its argument prototype would still apply. */
6663 /* The GNU C library defines this for functions which it implements
6664 to always fail with ENOSYS. Some functions are actually named
6665 something starting with __ and the normal name is an alias. */
6666 #if defined __stub_shmat || defined __stub___shmat
6678 rm -f conftest.
$ac_objext conftest
$ac_exeext
6679 if { (ac_try
="$ac_link"
6681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_link") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest$ac_exeext &&
6695 $as_test_x conftest$ac_exeext; then
6696 ac_cv_func_shmat=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6705 conftest$ac_exeext conftest.$ac_ext
6707 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6708 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6710 if test $ac_cv_func_shmat = no; then
6711 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6712 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6713 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_check_lib_save_LIBS=$LIBS
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6744 *) ac_try_echo
=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1
>conftest.err
6751 cat conftest.err
>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest
$ac_exeext &&
6757 $as_test_x conftest
$ac_exeext; then
6758 ac_cv_lib_ipc_shmat
=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.
$ac_ext >&5
6763 ac_cv_lib_ipc_shmat
=no
6766 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6767 conftest
$ac_exeext conftest.
$ac_ext
6768 LIBS
=$ac_check_lib_save_LIBS
6770 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6771 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6772 if test $ac_cv_lib_ipc_shmat = yes; then
6773 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
6779 # Check for libraries that X11R6 Xt/Xaw programs need.
6780 ac_save_LDFLAGS
=$LDFLAGS
6781 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
6782 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6783 # check for ICE first), but we must link in the order -lSM -lICE or
6784 # we get undefined symbols. So assume we have SM if we have ICE.
6785 # These have to be linked with before -lX11, unlike the other
6786 # libraries we check for below, so use a different variable.
6787 # John Interrante, Karl Berry
6788 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6789 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6790 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_check_lib_save_LIBS
=$LIBS
6794 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
6795 cat >conftest.
$ac_ext <<_ACEOF
6798 cat confdefs.h
>>conftest.
$ac_ext
6799 cat >>conftest.
$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6808 char IceConnectionNumber ();
6812 return IceConnectionNumber ();
6817 rm -f conftest.
$ac_objext conftest
$ac_exeext
6818 if { (ac_try
="$ac_link"
6820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_link") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest$ac_exeext &&
6834 $as_test_x conftest$ac_exeext; then
6835 ac_cv_lib_ICE_IceConnectionNumber=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 ac_cv_lib_ICE_IceConnectionNumber=no
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6845 LIBS=$ac_check_lib_save_LIBS
6847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6848 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6849 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6850 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6853 LDFLAGS=$ac_save_LDFLAGS
6858 if test "X$with_apple_opengl_framework" = "Xyes"; then
6859 GLUT_CFLAGS="${GLU_CFLAGS}"
6860 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}"
6862 GLUT_CFLAGS=${GLU_CFLAGS}
6863 GLUT_LIBS=${GLU_LIBS}
6866 # If X is present, assume GLUT depends on it.
6868 if test "X${no_x}" != "Xyes"; then
6869 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
6873 ac_cpp='$CPP $CPPFLAGS'
6874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6879 ax_save_CPPFLAGS="${CPPFLAGS}"
6880 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
6882 { echo "$as_me:$LINENO: checking for GLUT library" >&5
6883 echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; }
6884 if test "${ax_cv_check_glut_libglut+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ax_cv_check_glut_libglut="no"
6888 ax_save_LIBS="${LIBS}"
6890 ax_check_libs="-lglut32 -lglut"
6891 for ax_lib in ${ax_check_libs}; do
6892 if test X$ax_compiler_ms = Xyes; then
6893 ax_try_lib=`echo $ax_lib |
sed -e 's/^-l//' -e 's/$/.lib/'`
6895 ax_try_lib="${ax_lib}"
6897 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6905 # if HAVE_WINDOWS_H && defined(_WIN32)
6906 # include <windows.h>
6908 # include <GL/glut.h>
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (ac_try="$ac_link"
6920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6921 *) ac_try_echo
=$ac_try;;
6923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924 (eval "$ac_link") 2>conftest.er1
6926 grep -v '^ *+' conftest.er1
>conftest.err
6928 cat conftest.err
>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && {
6931 test -z "$ac_c_werror_flag" ||
6932 test ! -s conftest.err
6933 } && test -s conftest
$ac_exeext &&
6934 $as_test_x conftest
$ac_exeext; then
6935 ax_cv_check_glut_libglut
="${ax_try_lib}"; break
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.
$ac_ext >&5
6943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6944 conftest
$ac_exeext conftest.
$ac_ext
6947 LIBS
=${ax_save_LIBS}
6950 { echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
6951 echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; }
6952 CPPFLAGS
="${ax_save_CPPFLAGS}"
6954 ac_cpp
='$CPP $CPPFLAGS'
6955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6960 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then
6965 GLUT_LIBS
="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
6972 { echo "$as_me:$LINENO: checking for glewInit in -lGLEW" >&5
6973 echo $ECHO_N "checking for glewInit in -lGLEW... $ECHO_C" >&6; }
6974 if test "${ac_cv_lib_GLEW_glewInit+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 ac_check_lib_save_LIBS
=$LIBS
6978 LIBS
="-lGLEW $GLUT_LIBS $LIBS"
6979 cat >conftest.
$ac_ext <<_ACEOF
6982 cat confdefs.h
>>conftest.
$ac_ext
6983 cat >>conftest.
$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
7001 rm -f conftest.
$ac_objext conftest
$ac_exeext
7002 if { (ac_try
="$ac_link"
7004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>conftest.er1
7010 grep -v '^ *+' conftest.er1 >conftest.err
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest$ac_exeext &&
7018 $as_test_x conftest$ac_exeext; then
7019 ac_cv_lib_GLEW_glewInit=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_lib_GLEW_glewInit=no
7027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028 conftest$ac_exeext conftest.$ac_ext
7029 LIBS=$ac_check_lib_save_LIBS
7031 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_glewInit" >&5
7032 echo "${ECHO_T}$ac_cv_lib_GLEW_glewInit" >&6; }
7033 if test $ac_cv_lib_GLEW_glewInit = yes; then
7040 # Checks for header files.
7041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7043 if test "${ac_cv_header_stdc+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7069 *) ac_try_echo
=$ac_try;;
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1
>conftest.err
7076 cat conftest.err
>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.
$ac_objext; then
7082 ac_cv_header_stdc
=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.
$ac_ext >&5
7087 ac_cv_header_stdc
=no
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.
$ac_ext <<_ACEOF
7097 cat confdefs.h
>>conftest.
$ac_ext
7098 cat >>conftest.
$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev
/null
2>&1; then
7107 ac_cv_header_stdc
=no
7113 if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.
$ac_ext <<_ACEOF
7118 cat confdefs.h
>>conftest.
$ac_ext
7119 cat >>conftest.
$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev
/null
2>&1; then
7128 ac_cv_header_stdc
=no
7134 if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7139 cat >conftest.
$ac_ext <<_ACEOF
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7147 #if ((' ' & 0x0FF) == 0x020)
7148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7151 # define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7170 rm -f conftest
$ac_exeext
7171 if { (ac_try
="$ac_link"
7173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_link") 2>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181 { (case "(($ac_try" in
7182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7183 *) ac_try_echo
=$ac_try;;
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_try") 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7192 echo "$as_me: program exited with status $ac_status" >&5
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.
$ac_ext >&5
7197 ac_cv_header_stdc
=no
7199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7207 if test $ac_cv_header_stdc = yes; then
7209 cat >>confdefs.h
<<\_ACEOF
7210 #define STDC_HEADERS 1
7217 for ac_header
in float.h stdlib.h
7219 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7223 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_res
=`eval echo '${'$as_ac_Header'}'`
7227 { echo "$as_me:$LINENO: result: $ac_res" >&5
7228 echo "${ECHO_T}$ac_res" >&6; }
7230 # Is the header compilable?
7231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7233 cat >conftest.
$ac_ext <<_ACEOF
7236 cat confdefs.h
>>conftest.
$ac_ext
7237 cat >>conftest.
$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 #include <$ac_header>
7242 rm -f conftest.
$ac_objext
7243 if { (ac_try
="$ac_compile"
7245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_header_compiler=yes
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_header_compiler=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7269 echo "${ECHO_T}$ac_header_compiler" >&6; }
7271 # Is the header present?
7272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <$ac_header>
7282 if { (ac_try="$ac_cpp conftest.$ac_ext"
7284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7285 *) ac_try_echo
=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } >/dev
/null
&& {
7295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7298 ac_header_preproc
=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.
$ac_ext >&5
7303 ac_header_preproc
=no
7306 rm -f conftest.err conftest.
$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7308 echo "${ECHO_T}$ac_header_preproc" >&6; }
7310 # So? What about this header?
7311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7317 ac_header_preproc
=yes
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7333 ## ----------------------------------- ##
7334 ## Report this to julien.pilet@epfl.ch ##
7335 ## ----------------------------------- ##
7337 ) |
sed "s/^/$as_me: WARNING: /" >&2
7340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7342 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 eval "$as_ac_Header=\$ac_header_preproc"
7347 ac_res
=`eval echo '${'$as_ac_Header'}'`
7348 { echo "$as_me:$LINENO: result: $ac_res" >&5
7349 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353 cat >>confdefs.h
<<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7361 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7362 { echo "$as_me:$LINENO: checking for GL/glew.h" >&5
7363 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; }
7364 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
7368 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; }
7370 # Is the header compilable?
7371 { echo "$as_me:$LINENO: checking GL/glew.h usability" >&5
7372 echo $ECHO_N "checking GL/glew.h usability... $ECHO_C" >&6; }
7373 cat >conftest.
$ac_ext <<_ACEOF
7376 cat confdefs.h
>>conftest.
$ac_ext
7377 cat >>conftest.
$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7380 #include <GL/glew.h>
7382 rm -f conftest.
$ac_objext
7383 if { (ac_try
="$ac_compile"
7385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7399 ac_header_compiler=yes
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_header_compiler=no
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7409 echo "${ECHO_T}$ac_header_compiler" >&6; }
7411 # Is the header present?
7412 { echo "$as_me:$LINENO: checking GL/glew.h presence" >&5
7413 echo $ECHO_N "checking GL/glew.h presence... $ECHO_C" >&6; }
7414 cat >conftest.$ac_ext <<_ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #include <GL/glew.h>
7422 if { (ac_try="$ac_cpp conftest.$ac_ext"
7424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7425 *) ac_try_echo
=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7430 grep -v '^ *+' conftest.er1
>conftest.err
7432 cat conftest.err
>&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } >/dev
/null
&& {
7435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7438 ac_header_preproc
=yes
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.
$ac_ext >&5
7443 ac_header_preproc
=no
7446 rm -f conftest.err conftest.
$ac_ext
7447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7448 echo "${ECHO_T}$ac_header_preproc" >&6; }
7450 # So? What about this header?
7451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7453 { echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5
7454 echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5
7456 echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;}
7457 ac_header_preproc
=yes
7460 { echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5
7461 echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: GL/glew.h: check for missing prerequisite headers?" >&5
7463 echo "$as_me: WARNING: GL/glew.h: check for missing prerequisite headers?" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5
7465 echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&5
7467 echo "$as_me: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5
7469 echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5
7471 echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;}
7473 ## ----------------------------------- ##
7474 ## Report this to julien.pilet@epfl.ch ##
7475 ## ----------------------------------- ##
7477 ) |
sed "s/^/$as_me: WARNING: /" >&2
7480 { echo "$as_me:$LINENO: checking for GL/glew.h" >&5
7481 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; }
7482 if test "${ac_cv_header_GL_glew_h+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_cv_header_GL_glew_h
=$ac_header_preproc
7487 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5
7488 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; }
7491 if test $ac_cv_header_GL_glew_h = yes; then
7499 if test "x$have_glew" = "xyes"; then
7500 GLEW_LIBS
="-lGLEW $GL_LIBS"
7502 cat >>confdefs.h
<<\_ACEOF
7507 GLEW_LIBS
="$GL_LIBS"
7508 { echo "$as_me:$LINENO: WARNING: GL Extension Wrangler library not found. Get it from http://glew.sourceforge.net" >&5
7509 echo "$as_me: WARNING: GL Extension Wrangler library not found. Get it from http://glew.sourceforge.net" >&2;}
7513 if test "x$no_gl" != "xyes"; then
7515 cat >>confdefs.h
<<\_ACEOF
7521 if test x
$have_glew = xyes
-a x
$no_glut != xyes
; then
7526 if test x
$HAVE_FULLGL=xyes
; then
7535 # Checks for typedefs, structures, and compiler characteristics.
7536 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7537 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7538 if test "${ac_cv_header_stdbool_h+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7544 cat confdefs.h
>>conftest.
$ac_ext
7545 cat >>conftest.
$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7548 #include <stdbool.h>
7550 "error: bool is not defined"
7553 "error: false is not defined"
7556 "error: false is not 0"
7559 "error: true is not defined"
7562 "error: true is not 1"
7564 #ifndef __bool_true_false_are_defined
7565 "error: __bool_true_false_are_defined is not defined"
7568 struct s { _Bool s: 1; _Bool t; } s;
7570 char a[true == 1 ? 1 : -1];
7571 char b[false == 0 ? 1 : -1];
7572 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7573 char d[(bool) 0.5 == true ? 1 : -1];
7575 char f[(_Bool) 0.0 == false ? 1 : -1];
7577 char h[sizeof (_Bool)];
7579 enum { j = false, k = true, l = false * true, m = true * 256 };
7581 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7582 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7583 # if defined __xlc__ || defined __GNUC__
7584 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7585 reported by James Lemley on 2005-10-05; see
7586 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7587 This test is not quite right, since xlc is allowed to
7588 reject this program, as the initializer for xlcbug is
7589 not one of the forms that C requires support for.
7590 However, doing the test right would require a runtime
7591 test, and that would make cross-compilation harder.
7592 Let us hope that IBM fixes the xlc bug, and also adds
7593 support for this kind of constant expression. In the
7594 meantime, this test will reject xlc, which is OK, since
7595 our stdbool.h substitute should suffice. We also test
7596 this with GCC, where it should work, to detect more
7597 quickly whether someone messes up the test in the
7599 char digs[] = "0123456789";
7600 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7602 /* Catch a bug in an HP-UX C compiler. See
7603 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7604 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7615 /* Refer to every declared value, to avoid compiler optimizations. */
7616 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7617 + !m + !n + !o + !p + !q + !pq);
7623 rm -f conftest.
$ac_objext
7624 if { (ac_try
="$ac_compile"
7626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 ac_cv_header_stdbool_h=yes
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 ac_cv_header_stdbool_h=no
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7651 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7652 { echo "$as_me:$LINENO: checking for _Bool" >&5
7653 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
7654 if test "${ac_cv_type__Bool+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef _Bool ac__type_new_;
7668 if ((ac__type_new_ *) 0)
7670 if (sizeof (ac__type_new_))
7676 rm -f conftest.$ac_objext
7677 if { (ac_try="$ac_compile"
7679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7680 *) ac_try_echo
=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_compile") 2>conftest.er1
7685 grep -v '^ *+' conftest.er1
>conftest.err
7687 cat conftest.err
>&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.
$ac_objext; then
7693 ac_cv_type__Bool
=yes
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.
$ac_ext >&5
7701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7703 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7704 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
7705 if test $ac_cv_type__Bool = yes; then
7707 cat >>confdefs.h
<<_ACEOF
7708 #define HAVE__BOOL 1
7714 if test $ac_cv_header_stdbool_h = yes; then
7716 cat >>confdefs.h
<<\_ACEOF
7717 #define HAVE_STDBOOL_H 1
7722 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7724 if test "${ac_cv_c_const+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 cat >conftest.
$ac_ext <<_ACEOF
7730 cat confdefs.h
>>conftest.
$ac_ext
7731 cat >>conftest.
$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7737 /* FIXME: Include the comments suggested by Paul. */
7739 /* Ultrix mips cc rejects this. */
7740 typedef int charset[2];
7742 /* SunOS 4.1.1 cc rejects this. */
7743 char const *const *pcpcc;
7745 /* NEC SVR4.0.2 mips cc rejects this. */
7746 struct point {int x, y;};
7747 static struct point const zero = {0,0};
7748 /* AIX XL C 1.02.0.0 rejects this.
7749 It does not let you subtract one const X* pointer from another in
7750 an arm of an if-expression whose if-part is not a constant
7752 const char *g = "string";
7753 pcpcc = &g + (g ? g-g : 0);
7754 /* HPUX 7.0 cc rejects these. */
7756 ppc = (char**) pcpcc;
7757 pcpcc = (char const *const *) ppc;
7758 { /* SCO 3.2v4 cc rejects this. */
7760 char const *s = 0 ? (char *) 0 : (char const *) 0;
7765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7767 const int *foo = &x[0];
7770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7771 typedef const int *iptr;
7775 { /* AIX XL C 1.02.0.0 rejects this saying
7776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7777 struct s { int j; const int *ap[3]; };
7778 struct s *b; b->j = 5;
7780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7784 return !cs[0] && !zero.x;
7791 rm -f conftest.
$ac_objext
7792 if { (ac_try
="$ac_compile"
7794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7819 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7820 if test $ac_cv_c_const = no; then
7822 cat >>confdefs.h <<\_ACEOF
7828 { echo "$as_me:$LINENO: checking for inline" >&5
7829 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7830 if test "${ac_cv_c_inline+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 for ac_kw in inline __inline__ __inline; do
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7843 static $ac_kw foo_t static_foo () {return 0; }
7844 $ac_kw foo_t foo () {return 0; }
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7852 *) ac_try_echo
=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1
>conftest.err
7859 cat conftest.err
>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.
$ac_objext; then
7865 ac_cv_c_inline
=$ac_kw
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.
$ac_ext >&5
7873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 test "$ac_cv_c_inline" != no
&& break
7878 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7879 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7882 case $ac_cv_c_inline in
7885 case $ac_cv_c_inline in
7887 *) ac_val
=$ac_cv_c_inline;;
7889 cat >>confdefs.h
<<_ACEOF
7891 #define inline $ac_val
7900 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7903 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir
=.
7919 for ac_exec_ext
in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7933 if test -n "$PKG_CONFIG"; then
7934 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7935 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7943 if test -z "$ac_cv_path_PKG_CONFIG"; then
7944 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7945 # Extract the first word of "pkg-config", so it can be a program name with args.
7946 set dummy pkg-config
; ac_word
=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 case $ac_pt_PKG_CONFIG in
7954 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7961 test -z "$as_dir" && as_dir
=.
7962 for ac_exec_ext
in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7976 if test -n "$ac_pt_PKG_CONFIG"; then
7977 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7978 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
7980 { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7984 if test "x$ac_pt_PKG_CONFIG" = x
; then
7987 case $cross_compiling:$ac_tool_warned in
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet. If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet. If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned
=yes ;;
7997 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8000 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8004 if test -n "$PKG_CONFIG"; then
8005 _pkg_min_version
=0.9.0
8006 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
8007 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
8008 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8009 { echo "$as_me:$LINENO: result: yes" >&5
8010 echo "${ECHO_T}yes" >&6; }
8012 { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8020 { echo "$as_me:$LINENO: checking for OPENCV" >&5
8021 echo $ECHO_N "checking for OPENCV... $ECHO_C" >&6; }
8023 if test -n "$PKG_CONFIG"; then
8024 if test -n "$OPENCV_CFLAGS"; then
8025 pkg_cv_OPENCV_CFLAGS
="$OPENCV_CFLAGS"
8027 if test -n "$PKG_CONFIG" && \
8028 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"opencv >= 0.9.6\"") >&5
8029 ($PKG_CONFIG --exists --print-errors "opencv >= 0.9.6") 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; then
8033 pkg_cv_OPENCV_CFLAGS
=`$PKG_CONFIG --cflags "opencv >= 0.9.6" 2>/dev/null`
8041 if test -n "$PKG_CONFIG"; then
8042 if test -n "$OPENCV_LIBS"; then
8043 pkg_cv_OPENCV_LIBS
="$OPENCV_LIBS"
8045 if test -n "$PKG_CONFIG" && \
8046 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"opencv >= 0.9.6\"") >&5
8047 ($PKG_CONFIG --exists --print-errors "opencv >= 0.9.6") 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; then
8051 pkg_cv_OPENCV_LIBS
=`$PKG_CONFIG --libs "opencv >= 0.9.6" 2>/dev/null`
8062 if test $pkg_failed = yes; then
8064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8065 _pkg_short_errors_supported
=yes
8067 _pkg_short_errors_supported
=no
8069 if test $_pkg_short_errors_supported = yes; then
8070 OPENCV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv >= 0.9.6"`
8072 OPENCV_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv >= 0.9.6"`
8074 # Put the nasty error message in config.log where it belongs
8075 echo "$OPENCV_PKG_ERRORS" >&5
8077 { { echo "$as_me:$LINENO: error: Package requirements (opencv >= 0.9.6) were not met:
8081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8082 installed software in a non-standard prefix.
8084 Alternatively, you may set the environment variables OPENCV_CFLAGS
8085 and OPENCV_LIBS to avoid the need to call pkg-config.
8086 See the pkg-config man page for more details.
8088 echo "$as_me: error: Package requirements (opencv >= 0.9.6) were not met:
8092 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8093 installed software in a non-standard prefix.
8095 Alternatively, you may set the environment variables OPENCV_CFLAGS
8096 and OPENCV_LIBS to avoid the need to call pkg-config.
8097 See the pkg-config man page for more details.
8099 { (exit 1); exit 1; }; }
8100 elif test $pkg_failed = untried
; then
8101 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
8102 is in your PATH or set the PKG_CONFIG environment variable to the full
8105 Alternatively, you may set the environment variables OPENCV_CFLAGS
8106 and OPENCV_LIBS to avoid the need to call pkg-config.
8107 See the pkg-config man page for more details.
8109 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8110 See \`config.log' for more details." >&5
8111 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
8112 is in your PATH or set the PKG_CONFIG environment variable to the full
8115 Alternatively, you may set the environment variables OPENCV_CFLAGS
8116 and OPENCV_LIBS to avoid the need to call pkg-config.
8117 See the pkg-config man page for more details.
8119 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8120 See \`config.log' for more details." >&2;}
8121 { (exit 1); exit 1; }; }
8123 OPENCV_CFLAGS
=$pkg_cv_OPENCV_CFLAGS
8124 OPENCV_LIBS
=$pkg_cv_OPENCV_LIBS
8125 { echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6; }
8132 # Checks for library functions.
8137 for ac_func
in floor memset pow sqrt
8139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8142 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.
$ac_ext <<_ACEOF
8148 cat confdefs.h
>>conftest.
$ac_ext
8149 cat >>conftest.
$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8153 #define $ac_func innocuous_$ac_func
8155 /* System header to define __stub macros and hopefully few prototypes,
8156 which can conflict with char $ac_func (); below.
8157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8158 <limits.h> exists even on freestanding compilers. */
8161 # include <limits.h>
8163 # include <assert.h>
8168 /* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8175 /* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178 #if defined __stub_$ac_func || defined __stub___$ac_func
8190 rm -f conftest.
$ac_objext conftest
$ac_exeext
8191 if { (ac_try
="$ac_link"
8193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_link") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest$ac_exeext &&
8207 $as_test_x conftest$ac_exeext; then
8208 eval "$as_ac_var=yes"
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 eval "$as_ac_var=no"
8216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217 conftest$ac_exeext conftest.$ac_ext
8219 ac_res=`eval echo '${'$as_ac_var'}'`
8220 { echo "$as_me:$LINENO: result: $ac_res" >&5
8221 echo "${ECHO_T}$ac_res" >&6; }
8222 if test `eval echo '${'$as_ac_var'}'` = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8230 ac_config_files="$ac_config_files Makefile garfeild/Makefile garfeild/garfeild.pc starter/Makefile starter/starter.pc doc/Doxyfile doc/Makefile artvertiser/Makefile"
8232 cat >confcache <<\_ACEOF
8233 # This file is a shell script that caches the results of configure
8234 # tests run on this system so they can be shared between configure
8235 # scripts and configure runs, see configure's option --config-cache.
8236 # It is not useful on other systems. If it contains results you don't
8237 # want to keep, you may remove or edit it.
8239 # config.status only pays attention to the cache file if you give it
8240 # the --recheck option to rerun configure.
8242 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
8243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8248 # The following way of writing the cache mishandles newlines in values,
8249 # but we know of no workaround that is simple, portable, and efficient.
8250 # So, we kill variables containing newlines.
8251 # Ultrix sh set writes to stderr and can't be redirected directly,
8252 # and sets the high bit in the cache file unless we assign to the vars.
8254 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8255 eval ac_val
=\$
$ac_var
8259 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8260 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8263 _ | IFS | as_nl
) ;; #(
8264 *) $as_unset $ac_var ;;
8270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8271 *${as_nl}ac_space
=\
*)
8272 # `set' does not quote correctly, so add quotes (double-quote
8273 # substitution turns \\\\ into \\, and sed turns \\ into \).
8276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8279 # `set' quotes correctly as required by POSIX, so do not add quotes.
8280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8293 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8294 if test -w "$cache_file"; then
8295 test "x$cache_file" != "x/dev/null" &&
8296 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8297 echo "$as_me: updating cache $cache_file" >&6;}
8298 cat confcache
>$cache_file
8300 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8301 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8306 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8307 # Let make expand exec_prefix.
8308 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8310 DEFS
=-DHAVE_CONFIG_H
8314 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8315 # 1. Remove the extension, and $U if already installed.
8316 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8317 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8319 # will be set to the directory where LIBOBJS objects are built.
8320 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8321 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8325 LTLIBOBJS
=$ac_ltlibobjs
8328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8330 Usually this means the macro was only invoked conditionally." >&5
8331 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8332 Usually this means the macro was only invoked conditionally." >&2;}
8333 { (exit 1); exit 1; }; }
8335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8337 Usually this means the macro was only invoked conditionally." >&5
8338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8339 Usually this means the macro was only invoked conditionally." >&2;}
8340 { (exit 1); exit 1; }; }
8342 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8343 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8344 Usually this means the macro was only invoked conditionally." >&5
8345 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8346 Usually this means the macro was only invoked conditionally." >&2;}
8347 { (exit 1); exit 1; }; }
8349 if test -z "${FULLGL_TRUE}" && test -z "${FULLGL_FALSE}"; then
8350 { { echo "$as_me:$LINENO: error: conditional \"FULLGL\" was never defined.
8351 Usually this means the macro was only invoked conditionally." >&5
8352 echo "$as_me: error: conditional \"FULLGL\" was never defined.
8353 Usually this means the macro was only invoked conditionally." >&2;}
8354 { (exit 1); exit 1; }; }
8357 : ${CONFIG_STATUS=./config.status}
8358 ac_clean_files_save
=$ac_clean_files
8359 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8360 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8361 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8362 cat >$CONFIG_STATUS <<_ACEOF
8364 # Generated by $as_me.
8365 # Run this file to recreate the current configuration.
8366 # Compiler output produced by configure, useful for debugging
8367 # configure, is in config.log if it exists.
8372 SHELL=\${CONFIG_SHELL-$SHELL}
8375 cat >>$CONFIG_STATUS <<\_ACEOF
8376 ## --------------------- ##
8377 ## M4sh Initialization. ##
8378 ## --------------------- ##
8380 # Be more Bourne compatible
8381 DUALCASE
=1; export DUALCASE
# for MKS sh
8382 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8385 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8386 # is contrary to our usage. Disable this feature.
8387 alias -g '${1+"$@"}'='"$@"'
8388 setopt NO_GLOB_SUBST
8390 case `(set -o) 2>/dev/null` in
8391 *posix
*) set -o posix
;;
8400 # Avoid depending upon Character Ranges.
8401 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8402 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8403 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8404 as_cr_digits
='0123456789'
8405 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8407 # The user is always right.
8408 if test "${PATH_SEPARATOR+set}" != set; then
8409 echo "#! /bin/sh" >conf$$.sh
8410 echo "exit 0" >>conf$$.sh
8412 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8420 # Support unset when possible.
8421 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8429 # We need space, tab and new line, in precisely that order. Quoting is
8430 # there to prevent editors from complaining about space-tab.
8431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8432 # splitting by setting IFS to empty value.)
8437 # Find who we are. Look in the path if we contain no directory separator.
8439 *[\\/]* ) as_myself
=$0 ;;
8440 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir
=.
8445 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8451 # We did not find ourselves, most probably we were run as `sh COMMAND'
8452 # in which case we are not to be found in the path.
8453 if test "x$as_myself" = x
; then
8456 if test ! -f "$as_myself"; then
8457 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8458 { (exit 1); exit 1; }
8461 # Work around bugs in pre-3.0 UWIN ksh.
8462 for as_var
in ENV MAIL MAILPATH
8463 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8473 LC_TELEPHONE LC_TIME
8475 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8476 eval $as_var=C
; export $as_var
8478 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8482 # Required to use basename.
8483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8490 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8491 as_basename
=basename
8497 # Name of the executable.
8498 as_me
=`$as_basename -- "$0" ||
8499 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8500 X"$0" : 'X\(//\)$' \| \
8501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8503 sed '/^.*\/\([^/][^/]*\)\/*$/{
8524 test "x$as_lineno_1" != "x$as_lineno_2" &&
8525 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8528 # uniformly replaced by the line number. The first 'sed' inserts a
8529 # line-number line after each line using $LINENO; the second 'sed'
8530 # does the real work. The second script uses 'N' to pair each
8531 # line-number line with the line containing $LINENO, and appends
8532 # trailing '-' during substitution so that $LINENO is not a special
8534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8535 # scripts with optimization help from Paolo Bonzini. Blame Lee
8536 # E. McMahon (1931-1989) for sed's syntax. :-)
8548 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8552 chmod +x
"$as_me.lineno" ||
8553 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8554 { (exit 1); exit 1; }; }
8556 # Don't try to exec as it changes $[0], causing all sort of problems
8557 # (the dirname of $[0] is not the place where we might find the
8558 # original and so on. Autoconf is especially sensitive to this).
8560 # Exit status is that of the last command.
8565 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8571 ECHO_C
= ECHO_N
= ECHO_T
=
8574 case `echo 'x\c'` in
8575 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8582 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8583 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8589 rm -f conf$$ conf$$.exe conf$$.
file
8590 if test -d conf$$.dir
; then
8591 rm -f conf$$.dir
/conf$$.
file
8597 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8599 # ... but there are two gotchas:
8600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8602 # In both cases, we have to default to `cp -p'.
8603 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8605 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8610 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8611 rmdir conf$$.dir
2>/dev
/null
8613 if mkdir
-p .
2>/dev
/null
; then
8616 test -d .
/-p && rmdir .
/-p
8620 if test -x / >/dev
/null
2>&1; then
8623 if ls -dL / >/dev
/null
2>&1; then
8630 if test -d "$1"; then
8636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8637 ???[sx]*):;;*)false;;esac;fi
8641 as_executable_p
=$as_test_x
8643 # Sed expression to map a string onto a valid CPP name.
8644 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8646 # Sed expression to map a string onto a valid variable name.
8647 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8652 # Save the log message, to keep $[0] and so on meaningful, and to
8653 # report actual input values of CONFIG_FILES etc. instead of their
8654 # values after options handling.
8656 This file was extended by bazar $as_me 1.3.1, which was
8657 generated by GNU Autoconf 2.61. Invocation command line was
8659 CONFIG_FILES = $CONFIG_FILES
8660 CONFIG_HEADERS = $CONFIG_HEADERS
8661 CONFIG_LINKS = $CONFIG_LINKS
8662 CONFIG_COMMANDS = $CONFIG_COMMANDS
8665 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8670 cat >>$CONFIG_STATUS <<_ACEOF
8671 # Files that config.status was made for.
8672 config_files="$ac_config_files"
8673 config_headers="$ac_config_headers"
8674 config_commands="$ac_config_commands"
8678 cat >>$CONFIG_STATUS <<\_ACEOF
8680 \`$as_me' instantiates files from templates according to the
8681 current configuration.
8683 Usage: $0 [OPTIONS] [FILE]...
8685 -h, --help print this help, then exit
8686 -V, --version print version number and configuration settings, then exit
8687 -q, --quiet do not print progress messages
8688 -d, --debug don't remove temporary files
8689 --recheck update $as_me by reconfiguring in the same conditions
8690 --file=FILE[:TEMPLATE]
8691 instantiate the configuration file FILE
8692 --header=FILE[:TEMPLATE]
8693 instantiate the configuration header FILE
8695 Configuration files:
8698 Configuration headers:
8701 Configuration commands:
8704 Report bugs to <bug-autoconf@gnu.org>."
8707 cat >>$CONFIG_STATUS <<_ACEOF
8709 bazar config.status 1.3.1
8710 configured by $0, generated by GNU Autoconf 2.61,
8711 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8713 Copyright (C) 2006 Free Software Foundation, Inc.
8714 This config.status script is free software; the Free Software Foundation
8715 gives unlimited permission to copy, distribute and modify it."
8723 cat >>$CONFIG_STATUS <<\_ACEOF
8724 # If no file are specified by the user, then we need to provide default
8725 # value. By we need to know if files were specified by the user.
8731 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8732 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8743 # Handling of the options.
8744 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8746 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8747 echo "$ac_cs_version"; exit ;;
8748 --debug |
--debu |
--deb |
--de |
--d |
-d )
8750 --file |
--fil |
--fi |
--f )
8752 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8753 ac_need_defaults
=false
;;
8754 --header |
--heade |
--head |
--hea )
8756 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8757 ac_need_defaults
=false
;;
8759 # Conflict between --help and --header
8760 { echo "$as_me: error: ambiguous option: $1
8761 Try \`$0 --help' for more information." >&2
8762 { (exit 1); exit 1; }; };;
8763 --help |
--hel |
-h )
8764 echo "$ac_cs_usage"; exit ;;
8765 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8766 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8770 -*) { echo "$as_me: error: unrecognized option: $1
8771 Try \`$0 --help' for more information." >&2
8772 { (exit 1); exit 1; }; } ;;
8774 *) ac_config_targets
="$ac_config_targets $1"
8775 ac_need_defaults
=false
;;
8781 ac_configure_extra_args
=
8783 if $ac_cs_silent; then
8785 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8789 cat >>$CONFIG_STATUS <<_ACEOF
8790 if \$ac_cs_recheck; then
8791 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8794 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8798 cat >>$CONFIG_STATUS <<\_ACEOF
8802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8803 ## Running $as_me. ##
8809 cat >>$CONFIG_STATUS <<_ACEOF
8813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8817 cat >>$CONFIG_STATUS <<\_ACEOF
8819 # Handling of arguments.
8820 for ac_config_target
in $ac_config_targets
8822 case $ac_config_target in
8823 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8824 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8825 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8826 "garfeild/Makefile") CONFIG_FILES
="$CONFIG_FILES garfeild/Makefile" ;;
8827 "garfeild/garfeild.pc") CONFIG_FILES
="$CONFIG_FILES garfeild/garfeild.pc" ;;
8828 "starter/Makefile") CONFIG_FILES
="$CONFIG_FILES starter/Makefile" ;;
8829 "starter/starter.pc") CONFIG_FILES
="$CONFIG_FILES starter/starter.pc" ;;
8830 "doc/Doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/Doxyfile" ;;
8831 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8832 "artvertiser/Makefile") CONFIG_FILES
="$CONFIG_FILES artvertiser/Makefile" ;;
8834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8836 { (exit 1); exit 1; }; };;
8841 # If the user did not use the arguments to specify the items to instantiate,
8842 # then the envvar interface is used. Set only those that are not.
8843 # We use the long form for the default assignment because of an extremely
8844 # bizarre bug on SunOS 4.1.3.
8845 if $ac_need_defaults; then
8846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8851 # Have a temporary directory for convenience. Make it in the build tree
8852 # simply because there is no reason against having it here, and in addition,
8853 # creating and moving files from /tmp can sometimes cause problems.
8854 # Hook for its removal unless debugging.
8855 # Note that there is a small window in which the directory will not be cleaned:
8856 # after its creation but before its name has been assigned to `$tmp'.
8860 trap 'exit_status=$?
8861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8863 trap '{ (exit 1); exit 1; }' 1 2 13 15
8865 # Create a (secure) tmp directory for tmp files.
8868 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8869 test -n "$tmp" && test -d "$tmp"
8872 tmp
=.
/conf$$
-$RANDOM
8873 (umask 077 && mkdir
"$tmp")
8876 echo "$me: cannot create a temporary directory in ." >&2
8877 { (exit 1); exit 1; }
8881 # Set up the sed scripts for CONFIG_FILES section.
8884 # No need to generate the scripts if there are no CONFIG_FILES.
8885 # This happens for instance when ./config.status config.h
8886 if test -n "$CONFIG_FILES"; then
8893 for ac_last_try
in false false false false false
:; do
8894 cat >conf$
$subs.
sed <<_ACEOF
8895 SHELL!$SHELL$ac_delim
8896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8902 exec_prefix!$exec_prefix$ac_delim
8903 prefix!$prefix$ac_delim
8904 program_transform_name!$program_transform_name$ac_delim
8905 bindir!$bindir$ac_delim
8906 sbindir!$sbindir$ac_delim
8907 libexecdir!$libexecdir$ac_delim
8908 datarootdir!$datarootdir$ac_delim
8909 datadir!$datadir$ac_delim
8910 sysconfdir!$sysconfdir$ac_delim
8911 sharedstatedir!$sharedstatedir$ac_delim
8912 localstatedir!$localstatedir$ac_delim
8913 includedir!$includedir$ac_delim
8914 oldincludedir!$oldincludedir$ac_delim
8915 docdir!$docdir$ac_delim
8916 infodir!$infodir$ac_delim
8917 htmldir!$htmldir$ac_delim
8918 dvidir!$dvidir$ac_delim
8919 pdfdir!$pdfdir$ac_delim
8920 psdir!$psdir$ac_delim
8921 libdir!$libdir$ac_delim
8922 localedir!$localedir$ac_delim
8923 mandir!$mandir$ac_delim
8925 ECHO_C!$ECHO_C$ac_delim
8926 ECHO_N!$ECHO_N$ac_delim
8927 ECHO_T!$ECHO_T$ac_delim
8929 build_alias!$build_alias$ac_delim
8930 host_alias!$host_alias$ac_delim
8931 target_alias!$target_alias$ac_delim
8932 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8933 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8934 INSTALL_DATA!$INSTALL_DATA$ac_delim
8935 am__isrc!$am__isrc$ac_delim
8936 CYGPATH_W!$CYGPATH_W$ac_delim
8937 PACKAGE!$PACKAGE$ac_delim
8938 VERSION!$VERSION$ac_delim
8939 ACLOCAL!$ACLOCAL$ac_delim
8940 AUTOCONF!$AUTOCONF$ac_delim
8941 AUTOMAKE!$AUTOMAKE$ac_delim
8942 AUTOHEADER!$AUTOHEADER$ac_delim
8943 MAKEINFO!$MAKEINFO$ac_delim
8944 install_sh!$install_sh$ac_delim
8945 STRIP!$STRIP$ac_delim
8946 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8947 mkdir_p!$mkdir_p$ac_delim
8949 SET_MAKE!$SET_MAKE$ac_delim
8950 am__leading_dot!$am__leading_dot$ac_delim
8951 AMTAR!$AMTAR$ac_delim
8952 am__tar!$am__tar$ac_delim
8953 am__untar!$am__untar$ac_delim
8955 CXXFLAGS!$CXXFLAGS$ac_delim
8956 LDFLAGS!$LDFLAGS$ac_delim
8957 CPPFLAGS!$CPPFLAGS$ac_delim
8958 ac_ct_CXX!$ac_ct_CXX$ac_delim
8959 EXEEXT!$EXEEXT$ac_delim
8960 OBJEXT!$OBJEXT$ac_delim
8961 DEPDIR!$DEPDIR$ac_delim
8962 am__include!$am__include$ac_delim
8963 am__quote!$am__quote$ac_delim
8964 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8965 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8966 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8967 CXXDEPMODE!$CXXDEPMODE$ac_delim
8968 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
8969 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
8971 CFLAGS!$CFLAGS$ac_delim
8972 ac_ct_CC!$ac_ct_CC$ac_delim
8973 CCDEPMODE!$CCDEPMODE$ac_delim
8974 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8975 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8976 RANLIB!$RANLIB$ac_delim
8977 XMKMF!$XMKMF$ac_delim
8979 build!$build$ac_delim
8980 build_cpu!$build_cpu$ac_delim
8981 build_vendor!$build_vendor$ac_delim
8982 build_os!$build_os$ac_delim
8984 host_cpu!$host_cpu$ac_delim
8985 host_vendor!$host_vendor$ac_delim
8986 host_os!$host_os$ac_delim
8987 acx_pthread_config!$acx_pthread_config$ac_delim
8988 PTHREAD_CC!$PTHREAD_CC$ac_delim
8989 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
8990 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
8994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8996 elif $ac_last_try; then
8997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8999 { (exit 1); exit 1; }; }
9001 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9005 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9006 if test -n "$ac_eof"; then
9007 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9008 ac_eof
=`expr $ac_eof + 1`
9011 cat >>$CONFIG_STATUS <<_ACEOF
9012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9017 s/^/s,@/; s/!/@,|#_!!_#|/
9020 s/'"$ac_delim"'$/,g/; t
9022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9023 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9024 rm -f conf$
$subs.
sed
9025 cat >>$CONFIG_STATUS <<_ACEOF
9031 for ac_last_try
in false false false false false
:; do
9032 cat >conf$
$subs.
sed <<_ACEOF
9033 EGREP!$EGREP$ac_delim
9034 GL_CFLAGS!$GL_CFLAGS$ac_delim
9035 GL_LIBS!$GL_LIBS$ac_delim
9036 GLU_CFLAGS!$GLU_CFLAGS$ac_delim
9037 GLU_LIBS!$GLU_LIBS$ac_delim
9038 X_CFLAGS!$X_CFLAGS$ac_delim
9039 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
9040 X_LIBS!$X_LIBS$ac_delim
9041 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
9042 GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim
9043 GLUT_LIBS!$GLUT_LIBS$ac_delim
9044 GLEW_LIBS!$GLEW_LIBS$ac_delim
9045 FULLGL_TRUE!$FULLGL_TRUE$ac_delim
9046 FULLGL_FALSE!$FULLGL_FALSE$ac_delim
9047 PKG_CONFIG!$PKG_CONFIG$ac_delim
9048 OPENCV_CFLAGS!$OPENCV_CFLAGS$ac_delim
9049 OPENCV_LIBS!$OPENCV_LIBS$ac_delim
9050 LIBOBJS!$LIBOBJS$ac_delim
9051 LTLIBOBJS!$LTLIBOBJS$ac_delim
9054 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
9056 elif $ac_last_try; then
9057 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9058 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9059 { (exit 1); exit 1; }; }
9061 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9065 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9066 if test -n "$ac_eof"; then
9067 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9068 ac_eof
=`expr $ac_eof + 1`
9071 cat >>$CONFIG_STATUS <<_ACEOF
9072 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9076 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9077 s/^/s,@/; s/!/@,|#_!!_#|/
9080 s/'"$ac_delim"'$/,g/; t
9082 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9083 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9084 rm -f conf$
$subs.
sed
9085 cat >>$CONFIG_STATUS <<_ACEOF
9092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9094 # trailing colons and then remove the whole line if VPATH becomes empty
9095 # (actually we leave an empty line to preserve line numbers).
9096 if test "x$srcdir" = x.
; then
9097 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9101 s/^\([^=]*=[ ]*\):*/\1/
9107 cat >>$CONFIG_STATUS <<\_ACEOF
9108 fi # test -n "$CONFIG_FILES"
9111 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
9114 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9116 case $ac_mode$ac_tag in
9118 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9119 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9120 { (exit 1); exit 1; }; };;
9121 :[FH
]-) ac_tag
=-:-;;
9122 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9139 -) ac_f
="$tmp/stdin";;
9140 *) # Look for the file first in the build tree, then in the source tree
9141 # (if the path is not absolute). The absolute path cannot be DOS-style,
9142 # because $ac_f cannot contain `:'.
9146 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9148 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9149 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9150 { (exit 1); exit 1; }; };;
9152 ac_file_inputs
="$ac_file_inputs $ac_f"
9155 # Let's still pretend it is `configure' which instantiates (i.e., don't
9156 # use $as_me), people would be surprised to read:
9157 # /* config.h. Generated by config.status. */
9158 configure_input
="Generated from "`IFS=:
9159 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9160 if test x
"$ac_file" != x-
; then
9161 configure_input
="$ac_file. $configure_input"
9162 { echo "$as_me:$LINENO: creating $ac_file" >&5
9163 echo "$as_me: creating $ac_file" >&6;}
9167 *:-:* |
*:-) cat >"$tmp/stdin";;
9172 ac_dir
=`$as_dirname -- "$ac_file" ||
9173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9174 X"$ac_file" : 'X\(//\)[^/]' \| \
9175 X"$ac_file" : 'X\(//\)$' \| \
9176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9197 -*) as_dir
=.
/$as_dir;;
9199 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9203 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9204 *) as_qdir
=$as_dir;;
9206 as_dirs
="'$as_qdir' $as_dirs"
9207 as_dir
=`$as_dirname -- "$as_dir" ||
9208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9209 X"$as_dir" : 'X\(//\)[^/]' \| \
9210 X"$as_dir" : 'X\(//\)$' \| \
9211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9230 test -d "$as_dir" && break
9232 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9233 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9234 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9235 { (exit 1); exit 1; }; }; }
9239 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9241 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9242 # A ".." for each directory in $ac_dir_suffix.
9243 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9244 case $ac_top_builddir_sub in
9245 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9246 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9249 ac_abs_top_builddir
=$ac_pwd
9250 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9251 # for backward compatibility:
9252 ac_top_builddir
=$ac_top_build_prefix
9255 .
) # We are building in place.
9257 ac_top_srcdir
=$ac_top_builddir_sub
9258 ac_abs_top_srcdir
=$ac_pwd ;;
9259 [\\/]* | ?
:[\\/]* ) # Absolute name.
9260 ac_srcdir
=$srcdir$ac_dir_suffix;
9261 ac_top_srcdir
=$srcdir
9262 ac_abs_top_srcdir
=$srcdir ;;
9264 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9265 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9266 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9268 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9278 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9279 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9283 [\\/$
]* | ?
:[\\/]* ) ;;
9284 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
9288 cat >>$CONFIG_STATUS <<\_ACEOF
9289 # If the template does not know about datarootdir, expand it.
9290 # FIXME: This hack should be removed a few years after 2.60.
9291 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9293 case `sed -n '/datarootdir/ {
9302 ' $ac_file_inputs` in
9303 *datarootdir
*) ac_datarootdir_seen
=yes;;
9304 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9305 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9306 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9308 cat >>$CONFIG_STATUS <<_ACEOF
9309 ac_datarootdir_hack='
9310 s&@datadir@&$datadir&g
9311 s&@docdir@&$docdir&g
9312 s&@infodir@&$infodir&g
9313 s&@localedir@&$localedir&g
9314 s&@mandir@&$mandir&g
9315 s&\\\${datarootdir}&$datarootdir&g' ;;
9319 # Neutralize VPATH when `$srcdir' = `.'.
9320 # Shell code in configure.ac might set extrasub.
9321 # FIXME: do we really want to maintain this feature?
9322 cat >>$CONFIG_STATUS <<_ACEOF
9326 cat >>$CONFIG_STATUS <<\_ACEOF
9328 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9329 s
&@configure_input@
&$configure_input&;t t
9330 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9331 s
&@srcdir@
&$ac_srcdir&;t t
9332 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9333 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9334 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9335 s
&@builddir@
&$ac_builddir&;t t
9336 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9337 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9338 s
&@INSTALL@
&$ac_INSTALL&;t t
9339 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
9340 $ac_datarootdir_hack
9341 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
9343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9344 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9346 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9347 which seems to be undefined. Please make sure it is defined." >&5
9348 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9349 which seems to be undefined. Please make sure it is defined." >&2;}
9353 -) cat "$tmp/out"; rm -f "$tmp/out";;
9354 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9363 # Transform confdefs.h into a sed script `conftest.defines', that
9364 # substitutes the proper values into config.h.in to produce config.h.
9365 rm -f conftest.defines conftest.
tail
9366 # First, append a space to every undef/define line, to ease matching.
9367 echo 's/$/ /' >conftest.defines
9368 # Then, protect against being on the right side of a sed subst, or in
9369 # an unquoted here document, in config.status. If some macros were
9370 # called several times there might be several #defines for the same
9371 # symbol, which is useless. But do not sort them, since the last
9372 # AC_DEFINE must be honored.
9373 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9374 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9375 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9376 # PARAMS is the parameter list in the macro definition--in most cases, it's
9377 # just an empty string.
9378 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9379 ac_dB
='\\)[ (].*,\\1define\\2'
9387 s/^[ ]*#[ ]*define[ ][ ]*//
9392 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9393 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9394 ' >>conftest.defines
9396 # Remove the space that was appended to ease matching.
9397 # Then replace #undef with comments. This is necessary, for
9398 # example, in the case of _POSIX_SOURCE, which is predefined and required
9399 # on some systems where configure will not decide to define it.
9400 # (The regexp can be short, since the line contains either #define or #undef.)
9402 s,^[ #]*u.*,/* & */,' >>conftest.defines
9404 # Break up conftest.defines:
9407 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9408 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9409 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9411 ac_in
='$ac_file_inputs'
9412 ac_out
='"$tmp/out1"'
9413 ac_nxt
='"$tmp/out2"'
9417 # Write a here document:
9418 cat >>$CONFIG_STATUS <<_ACEOF
9419 # First, check the format of the line:
9420 cat >"\$tmp/defines.sed" <<\\CEOF
9421 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9422 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9426 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9428 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9429 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9430 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9431 grep . conftest.
tail >/dev
/null ||
break
9432 rm -f conftest.defines
9433 mv conftest.
tail conftest.defines
9435 rm -f conftest.defines conftest.
tail
9437 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9438 cat >>$CONFIG_STATUS <<\_ACEOF
9439 if test x
"$ac_file" != x-
; then
9440 echo "/* $configure_input */" >"$tmp/config.h"
9441 cat "$ac_result" >>"$tmp/config.h"
9442 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9443 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9444 echo "$as_me: $ac_file is unchanged" >&6;}
9447 mv "$tmp/config.h" $ac_file
9450 echo "/* $configure_input */"
9454 # Compute $ac_file's index in $config_headers.
9457 for _am_header
in $config_headers :; do
9459 $_am_arg |
$_am_arg:* )
9462 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
9465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9467 X"$_am_arg" : 'X\(//\)[^/]' \| \
9468 X"$_am_arg" : 'X\(//\)$' \| \
9469 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9487 s/.*/./; q'`/stamp-h
$_am_stamp_count
9490 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9491 echo "$as_me: executing $ac_file commands" >&6;}
9496 case $ac_file$ac_mode in
9497 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
9498 # Strip MF so we end up with the name of the file.
9499 mf
=`echo "$mf" | sed -e 's/:.*$//'`
9500 # Check whether this is an Automake generated Makefile or not.
9501 # We used to match only the files named `Makefile.in', but
9502 # some people rename them; so instead we look at the file content.
9503 # Grep'ing the first line is not enough: some people post-process
9504 # each Makefile.in and add a new line on top of each file to say so.
9505 # Grep'ing the whole file is not good either: AIX grep has a line
9506 # limit of 2048, but all sed's we know have understand at least 4000.
9507 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
9508 dirpart
=`$as_dirname -- "$mf" ||
9509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510 X"$mf" : 'X\(//\)[^/]' \| \
9511 X"$mf" : 'X\(//\)$' \| \
9512 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9534 # Extract the definition of DEPDIR, am__include, and am__quote
9535 # from the Makefile without running `make'.
9536 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
9537 test -z "$DEPDIR" && continue
9538 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
9539 test -z "am__include" && continue
9540 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
9541 # When using ansi2knr, U may be empty or an underscore; expand it
9542 U
=`sed -n 's/^U = //p' < "$mf"`
9543 # Find all dependency output files, they are included files with
9544 # $(DEPDIR) in their names. We invoke sed twice because it is the
9545 # simplest approach to changing $(DEPDIR) to its actual value in the
9547 for file in `sed -n "
9548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9550 # Make sure the directory exists.
9551 test -f "$dirpart/$file" && continue
9552 fdir
=`$as_dirname -- "$file" ||
9553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9554 X"$file" : 'X\(//\)[^/]' \| \
9555 X"$file" : 'X\(//\)$' \| \
9556 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9575 { as_dir
=$dirpart/$fdir
9577 -*) as_dir
=.
/$as_dir;;
9579 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9583 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9584 *) as_qdir
=$as_dir;;
9586 as_dirs
="'$as_qdir' $as_dirs"
9587 as_dir
=`$as_dirname -- "$as_dir" ||
9588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9589 X"$as_dir" : 'X\(//\)[^/]' \| \
9590 X"$as_dir" : 'X\(//\)$' \| \
9591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9610 test -d "$as_dir" && break
9612 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9613 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9615 { (exit 1); exit 1; }; }; }
9616 # echo "creating $dirpart/$file"
9617 echo '# dummy' > "$dirpart/$file"
9626 { (exit 0); exit 0; }
9628 chmod +x
$CONFIG_STATUS
9629 ac_clean_files
=$ac_clean_files_save
9632 # configure is writing to config.log, and then calls config.status.
9633 # config.status does its own redirection, appending to config.log.
9634 # Unfortunately, on DOS this fails, as config.log is still kept open
9635 # by configure, so config.status won't be able to write to it; its
9636 # output is simply discarded. So we exec the FD to /dev/null,
9637 # effectively closing config.log, so it can be properly (re)opened and
9638 # appended to by config.status. When coming back to configure, we
9639 # need to make the FD available again.
9640 if test "$no_create" != yes; then
9642 ac_config_status_args
=
9643 test "$silent" = yes &&
9644 ac_config_status_args
="$ac_config_status_args --quiet"
9646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9649 # would make configure fail if this is the last instruction.
9650 $ac_cs_success ||
{ (exit 1); exit 1; }
9653 { echo "$as_me:$LINENO: Build OpenGL example: $HAVE_FULLGL" >&5
9654 echo "$as_me: Build OpenGL example: $HAVE_FULLGL" >&6;}