aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/configure')
-rwxr-xr-xlibraries/ode-0.9/configure14308
1 files changed, 14308 insertions, 0 deletions
diff --git a/libraries/ode-0.9/configure b/libraries/ode-0.9/configure
new file mode 100755
index 0000000..3785f0f
--- /dev/null
+++ b/libraries/ode-0.9/configure
@@ -0,0 +1,14308 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for ODE 0.9.0.
4#
5# Report bugs to <ode@ode.org>.
6#
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## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
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.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
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
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
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; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='ODE'
576PACKAGE_TARNAME='ode'
577PACKAGE_VERSION='0.9.0'
578PACKAGE_STRING='ODE 0.9.0'
579PACKAGE_BUGREPORT='ode@ode.org'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595# include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600# include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
666INSTALL_PROGRAM
667INSTALL_SCRIPT
668INSTALL_DATA
669am__isrc
670CYGPATH_W
671PACKAGE
672VERSION
673ACLOCAL
674AUTOCONF
675AUTOMAKE
676AUTOHEADER
677MAKEINFO
678install_sh
679STRIP
680INSTALL_STRIP_PROGRAM
681mkdir_p
682AWK
683SET_MAKE
684am__leading_dot
685AMTAR
686am__tar
687am__untar
688CC
689CFLAGS
690LDFLAGS
691CPPFLAGS
692ac_ct_CC
693EXEEXT
694OBJEXT
695DEPDIR
696am__include
697am__quote
698AMDEP_TRUE
699AMDEP_FALSE
700AMDEPBACKSLASH
701CCDEPMODE
702am__fastdepCC_TRUE
703am__fastdepCC_FALSE
704CPP
705GREP
706EGREP
707XMKMF
708X_CFLAGS
709X_PRE_LIBS
710X_LIBS
711X_EXTRA_LIBS
712ODE_CURRENT
713ODE_REVISION
714ODE_AGE
715ODE_RELEASE
716ODE_SONAME
717CXX
718CXXFLAGS
719ac_ct_CXX
720CXXDEPMODE
721am__fastdepCXX_TRUE
722am__fastdepCXX_FALSE
723WINDRES
724ac_ct_WINDRES
725RANLIB
726USE_SONAME_TRUE
727USE_SONAME_FALSE
728ENABLE_DEMOS_TRUE
729ENABLE_DEMOS_FALSE
730ARCHFLAGS
731OPCODE_TRUE
732OPCODE_FALSE
733GIMPACT_TRUE
734GIMPACT_FALSE
735TRIMESH_TRUE
736TRIMESH_FALSE
737X86_64_SYSTEM_TRUE
738X86_64_SYSTEM_FALSE
739WIN32_TRUE
740WIN32_FALSE
741X11_TRUE
742X11_FALSE
743OSX_TRUE
744OSX_FALSE
745DRAWSTUFF
746so_ext
747SHARED_LDFLAGS
748GL_LIBS
749TOPDIR
750ALLOCA
751LIBOBJS
752LTLIBOBJS'
753ac_subst_files=''
754 ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP
763XMKMF
764CXX
765CXXFLAGS
766CCC'
767
768
769# Initialize some variables set by options.
770ac_init_help=
771ac_init_version=false
772# The variables have the same names as the options, with
773# dashes changed to underlines.
774cache_file=/dev/null
775exec_prefix=NONE
776no_create=
777no_recursion=
778prefix=NONE
779program_prefix=NONE
780program_suffix=NONE
781program_transform_name=s,x,x,
782silent=
783site=
784srcdir=
785verbose=
786x_includes=NONE
787x_libraries=NONE
788
789# Installation directory options.
790# These are left unexpanded so users can "make install exec_prefix=/foo"
791# and all the variables that are supposed to be based on exec_prefix
792# by default will actually change.
793# Use braces instead of parens because sh, perl, etc. also accept them.
794# (The list follows the same order as the GNU Coding Standards.)
795bindir='${exec_prefix}/bin'
796sbindir='${exec_prefix}/sbin'
797libexecdir='${exec_prefix}/libexec'
798datarootdir='${prefix}/share'
799datadir='${datarootdir}'
800sysconfdir='${prefix}/etc'
801sharedstatedir='${prefix}/com'
802localstatedir='${prefix}/var'
803includedir='${prefix}/include'
804oldincludedir='/usr/include'
805docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806infodir='${datarootdir}/info'
807htmldir='${docdir}'
808dvidir='${docdir}'
809pdfdir='${docdir}'
810psdir='${docdir}'
811libdir='${exec_prefix}/lib'
812localedir='${datarootdir}/locale'
813mandir='${datarootdir}/man'
814
815ac_prev=
816ac_dashdash=
817for ac_option
818do
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
822 ac_prev=
823 continue
824 fi
825
826 case $ac_option in
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 *) ac_optarg=yes ;;
829 esac
830
831 # Accept the important Cygnus configure options, so we can diagnose typos.
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid package name: $ac_package" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092 eval with_$ac_package=\$ac_optarg ;;
1093
1094 -without-* | --without-*)
1095 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) { echo "$as_me: error: unrecognized option: $ac_option
1122Try \`$0 --help' for more information." >&2
1123 { (exit 1); exit 1; }; }
1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131 { (exit 1); exit 1; }; }
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141 ;;
1142
1143 esac
1144done
1145
1146if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 { echo "$as_me: error: missing argument to $ac_option" >&2
1149 { (exit 1); exit 1; }; }
1150fi
1151
1152# Be sure to have absolute directory names.
1153for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1157do
1158 eval ac_val=\$$ac_var
1159 case $ac_val in
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 esac
1163 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164 { (exit 1); exit 1; }; }
1165done
1166
1167# There might be people who depend on the old broken behavior: `$host'
1168# used to hold the argument of --host etc.
1169# FIXME: To remove some day.
1170build=$build_alias
1171host=$host_alias
1172target=$target_alias
1173
1174# FIXME: To remove some day.
1175if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183fi
1184
1185ac_tool_prefix=
1186test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188test "$silent" = yes && exec 6>/dev/null
1189
1190
1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192ac_ls_di=`ls -di .` &&
1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 { echo "$as_me: error: Working directory cannot be determined" >&2
1195 { (exit 1); exit 1; }; }
1196test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 { echo "$as_me: error: pwd does not report name of working directory" >&2
1198 { (exit 1); exit 1; }; }
1199
1200
1201# Find the source files, if location was not specified.
1202if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$0" ||
1206$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$0" : 'X\(//\)[^/]' \| \
1208 X"$0" : 'X\(//\)$' \| \
1209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1210echo X"$0" |
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)[^/].*/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\/\)$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\).*/{
1224 s//\1/
1225 q
1226 }
1227 s/.*/./; q'`
1228 srcdir=$ac_confdir
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 srcdir=..
1231 fi
1232else
1233 ac_srcdir_defaulted=no
1234fi
1235if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238 { (exit 1); exit 1; }; }
1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243 { (exit 1); exit 1; }; }
1244 pwd)`
1245# When building in place, set srcdir=.
1246if test "$ac_abs_confdir" = "$ac_pwd"; then
1247 srcdir=.
1248fi
1249# Remove unnecessary trailing slashes from srcdir.
1250# Double slashes in file names in object file debugging info
1251# mess up M-x gdb in Emacs.
1252case $srcdir in
1253*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254esac
1255for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1260done
1261
1262#
1263# Report the --help message.
1264#
1265if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1268 cat <<_ACEOF
1269\`configure' configures ODE 0.9.0 to adapt to many kinds of systems.
1270
1271Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1273To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274VAR=VALUE. See below for descriptions of some of the useful variables.
1275
1276Defaults for the options are specified in brackets.
1277
1278Configuration:
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288
1289Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1293 [PREFIX]
1294
1295By default, \`make install' will install all the files in
1296\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298for instance \`--prefix=\$HOME'.
1299
1300For better control, use the options below.
1301
1302Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/ode]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1322_ACEOF
1323
1324 cat <<\_ACEOF
1325
1326Program names:
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1330
1331X features:
1332 --x-includes=DIR X include files are in DIR
1333 --x-libraries=DIR X library files are in DIR
1334
1335System types:
1336 --build=BUILD configure for building on BUILD [guessed]
1337 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1338 --target=TARGET configure for building compilers for TARGET [HOST]
1339_ACEOF
1340fi
1341
1342if test -n "$ac_init_help"; then
1343 case $ac_init_help in
1344 short | recursive ) echo "Configuration of ODE 0.9.0:";;
1345 esac
1346 cat <<\_ACEOF
1347
1348Optional Features:
1349 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1350 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1351 --disable-dependency-tracking speeds up one-time build
1352 --enable-dependency-tracking do not reject slow dependency extractors
1353 --enable-soname Configure ODE shared library to set the soname field
1354 on ELF files
1355 --enable-demos build tests
1356 --disable-gyroscopic Configure ODE to work without gyroscopic term (may
1357 improve stability)
1358 --enable-double-precision
1359 Configure ODE to work with double precision, if not
1360 specified, single precision is used
1361 --enable-release build a release library with -fomit-frame-pointer
1362 and -ffast-math
1363 --enable-debug Add debug symbols to the library with -g
1364 --enable-gprof enable profiling with gprof
1365
1366Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-x use the X Window System
1370 --with-arch=arch build for $arch, where arch is any of the -march
1371 flags passed to gcc, without the -march, for example
1372 --with-arch=pentium3
1373 --with-trimesh=opcode|gimpact|none
1374 use the specified system for trimesh support.
1375
1376Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System
1386 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags
1388
1389Use these variables to override the choices made by `configure' or to help
1390it to find libraries and programs with nonstandard names/locations.
1391
1392Report bugs to <ode@ode.org>.
1393_ACEOF
1394ac_status=$?
1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1402
1403case "$ac_dir" in
1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405*)
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413esac
1414ac_abs_top_builddir=$ac_pwd
1415ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416# for backward compatibility:
1417ac_top_builddir=$ac_top_build_prefix
1418
1419case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432esac
1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448fi
1449
1450test -n "$ac_init_help" && exit $ac_status
1451if $ac_init_version; then
1452 cat <<\_ACEOF
1453ODE configure 0.9.0
1454generated by GNU Autoconf 2.61
1455
1456Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458This configure script is free software; the Free Software Foundation
1459gives unlimited permission to copy, distribute and modify it.
1460_ACEOF
1461 exit
1462fi
1463cat >config.log <<_ACEOF
1464This file contains any messages produced by compilers while
1465running configure, to aid debugging if configure makes a mistake.
1466
1467It was created by ODE $as_me 0.9.0, which was
1468generated by GNU Autoconf 2.61. Invocation command line was
1469
1470 $ $0 $@
1471
1472_ACEOF
1473exec 5>>config.log
1474{
1475cat <<_ASUNAME
1476## --------- ##
1477## Platform. ##
1478## --------- ##
1479
1480hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497_ASUNAME
1498
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505done
1506IFS=$as_save_IFS
1507
1508} >&5
1509
1510cat >&5 <<_ACEOF
1511
1512
1513## ----------- ##
1514## Core tests. ##
1515## ----------- ##
1516
1517_ACEOF
1518
1519
1520# Keep a trace of the command line.
1521# Strip out --no-create and --no-recursion so they do not pile up.
1522# Strip out --silent because we don't want to record it for future runs.
1523# Also quote any args containing shell meta-characters.
1524# Make two passes to allow for proper duplicate-argument suppression.
1525ac_configure_args=
1526ac_configure_args0=
1527ac_configure_args1=
1528ac_must_keep_next=false
1529for ac_pass in 1 2
1530do
1531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 2)
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 ;;
1562 esac
1563 done
1564done
1565$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568# When interrupted or exit'd, cleanup temporary files, and complete
1569# config.log. We remove comments because anyway the quotes in there
1570# would cause problems or look ugly.
1571# WARNING: Use '\'' to represent an apostrophe within the trap.
1572# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579## ---------------- ##
1580## Cache variables. ##
1581## ---------------- ##
1582_ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1585(
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1607 *)
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ;;
1610 esac |
1611 sort
1612)
1613 echo
1614
1615 cat <<\_ASBOX
1616## ----------------- ##
1617## Output variables. ##
1618## ----------------- ##
1619_ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633## ------------------- ##
1634## File substitutions. ##
1635## ------------------- ##
1636_ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651## ----------- ##
1652## confdefs.h. ##
1653## ----------- ##
1654_ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1666' 0
1667for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669done
1670ac_signal=0
1671
1672# confdefs.h avoids OS command line length limits that DEFS can exceed.
1673rm -f -r conftest* confdefs.h
1674
1675# Predefined preprocessor variables.
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_NAME "$PACKAGE_NAME"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_VERSION "$PACKAGE_VERSION"
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_STRING "$PACKAGE_STRING"
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699_ACEOF
1700
1701
1702# Let the site file select an alternate cache file if it wants to.
1703# Prefer explicitly selected file to automatically selected ones.
1704if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1711fi
1712shift
1713for ac_site_file
1714do
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1720 fi
1721done
1722
1723if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1733 fi
1734else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738fi
1739
1740# Check that the precious variables saved in the cache have kept the same
1741# value.
1742ac_cache_corrupted=false
1743for ac_var in $ac_precious_vars; do
1744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1745 eval ac_new_set=\$ac_env_${ac_var}_set
1746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1747 eval ac_new_val=\$ac_env_${ac_var}_value
1748 case $ac_old_set,$ac_new_set in
1749 set,)
1750 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1751echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1752 ac_cache_corrupted=: ;;
1753 ,set)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1755echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,);;
1758 *)
1759 if test "x$ac_old_val" != "x$ac_new_val"; then
1760 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1761echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1762 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1763echo "$as_me: former value: $ac_old_val" >&2;}
1764 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1765echo "$as_me: current value: $ac_new_val" >&2;}
1766 ac_cache_corrupted=:
1767 fi;;
1768 esac
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1771 case $ac_new_val in
1772 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 *) ac_arg=$ac_var=$ac_new_val ;;
1774 esac
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 esac
1779 fi
1780done
1781if $ac_cache_corrupted; then
1782 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1783echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1784 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1785echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1786 { (exit 1); exit 1; }; }
1787fi
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813ac_ext=c
1814ac_cpp='$CPP $CPPFLAGS'
1815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1817ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818
1819
1820
1821ODE_CURRENT=0
1822ODE_REVISION=9
1823ODE_AGE=0
1824ODE_RELEASE=$ODE_CURRENT.$ODE_REVISION.$ODE_AGE
1825ac_aux_dir=
1826for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1827 if test -f "$ac_dir/install-sh"; then
1828 ac_aux_dir=$ac_dir
1829 ac_install_sh="$ac_aux_dir/install-sh -c"
1830 break
1831 elif test -f "$ac_dir/install.sh"; then
1832 ac_aux_dir=$ac_dir
1833 ac_install_sh="$ac_aux_dir/install.sh -c"
1834 break
1835 elif test -f "$ac_dir/shtool"; then
1836 ac_aux_dir=$ac_dir
1837 ac_install_sh="$ac_aux_dir/shtool install -c"
1838 break
1839 fi
1840done
1841if test -z "$ac_aux_dir"; then
1842 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1843echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1844 { (exit 1); exit 1; }; }
1845fi
1846
1847# These three variables are undocumented and unsupported,
1848# and are intended to be withdrawn in a future Autoconf release.
1849# They can cause serious problems if a builder's source tree is in a directory
1850# whose full name contains unusual characters.
1851ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1852ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1853ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1854
1855
1856# Make sure we can run config.sub.
1857$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1858 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1859echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1860 { (exit 1); exit 1; }; }
1861
1862{ echo "$as_me:$LINENO: checking build system type" >&5
1863echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1864if test "${ac_cv_build+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 ac_build_alias=$build_alias
1868test "x$ac_build_alias" = x &&
1869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1870test "x$ac_build_alias" = x &&
1871 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1872echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1873 { (exit 1); exit 1; }; }
1874ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1875 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1876echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1877 { (exit 1); exit 1; }; }
1878
1879fi
1880{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1881echo "${ECHO_T}$ac_cv_build" >&6; }
1882case $ac_cv_build in
1883*-*-*) ;;
1884*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1885echo "$as_me: error: invalid value of canonical build" >&2;}
1886 { (exit 1); exit 1; }; };;
1887esac
1888build=$ac_cv_build
1889ac_save_IFS=$IFS; IFS='-'
1890set x $ac_cv_build
1891shift
1892build_cpu=$1
1893build_vendor=$2
1894shift; shift
1895# Remember, the first character of IFS is used to create $*,
1896# except with old shells:
1897build_os=$*
1898IFS=$ac_save_IFS
1899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1900
1901
1902{ echo "$as_me:$LINENO: checking host system type" >&5
1903echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1904if test "${ac_cv_host+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907 if test "x$host_alias" = x; then
1908 ac_cv_host=$ac_cv_build
1909else
1910 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1911 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1912echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1913 { (exit 1); exit 1; }; }
1914fi
1915
1916fi
1917{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1918echo "${ECHO_T}$ac_cv_host" >&6; }
1919case $ac_cv_host in
1920*-*-*) ;;
1921*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1922echo "$as_me: error: invalid value of canonical host" >&2;}
1923 { (exit 1); exit 1; }; };;
1924esac
1925host=$ac_cv_host
1926ac_save_IFS=$IFS; IFS='-'
1927set x $ac_cv_host
1928shift
1929host_cpu=$1
1930host_vendor=$2
1931shift; shift
1932# Remember, the first character of IFS is used to create $*,
1933# except with old shells:
1934host_os=$*
1935IFS=$ac_save_IFS
1936case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1937
1938
1939{ echo "$as_me:$LINENO: checking target system type" >&5
1940echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1941if test "${ac_cv_target+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944 if test "x$target_alias" = x; then
1945 ac_cv_target=$ac_cv_host
1946else
1947 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1948 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1949echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1950 { (exit 1); exit 1; }; }
1951fi
1952
1953fi
1954{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1955echo "${ECHO_T}$ac_cv_target" >&6; }
1956case $ac_cv_target in
1957*-*-*) ;;
1958*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1959echo "$as_me: error: invalid value of canonical target" >&2;}
1960 { (exit 1); exit 1; }; };;
1961esac
1962target=$ac_cv_target
1963ac_save_IFS=$IFS; IFS='-'
1964set x $ac_cv_target
1965shift
1966target_cpu=$1
1967target_vendor=$2
1968shift; shift
1969# Remember, the first character of IFS is used to create $*,
1970# except with old shells:
1971target_os=$*
1972IFS=$ac_save_IFS
1973case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1974
1975
1976# The aliases save the names the user supplied, while $host etc.
1977# will get canonicalized.
1978test -n "$target_alias" &&
1979 test "$program_prefix$program_suffix$program_transform_name" = \
1980 NONENONEs,x,x, &&
1981 program_prefix=${target_alias}-
1982
1983am__api_version='1.10'
1984
1985# Find a good install program. We prefer a C program (faster),
1986# so one script is as good as another. But avoid the broken or
1987# incompatible versions:
1988# SysV /etc/install, /usr/sbin/install
1989# SunOS /usr/etc/install
1990# IRIX /sbin/install
1991# AIX /bin/install
1992# AmigaOS /C/install, which installs bootblocks on floppy discs
1993# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1994# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1995# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1996# OS/2's system install, which has a completely different semantic
1997# ./install, which can be erroneously created by make from ./install.sh.
1998{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1999echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2000if test -z "$INSTALL"; then
2001if test "${ac_cv_path_install+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005for as_dir in $PATH
2006do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 # Account for people who put trailing slashes in PATH elements.
2010case $as_dir/ in
2011 ./ | .// | /cC/* | \
2012 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2013 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2014 /usr/ucb/* ) ;;
2015 *)
2016 # OSF1 and SCO ODT 3.0 have their own names for install.
2017 # Don't use installbsd from OSF since it installs stuff as root
2018 # by default.
2019 for ac_prog in ginstall scoinst install; do
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2022 if test $ac_prog = install &&
2023 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2024 # AIX install. It has an incompatible calling convention.
2025 :
2026 elif test $ac_prog = install &&
2027 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028 # program-specific install script used by HP pwplus--don't use.
2029 :
2030 else
2031 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2032 break 3
2033 fi
2034 fi
2035 done
2036 done
2037 ;;
2038esac
2039done
2040IFS=$as_save_IFS
2041
2042
2043fi
2044 if test "${ac_cv_path_install+set}" = set; then
2045 INSTALL=$ac_cv_path_install
2046 else
2047 # As a last resort, use the slow shell script. Don't cache a
2048 # value for INSTALL within a source directory, because that will
2049 # break other packages using the cache if that directory is
2050 # removed, or if the value is a relative name.
2051 INSTALL=$ac_install_sh
2052 fi
2053fi
2054{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2055echo "${ECHO_T}$INSTALL" >&6; }
2056
2057# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2058# It thinks the first close brace ends the variable substitution.
2059test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060
2061test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062
2063test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064
2065{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2066echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2067# Just in case
2068sleep 1
2069echo timestamp > conftest.file
2070# Do `set' in a subshell so we don't clobber the current shell's
2071# arguments. Must try -L first in case configure is actually a
2072# symlink; some systems play weird games with the mod time of symlinks
2073# (eg FreeBSD returns the mod time of the symlink's containing
2074# directory).
2075if (
2076 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2077 if test "$*" = "X"; then
2078 # -L didn't work.
2079 set X `ls -t $srcdir/configure conftest.file`
2080 fi
2081 rm -f conftest.file
2082 if test "$*" != "X $srcdir/configure conftest.file" \
2083 && test "$*" != "X conftest.file $srcdir/configure"; then
2084
2085 # If neither matched, then we have a broken ls. This can happen
2086 # if, for instance, CONFIG_SHELL is bash and it inherits a
2087 # broken ls alias from the environment. This has actually
2088 # happened. Such a system could not be considered "sane".
2089 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2090alias in your environment" >&5
2091echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2092alias in your environment" >&2;}
2093 { (exit 1); exit 1; }; }
2094 fi
2095
2096 test "$2" = conftest.file
2097 )
2098then
2099 # Ok.
2100 :
2101else
2102 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2103Check your system clock" >&5
2104echo "$as_me: error: newly created file is older than distributed files!
2105Check your system clock" >&2;}
2106 { (exit 1); exit 1; }; }
2107fi
2108{ echo "$as_me:$LINENO: result: yes" >&5
2109echo "${ECHO_T}yes" >&6; }
2110test "$program_prefix" != NONE &&
2111 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2112# Use a double $ so make ignores it.
2113test "$program_suffix" != NONE &&
2114 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2115# Double any \ or $. echo might interpret backslashes.
2116# By default was `s,x,x', remove it if useless.
2117cat <<\_ACEOF >conftest.sed
2118s/[\\$]/&&/g;s/;s,x,x,$//
2119_ACEOF
2120program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2121rm -f conftest.sed
2122
2123# expand $ac_aux_dir to an absolute path
2124am_aux_dir=`cd $ac_aux_dir && pwd`
2125
2126test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2127# Use eval to expand $SHELL
2128if eval "$MISSING --run true"; then
2129 am_missing_run="$MISSING --run "
2130else
2131 am_missing_run=
2132 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2133echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2134fi
2135
2136{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2137echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2138if test -z "$MKDIR_P"; then
2139 if test "${ac_cv_path_mkdir+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_prog in mkdir gmkdir; do
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2150 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2151 'mkdir (GNU coreutils) '* | \
2152 'mkdir (coreutils) '* | \
2153 'mkdir (fileutils) '4.1*)
2154 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2155 break 3;;
2156 esac
2157 done
2158 done
2159done
2160IFS=$as_save_IFS
2161
2162fi
2163
2164 if test "${ac_cv_path_mkdir+set}" = set; then
2165 MKDIR_P="$ac_cv_path_mkdir -p"
2166 else
2167 # As a last resort, use the slow shell script. Don't cache a
2168 # value for MKDIR_P within a source directory, because that will
2169 # break other packages using the cache if that directory is
2170 # removed, or if the value is a relative name.
2171 test -d ./--version && rmdir ./--version
2172 MKDIR_P="$ac_install_sh -d"
2173 fi
2174fi
2175{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2176echo "${ECHO_T}$MKDIR_P" >&6; }
2177
2178mkdir_p="$MKDIR_P"
2179case $mkdir_p in
2180 [\\/$]* | ?:[\\/]*) ;;
2181 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2182esac
2183
2184for ac_prog in gawk mawk nawk awk
2185do
2186 # Extract the first word of "$ac_prog", so it can be a program name with args.
2187set dummy $ac_prog; ac_word=$2
2188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190if test "${ac_cv_prog_AWK+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 if test -n "$AWK"; then
2194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2195else
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_AWK="$ac_prog"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207done
2208done
2209IFS=$as_save_IFS
2210
2211fi
2212fi
2213AWK=$ac_cv_prog_AWK
2214if test -n "$AWK"; then
2215 { echo "$as_me:$LINENO: result: $AWK" >&5
2216echo "${ECHO_T}$AWK" >&6; }
2217else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
2220fi
2221
2222
2223 test -n "$AWK" && break
2224done
2225
2226{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2227echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2228set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2229if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 cat >conftest.make <<\_ACEOF
2233SHELL = /bin/sh
2234all:
2235 @echo '@@@%%%=$(MAKE)=@@@%%%'
2236_ACEOF
2237# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2238case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239 *@@@%%%=?*=@@@%%%*)
2240 eval ac_cv_prog_make_${ac_make}_set=yes;;
2241 *)
2242 eval ac_cv_prog_make_${ac_make}_set=no;;
2243esac
2244rm -f conftest.make
2245fi
2246if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249 SET_MAKE=
2250else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6; }
2253 SET_MAKE="MAKE=${MAKE-make}"
2254fi
2255
2256rm -rf .tst 2>/dev/null
2257mkdir .tst 2>/dev/null
2258if test -d .tst; then
2259 am__leading_dot=.
2260else
2261 am__leading_dot=_
2262fi
2263rmdir .tst 2>/dev/null
2264
2265if test "`cd $srcdir && pwd`" != "`pwd`"; then
2266 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2267 # is not polluted with repeated "-I."
2268 am__isrc=' -I$(srcdir)'
2269 # test to see if srcdir already configured
2270 if test -f $srcdir/config.status; then
2271 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2272echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275fi
2276
2277# test whether we have cygpath
2278if test -z "$CYGPATH_W"; then
2279 if (cygpath --version) >/dev/null 2>/dev/null; then
2280 CYGPATH_W='cygpath -w'
2281 else
2282 CYGPATH_W=echo
2283 fi
2284fi
2285
2286
2287# Define the identity of the package.
2288 PACKAGE=ODE
2289 VERSION=$ODE_RELEASE
2290
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE "$PACKAGE"
2294_ACEOF
2295
2296
2297cat >>confdefs.h <<_ACEOF
2298#define VERSION "$VERSION"
2299_ACEOF
2300
2301# Some tools Automake needs.
2302
2303ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2304
2305
2306AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2307
2308
2309AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2310
2311
2312AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2313
2314
2315MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2316
2317install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2318
2319# Installed binaries are usually stripped using `strip' when the user
2320# run `make install-strip'. However `strip' might not be the right
2321# tool to use in cross-compilation environments, therefore Automake
2322# will honor the `STRIP' environment variable to overrule this program.
2323if test "$cross_compiling" != no; then
2324 if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2326set dummy ${ac_tool_prefix}strip; ac_word=$2
2327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329if test "${ac_cv_prog_STRIP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$STRIP"; then
2333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346done
2347done
2348IFS=$as_save_IFS
2349
2350fi
2351fi
2352STRIP=$ac_cv_prog_STRIP
2353if test -n "$STRIP"; then
2354 { echo "$as_me:$LINENO: result: $STRIP" >&5
2355echo "${ECHO_T}$STRIP" >&6; }
2356else
2357 { echo "$as_me:$LINENO: result: no" >&5
2358echo "${ECHO_T}no" >&6; }
2359fi
2360
2361
2362fi
2363if test -z "$ac_cv_prog_STRIP"; then
2364 ac_ct_STRIP=$STRIP
2365 # Extract the first word of "strip", so it can be a program name with args.
2366set dummy strip; ac_word=$2
2367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372 if test -n "$ac_ct_STRIP"; then
2373 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2374else
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_ac_ct_STRIP="strip"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2385 fi
2386done
2387done
2388IFS=$as_save_IFS
2389
2390fi
2391fi
2392ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2393if test -n "$ac_ct_STRIP"; then
2394 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2395echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2396else
2397 { echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6; }
2399fi
2400
2401 if test "x$ac_ct_STRIP" = x; then
2402 STRIP=":"
2403 else
2404 case $cross_compiling:$ac_tool_warned in
2405yes:)
2406{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2407whose name does not start with the host triplet. If you think this
2408configuration is useful to you, please write to autoconf@gnu.org." >&5
2409echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2410whose name does not start with the host triplet. If you think this
2411configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2412ac_tool_warned=yes ;;
2413esac
2414 STRIP=$ac_ct_STRIP
2415 fi
2416else
2417 STRIP="$ac_cv_prog_STRIP"
2418fi
2419
2420fi
2421INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2422
2423# We need awk for the "check" target. The system "awk" is bad on
2424# some platforms.
2425# Always define AMTAR for backward compatibility.
2426
2427AMTAR=${AMTAR-"${am_missing_run}tar"}
2428
2429am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430
2431
2432
2433
2434
2435ac_config_headers="$ac_config_headers include/ode/config.h"
2436
2437CFLAGS=
2438CXXFLAGS=
2439DEPDIR="${am__leading_dot}deps"
2440
2441ac_config_commands="$ac_config_commands depfiles"
2442
2443
2444am_make=${MAKE-make}
2445cat > confinc << 'END'
2446am__doit:
2447 @echo done
2448.PHONY: am__doit
2449END
2450# If we don't find an include directive, just comment out the code.
2451{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2452echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2453am__include="#"
2454am__quote=
2455_am_result=none
2456# First try GNU make style include.
2457echo "include confinc" > confmf
2458# We grep out `Entering directory' and `Leaving directory'
2459# messages which can occur if `w' ends up in MAKEFLAGS.
2460# In particular we don't look at `^make:' because GNU make might
2461# be invoked under some other name (usually "gmake"), in which
2462# case it prints its new name instead of `make'.
2463if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2464 am__include=include
2465 am__quote=
2466 _am_result=GNU
2467fi
2468# Now try BSD make style include.
2469if test "$am__include" = "#"; then
2470 echo '.include "confinc"' > confmf
2471 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2472 am__include=.include
2473 am__quote="\""
2474 _am_result=BSD
2475 fi
2476fi
2477
2478
2479{ echo "$as_me:$LINENO: result: $_am_result" >&5
2480echo "${ECHO_T}$_am_result" >&6; }
2481rm -f confinc confmf
2482
2483# Check whether --enable-dependency-tracking was given.
2484if test "${enable_dependency_tracking+set}" = set; then
2485 enableval=$enable_dependency_tracking;
2486fi
2487
2488if test "x$enable_dependency_tracking" != xno; then
2489 am_depcomp="$ac_aux_dir/depcomp"
2490 AMDEPBACKSLASH='\'
2491fi
2492 if test "x$enable_dependency_tracking" != xno; then
2493 AMDEP_TRUE=
2494 AMDEP_FALSE='#'
2495else
2496 AMDEP_TRUE='#'
2497 AMDEP_FALSE=
2498fi
2499
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2508set dummy ${ac_tool_prefix}gcc; ac_word=$2
2509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534CC=$ac_cv_prog_CC
2535if test -n "$CC"; then
2536 { echo "$as_me:$LINENO: result: $CC" >&5
2537echo "${ECHO_T}$CC" >&6; }
2538else
2539 { echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6; }
2541fi
2542
2543
2544fi
2545if test -z "$ac_cv_prog_CC"; then
2546 ac_ct_CC=$CC
2547 # Extract the first word of "gcc", so it can be a program name with args.
2548set dummy gcc; ac_word=$2
2549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554 if test -n "$ac_ct_CC"; then
2555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_ac_ct_CC="gcc"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574ac_ct_CC=$ac_cv_prog_ac_ct_CC
2575if test -n "$ac_ct_CC"; then
2576 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2577echo "${ECHO_T}$ac_ct_CC" >&6; }
2578else
2579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
2581fi
2582
2583 if test "x$ac_ct_CC" = x; then
2584 CC=""
2585 else
2586 case $cross_compiling:$ac_tool_warned in
2587yes:)
2588{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2589whose name does not start with the host triplet. If you think this
2590configuration is useful to you, please write to autoconf@gnu.org." >&5
2591echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2592whose name does not start with the host triplet. If you think this
2593configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2594ac_tool_warned=yes ;;
2595esac
2596 CC=$ac_ct_CC
2597 fi
2598else
2599 CC="$ac_cv_prog_CC"
2600fi
2601
2602if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
2604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2605set dummy ${ac_tool_prefix}cc; ac_word=$2
2606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608if test "${ac_cv_prog_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="${ac_tool_prefix}cc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625done
2626done
2627IFS=$as_save_IFS
2628
2629fi
2630fi
2631CC=$ac_cv_prog_CC
2632if test -n "$CC"; then
2633 { echo "$as_me:$LINENO: result: $CC" >&5
2634echo "${ECHO_T}$CC" >&6; }
2635else
2636 { echo "$as_me:$LINENO: result: no" >&5
2637echo "${ECHO_T}no" >&6; }
2638fi
2639
2640
2641 fi
2642fi
2643if test -z "$CC"; then
2644 # Extract the first word of "cc", so it can be a program name with args.
2645set dummy cc; ac_word=$2
2646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648if test "${ac_cv_prog_CC+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654 ac_prog_rejected=no
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2663 ac_prog_rejected=yes
2664 continue
2665 fi
2666 ac_cv_prog_CC="cc"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674if test $ac_prog_rejected = yes; then
2675 # We found a bogon in the path, so make sure we never use it.
2676 set dummy $ac_cv_prog_CC
2677 shift
2678 if test $# != 0; then
2679 # We chose a different compiler from the bogus one.
2680 # However, it has the same basename, so the bogon will be chosen
2681 # first if we set CC to just the basename; use the full file name.
2682 shift
2683 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2684 fi
2685fi
2686fi
2687fi
2688CC=$ac_cv_prog_CC
2689if test -n "$CC"; then
2690 { echo "$as_me:$LINENO: result: $CC" >&5
2691echo "${ECHO_T}$CC" >&6; }
2692else
2693 { echo "$as_me:$LINENO: result: no" >&5
2694echo "${ECHO_T}no" >&6; }
2695fi
2696
2697
2698fi
2699if test -z "$CC"; then
2700 if test -n "$ac_tool_prefix"; then
2701 for ac_prog in cl.exe
2702 do
2703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2704set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707if test "${ac_cv_prog_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724done
2725done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730CC=$ac_cv_prog_CC
2731if test -n "$CC"; then
2732 { echo "$as_me:$LINENO: result: $CC" >&5
2733echo "${ECHO_T}$CC" >&6; }
2734else
2735 { echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6; }
2737fi
2738
2739
2740 test -n "$CC" && break
2741 done
2742fi
2743if test -z "$CC"; then
2744 ac_ct_CC=$CC
2745 for ac_prog in cl.exe
2746do
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748set dummy $ac_prog; ac_word=$2
2749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_CC="$ac_prog"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768done
2769done
2770IFS=$as_save_IFS
2771
2772fi
2773fi
2774ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775if test -n "$ac_ct_CC"; then
2776 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2777echo "${ECHO_T}$ac_ct_CC" >&6; }
2778else
2779 { echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6; }
2781fi
2782
2783
2784 test -n "$ac_ct_CC" && break
2785done
2786
2787 if test "x$ac_ct_CC" = x; then
2788 CC=""
2789 else
2790 case $cross_compiling:$ac_tool_warned in
2791yes:)
2792{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2793whose name does not start with the host triplet. If you think this
2794configuration is useful to you, please write to autoconf@gnu.org." >&5
2795echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2796whose name does not start with the host triplet. If you think this
2797configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2798ac_tool_warned=yes ;;
2799esac
2800 CC=$ac_ct_CC
2801 fi
2802fi
2803
2804fi
2805
2806
2807test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2808See \`config.log' for more details." >&5
2809echo "$as_me: error: no acceptable C compiler found in \$PATH
2810See \`config.log' for more details." >&2;}
2811 { (exit 1); exit 1; }; }
2812
2813# Provide some information about the compiler.
2814echo "$as_me:$LINENO: checking for C compiler version" >&5
2815ac_compiler=`set X $ac_compile; echo $2`
2816{ (ac_try="$ac_compiler --version >&5"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compiler --version >&5") 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }
2826{ (ac_try="$ac_compiler -v >&5"
2827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compiler -v >&5") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836{ (ac_try="$ac_compiler -V >&5"
2837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compiler -V >&5") 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846
2847cat >conftest.$ac_ext <<_ACEOF
2848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
2853
2854int
2855main ()
2856{
2857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862ac_clean_files_save=$ac_clean_files
2863ac_clean_files="$ac_clean_files a.out a.exe b.out"
2864# Try to create an executable without -o first, disregard a.out.
2865# It will help us diagnose broken compilers, and finding out an intuition
2866# of exeext.
2867{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2868echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2869ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2870#
2871# List of possible output files, starting from the most likely.
2872# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2873# only as a last resort. b.out is created by i960 compilers.
2874ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2875#
2876# The IRIX 6 linker writes into existing files which may not be
2877# executable, retaining their permissions. Remove them first so a
2878# subsequent execution test works.
2879ac_rmfiles=
2880for ac_file in $ac_files
2881do
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2884 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2885 esac
2886done
2887rm -f $ac_rmfiles
2888
2889if { (ac_try="$ac_link_default"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link_default") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2900# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2901# in a Makefile. We should not override ac_cv_exeext if it was cached,
2902# so that the user can short-circuit this test for compilers unknown to
2903# Autoconf.
2904for ac_file in $ac_files ''
2905do
2906 test -f "$ac_file" || continue
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2909 ;;
2910 [ab].out )
2911 # We found the default executable, but exeext='' is most
2912 # certainly right.
2913 break;;
2914 *.* )
2915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2916 then :; else
2917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 fi
2919 # We set ac_cv_exeext here because the later test for it is not
2920 # safe: cross compilers may not add the suffix if given an `-o'
2921 # argument, so we may need to know it at that point already.
2922 # Even if this section looks crufty: it has the advantage of
2923 # actually working.
2924 break;;
2925 * )
2926 break;;
2927 esac
2928done
2929test "$ac_cv_exeext" = no && ac_cv_exeext=
2930
2931else
2932 ac_file=''
2933fi
2934
2935{ echo "$as_me:$LINENO: result: $ac_file" >&5
2936echo "${ECHO_T}$ac_file" >&6; }
2937if test -z "$ac_file"; then
2938 echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2942See \`config.log' for more details." >&5
2943echo "$as_me: error: C compiler cannot create executables
2944See \`config.log' for more details." >&2;}
2945 { (exit 77); exit 77; }; }
2946fi
2947
2948ac_exeext=$ac_cv_exeext
2949
2950# Check that the compiler produces executables we can run. If not, either
2951# the compiler is broken, or we cross compile.
2952{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2953echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2954# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2955# If not cross compiling, check that we can run a simple program.
2956if test "$cross_compiling" != yes; then
2957 if { ac_try='./$ac_file'
2958 { (case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_try") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 cross_compiling=no
2968 else
2969 if test "$cross_compiling" = maybe; then
2970 cross_compiling=yes
2971 else
2972 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2973If you meant to cross compile, use \`--host'.
2974See \`config.log' for more details." >&5
2975echo "$as_me: error: cannot run C compiled programs.
2976If you meant to cross compile, use \`--host'.
2977See \`config.log' for more details." >&2;}
2978 { (exit 1); exit 1; }; }
2979 fi
2980 fi
2981fi
2982{ echo "$as_me:$LINENO: result: yes" >&5
2983echo "${ECHO_T}yes" >&6; }
2984
2985rm -f a.out a.exe conftest$ac_cv_exeext b.out
2986ac_clean_files=$ac_clean_files_save
2987# Check that the compiler produces executables we can run. If not, either
2988# the compiler is broken, or we cross compile.
2989{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2990echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2991{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2992echo "${ECHO_T}$cross_compiling" >&6; }
2993
2994{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2995echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2996if { (ac_try="$ac_link"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_link") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; then
3006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3007# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3008# work properly (i.e., refer to `conftest.exe'), while it won't with
3009# `rm'.
3010for ac_file in conftest.exe conftest conftest.*; do
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 break;;
3016 * ) break;;
3017 esac
3018done
3019else
3020 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3021See \`config.log' for more details." >&5
3022echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3023See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3025fi
3026
3027rm -f conftest$ac_cv_exeext
3028{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3029echo "${ECHO_T}$ac_cv_exeext" >&6; }
3030
3031rm -f conftest.$ac_ext
3032EXEEXT=$ac_cv_exeext
3033ac_exeext=$EXEEXT
3034{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3035echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3036if test "${ac_cv_objext+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038else
3039 cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h. */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h. */
3045
3046int
3047main ()
3048{
3049
3050 ;
3051 return 0;
3052}
3053_ACEOF
3054rm -f conftest.o conftest.obj
3055if { (ac_try="$ac_compile"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 for ac_file in conftest.o conftest.obj conftest.*; do
3066 test -f "$ac_file" || continue;
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3069 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3070 break;;
3071 esac
3072done
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3078See \`config.log' for more details." >&5
3079echo "$as_me: error: cannot compute suffix of object files: cannot compile
3080See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }
3082fi
3083
3084rm -f conftest.$ac_cv_objext conftest.$ac_ext
3085fi
3086{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3087echo "${ECHO_T}$ac_cv_objext" >&6; }
3088OBJEXT=$ac_cv_objext
3089ac_objext=$OBJEXT
3090{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3091echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3092if test "${ac_cv_c_compiler_gnu+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095 cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
3100/* end confdefs.h. */
3101
3102int
3103main ()
3104{
3105#ifndef __GNUC__
3106 choke me
3107#endif
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3130 ac_compiler_gnu=yes
3131else
3132 echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ac_compiler_gnu=no
3136fi
3137
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140
3141fi
3142{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3143echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3144GCC=`test $ac_compiler_gnu = yes && echo yes`
3145ac_test_CFLAGS=${CFLAGS+set}
3146ac_save_CFLAGS=$CFLAGS
3147{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3148echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3149if test "${ac_cv_prog_cc_g+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 ac_cv_prog_cc_g=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 CFLAGS=""
3194 cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
3200
3201int
3202main ()
3203{
3204
3205 ;
3206 return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (ac_try="$ac_compile"
3211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_compile") 2>conftest.er1
3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } && {
3223 test -z "$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3225 } && test -s conftest.$ac_objext; then
3226 :
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3232 CFLAGS="-g"
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239
3240int
3241main ()
3242{
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248rm -f conftest.$ac_objext
3249if { (ac_try="$ac_compile"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
3265 ac_cv_prog_cc_g=yes
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270
3271fi
3272
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274fi
3275
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277fi
3278
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_c_werror_flag=$ac_save_c_werror_flag
3281fi
3282{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3283echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3284if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS=$ac_save_CFLAGS
3286elif test $ac_cv_prog_cc_g = yes; then
3287 if test "$GCC" = yes; then
3288 CFLAGS="-g -O2"
3289 else
3290 CFLAGS="-g"
3291 fi
3292else
3293 if test "$GCC" = yes; then
3294 CFLAGS="-O2"
3295 else
3296 CFLAGS=
3297 fi
3298fi
3299{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3300echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3301if test "${ac_cv_prog_cc_c89+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 ac_cv_prog_cc_c89=no
3305ac_save_CC=$CC
3306cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#include <stdarg.h>
3313#include <stdio.h>
3314#include <sys/types.h>
3315#include <sys/stat.h>
3316/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317struct buf { int x; };
3318FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319static char *e (p, i)
3320 char **p;
3321 int i;
3322{
3323 return p[i];
3324}
3325static char *f (char * (*g) (char **, int), char **p, ...)
3326{
3327 char *s;
3328 va_list v;
3329 va_start (v,p);
3330 s = g (p, va_arg (v,int));
3331 va_end (v);
3332 return s;
3333}
3334
3335/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3336 function prototypes and stuff, but not '\xHH' hex character constants.
3337 These don't provoke an error unfortunately, instead are silently treated
3338 as 'x'. The following induces an error, until -std is added to get
3339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3340 array size at least. It's necessary to write '\x00'==0 to get something
3341 that's true only with -std. */
3342int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343
3344/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3345 inside strings and character constants. */
3346#define FOO(x) 'x'
3347int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348
3349int test (int i, double x);
3350struct s1 {int (*f) (int a);};
3351struct s2 {int (*f) (double a);};
3352int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3353int argc;
3354char **argv;
3355int
3356main ()
3357{
3358return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365do
3366 CC="$ac_save_CC $ac_arg"
3367 rm -f conftest.$ac_objext
3368if { (ac_try="$ac_compile"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && {
3381 test -z "$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3383 } && test -s conftest.$ac_objext; then
3384 ac_cv_prog_cc_c89=$ac_arg
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389
3390fi
3391
3392rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3394done
3395rm -f conftest.$ac_ext
3396CC=$ac_save_CC
3397
3398fi
3399# AC_CACHE_VAL
3400case "x$ac_cv_prog_cc_c89" in
3401 x)
3402 { echo "$as_me:$LINENO: result: none needed" >&5
3403echo "${ECHO_T}none needed" >&6; } ;;
3404 xno)
3405 { echo "$as_me:$LINENO: result: unsupported" >&5
3406echo "${ECHO_T}unsupported" >&6; } ;;
3407 *)
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3410echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3411esac
3412
3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420depcc="$CC" am_compiler_list=
3421
3422{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3423echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3424if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3428 # We make a subdir and do the tests there. Otherwise we can end up
3429 # making bogus files that we don't know about and never remove. For
3430 # instance it was reported that on HP-UX the gcc test will end up
3431 # making a dummy file named `D' -- because `-MD' means `put the output
3432 # in D'.
3433 mkdir conftest.dir
3434 # Copy depcomp to subdir because otherwise we won't find it if we're
3435 # using a relative directory.
3436 cp "$am_depcomp" conftest.dir
3437 cd conftest.dir
3438 # We will build objects and dependencies in a subdirectory because
3439 # it helps to detect inapplicable dependency modes. For instance
3440 # both Tru64's cc and ICC support -MD to output dependencies as a
3441 # side effect of compilation, but ICC will put the dependencies in
3442 # the current directory while Tru64 will put them in the object
3443 # directory.
3444 mkdir sub
3445
3446 am_cv_CC_dependencies_compiler_type=none
3447 if test "$am_compiler_list" = ""; then
3448 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3449 fi
3450 for depmode in $am_compiler_list; do
3451 # Setup a source with many dependencies, because some compilers
3452 # like to wrap large dependency lists on column 80 (with \), and
3453 # we should not choose a depcomp mode which is confused by this.
3454 #
3455 # We need to recreate these files for each test, as the compiler may
3456 # overwrite some of them when testing with obscure command lines.
3457 # This happens at least with the AIX C compiler.
3458 : > sub/conftest.c
3459 for i in 1 2 3 4 5 6; do
3460 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3461 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3462 # Solaris 8's {/usr,}/bin/sh.
3463 touch sub/conftst$i.h
3464 done
3465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3466
3467 case $depmode in
3468 nosideeffect)
3469 # after this tag, mechanisms are not by side-effect, so they'll
3470 # only be used when explicitly requested
3471 if test "x$enable_dependency_tracking" = xyes; then
3472 continue
3473 else
3474 break
3475 fi
3476 ;;
3477 none) break ;;
3478 esac
3479 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3480 # mode. It turns out that the SunPro C++ compiler does not properly
3481 # handle `-M -o', and we need to detect this.
3482 if depmode=$depmode \
3483 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3485 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3486 >/dev/null 2>conftest.err &&
3487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3489 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3491 # icc doesn't choke on unknown options, it will just issue warnings
3492 # or remarks (even with -Werror). So we grep stderr for any message
3493 # that says an option was ignored or not supported.
3494 # When given -MP, icc 7.0 and 7.1 complain thusly:
3495 # icc: Command line warning: ignoring option '-M'; no argument required
3496 # The diagnosis changed in icc 8.0:
3497 # icc: Command line remark: option '-MP' not supported
3498 if (grep 'ignoring option' conftest.err ||
3499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3500 am_cv_CC_dependencies_compiler_type=$depmode
3501 break
3502 fi
3503 fi
3504 done
3505
3506 cd ..
3507 rm -rf conftest.dir
3508else
3509 am_cv_CC_dependencies_compiler_type=none
3510fi
3511
3512fi
3513{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3514echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3515CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3516
3517 if
3518 test "x$enable_dependency_tracking" != xno \
3519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3520 am__fastdepCC_TRUE=
3521 am__fastdepCC_FALSE='#'
3522else
3523 am__fastdepCC_TRUE='#'
3524 am__fastdepCC_FALSE=
3525fi
3526
3527
3528
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536# On Suns, sometimes $CPP names a directory.
3537if test -n "$CPP" && test -d "$CPP"; then
3538 CPP=
3539fi
3540if test -z "$CPP"; then
3541 if test "${ac_cv_prog_CPP+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 # Double quotes because CPP needs to be expanded
3545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3546 do
3547 ac_preproc_ok=false
3548for ac_c_preproc_warn_flag in '' yes
3549do
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
3567 Syntax error
3568_ACEOF
3569if { (ac_try="$ac_cpp conftest.$ac_ext"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 }; then
3585 :
3586else
3587 echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 # Broken: fails on valid input.
3591continue
3592fi
3593
3594rm -f conftest.err conftest.$ac_ext
3595
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h. */
3604#include <ac_nonexistent.h>
3605_ACEOF
3606if { (ac_try="$ac_cpp conftest.$ac_ext"
3607case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3622 # Broken: success on invalid input.
3623continue
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628 # Passes both tests.
3629ac_preproc_ok=:
3630break
3631fi
3632
3633rm -f conftest.err conftest.$ac_ext
3634
3635done
3636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637rm -f conftest.err conftest.$ac_ext
3638if $ac_preproc_ok; then
3639 break
3640fi
3641
3642 done
3643 ac_cv_prog_CPP=$CPP
3644
3645fi
3646 CPP=$ac_cv_prog_CPP
3647else
3648 ac_cv_prog_CPP=$CPP
3649fi
3650{ echo "$as_me:$LINENO: result: $CPP" >&5
3651echo "${ECHO_T}$CPP" >&6; }
3652ac_preproc_ok=false
3653for ac_c_preproc_warn_flag in '' yes
3654do
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667#ifdef __STDC__
3668# include <limits.h>
3669#else
3670# include <assert.h>
3671#endif
3672 Syntax error
3673_ACEOF
3674if { (ac_try="$ac_cpp conftest.$ac_ext"
3675case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null && {
3687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 }; then
3690 :
3691else
3692 echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 # Broken: fails on valid input.
3696continue
3697fi
3698
3699rm -f conftest.err conftest.$ac_ext
3700
3701 # OK, works on sane cases. Now check whether nonexistent headers
3702 # can be detected and how.
3703 cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h. */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h. */
3709#include <ac_nonexistent.h>
3710_ACEOF
3711if { (ac_try="$ac_cpp conftest.$ac_ext"
3712case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715esac
3716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null && {
3724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3726 }; then
3727 # Broken: success on invalid input.
3728continue
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 # Passes both tests.
3734ac_preproc_ok=:
3735break
3736fi
3737
3738rm -f conftest.err conftest.$ac_ext
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742rm -f conftest.err conftest.$ac_ext
3743if $ac_preproc_ok; then
3744 :
3745else
3746 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747See \`config.log' for more details." >&5
3748echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762if test "${ac_cv_path_GREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 # Extract the first word of "grep ggrep" to use in msg output
3766if test -z "$GREP"; then
3767set dummy grep ggrep; ac_prog_name=$2
3768if test "${ac_cv_path_GREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 ac_path_GREP_found=false
3772# Loop through the user's path and test for each of PROGNAME-LIST
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in grep ggrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782 # Check for GNU ac_path_GREP and select it if it is found.
3783 # Check for GNU $ac_path_GREP
3784case `"$ac_path_GREP" --version 2>&1` in
3785*GNU*)
3786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787*)
3788 ac_count=0
3789 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790 while :
3791 do
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 echo 'GREP' >> "conftest.nl"
3796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 ac_count=`expr $ac_count + 1`
3799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_GREP="$ac_path_GREP"
3802 ac_path_GREP_max=$ac_count
3803 fi
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808esac
3809
3810
3811 $ac_path_GREP_found && break 3
3812 done
3813done
3814
3815done
3816IFS=$as_save_IFS
3817
3818
3819fi
3820
3821GREP="$ac_cv_path_GREP"
3822if test -z "$GREP"; then
3823 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825 { (exit 1); exit 1; }; }
3826fi
3827
3828else
3829 ac_cv_path_GREP=$GREP
3830fi
3831
3832
3833fi
3834{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836 GREP="$ac_cv_path_GREP"
3837
3838
3839{ echo "$as_me:$LINENO: checking for egrep" >&5
3840echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845 then ac_cv_path_EGREP="$GREP -E"
3846 else
3847 # Extract the first word of "egrep" to use in msg output
3848if test -z "$EGREP"; then
3849set dummy egrep; ac_prog_name=$2
3850if test "${ac_cv_path_EGREP+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 ac_path_EGREP_found=false
3854# Loop through the user's path and test for each of PROGNAME-LIST
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in egrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864 # Check for GNU ac_path_EGREP and select it if it is found.
3865 # Check for GNU $ac_path_EGREP
3866case `"$ac_path_EGREP" --version 2>&1` in
3867*GNU*)
3868 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3869*)
3870 ac_count=0
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo 'EGREP' >> "conftest.nl"
3878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_EGREP="$ac_path_EGREP"
3884 ac_path_EGREP_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890esac
3891
3892
3893 $ac_path_EGREP_found && break 3
3894 done
3895done
3896
3897done
3898IFS=$as_save_IFS
3899
3900
3901fi
3902
3903EGREP="$ac_cv_path_EGREP"
3904if test -z "$EGREP"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907 { (exit 1); exit 1; }; }
3908fi
3909
3910else
3911 ac_cv_path_EGREP=$EGREP
3912fi
3913
3914
3915 fi
3916fi
3917{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919 EGREP="$ac_cv_path_EGREP"
3920
3921
3922{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3924if test "${ac_cv_header_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h. */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h. */
3933#include <stdlib.h>
3934#include <stdarg.h>
3935#include <string.h>
3936#include <float.h>
3937
3938int
3939main ()
3940{
3941
3942 ;
3943 return 0;
3944}
3945_ACEOF
3946rm -f conftest.$ac_objext
3947if { (ac_try="$ac_compile"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 ac_cv_header_stdc=yes
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 ac_cv_header_stdc=no
3969fi
3970
3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972
3973if test $ac_cv_header_stdc = yes; then
3974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981#include <string.h>
3982
3983_ACEOF
3984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 $EGREP "memchr" >/dev/null 2>&1; then
3986 :
3987else
3988 ac_cv_header_stdc=no
3989fi
3990rm -f conftest*
3991
3992fi
3993
3994if test $ac_cv_header_stdc = yes; then
3995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3996 cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002#include <stdlib.h>
4003
4004_ACEOF
4005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 $EGREP "free" >/dev/null 2>&1; then
4007 :
4008else
4009 ac_cv_header_stdc=no
4010fi
4011rm -f conftest*
4012
4013fi
4014
4015if test $ac_cv_header_stdc = yes; then
4016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4017 if test "$cross_compiling" = yes; then
4018 :
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <ctype.h>
4027#include <stdlib.h>
4028#if ((' ' & 0x0FF) == 0x020)
4029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031#else
4032# define ISLOWER(c) \
4033 (('a' <= (c) && (c) <= 'i') \
4034 || ('j' <= (c) && (c) <= 'r') \
4035 || ('s' <= (c) && (c) <= 'z'))
4036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4037#endif
4038
4039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4040int
4041main ()
4042{
4043 int i;
4044 for (i = 0; i < 256; i++)
4045 if (XOR (islower (i), ISLOWER (i))
4046 || toupper (i) != TOUPPER (i))
4047 return 2;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest$ac_exeext
4052if { (ac_try="$ac_link"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_link") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 :
4072else
4073 echo "$as_me: program exited with status $ac_status" >&5
4074echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077( exit $ac_status )
4078ac_cv_header_stdc=no
4079fi
4080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4081fi
4082
4083
4084fi
4085fi
4086{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4087echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4088if test $ac_cv_header_stdc = yes; then
4089
4090cat >>confdefs.h <<\_ACEOF
4091#define STDC_HEADERS 1
4092_ACEOF
4093
4094fi
4095
4096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4107 inttypes.h stdint.h unistd.h
4108do
4109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
4121$ac_includes_default
4122
4123#include <$ac_header>
4124_ACEOF
4125rm -f conftest.$ac_objext
4126if { (ac_try="$ac_compile"
4127case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4142 eval "$as_ac_Header=yes"
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 eval "$as_ac_Header=no"
4148fi
4149
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151fi
4152ac_res=`eval echo '${'$as_ac_Header'}'`
4153 { echo "$as_me:$LINENO: result: $ac_res" >&5
4154echo "${ECHO_T}$ac_res" >&6; }
4155if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156 cat >>confdefs.h <<_ACEOF
4157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4158_ACEOF
4159
4160fi
4161
4162done
4163
4164
4165{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4166echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4167if test "${ac_cv_c_bigendian+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170 # See if sys/param.h defines the BYTE_ORDER macro.
4171cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h. */
4177#include <sys/types.h>
4178#include <sys/param.h>
4179
4180int
4181main ()
4182{
4183#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4184 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4185 bogus endian macros
4186#endif
4187
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext
4193if { (ac_try="$ac_compile"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4200 ac_status=$?
4201 grep -v '^ *+' conftest.er1 >conftest.err
4202 rm -f conftest.er1
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && {
4206 test -z "$ac_c_werror_flag" ||
4207 test ! -s conftest.err
4208 } && test -s conftest.$ac_objext; then
4209 # It does; now see whether it defined to BIG_ENDIAN or not.
4210cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
4216#include <sys/types.h>
4217#include <sys/param.h>
4218
4219int
4220main ()
4221{
4222#if BYTE_ORDER != BIG_ENDIAN
4223 not big endian
4224#endif
4225
4226 ;
4227 return 0;
4228}
4229_ACEOF
4230rm -f conftest.$ac_objext
4231if { (ac_try="$ac_compile"
4232case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest.$ac_objext; then
4247 ac_cv_c_bigendian=yes
4248else
4249 echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 ac_cv_c_bigendian=no
4253fi
4254
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256else
4257 echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 # It does not; compile a test program.
4261if test "$cross_compiling" = yes; then
4262 # try to guess the endianness by grepping values into an object file
4263 ac_cv_c_bigendian=unknown
4264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4271short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4272void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4273short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4274short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4275void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276int
4277main ()
4278{
4279 _ascii (); _ebcdic ();
4280 ;
4281 return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext
4285if { (ac_try="$ac_compile"
4286case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_compile") 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } && {
4298 test -z "$ac_c_werror_flag" ||
4299 test ! -s conftest.err
4300 } && test -s conftest.$ac_objext; then
4301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4303fi
4304if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4307 else
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4310 fi
4311fi
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316
4317fi
4318
4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320else
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327$ac_includes_default
4328int
4329main ()
4330{
4331
4332 /* Are we little or big endian? From Harbison&Steele. */
4333 union
4334 {
4335 long int l;
4336 char c[sizeof (long int)];
4337 } u;
4338 u.l = 1;
4339 return u.c[sizeof (long int) - 1] == 1;
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345rm -f conftest$ac_exeext
4346if { (ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_link") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_c_bigendian=no
4366else
4367 echo "$as_me: program exited with status $ac_status" >&5
4368echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371( exit $ac_status )
4372ac_cv_c_bigendian=yes
4373fi
4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375fi
4376
4377
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381fi
4382{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384case $ac_cv_c_bigendian in
4385 yes)
4386
4387cat >>confdefs.h <<\_ACEOF
4388#define WORDS_BIGENDIAN 1
4389_ACEOF
4390 ;;
4391 no)
4392 ;;
4393 *)
4394 { { echo "$as_me:$LINENO: error: unknown endianness
4395presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4396echo "$as_me: error: unknown endianness
4397presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4398 { (exit 1); exit 1; }; } ;;
4399esac
4400
4401{ echo "$as_me:$LINENO: checking for X" >&5
4402echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4403
4404
4405# Check whether --with-x was given.
4406if test "${with_x+set}" = set; then
4407 withval=$with_x;
4408fi
4409
4410# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4411if test "x$with_x" = xno; then
4412 # The user explicitly disabled X.
4413 have_x=disabled
4414else
4415 case $x_includes,$x_libraries in #(
4416 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4417echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4418 { (exit 1); exit 1; }; };; #(
4419 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422 # One or both of the vars are not set, and there is no cached value.
4423ac_x_includes=no ac_x_libraries=no
4424rm -f -r conftest.dir
4425if mkdir conftest.dir; then
4426 cd conftest.dir
4427 cat >Imakefile <<'_ACEOF'
4428incroot:
4429 @echo incroot='${INCROOT}'
4430usrlibdir:
4431 @echo usrlibdir='${USRLIBDIR}'
4432libdir:
4433 @echo libdir='${LIBDIR}'
4434_ACEOF
4435 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4436 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4437 for ac_var in incroot usrlibdir libdir; do
4438 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4439 done
4440 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4441 for ac_extension in a so sl; do
4442 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4443 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4444 ac_im_usrlibdir=$ac_im_libdir; break
4445 fi
4446 done
4447 # Screen out bogus values from the imake configuration. They are
4448 # bogus both because they are the default anyway, and because
4449 # using them would break gcc on systems where it needs fixed includes.
4450 case $ac_im_incroot in
4451 /usr/include) ac_x_includes= ;;
4452 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4453 esac
4454 case $ac_im_usrlibdir in
4455 /usr/lib | /lib) ;;
4456 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4457 esac
4458 fi
4459 cd ..
4460 rm -f -r conftest.dir
4461fi
4462
4463# Standard set of common directories for X headers.
4464# Check X11 before X11Rn because it is often a symlink to the current release.
4465ac_x_header_dirs='
4466/usr/X11/include
4467/usr/X11R6/include
4468/usr/X11R5/include
4469/usr/X11R4/include
4470
4471/usr/include/X11
4472/usr/include/X11R6
4473/usr/include/X11R5
4474/usr/include/X11R4
4475
4476/usr/local/X11/include
4477/usr/local/X11R6/include
4478/usr/local/X11R5/include
4479/usr/local/X11R4/include
4480
4481/usr/local/include/X11
4482/usr/local/include/X11R6
4483/usr/local/include/X11R5
4484/usr/local/include/X11R4
4485
4486/usr/X386/include
4487/usr/x386/include
4488/usr/XFree86/include/X11
4489
4490/usr/include
4491/usr/local/include
4492/usr/unsupported/include
4493/usr/athena/include
4494/usr/local/x11r5/include
4495/usr/lpp/Xamples/include
4496
4497/usr/openwin/include
4498/usr/openwin/share/include'
4499
4500if test "$ac_x_includes" = no; then
4501 # Guess where to find include files, by looking for Xlib.h.
4502 # First, try using that file with no special directory specified.
4503 cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509#include <X11/Xlib.h>
4510_ACEOF
4511if { (ac_try="$ac_cpp conftest.$ac_ext"
4512case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null && {
4524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 }; then
4527 # We can compile using X headers with no special include directory.
4528ac_x_includes=
4529else
4530 echo "$as_me: failed program was:" >&5
4531sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 for ac_dir in $ac_x_header_dirs; do
4534 if test -r "$ac_dir/X11/Xlib.h"; then
4535 ac_x_includes=$ac_dir
4536 break
4537 fi
4538done
4539fi
4540
4541rm -f conftest.err conftest.$ac_ext
4542fi # $ac_x_includes = no
4543
4544if test "$ac_x_libraries" = no; then
4545 # Check for the libraries.
4546 # See if we find them without any special options.
4547 # Don't add to $LIBS permanently.
4548 ac_save_LIBS=$LIBS
4549 LIBS="-lX11 $LIBS"
4550 cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h. */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h. */
4556#include <X11/Xlib.h>
4557int
4558main ()
4559{
4560XrmInitialize ()
4561 ;
4562 return 0;
4563}
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (ac_try="$ac_link"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest$ac_exeext &&
4582 $as_test_x conftest$ac_exeext; then
4583 LIBS=$ac_save_LIBS
4584# We can link X programs with no special library path.
4585ac_x_libraries=
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 LIBS=$ac_save_LIBS
4591for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4592do
4593 # Don't even attempt the hair of trying to link an X program!
4594 for ac_extension in a so sl; do
4595 if test -r "$ac_dir/libX11.$ac_extension"; then
4596 ac_x_libraries=$ac_dir
4597 break 2
4598 fi
4599 done
4600done
4601fi
4602
4603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4604 conftest$ac_exeext conftest.$ac_ext
4605fi # $ac_x_libraries = no
4606
4607case $ac_x_includes,$ac_x_libraries in #(
4608 no,* | *,no | *\'*)
4609 # Didn't find X, or a directory has "'" in its name.
4610 ac_cv_have_x="have_x=no";; #(
4611 *)
4612 # Record where we found X for the cache.
4613 ac_cv_have_x="have_x=yes\
4614 ac_x_includes='$ac_x_includes'\
4615 ac_x_libraries='$ac_x_libraries'"
4616esac
4617fi
4618;; #(
4619 *) have_x=yes;;
4620 esac
4621 eval "$ac_cv_have_x"
4622fi # $with_x != no
4623
4624if test "$have_x" != yes; then
4625 { echo "$as_me:$LINENO: result: $have_x" >&5
4626echo "${ECHO_T}$have_x" >&6; }
4627 no_x=yes
4628else
4629 # If each of the values was on the command line, it overrides each guess.
4630 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4631 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4632 # Update the cache value to reflect the command line values.
4633 ac_cv_have_x="have_x=yes\
4634 ac_x_includes='$x_includes'\
4635 ac_x_libraries='$x_libraries'"
4636 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4637echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4638fi
4639
4640if test "$no_x" = yes; then
4641 # Not all programs may use this symbol, but it does not hurt to define it.
4642
4643cat >>confdefs.h <<\_ACEOF
4644#define X_DISPLAY_MISSING 1
4645_ACEOF
4646
4647 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4648else
4649 if test -n "$x_includes"; then
4650 X_CFLAGS="$X_CFLAGS -I$x_includes"
4651 fi
4652
4653 # It would also be nice to do this for all -L options, not just this one.
4654 if test -n "$x_libraries"; then
4655 X_LIBS="$X_LIBS -L$x_libraries"
4656 # For Solaris; some versions of Sun CC require a space after -R and
4657 # others require no space. Words are not sufficient . . . .
4658 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4659echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4660 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4661 ac_xsave_c_werror_flag=$ac_c_werror_flag
4662 ac_c_werror_flag=yes
4663 cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
4669
4670int
4671main ()
4672{
4673
4674 ;
4675 return 0;
4676}
4677_ACEOF
4678rm -f conftest.$ac_objext conftest$ac_exeext
4679if { (ac_try="$ac_link"
4680case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683esac
4684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_link") 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest$ac_exeext &&
4695 $as_test_x conftest$ac_exeext; then
4696 { echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6; }
4698 X_LIBS="$X_LIBS -R$x_libraries"
4699else
4700 echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 LIBS="$ac_xsave_LIBS -R $x_libraries"
4704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719rm -f conftest.$ac_objext conftest$ac_exeext
4720if { (ac_try="$ac_link"
4721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_link") 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest$ac_exeext &&
4736 $as_test_x conftest$ac_exeext; then
4737 { echo "$as_me:$LINENO: result: yes" >&5
4738echo "${ECHO_T}yes" >&6; }
4739 X_LIBS="$X_LIBS -R $x_libraries"
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 { echo "$as_me:$LINENO: result: neither works" >&5
4745echo "${ECHO_T}neither works" >&6; }
4746fi
4747
4748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4749 conftest$ac_exeext conftest.$ac_ext
4750fi
4751
4752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4753 conftest$ac_exeext conftest.$ac_ext
4754 ac_c_werror_flag=$ac_xsave_c_werror_flag
4755 LIBS=$ac_xsave_LIBS
4756 fi
4757
4758 # Check for system-dependent libraries X programs must link with.
4759 # Do this before checking for the system-independent R6 libraries
4760 # (-lICE), since we may need -lsocket or whatever for X linking.
4761
4762 if test "$ISC" = yes; then
4763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4764 else
4765 # Martyn Johnson says this is needed for Ultrix, if the X
4766 # libraries were built with DECnet support. And Karl Berry says
4767 # the Alpha needs dnet_stub (dnet does not exist).
4768 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4769 cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h. */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h. */
4775
4776/* Override any GCC internal prototype to avoid an error.
4777 Use char because int might match the return type of a GCC
4778 builtin and then its argument prototype would still apply. */
4779#ifdef __cplusplus
4780extern "C"
4781#endif
4782char XOpenDisplay ();
4783int
4784main ()
4785{
4786return XOpenDisplay ();
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext conftest$ac_exeext
4792if { (ac_try="$ac_link"
4793case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796esac
4797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_link") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest$ac_exeext &&
4808 $as_test_x conftest$ac_exeext; then
4809 :
4810else
4811 echo "$as_me: failed program was:" >&5
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4815echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4816if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819 ac_check_lib_save_LIBS=$LIBS
4820LIBS="-ldnet $LIBS"
4821cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827
4828/* Override any GCC internal prototype to avoid an error.
4829 Use char because int might match the return type of a GCC
4830 builtin and then its argument prototype would still apply. */
4831#ifdef __cplusplus
4832extern "C"
4833#endif
4834char dnet_ntoa ();
4835int
4836main ()
4837{
4838return dnet_ntoa ();
4839 ;
4840 return 0;
4841}
4842_ACEOF
4843rm -f conftest.$ac_objext conftest$ac_exeext
4844if { (ac_try="$ac_link"
4845case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
4849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_link") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest$ac_exeext &&
4860 $as_test_x conftest$ac_exeext; then
4861 ac_cv_lib_dnet_dnet_ntoa=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_cv_lib_dnet_dnet_ntoa=no
4867fi
4868
4869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4870 conftest$ac_exeext conftest.$ac_ext
4871LIBS=$ac_check_lib_save_LIBS
4872fi
4873{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4874echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4875if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4877fi
4878
4879 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4880 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4881echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4882if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885 ac_check_lib_save_LIBS=$LIBS
4886LIBS="-ldnet_stub $LIBS"
4887cat >conftest.$ac_ext <<_ACEOF
4888/* confdefs.h. */
4889_ACEOF
4890cat confdefs.h >>conftest.$ac_ext
4891cat >>conftest.$ac_ext <<_ACEOF
4892/* end confdefs.h. */
4893
4894/* Override any GCC internal prototype to avoid an error.
4895 Use char because int might match the return type of a GCC
4896 builtin and then its argument prototype would still apply. */
4897#ifdef __cplusplus
4898extern "C"
4899#endif
4900char dnet_ntoa ();
4901int
4902main ()
4903{
4904return dnet_ntoa ();
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext conftest$ac_exeext
4910if { (ac_try="$ac_link"
4911case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914esac
4915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_link") 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest$ac_exeext &&
4926 $as_test_x conftest$ac_exeext; then
4927 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4928else
4929 echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_lib_dnet_stub_dnet_ntoa=no
4933fi
4934
4935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4936 conftest$ac_exeext conftest.$ac_ext
4937LIBS=$ac_check_lib_save_LIBS
4938fi
4939{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4940echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4941if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4942 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4943fi
4944
4945 fi
4946fi
4947
4948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4949 conftest$ac_exeext conftest.$ac_ext
4950 LIBS="$ac_xsave_LIBS"
4951
4952 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4953 # to get the SysV transport functions.
4954 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4955 # needs -lnsl.
4956 # The nsl library prevents programs from opening the X display
4957 # on Irix 5.2, according to T.E. Dickey.
4958 # The functions gethostbyname, getservbyname, and inet_addr are
4959 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4960 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4961echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4962if test "${ac_cv_func_gethostbyname+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973#define gethostbyname innocuous_gethostbyname
4974
4975/* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char gethostbyname (); below.
4977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 <limits.h> exists even on freestanding compilers. */
4979
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
4985
4986#undef gethostbyname
4987
4988/* Override any GCC internal prototype to avoid an error.
4989 Use char because int might match the return type of a GCC
4990 builtin and then its argument prototype would still apply. */
4991#ifdef __cplusplus
4992extern "C"
4993#endif
4994char gethostbyname ();
4995/* The GNU C library defines this for functions which it implements
4996 to always fail with ENOSYS. Some functions are actually named
4997 something starting with __ and the normal name is an alias. */
4998#if defined __stub_gethostbyname || defined __stub___gethostbyname
4999choke me
5000#endif
5001
5002int
5003main ()
5004{
5005return gethostbyname ();
5006 ;
5007 return 0;
5008}
5009_ACEOF
5010rm -f conftest.$ac_objext conftest$ac_exeext
5011if { (ac_try="$ac_link"
5012case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 ac_cv_func_gethostbyname=yes
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ac_cv_func_gethostbyname=no
5034fi
5035
5036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5037 conftest$ac_exeext conftest.$ac_ext
5038fi
5039{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5040echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5041
5042 if test $ac_cv_func_gethostbyname = no; then
5043 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5044echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5045if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 ac_check_lib_save_LIBS=$LIBS
5049LIBS="-lnsl $LIBS"
5050cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056
5057/* Override any GCC internal prototype to avoid an error.
5058 Use char because int might match the return type of a GCC
5059 builtin and then its argument prototype would still apply. */
5060#ifdef __cplusplus
5061extern "C"
5062#endif
5063char gethostbyname ();
5064int
5065main ()
5066{
5067return gethostbyname ();
5068 ;
5069 return 0;
5070}
5071_ACEOF
5072rm -f conftest.$ac_objext conftest$ac_exeext
5073if { (ac_try="$ac_link"
5074case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5077esac
5078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_link") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } && {
5086 test -z "$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 } && test -s conftest$ac_exeext &&
5089 $as_test_x conftest$ac_exeext; then
5090 ac_cv_lib_nsl_gethostbyname=yes
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ac_cv_lib_nsl_gethostbyname=no
5096fi
5097
5098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5099 conftest$ac_exeext conftest.$ac_ext
5100LIBS=$ac_check_lib_save_LIBS
5101fi
5102{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5103echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5104if test $ac_cv_lib_nsl_gethostbyname = yes; then
5105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5106fi
5107
5108 if test $ac_cv_lib_nsl_gethostbyname = no; then
5109 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5110echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5111if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113else
5114 ac_check_lib_save_LIBS=$LIBS
5115LIBS="-lbsd $LIBS"
5116cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122
5123/* Override any GCC internal prototype to avoid an error.
5124 Use char because int might match the return type of a GCC
5125 builtin and then its argument prototype would still apply. */
5126#ifdef __cplusplus
5127extern "C"
5128#endif
5129char gethostbyname ();
5130int
5131main ()
5132{
5133return gethostbyname ();
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext conftest$ac_exeext
5139if { (ac_try="$ac_link"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_link") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest$ac_exeext &&
5155 $as_test_x conftest$ac_exeext; then
5156 ac_cv_lib_bsd_gethostbyname=yes
5157else
5158 echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 ac_cv_lib_bsd_gethostbyname=no
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5165 conftest$ac_exeext conftest.$ac_ext
5166LIBS=$ac_check_lib_save_LIBS
5167fi
5168{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5169echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5170if test $ac_cv_lib_bsd_gethostbyname = yes; then
5171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5172fi
5173
5174 fi
5175 fi
5176
5177 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5178 # socket/setsockopt and other routines are undefined under SCO ODT
5179 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5180 # on later versions), says Simon Leinen: it contains gethostby*
5181 # variants that don't use the name server (or something). -lsocket
5182 # must be given before -lnsl if both are needed. We assume that
5183 # if connect needs -lnsl, so does gethostbyname.
5184 { echo "$as_me:$LINENO: checking for connect" >&5
5185echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5186if test "${ac_cv_func_connect+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5197#define connect innocuous_connect
5198
5199/* System header to define __stub macros and hopefully few prototypes,
5200 which can conflict with char connect (); below.
5201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5202 <limits.h> exists even on freestanding compilers. */
5203
5204#ifdef __STDC__
5205# include <limits.h>
5206#else
5207# include <assert.h>
5208#endif
5209
5210#undef connect
5211
5212/* Override any GCC internal prototype to avoid an error.
5213 Use char because int might match the return type of a GCC
5214 builtin and then its argument prototype would still apply. */
5215#ifdef __cplusplus
5216extern "C"
5217#endif
5218char connect ();
5219/* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222#if defined __stub_connect || defined __stub___connect
5223choke me
5224#endif
5225
5226int
5227main ()
5228{
5229return connect ();
5230 ;
5231 return 0;
5232}
5233_ACEOF
5234rm -f conftest.$ac_objext conftest$ac_exeext
5235if { (ac_try="$ac_link"
5236case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239esac
5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_link") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest$ac_exeext &&
5251 $as_test_x conftest$ac_exeext; then
5252 ac_cv_func_connect=yes
5253else
5254 echo "$as_me: failed program was:" >&5
5255sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 ac_cv_func_connect=no
5258fi
5259
5260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5261 conftest$ac_exeext conftest.$ac_ext
5262fi
5263{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5264echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5265
5266 if test $ac_cv_func_connect = no; then
5267 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5268echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5269if test "${ac_cv_lib_socket_connect+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 ac_check_lib_save_LIBS=$LIBS
5273LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5274cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */
5280
5281/* Override any GCC internal prototype to avoid an error.
5282 Use char because int might match the return type of a GCC
5283 builtin and then its argument prototype would still apply. */
5284#ifdef __cplusplus
5285extern "C"
5286#endif
5287char connect ();
5288int
5289main ()
5290{
5291return connect ();
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext conftest$ac_exeext
5297if { (ac_try="$ac_link"
5298case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301esac
5302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_link") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest$ac_exeext &&
5313 $as_test_x conftest$ac_exeext; then
5314 ac_cv_lib_socket_connect=yes
5315else
5316 echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_cv_lib_socket_connect=no
5320fi
5321
5322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323 conftest$ac_exeext conftest.$ac_ext
5324LIBS=$ac_check_lib_save_LIBS
5325fi
5326{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5327echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5328if test $ac_cv_lib_socket_connect = yes; then
5329 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5330fi
5331
5332 fi
5333
5334 # Guillermo Gomez says -lposix is necessary on A/UX.
5335 { echo "$as_me:$LINENO: checking for remove" >&5
5336echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5337if test "${ac_cv_func_remove+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346/* Define remove to an innocuous variant, in case <limits.h> declares remove.
5347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5348#define remove innocuous_remove
5349
5350/* System header to define __stub macros and hopefully few prototypes,
5351 which can conflict with char remove (); below.
5352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 <limits.h> exists even on freestanding compilers. */
5354
5355#ifdef __STDC__
5356# include <limits.h>
5357#else
5358# include <assert.h>
5359#endif
5360
5361#undef remove
5362
5363/* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5366#ifdef __cplusplus
5367extern "C"
5368#endif
5369char remove ();
5370/* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373#if defined __stub_remove || defined __stub___remove
5374choke me
5375#endif
5376
5377int
5378main ()
5379{
5380return remove ();
5381 ;
5382 return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext conftest$ac_exeext
5386if { (ac_try="$ac_link"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest$ac_exeext &&
5402 $as_test_x conftest$ac_exeext; then
5403 ac_cv_func_remove=yes
5404else
5405 echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_cv_func_remove=no
5409fi
5410
5411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5412 conftest$ac_exeext conftest.$ac_ext
5413fi
5414{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5415echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5416
5417 if test $ac_cv_func_remove = no; then
5418 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5419echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5420if test "${ac_cv_lib_posix_remove+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 ac_check_lib_save_LIBS=$LIBS
5424LIBS="-lposix $LIBS"
5425cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431
5432/* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5435#ifdef __cplusplus
5436extern "C"
5437#endif
5438char remove ();
5439int
5440main ()
5441{
5442return remove ();
5443 ;
5444 return 0;
5445}
5446_ACEOF
5447rm -f conftest.$ac_objext conftest$ac_exeext
5448if { (ac_try="$ac_link"
5449case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_link") 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest$ac_exeext &&
5464 $as_test_x conftest$ac_exeext; then
5465 ac_cv_lib_posix_remove=yes
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 ac_cv_lib_posix_remove=no
5471fi
5472
5473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5474 conftest$ac_exeext conftest.$ac_ext
5475LIBS=$ac_check_lib_save_LIBS
5476fi
5477{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5478echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5479if test $ac_cv_lib_posix_remove = yes; then
5480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5481fi
5482
5483 fi
5484
5485 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5486 { echo "$as_me:$LINENO: checking for shmat" >&5
5487echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5488if test "${ac_cv_func_shmat+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5499#define shmat innocuous_shmat
5500
5501/* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char shmat (); below.
5503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 <limits.h> exists even on freestanding compilers. */
5505
5506#ifdef __STDC__
5507# include <limits.h>
5508#else
5509# include <assert.h>
5510#endif
5511
5512#undef shmat
5513
5514/* Override any GCC internal prototype to avoid an error.
5515 Use char because int might match the return type of a GCC
5516 builtin and then its argument prototype would still apply. */
5517#ifdef __cplusplus
5518extern "C"
5519#endif
5520char shmat ();
5521/* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524#if defined __stub_shmat || defined __stub___shmat
5525choke me
5526#endif
5527
5528int
5529main ()
5530{
5531return shmat ();
5532 ;
5533 return 0;
5534}
5535_ACEOF
5536rm -f conftest.$ac_objext conftest$ac_exeext
5537if { (ac_try="$ac_link"
5538case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541esac
5542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_link") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest$ac_exeext &&
5553 $as_test_x conftest$ac_exeext; then
5554 ac_cv_func_shmat=yes
5555else
5556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 ac_cv_func_shmat=no
5560fi
5561
5562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5563 conftest$ac_exeext conftest.$ac_ext
5564fi
5565{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5566echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5567
5568 if test $ac_cv_func_shmat = no; then
5569 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5570echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5571if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574 ac_check_lib_save_LIBS=$LIBS
5575LIBS="-lipc $LIBS"
5576cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h. */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h. */
5582
5583/* Override any GCC internal prototype to avoid an error.
5584 Use char because int might match the return type of a GCC
5585 builtin and then its argument prototype would still apply. */
5586#ifdef __cplusplus
5587extern "C"
5588#endif
5589char shmat ();
5590int
5591main ()
5592{
5593return shmat ();
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598rm -f conftest.$ac_objext conftest$ac_exeext
5599if { (ac_try="$ac_link"
5600case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_link") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest$ac_exeext &&
5615 $as_test_x conftest$ac_exeext; then
5616 ac_cv_lib_ipc_shmat=yes
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_lib_ipc_shmat=no
5622fi
5623
5624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5625 conftest$ac_exeext conftest.$ac_ext
5626LIBS=$ac_check_lib_save_LIBS
5627fi
5628{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5629echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5630if test $ac_cv_lib_ipc_shmat = yes; then
5631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5632fi
5633
5634 fi
5635 fi
5636
5637 # Check for libraries that X11R6 Xt/Xaw programs need.
5638 ac_save_LDFLAGS=$LDFLAGS
5639 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5640 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5641 # check for ICE first), but we must link in the order -lSM -lICE or
5642 # we get undefined symbols. So assume we have SM if we have ICE.
5643 # These have to be linked with before -lX11, unlike the other
5644 # libraries we check for below, so use a different variable.
5645 # John Interrante, Karl Berry
5646 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5647echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5648if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651 ac_check_lib_save_LIBS=$LIBS
5652LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5653cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659
5660/* Override any GCC internal prototype to avoid an error.
5661 Use char because int might match the return type of a GCC
5662 builtin and then its argument prototype would still apply. */
5663#ifdef __cplusplus
5664extern "C"
5665#endif
5666char IceConnectionNumber ();
5667int
5668main ()
5669{
5670return IceConnectionNumber ();
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
5676if { (ac_try="$ac_link"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_link") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest$ac_exeext &&
5692 $as_test_x conftest$ac_exeext; then
5693 ac_cv_lib_ICE_IceConnectionNumber=yes
5694else
5695 echo "$as_me: failed program was:" >&5
5696sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_lib_ICE_IceConnectionNumber=no
5699fi
5700
5701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5702 conftest$ac_exeext conftest.$ac_ext
5703LIBS=$ac_check_lib_save_LIBS
5704fi
5705{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5706echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5707if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5708 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5709fi
5710
5711 LDFLAGS=$ac_save_LDFLAGS
5712
5713fi
5714
5715
5716ODE_SONAME=libode.so.$ODE_CURRENT
5717
5718
5719
5720
5721
5722
5723
5724{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5725echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5726set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5727if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.make <<\_ACEOF
5731SHELL = /bin/sh
5732all:
5733 @echo '@@@%%%=$(MAKE)=@@@%%%'
5734_ACEOF
5735# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5736case `${MAKE-make} -f conftest.make 2>/dev/null` in
5737 *@@@%%%=?*=@@@%%%*)
5738 eval ac_cv_prog_make_${ac_make}_set=yes;;
5739 *)
5740 eval ac_cv_prog_make_${ac_make}_set=no;;
5741esac
5742rm -f conftest.make
5743fi
5744if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5745 { echo "$as_me:$LINENO: result: yes" >&5
5746echo "${ECHO_T}yes" >&6; }
5747 SET_MAKE=
5748else
5749 { echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6; }
5751 SET_MAKE="MAKE=${MAKE-make}"
5752fi
5753
5754
5755ac_ext=cpp
5756ac_cpp='$CXXCPP $CPPFLAGS'
5757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5760if test -z "$CXX"; then
5761 if test -n "$CCC"; then
5762 CXX=$CCC
5763 else
5764 if test -n "$ac_tool_prefix"; then
5765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5766 do
5767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771if test "${ac_cv_prog_CXX+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 if test -n "$CXX"; then
5775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794CXX=$ac_cv_prog_CXX
5795if test -n "$CXX"; then
5796 { echo "$as_me:$LINENO: result: $CXX" >&5
5797echo "${ECHO_T}$CXX" >&6; }
5798else
5799 { echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6; }
5801fi
5802
5803
5804 test -n "$CXX" && break
5805 done
5806fi
5807if test -z "$CXX"; then
5808 ac_ct_CXX=$CXX
5809 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5810do
5811 # Extract the first word of "$ac_prog", so it can be a program name with args.
5812set dummy $ac_prog; ac_word=$2
5813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 if test -n "$ac_ct_CXX"; then
5819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_ac_ct_CXX="$ac_prog"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5839if test -n "$ac_ct_CXX"; then
5840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5841echo "${ECHO_T}$ac_ct_CXX" >&6; }
5842else
5843 { echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6; }
5845fi
5846
5847
5848 test -n "$ac_ct_CXX" && break
5849done
5850
5851 if test "x$ac_ct_CXX" = x; then
5852 CXX="g++"
5853 else
5854 case $cross_compiling:$ac_tool_warned in
5855yes:)
5856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5857whose name does not start with the host triplet. If you think this
5858configuration is useful to you, please write to autoconf@gnu.org." >&5
5859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5860whose name does not start with the host triplet. If you think this
5861configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864 CXX=$ac_ct_CXX
5865 fi
5866fi
5867
5868 fi
5869fi
5870# Provide some information about the compiler.
5871echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5872ac_compiler=`set X $ac_compile; echo $2`
5873{ (ac_try="$ac_compiler --version >&5"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_compiler --version >&5") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }
5883{ (ac_try="$ac_compiler -v >&5"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compiler -v >&5") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }
5893{ (ac_try="$ac_compiler -V >&5"
5894case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897esac
5898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_compiler -V >&5") 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }
5903
5904{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h. */
5915
5916int
5917main ()
5918{
5919#ifndef __GNUC__
5920 choke me
5921#endif
5922
5923 ;
5924 return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (ac_try="$ac_compile"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_compile") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } && {
5941 test -z "$ac_cxx_werror_flag" ||
5942 test ! -s conftest.err
5943 } && test -s conftest.$ac_objext; then
5944 ac_compiler_gnu=yes
5945else
5946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ac_compiler_gnu=no
5950fi
5951
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5954
5955fi
5956{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5957echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5958GXX=`test $ac_compiler_gnu = yes && echo yes`
5959ac_test_CXXFLAGS=${CXXFLAGS+set}
5960ac_save_CXXFLAGS=$CXXFLAGS
5961{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5962echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5963if test "${ac_cv_prog_cxx_g+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965else
5966 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5967 ac_cxx_werror_flag=yes
5968 ac_cv_prog_cxx_g=no
5969 CXXFLAGS="-g"
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976
5977int
5978main ()
5979{
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext
5986if { (ac_try="$ac_compile"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_cxx_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6002 ac_cv_prog_cxx_g=yes
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 CXXFLAGS=""
6008 cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014
6015int
6016main ()
6017{
6018
6019 ;
6020 return 0;
6021}
6022_ACEOF
6023rm -f conftest.$ac_objext
6024if { (ac_try="$ac_compile"
6025case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compile") 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } && {
6037 test -z "$ac_cxx_werror_flag" ||
6038 test ! -s conftest.err
6039 } && test -s conftest.$ac_objext; then
6040 :
6041else
6042 echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6046 CXXFLAGS="-g"
6047 cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
6053
6054int
6055main ()
6056{
6057
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
6063if { (ac_try="$ac_compile"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_cxx_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 ac_cv_prog_cxx_g=yes
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084
6085fi
6086
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091fi
6092
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6095fi
6096{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6097echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6098if test "$ac_test_CXXFLAGS" = set; then
6099 CXXFLAGS=$ac_save_CXXFLAGS
6100elif test $ac_cv_prog_cxx_g = yes; then
6101 if test "$GXX" = yes; then
6102 CXXFLAGS="-g -O2"
6103 else
6104 CXXFLAGS="-g"
6105 fi
6106else
6107 if test "$GXX" = yes; then
6108 CXXFLAGS="-O2"
6109 else
6110 CXXFLAGS=
6111 fi
6112fi
6113ac_ext=c
6114ac_cpp='$CPP $CPPFLAGS'
6115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118
6119depcc="$CXX" am_compiler_list=
6120
6121{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6122echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6123if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6127 # We make a subdir and do the tests there. Otherwise we can end up
6128 # making bogus files that we don't know about and never remove. For
6129 # instance it was reported that on HP-UX the gcc test will end up
6130 # making a dummy file named `D' -- because `-MD' means `put the output
6131 # in D'.
6132 mkdir conftest.dir
6133 # Copy depcomp to subdir because otherwise we won't find it if we're
6134 # using a relative directory.
6135 cp "$am_depcomp" conftest.dir
6136 cd conftest.dir
6137 # We will build objects and dependencies in a subdirectory because
6138 # it helps to detect inapplicable dependency modes. For instance
6139 # both Tru64's cc and ICC support -MD to output dependencies as a
6140 # side effect of compilation, but ICC will put the dependencies in
6141 # the current directory while Tru64 will put them in the object
6142 # directory.
6143 mkdir sub
6144
6145 am_cv_CXX_dependencies_compiler_type=none
6146 if test "$am_compiler_list" = ""; then
6147 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6148 fi
6149 for depmode in $am_compiler_list; do
6150 # Setup a source with many dependencies, because some compilers
6151 # like to wrap large dependency lists on column 80 (with \), and
6152 # we should not choose a depcomp mode which is confused by this.
6153 #
6154 # We need to recreate these files for each test, as the compiler may
6155 # overwrite some of them when testing with obscure command lines.
6156 # This happens at least with the AIX C compiler.
6157 : > sub/conftest.c
6158 for i in 1 2 3 4 5 6; do
6159 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6161 # Solaris 8's {/usr,}/bin/sh.
6162 touch sub/conftst$i.h
6163 done
6164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6165
6166 case $depmode in
6167 nosideeffect)
6168 # after this tag, mechanisms are not by side-effect, so they'll
6169 # only be used when explicitly requested
6170 if test "x$enable_dependency_tracking" = xyes; then
6171 continue
6172 else
6173 break
6174 fi
6175 ;;
6176 none) break ;;
6177 esac
6178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6179 # mode. It turns out that the SunPro C++ compiler does not properly
6180 # handle `-M -o', and we need to detect this.
6181 if depmode=$depmode \
6182 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6184 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6185 >/dev/null 2>conftest.err &&
6186 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6190 # icc doesn't choke on unknown options, it will just issue warnings
6191 # or remarks (even with -Werror). So we grep stderr for any message
6192 # that says an option was ignored or not supported.
6193 # When given -MP, icc 7.0 and 7.1 complain thusly:
6194 # icc: Command line warning: ignoring option '-M'; no argument required
6195 # The diagnosis changed in icc 8.0:
6196 # icc: Command line remark: option '-MP' not supported
6197 if (grep 'ignoring option' conftest.err ||
6198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6199 am_cv_CXX_dependencies_compiler_type=$depmode
6200 break
6201 fi
6202 fi
6203 done
6204
6205 cd ..
6206 rm -rf conftest.dir
6207else
6208 am_cv_CXX_dependencies_compiler_type=none
6209fi
6210
6211fi
6212{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6213echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6214CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6215
6216 if
6217 test "x$enable_dependency_tracking" != xno \
6218 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6219 am__fastdepCXX_TRUE=
6220 am__fastdepCXX_FALSE='#'
6221else
6222 am__fastdepCXX_TRUE='#'
6223 am__fastdepCXX_FALSE=
6224fi
6225
6226
6227# Find a good install program. We prefer a C program (faster),
6228# so one script is as good as another. But avoid the broken or
6229# incompatible versions:
6230# SysV /etc/install, /usr/sbin/install
6231# SunOS /usr/etc/install
6232# IRIX /sbin/install
6233# AIX /bin/install
6234# AmigaOS /C/install, which installs bootblocks on floppy discs
6235# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6236# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6237# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6238# OS/2's system install, which has a completely different semantic
6239# ./install, which can be erroneously created by make from ./install.sh.
6240{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6241echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6242if test -z "$INSTALL"; then
6243if test "${ac_cv_path_install+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 # Account for people who put trailing slashes in PATH elements.
6252case $as_dir/ in
6253 ./ | .// | /cC/* | \
6254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6255 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6256 /usr/ucb/* ) ;;
6257 *)
6258 # OSF1 and SCO ODT 3.0 have their own names for install.
6259 # Don't use installbsd from OSF since it installs stuff as root
6260 # by default.
6261 for ac_prog in ginstall scoinst install; do
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6264 if test $ac_prog = install &&
6265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6266 # AIX install. It has an incompatible calling convention.
6267 :
6268 elif test $ac_prog = install &&
6269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6270 # program-specific install script used by HP pwplus--don't use.
6271 :
6272 else
6273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6274 break 3
6275 fi
6276 fi
6277 done
6278 done
6279 ;;
6280esac
6281done
6282IFS=$as_save_IFS
6283
6284
6285fi
6286 if test "${ac_cv_path_install+set}" = set; then
6287 INSTALL=$ac_cv_path_install
6288 else
6289 # As a last resort, use the slow shell script. Don't cache a
6290 # value for INSTALL within a source directory, because that will
6291 # break other packages using the cache if that directory is
6292 # removed, or if the value is a relative name.
6293 INSTALL=$ac_install_sh
6294 fi
6295fi
6296{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6297echo "${ECHO_T}$INSTALL" >&6; }
6298
6299# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6300# It thinks the first close brace ends the variable substitution.
6301test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6302
6303test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6304
6305test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6306
6307if test -n "$ac_tool_prefix"; then
6308 for ac_prog in windres
6309 do
6310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314if test "${ac_cv_prog_WINDRES+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317 if test -n "$WINDRES"; then
6318 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_WINDRES="$ac_tool_prefix$ac_prog"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337WINDRES=$ac_cv_prog_WINDRES
6338if test -n "$WINDRES"; then
6339 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6340echo "${ECHO_T}$WINDRES" >&6; }
6341else
6342 { echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6; }
6344fi
6345
6346
6347 test -n "$WINDRES" && break
6348 done
6349fi
6350if test -z "$WINDRES"; then
6351 ac_ct_WINDRES=$WINDRES
6352 for ac_prog in windres
6353do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355set dummy $ac_prog; ac_word=$2
6356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 if test -n "$ac_ct_WINDRES"; then
6362 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_WINDRES="$ac_prog"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376done
6377IFS=$as_save_IFS
6378
6379fi
6380fi
6381ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6382if test -n "$ac_ct_WINDRES"; then
6383 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6384echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6385else
6386 { echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6; }
6388fi
6389
6390
6391 test -n "$ac_ct_WINDRES" && break
6392done
6393
6394 if test "x$ac_ct_WINDRES" = x; then
6395 WINDRES=""
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398yes:)
6399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6400whose name does not start with the host triplet. If you think this
6401configuration is useful to you, please write to autoconf@gnu.org." >&5
6402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6403whose name does not start with the host triplet. If you think this
6404configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6405ac_tool_warned=yes ;;
6406esac
6407 WINDRES=$ac_ct_WINDRES
6408 fi
6409fi
6410
6411{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6412echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6413if test "${ac_cv_c_const+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416 cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
6422
6423int
6424main ()
6425{
6426/* FIXME: Include the comments suggested by Paul. */
6427#ifndef __cplusplus
6428 /* Ultrix mips cc rejects this. */
6429 typedef int charset[2];
6430 const charset cs;
6431 /* SunOS 4.1.1 cc rejects this. */
6432 char const *const *pcpcc;
6433 char **ppc;
6434 /* NEC SVR4.0.2 mips cc rejects this. */
6435 struct point {int x, y;};
6436 static struct point const zero = {0,0};
6437 /* AIX XL C 1.02.0.0 rejects this.
6438 It does not let you subtract one const X* pointer from another in
6439 an arm of an if-expression whose if-part is not a constant
6440 expression */
6441 const char *g = "string";
6442 pcpcc = &g + (g ? g-g : 0);
6443 /* HPUX 7.0 cc rejects these. */
6444 ++pcpcc;
6445 ppc = (char**) pcpcc;
6446 pcpcc = (char const *const *) ppc;
6447 { /* SCO 3.2v4 cc rejects this. */
6448 char *t;
6449 char const *s = 0 ? (char *) 0 : (char const *) 0;
6450
6451 *t++ = 0;
6452 if (s) return 0;
6453 }
6454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6455 int x[] = {25, 17};
6456 const int *foo = &x[0];
6457 ++foo;
6458 }
6459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6460 typedef const int *iptr;
6461 iptr p = 0;
6462 ++p;
6463 }
6464 { /* AIX XL C 1.02.0.0 rejects this saying
6465 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6466 struct s { int j; const int *ap[3]; };
6467 struct s *b; b->j = 5;
6468 }
6469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6470 const int foo = 10;
6471 if (!foo) return 0;
6472 }
6473 return !cs[0] && !zero.x;
6474#endif
6475
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (ac_try="$ac_compile"
6482case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_c_const=yes
6498else
6499 echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ac_cv_c_const=no
6503fi
6504
6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506fi
6507{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6508echo "${ECHO_T}$ac_cv_c_const" >&6; }
6509if test $ac_cv_c_const = no; then
6510
6511cat >>confdefs.h <<\_ACEOF
6512#define const
6513_ACEOF
6514
6515fi
6516
6517{ echo "$as_me:$LINENO: checking for inline" >&5
6518echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6519if test "${ac_cv_c_inline+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522 ac_cv_c_inline=no
6523for ac_kw in inline __inline__ __inline; do
6524 cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530#ifndef __cplusplus
6531typedef int foo_t;
6532static $ac_kw foo_t static_foo () {return 0; }
6533$ac_kw foo_t foo () {return 0; }
6534#endif
6535
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_cv_c_inline=$ac_kw
6555else
6556 echo "$as_me: failed program was:" >&5
6557sed 's/^/| /' conftest.$ac_ext >&5
6558
6559
6560fi
6561
6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 test "$ac_cv_c_inline" != no && break
6564done
6565
6566fi
6567{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6568echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6569
6570
6571case $ac_cv_c_inline in
6572 inline | yes) ;;
6573 *)
6574 case $ac_cv_c_inline in
6575 no) ac_val=;;
6576 *) ac_val=$ac_cv_c_inline;;
6577 esac
6578 cat >>confdefs.h <<_ACEOF
6579#ifndef __cplusplus
6580#define inline $ac_val
6581#endif
6582_ACEOF
6583 ;;
6584esac
6585
6586{ echo "$as_me:$LINENO: checking for working volatile" >&5
6587echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
6588if test "${ac_cv_c_volatile+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591 cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
6597
6598int
6599main ()
6600{
6601
6602volatile int x;
6603int * volatile y = (int *) 0;
6604return !x && !y;
6605 ;
6606 return 0;
6607}
6608_ACEOF
6609rm -f conftest.$ac_objext
6610if { (ac_try="$ac_compile"
6611case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614esac
6615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.$ac_objext; then
6626 ac_cv_c_volatile=yes
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_c_volatile=no
6632fi
6633
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635fi
6636{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6637echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
6638if test $ac_cv_c_volatile = no; then
6639
6640cat >>confdefs.h <<\_ACEOF
6641#define volatile
6642_ACEOF
6643
6644fi
6645
6646{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6647echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6648if test "${ac_cv_header_stdbool_h+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657
6658#include <stdbool.h>
6659#ifndef bool
6660 "error: bool is not defined"
6661#endif
6662#ifndef false
6663 "error: false is not defined"
6664#endif
6665#if false
6666 "error: false is not 0"
6667#endif
6668#ifndef true
6669 "error: true is not defined"
6670#endif
6671#if true != 1
6672 "error: true is not 1"
6673#endif
6674#ifndef __bool_true_false_are_defined
6675 "error: __bool_true_false_are_defined is not defined"
6676#endif
6677
6678 struct s { _Bool s: 1; _Bool t; } s;
6679
6680 char a[true == 1 ? 1 : -1];
6681 char b[false == 0 ? 1 : -1];
6682 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6683 char d[(bool) 0.5 == true ? 1 : -1];
6684 bool e = &s;
6685 char f[(_Bool) 0.0 == false ? 1 : -1];
6686 char g[true];
6687 char h[sizeof (_Bool)];
6688 char i[sizeof s.t];
6689 enum { j = false, k = true, l = false * true, m = true * 256 };
6690 _Bool n[m];
6691 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6692 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6693# if defined __xlc__ || defined __GNUC__
6694 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6695 reported by James Lemley on 2005-10-05; see
6696 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6697 This test is not quite right, since xlc is allowed to
6698 reject this program, as the initializer for xlcbug is
6699 not one of the forms that C requires support for.
6700 However, doing the test right would require a runtime
6701 test, and that would make cross-compilation harder.
6702 Let us hope that IBM fixes the xlc bug, and also adds
6703 support for this kind of constant expression. In the
6704 meantime, this test will reject xlc, which is OK, since
6705 our stdbool.h substitute should suffice. We also test
6706 this with GCC, where it should work, to detect more
6707 quickly whether someone messes up the test in the
6708 future. */
6709 char digs[] = "0123456789";
6710 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6711# endif
6712 /* Catch a bug in an HP-UX C compiler. See
6713 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6714 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6715 */
6716 _Bool q = true;
6717 _Bool *pq = &q;
6718
6719int
6720main ()
6721{
6722
6723 *pq |= q;
6724 *pq |= ! q;
6725 /* Refer to every declared value, to avoid compiler optimizations. */
6726 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6727 + !m + !n + !o + !p + !q + !pq);
6728
6729 ;
6730 return 0;
6731}
6732_ACEOF
6733rm -f conftest.$ac_objext
6734if { (ac_try="$ac_compile"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 ac_cv_header_stdbool_h=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 ac_cv_header_stdbool_h=no
6756fi
6757
6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759fi
6760{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6761echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6762{ echo "$as_me:$LINENO: checking for _Bool" >&5
6763echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6764if test "${ac_cv_type__Bool+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
6767 cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773$ac_includes_default
6774typedef _Bool ac__type_new_;
6775int
6776main ()
6777{
6778if ((ac__type_new_ *) 0)
6779 return 0;
6780if (sizeof (ac__type_new_))
6781 return 0;
6782 ;
6783 return 0;
6784}
6785_ACEOF
6786rm -f conftest.$ac_objext
6787if { (ac_try="$ac_compile"
6788case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791esac
6792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_type__Bool=yes
6804else
6805 echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 ac_cv_type__Bool=no
6809fi
6810
6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812fi
6813{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6814echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6815if test $ac_cv_type__Bool = yes; then
6816
6817cat >>confdefs.h <<_ACEOF
6818#define HAVE__BOOL 1
6819_ACEOF
6820
6821
6822fi
6823
6824if test $ac_cv_header_stdbool_h = yes; then
6825
6826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_STDBOOL_H 1
6828_ACEOF
6829
6830fi
6831
6832if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837if test "${ac_cv_prog_RANLIB+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840 if test -n "$RANLIB"; then
6841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860RANLIB=$ac_cv_prog_RANLIB
6861if test -n "$RANLIB"; then
6862 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6863echo "${ECHO_T}$RANLIB" >&6; }
6864else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6; }
6867fi
6868
6869
6870fi
6871if test -z "$ac_cv_prog_RANLIB"; then
6872 ac_ct_RANLIB=$RANLIB
6873 # Extract the first word of "ranlib", so it can be a program name with args.
6874set dummy ranlib; ac_word=$2
6875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 if test -n "$ac_ct_RANLIB"; then
6881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_ac_ct_RANLIB="ranlib"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894done
6895done
6896IFS=$as_save_IFS
6897
6898fi
6899fi
6900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6901if test -n "$ac_ct_RANLIB"; then
6902 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6903echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6904else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6; }
6907fi
6908
6909 if test "x$ac_ct_RANLIB" = x; then
6910 RANLIB=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913yes:)
6914{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6915whose name does not start with the host triplet. If you think this
6916configuration is useful to you, please write to autoconf@gnu.org." >&5
6917echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6918whose name does not start with the host triplet. If you think this
6919configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6920ac_tool_warned=yes ;;
6921esac
6922 RANLIB=$ac_ct_RANLIB
6923 fi
6924else
6925 RANLIB="$ac_cv_prog_RANLIB"
6926fi
6927
6928{ echo "$as_me:$LINENO: checking for size_t" >&5
6929echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6930if test "${ac_cv_type_size_t+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933 cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939$ac_includes_default
6940typedef size_t ac__type_new_;
6941int
6942main ()
6943{
6944if ((ac__type_new_ *) 0)
6945 return 0;
6946if (sizeof (ac__type_new_))
6947 return 0;
6948 ;
6949 return 0;
6950}
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (ac_try="$ac_compile"
6954case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957esac
6958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_compile") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest.$ac_objext; then
6969 ac_cv_type_size_t=yes
6970else
6971 echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 ac_cv_type_size_t=no
6975fi
6976
6977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978fi
6979{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6980echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6981if test $ac_cv_type_size_t = yes; then
6982 :
6983else
6984
6985cat >>confdefs.h <<_ACEOF
6986#define size_t unsigned int
6987_ACEOF
6988
6989fi
6990
6991
6992{ echo "$as_me:$LINENO: checking if a soname should be set" >&5
6993echo $ECHO_N "checking if a soname should be set... $ECHO_C" >&6; }
6994# Check whether --enable-soname was given.
6995if test "${enable_soname+set}" = set; then
6996 enableval=$enable_soname; use_soname=$enableval
6997else
6998 use_soname=no
6999fi
7000
7001{ echo "$as_me:$LINENO: result: $use_soname" >&5
7002echo "${ECHO_T}$use_soname" >&6; }
7003 if test x$use_soname = xyes; then
7004 USE_SONAME_TRUE=
7005 USE_SONAME_FALSE='#'
7006else
7007 USE_SONAME_TRUE='#'
7008 USE_SONAME_FALSE=
7009fi
7010
7011
7012
7013{ echo "$as_me:$LINENO: checking if tests should be built" >&5
7014echo $ECHO_N "checking if tests should be built... $ECHO_C" >&6; }
7015# Check whether --enable-demos was given.
7016if test "${enable_demos+set}" = set; then
7017 enableval=$enable_demos; enable_demos=$enableval
7018else
7019 enable_demos=yes
7020fi
7021
7022{ echo "$as_me:$LINENO: result: $enable_demos" >&5
7023echo "${ECHO_T}$enable_demos" >&6; }
7024 if test x$enable_demos = xyes; then
7025 ENABLE_DEMOS_TRUE=
7026 ENABLE_DEMOS_FALSE='#'
7027else
7028 ENABLE_DEMOS_TRUE='#'
7029 ENABLE_DEMOS_FALSE=
7030fi
7031
7032
7033
7034
7035# Check whether --with-arch was given.
7036if test "${with_arch+set}" = set; then
7037 withval=$with_arch; arch=$withval
7038else
7039 arch=no
7040fi
7041
7042ARCHFLAGS=""
7043if test "x$arch" != xno
7044then
7045 ARCHFLAGS="-march=$arch"
7046fi
7047
7048
7049case "$arch" in
7050 pentium3 | pentium4 | athlon* )
7051
7052cat >>confdefs.h <<\_ACEOF
7053#define HAVE_SSE
7054_ACEOF
7055
7056 ;;
7057esac
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071for ac_header in alloca.h ieeefp.h stdio.h stdlib.h math.h string.h stdarg.h malloc.h values.h float.h time.h sys/time.h
7072do
7073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079fi
7080ac_res=`eval echo '${'$as_ac_Header'}'`
7081 { echo "$as_me:$LINENO: result: $ac_res" >&5
7082echo "${ECHO_T}$ac_res" >&6; }
7083else
7084 # Is the header compilable?
7085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7087cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093$ac_includes_default
7094#include <$ac_header>
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (ac_try="$ac_compile"
7098case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101esac
7102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_header_compiler=yes
7114else
7115 echo "$as_me: failed program was:" >&5
7116sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 ac_header_compiler=no
7119fi
7120
7121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7123echo "${ECHO_T}$ac_header_compiler" >&6; }
7124
7125# Is the header present?
7126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7128cat >conftest.$ac_ext <<_ACEOF
7129/* confdefs.h. */
7130_ACEOF
7131cat confdefs.h >>conftest.$ac_ext
7132cat >>conftest.$ac_ext <<_ACEOF
7133/* end confdefs.h. */
7134#include <$ac_header>
7135_ACEOF
7136if { (ac_try="$ac_cpp conftest.$ac_ext"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } >/dev/null && {
7149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 }; then
7152 ac_header_preproc=yes
7153else
7154 echo "$as_me: failed program was:" >&5
7155sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 ac_header_preproc=no
7158fi
7159
7160rm -f conftest.err conftest.$ac_ext
7161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7162echo "${ECHO_T}$ac_header_preproc" >&6; }
7163
7164# So? What about this header?
7165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7166 yes:no: )
7167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7171 ac_header_preproc=yes
7172 ;;
7173 no:yes:* )
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7186 ( cat <<\_ASBOX
7187## -------------------------- ##
7188## Report this to ode@ode.org ##
7189## -------------------------- ##
7190_ASBOX
7191 ) | sed "s/^/$as_me: WARNING: /" >&2
7192 ;;
7193esac
7194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199 eval "$as_ac_Header=\$ac_header_preproc"
7200fi
7201ac_res=`eval echo '${'$as_ac_Header'}'`
7202 { echo "$as_me:$LINENO: result: $ac_res" >&5
7203echo "${ECHO_T}$ac_res" >&6; }
7204
7205fi
7206if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209_ACEOF
7210
7211fi
7212
7213done
7214
7215
7216
7217opcode=no
7218gimpact=no
7219
7220# Check whether --with-trimesh was given.
7221if test "${with_trimesh+set}" = set; then
7222 withval=$with_trimesh; trimesh=$withval
7223else
7224 trimesh=opcode
7225
7226fi
7227
7228if test "$trimesh" = opcode
7229then
7230 opcode=yes
7231fi
7232if test "$trimesh" = gimpact
7233then
7234 gimpact=yes
7235fi
7236
7237 if test $opcode = yes; then
7238 OPCODE_TRUE=
7239 OPCODE_FALSE='#'
7240else
7241 OPCODE_TRUE='#'
7242 OPCODE_FALSE=
7243fi
7244
7245 if test $gimpact = yes; then
7246 GIMPACT_TRUE=
7247 GIMPACT_FALSE='#'
7248else
7249 GIMPACT_TRUE='#'
7250 GIMPACT_FALSE=
7251fi
7252
7253 if test $opcode = yes -o $gimpact = yes; then
7254 TRIMESH_TRUE=
7255 TRIMESH_FALSE='#'
7256else
7257 TRIMESH_TRUE='#'
7258 TRIMESH_FALSE=
7259fi
7260
7261
7262
7263{ echo "$as_me:$LINENO: checking if gyroscopic term should be used" >&5
7264echo $ECHO_N "checking if gyroscopic term should be used... $ECHO_C" >&6; }
7265# Check whether --enable-gyroscopic was given.
7266if test "${enable_gyroscopic+set}" = set; then
7267 enableval=$enable_gyroscopic; gyroscopic=$enableval
7268else
7269 gyroscopic=yes
7270fi
7271
7272{ echo "$as_me:$LINENO: result: $gyroscopic" >&5
7273echo "${ECHO_T}$gyroscopic" >&6; }
7274if test x"$gyroscopic" = xyes
7275then
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define dGYROSCOPIC
7279_ACEOF
7280
7281fi
7282
7283{ echo "$as_me:$LINENO: checking if double precision is requested" >&5
7284echo $ECHO_N "checking if double precision is requested... $ECHO_C" >&6; }
7285# Check whether --enable-double-precision was given.
7286if test "${enable_double_precision+set}" = set; then
7287 enableval=$enable_double_precision; precision=$enableval
7288else
7289 precision=no
7290fi
7291
7292if test "$precision" != no
7293then
7294
7295cat >>confdefs.h <<\_ACEOF
7296#define dDOUBLE
7297_ACEOF
7298
7299if test "$build_os" == "$target_os"
7300then
7301if test "$cross_compiling" = yes; then
7302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7303See \`config.log' for more details." >&5
7304echo "$as_me: error: cannot run test program while cross compiling
7305See \`config.log' for more details." >&2;}
7306 { (exit 1); exit 1; }; }
7307else
7308 cat >conftest.$ac_ext <<_ACEOF
7309/* confdefs.h. */
7310_ACEOF
7311cat confdefs.h >>conftest.$ac_ext
7312cat >>conftest.$ac_ext <<_ACEOF
7313/* end confdefs.h. */
7314
7315#define dInfinity 1e20
7316int main()
7317{
7318if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity)
7319return 0;
7320else return -1;
7321}
7322
7323_ACEOF
7324rm -f conftest$ac_exeext
7325if { (ac_try="$ac_link"
7326case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329esac
7330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_link") 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7335 { (case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338esac
7339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_try") 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 dinfinity=1e20
7345else
7346 echo "$as_me: program exited with status $ac_status" >&5
7347echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350fi
7351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7352fi
7353
7354
7355if test "$cross_compiling" = yes; then
7356 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7357See \`config.log' for more details." >&5
7358echo "$as_me: error: cannot run test program while cross compiling
7359See \`config.log' for more details." >&2;}
7360 { (exit 1); exit 1; }; }
7361else
7362 cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h. */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h. */
7368
7369#define dInfinity 1.7976931348623157e+308
7370int main()
7371{
7372if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity)
7373return 0;
7374else return -1;
7375}
7376
7377_ACEOF
7378rm -f conftest$ac_exeext
7379if { (ac_try="$ac_link"
7380case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383esac
7384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_link") 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7389 { (case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392esac
7393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_try") 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 dinfinity=1.7976931348623157e+308
7399else
7400 echo "$as_me: program exited with status $ac_status" >&5
7401echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404fi
7405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7406fi
7407
7408
7409if test "$cross_compiling" = yes; then
7410 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7411See \`config.log' for more details." >&5
7412echo "$as_me: error: cannot run test program while cross compiling
7413See \`config.log' for more details." >&2;}
7414 { (exit 1); exit 1; }; }
7415else
7416 cat >conftest.$ac_ext <<_ACEOF
7417/* confdefs.h. */
7418_ACEOF
7419cat confdefs.h >>conftest.$ac_ext
7420cat >>conftest.$ac_ext <<_ACEOF
7421/* end confdefs.h. */
7422
7423#include <float.h>
7424#define dInfinity HUGE_VAL
7425int main()
7426{
7427if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity)
7428return 0;
7429else return -1;
7430}
7431
7432_ACEOF
7433rm -f conftest$ac_exeext
7434if { (ac_try="$ac_link"
7435case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438esac
7439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_link") 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7444 { (case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447esac
7448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_try") 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 dinfinity=HUGE_VAL
7454else
7455 echo "$as_me: program exited with status $ac_status" >&5
7456echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459fi
7460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7461fi
7462
7463
7464if test "$cross_compiling" = yes; then
7465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7466See \`config.log' for more details." >&5
7467echo "$as_me: error: cannot run test program while cross compiling
7468See \`config.log' for more details." >&2;}
7469 { (exit 1); exit 1; }; }
7470else
7471 cat >conftest.$ac_ext <<_ACEOF
7472/* confdefs.h. */
7473_ACEOF
7474cat confdefs.h >>conftest.$ac_ext
7475cat >>conftest.$ac_ext <<_ACEOF
7476/* end confdefs.h. */
7477
7478#include <float.h>
7479#define dInfinity DBL_MAX
7480int main()
7481{
7482if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity)
7483return 0;
7484else return -1;
7485}
7486
7487_ACEOF
7488rm -f conftest$ac_exeext
7489if { (ac_try="$ac_link"
7490case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493esac
7494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7499 { (case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502esac
7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_try") 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 dinfinity=DBL_MAX
7509else
7510 echo "$as_me: program exited with status $ac_status" >&5
7511echo "$as_me: failed program was:" >&5
7512sed 's/^/| /' conftest.$ac_ext >&5
7513
7514fi
7515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7516fi
7517
7518
7519else
7520#cross-compiling, use a reasonable value. We should add an option for setting this.
7521dinfinity=DBL_MAX
7522fi
7523else
7524
7525cat >>confdefs.h <<\_ACEOF
7526#define dSINGLE
7527_ACEOF
7528
7529if test "$build_os" == "$target_os"
7530then
7531if test "$cross_compiling" = yes; then
7532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7533See \`config.log' for more details." >&5
7534echo "$as_me: error: cannot run test program while cross compiling
7535See \`config.log' for more details." >&2;}
7536 { (exit 1); exit 1; }; }
7537else
7538 cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
7544
7545#define dInfinity 1e20f
7546int main()
7547{
7548if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity)
7549return 0;
7550else return -1;
7551}
7552
7553_ACEOF
7554rm -f conftest$ac_exeext
7555if { (ac_try="$ac_link"
7556case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559esac
7560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_link") 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7565 { (case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568esac
7569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_try") 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 dinfinity=1e20f
7575else
7576 echo "$as_me: program exited with status $ac_status" >&5
7577echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580fi
7581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7582fi
7583
7584
7585if test "$cross_compiling" = yes; then
7586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7587See \`config.log' for more details." >&5
7588echo "$as_me: error: cannot run test program while cross compiling
7589See \`config.log' for more details." >&2;}
7590 { (exit 1); exit 1; }; }
7591else
7592 cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h. */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h. */
7598
7599#define dInfinity 3.402823466e+38F
7600int main()
7601{
7602if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity)
7603return 0;
7604else return -1;
7605}
7606
7607_ACEOF
7608rm -f conftest$ac_exeext
7609if { (ac_try="$ac_link"
7610case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613esac
7614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_link") 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7619 { (case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622esac
7623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_try") 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 dinfinity=3.402823466e+38F
7629else
7630 echo "$as_me: program exited with status $ac_status" >&5
7631echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634fi
7635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7636fi
7637
7638
7639if test "$cross_compiling" = yes; then
7640 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7641See \`config.log' for more details." >&5
7642echo "$as_me: error: cannot run test program while cross compiling
7643See \`config.log' for more details." >&2;}
7644 { (exit 1); exit 1; }; }
7645else
7646 cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
7652
7653#include <float.h>
7654#define dInfinity HUGE_VALF
7655int main()
7656{
7657if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity)
7658return 0;
7659else return -1;
7660}
7661
7662_ACEOF
7663rm -f conftest$ac_exeext
7664if { (ac_try="$ac_link"
7665case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668esac
7669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_link") 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7674 { (case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677esac
7678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_try") 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 dinfinity=HUGE_VALF
7684else
7685 echo "$as_me: program exited with status $ac_status" >&5
7686echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689fi
7690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7691fi
7692
7693
7694if test "$cross_compiling" = yes; then
7695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7696See \`config.log' for more details." >&5
7697echo "$as_me: error: cannot run test program while cross compiling
7698See \`config.log' for more details." >&2;}
7699 { (exit 1); exit 1; }; }
7700else
7701 cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707
7708#include <float.h>
7709#define dInfinity FLT_MAX
7710int main()
7711{
7712if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity)
7713return 0;
7714else return -1;
7715}
7716
7717_ACEOF
7718rm -f conftest$ac_exeext
7719if { (ac_try="$ac_link"
7720case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723esac
7724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732esac
7733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_try") 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 dinfinity=FLT_MAX
7739else
7740 echo "$as_me: program exited with status $ac_status" >&5
7741echo "$as_me: failed program was:" >&5
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744fi
7745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7746fi
7747
7748
7749#cross-compiling, use a reasonable value. We should add an option for setting this.
7750dinfinity=FLT_MAX
7751fi
7752fi
7753{ echo "$as_me:$LINENO: result: $precision" >&5
7754echo "${ECHO_T}$precision" >&6; }
7755
7756cat >>confdefs.h <<_ACEOF
7757#define dInfinity ${dinfinity}
7758_ACEOF
7759
7760{ echo "$as_me:$LINENO: checking for appropriate dInfinity constant" >&5
7761echo $ECHO_N "checking for appropriate dInfinity constant... $ECHO_C" >&6; }
7762{ echo "$as_me:$LINENO: result: $dinfinity" >&5
7763echo "${ECHO_T}$dinfinity" >&6; }
7764
7765if test "${ac_cv_header_float_h+set}" = set; then
7766 { echo "$as_me:$LINENO: checking for float.h" >&5
7767echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
7768if test "${ac_cv_header_float_h+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770fi
7771{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
7772echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
7773else
7774 # Is the header compilable?
7775{ echo "$as_me:$LINENO: checking float.h usability" >&5
7776echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
7777cat >conftest.$ac_ext <<_ACEOF
7778/* confdefs.h. */
7779_ACEOF
7780cat confdefs.h >>conftest.$ac_ext
7781cat >>conftest.$ac_ext <<_ACEOF
7782/* end confdefs.h. */
7783$ac_includes_default
7784#include <float.h>
7785_ACEOF
7786rm -f conftest.$ac_objext
7787if { (ac_try="$ac_compile"
7788case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791esac
7792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7803 ac_header_compiler=yes
7804else
7805 echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 ac_header_compiler=no
7809fi
7810
7811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7813echo "${ECHO_T}$ac_header_compiler" >&6; }
7814
7815# Is the header present?
7816{ echo "$as_me:$LINENO: checking float.h presence" >&5
7817echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
7818cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
7824#include <float.h>
7825_ACEOF
7826if { (ac_try="$ac_cpp conftest.$ac_ext"
7827case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } >/dev/null && {
7839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 }; then
7842 ac_header_preproc=yes
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 ac_header_preproc=no
7848fi
7849
7850rm -f conftest.err conftest.$ac_ext
7851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852echo "${ECHO_T}$ac_header_preproc" >&6; }
7853
7854# So? What about this header?
7855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7856 yes:no: )
7857 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
7858echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
7860echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
7861 ac_header_preproc=yes
7862 ;;
7863 no:yes:* )
7864 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
7865echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
7867echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
7869echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
7871echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
7873echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
7875echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
7876 ( cat <<\_ASBOX
7877## -------------------------- ##
7878## Report this to ode@ode.org ##
7879## -------------------------- ##
7880_ASBOX
7881 ) | sed "s/^/$as_me: WARNING: /" >&2
7882 ;;
7883esac
7884{ echo "$as_me:$LINENO: checking for float.h" >&5
7885echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
7886if test "${ac_cv_header_float_h+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889 ac_cv_header_float_h=$ac_header_preproc
7890fi
7891{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
7892echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
7893
7894fi
7895if test $ac_cv_header_float_h = yes; then
7896 have_float_h=yes
7897else
7898 have_float_h=no
7899fi
7900
7901
7902{ echo "$as_me:$LINENO: checking for appropriate dEpsilon constant" >&5
7903echo $ECHO_N "checking for appropriate dEpsilon constant... $ECHO_C" >&6; }
7904if test "x$have_float_h" == xyes
7905then
7906if test $precision == yes
7907then
7908dEpsilon=DBL_EPSILON
7909else
7910dEpsilon=FLT_EPSILON
7911fi
7912else
7913if test $precision == yes
7914then
7915dEpsilon=2.2204460492503131e-16
7916else
7917dEpsilon=1.19209290e-07f
7918fi
7919fi
7920
7921cat >>confdefs.h <<_ACEOF
7922#define dEpsilon ${dEpsilon}
7923_ACEOF
7924
7925{ echo "$as_me:$LINENO: result: $dEpsilon" >&5
7926echo "${ECHO_T}$dEpsilon" >&6; }
7927
7928
7929if test "$build_os" == "$target_os"
7930then
7931{ echo "$as_me:$LINENO: checking for a Pentium CPU" >&5
7932echo $ECHO_N "checking for a Pentium CPU... $ECHO_C" >&6; }
7933if test "$cross_compiling" = yes; then
7934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7935See \`config.log' for more details." >&5
7936echo "$as_me: error: cannot run test program while cross compiling
7937See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; }
7939else
7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946
7947int main()
7948{
7949asm ("mov \$0,%%eax;\n"
7950 "cpuid\n" : : : "%eax");
7951return 0;
7952};
7953
7954_ACEOF
7955rm -f conftest$ac_exeext
7956if { (ac_try="$ac_link"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969esac
7970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_try") 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 pentium=yes
7976else
7977 echo "$as_me: program exited with status $ac_status" >&5
7978echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981( exit $ac_status )
7982pentium=no
7983fi
7984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985fi
7986
7987
7988else
7989pentium=no
7990fi
7991if test "x$pentium" == xyes
7992then
7993
7994cat >>confdefs.h <<\_ACEOF
7995#define PENTIUM 1
7996_ACEOF
7997
7998fi
7999{ echo "$as_me:$LINENO: result: $pentium" >&5
8000echo "${ECHO_T}$pentium" >&6; }
8001
8002{ echo "$as_me:$LINENO: checking for a x86-64 CPU" >&5
8003echo $ECHO_N "checking for a x86-64 CPU... $ECHO_C" >&6; }
8004if test "$build_os" == "$target_os"
8005then
8006if test "$cross_compiling" = yes; then
8007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8008See \`config.log' for more details." >&5
8009echo "$as_me: error: cannot run test program while cross compiling
8010See \`config.log' for more details." >&2;}
8011 { (exit 1); exit 1; }; }
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019
8020int main()
8021{
8022int a = 0;
8023int * pa = &a;
8024asm ("mov %0,%%rax\n"
8025 "movl (%%rax),%%eax\n"
8026 : : "r"(pa) : "%rax");
8027return 0;
8028};
8029
8030_ACEOF
8031rm -f conftest$ac_exeext
8032if { (ac_try="$ac_link"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 cpu64=yes
8052else
8053 echo "$as_me: program exited with status $ac_status" >&5
8054echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057( exit $ac_status )
8058cpu64=no
8059fi
8060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8061fi
8062
8063
8064else
8065cpu64=no
8066fi
8067if test "x$cpu64" == xyes
8068then
8069
8070cat >>confdefs.h <<\_ACEOF
8071#define X86_64_SYSTEM 1
8072_ACEOF
8073
8074fi
8075{ echo "$as_me:$LINENO: result: $cpu64" >&5
8076echo "${ECHO_T}$cpu64" >&6; }
8077 if test x$cpu64 = xyes; then
8078 X86_64_SYSTEM_TRUE=
8079 X86_64_SYSTEM_FALSE='#'
8080else
8081 X86_64_SYSTEM_TRUE='#'
8082 X86_64_SYSTEM_FALSE=
8083fi
8084
8085
8086{ echo "$as_me:$LINENO: checking if building a release library" >&5
8087echo $ECHO_N "checking if building a release library... $ECHO_C" >&6; }
8088# Check whether --enable-release was given.
8089if test "${enable_release+set}" = set; then
8090 enableval=$enable_release; release=$enableval
8091else
8092 release=no
8093fi
8094
8095if test "x$release" == xyes
8096then
8097 CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math"
8098 CPPFLAGS="$CPPFLAGS -fomit-frame-pointer -ffast-math"
8099 CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -ffast-math"
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define dNODEBUG
8103_ACEOF
8104
8105fi
8106{ echo "$as_me:$LINENO: result: $release" >&5
8107echo "${ECHO_T}$release" >&6; }
8108
8109{ echo "$as_me:$LINENO: checking if building a debug library" >&5
8110echo $ECHO_N "checking if building a debug library... $ECHO_C" >&6; }
8111# Check whether --enable-debug was given.
8112if test "${enable_debug+set}" = set; then
8113 enableval=$enable_debug; debug=$enableval
8114else
8115 debug=yes
8116fi
8117
8118if test "x$debug" == xyes
8119then
8120 CFLAGS="$CFLAGS -g"
8121 CPPFLAGS="$CPPFLAGS -g"
8122 CXXFLAGS="$CXXFLAGS -g"
8123fi
8124{ echo "$as_me:$LINENO: result: $debug" >&5
8125echo "${ECHO_T}$debug" >&6; }
8126
8127
8128{ echo "$as_me:$LINENO: checking for char" >&5
8129echo $ECHO_N "checking for char... $ECHO_C" >&6; }
8130if test "${ac_cv_type_char+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
8133 cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h. */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h. */
8139$ac_includes_default
8140typedef char ac__type_new_;
8141int
8142main ()
8143{
8144if ((ac__type_new_ *) 0)
8145 return 0;
8146if (sizeof (ac__type_new_))
8147 return 0;
8148 ;
8149 return 0;
8150}
8151_ACEOF
8152rm -f conftest.$ac_objext
8153if { (ac_try="$ac_compile"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_cv_type_char=yes
8170else
8171 echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_cv_type_char=no
8175fi
8176
8177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178fi
8179{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8180echo "${ECHO_T}$ac_cv_type_char" >&6; }
8181
8182# The cast to long int works around a bug in the HP C Compiler
8183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8185# This bug is HP SR number 8606223364.
8186{ echo "$as_me:$LINENO: checking size of char" >&5
8187echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
8188if test "${ac_cv_sizeof_char+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 if test "$cross_compiling" = yes; then
8192 # Depending upon the size, compute the lo and hi bounds.
8193cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199$ac_includes_default
8200 typedef char ac__type_sizeof_;
8201int
8202main ()
8203{
8204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8205test_array [0] = 0
8206
8207 ;
8208 return 0;
8209}
8210_ACEOF
8211rm -f conftest.$ac_objext
8212if { (ac_try="$ac_compile"
8213case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_compile") 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && {
8225 test -z "$ac_c_werror_flag" ||
8226 test ! -s conftest.err
8227 } && test -s conftest.$ac_objext; then
8228 ac_lo=0 ac_mid=0
8229 while :; do
8230 cat >conftest.$ac_ext <<_ACEOF
8231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
8236$ac_includes_default
8237 typedef char ac__type_sizeof_;
8238int
8239main ()
8240{
8241static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8242test_array [0] = 0
8243
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (ac_try="$ac_compile"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_hi=$ac_mid; break
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_lo=`expr $ac_mid + 1`
8271 if test $ac_lo -le $ac_mid; then
8272 ac_lo= ac_hi=
8273 break
8274 fi
8275 ac_mid=`expr 2 '*' $ac_mid + 1`
8276fi
8277
8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 done
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h. */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h. */
8290$ac_includes_default
8291 typedef char ac__type_sizeof_;
8292int
8293main ()
8294{
8295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8296test_array [0] = 0
8297
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext
8303if { (ac_try="$ac_compile"
8304case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_compile") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest.$ac_objext; then
8319 ac_hi=-1 ac_mid=-1
8320 while :; do
8321 cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
8327$ac_includes_default
8328 typedef char ac__type_sizeof_;
8329int
8330main ()
8331{
8332static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8333test_array [0] = 0
8334
8335 ;
8336 return 0;
8337}
8338_ACEOF
8339rm -f conftest.$ac_objext
8340if { (ac_try="$ac_compile"
8341case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
8345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_compile") 2>conftest.er1
8347 ac_status=$?
8348 grep -v '^ *+' conftest.er1 >conftest.err
8349 rm -f conftest.er1
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } && {
8353 test -z "$ac_c_werror_flag" ||
8354 test ! -s conftest.err
8355 } && test -s conftest.$ac_objext; then
8356 ac_lo=$ac_mid; break
8357else
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_hi=`expr '(' $ac_mid ')' - 1`
8362 if test $ac_mid -le $ac_hi; then
8363 ac_lo= ac_hi=
8364 break
8365 fi
8366 ac_mid=`expr 2 '*' $ac_mid`
8367fi
8368
8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 done
8371else
8372 echo "$as_me: failed program was:" >&5
8373sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_lo= ac_hi=
8376fi
8377
8378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379fi
8380
8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382# Binary search between lo and hi bounds.
8383while test "x$ac_lo" != "x$ac_hi"; do
8384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8385 cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h. */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h. */
8391$ac_includes_default
8392 typedef char ac__type_sizeof_;
8393int
8394main ()
8395{
8396static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8397test_array [0] = 0
8398
8399 ;
8400 return 0;
8401}
8402_ACEOF
8403rm -f conftest.$ac_objext
8404if { (ac_try="$ac_compile"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_hi=$ac_mid
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425 ac_lo=`expr '(' $ac_mid ')' + 1`
8426fi
8427
8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429done
8430case $ac_lo in
8431?*) ac_cv_sizeof_char=$ac_lo;;
8432'') if test "$ac_cv_type_char" = yes; then
8433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
8434See \`config.log' for more details." >&5
8435echo "$as_me: error: cannot compute sizeof (char)
8436See \`config.log' for more details." >&2;}
8437 { (exit 77); exit 77; }; }
8438 else
8439 ac_cv_sizeof_char=0
8440 fi ;;
8441esac
8442else
8443 cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
8449$ac_includes_default
8450 typedef char ac__type_sizeof_;
8451static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8452static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8453#include <stdio.h>
8454#include <stdlib.h>
8455int
8456main ()
8457{
8458
8459 FILE *f = fopen ("conftest.val", "w");
8460 if (! f)
8461 return 1;
8462 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8463 {
8464 long int i = longval ();
8465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8466 return 1;
8467 fprintf (f, "%ld\n", i);
8468 }
8469 else
8470 {
8471 unsigned long int i = ulongval ();
8472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8473 return 1;
8474 fprintf (f, "%lu\n", i);
8475 }
8476 return ferror (f) || fclose (f) != 0;
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482rm -f conftest$ac_exeext
8483if { (ac_try="$ac_link"
8484case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
8488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_link") 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_sizeof_char=`cat conftest.val`
8503else
8504 echo "$as_me: program exited with status $ac_status" >&5
8505echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508( exit $ac_status )
8509if test "$ac_cv_type_char" = yes; then
8510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
8511See \`config.log' for more details." >&5
8512echo "$as_me: error: cannot compute sizeof (char)
8513See \`config.log' for more details." >&2;}
8514 { (exit 77); exit 77; }; }
8515 else
8516 ac_cv_sizeof_char=0
8517 fi
8518fi
8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8520fi
8521rm -f conftest.val
8522fi
8523{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8524echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
8525
8526
8527
8528cat >>confdefs.h <<_ACEOF
8529#define SIZEOF_CHAR $ac_cv_sizeof_char
8530_ACEOF
8531
8532
8533{ echo "$as_me:$LINENO: checking for int" >&5
8534echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8535if test "${ac_cv_type_int+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538 cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8544$ac_includes_default
8545typedef int ac__type_new_;
8546int
8547main ()
8548{
8549if ((ac__type_new_ *) 0)
8550 return 0;
8551if (sizeof (ac__type_new_))
8552 return 0;
8553 ;
8554 return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext
8558if { (ac_try="$ac_compile"
8559case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562esac
8563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_compile") 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest.$ac_objext; then
8574 ac_cv_type_int=yes
8575else
8576 echo "$as_me: failed program was:" >&5
8577sed 's/^/| /' conftest.$ac_ext >&5
8578
8579 ac_cv_type_int=no
8580fi
8581
8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583fi
8584{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8585echo "${ECHO_T}$ac_cv_type_int" >&6; }
8586
8587# The cast to long int works around a bug in the HP C Compiler
8588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8590# This bug is HP SR number 8606223364.
8591{ echo "$as_me:$LINENO: checking size of int" >&5
8592echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8593if test "${ac_cv_sizeof_int+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 if test "$cross_compiling" = yes; then
8597 # Depending upon the size, compute the lo and hi bounds.
8598cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */
8604$ac_includes_default
8605 typedef int ac__type_sizeof_;
8606int
8607main ()
8608{
8609static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8610test_array [0] = 0
8611
8612 ;
8613 return 0;
8614}
8615_ACEOF
8616rm -f conftest.$ac_objext
8617if { (ac_try="$ac_compile"
8618case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8633 ac_lo=0 ac_mid=0
8634 while :; do
8635 cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641$ac_includes_default
8642 typedef int ac__type_sizeof_;
8643int
8644main ()
8645{
8646static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8647test_array [0] = 0
8648
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653rm -f conftest.$ac_objext
8654if { (ac_try="$ac_compile"
8655case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658esac
8659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.$ac_objext; then
8670 ac_hi=$ac_mid; break
8671else
8672 echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_lo=`expr $ac_mid + 1`
8676 if test $ac_lo -le $ac_mid; then
8677 ac_lo= ac_hi=
8678 break
8679 fi
8680 ac_mid=`expr 2 '*' $ac_mid + 1`
8681fi
8682
8683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 done
8685else
8686 echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h. */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h. */
8695$ac_includes_default
8696 typedef int ac__type_sizeof_;
8697int
8698main ()
8699{
8700static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8701test_array [0] = 0
8702
8703 ;
8704 return 0;
8705}
8706_ACEOF
8707rm -f conftest.$ac_objext
8708if { (ac_try="$ac_compile"
8709case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
8713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.$ac_objext; then
8724 ac_hi=-1 ac_mid=-1
8725 while :; do
8726 cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h. */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h. */
8732$ac_includes_default
8733 typedef int ac__type_sizeof_;
8734int
8735main ()
8736{
8737static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8738test_array [0] = 0
8739
8740 ;
8741 return 0;
8742}
8743_ACEOF
8744rm -f conftest.$ac_objext
8745if { (ac_try="$ac_compile"
8746case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749esac
8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_compile") 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } && {
8758 test -z "$ac_c_werror_flag" ||
8759 test ! -s conftest.err
8760 } && test -s conftest.$ac_objext; then
8761 ac_lo=$ac_mid; break
8762else
8763 echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 ac_hi=`expr '(' $ac_mid ')' - 1`
8767 if test $ac_mid -le $ac_hi; then
8768 ac_lo= ac_hi=
8769 break
8770 fi
8771 ac_mid=`expr 2 '*' $ac_mid`
8772fi
8773
8774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 done
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_lo= ac_hi=
8781fi
8782
8783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784fi
8785
8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787# Binary search between lo and hi bounds.
8788while test "x$ac_lo" != "x$ac_hi"; do
8789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8790 cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h. */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h. */
8796$ac_includes_default
8797 typedef int ac__type_sizeof_;
8798int
8799main ()
8800{
8801static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8802test_array [0] = 0
8803
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest.$ac_objext
8809if { (ac_try="$ac_compile"
8810case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
8814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_compile") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest.$ac_objext; then
8825 ac_hi=$ac_mid
8826else
8827 echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
8830 ac_lo=`expr '(' $ac_mid ')' + 1`
8831fi
8832
8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834done
8835case $ac_lo in
8836?*) ac_cv_sizeof_int=$ac_lo;;
8837'') if test "$ac_cv_type_int" = yes; then
8838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8839See \`config.log' for more details." >&5
8840echo "$as_me: error: cannot compute sizeof (int)
8841See \`config.log' for more details." >&2;}
8842 { (exit 77); exit 77; }; }
8843 else
8844 ac_cv_sizeof_int=0
8845 fi ;;
8846esac
8847else
8848 cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854$ac_includes_default
8855 typedef int ac__type_sizeof_;
8856static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8857static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8858#include <stdio.h>
8859#include <stdlib.h>
8860int
8861main ()
8862{
8863
8864 FILE *f = fopen ("conftest.val", "w");
8865 if (! f)
8866 return 1;
8867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8868 {
8869 long int i = longval ();
8870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8871 return 1;
8872 fprintf (f, "%ld\n", i);
8873 }
8874 else
8875 {
8876 unsigned long int i = ulongval ();
8877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8878 return 1;
8879 fprintf (f, "%lu\n", i);
8880 }
8881 return ferror (f) || fclose (f) != 0;
8882
8883 ;
8884 return 0;
8885}
8886_ACEOF
8887rm -f conftest$ac_exeext
8888if { (ac_try="$ac_link"
8889case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892esac
8893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_link") 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901esac
8902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_cv_sizeof_int=`cat conftest.val`
8908else
8909 echo "$as_me: program exited with status $ac_status" >&5
8910echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913( exit $ac_status )
8914if test "$ac_cv_type_int" = yes; then
8915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8916See \`config.log' for more details." >&5
8917echo "$as_me: error: cannot compute sizeof (int)
8918See \`config.log' for more details." >&2;}
8919 { (exit 77); exit 77; }; }
8920 else
8921 ac_cv_sizeof_int=0
8922 fi
8923fi
8924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925fi
8926rm -f conftest.val
8927fi
8928{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8929echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8930
8931
8932
8933cat >>confdefs.h <<_ACEOF
8934#define SIZEOF_INT $ac_cv_sizeof_int
8935_ACEOF
8936
8937
8938{ echo "$as_me:$LINENO: checking for short" >&5
8939echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8940if test "${ac_cv_type_short+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942else
8943 cat >conftest.$ac_ext <<_ACEOF
8944/* confdefs.h. */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
8948/* end confdefs.h. */
8949$ac_includes_default
8950typedef short ac__type_new_;
8951int
8952main ()
8953{
8954if ((ac__type_new_ *) 0)
8955 return 0;
8956if (sizeof (ac__type_new_))
8957 return 0;
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext
8963if { (ac_try="$ac_compile"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.$ac_objext; then
8979 ac_cv_type_short=yes
8980else
8981 echo "$as_me: failed program was:" >&5
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_type_short=no
8985fi
8986
8987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988fi
8989{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8990echo "${ECHO_T}$ac_cv_type_short" >&6; }
8991
8992# The cast to long int works around a bug in the HP C Compiler
8993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8995# This bug is HP SR number 8606223364.
8996{ echo "$as_me:$LINENO: checking size of short" >&5
8997echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8998if test "${ac_cv_sizeof_short+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else
9001 if test "$cross_compiling" = yes; then
9002 # Depending upon the size, compute the lo and hi bounds.
9003cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
9008/* end confdefs.h. */
9009$ac_includes_default
9010 typedef short ac__type_sizeof_;
9011int
9012main ()
9013{
9014static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9015test_array [0] = 0
9016
9017 ;
9018 return 0;
9019}
9020_ACEOF
9021rm -f conftest.$ac_objext
9022if { (ac_try="$ac_compile"
9023case "(($ac_try" in
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9026esac
9027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_compile") 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && {
9035 test -z "$ac_c_werror_flag" ||
9036 test ! -s conftest.err
9037 } && test -s conftest.$ac_objext; then
9038 ac_lo=0 ac_mid=0
9039 while :; do
9040 cat >conftest.$ac_ext <<_ACEOF
9041/* confdefs.h. */
9042_ACEOF
9043cat confdefs.h >>conftest.$ac_ext
9044cat >>conftest.$ac_ext <<_ACEOF
9045/* end confdefs.h. */
9046$ac_includes_default
9047 typedef short ac__type_sizeof_;
9048int
9049main ()
9050{
9051static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9052test_array [0] = 0
9053
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058rm -f conftest.$ac_objext
9059if { (ac_try="$ac_compile"
9060case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 ac_hi=$ac_mid; break
9076else
9077 echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_lo=`expr $ac_mid + 1`
9081 if test $ac_lo -le $ac_mid; then
9082 ac_lo= ac_hi=
9083 break
9084 fi
9085 ac_mid=`expr 2 '*' $ac_mid + 1`
9086fi
9087
9088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 done
9090else
9091 echo "$as_me: failed program was:" >&5
9092sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 cat >conftest.$ac_ext <<_ACEOF
9095/* confdefs.h. */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h. */
9100$ac_includes_default
9101 typedef short ac__type_sizeof_;
9102int
9103main ()
9104{
9105static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9106test_array [0] = 0
9107
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112rm -f conftest.$ac_objext
9113if { (ac_try="$ac_compile"
9114case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117esac
9118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_compile") 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest.$ac_objext; then
9129 ac_hi=-1 ac_mid=-1
9130 while :; do
9131 cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
9137$ac_includes_default
9138 typedef short ac__type_sizeof_;
9139int
9140main ()
9141{
9142static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9143test_array [0] = 0
9144
9145 ;
9146 return 0;
9147}
9148_ACEOF
9149rm -f conftest.$ac_objext
9150if { (ac_try="$ac_compile"
9151case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154esac
9155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_compile") 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } && {
9163 test -z "$ac_c_werror_flag" ||
9164 test ! -s conftest.err
9165 } && test -s conftest.$ac_objext; then
9166 ac_lo=$ac_mid; break
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_hi=`expr '(' $ac_mid ')' - 1`
9172 if test $ac_mid -le $ac_hi; then
9173 ac_lo= ac_hi=
9174 break
9175 fi
9176 ac_mid=`expr 2 '*' $ac_mid`
9177fi
9178
9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 done
9181else
9182 echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_lo= ac_hi=
9186fi
9187
9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189fi
9190
9191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192# Binary search between lo and hi bounds.
9193while test "x$ac_lo" != "x$ac_hi"; do
9194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9195 cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201$ac_includes_default
9202 typedef short ac__type_sizeof_;
9203int
9204main ()
9205{
9206static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9207test_array [0] = 0
9208
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (ac_try="$ac_compile"
9215case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218esac
9219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_compile") 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest.$ac_objext; then
9230 ac_hi=$ac_mid
9231else
9232 echo "$as_me: failed program was:" >&5
9233sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 ac_lo=`expr '(' $ac_mid ')' + 1`
9236fi
9237
9238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239done
9240case $ac_lo in
9241?*) ac_cv_sizeof_short=$ac_lo;;
9242'') if test "$ac_cv_type_short" = yes; then
9243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9244See \`config.log' for more details." >&5
9245echo "$as_me: error: cannot compute sizeof (short)
9246See \`config.log' for more details." >&2;}
9247 { (exit 77); exit 77; }; }
9248 else
9249 ac_cv_sizeof_short=0
9250 fi ;;
9251esac
9252else
9253 cat >conftest.$ac_ext <<_ACEOF
9254/* confdefs.h. */
9255_ACEOF
9256cat confdefs.h >>conftest.$ac_ext
9257cat >>conftest.$ac_ext <<_ACEOF
9258/* end confdefs.h. */
9259$ac_includes_default
9260 typedef short ac__type_sizeof_;
9261static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9262static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9263#include <stdio.h>
9264#include <stdlib.h>
9265int
9266main ()
9267{
9268
9269 FILE *f = fopen ("conftest.val", "w");
9270 if (! f)
9271 return 1;
9272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9273 {
9274 long int i = longval ();
9275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9276 return 1;
9277 fprintf (f, "%ld\n", i);
9278 }
9279 else
9280 {
9281 unsigned long int i = ulongval ();
9282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9283 return 1;
9284 fprintf (f, "%lu\n", i);
9285 }
9286 return ferror (f) || fclose (f) != 0;
9287
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292rm -f conftest$ac_exeext
9293if { (ac_try="$ac_link"
9294case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297esac
9298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_link") 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9303 { (case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_try") 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_sizeof_short=`cat conftest.val`
9313else
9314 echo "$as_me: program exited with status $ac_status" >&5
9315echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318( exit $ac_status )
9319if test "$ac_cv_type_short" = yes; then
9320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9321See \`config.log' for more details." >&5
9322echo "$as_me: error: cannot compute sizeof (short)
9323See \`config.log' for more details." >&2;}
9324 { (exit 77); exit 77; }; }
9325 else
9326 ac_cv_sizeof_short=0
9327 fi
9328fi
9329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9330fi
9331rm -f conftest.val
9332fi
9333{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9334echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9335
9336
9337
9338cat >>confdefs.h <<_ACEOF
9339#define SIZEOF_SHORT $ac_cv_sizeof_short
9340_ACEOF
9341
9342
9343{ echo "$as_me:$LINENO: checking for long int" >&5
9344echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
9345if test "${ac_cv_type_long_int+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348 cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354$ac_includes_default
9355typedef long int ac__type_new_;
9356int
9357main ()
9358{
9359if ((ac__type_new_ *) 0)
9360 return 0;
9361if (sizeof (ac__type_new_))
9362 return 0;
9363 ;
9364 return 0;
9365}
9366_ACEOF
9367rm -f conftest.$ac_objext
9368if { (ac_try="$ac_compile"
9369case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372esac
9373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_compile") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest.$ac_objext; then
9384 ac_cv_type_long_int=yes
9385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_cv_type_long_int=no
9390fi
9391
9392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393fi
9394{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
9395echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
9396
9397# The cast to long int works around a bug in the HP C Compiler
9398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9400# This bug is HP SR number 8606223364.
9401{ echo "$as_me:$LINENO: checking size of long int" >&5
9402echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
9403if test "${ac_cv_sizeof_long_int+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406 if test "$cross_compiling" = yes; then
9407 # Depending upon the size, compute the lo and hi bounds.
9408cat >conftest.$ac_ext <<_ACEOF
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414$ac_includes_default
9415 typedef long int ac__type_sizeof_;
9416int
9417main ()
9418{
9419static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9420test_array [0] = 0
9421
9422 ;
9423 return 0;
9424}
9425_ACEOF
9426rm -f conftest.$ac_objext
9427if { (ac_try="$ac_compile"
9428case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9431esac
9432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_compile") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest.$ac_objext; then
9443 ac_lo=0 ac_mid=0
9444 while :; do
9445 cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451$ac_includes_default
9452 typedef long int ac__type_sizeof_;
9453int
9454main ()
9455{
9456static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9457test_array [0] = 0
9458
9459 ;
9460 return 0;
9461}
9462_ACEOF
9463rm -f conftest.$ac_objext
9464if { (ac_try="$ac_compile"
9465case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_compile") 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest.$ac_objext; then
9480 ac_hi=$ac_mid; break
9481else
9482 echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_lo=`expr $ac_mid + 1`
9486 if test $ac_lo -le $ac_mid; then
9487 ac_lo= ac_hi=
9488 break
9489 fi
9490 ac_mid=`expr 2 '*' $ac_mid + 1`
9491fi
9492
9493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 done
9495else
9496 echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 cat >conftest.$ac_ext <<_ACEOF
9500/* confdefs.h. */
9501_ACEOF
9502cat confdefs.h >>conftest.$ac_ext
9503cat >>conftest.$ac_ext <<_ACEOF
9504/* end confdefs.h. */
9505$ac_includes_default
9506 typedef long int ac__type_sizeof_;
9507int
9508main ()
9509{
9510static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9511test_array [0] = 0
9512
9513 ;
9514 return 0;
9515}
9516_ACEOF
9517rm -f conftest.$ac_objext
9518if { (ac_try="$ac_compile"
9519case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
9523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest.$ac_objext; then
9534 ac_hi=-1 ac_mid=-1
9535 while :; do
9536 cat >conftest.$ac_ext <<_ACEOF
9537/* confdefs.h. */
9538_ACEOF
9539cat confdefs.h >>conftest.$ac_ext
9540cat >>conftest.$ac_ext <<_ACEOF
9541/* end confdefs.h. */
9542$ac_includes_default
9543 typedef long int ac__type_sizeof_;
9544int
9545main ()
9546{
9547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9548test_array [0] = 0
9549
9550 ;
9551 return 0;
9552}
9553_ACEOF
9554rm -f conftest.$ac_objext
9555if { (ac_try="$ac_compile"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_compile") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest.$ac_objext; then
9571 ac_lo=$ac_mid; break
9572else
9573 echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_hi=`expr '(' $ac_mid ')' - 1`
9577 if test $ac_mid -le $ac_hi; then
9578 ac_lo= ac_hi=
9579 break
9580 fi
9581 ac_mid=`expr 2 '*' $ac_mid`
9582fi
9583
9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 done
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_lo= ac_hi=
9591fi
9592
9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594fi
9595
9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597# Binary search between lo and hi bounds.
9598while test "x$ac_lo" != "x$ac_hi"; do
9599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9600 cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606$ac_includes_default
9607 typedef long int ac__type_sizeof_;
9608int
9609main ()
9610{
9611static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9612test_array [0] = 0
9613
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618rm -f conftest.$ac_objext
9619if { (ac_try="$ac_compile"
9620case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623esac
9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_hi=$ac_mid
9636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_lo=`expr '(' $ac_mid ')' + 1`
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644done
9645case $ac_lo in
9646?*) ac_cv_sizeof_long_int=$ac_lo;;
9647'') if test "$ac_cv_type_long_int" = yes; then
9648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
9649See \`config.log' for more details." >&5
9650echo "$as_me: error: cannot compute sizeof (long int)
9651See \`config.log' for more details." >&2;}
9652 { (exit 77); exit 77; }; }
9653 else
9654 ac_cv_sizeof_long_int=0
9655 fi ;;
9656esac
9657else
9658 cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664$ac_includes_default
9665 typedef long int ac__type_sizeof_;
9666static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9667static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9668#include <stdio.h>
9669#include <stdlib.h>
9670int
9671main ()
9672{
9673
9674 FILE *f = fopen ("conftest.val", "w");
9675 if (! f)
9676 return 1;
9677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9678 {
9679 long int i = longval ();
9680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9681 return 1;
9682 fprintf (f, "%ld\n", i);
9683 }
9684 else
9685 {
9686 unsigned long int i = ulongval ();
9687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9688 return 1;
9689 fprintf (f, "%lu\n", i);
9690 }
9691 return ferror (f) || fclose (f) != 0;
9692
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697rm -f conftest$ac_exeext
9698if { (ac_try="$ac_link"
9699case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_link") 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_sizeof_long_int=`cat conftest.val`
9718else
9719 echo "$as_me: program exited with status $ac_status" >&5
9720echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723( exit $ac_status )
9724if test "$ac_cv_type_long_int" = yes; then
9725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
9726See \`config.log' for more details." >&5
9727echo "$as_me: error: cannot compute sizeof (long int)
9728See \`config.log' for more details." >&2;}
9729 { (exit 77); exit 77; }; }
9730 else
9731 ac_cv_sizeof_long_int=0
9732 fi
9733fi
9734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735fi
9736rm -f conftest.val
9737fi
9738{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
9739echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
9740
9741
9742
9743cat >>confdefs.h <<_ACEOF
9744#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
9745_ACEOF
9746
9747
9748{ echo "$as_me:$LINENO: checking for void*" >&5
9749echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
9750if test "${ac_cv_type_voidp+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753 cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759$ac_includes_default
9760typedef void* ac__type_new_;
9761int
9762main ()
9763{
9764if ((ac__type_new_ *) 0)
9765 return 0;
9766if (sizeof (ac__type_new_))
9767 return 0;
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext
9773if { (ac_try="$ac_compile"
9774case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_compile") 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest.$ac_objext; then
9789 ac_cv_type_voidp=yes
9790else
9791 echo "$as_me: failed program was:" >&5
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 ac_cv_type_voidp=no
9795fi
9796
9797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798fi
9799{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
9800echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
9801
9802# The cast to long int works around a bug in the HP C Compiler
9803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9805# This bug is HP SR number 8606223364.
9806{ echo "$as_me:$LINENO: checking size of void*" >&5
9807echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
9808if test "${ac_cv_sizeof_voidp+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 if test "$cross_compiling" = yes; then
9812 # Depending upon the size, compute the lo and hi bounds.
9813cat >conftest.$ac_ext <<_ACEOF
9814/* confdefs.h. */
9815_ACEOF
9816cat confdefs.h >>conftest.$ac_ext
9817cat >>conftest.$ac_ext <<_ACEOF
9818/* end confdefs.h. */
9819$ac_includes_default
9820 typedef void* ac__type_sizeof_;
9821int
9822main ()
9823{
9824static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9825test_array [0] = 0
9826
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831rm -f conftest.$ac_objext
9832if { (ac_try="$ac_compile"
9833case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_compile") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } && {
9845 test -z "$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 } && test -s conftest.$ac_objext; then
9848 ac_lo=0 ac_mid=0
9849 while :; do
9850 cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856$ac_includes_default
9857 typedef void* ac__type_sizeof_;
9858int
9859main ()
9860{
9861static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9862test_array [0] = 0
9863
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext
9869if { (ac_try="$ac_compile"
9870case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_compile") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest.$ac_objext; then
9885 ac_hi=$ac_mid; break
9886else
9887 echo "$as_me: failed program was:" >&5
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_lo=`expr $ac_mid + 1`
9891 if test $ac_lo -le $ac_mid; then
9892 ac_lo= ac_hi=
9893 break
9894 fi
9895 ac_mid=`expr 2 '*' $ac_mid + 1`
9896fi
9897
9898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 done
9900else
9901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910$ac_includes_default
9911 typedef void* ac__type_sizeof_;
9912int
9913main ()
9914{
9915static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9916test_array [0] = 0
9917
9918 ;
9919 return 0;
9920}
9921_ACEOF
9922rm -f conftest.$ac_objext
9923if { (ac_try="$ac_compile"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_compile") 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest.$ac_objext; then
9939 ac_hi=-1 ac_mid=-1
9940 while :; do
9941 cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947$ac_includes_default
9948 typedef void* ac__type_sizeof_;
9949int
9950main ()
9951{
9952static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9953test_array [0] = 0
9954
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
9960if { (ac_try="$ac_compile"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_compile") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest.$ac_objext; then
9976 ac_lo=$ac_mid; break
9977else
9978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_hi=`expr '(' $ac_mid ')' - 1`
9982 if test $ac_mid -le $ac_hi; then
9983 ac_lo= ac_hi=
9984 break
9985 fi
9986 ac_mid=`expr 2 '*' $ac_mid`
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 done
9991else
9992 echo "$as_me: failed program was:" >&5
9993sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 ac_lo= ac_hi=
9996fi
9997
9998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999fi
10000
10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002# Binary search between lo and hi bounds.
10003while test "x$ac_lo" != "x$ac_hi"; do
10004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10005 cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011$ac_includes_default
10012 typedef void* ac__type_sizeof_;
10013int
10014main ()
10015{
10016static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10017test_array [0] = 0
10018
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext
10024if { (ac_try="$ac_compile"
10025case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_compile") 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest.$ac_objext; then
10040 ac_hi=$ac_mid
10041else
10042 echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_lo=`expr '(' $ac_mid ')' + 1`
10046fi
10047
10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049done
10050case $ac_lo in
10051?*) ac_cv_sizeof_voidp=$ac_lo;;
10052'') if test "$ac_cv_type_voidp" = yes; then
10053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
10054See \`config.log' for more details." >&5
10055echo "$as_me: error: cannot compute sizeof (void*)
10056See \`config.log' for more details." >&2;}
10057 { (exit 77); exit 77; }; }
10058 else
10059 ac_cv_sizeof_voidp=0
10060 fi ;;
10061esac
10062else
10063 cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069$ac_includes_default
10070 typedef void* ac__type_sizeof_;
10071static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10072static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10073#include <stdio.h>
10074#include <stdlib.h>
10075int
10076main ()
10077{
10078
10079 FILE *f = fopen ("conftest.val", "w");
10080 if (! f)
10081 return 1;
10082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10083 {
10084 long int i = longval ();
10085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10086 return 1;
10087 fprintf (f, "%ld\n", i);
10088 }
10089 else
10090 {
10091 unsigned long int i = ulongval ();
10092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10093 return 1;
10094 fprintf (f, "%lu\n", i);
10095 }
10096 return ferror (f) || fclose (f) != 0;
10097
10098 ;
10099 return 0;
10100}
10101_ACEOF
10102rm -f conftest$ac_exeext
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_link") 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_sizeof_voidp=`cat conftest.val`
10123else
10124 echo "$as_me: program exited with status $ac_status" >&5
10125echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128( exit $ac_status )
10129if test "$ac_cv_type_voidp" = yes; then
10130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
10131See \`config.log' for more details." >&5
10132echo "$as_me: error: cannot compute sizeof (void*)
10133See \`config.log' for more details." >&2;}
10134 { (exit 77); exit 77; }; }
10135 else
10136 ac_cv_sizeof_voidp=0
10137 fi
10138fi
10139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10140fi
10141rm -f conftest.val
10142fi
10143{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
10144echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
10145
10146
10147
10148cat >>confdefs.h <<_ACEOF
10149#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
10150_ACEOF
10151
10152
10153
10154case "$host_os" in
10155 cygwin* | mingw*)
10156 so_ext=".dll"
10157 DLLDEFINE="-DODE_DLL"
10158 SHARED_LDFLAGS="-shared"
10159 drawstuff="Win32" # if in a Windows enviroment
10160 ;;
10161 *apple* | *darwin*) # For Mac OS X
10162 so_ext=".dylib"
10163 DLLDEFINE=""
10164 SHARED_LDFLAGS="-dynamiclib"
10165 drawstuff="OSX"
10166 CC="$CXX"
10167 LINK="$CXXLINK"
10168 ;;
10169 *)
10170 drawstuff="X11" # if anything else default to X11
10171 if test x$use_soname = xyes; then
10172 so_ext=".so.$ODE_RELEASE"
10173 else
10174 so_ext=".so"
10175 fi
10176 DLLDEFINE=""
10177 SHARED_LDFLAGS="-shared"
10178 ;;
10179esac
10180 if test x$drawstuff = xWin32; then
10181 WIN32_TRUE=
10182 WIN32_FALSE='#'
10183else
10184 WIN32_TRUE='#'
10185 WIN32_FALSE=
10186fi
10187
10188 if test x$drawstuff = xX11; then
10189 X11_TRUE=
10190 X11_FALSE='#'
10191else
10192 X11_TRUE='#'
10193 X11_FALSE=
10194fi
10195
10196 if test x$drawstuff = xOSX; then
10197 OSX_TRUE=
10198 OSX_FALSE='#'
10199else
10200 OSX_TRUE='#'
10201 OSX_FALSE=
10202fi
10203
10204{ echo "$as_me:$LINENO: checking which drawstuff lib to build" >&5
10205echo $ECHO_N "checking which drawstuff lib to build... $ECHO_C" >&6; }
10206{ echo "$as_me:$LINENO: result: $drawstuff" >&5
10207echo "${ECHO_T}$drawstuff" >&6; }
10208
10209{ echo "$as_me:$LINENO: checking for the suffix of shared libraries" >&5
10210echo $ECHO_N "checking for the suffix of shared libraries... $ECHO_C" >&6; }
10211{ echo "$as_me:$LINENO: result: $so_ext" >&5
10212echo "${ECHO_T}$so_ext" >&6; }
10213
10214cat >>confdefs.h <<_ACEOF
10215#define SO_EXT "$so_ext"
10216_ACEOF
10217
10218
10219
10220
10221if test "X$x_includes" != "XNONE"; then
10222 CFLAGS="$CFLAGS -I$x_includes"
10223 CXXFLAGS="$CXXFLAGS -I$x_includes"
10224fi
10225if test "X$x_libraries" != "XNONE"; then
10226 CFLAGS="$CFLAGS -L$x_libraries"
10227 CXXFLAGS="$CXXFLAGS -L$x_libraries"
10228fi
10229
10230if test "x$drawstuff" = "xOSX"; then
10231
10232cat >>confdefs.h <<\_ACEOF
10233#define HAVE_APPLE_OPENGL_FRAMEWORK 1
10234_ACEOF
10235
10236 GL_LIBS="-framework OpenGL -framework Carbon -framework AGL"
10237else
10238
10239
10240
10241for ac_header in GL/gl.h GL/glu.h GL/glext.h
10242do
10243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h. */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h. */
10255#if HAVE_GL_GL_H
10256 #include <GL/gl.h>
10257 #endif
10258 #if HAVE_GL_GLU_H
10259 #include <GL/glu.h>
10260 #endif
10261
10262
10263#include <$ac_header>
10264_ACEOF
10265rm -f conftest.$ac_objext
10266if { (ac_try="$ac_compile"
10267case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_compile") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest.$ac_objext; then
10282 eval "$as_ac_Header=yes"
10283else
10284 echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 eval "$as_ac_Header=no"
10288fi
10289
10290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10291fi
10292ac_res=`eval echo '${'$as_ac_Header'}'`
10293 { echo "$as_me:$LINENO: result: $ac_res" >&5
10294echo "${ECHO_T}$ac_res" >&6; }
10295if test `eval echo '${'$as_ac_Header'}'` = yes; then
10296 cat >>confdefs.h <<_ACEOF
10297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10298_ACEOF
10299
10300fi
10301
10302done
10303
10304 { echo "$as_me:$LINENO: checking for main in -lGL" >&5
10305echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; }
10306if test "${ac_cv_lib_GL_main+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 ac_check_lib_save_LIBS=$LIBS
10310LIBS="-lGL $LIBS"
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h. */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h. */
10317
10318
10319int
10320main ()
10321{
10322return main ();
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327rm -f conftest.$ac_objext conftest$ac_exeext
10328if { (ac_try="$ac_link"
10329case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext &&
10344 $as_test_x conftest$ac_exeext; then
10345 ac_cv_lib_GL_main=yes
10346else
10347 echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ac_cv_lib_GL_main=no
10351fi
10352
10353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355LIBS=$ac_check_lib_save_LIBS
10356fi
10357{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
10358echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; }
10359if test $ac_cv_lib_GL_main = yes; then
10360 GL_LIBS="$GL_LIBS -lGL"
10361fi
10362
10363 TEMP_LDFLAGS="$LDFLAGS"
10364 LDFLAGS="$LDFLAGS $GL_LIBS"
10365 { echo "$as_me:$LINENO: checking for main in -lGLU" >&5
10366echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6; }
10367if test "${ac_cv_lib_GLU_main+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lGLU $LIBS"
10372cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379
10380int
10381main ()
10382{
10383return main ();
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388rm -f conftest.$ac_objext conftest$ac_exeext
10389if { (ac_try="$ac_link"
10390case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393esac
10394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_link") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest$ac_exeext &&
10405 $as_test_x conftest$ac_exeext; then
10406 ac_cv_lib_GLU_main=yes
10407else
10408 echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 ac_cv_lib_GLU_main=no
10412fi
10413
10414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416LIBS=$ac_check_lib_save_LIBS
10417fi
10418{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
10419echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6; }
10420if test $ac_cv_lib_GLU_main = yes; then
10421 GL_LIBS="$GL_LIBS -lGLU"
10422fi
10423
10424 LDFLAGS="$TEMP_LDFLAGS"
10425 { echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
10426echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6; }
10427if test "${ac_cv_lib_opengl32_main+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429else
10430 ac_check_lib_save_LIBS=$LIBS
10431LIBS="-lopengl32 $LIBS"
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h. */
10438
10439
10440int
10441main ()
10442{
10443return main ();
10444 ;
10445 return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext conftest$ac_exeext
10449if { (ac_try="$ac_link"
10450case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_link") 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext &&
10465 $as_test_x conftest$ac_exeext; then
10466 ac_cv_lib_opengl32_main=yes
10467else
10468 echo "$as_me: failed program was:" >&5
10469sed 's/^/| /' conftest.$ac_ext >&5
10470
10471 ac_cv_lib_opengl32_main=no
10472fi
10473
10474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10475 conftest$ac_exeext conftest.$ac_ext
10476LIBS=$ac_check_lib_save_LIBS
10477fi
10478{ echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
10479echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6; }
10480if test $ac_cv_lib_opengl32_main = yes; then
10481 GL_LIBS="$GL_LIBS -lopengl32"
10482fi
10483
10484 { echo "$as_me:$LINENO: checking for main in -lglu32" >&5
10485echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6; }
10486if test "${ac_cv_lib_glu32_main+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489 ac_check_lib_save_LIBS=$LIBS
10490LIBS="-lglu32 $LIBS"
10491cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h. */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
10496/* end confdefs.h. */
10497
10498
10499int
10500main ()
10501{
10502return main ();
10503 ;
10504 return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && {
10521 test -z "$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 } && test -s conftest$ac_exeext &&
10524 $as_test_x conftest$ac_exeext; then
10525 ac_cv_lib_glu32_main=yes
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 ac_cv_lib_glu32_main=no
10531fi
10532
10533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10534 conftest$ac_exeext conftest.$ac_ext
10535LIBS=$ac_check_lib_save_LIBS
10536fi
10537{ echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
10538echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6; }
10539if test $ac_cv_lib_glu32_main = yes; then
10540 GL_LIBS="$GL_LIBS -lglu32"
10541fi
10542
10543 { echo "$as_me:$LINENO: checking for main in -lXmu" >&5
10544echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6; }
10545if test "${ac_cv_lib_Xmu_main+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 ac_check_lib_save_LIBS=$LIBS
10549LIBS="-lXmu $LIBS"
10550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h. */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h. */
10556
10557
10558int
10559main ()
10560{
10561return main ();
10562 ;
10563 return 0;
10564}
10565_ACEOF
10566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (ac_try="$ac_link"
10568case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest$ac_exeext &&
10583 $as_test_x conftest$ac_exeext; then
10584 ac_cv_lib_Xmu_main=yes
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 ac_cv_lib_Xmu_main=no
10590fi
10591
10592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10593 conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5
10597echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6; }
10598if test $ac_cv_lib_Xmu_main = yes; then
10599 GL_LIBS="$GL_LIBS -lXmu"
10600fi
10601
10602 { echo "$as_me:$LINENO: checking for main in -lXi" >&5
10603echo $ECHO_N "checking for main in -lXi... $ECHO_C" >&6; }
10604if test "${ac_cv_lib_Xi_main+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 ac_check_lib_save_LIBS=$LIBS
10608LIBS="-lXi $LIBS"
10609cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
10615
10616
10617int
10618main ()
10619{
10620return main ();
10621 ;
10622 return 0;
10623}
10624_ACEOF
10625rm -f conftest.$ac_objext conftest$ac_exeext
10626if { (ac_try="$ac_link"
10627case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 ac_cv_lib_Xi_main=yes
10644else
10645 echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 ac_cv_lib_Xi_main=no
10649fi
10650
10651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653LIBS=$ac_check_lib_save_LIBS
10654fi
10655{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_main" >&5
10656echo "${ECHO_T}$ac_cv_lib_Xi_main" >&6; }
10657if test $ac_cv_lib_Xi_main = yes; then
10658 GL_LIBS="$GL_LIBS -lXi"
10659fi
10660
10661 { echo "$as_me:$LINENO: checking for main in -lX" >&5
10662echo $ECHO_N "checking for main in -lX... $ECHO_C" >&6; }
10663if test "${ac_cv_lib_X_main+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 ac_check_lib_save_LIBS=$LIBS
10667LIBS="-lX $LIBS"
10668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674
10675
10676int
10677main ()
10678{
10679return main ();
10680 ;
10681 return 0;
10682}
10683_ACEOF
10684rm -f conftest.$ac_objext conftest$ac_exeext
10685if { (ac_try="$ac_link"
10686case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689esac
10690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_link") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext &&
10701 $as_test_x conftest$ac_exeext; then
10702 ac_cv_lib_X_main=yes
10703else
10704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_cv_lib_X_main=no
10708fi
10709
10710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10711 conftest$ac_exeext conftest.$ac_ext
10712LIBS=$ac_check_lib_save_LIBS
10713fi
10714{ echo "$as_me:$LINENO: result: $ac_cv_lib_X_main" >&5
10715echo "${ECHO_T}$ac_cv_lib_X_main" >&6; }
10716if test $ac_cv_lib_X_main = yes; then
10717 GL_LIBS="$GL_LIBS -lX"
10718fi
10719
10720 { echo "$as_me:$LINENO: checking for main in -lX11" >&5
10721echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; }
10722if test "${ac_cv_lib_X11_main+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725 ac_check_lib_save_LIBS=$LIBS
10726LIBS="-lX11 $LIBS"
10727cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733
10734
10735int
10736main ()
10737{
10738return main ();
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743rm -f conftest.$ac_objext conftest$ac_exeext
10744if { (ac_try="$ac_link"
10745case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_link") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext &&
10760 $as_test_x conftest$ac_exeext; then
10761 ac_cv_lib_X11_main=yes
10762else
10763 echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_cv_lib_X11_main=no
10767fi
10768
10769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext conftest.$ac_ext
10771LIBS=$ac_check_lib_save_LIBS
10772fi
10773{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
10774echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; }
10775if test $ac_cv_lib_X11_main = yes; then
10776 GL_LIBS="$GL_LIBS -lX11"
10777fi
10778
10779fi
10780
10781
10782{ echo "$as_me:$LINENO: checking for main in -lcomctl32" >&5
10783echo $ECHO_N "checking for main in -lcomctl32... $ECHO_C" >&6; }
10784if test "${ac_cv_lib_comctl32_main+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 ac_check_lib_save_LIBS=$LIBS
10788LIBS="-lcomctl32 $LIBS"
10789cat >conftest.$ac_ext <<_ACEOF
10790/* confdefs.h. */
10791_ACEOF
10792cat confdefs.h >>conftest.$ac_ext
10793cat >>conftest.$ac_ext <<_ACEOF
10794/* end confdefs.h. */
10795
10796
10797int
10798main ()
10799{
10800return main ();
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext conftest$ac_exeext
10806if { (ac_try="$ac_link"
10807case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_link") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext &&
10822 $as_test_x conftest$ac_exeext; then
10823 ac_cv_lib_comctl32_main=yes
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_lib_comctl32_main=no
10829fi
10830
10831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10832 conftest$ac_exeext conftest.$ac_ext
10833LIBS=$ac_check_lib_save_LIBS
10834fi
10835{ echo "$as_me:$LINENO: result: $ac_cv_lib_comctl32_main" >&5
10836echo "${ECHO_T}$ac_cv_lib_comctl32_main" >&6; }
10837if test $ac_cv_lib_comctl32_main = yes; then
10838 LIBS="$LIBS -lcomctl32"
10839fi
10840
10841{ echo "$as_me:$LINENO: checking for main in -lkernel32" >&5
10842echo $ECHO_N "checking for main in -lkernel32... $ECHO_C" >&6; }
10843if test "${ac_cv_lib_kernel32_main+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 ac_check_lib_save_LIBS=$LIBS
10847LIBS="-lkernel32 $LIBS"
10848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854
10855
10856int
10857main ()
10858{
10859return main ();
10860 ;
10861 return 0;
10862}
10863_ACEOF
10864rm -f conftest.$ac_objext conftest$ac_exeext
10865if { (ac_try="$ac_link"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest$ac_exeext &&
10881 $as_test_x conftest$ac_exeext; then
10882 ac_cv_lib_kernel32_main=yes
10883else
10884 echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
10887 ac_cv_lib_kernel32_main=no
10888fi
10889
10890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10892LIBS=$ac_check_lib_save_LIBS
10893fi
10894{ echo "$as_me:$LINENO: result: $ac_cv_lib_kernel32_main" >&5
10895echo "${ECHO_T}$ac_cv_lib_kernel32_main" >&6; }
10896if test $ac_cv_lib_kernel32_main = yes; then
10897 LIBS="$LIBS -lkernel32"
10898fi
10899
10900{ echo "$as_me:$LINENO: checking for main in -luser32" >&5
10901echo $ECHO_N "checking for main in -luser32... $ECHO_C" >&6; }
10902if test "${ac_cv_lib_user32_main+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905 ac_check_lib_save_LIBS=$LIBS
10906LIBS="-luser32 $LIBS"
10907cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913
10914
10915int
10916main ()
10917{
10918return main ();
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext conftest$ac_exeext
10924if { (ac_try="$ac_link"
10925case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
10929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_link") 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest$ac_exeext &&
10940 $as_test_x conftest$ac_exeext; then
10941 ac_cv_lib_user32_main=yes
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 ac_cv_lib_user32_main=no
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950 conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ echo "$as_me:$LINENO: result: $ac_cv_lib_user32_main" >&5
10954echo "${ECHO_T}$ac_cv_lib_user32_main" >&6; }
10955if test $ac_cv_lib_user32_main = yes; then
10956 LIBS="$LIBS -luser32"
10957fi
10958
10959{ echo "$as_me:$LINENO: checking for main in -lgdi32" >&5
10960echo $ECHO_N "checking for main in -lgdi32... $ECHO_C" >&6; }
10961if test "${ac_cv_lib_gdi32_main+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 ac_check_lib_save_LIBS=$LIBS
10965LIBS="-lgdi32 $LIBS"
10966cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10972
10973
10974int
10975main ()
10976{
10977return main ();
10978 ;
10979 return 0;
10980}
10981_ACEOF
10982rm -f conftest.$ac_objext conftest$ac_exeext
10983if { (ac_try="$ac_link"
10984case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_link") 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && {
10996 test -z "$ac_c_werror_flag" ||
10997 test ! -s conftest.err
10998 } && test -s conftest$ac_exeext &&
10999 $as_test_x conftest$ac_exeext; then
11000 ac_cv_lib_gdi32_main=yes
11001else
11002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ac_cv_lib_gdi32_main=no
11006fi
11007
11008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11009 conftest$ac_exeext conftest.$ac_ext
11010LIBS=$ac_check_lib_save_LIBS
11011fi
11012{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdi32_main" >&5
11013echo "${ECHO_T}$ac_cv_lib_gdi32_main" >&6; }
11014if test $ac_cv_lib_gdi32_main = yes; then
11015 LIBS="$LIBS -lgdi32"
11016fi
11017
11018{ echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
11019echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
11020if test "${ac_cv_lib_winmm_main+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022else
11023 ac_check_lib_save_LIBS=$LIBS
11024LIBS="-lwinmm $LIBS"
11025cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
11030/* end confdefs.h. */
11031
11032
11033int
11034main ()
11035{
11036return main ();
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext conftest$ac_exeext
11042if { (ac_try="$ac_link"
11043case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest$ac_exeext &&
11058 $as_test_x conftest$ac_exeext; then
11059 ac_cv_lib_winmm_main=yes
11060else
11061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_cv_lib_winmm_main=no
11065fi
11066
11067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11069LIBS=$ac_check_lib_save_LIBS
11070fi
11071{ echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
11072echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
11073if test $ac_cv_lib_winmm_main = yes; then
11074 LIBS="$LIBS -lwinmm"
11075fi
11076
11077
11078{ echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
11079echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; }
11080if test "${ac_cv_lib_stdcpp_main+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 ac_check_lib_save_LIBS=$LIBS
11084LIBS="-lstdc++ $LIBS"
11085cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
11091
11092
11093int
11094main ()
11095{
11096return main ();
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext conftest$ac_exeext
11102if { (ac_try="$ac_link"
11103case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106esac
11107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext &&
11118 $as_test_x conftest$ac_exeext; then
11119 ac_cv_lib_stdcpp_main=yes
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_lib_stdcpp_main=no
11125fi
11126
11127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11128 conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
11132echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; }
11133if test $ac_cv_lib_stdcpp_main = yes; then
11134 LIBS="$LIBS -lstdc++"
11135fi
11136
11137{ echo "$as_me:$LINENO: checking for main in -lm" >&5
11138echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
11139if test "${ac_cv_lib_m_main+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141else
11142 ac_check_lib_save_LIBS=$LIBS
11143LIBS="-lm $LIBS"
11144cat >conftest.$ac_ext <<_ACEOF
11145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
11150
11151
11152int
11153main ()
11154{
11155return main ();
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext conftest$ac_exeext
11161if { (ac_try="$ac_link"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_link") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } && {
11174 test -z "$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11176 } && test -s conftest$ac_exeext &&
11177 $as_test_x conftest$ac_exeext; then
11178 ac_cv_lib_m_main=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_cv_lib_m_main=no
11184fi
11185
11186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11187 conftest$ac_exeext conftest.$ac_ext
11188LIBS=$ac_check_lib_save_LIBS
11189fi
11190{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
11191echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
11192if test $ac_cv_lib_m_main = yes; then
11193 LIBS="$LIBS -lm"
11194fi
11195
11196{ echo "$as_me:$LINENO: checking for main in -lpthread" >&5
11197echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
11198if test "${ac_cv_lib_pthread_main+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200else
11201 ac_check_lib_save_LIBS=$LIBS
11202LIBS="-lpthread $LIBS"
11203cat >conftest.$ac_ext <<_ACEOF
11204/* confdefs.h. */
11205_ACEOF
11206cat confdefs.h >>conftest.$ac_ext
11207cat >>conftest.$ac_ext <<_ACEOF
11208/* end confdefs.h. */
11209
11210
11211int
11212main ()
11213{
11214return main ();
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext conftest$ac_exeext
11220if { (ac_try="$ac_link"
11221case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_link") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && {
11233 test -z "$ac_c_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest$ac_exeext &&
11236 $as_test_x conftest$ac_exeext; then
11237 ac_cv_lib_pthread_main=yes
11238else
11239 echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_cv_lib_pthread_main=no
11243fi
11244
11245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11246 conftest$ac_exeext conftest.$ac_ext
11247LIBS=$ac_check_lib_save_LIBS
11248fi
11249{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
11250echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
11251if test $ac_cv_lib_pthread_main = yes; then
11252 LIBS="$LIBS -lpthread"
11253fi
11254
11255
11256
11257TOPDIR=`cd $srcdir;pwd`
11258
11259
11260{ echo "$as_me:$LINENO: checking for gprof" >&5
11261echo $ECHO_N "checking for gprof... $ECHO_C" >&6; }
11262# Check whether --enable-gprof was given.
11263if test "${enable_gprof+set}" = set; then
11264 enableval=$enable_gprof; gprof=$enableval
11265else
11266 gprof=no
11267fi
11268
11269if test "$gprof" != no
11270then
11271 CFLAGS="-pg $CFLAGS"
11272 CPPFLAGS="-pg $CPPFLAGS"
11273 CXXFLAGS="-pg $CXXFLAGS"
11274 { echo "$as_me:$LINENO: checking for main in -lgmon" >&5
11275echo $ECHO_N "checking for main in -lgmon... $ECHO_C" >&6; }
11276if test "${ac_cv_lib_gmon_main+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
11279 ac_check_lib_save_LIBS=$LIBS
11280LIBS="-lgmon $LIBS"
11281cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287
11288
11289int
11290main ()
11291{
11292return main ();
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297rm -f conftest.$ac_objext conftest$ac_exeext
11298if { (ac_try="$ac_link"
11299case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_link") 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest$ac_exeext &&
11314 $as_test_x conftest$ac_exeext; then
11315 ac_cv_lib_gmon_main=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320 ac_cv_lib_gmon_main=no
11321fi
11322
11323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11324 conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmon_main" >&5
11328echo "${ECHO_T}$ac_cv_lib_gmon_main" >&6; }
11329if test $ac_cv_lib_gmon_main = yes; then
11330 LIBS="$LIBS -lgmon"
11331fi
11332
11333 { echo "$as_me:$LINENO: result: enabled" >&5
11334echo "${ECHO_T}enabled" >&6; }
11335else
11336 { echo "$as_me:$LINENO: result: no" >&5
11337echo "${ECHO_T}no" >&6; }
11338fi
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362for ac_func in floor memmove memset select sqrt sqrtf sinf cosf fabsf atan2f fmodf copysignf copysign snprintf vsnprintf gettimeofday isnan isnanf _isnan _isnanf __isnan __isnanf
11363do
11364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 cat >conftest.$ac_ext <<_ACEOF
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
11376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11378#define $ac_func innocuous_$ac_func
11379
11380/* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below.
11382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383 <limits.h> exists even on freestanding compilers. */
11384
11385#ifdef __STDC__
11386# include <limits.h>
11387#else
11388# include <assert.h>
11389#endif
11390
11391#undef $ac_func
11392
11393/* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396#ifdef __cplusplus
11397extern "C"
11398#endif
11399char $ac_func ();
11400/* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403#if defined __stub_$ac_func || defined __stub___$ac_func
11404choke me
11405#endif
11406
11407int
11408main ()
11409{
11410return $ac_func ();
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
11416if { (ac_try="$ac_link"
11417case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest$ac_exeext &&
11432 $as_test_x conftest$ac_exeext; then
11433 eval "$as_ac_var=yes"
11434else
11435 echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438 eval "$as_ac_var=no"
11439fi
11440
11441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11442 conftest$ac_exeext conftest.$ac_ext
11443fi
11444ac_res=`eval echo '${'$as_ac_var'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446echo "${ECHO_T}$ac_res" >&6; }
11447if test `eval echo '${'$as_ac_var'}'` = yes; then
11448 cat >>confdefs.h <<_ACEOF
11449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11450_ACEOF
11451
11452fi
11453done
11454
11455if test "$build_os" == "$target_os"
11456then
11457# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11458# for constant arguments. Useless!
11459{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
11460echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
11461if test "${ac_cv_working_alloca_h+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470#include <alloca.h>
11471int
11472main ()
11473{
11474char *p = (char *) alloca (2 * sizeof (int));
11475 if (p) return 0;
11476 ;
11477 return 0;
11478}
11479_ACEOF
11480rm -f conftest.$ac_objext conftest$ac_exeext
11481if { (ac_try="$ac_link"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_link") 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } && {
11494 test -z "$ac_c_werror_flag" ||
11495 test ! -s conftest.err
11496 } && test -s conftest$ac_exeext &&
11497 $as_test_x conftest$ac_exeext; then
11498 ac_cv_working_alloca_h=yes
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ac_cv_working_alloca_h=no
11504fi
11505
11506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11507 conftest$ac_exeext conftest.$ac_ext
11508fi
11509{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11510echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
11511if test $ac_cv_working_alloca_h = yes; then
11512
11513cat >>confdefs.h <<\_ACEOF
11514#define HAVE_ALLOCA_H 1
11515_ACEOF
11516
11517fi
11518
11519{ echo "$as_me:$LINENO: checking for alloca" >&5
11520echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11521if test "${ac_cv_func_alloca_works+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530#ifdef __GNUC__
11531# define alloca __builtin_alloca
11532#else
11533# ifdef _MSC_VER
11534# include <malloc.h>
11535# define alloca _alloca
11536# else
11537# ifdef HAVE_ALLOCA_H
11538# include <alloca.h>
11539# else
11540# ifdef _AIX
11541 #pragma alloca
11542# else
11543# ifndef alloca /* predefined by HP cc +Olibcalls */
11544char *alloca ();
11545# endif
11546# endif
11547# endif
11548# endif
11549#endif
11550
11551int
11552main ()
11553{
11554char *p = (char *) alloca (1);
11555 if (p) return 0;
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
11561if { (ac_try="$ac_link"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest$ac_exeext &&
11577 $as_test_x conftest$ac_exeext; then
11578 ac_cv_func_alloca_works=yes
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 ac_cv_func_alloca_works=no
11584fi
11585
11586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587 conftest$ac_exeext conftest.$ac_ext
11588fi
11589{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11590echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
11591
11592if test $ac_cv_func_alloca_works = yes; then
11593
11594cat >>confdefs.h <<\_ACEOF
11595#define HAVE_ALLOCA 1
11596_ACEOF
11597
11598else
11599 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11600# that cause trouble. Some versions do not even contain alloca or
11601# contain a buggy version. If you still want to use their alloca,
11602# use ar to extract alloca.o from them instead of compiling alloca.c.
11603
11604ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11605
11606cat >>confdefs.h <<\_ACEOF
11607#define C_ALLOCA 1
11608_ACEOF
11609
11610
11611{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11612echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
11613if test "${ac_cv_os_cray+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616 cat >conftest.$ac_ext <<_ACEOF
11617/* confdefs.h. */
11618_ACEOF
11619cat confdefs.h >>conftest.$ac_ext
11620cat >>conftest.$ac_ext <<_ACEOF
11621/* end confdefs.h. */
11622#if defined CRAY && ! defined CRAY2
11623webecray
11624#else
11625wenotbecray
11626#endif
11627
11628_ACEOF
11629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "webecray" >/dev/null 2>&1; then
11631 ac_cv_os_cray=yes
11632else
11633 ac_cv_os_cray=no
11634fi
11635rm -f conftest*
11636
11637fi
11638{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11639echo "${ECHO_T}$ac_cv_os_cray" >&6; }
11640if test $ac_cv_os_cray = yes; then
11641 for ac_func in _getb67 GETB67 getb67; do
11642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11645if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648 cat >conftest.$ac_ext <<_ACEOF
11649/* confdefs.h. */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h. */
11654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11656#define $ac_func innocuous_$ac_func
11657
11658/* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below.
11660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661 <limits.h> exists even on freestanding compilers. */
11662
11663#ifdef __STDC__
11664# include <limits.h>
11665#else
11666# include <assert.h>
11667#endif
11668
11669#undef $ac_func
11670
11671/* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674#ifdef __cplusplus
11675extern "C"
11676#endif
11677char $ac_func ();
11678/* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681#if defined __stub_$ac_func || defined __stub___$ac_func
11682choke me
11683#endif
11684
11685int
11686main ()
11687{
11688return $ac_func ();
11689 ;
11690 return 0;
11691}
11692_ACEOF
11693rm -f conftest.$ac_objext conftest$ac_exeext
11694if { (ac_try="$ac_link"
11695case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_link") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest$ac_exeext &&
11710 $as_test_x conftest$ac_exeext; then
11711 eval "$as_ac_var=yes"
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 eval "$as_ac_var=no"
11717fi
11718
11719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720 conftest$ac_exeext conftest.$ac_ext
11721fi
11722ac_res=`eval echo '${'$as_ac_var'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724echo "${ECHO_T}$ac_res" >&6; }
11725if test `eval echo '${'$as_ac_var'}'` = yes; then
11726
11727cat >>confdefs.h <<_ACEOF
11728#define CRAY_STACKSEG_END $ac_func
11729_ACEOF
11730
11731 break
11732fi
11733
11734 done
11735fi
11736
11737{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11738echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
11739if test "${ac_cv_c_stack_direction+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 if test "$cross_compiling" = yes; then
11743 ac_cv_c_stack_direction=0
11744else
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751$ac_includes_default
11752int
11753find_stack_direction ()
11754{
11755 static char *addr = 0;
11756 auto char dummy;
11757 if (addr == 0)
11758 {
11759 addr = &dummy;
11760 return find_stack_direction ();
11761 }
11762 else
11763 return (&dummy > addr) ? 1 : -1;
11764}
11765
11766int
11767main ()
11768{
11769 return find_stack_direction () < 0;
11770}
11771_ACEOF
11772rm -f conftest$ac_exeext
11773if { (ac_try="$ac_link"
11774case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777esac
11778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_link") 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_cv_c_stack_direction=1
11793else
11794 echo "$as_me: program exited with status $ac_status" >&5
11795echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
11798( exit $ac_status )
11799ac_cv_c_stack_direction=-1
11800fi
11801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11802fi
11803
11804
11805fi
11806{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11807echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
11808
11809cat >>confdefs.h <<_ACEOF
11810#define STACK_DIRECTION $ac_cv_c_stack_direction
11811_ACEOF
11812
11813
11814fi
11815
11816
11817for ac_header in stdlib.h
11818do
11819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825fi
11826ac_res=`eval echo '${'$as_ac_Header'}'`
11827 { echo "$as_me:$LINENO: result: $ac_res" >&5
11828echo "${ECHO_T}$ac_res" >&6; }
11829else
11830 # Is the header compilable?
11831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11833cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */
11835_ACEOF
11836cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */
11839$ac_includes_default
11840#include <$ac_header>
11841_ACEOF
11842rm -f conftest.$ac_objext
11843if { (ac_try="$ac_compile"
11844case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_compile") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest.$ac_objext; then
11859 ac_header_compiler=yes
11860else
11861 echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_header_compiler=no
11865fi
11866
11867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11869echo "${ECHO_T}$ac_header_compiler" >&6; }
11870
11871# Is the header present?
11872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11874cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880#include <$ac_header>
11881_ACEOF
11882if { (ac_try="$ac_cpp conftest.$ac_ext"
11883case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } >/dev/null && {
11895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 }; then
11898 ac_header_preproc=yes
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_header_preproc=no
11904fi
11905
11906rm -f conftest.err conftest.$ac_ext
11907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11908echo "${ECHO_T}$ac_header_preproc" >&6; }
11909
11910# So? What about this header?
11911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11912 yes:no: )
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11917 ac_header_preproc=yes
11918 ;;
11919 no:yes:* )
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11932 ( cat <<\_ASBOX
11933## -------------------------- ##
11934## Report this to ode@ode.org ##
11935## -------------------------- ##
11936_ASBOX
11937 ) | sed "s/^/$as_me: WARNING: /" >&2
11938 ;;
11939esac
11940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 eval "$as_ac_Header=\$ac_header_preproc"
11946fi
11947ac_res=`eval echo '${'$as_ac_Header'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949echo "${ECHO_T}$ac_res" >&6; }
11950
11951fi
11952if test `eval echo '${'$as_ac_Header'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955_ACEOF
11956
11957fi
11958
11959done
11960
11961{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11962echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11963if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 if test "$cross_compiling" = yes; then
11967 ac_cv_func_malloc_0_nonnull=no
11968else
11969 cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975#if defined STDC_HEADERS || defined HAVE_STDLIB_H
11976# include <stdlib.h>
11977#else
11978char *malloc ();
11979#endif
11980
11981int
11982main ()
11983{
11984return ! malloc (0);
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest$ac_exeext
11990if { (ac_try="$ac_link"
11991case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_link") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12000 { (case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_try") 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_func_malloc_0_nonnull=yes
12010else
12011 echo "$as_me: program exited with status $ac_status" >&5
12012echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015( exit $ac_status )
12016ac_cv_func_malloc_0_nonnull=no
12017fi
12018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12019fi
12020
12021
12022fi
12023{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12024echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12025if test $ac_cv_func_malloc_0_nonnull = yes; then
12026
12027cat >>confdefs.h <<\_ACEOF
12028#define HAVE_MALLOC 1
12029_ACEOF
12030
12031else
12032 cat >>confdefs.h <<\_ACEOF
12033#define HAVE_MALLOC 0
12034_ACEOF
12035
12036 case " $LIBOBJS " in
12037 *" malloc.$ac_objext "* ) ;;
12038 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12039 ;;
12040esac
12041
12042
12043cat >>confdefs.h <<\_ACEOF
12044#define malloc rpl_malloc
12045_ACEOF
12046
12047fi
12048
12049
12050
12051{ echo "$as_me:$LINENO: checking for obstacks" >&5
12052echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; }
12053if test "${ac_cv_func_obstack+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056 cat >conftest.$ac_ext <<_ACEOF
12057/* confdefs.h. */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */
12062$ac_includes_default
12063 #include "obstack.h"
12064int
12065main ()
12066{
12067struct obstack mem;
12068 #define obstack_chunk_alloc malloc
12069 #define obstack_chunk_free free
12070 obstack_init (&mem);
12071 obstack_free (&mem, 0);
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext conftest$ac_exeext
12077if { (ac_try="$ac_link"
12078case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest$ac_exeext &&
12093 $as_test_x conftest$ac_exeext; then
12094 ac_cv_func_obstack=yes
12095else
12096 echo "$as_me: failed program was:" >&5
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_cv_func_obstack=no
12100fi
12101
12102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12103 conftest$ac_exeext conftest.$ac_ext
12104fi
12105{ echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
12106echo "${ECHO_T}$ac_cv_func_obstack" >&6; }
12107if test $ac_cv_func_obstack = yes; then
12108
12109cat >>confdefs.h <<\_ACEOF
12110#define HAVE_OBSTACK 1
12111_ACEOF
12112
12113else
12114 case " $LIBOBJS " in
12115 *" obstack.$ac_objext "* ) ;;
12116 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
12117 ;;
12118esac
12119
12120fi
12121
12122
12123for ac_header in stdlib.h
12124do
12125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131fi
12132ac_res=`eval echo '${'$as_ac_Header'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134echo "${ECHO_T}$ac_res" >&6; }
12135else
12136 # Is the header compilable?
12137{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145$ac_includes_default
12146#include <$ac_header>
12147_ACEOF
12148rm -f conftest.$ac_objext
12149if { (ac_try="$ac_compile"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest.$ac_objext; then
12165 ac_header_compiler=yes
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_header_compiler=no
12171fi
12172
12173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175echo "${ECHO_T}$ac_header_compiler" >&6; }
12176
12177# Is the header present?
12178{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12179echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12180cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h. */
12186#include <$ac_header>
12187_ACEOF
12188if { (ac_try="$ac_cpp conftest.$ac_ext"
12189case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } >/dev/null && {
12201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 }; then
12204 ac_header_preproc=yes
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 ac_header_preproc=no
12210fi
12211
12212rm -f conftest.err conftest.$ac_ext
12213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214echo "${ECHO_T}$ac_header_preproc" >&6; }
12215
12216# So? What about this header?
12217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 yes:no: )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12224 ;;
12225 no:yes:* )
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12238 ( cat <<\_ASBOX
12239## -------------------------- ##
12240## Report this to ode@ode.org ##
12241## -------------------------- ##
12242_ASBOX
12243 ) | sed "s/^/$as_me: WARNING: /" >&2
12244 ;;
12245esac
12246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 eval "$as_ac_Header=\$ac_header_preproc"
12252fi
12253ac_res=`eval echo '${'$as_ac_Header'}'`
12254 { echo "$as_me:$LINENO: result: $ac_res" >&5
12255echo "${ECHO_T}$ac_res" >&6; }
12256
12257fi
12258if test `eval echo '${'$as_ac_Header'}'` = yes; then
12259 cat >>confdefs.h <<_ACEOF
12260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12261_ACEOF
12262
12263fi
12264
12265done
12266
12267{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
12268echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
12269if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272 if test "$cross_compiling" = yes; then
12273 ac_cv_func_realloc_0_nonnull=no
12274else
12275 cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12282# include <stdlib.h>
12283#else
12284char *realloc ();
12285#endif
12286
12287int
12288main ()
12289{
12290return ! realloc (0, 0);
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest$ac_exeext
12296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_link") 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_func_realloc_0_nonnull=yes
12316else
12317 echo "$as_me: program exited with status $ac_status" >&5
12318echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321( exit $ac_status )
12322ac_cv_func_realloc_0_nonnull=no
12323fi
12324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12325fi
12326
12327
12328fi
12329{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
12330echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
12331if test $ac_cv_func_realloc_0_nonnull = yes; then
12332
12333cat >>confdefs.h <<\_ACEOF
12334#define HAVE_REALLOC 1
12335_ACEOF
12336
12337else
12338 cat >>confdefs.h <<\_ACEOF
12339#define HAVE_REALLOC 0
12340_ACEOF
12341
12342 case " $LIBOBJS " in
12343 *" realloc.$ac_objext "* ) ;;
12344 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12345 ;;
12346esac
12347
12348
12349cat >>confdefs.h <<\_ACEOF
12350#define realloc rpl_realloc
12351_ACEOF
12352
12353fi
12354
12355
12356
12357
12358
12359for ac_header in sys/select.h sys/socket.h
12360do
12361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367fi
12368ac_res=`eval echo '${'$as_ac_Header'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370echo "${ECHO_T}$ac_res" >&6; }
12371else
12372 # Is the header compilable?
12373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12375cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
12381$ac_includes_default
12382#include <$ac_header>
12383_ACEOF
12384rm -f conftest.$ac_objext
12385if { (ac_try="$ac_compile"
12386case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389esac
12390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
12401 ac_header_compiler=yes
12402else
12403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_header_compiler=no
12407fi
12408
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12411echo "${ECHO_T}$ac_header_compiler" >&6; }
12412
12413# Is the header present?
12414{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12416cat >conftest.$ac_ext <<_ACEOF
12417/* confdefs.h. */
12418_ACEOF
12419cat confdefs.h >>conftest.$ac_ext
12420cat >>conftest.$ac_ext <<_ACEOF
12421/* end confdefs.h. */
12422#include <$ac_header>
12423_ACEOF
12424if { (ac_try="$ac_cpp conftest.$ac_ext"
12425case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428esac
12429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } >/dev/null && {
12437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 }; then
12440 ac_header_preproc=yes
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_header_preproc=no
12446fi
12447
12448rm -f conftest.err conftest.$ac_ext
12449{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12450echo "${ECHO_T}$ac_header_preproc" >&6; }
12451
12452# So? What about this header?
12453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12454 yes:no: )
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12459 ac_header_preproc=yes
12460 ;;
12461 no:yes:* )
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12474 ( cat <<\_ASBOX
12475## -------------------------- ##
12476## Report this to ode@ode.org ##
12477## -------------------------- ##
12478_ASBOX
12479 ) | sed "s/^/$as_me: WARNING: /" >&2
12480 ;;
12481esac
12482{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486else
12487 eval "$as_ac_Header=\$ac_header_preproc"
12488fi
12489ac_res=`eval echo '${'$as_ac_Header'}'`
12490 { echo "$as_me:$LINENO: result: $ac_res" >&5
12491echo "${ECHO_T}$ac_res" >&6; }
12492
12493fi
12494if test `eval echo '${'$as_ac_Header'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12497_ACEOF
12498
12499fi
12500
12501done
12502
12503{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
12504echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12505if test "${ac_cv_func_select_args+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12509 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12510 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517$ac_includes_default
12518#ifdef HAVE_SYS_SELECT_H
12519# include <sys/select.h>
12520#endif
12521#ifdef HAVE_SYS_SOCKET_H
12522# include <sys/socket.h>
12523#endif
12524
12525int
12526main ()
12527{
12528extern int select ($ac_arg1,
12529 $ac_arg234, $ac_arg234, $ac_arg234,
12530 $ac_arg5);
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (ac_try="$ac_compile"
12537case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557
12558fi
12559
12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 done
12562 done
12563done
12564# Provide a safe default value.
12565: ${ac_cv_func_select_args='int,int *,struct timeval *'}
12566
12567fi
12568{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12569echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12570ac_save_IFS=$IFS; IFS=','
12571set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12572IFS=$ac_save_IFS
12573shift
12574
12575cat >>confdefs.h <<_ACEOF
12576#define SELECT_TYPE_ARG1 $1
12577_ACEOF
12578
12579
12580cat >>confdefs.h <<_ACEOF
12581#define SELECT_TYPE_ARG234 ($2)
12582_ACEOF
12583
12584
12585cat >>confdefs.h <<_ACEOF
12586#define SELECT_TYPE_ARG5 ($3)
12587_ACEOF
12588
12589rm -f conftest*
12590
12591
12592for ac_func in vprintf
12593do
12594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12595{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599else
12600 cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12608#define $ac_func innocuous_$ac_func
12609
12610/* System header to define __stub macros and hopefully few prototypes,
12611 which can conflict with char $ac_func (); below.
12612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12613 <limits.h> exists even on freestanding compilers. */
12614
12615#ifdef __STDC__
12616# include <limits.h>
12617#else
12618# include <assert.h>
12619#endif
12620
12621#undef $ac_func
12622
12623/* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12626#ifdef __cplusplus
12627extern "C"
12628#endif
12629char $ac_func ();
12630/* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633#if defined __stub_$ac_func || defined __stub___$ac_func
12634choke me
12635#endif
12636
12637int
12638main ()
12639{
12640return $ac_func ();
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext conftest$ac_exeext
12646if { (ac_try="$ac_link"
12647case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_link") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest$ac_exeext &&
12662 $as_test_x conftest$ac_exeext; then
12663 eval "$as_ac_var=yes"
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 eval "$as_ac_var=no"
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12672 conftest$ac_exeext conftest.$ac_ext
12673fi
12674ac_res=`eval echo '${'$as_ac_var'}'`
12675 { echo "$as_me:$LINENO: result: $ac_res" >&5
12676echo "${ECHO_T}$ac_res" >&6; }
12677if test `eval echo '${'$as_ac_var'}'` = yes; then
12678 cat >>confdefs.h <<_ACEOF
12679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12680_ACEOF
12681
12682{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12683echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12684if test "${ac_cv_func__doprnt+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12695#define _doprnt innocuous__doprnt
12696
12697/* System header to define __stub macros and hopefully few prototypes,
12698 which can conflict with char _doprnt (); below.
12699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12700 <limits.h> exists even on freestanding compilers. */
12701
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
12707
12708#undef _doprnt
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char _doprnt ();
12717/* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720#if defined __stub__doprnt || defined __stub____doprnt
12721choke me
12722#endif
12723
12724int
12725main ()
12726{
12727return _doprnt ();
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732rm -f conftest.$ac_objext conftest$ac_exeext
12733if { (ac_try="$ac_link"
12734case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_link") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest$ac_exeext &&
12749 $as_test_x conftest$ac_exeext; then
12750 ac_cv_func__doprnt=yes
12751else
12752 echo "$as_me: failed program was:" >&5
12753sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_cv_func__doprnt=no
12756fi
12757
12758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12759 conftest$ac_exeext conftest.$ac_ext
12760fi
12761{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12762echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12763if test $ac_cv_func__doprnt = yes; then
12764
12765cat >>confdefs.h <<\_ACEOF
12766#define HAVE_DOPRNT 1
12767_ACEOF
12768
12769fi
12770
12771fi
12772done
12773
12774
12775fi
12776
12777
12778
12779
12780
12781
12782
12783ac_config_files="$ac_config_files Makefile include/Makefile include/ode/Makefile ode/Makefile ode/src/Makefile drawstuff/Makefile drawstuff/src/Makefile drawstuff/dstest/Makefile ode/demo/Makefile tests/Makefile tests/CppTestHarness/Makefile ode-config"
12784
12785cat >confcache <<\_ACEOF
12786# This file is a shell script that caches the results of configure
12787# tests run on this system so they can be shared between configure
12788# scripts and configure runs, see configure's option --config-cache.
12789# It is not useful on other systems. If it contains results you don't
12790# want to keep, you may remove or edit it.
12791#
12792# config.status only pays attention to the cache file if you give it
12793# the --recheck option to rerun configure.
12794#
12795# `ac_cv_env_foo' variables (set or unset) will be overridden when
12796# loading this file, other *unset* `ac_cv_foo' will be assigned the
12797# following values.
12798
12799_ACEOF
12800
12801# The following way of writing the cache mishandles newlines in values,
12802# but we know of no workaround that is simple, portable, and efficient.
12803# So, we kill variables containing newlines.
12804# Ultrix sh set writes to stderr and can't be redirected directly,
12805# and sets the high bit in the cache file unless we assign to the vars.
12806(
12807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12808 eval ac_val=\$$ac_var
12809 case $ac_val in #(
12810 *${as_nl}*)
12811 case $ac_var in #(
12812 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12813echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12814 esac
12815 case $ac_var in #(
12816 _ | IFS | as_nl) ;; #(
12817 *) $as_unset $ac_var ;;
12818 esac ;;
12819 esac
12820 done
12821
12822 (set) 2>&1 |
12823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12824 *${as_nl}ac_space=\ *)
12825 # `set' does not quote correctly, so add quotes (double-quote
12826 # substitution turns \\\\ into \\, and sed turns \\ into \).
12827 sed -n \
12828 "s/'/'\\\\''/g;
12829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12830 ;; #(
12831 *)
12832 # `set' quotes correctly as required by POSIX, so do not add quotes.
12833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12834 ;;
12835 esac |
12836 sort
12837) |
12838 sed '
12839 /^ac_cv_env_/b end
12840 t clear
12841 :clear
12842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12843 t end
12844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12845 :end' >>confcache
12846if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12847 if test -w "$cache_file"; then
12848 test "x$cache_file" != "x/dev/null" &&
12849 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12850echo "$as_me: updating cache $cache_file" >&6;}
12851 cat confcache >$cache_file
12852 else
12853 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12854echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12855 fi
12856fi
12857rm -f confcache
12858
12859test "x$prefix" = xNONE && prefix=$ac_default_prefix
12860# Let make expand exec_prefix.
12861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12862
12863DEFS=-DHAVE_CONFIG_H
12864
12865ac_libobjs=
12866ac_ltlibobjs=
12867for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12868 # 1. Remove the extension, and $U if already installed.
12869 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12870 ac_i=`echo "$ac_i" | sed "$ac_script"`
12871 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12872 # will be set to the directory where LIBOBJS objects are built.
12873 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12874 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12875done
12876LIBOBJS=$ac_libobjs
12877
12878LTLIBOBJS=$ac_ltlibobjs
12879
12880
12881if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12882 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12883Usually this means the macro was only invoked conditionally." >&5
12884echo "$as_me: error: conditional \"AMDEP\" was never defined.
12885Usually this means the macro was only invoked conditionally." >&2;}
12886 { (exit 1); exit 1; }; }
12887fi
12888if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12889 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12890Usually this means the macro was only invoked conditionally." >&5
12891echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12892Usually this means the macro was only invoked conditionally." >&2;}
12893 { (exit 1); exit 1; }; }
12894fi
12895if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12896 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
12897Usually this means the macro was only invoked conditionally." >&5
12898echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
12899Usually this means the macro was only invoked conditionally." >&2;}
12900 { (exit 1); exit 1; }; }
12901fi
12902if test -z "${USE_SONAME_TRUE}" && test -z "${USE_SONAME_FALSE}"; then
12903 { { echo "$as_me:$LINENO: error: conditional \"USE_SONAME\" was never defined.
12904Usually this means the macro was only invoked conditionally." >&5
12905echo "$as_me: error: conditional \"USE_SONAME\" was never defined.
12906Usually this means the macro was only invoked conditionally." >&2;}
12907 { (exit 1); exit 1; }; }
12908fi
12909if test -z "${ENABLE_DEMOS_TRUE}" && test -z "${ENABLE_DEMOS_FALSE}"; then
12910 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEMOS\" was never defined.
12911Usually this means the macro was only invoked conditionally." >&5
12912echo "$as_me: error: conditional \"ENABLE_DEMOS\" was never defined.
12913Usually this means the macro was only invoked conditionally." >&2;}
12914 { (exit 1); exit 1; }; }
12915fi
12916if test -z "${OPCODE_TRUE}" && test -z "${OPCODE_FALSE}"; then
12917 { { echo "$as_me:$LINENO: error: conditional \"OPCODE\" was never defined.
12918Usually this means the macro was only invoked conditionally." >&5
12919echo "$as_me: error: conditional \"OPCODE\" was never defined.
12920Usually this means the macro was only invoked conditionally." >&2;}
12921 { (exit 1); exit 1; }; }
12922fi
12923if test -z "${GIMPACT_TRUE}" && test -z "${GIMPACT_FALSE}"; then
12924 { { echo "$as_me:$LINENO: error: conditional \"GIMPACT\" was never defined.
12925Usually this means the macro was only invoked conditionally." >&5
12926echo "$as_me: error: conditional \"GIMPACT\" was never defined.
12927Usually this means the macro was only invoked conditionally." >&2;}
12928 { (exit 1); exit 1; }; }
12929fi
12930if test -z "${TRIMESH_TRUE}" && test -z "${TRIMESH_FALSE}"; then
12931 { { echo "$as_me:$LINENO: error: conditional \"TRIMESH\" was never defined.
12932Usually this means the macro was only invoked conditionally." >&5
12933echo "$as_me: error: conditional \"TRIMESH\" was never defined.
12934Usually this means the macro was only invoked conditionally." >&2;}
12935 { (exit 1); exit 1; }; }
12936fi
12937if test -z "${X86_64_SYSTEM_TRUE}" && test -z "${X86_64_SYSTEM_FALSE}"; then
12938 { { echo "$as_me:$LINENO: error: conditional \"X86_64_SYSTEM\" was never defined.
12939Usually this means the macro was only invoked conditionally." >&5
12940echo "$as_me: error: conditional \"X86_64_SYSTEM\" was never defined.
12941Usually this means the macro was only invoked conditionally." >&2;}
12942 { (exit 1); exit 1; }; }
12943fi
12944if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
12945 { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
12946Usually this means the macro was only invoked conditionally." >&5
12947echo "$as_me: error: conditional \"WIN32\" was never defined.
12948Usually this means the macro was only invoked conditionally." >&2;}
12949 { (exit 1); exit 1; }; }
12950fi
12951if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then
12952 { { echo "$as_me:$LINENO: error: conditional \"X11\" was never defined.
12953Usually this means the macro was only invoked conditionally." >&5
12954echo "$as_me: error: conditional \"X11\" was never defined.
12955Usually this means the macro was only invoked conditionally." >&2;}
12956 { (exit 1); exit 1; }; }
12957fi
12958if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
12959 { { echo "$as_me:$LINENO: error: conditional \"OSX\" was never defined.
12960Usually this means the macro was only invoked conditionally." >&5
12961echo "$as_me: error: conditional \"OSX\" was never defined.
12962Usually this means the macro was only invoked conditionally." >&2;}
12963 { (exit 1); exit 1; }; }
12964fi
12965
12966: ${CONFIG_STATUS=./config.status}
12967ac_clean_files_save=$ac_clean_files
12968ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12969{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12970echo "$as_me: creating $CONFIG_STATUS" >&6;}
12971cat >$CONFIG_STATUS <<_ACEOF
12972#! $SHELL
12973# Generated by $as_me.
12974# Run this file to recreate the current configuration.
12975# Compiler output produced by configure, useful for debugging
12976# configure, is in config.log if it exists.
12977
12978debug=false
12979ac_cs_recheck=false
12980ac_cs_silent=false
12981SHELL=\${CONFIG_SHELL-$SHELL}
12982_ACEOF
12983
12984cat >>$CONFIG_STATUS <<\_ACEOF
12985## --------------------- ##
12986## M4sh Initialization. ##
12987## --------------------- ##
12988
12989# Be more Bourne compatible
12990DUALCASE=1; export DUALCASE # for MKS sh
12991if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12992 emulate sh
12993 NULLCMD=:
12994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12995 # is contrary to our usage. Disable this feature.
12996 alias -g '${1+"$@"}'='"$@"'
12997 setopt NO_GLOB_SUBST
12998else
12999 case `(set -o) 2>/dev/null` in
13000 *posix*) set -o posix ;;
13001esac
13002
13003fi
13004
13005
13006
13007
13008# PATH needs CR
13009# Avoid depending upon Character Ranges.
13010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13013as_cr_digits='0123456789'
13014as_cr_alnum=$as_cr_Letters$as_cr_digits
13015
13016# The user is always right.
13017if test "${PATH_SEPARATOR+set}" != set; then
13018 echo "#! /bin/sh" >conf$$.sh
13019 echo "exit 0" >>conf$$.sh
13020 chmod +x conf$$.sh
13021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13022 PATH_SEPARATOR=';'
13023 else
13024 PATH_SEPARATOR=:
13025 fi
13026 rm -f conf$$.sh
13027fi
13028
13029# Support unset when possible.
13030if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13031 as_unset=unset
13032else
13033 as_unset=false
13034fi
13035
13036
13037# IFS
13038# We need space, tab and new line, in precisely that order. Quoting is
13039# there to prevent editors from complaining about space-tab.
13040# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13041# splitting by setting IFS to empty value.)
13042as_nl='
13043'
13044IFS=" "" $as_nl"
13045
13046# Find who we are. Look in the path if we contain no directory separator.
13047case $0 in
13048 *[\\/]* ) as_myself=$0 ;;
13049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050for as_dir in $PATH
13051do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13055done
13056IFS=$as_save_IFS
13057
13058 ;;
13059esac
13060# We did not find ourselves, most probably we were run as `sh COMMAND'
13061# in which case we are not to be found in the path.
13062if test "x$as_myself" = x; then
13063 as_myself=$0
13064fi
13065if test ! -f "$as_myself"; then
13066 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13067 { (exit 1); exit 1; }
13068fi
13069
13070# Work around bugs in pre-3.0 UWIN ksh.
13071for as_var in ENV MAIL MAILPATH
13072do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13073done
13074PS1='$ '
13075PS2='> '
13076PS4='+ '
13077
13078# NLS nuisances.
13079for as_var in \
13080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13082 LC_TELEPHONE LC_TIME
13083do
13084 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13085 eval $as_var=C; export $as_var
13086 else
13087 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13088 fi
13089done
13090
13091# Required to use basename.
13092if expr a : '\(a\)' >/dev/null 2>&1 &&
13093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13094 as_expr=expr
13095else
13096 as_expr=false
13097fi
13098
13099if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13100 as_basename=basename
13101else
13102 as_basename=false
13103fi
13104
13105
13106# Name of the executable.
13107as_me=`$as_basename -- "$0" ||
13108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13109 X"$0" : 'X\(//\)$' \| \
13110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13111echo X/"$0" |
13112 sed '/^.*\/\([^/][^/]*\)\/*$/{
13113 s//\1/
13114 q
13115 }
13116 /^X\/\(\/\/\)$/{
13117 s//\1/
13118 q
13119 }
13120 /^X\/\(\/\).*/{
13121 s//\1/
13122 q
13123 }
13124 s/.*/./; q'`
13125
13126# CDPATH.
13127$as_unset CDPATH
13128
13129
13130
13131 as_lineno_1=$LINENO
13132 as_lineno_2=$LINENO
13133 test "x$as_lineno_1" != "x$as_lineno_2" &&
13134 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13135
13136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13137 # uniformly replaced by the line number. The first 'sed' inserts a
13138 # line-number line after each line using $LINENO; the second 'sed'
13139 # does the real work. The second script uses 'N' to pair each
13140 # line-number line with the line containing $LINENO, and appends
13141 # trailing '-' during substitution so that $LINENO is not a special
13142 # case at line end.
13143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13144 # scripts with optimization help from Paolo Bonzini. Blame Lee
13145 # E. McMahon (1931-1989) for sed's syntax. :-)
13146 sed -n '
13147 p
13148 /[$]LINENO/=
13149 ' <$as_myself |
13150 sed '
13151 s/[$]LINENO.*/&-/
13152 t lineno
13153 b
13154 :lineno
13155 N
13156 :loop
13157 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13158 t loop
13159 s/-\n.*//
13160 ' >$as_me.lineno &&
13161 chmod +x "$as_me.lineno" ||
13162 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13163 { (exit 1); exit 1; }; }
13164
13165 # Don't try to exec as it changes $[0], causing all sort of problems
13166 # (the dirname of $[0] is not the place where we might find the
13167 # original and so on. Autoconf is especially sensitive to this).
13168 . "./$as_me.lineno"
13169 # Exit status is that of the last command.
13170 exit
13171}
13172
13173
13174if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13175 as_dirname=dirname
13176else
13177 as_dirname=false
13178fi
13179
13180ECHO_C= ECHO_N= ECHO_T=
13181case `echo -n x` in
13182-n*)
13183 case `echo 'x\c'` in
13184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13185 *) ECHO_C='\c';;
13186 esac;;
13187*)
13188 ECHO_N='-n';;
13189esac
13190
13191if expr a : '\(a\)' >/dev/null 2>&1 &&
13192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13193 as_expr=expr
13194else
13195 as_expr=false
13196fi
13197
13198rm -f conf$$ conf$$.exe conf$$.file
13199if test -d conf$$.dir; then
13200 rm -f conf$$.dir/conf$$.file
13201else
13202 rm -f conf$$.dir
13203 mkdir conf$$.dir
13204fi
13205echo >conf$$.file
13206if ln -s conf$$.file conf$$ 2>/dev/null; then
13207 as_ln_s='ln -s'
13208 # ... but there are two gotchas:
13209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13211 # In both cases, we have to default to `cp -p'.
13212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13213 as_ln_s='cp -p'
13214elif ln conf$$.file conf$$ 2>/dev/null; then
13215 as_ln_s=ln
13216else
13217 as_ln_s='cp -p'
13218fi
13219rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13220rmdir conf$$.dir 2>/dev/null
13221
13222if mkdir -p . 2>/dev/null; then
13223 as_mkdir_p=:
13224else
13225 test -d ./-p && rmdir ./-p
13226 as_mkdir_p=false
13227fi
13228
13229if test -x / >/dev/null 2>&1; then
13230 as_test_x='test -x'
13231else
13232 if ls -dL / >/dev/null 2>&1; then
13233 as_ls_L_option=L
13234 else
13235 as_ls_L_option=
13236 fi
13237 as_test_x='
13238 eval sh -c '\''
13239 if test -d "$1"; then
13240 test -d "$1/.";
13241 else
13242 case $1 in
13243 -*)set "./$1";;
13244 esac;
13245 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13246 ???[sx]*):;;*)false;;esac;fi
13247 '\'' sh
13248 '
13249fi
13250as_executable_p=$as_test_x
13251
13252# Sed expression to map a string onto a valid CPP name.
13253as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13254
13255# Sed expression to map a string onto a valid variable name.
13256as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13257
13258
13259exec 6>&1
13260
13261# Save the log message, to keep $[0] and so on meaningful, and to
13262# report actual input values of CONFIG_FILES etc. instead of their
13263# values after options handling.
13264ac_log="
13265This file was extended by ODE $as_me 0.9.0, which was
13266generated by GNU Autoconf 2.61. Invocation command line was
13267
13268 CONFIG_FILES = $CONFIG_FILES
13269 CONFIG_HEADERS = $CONFIG_HEADERS
13270 CONFIG_LINKS = $CONFIG_LINKS
13271 CONFIG_COMMANDS = $CONFIG_COMMANDS
13272 $ $0 $@
13273
13274on `(hostname || uname -n) 2>/dev/null | sed 1q`
13275"
13276
13277_ACEOF
13278
13279cat >>$CONFIG_STATUS <<_ACEOF
13280# Files that config.status was made for.
13281config_files="$ac_config_files"
13282config_headers="$ac_config_headers"
13283config_commands="$ac_config_commands"
13284
13285_ACEOF
13286
13287cat >>$CONFIG_STATUS <<\_ACEOF
13288ac_cs_usage="\
13289\`$as_me' instantiates files from templates according to the
13290current configuration.
13291
13292Usage: $0 [OPTIONS] [FILE]...
13293
13294 -h, --help print this help, then exit
13295 -V, --version print version number and configuration settings, then exit
13296 -q, --quiet do not print progress messages
13297 -d, --debug don't remove temporary files
13298 --recheck update $as_me by reconfiguring in the same conditions
13299 --file=FILE[:TEMPLATE]
13300 instantiate the configuration file FILE
13301 --header=FILE[:TEMPLATE]
13302 instantiate the configuration header FILE
13303
13304Configuration files:
13305$config_files
13306
13307Configuration headers:
13308$config_headers
13309
13310Configuration commands:
13311$config_commands
13312
13313Report bugs to <bug-autoconf@gnu.org>."
13314
13315_ACEOF
13316cat >>$CONFIG_STATUS <<_ACEOF
13317ac_cs_version="\\
13318ODE config.status 0.9.0
13319configured by $0, generated by GNU Autoconf 2.61,
13320 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13321
13322Copyright (C) 2006 Free Software Foundation, Inc.
13323This config.status script is free software; the Free Software Foundation
13324gives unlimited permission to copy, distribute and modify it."
13325
13326ac_pwd='$ac_pwd'
13327srcdir='$srcdir'
13328INSTALL='$INSTALL'
13329MKDIR_P='$MKDIR_P'
13330_ACEOF
13331
13332cat >>$CONFIG_STATUS <<\_ACEOF
13333# If no file are specified by the user, then we need to provide default
13334# value. By we need to know if files were specified by the user.
13335ac_need_defaults=:
13336while test $# != 0
13337do
13338 case $1 in
13339 --*=*)
13340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13342 ac_shift=:
13343 ;;
13344 *)
13345 ac_option=$1
13346 ac_optarg=$2
13347 ac_shift=shift
13348 ;;
13349 esac
13350
13351 case $ac_option in
13352 # Handling of the options.
13353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13354 ac_cs_recheck=: ;;
13355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13356 echo "$ac_cs_version"; exit ;;
13357 --debug | --debu | --deb | --de | --d | -d )
13358 debug=: ;;
13359 --file | --fil | --fi | --f )
13360 $ac_shift
13361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13362 ac_need_defaults=false;;
13363 --header | --heade | --head | --hea )
13364 $ac_shift
13365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13366 ac_need_defaults=false;;
13367 --he | --h)
13368 # Conflict between --help and --header
13369 { echo "$as_me: error: ambiguous option: $1
13370Try \`$0 --help' for more information." >&2
13371 { (exit 1); exit 1; }; };;
13372 --help | --hel | -h )
13373 echo "$ac_cs_usage"; exit ;;
13374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13376 ac_cs_silent=: ;;
13377
13378 # This is an error.
13379 -*) { echo "$as_me: error: unrecognized option: $1
13380Try \`$0 --help' for more information." >&2
13381 { (exit 1); exit 1; }; } ;;
13382
13383 *) ac_config_targets="$ac_config_targets $1"
13384 ac_need_defaults=false ;;
13385
13386 esac
13387 shift
13388done
13389
13390ac_configure_extra_args=
13391
13392if $ac_cs_silent; then
13393 exec 6>/dev/null
13394 ac_configure_extra_args="$ac_configure_extra_args --silent"
13395fi
13396
13397_ACEOF
13398cat >>$CONFIG_STATUS <<_ACEOF
13399if \$ac_cs_recheck; then
13400 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13401 CONFIG_SHELL=$SHELL
13402 export CONFIG_SHELL
13403 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13404fi
13405
13406_ACEOF
13407cat >>$CONFIG_STATUS <<\_ACEOF
13408exec 5>>config.log
13409{
13410 echo
13411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13412## Running $as_me. ##
13413_ASBOX
13414 echo "$ac_log"
13415} >&5
13416
13417_ACEOF
13418cat >>$CONFIG_STATUS <<_ACEOF
13419#
13420# INIT-COMMANDS
13421#
13422AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13423
13424_ACEOF
13425
13426cat >>$CONFIG_STATUS <<\_ACEOF
13427
13428# Handling of arguments.
13429for ac_config_target in $ac_config_targets
13430do
13431 case $ac_config_target in
13432 "include/ode/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ode/config.h" ;;
13433 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13434 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13435 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13436 "include/ode/Makefile") CONFIG_FILES="$CONFIG_FILES include/ode/Makefile" ;;
13437 "ode/Makefile") CONFIG_FILES="$CONFIG_FILES ode/Makefile" ;;
13438 "ode/src/Makefile") CONFIG_FILES="$CONFIG_FILES ode/src/Makefile" ;;
13439 "drawstuff/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/Makefile" ;;
13440 "drawstuff/src/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/src/Makefile" ;;
13441 "drawstuff/dstest/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/dstest/Makefile" ;;
13442 "ode/demo/Makefile") CONFIG_FILES="$CONFIG_FILES ode/demo/Makefile" ;;
13443 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13444 "tests/CppTestHarness/Makefile") CONFIG_FILES="$CONFIG_FILES tests/CppTestHarness/Makefile" ;;
13445 "ode-config") CONFIG_FILES="$CONFIG_FILES ode-config" ;;
13446
13447 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13448echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13449 { (exit 1); exit 1; }; };;
13450 esac
13451done
13452
13453
13454# If the user did not use the arguments to specify the items to instantiate,
13455# then the envvar interface is used. Set only those that are not.
13456# We use the long form for the default assignment because of an extremely
13457# bizarre bug on SunOS 4.1.3.
13458if $ac_need_defaults; then
13459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13462fi
13463
13464# Have a temporary directory for convenience. Make it in the build tree
13465# simply because there is no reason against having it here, and in addition,
13466# creating and moving files from /tmp can sometimes cause problems.
13467# Hook for its removal unless debugging.
13468# Note that there is a small window in which the directory will not be cleaned:
13469# after its creation but before its name has been assigned to `$tmp'.
13470$debug ||
13471{
13472 tmp=
13473 trap 'exit_status=$?
13474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13475' 0
13476 trap '{ (exit 1); exit 1; }' 1 2 13 15
13477}
13478# Create a (secure) tmp directory for tmp files.
13479
13480{
13481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13482 test -n "$tmp" && test -d "$tmp"
13483} ||
13484{
13485 tmp=./conf$$-$RANDOM
13486 (umask 077 && mkdir "$tmp")
13487} ||
13488{
13489 echo "$me: cannot create a temporary directory in ." >&2
13490 { (exit 1); exit 1; }
13491}
13492
13493#
13494# Set up the sed scripts for CONFIG_FILES section.
13495#
13496
13497# No need to generate the scripts if there are no CONFIG_FILES.
13498# This happens for instance when ./config.status config.h
13499if test -n "$CONFIG_FILES"; then
13500
13501_ACEOF
13502
13503
13504
13505ac_delim='%!_!# '
13506for ac_last_try in false false false false false :; do
13507 cat >conf$$subs.sed <<_ACEOF
13508SHELL!$SHELL$ac_delim
13509PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13510PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13511PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13512PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13513PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13514PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13515exec_prefix!$exec_prefix$ac_delim
13516prefix!$prefix$ac_delim
13517program_transform_name!$program_transform_name$ac_delim
13518bindir!$bindir$ac_delim
13519sbindir!$sbindir$ac_delim
13520libexecdir!$libexecdir$ac_delim
13521datarootdir!$datarootdir$ac_delim
13522datadir!$datadir$ac_delim
13523sysconfdir!$sysconfdir$ac_delim
13524sharedstatedir!$sharedstatedir$ac_delim
13525localstatedir!$localstatedir$ac_delim
13526includedir!$includedir$ac_delim
13527oldincludedir!$oldincludedir$ac_delim
13528docdir!$docdir$ac_delim
13529infodir!$infodir$ac_delim
13530htmldir!$htmldir$ac_delim
13531dvidir!$dvidir$ac_delim
13532pdfdir!$pdfdir$ac_delim
13533psdir!$psdir$ac_delim
13534libdir!$libdir$ac_delim
13535localedir!$localedir$ac_delim
13536mandir!$mandir$ac_delim
13537DEFS!$DEFS$ac_delim
13538ECHO_C!$ECHO_C$ac_delim
13539ECHO_N!$ECHO_N$ac_delim
13540ECHO_T!$ECHO_T$ac_delim
13541LIBS!$LIBS$ac_delim
13542build_alias!$build_alias$ac_delim
13543host_alias!$host_alias$ac_delim
13544target_alias!$target_alias$ac_delim
13545build!$build$ac_delim
13546build_cpu!$build_cpu$ac_delim
13547build_vendor!$build_vendor$ac_delim
13548build_os!$build_os$ac_delim
13549host!$host$ac_delim
13550host_cpu!$host_cpu$ac_delim
13551host_vendor!$host_vendor$ac_delim
13552host_os!$host_os$ac_delim
13553target!$target$ac_delim
13554target_cpu!$target_cpu$ac_delim
13555target_vendor!$target_vendor$ac_delim
13556target_os!$target_os$ac_delim
13557INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13558INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13559INSTALL_DATA!$INSTALL_DATA$ac_delim
13560am__isrc!$am__isrc$ac_delim
13561CYGPATH_W!$CYGPATH_W$ac_delim
13562PACKAGE!$PACKAGE$ac_delim
13563VERSION!$VERSION$ac_delim
13564ACLOCAL!$ACLOCAL$ac_delim
13565AUTOCONF!$AUTOCONF$ac_delim
13566AUTOMAKE!$AUTOMAKE$ac_delim
13567AUTOHEADER!$AUTOHEADER$ac_delim
13568MAKEINFO!$MAKEINFO$ac_delim
13569install_sh!$install_sh$ac_delim
13570STRIP!$STRIP$ac_delim
13571INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13572mkdir_p!$mkdir_p$ac_delim
13573AWK!$AWK$ac_delim
13574SET_MAKE!$SET_MAKE$ac_delim
13575am__leading_dot!$am__leading_dot$ac_delim
13576AMTAR!$AMTAR$ac_delim
13577am__tar!$am__tar$ac_delim
13578am__untar!$am__untar$ac_delim
13579CC!$CC$ac_delim
13580CFLAGS!$CFLAGS$ac_delim
13581LDFLAGS!$LDFLAGS$ac_delim
13582CPPFLAGS!$CPPFLAGS$ac_delim
13583ac_ct_CC!$ac_ct_CC$ac_delim
13584EXEEXT!$EXEEXT$ac_delim
13585OBJEXT!$OBJEXT$ac_delim
13586DEPDIR!$DEPDIR$ac_delim
13587am__include!$am__include$ac_delim
13588am__quote!$am__quote$ac_delim
13589AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13590AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13591AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13592CCDEPMODE!$CCDEPMODE$ac_delim
13593am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13594am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13595CPP!$CPP$ac_delim
13596GREP!$GREP$ac_delim
13597EGREP!$EGREP$ac_delim
13598XMKMF!$XMKMF$ac_delim
13599X_CFLAGS!$X_CFLAGS$ac_delim
13600X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13601X_LIBS!$X_LIBS$ac_delim
13602X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13603ODE_CURRENT!$ODE_CURRENT$ac_delim
13604ODE_REVISION!$ODE_REVISION$ac_delim
13605_ACEOF
13606
13607 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13608 break
13609 elif $ac_last_try; then
13610 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13611echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13612 { (exit 1); exit 1; }; }
13613 else
13614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615 fi
13616done
13617
13618ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13619if test -n "$ac_eof"; then
13620 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13621 ac_eof=`expr $ac_eof + 1`
13622fi
13623
13624cat >>$CONFIG_STATUS <<_ACEOF
13625cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13626/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13627_ACEOF
13628sed '
13629s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13630s/^/s,@/; s/!/@,|#_!!_#|/
13631:n
13632t n
13633s/'"$ac_delim"'$/,g/; t
13634s/$/\\/; p
13635N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13636' >>$CONFIG_STATUS <conf$$subs.sed
13637rm -f conf$$subs.sed
13638cat >>$CONFIG_STATUS <<_ACEOF
13639CEOF$ac_eof
13640_ACEOF
13641
13642
13643ac_delim='%!_!# '
13644for ac_last_try in false false false false false :; do
13645 cat >conf$$subs.sed <<_ACEOF
13646ODE_AGE!$ODE_AGE$ac_delim
13647ODE_RELEASE!$ODE_RELEASE$ac_delim
13648ODE_SONAME!$ODE_SONAME$ac_delim
13649CXX!$CXX$ac_delim
13650CXXFLAGS!$CXXFLAGS$ac_delim
13651ac_ct_CXX!$ac_ct_CXX$ac_delim
13652CXXDEPMODE!$CXXDEPMODE$ac_delim
13653am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
13654am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
13655WINDRES!$WINDRES$ac_delim
13656ac_ct_WINDRES!$ac_ct_WINDRES$ac_delim
13657RANLIB!$RANLIB$ac_delim
13658USE_SONAME_TRUE!$USE_SONAME_TRUE$ac_delim
13659USE_SONAME_FALSE!$USE_SONAME_FALSE$ac_delim
13660ENABLE_DEMOS_TRUE!$ENABLE_DEMOS_TRUE$ac_delim
13661ENABLE_DEMOS_FALSE!$ENABLE_DEMOS_FALSE$ac_delim
13662ARCHFLAGS!$ARCHFLAGS$ac_delim
13663OPCODE_TRUE!$OPCODE_TRUE$ac_delim
13664OPCODE_FALSE!$OPCODE_FALSE$ac_delim
13665GIMPACT_TRUE!$GIMPACT_TRUE$ac_delim
13666GIMPACT_FALSE!$GIMPACT_FALSE$ac_delim
13667TRIMESH_TRUE!$TRIMESH_TRUE$ac_delim
13668TRIMESH_FALSE!$TRIMESH_FALSE$ac_delim
13669X86_64_SYSTEM_TRUE!$X86_64_SYSTEM_TRUE$ac_delim
13670X86_64_SYSTEM_FALSE!$X86_64_SYSTEM_FALSE$ac_delim
13671WIN32_TRUE!$WIN32_TRUE$ac_delim
13672WIN32_FALSE!$WIN32_FALSE$ac_delim
13673X11_TRUE!$X11_TRUE$ac_delim
13674X11_FALSE!$X11_FALSE$ac_delim
13675OSX_TRUE!$OSX_TRUE$ac_delim
13676OSX_FALSE!$OSX_FALSE$ac_delim
13677DRAWSTUFF!$DRAWSTUFF$ac_delim
13678so_ext!$so_ext$ac_delim
13679SHARED_LDFLAGS!$SHARED_LDFLAGS$ac_delim
13680GL_LIBS!$GL_LIBS$ac_delim
13681TOPDIR!$TOPDIR$ac_delim
13682ALLOCA!$ALLOCA$ac_delim
13683LIBOBJS!$LIBOBJS$ac_delim
13684LTLIBOBJS!$LTLIBOBJS$ac_delim
13685_ACEOF
13686
13687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
13688 break
13689 elif $ac_last_try; then
13690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13691echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13692 { (exit 1); exit 1; }; }
13693 else
13694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13695 fi
13696done
13697
13698ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13699if test -n "$ac_eof"; then
13700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13701 ac_eof=`expr $ac_eof + 1`
13702fi
13703
13704cat >>$CONFIG_STATUS <<_ACEOF
13705cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13707_ACEOF
13708sed '
13709s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13710s/^/s,@/; s/!/@,|#_!!_#|/
13711:n
13712t n
13713s/'"$ac_delim"'$/,g/; t
13714s/$/\\/; p
13715N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13716' >>$CONFIG_STATUS <conf$$subs.sed
13717rm -f conf$$subs.sed
13718cat >>$CONFIG_STATUS <<_ACEOF
13719:end
13720s/|#_!!_#|//g
13721CEOF$ac_eof
13722_ACEOF
13723
13724
13725# VPATH may cause trouble with some makes, so we remove $(srcdir),
13726# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13727# trailing colons and then remove the whole line if VPATH becomes empty
13728# (actually we leave an empty line to preserve line numbers).
13729if test "x$srcdir" = x.; then
13730 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13731s/:*\$(srcdir):*/:/
13732s/:*\${srcdir}:*/:/
13733s/:*@srcdir@:*/:/
13734s/^\([^=]*=[ ]*\):*/\1/
13735s/:*$//
13736s/^[^=]*=[ ]*$//
13737}'
13738fi
13739
13740cat >>$CONFIG_STATUS <<\_ACEOF
13741fi # test -n "$CONFIG_FILES"
13742
13743
13744for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13745do
13746 case $ac_tag in
13747 :[FHLC]) ac_mode=$ac_tag; continue;;
13748 esac
13749 case $ac_mode$ac_tag in
13750 :[FHL]*:*);;
13751 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13752echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13753 { (exit 1); exit 1; }; };;
13754 :[FH]-) ac_tag=-:-;;
13755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13756 esac
13757 ac_save_IFS=$IFS
13758 IFS=:
13759 set x $ac_tag
13760 IFS=$ac_save_IFS
13761 shift
13762 ac_file=$1
13763 shift
13764
13765 case $ac_mode in
13766 :L) ac_source=$1;;
13767 :[FH])
13768 ac_file_inputs=
13769 for ac_f
13770 do
13771 case $ac_f in
13772 -) ac_f="$tmp/stdin";;
13773 *) # Look for the file first in the build tree, then in the source tree
13774 # (if the path is not absolute). The absolute path cannot be DOS-style,
13775 # because $ac_f cannot contain `:'.
13776 test -f "$ac_f" ||
13777 case $ac_f in
13778 [\\/$]*) false;;
13779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13780 esac ||
13781 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13782echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13783 { (exit 1); exit 1; }; };;
13784 esac
13785 ac_file_inputs="$ac_file_inputs $ac_f"
13786 done
13787
13788 # Let's still pretend it is `configure' which instantiates (i.e., don't
13789 # use $as_me), people would be surprised to read:
13790 # /* config.h. Generated by config.status. */
13791 configure_input="Generated from "`IFS=:
13792 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13793 if test x"$ac_file" != x-; then
13794 configure_input="$ac_file. $configure_input"
13795 { echo "$as_me:$LINENO: creating $ac_file" >&5
13796echo "$as_me: creating $ac_file" >&6;}
13797 fi
13798
13799 case $ac_tag in
13800 *:-:* | *:-) cat >"$tmp/stdin";;
13801 esac
13802 ;;
13803 esac
13804
13805 ac_dir=`$as_dirname -- "$ac_file" ||
13806$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13807 X"$ac_file" : 'X\(//\)[^/]' \| \
13808 X"$ac_file" : 'X\(//\)$' \| \
13809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13810echo X"$ac_file" |
13811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)[^/].*/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\/\)$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\).*/{
13824 s//\1/
13825 q
13826 }
13827 s/.*/./; q'`
13828 { as_dir="$ac_dir"
13829 case $as_dir in #(
13830 -*) as_dir=./$as_dir;;
13831 esac
13832 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13833 as_dirs=
13834 while :; do
13835 case $as_dir in #(
13836 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13837 *) as_qdir=$as_dir;;
13838 esac
13839 as_dirs="'$as_qdir' $as_dirs"
13840 as_dir=`$as_dirname -- "$as_dir" ||
13841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13842 X"$as_dir" : 'X\(//\)[^/]' \| \
13843 X"$as_dir" : 'X\(//\)$' \| \
13844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13845echo X"$as_dir" |
13846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13847 s//\1/
13848 q
13849 }
13850 /^X\(\/\/\)[^/].*/{
13851 s//\1/
13852 q
13853 }
13854 /^X\(\/\/\)$/{
13855 s//\1/
13856 q
13857 }
13858 /^X\(\/\).*/{
13859 s//\1/
13860 q
13861 }
13862 s/.*/./; q'`
13863 test -d "$as_dir" && break
13864 done
13865 test -z "$as_dirs" || eval "mkdir $as_dirs"
13866 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13867echo "$as_me: error: cannot create directory $as_dir" >&2;}
13868 { (exit 1); exit 1; }; }; }
13869 ac_builddir=.
13870
13871case "$ac_dir" in
13872.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13873*)
13874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13875 # A ".." for each directory in $ac_dir_suffix.
13876 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13877 case $ac_top_builddir_sub in
13878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13880 esac ;;
13881esac
13882ac_abs_top_builddir=$ac_pwd
13883ac_abs_builddir=$ac_pwd$ac_dir_suffix
13884# for backward compatibility:
13885ac_top_builddir=$ac_top_build_prefix
13886
13887case $srcdir in
13888 .) # We are building in place.
13889 ac_srcdir=.
13890 ac_top_srcdir=$ac_top_builddir_sub
13891 ac_abs_top_srcdir=$ac_pwd ;;
13892 [\\/]* | ?:[\\/]* ) # Absolute name.
13893 ac_srcdir=$srcdir$ac_dir_suffix;
13894 ac_top_srcdir=$srcdir
13895 ac_abs_top_srcdir=$srcdir ;;
13896 *) # Relative name.
13897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13898 ac_top_srcdir=$ac_top_build_prefix$srcdir
13899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13900esac
13901ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13902
13903
13904 case $ac_mode in
13905 :F)
13906 #
13907 # CONFIG_FILE
13908 #
13909
13910 case $INSTALL in
13911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13912 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13913 esac
13914 ac_MKDIR_P=$MKDIR_P
13915 case $MKDIR_P in
13916 [\\/$]* | ?:[\\/]* ) ;;
13917 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13918 esac
13919_ACEOF
13920
13921cat >>$CONFIG_STATUS <<\_ACEOF
13922# If the template does not know about datarootdir, expand it.
13923# FIXME: This hack should be removed a few years after 2.60.
13924ac_datarootdir_hack=; ac_datarootdir_seen=
13925
13926case `sed -n '/datarootdir/ {
13927 p
13928 q
13929}
13930/@datadir@/p
13931/@docdir@/p
13932/@infodir@/p
13933/@localedir@/p
13934/@mandir@/p
13935' $ac_file_inputs` in
13936*datarootdir*) ac_datarootdir_seen=yes;;
13937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13939echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13940_ACEOF
13941cat >>$CONFIG_STATUS <<_ACEOF
13942 ac_datarootdir_hack='
13943 s&@datadir@&$datadir&g
13944 s&@docdir@&$docdir&g
13945 s&@infodir@&$infodir&g
13946 s&@localedir@&$localedir&g
13947 s&@mandir@&$mandir&g
13948 s&\\\${datarootdir}&$datarootdir&g' ;;
13949esac
13950_ACEOF
13951
13952# Neutralize VPATH when `$srcdir' = `.'.
13953# Shell code in configure.ac might set extrasub.
13954# FIXME: do we really want to maintain this feature?
13955cat >>$CONFIG_STATUS <<_ACEOF
13956 sed "$ac_vpsub
13957$extrasub
13958_ACEOF
13959cat >>$CONFIG_STATUS <<\_ACEOF
13960:t
13961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13962s&@configure_input@&$configure_input&;t t
13963s&@top_builddir@&$ac_top_builddir_sub&;t t
13964s&@srcdir@&$ac_srcdir&;t t
13965s&@abs_srcdir@&$ac_abs_srcdir&;t t
13966s&@top_srcdir@&$ac_top_srcdir&;t t
13967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13968s&@builddir@&$ac_builddir&;t t
13969s&@abs_builddir@&$ac_abs_builddir&;t t
13970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13971s&@INSTALL@&$ac_INSTALL&;t t
13972s&@MKDIR_P@&$ac_MKDIR_P&;t t
13973$ac_datarootdir_hack
13974" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13975
13976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13980which seems to be undefined. Please make sure it is defined." >&5
13981echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13982which seems to be undefined. Please make sure it is defined." >&2;}
13983
13984 rm -f "$tmp/stdin"
13985 case $ac_file in
13986 -) cat "$tmp/out"; rm -f "$tmp/out";;
13987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13988 esac
13989 ;;
13990 :H)
13991 #
13992 # CONFIG_HEADER
13993 #
13994_ACEOF
13995
13996# Transform confdefs.h into a sed script `conftest.defines', that
13997# substitutes the proper values into config.h.in to produce config.h.
13998rm -f conftest.defines conftest.tail
13999# First, append a space to every undef/define line, to ease matching.
14000echo 's/$/ /' >conftest.defines
14001# Then, protect against being on the right side of a sed subst, or in
14002# an unquoted here document, in config.status. If some macros were
14003# called several times there might be several #defines for the same
14004# symbol, which is useless. But do not sort them, since the last
14005# AC_DEFINE must be honored.
14006ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14007# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14008# NAME is the cpp macro being defined, VALUE is the value it is being given.
14009# PARAMS is the parameter list in the macro definition--in most cases, it's
14010# just an empty string.
14011ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14012ac_dB='\\)[ (].*,\\1define\\2'
14013ac_dC=' '
14014ac_dD=' ,'
14015
14016uniq confdefs.h |
14017 sed -n '
14018 t rset
14019 :rset
14020 s/^[ ]*#[ ]*define[ ][ ]*//
14021 t ok
14022 d
14023 :ok
14024 s/[\\&,]/\\&/g
14025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14027 ' >>conftest.defines
14028
14029# Remove the space that was appended to ease matching.
14030# Then replace #undef with comments. This is necessary, for
14031# example, in the case of _POSIX_SOURCE, which is predefined and required
14032# on some systems where configure will not decide to define it.
14033# (The regexp can be short, since the line contains either #define or #undef.)
14034echo 's/ $//
14035s,^[ #]*u.*,/* & */,' >>conftest.defines
14036
14037# Break up conftest.defines:
14038ac_max_sed_lines=50
14039
14040# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14041# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14042# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14043# et cetera.
14044ac_in='$ac_file_inputs'
14045ac_out='"$tmp/out1"'
14046ac_nxt='"$tmp/out2"'
14047
14048while :
14049do
14050 # Write a here document:
14051 cat >>$CONFIG_STATUS <<_ACEOF
14052 # First, check the format of the line:
14053 cat >"\$tmp/defines.sed" <<\\CEOF
14054/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14055/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14056b
14057:def
14058_ACEOF
14059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14060 echo 'CEOF
14061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14064 grep . conftest.tail >/dev/null || break
14065 rm -f conftest.defines
14066 mv conftest.tail conftest.defines
14067done
14068rm -f conftest.defines conftest.tail
14069
14070echo "ac_result=$ac_in" >>$CONFIG_STATUS
14071cat >>$CONFIG_STATUS <<\_ACEOF
14072 if test x"$ac_file" != x-; then
14073 echo "/* $configure_input */" >"$tmp/config.h"
14074 cat "$ac_result" >>"$tmp/config.h"
14075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14077echo "$as_me: $ac_file is unchanged" >&6;}
14078 else
14079 rm -f $ac_file
14080 mv "$tmp/config.h" $ac_file
14081 fi
14082 else
14083 echo "/* $configure_input */"
14084 cat "$ac_result"
14085 fi
14086 rm -f "$tmp/out12"
14087# Compute $ac_file's index in $config_headers.
14088_am_stamp_count=1
14089for _am_header in $config_headers :; do
14090 case $_am_header in
14091 $ac_file | $ac_file:* )
14092 break ;;
14093 * )
14094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14095 esac
14096done
14097echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14098$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14099 X$ac_file : 'X\(//\)[^/]' \| \
14100 X$ac_file : 'X\(//\)$' \| \
14101 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14102echo X$ac_file |
14103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14104 s//\1/
14105 q
14106 }
14107 /^X\(\/\/\)[^/].*/{
14108 s//\1/
14109 q
14110 }
14111 /^X\(\/\/\)$/{
14112 s//\1/
14113 q
14114 }
14115 /^X\(\/\).*/{
14116 s//\1/
14117 q
14118 }
14119 s/.*/./; q'`/stamp-h$_am_stamp_count
14120 ;;
14121
14122 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14123echo "$as_me: executing $ac_file commands" >&6;}
14124 ;;
14125 esac
14126
14127
14128 case $ac_file$ac_mode in
14129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14130 # Strip MF so we end up with the name of the file.
14131 mf=`echo "$mf" | sed -e 's/:.*$//'`
14132 # Check whether this is an Automake generated Makefile or not.
14133 # We used to match only the files named `Makefile.in', but
14134 # some people rename them; so instead we look at the file content.
14135 # Grep'ing the first line is not enough: some people post-process
14136 # each Makefile.in and add a new line on top of each file to say so.
14137 # Grep'ing the whole file is not good either: AIX grep has a line
14138 # limit of 2048, but all sed's we know have understand at least 4000.
14139 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14140 dirpart=`$as_dirname -- "$mf" ||
14141$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142 X"$mf" : 'X\(//\)[^/]' \| \
14143 X"$mf" : 'X\(//\)$' \| \
14144 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14145echo X"$mf" |
14146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14147 s//\1/
14148 q
14149 }
14150 /^X\(\/\/\)[^/].*/{
14151 s//\1/
14152 q
14153 }
14154 /^X\(\/\/\)$/{
14155 s//\1/
14156 q
14157 }
14158 /^X\(\/\).*/{
14159 s//\1/
14160 q
14161 }
14162 s/.*/./; q'`
14163 else
14164 continue
14165 fi
14166 # Extract the definition of DEPDIR, am__include, and am__quote
14167 # from the Makefile without running `make'.
14168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14169 test -z "$DEPDIR" && continue
14170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14171 test -z "am__include" && continue
14172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14173 # When using ansi2knr, U may be empty or an underscore; expand it
14174 U=`sed -n 's/^U = //p' < "$mf"`
14175 # Find all dependency output files, they are included files with
14176 # $(DEPDIR) in their names. We invoke sed twice because it is the
14177 # simplest approach to changing $(DEPDIR) to its actual value in the
14178 # expansion.
14179 for file in `sed -n "
14180 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14181 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14182 # Make sure the directory exists.
14183 test -f "$dirpart/$file" && continue
14184 fdir=`$as_dirname -- "$file" ||
14185$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14186 X"$file" : 'X\(//\)[^/]' \| \
14187 X"$file" : 'X\(//\)$' \| \
14188 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14189echo X"$file" |
14190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14191 s//\1/
14192 q
14193 }
14194 /^X\(\/\/\)[^/].*/{
14195 s//\1/
14196 q
14197 }
14198 /^X\(\/\/\)$/{
14199 s//\1/
14200 q
14201 }
14202 /^X\(\/\).*/{
14203 s//\1/
14204 q
14205 }
14206 s/.*/./; q'`
14207 { as_dir=$dirpart/$fdir
14208 case $as_dir in #(
14209 -*) as_dir=./$as_dir;;
14210 esac
14211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14212 as_dirs=
14213 while :; do
14214 case $as_dir in #(
14215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14216 *) as_qdir=$as_dir;;
14217 esac
14218 as_dirs="'$as_qdir' $as_dirs"
14219 as_dir=`$as_dirname -- "$as_dir" ||
14220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14221 X"$as_dir" : 'X\(//\)[^/]' \| \
14222 X"$as_dir" : 'X\(//\)$' \| \
14223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14224echo X"$as_dir" |
14225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14226 s//\1/
14227 q
14228 }
14229 /^X\(\/\/\)[^/].*/{
14230 s//\1/
14231 q
14232 }
14233 /^X\(\/\/\)$/{
14234 s//\1/
14235 q
14236 }
14237 /^X\(\/\).*/{
14238 s//\1/
14239 q
14240 }
14241 s/.*/./; q'`
14242 test -d "$as_dir" && break
14243 done
14244 test -z "$as_dirs" || eval "mkdir $as_dirs"
14245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14246echo "$as_me: error: cannot create directory $as_dir" >&2;}
14247 { (exit 1); exit 1; }; }; }
14248 # echo "creating $dirpart/$file"
14249 echo '# dummy' > "$dirpart/$file"
14250 done
14251done
14252 ;;
14253
14254 esac
14255done # for ac_tag
14256
14257
14258{ (exit 0); exit 0; }
14259_ACEOF
14260chmod +x $CONFIG_STATUS
14261ac_clean_files=$ac_clean_files_save
14262
14263
14264# configure is writing to config.log, and then calls config.status.
14265# config.status does its own redirection, appending to config.log.
14266# Unfortunately, on DOS this fails, as config.log is still kept open
14267# by configure, so config.status won't be able to write to it; its
14268# output is simply discarded. So we exec the FD to /dev/null,
14269# effectively closing config.log, so it can be properly (re)opened and
14270# appended to by config.status. When coming back to configure, we
14271# need to make the FD available again.
14272if test "$no_create" != yes; then
14273 ac_cs_success=:
14274 ac_config_status_args=
14275 test "$silent" = yes &&
14276 ac_config_status_args="$ac_config_status_args --quiet"
14277 exec 5>/dev/null
14278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14279 exec 5>>config.log
14280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14281 # would make configure fail if this is the last instruction.
14282 $ac_cs_success || { (exit 1); exit 1; }
14283fi
14284
14285
14286chmod +x ode-config
14287
14288echo "Configuration:"
14289echo " Target system type: $target"
14290echo " Build system type: $build"
14291echo " Host system type: $host"
14292echo " Use double precision: $precision"
14293echo " Use OPCODE: $opcode"
14294echo " Use GIMPACT: $gimpact"
14295echo " Use gyroscopic term: $gyroscopic"
14296echo " Is this a Pentium: $pentium"
14297echo " Is the CPU x86-64: $cpu64"
14298echo " Is this a release build: $release"
14299echo " Adding debug symbols: $debug"
14300echo " Using SONAME: $use_soname"
14301echo " Headers will be installed in $prefix/include/ode"
14302echo " Libraries will be installed in $prefix/lib"
14303
14304if test $gimpact = yes -a $precision = yes
14305then
14306 echo "WARNING! Double precision not yet supported for GIMPACT"
14307fi
14308