ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.31
Committed: Mon Jan 15 12:07:44 2007 UTC (18 years, 3 months ago) by gcodispo
Branch: MAIN
Changes since 1.30: +100 -100 lines
Log Message:
Added system specific flags for compiler and linker and system specific extention for dynamin libraries.

File Contents

# User Rev Content
1 gcodispo 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gcodispo 1.22 # Generated by GNU Autoconf 2.57 for BOSS `tail -1 ./VERSION | sed 's/BOSS_//g'`.
4 gcodispo 1.1 #
5     # Report bugs to <hn-cms-bossDevel@cern.ch>.
6     #
7     # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8     # 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 Bourne compatible
16     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17     emulate sh
18     NULLCMD=:
19     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20     # is contrary to our usage. Disable this feature.
21     alias -g '${1+"$@"}'='"$@"'
22     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23     set -o posix
24     fi
25    
26     # Support unset when possible.
27     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67     # Name of the executable.
68     as_me=`$as_basename "$0" ||
69     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70     X"$0" : 'X\(//\)$' \| \
71     X"$0" : 'X\(/\)$' \| \
72     . : '\(.\)' 2>/dev/null ||
73     echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75     /^X\/\(\/\/\)$/{ s//\1/; q; }
76     /^X\/\(\/\).*/{ s//\1/; q; }
77     s/.*/./; q'`
78    
79    
80     # PATH needs CR, and LINENO needs CR and PATH.
81     # Avoid depending upon Character Ranges.
82     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85     as_cr_digits='0123456789'
86     as_cr_alnum=$as_cr_Letters$as_cr_digits
87    
88     # The user is always right.
89     if test "${PATH_SEPARATOR+set}" != set; then
90     echo "#! /bin/sh" >conf$$.sh
91     echo "exit 0" >>conf$$.sh
92     chmod +x conf$$.sh
93     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95     else
96     PATH_SEPARATOR=:
97     fi
98     rm -f conf$$.sh
99     fi
100    
101    
102     as_lineno_1=$LINENO
103     as_lineno_2=$LINENO
104     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105     test "x$as_lineno_1" != "x$as_lineno_2" &&
106     test "x$as_lineno_3" = "x$as_lineno_2" || {
107     # Find who we are. Look in the path if we contain no path at all
108     # relative or not.
109     case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112     for as_dir in $PATH
113     do
114     IFS=$as_save_IFS
115     test -z "$as_dir" && as_dir=.
116     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117     done
118    
119     ;;
120     esac
121     # We did not find ourselves, most probably we were run as `sh COMMAND'
122     # in which case we are not to be found in the path.
123     if test "x$as_myself" = x; then
124     as_myself=$0
125     fi
126     if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128     { (exit 1); exit 1; }; }
129     fi
130     case $CONFIG_SHELL in
131     '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134     do
135     IFS=$as_save_IFS
136     test -z "$as_dir" && as_dir=.
137     for as_base in sh bash ksh sh5; do
138     case $as_dir in
139     /*)
140     if ("$as_dir/$as_base" -c '
141     as_lineno_1=$LINENO
142     as_lineno_2=$LINENO
143     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144     test "x$as_lineno_1" != "x$as_lineno_2" &&
145     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148     CONFIG_SHELL=$as_dir/$as_base
149     export CONFIG_SHELL
150     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151     fi;;
152     esac
153     done
154     done
155     ;;
156     esac
157    
158     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159     # uniformly replaced by the line number. The first 'sed' inserts a
160     # line-number line before each line; the second 'sed' does the real
161     # work. The second script uses 'N' to pair each line-number line
162     # with the numbered line, and appends trailing '-' during
163     # substitution so that $LINENO is not a special case at line end.
164     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166     sed '=' <$as_myself |
167     sed '
168     N
169     s,$,-,
170     : loop
171     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172     t loop
173     s,-$,,
174     s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176     chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178     { (exit 1); exit 1; }; }
179    
180     # Don't try to exec as it changes $[0], causing all sort of problems
181     # (the dirname of $[0] is not the place where we might find the
182     # original and so on. Autoconf is especially sensible to this).
183     . ./$as_me.lineno
184     # Exit status is that of the last command.
185     exit
186     }
187    
188    
189     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190     *c*,-n*) ECHO_N= ECHO_C='
191     ' ECHO_T=' ' ;;
192     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194     esac
195    
196     if expr a : '\(a\)' >/dev/null 2>&1; then
197     as_expr=expr
198     else
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220     if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222     else
223     as_mkdir_p=false
224     fi
225    
226     as_executable_p="test -f"
227    
228     # Sed expression to map a string onto a valid CPP name.
229     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230    
231     # Sed expression to map a string onto a valid variable name.
232     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233    
234    
235     # IFS
236     # We need space, tab and new line, in precisely that order.
237     as_nl='
238     '
239     IFS=" $as_nl"
240    
241     # CDPATH.
242     $as_unset CDPATH
243    
244    
245     # Name of the host.
246     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247     # so uname gets run too.
248     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249    
250     exec 6>&1
251    
252     #
253     # Initializations.
254     #
255     ac_default_prefix=/usr/local
256     ac_config_libobj_dir=.
257     cross_compiling=no
258     subdirs=
259     MFLAGS=
260     MAKEFLAGS=
261     SHELL=${CONFIG_SHELL-/bin/sh}
262    
263     # Maximum number of lines to put in a shell here document.
264     # This variable seems obsolete. It should probably be removed, and
265     # only ac_max_sed_lines should be used.
266     : ${ac_max_here_lines=38}
267    
268     # Identity of this package.
269 gcodispo 1.19 PACKAGE_NAME='BOSS'
270 gcodispo 1.1 PACKAGE_TARNAME='boss'
271 gcodispo 1.22 PACKAGE_VERSION='`tail -1 ./VERSION | sed 's/BOSS_//g'`'
272     PACKAGE_STRING='BOSS `tail -1 ./VERSION | sed 's/BOSS_//g'`'
273 gcodispo 1.1 PACKAGE_BUGREPORT='hn-cms-bossDevel@cern.ch'
274    
275     ac_unique_file="config.h.in"
276     # Factoring default headers for most tests.
277     ac_includes_default="\
278     #include <stdio.h>
279     #if HAVE_SYS_TYPES_H
280     # include <sys/types.h>
281     #endif
282     #if HAVE_SYS_STAT_H
283     # include <sys/stat.h>
284     #endif
285     #if STDC_HEADERS
286     # include <stdlib.h>
287     # include <stddef.h>
288     #else
289     # if HAVE_STDLIB_H
290     # include <stdlib.h>
291     # endif
292     #endif
293     #if HAVE_STRING_H
294     # if !STDC_HEADERS && HAVE_MEMORY_H
295     # include <memory.h>
296     # endif
297     # include <string.h>
298     #endif
299     #if HAVE_STRINGS_H
300     # include <strings.h>
301     #endif
302     #if HAVE_INTTYPES_H
303     # include <inttypes.h>
304     #else
305     # if HAVE_STDINT_H
306     # include <stdint.h>
307     # endif
308     #endif
309     #if HAVE_UNISTD_H
310     # include <unistd.h>
311     #endif"
312    
313 gcodispo 1.31 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION VERSION_NUMBER SONAME LINK_OPT ARCH RELEASE GCC_VERSION SYSTEM CXXFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CPP zlib_lib zlib_inc uuid_lib uuid_inc MAKE_PYTHON MAKE_PYTHON_CLEAN swig_generate MAKE_MYSQL MAKE_MYSQL_CLEAN ssl_lib mysql mysql_lib mysql_lib_sh mysql_inc MAKE_SQLITE MAKE_SQLITE_CLEAN sqlite sqlite_lib sqlite_lib_sh sqlite_inc MAKE_MONALISA MAKE_MONALISA_CLEAN monalisa monalisa_lib monalisa_lib_sh monalisa_inc clarens clarens_inc clarens_lib clarens_lib_sh MAKE_XERCESC MAKE_XERCESC_CLEAN xercesc xercesc_lib xercesc_lib_sh xercesc_inc EGREP LIBOBJS LTLIBOBJS'
314 gcodispo 1.1 ac_subst_files=''
315    
316     # Initialize some variables set by options.
317     ac_init_help=
318     ac_init_version=false
319     # The variables have the same names as the options, with
320     # dashes changed to underlines.
321     cache_file=/dev/null
322     exec_prefix=NONE
323     no_create=
324     no_recursion=
325     prefix=NONE
326     program_prefix=NONE
327     program_suffix=NONE
328     program_transform_name=s,x,x,
329     silent=
330     site=
331     srcdir=
332     verbose=
333     x_includes=NONE
334     x_libraries=NONE
335    
336     # Installation directory options.
337     # These are left unexpanded so users can "make install exec_prefix=/foo"
338     # and all the variables that are supposed to be based on exec_prefix
339     # by default will actually change.
340     # Use braces instead of parens because sh, perl, etc. also accept them.
341     bindir='${exec_prefix}/bin'
342     sbindir='${exec_prefix}/sbin'
343     libexecdir='${exec_prefix}/libexec'
344     datadir='${prefix}/share'
345     sysconfdir='${prefix}/etc'
346     sharedstatedir='${prefix}/com'
347     localstatedir='${prefix}/var'
348     libdir='${exec_prefix}/lib'
349     includedir='${prefix}/include'
350     oldincludedir='/usr/include'
351     infodir='${prefix}/info'
352     mandir='${prefix}/man'
353    
354     ac_prev=
355     for ac_option
356     do
357     # If the previous option needs an argument, assign it.
358     if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362     fi
363    
364     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365    
366     # Accept the important Cygnus configure options, so we can diagnose typos.
367    
368     case $ac_option in
369    
370     -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374    
375     -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379    
380     -cache-file | --cache-file | --cache-fil | --cache-fi \
381     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386    
387     --config-cache | -C)
388     cache_file=config.cache ;;
389    
390     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393     | --da=*)
394     datadir=$ac_optarg ;;
395    
396     -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401     { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404    
405     -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410     { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414     *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417    
418     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420     | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424     | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426    
427     -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430    
431     -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437    
438     -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440     -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442    
443     -includedir | --includedir | --includedi | --included | --include \
444     | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447     | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449    
450     -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454    
455     -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457     -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459    
460     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461     | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464     | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466    
467     -localstatedir | --localstatedir | --localstatedi | --localstated \
468     | --localstate | --localstat | --localsta | --localst \
469     | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475    
476     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480    
481     -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484    
485     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486     | --no-cr | --no-c | -n)
487     no_create=yes ;;
488    
489     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492    
493     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495     | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501    
502     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506    
507     -program-prefix | --program-prefix | --program-prefi | --program-pref \
508     | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510     -program-prefix=* | --program-prefix=* | --program-prefi=* \
511     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513    
514     -program-suffix | --program-suffix | --program-suffi | --program-suff \
515     | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517     -program-suffix=* | --program-suffix=* | --program-suffi=* \
518     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520    
521     -program-transform-name | --program-transform-name \
522     | --program-transform-nam | --program-transform-na \
523     | --program-transform-n | --program-transform- \
524     | --program-transform | --program-transfor \
525     | --program-transfo | --program-transf \
526     | --program-trans | --program-tran \
527     | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529     -program-transform-name=* | --program-transform-name=* \
530     | --program-transform-nam=* | --program-transform-na=* \
531     | --program-transform-n=* | --program-transform-=* \
532     | --program-transform=* | --program-transfor=* \
533     | --program-transfo=* | --program-transf=* \
534     | --program-trans=* | --program-tran=* \
535     | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537    
538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539     | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541    
542     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545     | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547    
548     -sharedstatedir | --sharedstatedir | --sharedstatedi \
549     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550     | --sharedst | --shareds | --shared | --share | --shar \
551     | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556     | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558    
559     -site | --site | --sit)
560     ac_prev=site ;;
561     -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563    
564     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568    
569     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570     | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575    
576     -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580    
581     -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583    
584     -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586    
587     -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591     { echo "$as_me: error: invalid package name: $ac_package" >&2
592     { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596     *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599    
600     -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604     { echo "$as_me: error: invalid package name: $ac_package" >&2
605     { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608    
609     --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612    
613     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614     | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619    
620     -x-libraries | --x-libraries | --x-librarie | --x-librari \
621     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626    
627     -*) { echo "$as_me: error: unrecognized option: $ac_option
628     Try \`$0 --help' for more information." >&2
629     { (exit 1); exit 1; }; }
630     ;;
631    
632     *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637     { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641    
642     *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649    
650     esac
651     done
652    
653     if test -n "$ac_prev"; then
654     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655     { echo "$as_me: error: missing argument to $ac_option" >&2
656     { (exit 1); exit 1; }; }
657     fi
658    
659     # Be sure to have absolute paths.
660     for ac_var in exec_prefix prefix
661     do
662     eval ac_val=$`echo $ac_var`
663     case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666     { (exit 1); exit 1; }; };;
667     esac
668     done
669    
670     # Be sure to have absolute paths.
671     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672     localstatedir libdir includedir oldincludedir infodir mandir
673     do
674     eval ac_val=$`echo $ac_var`
675     case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678     { (exit 1); exit 1; }; };;
679     esac
680     done
681    
682     # There might be people who depend on the old broken behavior: `$host'
683     # used to hold the argument of --host etc.
684     # FIXME: To remove some day.
685     build=$build_alias
686     host=$host_alias
687     target=$target_alias
688    
689     # FIXME: To remove some day.
690     if test "x$host_alias" != x; then
691     if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695     elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697     fi
698     fi
699    
700     ac_tool_prefix=
701     test -n "$host_alias" && ac_tool_prefix=$host_alias-
702    
703     test "$silent" = yes && exec 6>/dev/null
704    
705    
706     # Find the source files, if location was not specified.
707     if test -z "$srcdir"; then
708     ac_srcdir_defaulted=yes
709     # Try the directory containing this script, then its parent.
710     ac_confdir=`(dirname "$0") 2>/dev/null ||
711     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712     X"$0" : 'X\(//\)[^/]' \| \
713     X"$0" : 'X\(//\)$' \| \
714     X"$0" : 'X\(/\)' \| \
715     . : '\(.\)' 2>/dev/null ||
716     echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719     /^X\(\/\/\)$/{ s//\1/; q; }
720     /^X\(\/\).*/{ s//\1/; q; }
721     s/.*/./; q'`
722     srcdir=$ac_confdir
723     if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725     fi
726     else
727     ac_srcdir_defaulted=no
728     fi
729     if test ! -r $srcdir/$ac_unique_file; then
730     if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732     { (exit 1); exit 1; }; }
733     else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735     { (exit 1); exit 1; }; }
736     fi
737     fi
738     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740     { (exit 1); exit 1; }; }
741     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742     ac_env_build_alias_set=${build_alias+set}
743     ac_env_build_alias_value=$build_alias
744     ac_cv_env_build_alias_set=${build_alias+set}
745     ac_cv_env_build_alias_value=$build_alias
746     ac_env_host_alias_set=${host_alias+set}
747     ac_env_host_alias_value=$host_alias
748     ac_cv_env_host_alias_set=${host_alias+set}
749     ac_cv_env_host_alias_value=$host_alias
750     ac_env_target_alias_set=${target_alias+set}
751     ac_env_target_alias_value=$target_alias
752     ac_cv_env_target_alias_set=${target_alias+set}
753     ac_cv_env_target_alias_value=$target_alias
754 elmer 1.21 ac_env_CC_set=${CC+set}
755     ac_env_CC_value=$CC
756     ac_cv_env_CC_set=${CC+set}
757     ac_cv_env_CC_value=$CC
758     ac_env_CFLAGS_set=${CFLAGS+set}
759     ac_env_CFLAGS_value=$CFLAGS
760     ac_cv_env_CFLAGS_set=${CFLAGS+set}
761     ac_cv_env_CFLAGS_value=$CFLAGS
762     ac_env_LDFLAGS_set=${LDFLAGS+set}
763     ac_env_LDFLAGS_value=$LDFLAGS
764     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765     ac_cv_env_LDFLAGS_value=$LDFLAGS
766     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767     ac_env_CPPFLAGS_value=$CPPFLAGS
768     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 gcodispo 1.1 ac_env_CXX_set=${CXX+set}
771     ac_env_CXX_value=$CXX
772     ac_cv_env_CXX_set=${CXX+set}
773     ac_cv_env_CXX_value=$CXX
774     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775     ac_env_CXXFLAGS_value=$CXXFLAGS
776     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778     ac_env_CPP_set=${CPP+set}
779     ac_env_CPP_value=$CPP
780     ac_cv_env_CPP_set=${CPP+set}
781     ac_cv_env_CPP_value=$CPP
782    
783     #
784     # Report the --help message.
785     #
786     if test "$ac_init_help" = "long"; then
787     # Omit some internal or obsolete options to make the list less imposing.
788     # This message is too long to be a string in the A/UX 3.1 sh.
789     cat <<_ACEOF
790 gcodispo 1.22 \`configure' configures BOSS `tail -1 ./VERSION | sed 's/BOSS_//g'` to adapt to many kinds of systems.
791 gcodispo 1.1
792     Usage: $0 [OPTION]... [VAR=VALUE]...
793    
794     To assign environment variables (e.g., CC, CFLAGS...), specify them as
795     VAR=VALUE. See below for descriptions of some of the useful variables.
796    
797     Defaults for the options are specified in brackets.
798    
799     Configuration:
800     -h, --help display this help and exit
801     --help=short display options specific to this package
802     --help=recursive display the short help of all the included packages
803     -V, --version display version information and exit
804     -q, --quiet, --silent do not print \`checking...' messages
805     --cache-file=FILE cache test results in FILE [disabled]
806     -C, --config-cache alias for \`--cache-file=config.cache'
807     -n, --no-create do not create output files
808     --srcdir=DIR find the sources in DIR [configure dir or \`..']
809    
810     _ACEOF
811    
812     cat <<_ACEOF
813     Installation directories:
814     --prefix=PREFIX install architecture-independent files in PREFIX
815     [$ac_default_prefix]
816     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817     [PREFIX]
818    
819     By default, \`make install' will install all the files in
820     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822     for instance \`--prefix=\$HOME'.
823    
824     For better control, use the options below.
825    
826     Fine tuning of the installation directories:
827     --bindir=DIR user executables [EPREFIX/bin]
828     --sbindir=DIR system admin executables [EPREFIX/sbin]
829     --libexecdir=DIR program executables [EPREFIX/libexec]
830     --datadir=DIR read-only architecture-independent data [PREFIX/share]
831     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834     --libdir=DIR object code libraries [EPREFIX/lib]
835     --includedir=DIR C header files [PREFIX/include]
836     --oldincludedir=DIR C header files for non-gcc [/usr/include]
837     --infodir=DIR info documentation [PREFIX/info]
838     --mandir=DIR man documentation [PREFIX/man]
839     _ACEOF
840    
841     cat <<\_ACEOF
842     _ACEOF
843     fi
844    
845     if test -n "$ac_init_help"; then
846     case $ac_init_help in
847 gcodispo 1.22 short | recursive ) echo "Configuration of BOSS `tail -1 ./VERSION | sed 's/BOSS_//g'`:";;
848 gcodispo 1.1 esac
849     cat <<\_ACEOF
850    
851 elmer 1.21 Optional Features:
852     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854     --enable-dbg-build build with debug symbols, no optimization
855 gcodispo 1.27 --enable-warn-build build with all warnings (-Wall option)
856     --enable-O2-build build with level 2 optimization (-O2 option)
857 elmer 1.21
858 gcodispo 1.16 Optional Packages:
859     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 gcodispo 1.29 --with-zlib-dir=DIR top directory containing zlib tree
862     --with-zlib-lib=PATH directory containig the zlib library
863     --with-zlib-include=PATH directory containig the zlib.h include file
864 gcodispo 1.25 --with-uuid-dir=DIR top directory containing uuid tree
865     --with-uuid-lib=PATH directory containig the uuid library
866     --with-uuid-include=PATH directory containig the uuid.h include file
867     --with-mysql-dir=DIR top directory containing mysql tree
868     --with-mysql-lib=DIR directory containing mysql lib
869     --with-mysql-include=DIR directory containing mysql include
870     --with-sqlite-dir=DIR top directory containing sqlite tree
871     --with-sqlite-lib=DIR directory containing sqlite lib
872     --with-sqlite-include=DIR directory containing sqlite include
873     --with-monalisa-dir=DIR top directory containing monalisa tree
874     --with-monalisa-lib=DIR directory containing monalisa lib
875 gcodispo 1.16 --with-monalisa-include=DIR directory containing monalisa lib
876 gcodispo 1.25 --with-clarens-dir=DIR top directory containing clarens tree
877     --with-clarens-lib=DIR directory containing clarens lib
878     --with-clarens-include=DIR directory containing clarens include
879 gcodispo 1.28 --with-xercesc-dir=DIR top directory containing xercesc tree
880     --with-xercesc-lib=PATH directory containig the xercesc library
881     --with-xercesc-include=PATH directory containig the xercesc.h include file
882 gcodispo 1.16
883 gcodispo 1.1 Some influential environment variables:
884 elmer 1.21 CC C compiler command
885     CFLAGS C compiler flags
886 gcodispo 1.1 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887     nonstandard directory <lib dir>
888     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889     headers in a nonstandard directory <include dir>
890 elmer 1.21 CXX C++ compiler command
891     CXXFLAGS C++ compiler flags
892 gcodispo 1.1 CPP C preprocessor
893    
894     Use these variables to override the choices made by `configure' or to help
895     it to find libraries and programs with nonstandard names/locations.
896    
897     Report bugs to <hn-cms-bossDevel@cern.ch>.
898     _ACEOF
899     fi
900    
901     if test "$ac_init_help" = "recursive"; then
902     # If there are subdirs, report their specific --help.
903     ac_popdir=`pwd`
904     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905     test -d $ac_dir || continue
906     ac_builddir=.
907    
908     if test "$ac_dir" != .; then
909     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910     # A "../" for each directory in $ac_dir_suffix.
911     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912     else
913     ac_dir_suffix= ac_top_builddir=
914     fi
915    
916     case $srcdir in
917     .) # No --srcdir option. We are building in place.
918     ac_srcdir=.
919     if test -z "$ac_top_builddir"; then
920     ac_top_srcdir=.
921     else
922     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923     fi ;;
924     [\\/]* | ?:[\\/]* ) # Absolute path.
925     ac_srcdir=$srcdir$ac_dir_suffix;
926     ac_top_srcdir=$srcdir ;;
927     *) # Relative path.
928     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929     ac_top_srcdir=$ac_top_builddir$srcdir ;;
930     esac
931     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932     # absolute.
933     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937    
938     cd $ac_dir
939     # Check for guested configure; otherwise get Cygnus style configure.
940     if test -f $ac_srcdir/configure.gnu; then
941     echo
942     $SHELL $ac_srcdir/configure.gnu --help=recursive
943     elif test -f $ac_srcdir/configure; then
944     echo
945     $SHELL $ac_srcdir/configure --help=recursive
946     elif test -f $ac_srcdir/configure.ac ||
947     test -f $ac_srcdir/configure.in; then
948     echo
949     $ac_configure --help
950     else
951     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952     fi
953     cd $ac_popdir
954     done
955     fi
956    
957     test -n "$ac_init_help" && exit 0
958     if $ac_init_version; then
959     cat <<\_ACEOF
960 gcodispo 1.22 BOSS configure `tail -1 ./VERSION | sed 's/BOSS_//g'`
961 gcodispo 1.1 generated by GNU Autoconf 2.57
962    
963     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
964     Free Software Foundation, Inc.
965     This configure script is free software; the Free Software Foundation
966     gives unlimited permission to copy, distribute and modify it.
967     _ACEOF
968     exit 0
969     fi
970     exec 5>config.log
971     cat >&5 <<_ACEOF
972     This file contains any messages produced by compilers while
973     running configure, to aid debugging if configure makes a mistake.
974    
975 gcodispo 1.22 It was created by BOSS $as_me `tail -1 ./VERSION | sed 's/BOSS_//g'`, which was
976 gcodispo 1.1 generated by GNU Autoconf 2.57. Invocation command line was
977    
978     $ $0 $@
979    
980     _ACEOF
981     {
982     cat <<_ASUNAME
983     ## --------- ##
984     ## Platform. ##
985     ## --------- ##
986    
987     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988     uname -m = `(uname -m) 2>/dev/null || echo unknown`
989     uname -r = `(uname -r) 2>/dev/null || echo unknown`
990     uname -s = `(uname -s) 2>/dev/null || echo unknown`
991     uname -v = `(uname -v) 2>/dev/null || echo unknown`
992    
993     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
995    
996     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003    
1004     _ASUNAME
1005    
1006     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007     for as_dir in $PATH
1008     do
1009     IFS=$as_save_IFS
1010     test -z "$as_dir" && as_dir=.
1011     echo "PATH: $as_dir"
1012     done
1013    
1014     } >&5
1015    
1016     cat >&5 <<_ACEOF
1017    
1018    
1019     ## ----------- ##
1020     ## Core tests. ##
1021     ## ----------- ##
1022    
1023     _ACEOF
1024    
1025    
1026     # Keep a trace of the command line.
1027     # Strip out --no-create and --no-recursion so they do not pile up.
1028     # Strip out --silent because we don't want to record it for future runs.
1029     # Also quote any args containing shell meta-characters.
1030     # Make two passes to allow for proper duplicate-argument suppression.
1031     ac_configure_args=
1032     ac_configure_args0=
1033     ac_configure_args1=
1034     ac_sep=
1035     ac_must_keep_next=false
1036     for ac_pass in 1 2
1037     do
1038     for ac_arg
1039     do
1040     case $ac_arg in
1041     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043     | -silent | --silent | --silen | --sile | --sil)
1044     continue ;;
1045     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047     esac
1048     case $ac_pass in
1049     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1050     2)
1051     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052     if test $ac_must_keep_next = true; then
1053     ac_must_keep_next=false # Got value, back to normal.
1054     else
1055     case $ac_arg in
1056     *=* | --config-cache | -C | -disable-* | --disable-* \
1057     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059     | -with-* | --with-* | -without-* | --without-* | --x)
1060     case "$ac_configure_args0 " in
1061     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062     esac
1063     ;;
1064     -* ) ac_must_keep_next=true ;;
1065     esac
1066     fi
1067     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068     # Get rid of the leading space.
1069     ac_sep=" "
1070     ;;
1071     esac
1072     done
1073     done
1074     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1076    
1077     # When interrupted or exit'd, cleanup temporary files, and complete
1078     # config.log. We remove comments because anyway the quotes in there
1079     # would cause problems or look ugly.
1080     # WARNING: Be sure not to use single quotes in there, as some shells,
1081     # such as our DU 5.0 friend, will then `close' the trap.
1082     trap 'exit_status=$?
1083     # Save into config.log some information that might help in debugging.
1084     {
1085     echo
1086    
1087     cat <<\_ASBOX
1088     ## ---------------- ##
1089     ## Cache variables. ##
1090     ## ---------------- ##
1091     _ASBOX
1092     echo
1093     # The following way of writing the cache mishandles newlines in values,
1094     {
1095     (set) 2>&1 |
1096     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097     *ac_space=\ *)
1098     sed -n \
1099     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101     ;;
1102     *)
1103     sed -n \
1104     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105     ;;
1106     esac;
1107     }
1108     echo
1109    
1110     cat <<\_ASBOX
1111     ## ----------------- ##
1112     ## Output variables. ##
1113     ## ----------------- ##
1114     _ASBOX
1115     echo
1116     for ac_var in $ac_subst_vars
1117     do
1118     eval ac_val=$`echo $ac_var`
1119     echo "$ac_var='"'"'$ac_val'"'"'"
1120     done | sort
1121     echo
1122    
1123     if test -n "$ac_subst_files"; then
1124     cat <<\_ASBOX
1125     ## ------------- ##
1126     ## Output files. ##
1127     ## ------------- ##
1128     _ASBOX
1129     echo
1130     for ac_var in $ac_subst_files
1131     do
1132     eval ac_val=$`echo $ac_var`
1133     echo "$ac_var='"'"'$ac_val'"'"'"
1134     done | sort
1135     echo
1136     fi
1137    
1138     if test -s confdefs.h; then
1139     cat <<\_ASBOX
1140     ## ----------- ##
1141     ## confdefs.h. ##
1142     ## ----------- ##
1143     _ASBOX
1144     echo
1145     sed "/^$/d" confdefs.h | sort
1146     echo
1147     fi
1148     test "$ac_signal" != 0 &&
1149     echo "$as_me: caught signal $ac_signal"
1150     echo "$as_me: exit $exit_status"
1151     } >&5
1152     rm -f core core.* *.core &&
1153     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154     exit $exit_status
1155     ' 0
1156     for ac_signal in 1 2 13 15; do
1157     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158     done
1159     ac_signal=0
1160    
1161     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162     rm -rf conftest* confdefs.h
1163     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164     echo >confdefs.h
1165    
1166     # Predefined preprocessor variables.
1167    
1168     cat >>confdefs.h <<_ACEOF
1169     #define PACKAGE_NAME "$PACKAGE_NAME"
1170     _ACEOF
1171    
1172    
1173     cat >>confdefs.h <<_ACEOF
1174     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175     _ACEOF
1176    
1177    
1178     cat >>confdefs.h <<_ACEOF
1179     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180     _ACEOF
1181    
1182    
1183     cat >>confdefs.h <<_ACEOF
1184     #define PACKAGE_STRING "$PACKAGE_STRING"
1185     _ACEOF
1186    
1187    
1188     cat >>confdefs.h <<_ACEOF
1189     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190     _ACEOF
1191    
1192    
1193     # Let the site file select an alternate cache file if it wants to.
1194     # Prefer explicitly selected file to automatically selected ones.
1195     if test -z "$CONFIG_SITE"; then
1196     if test "x$prefix" != xNONE; then
1197     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198     else
1199     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200     fi
1201     fi
1202     for ac_site_file in $CONFIG_SITE; do
1203     if test -r "$ac_site_file"; then
1204     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205     echo "$as_me: loading site script $ac_site_file" >&6;}
1206     sed 's/^/| /' "$ac_site_file" >&5
1207     . "$ac_site_file"
1208     fi
1209     done
1210    
1211     if test -r "$cache_file"; then
1212     # Some versions of bash will fail to source /dev/null (special
1213     # files actually), so we avoid doing that.
1214     if test -f "$cache_file"; then
1215     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216     echo "$as_me: loading cache $cache_file" >&6;}
1217     case $cache_file in
1218     [\\/]* | ?:[\\/]* ) . $cache_file;;
1219     *) . ./$cache_file;;
1220     esac
1221     fi
1222     else
1223     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224     echo "$as_me: creating cache $cache_file" >&6;}
1225     >$cache_file
1226     fi
1227    
1228     # Check that the precious variables saved in the cache have kept the same
1229     # value.
1230     ac_cache_corrupted=false
1231     for ac_var in `(set) 2>&1 |
1232     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234     eval ac_new_set=\$ac_env_${ac_var}_set
1235     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236     eval ac_new_val="\$ac_env_${ac_var}_value"
1237     case $ac_old_set,$ac_new_set in
1238     set,)
1239     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241     ac_cache_corrupted=: ;;
1242     ,set)
1243     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245     ac_cache_corrupted=: ;;
1246     ,);;
1247     *)
1248     if test "x$ac_old_val" != "x$ac_new_val"; then
1249     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252     echo "$as_me: former value: $ac_old_val" >&2;}
1253     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254     echo "$as_me: current value: $ac_new_val" >&2;}
1255     ac_cache_corrupted=:
1256     fi;;
1257     esac
1258     # Pass precious variables to config.status.
1259     if test "$ac_new_set" = set; then
1260     case $ac_new_val in
1261     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     *) ac_arg=$ac_var=$ac_new_val ;;
1264     esac
1265     case " $ac_configure_args " in
1266     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268     esac
1269     fi
1270     done
1271     if $ac_cache_corrupted; then
1272     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276     { (exit 1); exit 1; }; }
1277     fi
1278    
1279     ac_ext=c
1280     ac_cpp='$CPP $CPPFLAGS'
1281     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284    
1285    
1286    
1287    
1288    
1289    
1290    
1291    
1292    
1293    
1294    
1295    
1296    
1297    
1298    
1299    
1300    
1301    
1302    
1303    
1304    
1305    
1306    
1307    
1308    
1309    
1310    
1311 gcodispo 1.5 VERSION=`tail -1 ./VERSION | cut -f1`
1312 gcodispo 1.22 #VERSION_NUMBER=[`tail -1 ./VERSION | sed 's/_/./g' | sed 's/[^0-9.]//g'`]
1313     VERSION_NUMBER=`tail -1 ./VERSION | sed 's/BOSS_//g'`
1314 gcodispo 1.19
1315    
1316 gcodispo 1.5
1317    
1318 gcodispo 1.1 ac_config_headers="$ac_config_headers config.h"
1319    
1320    
1321 gcodispo 1.31 if test "${ARCH+set}" = set; then
1322     echo $ECHO_N "(cached) $ECHO_C" >&6
1323     else
1324    
1325     os=`uname`
1326     if test ${os} = "Linux"; then
1327     SONAME="so"
1328     LINK_OPT="-Wl,-E -shared"
1329     echo "$as_me:$LINENO: result: Operating System... Linux" >&5
1330     echo "${ECHO_T}Operating System... Linux" >&6
1331     elif test ${os} = "Darwin"; then
1332     echo "$as_me:$LINENO: result: Operating System... Darwin" >&5
1333     echo "${ECHO_T}Operating System... Darwin" >&6
1334     SONAME="dylib"
1335     LINK_OPT="-dynamiclib"
1336     else
1337     { { echo "$as_me:$LINENO: error: Unsupported OS " >&5
1338     echo "$as_me: error: Unsupported OS " >&2;}
1339     { (exit 1); exit 1; }; }
1340     fi
1341     for p in `uname -m` ; do
1342     case "$p" in
1343     *x86_64*)
1344     ARCH=amd64_
1345     ;;
1346     *i386* | *i686* )
1347     ARCH=ia32_
1348     ;;
1349     esac
1350     done
1351    
1352    
1353    
1354    
1355     fi
1356    
1357    
1358     if test "${RELEASE+set}" = set; then
1359     echo $ECHO_N "(cached) $ECHO_C" >&6
1360     else
1361    
1362     for p in `cat /etc/redhat-release /etc/issue* 2>/dev/null| sed 's/ //g'` ; do
1363     case "$p" in
1364     *Debian*GNU*Linux*3*1* | *Fedora* | *Fermi* | *Red*Hat*Enterprise* | *Rocks* )
1365     RELEASE=slc3_
1366     break
1367     ;;
1368     *SL* | *Scientific*Linux* )
1369     RELEASE=slc`sed 's/[^0-9]//g' /etc/redhat-release | cut -c 1`_
1370     break
1371     ;;
1372     *Mandrake* | *Red*Hat*Linux* | *SuSE* | *Debian*GNU*Linux*3*0* )
1373     RELEASE=rh73_
1374     ARC=""
1375    
1376     break
1377     ;;
1378     esac
1379     done
1380    
1381    
1382     fi
1383    
1384    
1385     if test "${GCC_VERSION+set}" = set; then
1386     echo $ECHO_N "(cached) $ECHO_C" >&6
1387     else
1388    
1389     for p in "`gcc --version | cut -d ' ' -f 1,3 `" ; do
1390     case "$p" in
1391     *gcc* )
1392     GCC_VERSION=gcc`echo $p | cut -d ' ' -f 2 |sed 's/[^0-9]//g' `
1393     ;;
1394     esac
1395     done
1396    
1397    
1398     fi
1399    
1400    
1401     if test "${SYSTEM+set}" = set; then
1402     echo $ECHO_N "(cached) $ECHO_C" >&6
1403     else
1404    
1405     SYSTEM=${RELEASE}${ARCH}${GCC_VERSION}
1406     echo system attributes... ${SYSTEM}
1407    
1408    
1409     fi
1410    
1411    
1412    
1413    
1414 elmer 1.21 # preference for compilers
1415     CC_PREFERENCE="gcc cc"
1416     CXX_PREFERENCE="g++ c++"
1417 gcodispo 1.24 DFLT_OPT="-fPIC"
1418 elmer 1.21
1419     ############################################################
1420    
1421     # Check whether --enable-dbg-build or --disable-dbg-build was given.
1422     if test "${enable_dbg_build+set}" = set; then
1423     enableval="$enable_dbg_build"
1424     if test x"$enableval" = "xyes"; then
1425     debug_build=yes
1426     DBG_OPT="-g"
1427     { echo "$as_me:$LINENO: ENABLING DEBUG BUILD" >&5
1428     echo "$as_me: ENABLING DEBUG BUILD" >&6;}
1429     fi
1430    
1431     fi;
1432    
1433 gcodispo 1.24 # Check whether --enable-warn-build or --disable-warn-build was given.
1434     if test "${enable_warn_build+set}" = set; then
1435     enableval="$enable_warn_build"
1436     if test x"$enableval" = "xyes"; then
1437     debug_build=yes
1438     DBG_OPT="$DBG_OPT -Wall"
1439     { echo "$as_me:$LINENO: ENABLING ALL WARNINGS BUILD" >&5
1440     echo "$as_me: ENABLING ALL WARNINGS BUILD" >&6;}
1441     fi
1442    
1443     fi;
1444    
1445 gcodispo 1.27 # Check whether --enable-O2-build or --disable-O2-build was given.
1446     if test "${enable_O2_build+set}" = set; then
1447     enableval="$enable_O2_build"
1448     if test x"$enableval" = "xyes"; then
1449     debug_build=yes
1450     DBG_OPT="$DBG_OPT -O2"
1451     { echo "$as_me:$LINENO: ENABLING LEVEL 2 OPTIMIZATION BUILD" >&5
1452     echo "$as_me: ENABLING LEVEL 2 OPTIMIZATION BUILD" >&6;}
1453     fi
1454    
1455     fi;
1456    
1457 elmer 1.21 #################################################################
1458     # Setting optimization and debug compiler options
1459     # Note: needs to be set before calling AC_PROG_CXX, because
1460     # if CXXFLAGS is empty, that macro will fill it with the
1461     # autoconf default (which is -g for any non-gcc compiler)
1462    
1463 gcodispo 1.24 #if test x"$DBG_OPT""$DFLT_OPT" != x ; then
1464     CXXFLAGS="$DBG_OPT $DFLT_OPT"
1465     #fi
1466 elmer 1.21
1467 gcodispo 1.1 # Checks for programs.
1468 elmer 1.21 ac_ext=c
1469     ac_cpp='$CPP $CPPFLAGS'
1470     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 gcodispo 1.1 if test -n "$ac_tool_prefix"; then
1474 elmer 1.21 for ac_prog in $CC_PREFERENCE
1475 gcodispo 1.1 do
1476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1477     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1478     echo "$as_me:$LINENO: checking for $ac_word" >&5
1479     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 elmer 1.21 if test "${ac_cv_prog_CC+set}" = set; then
1481 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
1482     else
1483 elmer 1.21 if test -n "$CC"; then
1484     ac_cv_prog_CC="$CC" # Let the user override the test.
1485 gcodispo 1.1 else
1486     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487     for as_dir in $PATH
1488     do
1489     IFS=$as_save_IFS
1490     test -z "$as_dir" && as_dir=.
1491     for ac_exec_ext in '' $ac_executable_extensions; do
1492     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 elmer 1.21 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1494 gcodispo 1.1 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495     break 2
1496     fi
1497     done
1498     done
1499    
1500     fi
1501     fi
1502 elmer 1.21 CC=$ac_cv_prog_CC
1503     if test -n "$CC"; then
1504     echo "$as_me:$LINENO: result: $CC" >&5
1505     echo "${ECHO_T}$CC" >&6
1506 gcodispo 1.1 else
1507     echo "$as_me:$LINENO: result: no" >&5
1508     echo "${ECHO_T}no" >&6
1509     fi
1510    
1511 elmer 1.21 test -n "$CC" && break
1512 gcodispo 1.1 done
1513     fi
1514 elmer 1.21 if test -z "$CC"; then
1515     ac_ct_CC=$CC
1516     for ac_prog in $CC_PREFERENCE
1517 gcodispo 1.1 do
1518     # Extract the first word of "$ac_prog", so it can be a program name with args.
1519     set dummy $ac_prog; ac_word=$2
1520     echo "$as_me:$LINENO: checking for $ac_word" >&5
1521     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 elmer 1.21 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
1524     else
1525 elmer 1.21 if test -n "$ac_ct_CC"; then
1526     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 gcodispo 1.1 else
1528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529     for as_dir in $PATH
1530     do
1531     IFS=$as_save_IFS
1532     test -z "$as_dir" && as_dir=.
1533     for ac_exec_ext in '' $ac_executable_extensions; do
1534     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 elmer 1.21 ac_cv_prog_ac_ct_CC="$ac_prog"
1536 gcodispo 1.1 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538     fi
1539     done
1540     done
1541    
1542     fi
1543     fi
1544 elmer 1.21 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545     if test -n "$ac_ct_CC"; then
1546     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547     echo "${ECHO_T}$ac_ct_CC" >&6
1548 gcodispo 1.1 else
1549     echo "$as_me:$LINENO: result: no" >&5
1550     echo "${ECHO_T}no" >&6
1551     fi
1552    
1553 elmer 1.21 test -n "$ac_ct_CC" && break
1554 gcodispo 1.1 done
1555    
1556 elmer 1.21 CC=$ac_ct_CC
1557 gcodispo 1.1 fi
1558    
1559    
1560 elmer 1.21 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1561     See \`config.log' for more details." >&5
1562     echo "$as_me: error: no acceptable C compiler found in \$PATH
1563     See \`config.log' for more details." >&2;}
1564     { (exit 1); exit 1; }; }
1565    
1566 gcodispo 1.1 # Provide some information about the compiler.
1567     echo "$as_me:$LINENO:" \
1568 elmer 1.21 "checking for C compiler version" >&5
1569 gcodispo 1.1 ac_compiler=`set X $ac_compile; echo $2`
1570     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1571     (eval $ac_compiler --version </dev/null >&5) 2>&5
1572     ac_status=$?
1573     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1574     (exit $ac_status); }
1575     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1576     (eval $ac_compiler -v </dev/null >&5) 2>&5
1577     ac_status=$?
1578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1579     (exit $ac_status); }
1580     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1581     (eval $ac_compiler -V </dev/null >&5) 2>&5
1582     ac_status=$?
1583     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1584     (exit $ac_status); }
1585    
1586     cat >conftest.$ac_ext <<_ACEOF
1587     #line $LINENO "configure"
1588     /* confdefs.h. */
1589     _ACEOF
1590     cat confdefs.h >>conftest.$ac_ext
1591     cat >>conftest.$ac_ext <<_ACEOF
1592     /* end confdefs.h. */
1593    
1594     int
1595     main ()
1596     {
1597    
1598     ;
1599     return 0;
1600     }
1601     _ACEOF
1602     ac_clean_files_save=$ac_clean_files
1603     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1604     # Try to create an executable without -o first, disregard a.out.
1605     # It will help us diagnose broken compilers, and finding out an intuition
1606     # of exeext.
1607 elmer 1.21 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1608     echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1609 gcodispo 1.1 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1610     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1611     (eval $ac_link_default) 2>&5
1612     ac_status=$?
1613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1614     (exit $ac_status); }; then
1615     # Find the output, starting from the most likely. This scheme is
1616     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1617     # resort.
1618    
1619     # Be careful to initialize this variable, since it used to be cached.
1620     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1621     ac_cv_exeext=
1622     # b.out is created by i960 compilers.
1623     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1624     do
1625     test -f "$ac_file" || continue
1626     case $ac_file in
1627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1628     ;;
1629     conftest.$ac_ext )
1630     # This is the source file.
1631     ;;
1632     [ab].out )
1633     # We found the default executable, but exeext='' is most
1634     # certainly right.
1635     break;;
1636     *.* )
1637     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1638     # FIXME: I believe we export ac_cv_exeext for Libtool,
1639     # but it would be cool to find out if it's true. Does anybody
1640     # maintain Libtool? --akim.
1641     export ac_cv_exeext
1642     break;;
1643     * )
1644     break;;
1645     esac
1646     done
1647     else
1648     echo "$as_me: failed program was:" >&5
1649     sed 's/^/| /' conftest.$ac_ext >&5
1650    
1651 elmer 1.21 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1652 gcodispo 1.1 See \`config.log' for more details." >&5
1653 elmer 1.21 echo "$as_me: error: C compiler cannot create executables
1654 gcodispo 1.1 See \`config.log' for more details." >&2;}
1655     { (exit 77); exit 77; }; }
1656     fi
1657    
1658     ac_exeext=$ac_cv_exeext
1659     echo "$as_me:$LINENO: result: $ac_file" >&5
1660     echo "${ECHO_T}$ac_file" >&6
1661    
1662     # Check the compiler produces executables we can run. If not, either
1663     # the compiler is broken, or we cross compile.
1664 elmer 1.21 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1665     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1666 gcodispo 1.1 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1667     # If not cross compiling, check that we can run a simple program.
1668     if test "$cross_compiling" != yes; then
1669     if { ac_try='./$ac_file'
1670     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1671     (eval $ac_try) 2>&5
1672     ac_status=$?
1673     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1674     (exit $ac_status); }; }; then
1675     cross_compiling=no
1676     else
1677     if test "$cross_compiling" = maybe; then
1678     cross_compiling=yes
1679     else
1680 elmer 1.21 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1681 gcodispo 1.1 If you meant to cross compile, use \`--host'.
1682     See \`config.log' for more details." >&5
1683 elmer 1.21 echo "$as_me: error: cannot run C compiled programs.
1684 gcodispo 1.1 If you meant to cross compile, use \`--host'.
1685     See \`config.log' for more details." >&2;}
1686     { (exit 1); exit 1; }; }
1687     fi
1688     fi
1689     fi
1690     echo "$as_me:$LINENO: result: yes" >&5
1691     echo "${ECHO_T}yes" >&6
1692    
1693     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1694     ac_clean_files=$ac_clean_files_save
1695     # Check the compiler produces executables we can run. If not, either
1696     # the compiler is broken, or we cross compile.
1697     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1698     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1699     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1700     echo "${ECHO_T}$cross_compiling" >&6
1701    
1702     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1703     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1704     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1705     (eval $ac_link) 2>&5
1706     ac_status=$?
1707     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708     (exit $ac_status); }; then
1709     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1710     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1711     # work properly (i.e., refer to `conftest.exe'), while it won't with
1712     # `rm'.
1713     for ac_file in conftest.exe conftest conftest.*; do
1714     test -f "$ac_file" || continue
1715     case $ac_file in
1716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1717     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1718     export ac_cv_exeext
1719     break;;
1720     * ) break;;
1721     esac
1722     done
1723     else
1724     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1725     See \`config.log' for more details." >&5
1726     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1727     See \`config.log' for more details." >&2;}
1728     { (exit 1); exit 1; }; }
1729     fi
1730    
1731     rm -f conftest$ac_cv_exeext
1732     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1733     echo "${ECHO_T}$ac_cv_exeext" >&6
1734    
1735     rm -f conftest.$ac_ext
1736     EXEEXT=$ac_cv_exeext
1737     ac_exeext=$EXEEXT
1738     echo "$as_me:$LINENO: checking for suffix of object files" >&5
1739     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1740     if test "${ac_cv_objext+set}" = set; then
1741     echo $ECHO_N "(cached) $ECHO_C" >&6
1742     else
1743     cat >conftest.$ac_ext <<_ACEOF
1744     #line $LINENO "configure"
1745     /* confdefs.h. */
1746     _ACEOF
1747     cat confdefs.h >>conftest.$ac_ext
1748     cat >>conftest.$ac_ext <<_ACEOF
1749     /* end confdefs.h. */
1750    
1751     int
1752     main ()
1753     {
1754    
1755     ;
1756     return 0;
1757     }
1758     _ACEOF
1759     rm -f conftest.o conftest.obj
1760     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1761     (eval $ac_compile) 2>&5
1762     ac_status=$?
1763     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764     (exit $ac_status); }; then
1765     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1766     case $ac_file in
1767     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1768     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1769     break;;
1770     esac
1771     done
1772     else
1773     echo "$as_me: failed program was:" >&5
1774     sed 's/^/| /' conftest.$ac_ext >&5
1775    
1776     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1777     See \`config.log' for more details." >&5
1778     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1779     See \`config.log' for more details." >&2;}
1780     { (exit 1); exit 1; }; }
1781     fi
1782    
1783     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1784     fi
1785     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1786     echo "${ECHO_T}$ac_cv_objext" >&6
1787     OBJEXT=$ac_cv_objext
1788     ac_objext=$OBJEXT
1789 elmer 1.21 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1790     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1791     if test "${ac_cv_c_compiler_gnu+set}" = set; then
1792 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
1793     else
1794     cat >conftest.$ac_ext <<_ACEOF
1795     #line $LINENO "configure"
1796     /* confdefs.h. */
1797     _ACEOF
1798     cat confdefs.h >>conftest.$ac_ext
1799     cat >>conftest.$ac_ext <<_ACEOF
1800     /* end confdefs.h. */
1801    
1802     int
1803     main ()
1804     {
1805     #ifndef __GNUC__
1806     choke me
1807     #endif
1808    
1809     ;
1810     return 0;
1811     }
1812     _ACEOF
1813     rm -f conftest.$ac_objext
1814     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815     (eval $ac_compile) 2>&5
1816     ac_status=$?
1817     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818     (exit $ac_status); } &&
1819     { ac_try='test -s conftest.$ac_objext'
1820     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821     (eval $ac_try) 2>&5
1822     ac_status=$?
1823     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824     (exit $ac_status); }; }; then
1825     ac_compiler_gnu=yes
1826     else
1827     echo "$as_me: failed program was:" >&5
1828     sed 's/^/| /' conftest.$ac_ext >&5
1829    
1830     ac_compiler_gnu=no
1831     fi
1832     rm -f conftest.$ac_objext conftest.$ac_ext
1833 elmer 1.21 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1834 gcodispo 1.1
1835     fi
1836 elmer 1.21 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1837     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1838     GCC=`test $ac_compiler_gnu = yes && echo yes`
1839     ac_test_CFLAGS=${CFLAGS+set}
1840     ac_save_CFLAGS=$CFLAGS
1841     CFLAGS="-g"
1842     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1843     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1844     if test "${ac_cv_prog_cc_g+set}" = set; then
1845 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
1846     else
1847     cat >conftest.$ac_ext <<_ACEOF
1848     #line $LINENO "configure"
1849     /* confdefs.h. */
1850     _ACEOF
1851     cat confdefs.h >>conftest.$ac_ext
1852     cat >>conftest.$ac_ext <<_ACEOF
1853     /* end confdefs.h. */
1854    
1855     int
1856     main ()
1857     {
1858    
1859     ;
1860     return 0;
1861     }
1862     _ACEOF
1863     rm -f conftest.$ac_objext
1864     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1865     (eval $ac_compile) 2>&5
1866     ac_status=$?
1867     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868     (exit $ac_status); } &&
1869     { ac_try='test -s conftest.$ac_objext'
1870     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871     (eval $ac_try) 2>&5
1872     ac_status=$?
1873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874     (exit $ac_status); }; }; then
1875 elmer 1.21 ac_cv_prog_cc_g=yes
1876 gcodispo 1.1 else
1877     echo "$as_me: failed program was:" >&5
1878     sed 's/^/| /' conftest.$ac_ext >&5
1879    
1880 elmer 1.21 ac_cv_prog_cc_g=no
1881 gcodispo 1.1 fi
1882     rm -f conftest.$ac_objext conftest.$ac_ext
1883     fi
1884 elmer 1.21 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1885     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1886     if test "$ac_test_CFLAGS" = set; then
1887     CFLAGS=$ac_save_CFLAGS
1888     elif test $ac_cv_prog_cc_g = yes; then
1889     if test "$GCC" = yes; then
1890     CFLAGS="-g -O2"
1891 gcodispo 1.1 else
1892 elmer 1.21 CFLAGS="-g"
1893 gcodispo 1.1 fi
1894     else
1895 elmer 1.21 if test "$GCC" = yes; then
1896     CFLAGS="-O2"
1897 gcodispo 1.1 else
1898 elmer 1.21 CFLAGS=
1899 gcodispo 1.1 fi
1900     fi
1901 elmer 1.21 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1902     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1903     if test "${ac_cv_prog_cc_stdc+set}" = set; then
1904     echo $ECHO_N "(cached) $ECHO_C" >&6
1905     else
1906     ac_cv_prog_cc_stdc=no
1907     ac_save_CC=$CC
1908     cat >conftest.$ac_ext <<_ACEOF
1909     #line $LINENO "configure"
1910     /* confdefs.h. */
1911     _ACEOF
1912     cat confdefs.h >>conftest.$ac_ext
1913     cat >>conftest.$ac_ext <<_ACEOF
1914     /* end confdefs.h. */
1915     #include <stdarg.h>
1916     #include <stdio.h>
1917     #include <sys/types.h>
1918     #include <sys/stat.h>
1919     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1920     struct buf { int x; };
1921     FILE * (*rcsopen) (struct buf *, struct stat *, int);
1922     static char *e (p, i)
1923     char **p;
1924     int i;
1925     {
1926     return p[i];
1927     }
1928     static char *f (char * (*g) (char **, int), char **p, ...)
1929     {
1930     char *s;
1931     va_list v;
1932     va_start (v,p);
1933     s = g (p, va_arg (v,int));
1934     va_end (v);
1935     return s;
1936     }
1937     int test (int i, double x);
1938     struct s1 {int (*f) (int a);};
1939     struct s2 {int (*f) (double a);};
1940     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1941     int argc;
1942     char **argv;
1943     int
1944     main ()
1945     {
1946     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1947     ;
1948     return 0;
1949     }
1950     _ACEOF
1951     # Don't try gcc -ansi; that turns off useful extensions and
1952     # breaks some systems' header files.
1953     # AIX -qlanglvl=ansi
1954     # Ultrix and OSF/1 -std1
1955     # HP-UX 10.20 and later -Ae
1956     # HP-UX older versions -Aa -D_HPUX_SOURCE
1957     # SVR4 -Xc -D__EXTENSIONS__
1958     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1959     do
1960     CC="$ac_save_CC $ac_arg"
1961     rm -f conftest.$ac_objext
1962     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963     (eval $ac_compile) 2>&5
1964     ac_status=$?
1965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966     (exit $ac_status); } &&
1967     { ac_try='test -s conftest.$ac_objext'
1968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969     (eval $ac_try) 2>&5
1970     ac_status=$?
1971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972     (exit $ac_status); }; }; then
1973     ac_cv_prog_cc_stdc=$ac_arg
1974     break
1975     else
1976     echo "$as_me: failed program was:" >&5
1977     sed 's/^/| /' conftest.$ac_ext >&5
1978    
1979     fi
1980     rm -f conftest.$ac_objext
1981     done
1982     rm -f conftest.$ac_ext conftest.$ac_objext
1983     CC=$ac_save_CC
1984    
1985     fi
1986    
1987     case "x$ac_cv_prog_cc_stdc" in
1988     x|xno)
1989     echo "$as_me:$LINENO: result: none needed" >&5
1990     echo "${ECHO_T}none needed" >&6 ;;
1991     *)
1992     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1993     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1994     CC="$CC $ac_cv_prog_cc_stdc" ;;
1995     esac
1996    
1997     # Some people use a C++ compiler to compile C. Since we use `exit',
1998     # in C++ we need to declare it. In case someone uses the same compiler
1999     # for both compiling C and C++ we need to have the C++ compiler decide
2000     # the declaration of exit, since it's the most demanding environment.
2001     cat >conftest.$ac_ext <<_ACEOF
2002     #ifndef __cplusplus
2003     choke me
2004     #endif
2005     _ACEOF
2006     rm -f conftest.$ac_objext
2007     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008     (eval $ac_compile) 2>&5
2009     ac_status=$?
2010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011     (exit $ac_status); } &&
2012     { ac_try='test -s conftest.$ac_objext'
2013     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014     (eval $ac_try) 2>&5
2015     ac_status=$?
2016     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017     (exit $ac_status); }; }; then
2018     for ac_declaration in \
2019 gcodispo 1.1 ''\
2020     '#include <stdlib.h>' \
2021     'extern "C" void std::exit (int) throw (); using std::exit;' \
2022     'extern "C" void std::exit (int); using std::exit;' \
2023     'extern "C" void exit (int) throw ();' \
2024     'extern "C" void exit (int);' \
2025     'void exit (int);'
2026     do
2027     cat >conftest.$ac_ext <<_ACEOF
2028     #line $LINENO "configure"
2029     /* confdefs.h. */
2030     _ACEOF
2031     cat confdefs.h >>conftest.$ac_ext
2032     cat >>conftest.$ac_ext <<_ACEOF
2033     /* end confdefs.h. */
2034     #include <stdlib.h>
2035     $ac_declaration
2036     int
2037     main ()
2038     {
2039     exit (42);
2040     ;
2041     return 0;
2042     }
2043     _ACEOF
2044     rm -f conftest.$ac_objext
2045     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046     (eval $ac_compile) 2>&5
2047     ac_status=$?
2048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049     (exit $ac_status); } &&
2050     { ac_try='test -s conftest.$ac_objext'
2051     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052     (eval $ac_try) 2>&5
2053     ac_status=$?
2054     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055     (exit $ac_status); }; }; then
2056     :
2057     else
2058     echo "$as_me: failed program was:" >&5
2059     sed 's/^/| /' conftest.$ac_ext >&5
2060    
2061     continue
2062     fi
2063     rm -f conftest.$ac_objext conftest.$ac_ext
2064     cat >conftest.$ac_ext <<_ACEOF
2065     #line $LINENO "configure"
2066     /* confdefs.h. */
2067     _ACEOF
2068     cat confdefs.h >>conftest.$ac_ext
2069     cat >>conftest.$ac_ext <<_ACEOF
2070     /* end confdefs.h. */
2071     $ac_declaration
2072     int
2073     main ()
2074     {
2075     exit (42);
2076     ;
2077     return 0;
2078     }
2079     _ACEOF
2080     rm -f conftest.$ac_objext
2081     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082     (eval $ac_compile) 2>&5
2083     ac_status=$?
2084     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085     (exit $ac_status); } &&
2086     { ac_try='test -s conftest.$ac_objext'
2087     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088     (eval $ac_try) 2>&5
2089     ac_status=$?
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091     (exit $ac_status); }; }; then
2092     break
2093     else
2094     echo "$as_me: failed program was:" >&5
2095     sed 's/^/| /' conftest.$ac_ext >&5
2096    
2097     fi
2098     rm -f conftest.$ac_objext conftest.$ac_ext
2099     done
2100     rm -f conftest*
2101     if test -n "$ac_declaration"; then
2102     echo '#ifdef __cplusplus' >>confdefs.h
2103     echo $ac_declaration >>confdefs.h
2104     echo '#endif' >>confdefs.h
2105     fi
2106    
2107 elmer 1.21 else
2108     echo "$as_me: failed program was:" >&5
2109     sed 's/^/| /' conftest.$ac_ext >&5
2110 gcodispo 1.1
2111 elmer 1.21 fi
2112     rm -f conftest.$ac_objext conftest.$ac_ext
2113 gcodispo 1.1 ac_ext=c
2114     ac_cpp='$CPP $CPPFLAGS'
2115     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118    
2119 elmer 1.21 ac_ext=cc
2120     ac_cpp='$CXXCPP $CPPFLAGS'
2121     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2124     if test -n "$ac_tool_prefix"; then
2125     for ac_prog in $CCC $CXX_PREFERENCE
2126 gcodispo 1.1 do
2127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2128     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2129     echo "$as_me:$LINENO: checking for $ac_word" >&5
2130     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 elmer 1.21 if test "${ac_cv_prog_CXX+set}" = set; then
2132 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2133     else
2134 elmer 1.21 if test -n "$CXX"; then
2135     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2136 gcodispo 1.1 else
2137     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138     for as_dir in $PATH
2139     do
2140     IFS=$as_save_IFS
2141     test -z "$as_dir" && as_dir=.
2142     for ac_exec_ext in '' $ac_executable_extensions; do
2143     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 elmer 1.21 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2145 gcodispo 1.1 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147     fi
2148     done
2149     done
2150    
2151     fi
2152     fi
2153 elmer 1.21 CXX=$ac_cv_prog_CXX
2154     if test -n "$CXX"; then
2155     echo "$as_me:$LINENO: result: $CXX" >&5
2156     echo "${ECHO_T}$CXX" >&6
2157 gcodispo 1.1 else
2158     echo "$as_me:$LINENO: result: no" >&5
2159     echo "${ECHO_T}no" >&6
2160     fi
2161    
2162 elmer 1.21 test -n "$CXX" && break
2163 gcodispo 1.1 done
2164     fi
2165 elmer 1.21 if test -z "$CXX"; then
2166     ac_ct_CXX=$CXX
2167     for ac_prog in $CCC $CXX_PREFERENCE
2168 gcodispo 1.1 do
2169     # Extract the first word of "$ac_prog", so it can be a program name with args.
2170     set dummy $ac_prog; ac_word=$2
2171     echo "$as_me:$LINENO: checking for $ac_word" >&5
2172     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 elmer 1.21 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2174 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2175     else
2176 elmer 1.21 if test -n "$ac_ct_CXX"; then
2177     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2178 gcodispo 1.1 else
2179     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180     for as_dir in $PATH
2181     do
2182     IFS=$as_save_IFS
2183     test -z "$as_dir" && as_dir=.
2184     for ac_exec_ext in '' $ac_executable_extensions; do
2185     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 elmer 1.21 ac_cv_prog_ac_ct_CXX="$ac_prog"
2187 gcodispo 1.1 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189     fi
2190     done
2191     done
2192    
2193     fi
2194     fi
2195 elmer 1.21 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2196     if test -n "$ac_ct_CXX"; then
2197     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2198     echo "${ECHO_T}$ac_ct_CXX" >&6
2199 gcodispo 1.1 else
2200     echo "$as_me:$LINENO: result: no" >&5
2201     echo "${ECHO_T}no" >&6
2202     fi
2203    
2204 elmer 1.21 test -n "$ac_ct_CXX" && break
2205 gcodispo 1.1 done
2206 elmer 1.21 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2207 gcodispo 1.1
2208 elmer 1.21 CXX=$ac_ct_CXX
2209 gcodispo 1.1 fi
2210    
2211    
2212     # Provide some information about the compiler.
2213     echo "$as_me:$LINENO:" \
2214 elmer 1.21 "checking for C++ compiler version" >&5
2215 gcodispo 1.1 ac_compiler=`set X $ac_compile; echo $2`
2216     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2217     (eval $ac_compiler --version </dev/null >&5) 2>&5
2218     ac_status=$?
2219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220     (exit $ac_status); }
2221     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2222     (eval $ac_compiler -v </dev/null >&5) 2>&5
2223     ac_status=$?
2224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225     (exit $ac_status); }
2226     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2227     (eval $ac_compiler -V </dev/null >&5) 2>&5
2228     ac_status=$?
2229     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230     (exit $ac_status); }
2231    
2232 elmer 1.21 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2233     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2234     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2235 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2236     else
2237     cat >conftest.$ac_ext <<_ACEOF
2238     #line $LINENO "configure"
2239     /* confdefs.h. */
2240     _ACEOF
2241     cat confdefs.h >>conftest.$ac_ext
2242     cat >>conftest.$ac_ext <<_ACEOF
2243     /* end confdefs.h. */
2244    
2245     int
2246     main ()
2247     {
2248     #ifndef __GNUC__
2249     choke me
2250     #endif
2251    
2252     ;
2253     return 0;
2254     }
2255     _ACEOF
2256     rm -f conftest.$ac_objext
2257     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258     (eval $ac_compile) 2>&5
2259     ac_status=$?
2260     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261     (exit $ac_status); } &&
2262     { ac_try='test -s conftest.$ac_objext'
2263     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264     (eval $ac_try) 2>&5
2265     ac_status=$?
2266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267     (exit $ac_status); }; }; then
2268     ac_compiler_gnu=yes
2269     else
2270     echo "$as_me: failed program was:" >&5
2271     sed 's/^/| /' conftest.$ac_ext >&5
2272    
2273     ac_compiler_gnu=no
2274     fi
2275     rm -f conftest.$ac_objext conftest.$ac_ext
2276 elmer 1.21 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2277 gcodispo 1.1
2278     fi
2279 elmer 1.21 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2280     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2281     GXX=`test $ac_compiler_gnu = yes && echo yes`
2282     ac_test_CXXFLAGS=${CXXFLAGS+set}
2283     ac_save_CXXFLAGS=$CXXFLAGS
2284     CXXFLAGS="-g"
2285     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2286     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2287     if test "${ac_cv_prog_cxx_g+set}" = set; then
2288 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2289     else
2290     cat >conftest.$ac_ext <<_ACEOF
2291     #line $LINENO "configure"
2292     /* confdefs.h. */
2293     _ACEOF
2294     cat confdefs.h >>conftest.$ac_ext
2295     cat >>conftest.$ac_ext <<_ACEOF
2296     /* end confdefs.h. */
2297    
2298     int
2299     main ()
2300     {
2301    
2302     ;
2303     return 0;
2304     }
2305     _ACEOF
2306     rm -f conftest.$ac_objext
2307     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308     (eval $ac_compile) 2>&5
2309     ac_status=$?
2310     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311     (exit $ac_status); } &&
2312     { ac_try='test -s conftest.$ac_objext'
2313     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314     (eval $ac_try) 2>&5
2315     ac_status=$?
2316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317     (exit $ac_status); }; }; then
2318 elmer 1.21 ac_cv_prog_cxx_g=yes
2319 gcodispo 1.1 else
2320     echo "$as_me: failed program was:" >&5
2321     sed 's/^/| /' conftest.$ac_ext >&5
2322    
2323 elmer 1.21 ac_cv_prog_cxx_g=no
2324 gcodispo 1.1 fi
2325     rm -f conftest.$ac_objext conftest.$ac_ext
2326     fi
2327 elmer 1.21 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2328     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2329     if test "$ac_test_CXXFLAGS" = set; then
2330     CXXFLAGS=$ac_save_CXXFLAGS
2331     elif test $ac_cv_prog_cxx_g = yes; then
2332     if test "$GXX" = yes; then
2333     CXXFLAGS="-g -O2"
2334 gcodispo 1.1 else
2335 elmer 1.21 CXXFLAGS="-g"
2336 gcodispo 1.1 fi
2337     else
2338 elmer 1.21 if test "$GXX" = yes; then
2339     CXXFLAGS="-O2"
2340 gcodispo 1.1 else
2341 elmer 1.21 CXXFLAGS=
2342 gcodispo 1.1 fi
2343     fi
2344 elmer 1.21 for ac_declaration in \
2345 gcodispo 1.1 ''\
2346     '#include <stdlib.h>' \
2347     'extern "C" void std::exit (int) throw (); using std::exit;' \
2348     'extern "C" void std::exit (int); using std::exit;' \
2349     'extern "C" void exit (int) throw ();' \
2350     'extern "C" void exit (int);' \
2351     'void exit (int);'
2352     do
2353     cat >conftest.$ac_ext <<_ACEOF
2354     #line $LINENO "configure"
2355     /* confdefs.h. */
2356     _ACEOF
2357     cat confdefs.h >>conftest.$ac_ext
2358     cat >>conftest.$ac_ext <<_ACEOF
2359     /* end confdefs.h. */
2360     #include <stdlib.h>
2361     $ac_declaration
2362     int
2363     main ()
2364     {
2365     exit (42);
2366     ;
2367     return 0;
2368     }
2369     _ACEOF
2370     rm -f conftest.$ac_objext
2371     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372     (eval $ac_compile) 2>&5
2373     ac_status=$?
2374     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375     (exit $ac_status); } &&
2376     { ac_try='test -s conftest.$ac_objext'
2377     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378     (eval $ac_try) 2>&5
2379     ac_status=$?
2380     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381     (exit $ac_status); }; }; then
2382     :
2383     else
2384     echo "$as_me: failed program was:" >&5
2385     sed 's/^/| /' conftest.$ac_ext >&5
2386    
2387     continue
2388     fi
2389     rm -f conftest.$ac_objext conftest.$ac_ext
2390     cat >conftest.$ac_ext <<_ACEOF
2391     #line $LINENO "configure"
2392     /* confdefs.h. */
2393     _ACEOF
2394     cat confdefs.h >>conftest.$ac_ext
2395     cat >>conftest.$ac_ext <<_ACEOF
2396     /* end confdefs.h. */
2397     $ac_declaration
2398     int
2399     main ()
2400     {
2401     exit (42);
2402     ;
2403     return 0;
2404     }
2405     _ACEOF
2406     rm -f conftest.$ac_objext
2407     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408     (eval $ac_compile) 2>&5
2409     ac_status=$?
2410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411     (exit $ac_status); } &&
2412     { ac_try='test -s conftest.$ac_objext'
2413     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414     (eval $ac_try) 2>&5
2415     ac_status=$?
2416     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417     (exit $ac_status); }; }; then
2418     break
2419     else
2420     echo "$as_me: failed program was:" >&5
2421     sed 's/^/| /' conftest.$ac_ext >&5
2422    
2423     fi
2424     rm -f conftest.$ac_objext conftest.$ac_ext
2425     done
2426     rm -f conftest*
2427     if test -n "$ac_declaration"; then
2428     echo '#ifdef __cplusplus' >>confdefs.h
2429     echo $ac_declaration >>confdefs.h
2430     echo '#endif' >>confdefs.h
2431     fi
2432    
2433     ac_ext=c
2434     ac_cpp='$CPP $CPPFLAGS'
2435     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438    
2439     ac_ext=c
2440     ac_cpp='$CPP $CPPFLAGS'
2441     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2445     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2446     # On Suns, sometimes $CPP names a directory.
2447     if test -n "$CPP" && test -d "$CPP"; then
2448     CPP=
2449     fi
2450     if test -z "$CPP"; then
2451     if test "${ac_cv_prog_CPP+set}" = set; then
2452     echo $ECHO_N "(cached) $ECHO_C" >&6
2453     else
2454     # Double quotes because CPP needs to be expanded
2455     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2456     do
2457     ac_preproc_ok=false
2458     for ac_c_preproc_warn_flag in '' yes
2459     do
2460     # Use a header file that comes with gcc, so configuring glibc
2461     # with a fresh cross-compiler works.
2462     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2463     # <limits.h> exists even on freestanding compilers.
2464     # On the NeXT, cc -E runs the code through the compiler's parser,
2465     # not just through cpp. "Syntax error" is here to catch this case.
2466     cat >conftest.$ac_ext <<_ACEOF
2467     #line $LINENO "configure"
2468     /* confdefs.h. */
2469     _ACEOF
2470     cat confdefs.h >>conftest.$ac_ext
2471     cat >>conftest.$ac_ext <<_ACEOF
2472     /* end confdefs.h. */
2473     #ifdef __STDC__
2474     # include <limits.h>
2475     #else
2476     # include <assert.h>
2477     #endif
2478     Syntax error
2479     _ACEOF
2480     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2481     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2482     ac_status=$?
2483     grep -v '^ *+' conftest.er1 >conftest.err
2484     rm -f conftest.er1
2485     cat conftest.err >&5
2486     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487     (exit $ac_status); } >/dev/null; then
2488     if test -s conftest.err; then
2489     ac_cpp_err=$ac_c_preproc_warn_flag
2490     else
2491     ac_cpp_err=
2492     fi
2493     else
2494     ac_cpp_err=yes
2495     fi
2496     if test -z "$ac_cpp_err"; then
2497     :
2498     else
2499     echo "$as_me: failed program was:" >&5
2500     sed 's/^/| /' conftest.$ac_ext >&5
2501    
2502     # Broken: fails on valid input.
2503     continue
2504     fi
2505     rm -f conftest.err conftest.$ac_ext
2506    
2507     # OK, works on sane cases. Now check whether non-existent headers
2508     # can be detected and how.
2509     cat >conftest.$ac_ext <<_ACEOF
2510     #line $LINENO "configure"
2511     /* confdefs.h. */
2512     _ACEOF
2513     cat confdefs.h >>conftest.$ac_ext
2514     cat >>conftest.$ac_ext <<_ACEOF
2515     /* end confdefs.h. */
2516     #include <ac_nonexistent.h>
2517     _ACEOF
2518     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2519     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2520     ac_status=$?
2521     grep -v '^ *+' conftest.er1 >conftest.err
2522     rm -f conftest.er1
2523     cat conftest.err >&5
2524     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525     (exit $ac_status); } >/dev/null; then
2526     if test -s conftest.err; then
2527     ac_cpp_err=$ac_c_preproc_warn_flag
2528     else
2529     ac_cpp_err=
2530     fi
2531     else
2532     ac_cpp_err=yes
2533     fi
2534     if test -z "$ac_cpp_err"; then
2535     # Broken: success on invalid input.
2536     continue
2537     else
2538     echo "$as_me: failed program was:" >&5
2539     sed 's/^/| /' conftest.$ac_ext >&5
2540    
2541     # Passes both tests.
2542     ac_preproc_ok=:
2543     break
2544     fi
2545     rm -f conftest.err conftest.$ac_ext
2546    
2547     done
2548     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2549     rm -f conftest.err conftest.$ac_ext
2550     if $ac_preproc_ok; then
2551     break
2552     fi
2553    
2554     done
2555     ac_cv_prog_CPP=$CPP
2556    
2557     fi
2558     CPP=$ac_cv_prog_CPP
2559     else
2560     ac_cv_prog_CPP=$CPP
2561     fi
2562     echo "$as_me:$LINENO: result: $CPP" >&5
2563     echo "${ECHO_T}$CPP" >&6
2564     ac_preproc_ok=false
2565     for ac_c_preproc_warn_flag in '' yes
2566     do
2567     # Use a header file that comes with gcc, so configuring glibc
2568     # with a fresh cross-compiler works.
2569     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2570     # <limits.h> exists even on freestanding compilers.
2571     # On the NeXT, cc -E runs the code through the compiler's parser,
2572     # not just through cpp. "Syntax error" is here to catch this case.
2573     cat >conftest.$ac_ext <<_ACEOF
2574     #line $LINENO "configure"
2575     /* confdefs.h. */
2576     _ACEOF
2577     cat confdefs.h >>conftest.$ac_ext
2578     cat >>conftest.$ac_ext <<_ACEOF
2579     /* end confdefs.h. */
2580     #ifdef __STDC__
2581     # include <limits.h>
2582     #else
2583     # include <assert.h>
2584     #endif
2585     Syntax error
2586     _ACEOF
2587     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2588     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589     ac_status=$?
2590     grep -v '^ *+' conftest.er1 >conftest.err
2591     rm -f conftest.er1
2592     cat conftest.err >&5
2593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594     (exit $ac_status); } >/dev/null; then
2595     if test -s conftest.err; then
2596     ac_cpp_err=$ac_c_preproc_warn_flag
2597     else
2598     ac_cpp_err=
2599     fi
2600     else
2601     ac_cpp_err=yes
2602     fi
2603     if test -z "$ac_cpp_err"; then
2604     :
2605     else
2606     echo "$as_me: failed program was:" >&5
2607     sed 's/^/| /' conftest.$ac_ext >&5
2608    
2609     # Broken: fails on valid input.
2610     continue
2611     fi
2612     rm -f conftest.err conftest.$ac_ext
2613    
2614     # OK, works on sane cases. Now check whether non-existent headers
2615     # can be detected and how.
2616     cat >conftest.$ac_ext <<_ACEOF
2617     #line $LINENO "configure"
2618     /* confdefs.h. */
2619     _ACEOF
2620     cat confdefs.h >>conftest.$ac_ext
2621     cat >>conftest.$ac_ext <<_ACEOF
2622     /* end confdefs.h. */
2623     #include <ac_nonexistent.h>
2624     _ACEOF
2625     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2626     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2627     ac_status=$?
2628     grep -v '^ *+' conftest.er1 >conftest.err
2629     rm -f conftest.er1
2630     cat conftest.err >&5
2631     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632     (exit $ac_status); } >/dev/null; then
2633     if test -s conftest.err; then
2634     ac_cpp_err=$ac_c_preproc_warn_flag
2635     else
2636     ac_cpp_err=
2637     fi
2638     else
2639     ac_cpp_err=yes
2640     fi
2641     if test -z "$ac_cpp_err"; then
2642     # Broken: success on invalid input.
2643     continue
2644     else
2645     echo "$as_me: failed program was:" >&5
2646     sed 's/^/| /' conftest.$ac_ext >&5
2647    
2648     # Passes both tests.
2649     ac_preproc_ok=:
2650     break
2651     fi
2652     rm -f conftest.err conftest.$ac_ext
2653    
2654     done
2655     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2656     rm -f conftest.err conftest.$ac_ext
2657     if $ac_preproc_ok; then
2658     :
2659     else
2660     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2661     See \`config.log' for more details." >&5
2662     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2663     See \`config.log' for more details." >&2;}
2664     { (exit 1); exit 1; }; }
2665     fi
2666    
2667     ac_ext=c
2668     ac_cpp='$CPP $CPPFLAGS'
2669     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672    
2673    
2674     # Checks for libraries.
2675     # FIXME: Replace `main' with a function in `-ldl':
2676    
2677    
2678     echo "$as_me:$LINENO: checking for main in -ldl" >&5
2679     echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
2680     if test "${ac_cv_lib_dl_main+set}" = set; then
2681     echo $ECHO_N "(cached) $ECHO_C" >&6
2682     else
2683     ac_check_lib_save_LIBS=$LIBS
2684     LIBS="-ldl $LIBS"
2685     cat >conftest.$ac_ext <<_ACEOF
2686     #line $LINENO "configure"
2687     /* confdefs.h. */
2688     _ACEOF
2689     cat confdefs.h >>conftest.$ac_ext
2690     cat >>conftest.$ac_ext <<_ACEOF
2691     /* end confdefs.h. */
2692    
2693    
2694     int
2695     main ()
2696     {
2697     main ();
2698     ;
2699     return 0;
2700     }
2701     _ACEOF
2702     rm -f conftest.$ac_objext conftest$ac_exeext
2703     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2704     (eval $ac_link) 2>&5
2705     ac_status=$?
2706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707     (exit $ac_status); } &&
2708     { ac_try='test -s conftest$ac_exeext'
2709     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710     (eval $ac_try) 2>&5
2711     ac_status=$?
2712     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713     (exit $ac_status); }; }; then
2714     ac_cv_lib_dl_main=yes
2715     else
2716     echo "$as_me: failed program was:" >&5
2717     sed 's/^/| /' conftest.$ac_ext >&5
2718    
2719     ac_cv_lib_dl_main=no
2720     fi
2721     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2722     LIBS=$ac_check_lib_save_LIBS
2723     fi
2724     echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
2725     echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
2726     if test $ac_cv_lib_dl_main = yes; then
2727     cat >>confdefs.h <<_ACEOF
2728     #define HAVE_LIBDL 1
2729     _ACEOF
2730    
2731     LIBS="-ldl $LIBS"
2732    
2733     fi
2734    
2735     # FIXME: Replace `main' with a function in `-llog4cplus':
2736    
2737     echo "$as_me:$LINENO: checking for main in -llog4cplus" >&5
2738     echo $ECHO_N "checking for main in -llog4cplus... $ECHO_C" >&6
2739     if test "${ac_cv_lib_log4cplus_main+set}" = set; then
2740     echo $ECHO_N "(cached) $ECHO_C" >&6
2741     else
2742     ac_check_lib_save_LIBS=$LIBS
2743     LIBS="-llog4cplus $LIBS"
2744     cat >conftest.$ac_ext <<_ACEOF
2745     #line $LINENO "configure"
2746     /* confdefs.h. */
2747     _ACEOF
2748     cat confdefs.h >>conftest.$ac_ext
2749     cat >>conftest.$ac_ext <<_ACEOF
2750     /* end confdefs.h. */
2751    
2752    
2753     int
2754     main ()
2755     {
2756     main ();
2757     ;
2758     return 0;
2759     }
2760     _ACEOF
2761     rm -f conftest.$ac_objext conftest$ac_exeext
2762     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2763     (eval $ac_link) 2>&5
2764     ac_status=$?
2765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766     (exit $ac_status); } &&
2767     { ac_try='test -s conftest$ac_exeext'
2768     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769     (eval $ac_try) 2>&5
2770     ac_status=$?
2771     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772     (exit $ac_status); }; }; then
2773     ac_cv_lib_log4cplus_main=yes
2774     else
2775     echo "$as_me: failed program was:" >&5
2776     sed 's/^/| /' conftest.$ac_ext >&5
2777    
2778     ac_cv_lib_log4cplus_main=no
2779     fi
2780     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2781     LIBS=$ac_check_lib_save_LIBS
2782     fi
2783     echo "$as_me:$LINENO: result: $ac_cv_lib_log4cplus_main" >&5
2784     echo "${ECHO_T}$ac_cv_lib_log4cplus_main" >&6
2785     if test $ac_cv_lib_log4cplus_main = yes; then
2786     cat >>confdefs.h <<_ACEOF
2787     #define HAVE_LIBLOG4CPLUS 1
2788     _ACEOF
2789    
2790     LIBS="-llog4cplus $LIBS"
2791    
2792     fi
2793    
2794     # FIXME: Replace `main' with a function in `-lpthread':
2795    
2796     echo "$as_me:$LINENO: checking for main in -lpthread" >&5
2797     echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
2798     if test "${ac_cv_lib_pthread_main+set}" = set; then
2799     echo $ECHO_N "(cached) $ECHO_C" >&6
2800     else
2801     ac_check_lib_save_LIBS=$LIBS
2802     LIBS="-lpthread $LIBS"
2803     cat >conftest.$ac_ext <<_ACEOF
2804     #line $LINENO "configure"
2805     /* confdefs.h. */
2806     _ACEOF
2807     cat confdefs.h >>conftest.$ac_ext
2808     cat >>conftest.$ac_ext <<_ACEOF
2809     /* end confdefs.h. */
2810    
2811    
2812     int
2813     main ()
2814     {
2815     main ();
2816     ;
2817     return 0;
2818     }
2819     _ACEOF
2820     rm -f conftest.$ac_objext conftest$ac_exeext
2821     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2822     (eval $ac_link) 2>&5
2823     ac_status=$?
2824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825     (exit $ac_status); } &&
2826     { ac_try='test -s conftest$ac_exeext'
2827     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828     (eval $ac_try) 2>&5
2829     ac_status=$?
2830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831     (exit $ac_status); }; }; then
2832     ac_cv_lib_pthread_main=yes
2833     else
2834     echo "$as_me: failed program was:" >&5
2835     sed 's/^/| /' conftest.$ac_ext >&5
2836    
2837     ac_cv_lib_pthread_main=no
2838     fi
2839     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2840     LIBS=$ac_check_lib_save_LIBS
2841     fi
2842     echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
2843     echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
2844     if test $ac_cv_lib_pthread_main = yes; then
2845     cat >>confdefs.h <<_ACEOF
2846     #define HAVE_LIBPTHREAD 1
2847     _ACEOF
2848    
2849     LIBS="-lpthread $LIBS"
2850    
2851     fi
2852    
2853 gcodispo 1.5 # FIXME: Replace `main' with a function in `-luuid':
2854 gcodispo 1.16 # AC_CHECK_LIB([uuid], [main])
2855 gcodispo 1.5 # FIXME: Replace `main' with a function in `-lc':
2856 gcodispo 1.1
2857 gcodispo 1.5 echo "$as_me:$LINENO: checking for main in -lc" >&5
2858     echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
2859     if test "${ac_cv_lib_c_main+set}" = set; then
2860 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2861     else
2862     ac_check_lib_save_LIBS=$LIBS
2863 gcodispo 1.5 LIBS="-lc $LIBS"
2864 gcodispo 1.1 cat >conftest.$ac_ext <<_ACEOF
2865     #line $LINENO "configure"
2866     /* confdefs.h. */
2867     _ACEOF
2868     cat confdefs.h >>conftest.$ac_ext
2869     cat >>conftest.$ac_ext <<_ACEOF
2870     /* end confdefs.h. */
2871    
2872    
2873     int
2874     main ()
2875     {
2876     main ();
2877     ;
2878     return 0;
2879     }
2880     _ACEOF
2881     rm -f conftest.$ac_objext conftest$ac_exeext
2882     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2883     (eval $ac_link) 2>&5
2884     ac_status=$?
2885     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886     (exit $ac_status); } &&
2887     { ac_try='test -s conftest$ac_exeext'
2888     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889     (eval $ac_try) 2>&5
2890     ac_status=$?
2891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892     (exit $ac_status); }; }; then
2893 gcodispo 1.5 ac_cv_lib_c_main=yes
2894 gcodispo 1.1 else
2895     echo "$as_me: failed program was:" >&5
2896     sed 's/^/| /' conftest.$ac_ext >&5
2897    
2898 gcodispo 1.5 ac_cv_lib_c_main=no
2899 gcodispo 1.1 fi
2900     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2901     LIBS=$ac_check_lib_save_LIBS
2902     fi
2903 gcodispo 1.5 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
2904     echo "${ECHO_T}$ac_cv_lib_c_main" >&6
2905     if test $ac_cv_lib_c_main = yes; then
2906 gcodispo 1.1 cat >>confdefs.h <<_ACEOF
2907 gcodispo 1.5 #define HAVE_LIBC 1
2908 gcodispo 1.1 _ACEOF
2909    
2910 gcodispo 1.5 LIBS="-lc $LIBS"
2911 gcodispo 1.1
2912     fi
2913    
2914 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lm':
2915    
2916     echo "$as_me:$LINENO: checking for main in -lm" >&5
2917     echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
2918     if test "${ac_cv_lib_m_main+set}" = set; then
2919     echo $ECHO_N "(cached) $ECHO_C" >&6
2920     else
2921     ac_check_lib_save_LIBS=$LIBS
2922     LIBS="-lm $LIBS"
2923     cat >conftest.$ac_ext <<_ACEOF
2924     #line $LINENO "configure"
2925     /* confdefs.h. */
2926     _ACEOF
2927     cat confdefs.h >>conftest.$ac_ext
2928     cat >>conftest.$ac_ext <<_ACEOF
2929     /* end confdefs.h. */
2930    
2931    
2932     int
2933     main ()
2934     {
2935     main ();
2936     ;
2937     return 0;
2938     }
2939     _ACEOF
2940     rm -f conftest.$ac_objext conftest$ac_exeext
2941     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942     (eval $ac_link) 2>&5
2943     ac_status=$?
2944     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945     (exit $ac_status); } &&
2946     { ac_try='test -s conftest$ac_exeext'
2947     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948     (eval $ac_try) 2>&5
2949     ac_status=$?
2950     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951     (exit $ac_status); }; }; then
2952     ac_cv_lib_m_main=yes
2953     else
2954     echo "$as_me: failed program was:" >&5
2955     sed 's/^/| /' conftest.$ac_ext >&5
2956    
2957     ac_cv_lib_m_main=no
2958     fi
2959     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2960     LIBS=$ac_check_lib_save_LIBS
2961     fi
2962     echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
2963     echo "${ECHO_T}$ac_cv_lib_m_main" >&6
2964     if test $ac_cv_lib_m_main = yes; then
2965     cat >>confdefs.h <<_ACEOF
2966     #define HAVE_LIBM 1
2967     _ACEOF
2968    
2969     LIBS="-lm $LIBS"
2970    
2971     fi
2972    
2973 gcodispo 1.1 # FIXME: Replace `main' with a function in `-lz':
2974 gcodispo 1.29 #AC_CHECK_LIB([z], [main], , AC_MSG_ERROR(Missing gzip compression library libz.a or libz.so needed by MySQL client library "mysqlclient"))
2975 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lxml2':
2976 gcodispo 1.25 #AC_CHECK_LIB([xml2], [main], , AC_MSG_ERROR(Missing xml2 library needed by XMLdoc))
2977     # FIXME: Replace `main' with a function in `-lxslt':
2978     #AC_CHECK_LIB([xslt], [main], , AC_MSG_ERROR(Missing xslt library needed by XMLdoc))
2979    
2980     #Checks for db backend location (macro defined in acinclude.m4)
2981 gcodispo 1.28 #AC_CHECK_XML2
2982     #AC_CHECK_XSLT
2983 gcodispo 1.4
2984 gcodispo 1.23 # checking command line options
2985    
2986 gcodispo 1.29 # Check whether --with-zlib_dir or --without-zlib_dir was given.
2987     if test "${with_zlib_dir+set}" = set; then
2988     withval="$with_zlib_dir"
2989     zlib_dir=${withval}
2990     fi;
2991    
2992     # Check whether --with-zlib_lib or --without-zlib_lib was given.
2993     if test "${with_zlib_lib+set}" = set; then
2994     withval="$with_zlib_lib"
2995     zlib_lib=${withval}
2996     fi;
2997    
2998     # Check whether --with-zlib_include or --without-zlib_include was given.
2999     if test "${with_zlib_include+set}" = set; then
3000     withval="$with_zlib_include"
3001     zlib_inc=${withval}
3002     fi;
3003     #
3004     # if a top dir is provided
3005     #
3006     if test -n "${zlib_dir}" ; then
3007     if test -d "${zlib_dir}/lib" ; then
3008     zlib_lib=`(cd ${zlib_dir}/lib; pwd)`
3009     else
3010     { { echo "$as_me:$LINENO: error: zlib lib dir not found. Please check zlib installation and path" >&5
3011     echo "$as_me: error: zlib lib dir not found. Please check zlib installation and path" >&2;}
3012     { (exit 1); exit 1; }; }
3013     fi
3014     if test -d "${zlib_dir}/include" ; then
3015     zlib_inc=`(cd ${zlib_dir}/include; pwd)`
3016     else
3017     { { echo "$as_me:$LINENO: error: zlib include dir not found. Please check zlib installation and path" >&5
3018     echo "$as_me: error: zlib include dir not found. Please check zlib installation and path" >&2;}
3019     { (exit 1); exit 1; }; }
3020     fi
3021     fi
3022    
3023     #
3024     # otherwise check for libs
3025     # starting from the one provided
3026     #
3027     if test -z "${zlib_lib}" ; then
3028     zlib_inc="/usr/include"
3029     zlib_lib="/usr/lib"
3030     elif test -d "${zlib_lib}" ; then
3031     test -f "${zlib_lib}/libz.so" ||
3032     { { echo "$as_me:$LINENO: error: ${zlib_lib}/libz.so not found." >&5
3033     echo "$as_me: error: ${zlib_lib}/libz.so not found." >&2;}
3034     { (exit 1); exit 1; }; }
3035     test -f "${zlib_lib}/libz.a" ||
3036     { { echo "$as_me:$LINENO: error: ${zlib_lib}/libz.a not found." >&5
3037     echo "$as_me: error: ${zlib_lib}/libz.a not found." >&2;}
3038     { (exit 1); exit 1; }; }
3039     zlib_lib=`cd ${zlib_lib}; pwd`
3040     echo "$as_me:$LINENO: result: checking for ${zlib_lib}/libz.so" >&5
3041     echo "${ECHO_T}checking for ${zlib_lib}/libz.so" >&6
3042     LIBS=" -L${zlib_lib}"
3043     else
3044     { { echo "$as_me:$LINENO: error: zlib directory not found: ${zlib_lib}" >&5
3045     echo "$as_me: error: zlib directory not found: ${zlib_lib}" >&2;}
3046     { (exit 1); exit 1; }; }
3047     fi
3048     #
3049    
3050     echo "$as_me:$LINENO: checking for main in -lz" >&5
3051     echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
3052     if test "${ac_cv_lib_z_main+set}" = set; then
3053     echo $ECHO_N "(cached) $ECHO_C" >&6
3054     else
3055     ac_check_lib_save_LIBS=$LIBS
3056     LIBS="-lz $LIBS"
3057     cat >conftest.$ac_ext <<_ACEOF
3058     #line $LINENO "configure"
3059     /* confdefs.h. */
3060     _ACEOF
3061     cat confdefs.h >>conftest.$ac_ext
3062     cat >>conftest.$ac_ext <<_ACEOF
3063     /* end confdefs.h. */
3064    
3065    
3066     int
3067     main ()
3068     {
3069     main ();
3070     ;
3071     return 0;
3072     }
3073     _ACEOF
3074     rm -f conftest.$ac_objext conftest$ac_exeext
3075     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3076     (eval $ac_link) 2>&5
3077     ac_status=$?
3078     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079     (exit $ac_status); } &&
3080     { ac_try='test -s conftest$ac_exeext'
3081     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082     (eval $ac_try) 2>&5
3083     ac_status=$?
3084     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085     (exit $ac_status); }; }; then
3086     ac_cv_lib_z_main=yes
3087     else
3088     echo "$as_me: failed program was:" >&5
3089     sed 's/^/| /' conftest.$ac_ext >&5
3090    
3091     ac_cv_lib_z_main=no
3092     fi
3093     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3094     LIBS=$ac_check_lib_save_LIBS
3095     fi
3096     echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
3097     echo "${ECHO_T}$ac_cv_lib_z_main" >&6
3098     if test $ac_cv_lib_z_main = yes; then
3099     cat >>confdefs.h <<_ACEOF
3100     #define HAVE_LIBZ 1
3101     _ACEOF
3102    
3103     LIBS="-lz $LIBS"
3104    
3105     else
3106    
3107     { { echo "$as_me:$LINENO: error: Library zlib not found in ${zlib_lib}" >&5
3108     echo "$as_me: error: Library zlib not found in ${zlib_lib}" >&2;}
3109     { (exit 1); exit 1; }; }
3110    
3111     fi
3112    
3113     #
3114     # now check if the include dir is there
3115     #
3116     if test -f "${zlib_inc}/zlib.h" ; then
3117     zlib_inc=`cd ${zlib_inc}; pwd`
3118     echo "$as_me:$LINENO: result: checking for ${zlib_inc}/zlib.h... yes" >&5
3119     echo "${ECHO_T}checking for ${zlib_inc}/zlib.h... yes" >&6
3120     else
3121     { echo "$as_me:$LINENO: WARNING: checking for ${zlib_inc}/zlib.h... not found!" >&5
3122     echo "$as_me: WARNING: checking for ${zlib_inc}/zlib.h... not found!" >&2;}
3123     { { echo "$as_me:$LINENO: error: Please specify a valid path for zlib.h" >&5
3124     echo "$as_me: error: Please specify a valid path for zlib.h" >&2;}
3125     { (exit 1); exit 1; }; }
3126     fi
3127     #
3128     # perform variable substitution
3129     #
3130     if test -n "${zlib_lib}" && test -n "${zlib_inc}" ; then
3131     zlib=zlib
3132    
3133    
3134     else
3135     { echo "$as_me:$LINENO: WARNING: \"Missing gzip compression library libz.a and libz.so needed by MySQL client library mysqlclient\"" >&5
3136     echo "$as_me: WARNING: \"Missing gzip compression library libz.a and libz.so needed by MySQL client library mysqlclient\"" >&2;}
3137     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3138     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3139     { (exit 1); exit 1; }; }
3140     fi
3141    
3142    
3143    
3144     # checking command line options
3145    
3146 gcodispo 1.23 # Check whether --with-uuid_dir or --without-uuid_dir was given.
3147     if test "${with_uuid_dir+set}" = set; then
3148     withval="$with_uuid_dir"
3149     uuid_dir=${withval}
3150     fi;
3151 gcodispo 1.16
3152 gcodispo 1.20 # Check whether --with-uuid_lib or --without-uuid_lib was given.
3153     if test "${with_uuid_lib+set}" = set; then
3154     withval="$with_uuid_lib"
3155     uuid_lib=${withval}
3156 gcodispo 1.16 fi;
3157 gcodispo 1.23
3158     # Check whether --with-uuid_include or --without-uuid_include was given.
3159     if test "${with_uuid_include+set}" = set; then
3160     withval="$with_uuid_include"
3161     uuid_inc=${withval}
3162     fi;
3163     #
3164     # if a top dir is provided
3165     #
3166     if test -n "${uuid_dir}" ; then
3167     if test -d "${uuid_dir}/lib" ; then
3168     uuid_lib=`(cd ${uuid_dir}/lib; pwd)`
3169     else
3170     { { echo "$as_me:$LINENO: error: uuid lib dir not found. Please check uuid installation and path" >&5
3171     echo "$as_me: error: uuid lib dir not found. Please check uuid installation and path" >&2;}
3172     { (exit 1); exit 1; }; }
3173     fi
3174     if test -d "${uuid_dir}/include" ; then
3175     uuid_inc=`(cd ${uuid_dir}/include; pwd)`
3176     else
3177     { { echo "$as_me:$LINENO: error: uuid include dir not found. Please check uuid installation and path" >&5
3178     echo "$as_me: error: uuid include dir not found. Please check uuid installation and path" >&2;}
3179     { (exit 1); exit 1; }; }
3180     fi
3181     fi
3182    
3183     #
3184     # otherwise check for libs
3185     # starting from the one provided
3186     #
3187 gcodispo 1.20 if test -z "${uuid_lib}" ; then
3188     uuid_inc="/usr/include/uuid/"
3189     uuid_lib="/usr/lib"
3190     elif test -d "${uuid_lib}" ; then
3191     test -f "${uuid_lib}/libuuid.so" ||
3192     { { echo "$as_me:$LINENO: error: ${uuid_lib}/libuuid.so not found." >&5
3193     echo "$as_me: error: ${uuid_lib}/libuuid.so not found." >&2;}
3194     { (exit 1); exit 1; }; }
3195     uuid_lib=`cd ${uuid_lib}; pwd`
3196     echo "$as_me:$LINENO: result: checking for ${uuid_lib}/libuuid.so" >&5
3197     echo "${ECHO_T}checking for ${uuid_lib}/libuuid.so" >&6
3198     LIBS=" -L${uuid_lib}"
3199     else
3200     { { echo "$as_me:$LINENO: error: uuid-lib directory not found: ${uuid_lib}" >&5
3201     echo "$as_me: error: uuid-lib directory not found: ${uuid_lib}" >&2;}
3202     { (exit 1); exit 1; }; }
3203     fi
3204     #
3205 gcodispo 1.16
3206     echo "$as_me:$LINENO: checking for main in -luuid" >&5
3207     echo $ECHO_N "checking for main in -luuid... $ECHO_C" >&6
3208     if test "${ac_cv_lib_uuid_main+set}" = set; then
3209     echo $ECHO_N "(cached) $ECHO_C" >&6
3210     else
3211     ac_check_lib_save_LIBS=$LIBS
3212     LIBS="-luuid $LIBS"
3213     cat >conftest.$ac_ext <<_ACEOF
3214     #line $LINENO "configure"
3215     /* confdefs.h. */
3216     _ACEOF
3217     cat confdefs.h >>conftest.$ac_ext
3218     cat >>conftest.$ac_ext <<_ACEOF
3219     /* end confdefs.h. */
3220    
3221    
3222     int
3223     main ()
3224     {
3225     main ();
3226     ;
3227     return 0;
3228     }
3229     _ACEOF
3230     rm -f conftest.$ac_objext conftest$ac_exeext
3231     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232     (eval $ac_link) 2>&5
3233     ac_status=$?
3234     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235     (exit $ac_status); } &&
3236     { ac_try='test -s conftest$ac_exeext'
3237     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238     (eval $ac_try) 2>&5
3239     ac_status=$?
3240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241     (exit $ac_status); }; }; then
3242     ac_cv_lib_uuid_main=yes
3243     else
3244     echo "$as_me: failed program was:" >&5
3245     sed 's/^/| /' conftest.$ac_ext >&5
3246    
3247     ac_cv_lib_uuid_main=no
3248     fi
3249     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3250     LIBS=$ac_check_lib_save_LIBS
3251     fi
3252     echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_main" >&5
3253     echo "${ECHO_T}$ac_cv_lib_uuid_main" >&6
3254     if test $ac_cv_lib_uuid_main = yes; then
3255     cat >>confdefs.h <<_ACEOF
3256     #define HAVE_LIBUUID 1
3257     _ACEOF
3258    
3259     LIBS="-luuid $LIBS"
3260    
3261     else
3262    
3263 gcodispo 1.20 { { echo "$as_me:$LINENO: error: Library uuid not found in ${uuid_lib}" >&5
3264     echo "$as_me: error: Library uuid not found in ${uuid_lib}" >&2;}
3265 gcodispo 1.16 { (exit 1); exit 1; }; }
3266    
3267     fi
3268    
3269     #
3270 gcodispo 1.23 # now check if the include dir is there
3271     #
3272 gcodispo 1.20 if test -f "${uuid_inc}/uuid.h" ; then
3273     uuid_inc=`cd ${uuid_inc}; pwd`
3274     echo "$as_me:$LINENO: result: checking for ${uuid_inc}/uuid.h... yes" >&5
3275     echo "${ECHO_T}checking for ${uuid_inc}/uuid.h... yes" >&6
3276 gcodispo 1.16 else
3277 gcodispo 1.20 { echo "$as_me:$LINENO: WARNING: checking for ${uuid_inc}/uuid.h... not found!" >&5
3278     echo "$as_me: WARNING: checking for ${uuid_inc}/uuid.h... not found!" >&2;}
3279     { { echo "$as_me:$LINENO: error: Please specify a valid path for uuid.h" >&5
3280     echo "$as_me: error: Please specify a valid path for uuid.h" >&2;}
3281 gcodispo 1.16 { (exit 1); exit 1; }; }
3282     fi
3283 gcodispo 1.20 #
3284     # perform variable substitution
3285     #
3286     if test -n "${uuid_lib}" && test -n "${uuid_inc}" ; then
3287     uuid=uuid
3288    
3289    
3290     else
3291     { echo "$as_me:$LINENO: WARNING: \"Can't find uuid\"" >&5
3292     echo "$as_me: WARNING: \"Can't find uuid\"" >&2;}
3293     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3294     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3295     { (exit 1); exit 1; }; }
3296     fi
3297 gcodispo 1.16
3298    
3299    
3300     for p in `python -V 2>/dev/stdout | cut -d ' ' -f 2` ; do
3301     case "$p" in
3302     2.*.* | 2.* )
3303     echo "$as_me:$LINENO: result: found python version: \"$p\"" >&5
3304     echo "${ECHO_T}found python version: \"$p\"" >&6
3305     MAKE_PYTHON="\$(MAKE) -C BossPython"
3306     MAKE_PYTHON_CLEAN="\$(MAKE) -C BossPython clean"
3307    
3308    
3309     break
3310     ;;
3311     * )
3312     break
3313     ;;
3314     esac
3315     done
3316     if test x"${MAKE_PYTHON}" = x ; then
3317     { echo "$as_me:$LINENO: WARNING: \"Not found: python 2.*\"" >&5
3318     echo "$as_me: WARNING: \"Not found: python 2.*\"" >&2;}
3319     fi
3320     for p in `swig -version 2>/dev/stdout | cut -d ' ' -f 3` ; do
3321     case "$p" in
3322     1.*.* | 1.* )
3323     echo "$as_me:$LINENO: result: found swig version: \"$p\"" >&5
3324     echo "${ECHO_T}found swig version: \"$p\"" >&6
3325     swig_generate=generate
3326    
3327     break
3328     ;;
3329     * )
3330     break
3331     ;;
3332     esac
3333     done
3334     if test x"${swig_generate}" = x ; then
3335     { echo "$as_me:$LINENO: WARNING: \"Not found: swig 1.*\"" >&5
3336     echo "$as_me: WARNING: \"Not found: swig 1.*\"" >&2;}
3337     fi
3338    
3339    
3340    
3341     echo "$as_me:$LINENO: result: checking for mysql in:" >&5
3342     echo "${ECHO_T}checking for mysql in:" >&6
3343     # checking command line options
3344    
3345     # Check whether --with-mysql_dir or --without-mysql_dir was given.
3346     if test "${with_mysql_dir+set}" = set; then
3347     withval="$with_mysql_dir"
3348     mysql_dir=${withval}
3349     fi;
3350 gcodispo 1.7
3351 gcodispo 1.16 # Check whether --with-mysql_lib or --without-mysql_lib was given.
3352     if test "${with_mysql_lib+set}" = set; then
3353     withval="$with_mysql_lib"
3354     mysql_lib=${withval}
3355     fi;
3356    
3357     # Check whether --with-mysql_include or --without-mysql_include was given.
3358     if test "${with_mysql_include+set}" = set; then
3359     withval="$with_mysql_include"
3360     mysql_inc=${withval}
3361     fi;
3362     #
3363     # if a top dir is provided
3364     #
3365     if test -n "${mysql_dir}" ; then
3366     if test -d "${mysql_dir}/lib/mysql" ; then
3367     mysql_lib=`(cd ${mysql_dir}/lib/mysql; pwd)`
3368     elif test -d "${mysql_dir}/lib" ; then
3369     mysql_lib=`(cd ${mysql_dir}/lib; pwd)`
3370     else
3371     { { echo "$as_me:$LINENO: error: mysql lib dir not found. Please check mysql installation and path" >&5
3372     echo "$as_me: error: mysql lib dir not found. Please check mysql installation and path" >&2;}
3373     { (exit 1); exit 1; }; }
3374     fi
3375     if test -d "${mysql_dir}/include/mysql" ; then
3376     mysql_inc=`(cd ${mysql_dir}/include/mysql; pwd)`
3377     elif test -d "${mysql_dir}/include" ; then
3378     mysql_inc=`(cd ${mysql_dir}/include; pwd)`
3379     else
3380     { { echo "$as_me:$LINENO: error: mysql lib dir not found. Please check mysql installation and path" >&5
3381     echo "$as_me: error: mysql lib dir not found. Please check mysql installation and path" >&2;}
3382     { (exit 1); exit 1; }; }
3383     fi
3384     mysql_lib_sh=${mysql_lib}
3385     LIBS=" -L${mysql_lib}"
3386     fi
3387     #
3388     # otherwise check for libs
3389     # starting from the one provided
3390     #
3391     if test -n "${mysql_lib}" ; then
3392     mysql_lib=`(cd ${mysql_lib} 2>/dev/null; pwd)`
3393     LIBS=" -L${mysql_lib}"
3394     mysql_lib_sh=${mysql_lib}
3395     #
3396     # if not provided look in the current dir
3397     #
3398     else
3399 gcodispo 1.7 if test -d "$srcdir/mysql" ; then
3400 gcodispo 1.18 mysql_ld_path="$srcdir/mysql/lib"
3401 gcodispo 1.26 mysql_inc="\$(BOSS_ROOT)/mysql/include"
3402     mysql_lib="\$(BOSS_ROOT)/mysql/lib"
3403     mysql_lib_sh="\\\$BOSS_ROOT/mysql/lib"
3404 gcodispo 1.18 LIBS=" -L$mysql_ld_path"
3405 gcodispo 1.5 if test -f "$srcdir/mysql/Makefile.in" ; then
3406 gcodispo 1.7 MAKE_MYSQL_DIR="$srcdir/mysql/src/Makefile"
3407 gcodispo 1.5 fi
3408 gcodispo 1.7 if test -f "$srcdir/mysql/Makefile" ; then
3409     MAKE_MYSQL="\$(MAKE) -C mysql"
3410     MAKE_MYSQL_CLEAN="\$(MAKE) -C mysql clean"
3411 gcodispo 1.1
3412    
3413 gcodispo 1.7 fi
3414 gcodispo 1.5 fi
3415 gcodispo 1.16 #
3416     # then in ${VO_CMS_SW_DIR}/lcg/external/mysql
3417     #
3418     if test x"${mysql_lib}" = x ; then
3419 gcodispo 1.5 for i in \
3420 gcodispo 1.14 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/mysql/*4.*^0.*/${SYSTEM} 2>/dev/null` \
3421     `ls -dr ${VO_CMS_SW_DIR}/lcg/external/mysql/*5.*.*/${SYSTEM} 2>/dev/null` \
3422     `ls -dr /afs/cern.ch/cms/external/lcg/external/mysql/*4.*^0.*/${SYSTEM} 2>/dev/null` \
3423     `ls -dr /afs/cern.ch/cms/external/lcg/external/mysql/*5.*.*/${SYSTEM} 2>/dev/null`
3424 gcodispo 1.5 do
3425 gcodispo 1.7 if test -f "$i/lib/libmysqlclient.so" ; then
3426 gcodispo 1.8 mysql_lib=`(cd $i/lib; pwd)`
3427 gcodispo 1.11 mysql_lib_sh=${mysql_lib}
3428 gcodispo 1.8 mysql_inc=`(cd $i/include; pwd)`
3429 gcodispo 1.11 LIBS=" -L${mysql_lib}"
3430 gcodispo 1.5 break
3431     fi
3432     done
3433     fi
3434 gcodispo 1.16 #
3435     # at the end check in a few common install locations
3436     #
3437     if test x"${mysql_lib}" = x ; then
3438 gcodispo 1.5 for i in \
3439     `ls -d ${libdir} 2>/dev/null` \
3440 gcodispo 1.8 `ls -d /usr/lib/mysql/libmysqlclient.a 2>/dev/null` \
3441     `ls -d /usr/lib/libmysqlclient.a 2>/dev/null` \
3442     `ls -d /usr/local/lib/mysql/libmysqlclient.a 2>/dev/null` \
3443     `ls -d /usr/local/lib/libmysqlclient.a 2>/dev/null` \
3444     `ls -d /usr/contrib/lib/mysql/libmysqlclient.a 2>/dev/null` \
3445     `ls -d /usr/contrib/lib/libmysqlclient.a 2>/dev/null`
3446 gcodispo 1.5 do
3447 gcodispo 1.8 if test -f "$i" ; then
3448     mysql_lib=`dirname $i`
3449 gcodispo 1.11 mysql_lib_sh=${mysql_lib}
3450     LIBS=" -L${mysql_lib}"
3451 gcodispo 1.8 # echo $mysql_inc
3452 gcodispo 1.5 break
3453     fi
3454     done
3455 gcodispo 1.8 if test x"${mysql_lib}" != x; then
3456     for i in \
3457     `ls -d ${includedir} 2>/dev/null` \
3458     `ls -d /usr/include/mysql/mysql.h 2>/dev/null` \
3459     `ls -d /usr/include/mysql.h 2>/dev/null` \
3460     `ls -d /usr/local/include/mysql/mysql.h 2>/dev/null` \
3461     `ls -d /usr/local/include/mysql.h 2>/dev/null` \
3462     `ls -d /usr/contrib/include/mysql/mysql.h 2>/dev/null` \
3463     `ls -d /usr/contrib/include/mysql.h 2>/dev/null`
3464     do
3465     if test -f "$i" ; then
3466     mysql_inc=`dirname $i`
3467     # echo $mysql_inc
3468     break
3469     fi
3470     done
3471     fi
3472 gcodispo 1.5 fi
3473 gcodispo 1.16 fi
3474     #
3475 gcodispo 1.19 # now check if the include dir is there
3476     #
3477     if test -n "${mysql_inc}" ; then
3478     test -z "${mysql_ld_path}" && mysql_inc=`(cd ${mysql_inc}; pwd)`
3479     else
3480     { { echo "$as_me:$LINENO: error: mysql include dir not found. Please check mysql installation and path" >&5
3481     echo "$as_me: error: mysql include dir not found. Please check mysql installation and path" >&2;}
3482     { (exit 1); exit 1; }; }
3483     fi
3484     echo "$as_me:$LINENO: result: -> $mysql_inc" >&5
3485     echo "${ECHO_T}-> $mysql_inc" >&6
3486     #
3487     #
3488 gcodispo 1.16 # check if the library is actually there
3489     #
3490     echo "$as_me:$LINENO: result: -> $mysql_lib" >&5
3491 gcodispo 1.8 echo "${ECHO_T}-> $mysql_lib" >&6
3492 gcodispo 1.16 if test x"${MAKE_MYSQL}" = x ; then
3493     echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
3494 gcodispo 1.7 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
3495     if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
3496     echo $ECHO_N "(cached) $ECHO_C" >&6
3497     else
3498     ac_check_lib_save_LIBS=$LIBS
3499     LIBS="-lmysqlclient $LIBS"
3500     cat >conftest.$ac_ext <<_ACEOF
3501     #line $LINENO "configure"
3502     /* confdefs.h. */
3503     _ACEOF
3504     cat confdefs.h >>conftest.$ac_ext
3505     cat >>conftest.$ac_ext <<_ACEOF
3506     /* end confdefs.h. */
3507    
3508 gcodispo 1.5
3509 gcodispo 1.7 int
3510     main ()
3511     {
3512     main ();
3513     ;
3514     return 0;
3515     }
3516     _ACEOF
3517     rm -f conftest.$ac_objext conftest$ac_exeext
3518     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519     (eval $ac_link) 2>&5
3520     ac_status=$?
3521     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522     (exit $ac_status); } &&
3523     { ac_try='test -s conftest$ac_exeext'
3524     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525     (eval $ac_try) 2>&5
3526     ac_status=$?
3527     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528     (exit $ac_status); }; }; then
3529     ac_cv_lib_mysqlclient_main=yes
3530     else
3531     echo "$as_me: failed program was:" >&5
3532     sed 's/^/| /' conftest.$ac_ext >&5
3533 gcodispo 1.5
3534 gcodispo 1.7 ac_cv_lib_mysqlclient_main=no
3535     fi
3536     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3537     LIBS=$ac_check_lib_save_LIBS
3538 gcodispo 1.5 fi
3539 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
3540     echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
3541     if test $ac_cv_lib_mysqlclient_main = yes; then
3542 gcodispo 1.5
3543 gcodispo 1.19 test -z "${mysql_ld_path}" && mysql_ld_path="${mysql_lib}"
3544 gcodispo 1.18 for p in `ldd ${mysql_ld_path}/libmysqlclient.so`; do
3545 gcodispo 1.16 case $p in
3546     *ssl* )
3547     ssl="yes"
3548     ;;
3549     * )
3550     ;;
3551     esac
3552     done
3553     if test "${ssl}" = "yes" ; then
3554     echo "$as_me:$LINENO: result: -> found ssl dependency in mysl" >&5
3555 gcodispo 1.7 echo "${ECHO_T}-> found ssl dependency in mysl" >&6
3556 gcodispo 1.5
3557 gcodispo 1.7 echo "$as_me:$LINENO: checking for main in -lssl" >&5
3558     echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
3559     if test "${ac_cv_lib_ssl_main+set}" = set; then
3560 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3561     else
3562     ac_check_lib_save_LIBS=$LIBS
3563 gcodispo 1.7 LIBS="-lssl $LIBS"
3564 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3565     #line $LINENO "configure"
3566     /* confdefs.h. */
3567     _ACEOF
3568     cat confdefs.h >>conftest.$ac_ext
3569     cat >>conftest.$ac_ext <<_ACEOF
3570     /* end confdefs.h. */
3571    
3572    
3573     int
3574     main ()
3575     {
3576     main ();
3577     ;
3578     return 0;
3579     }
3580     _ACEOF
3581     rm -f conftest.$ac_objext conftest$ac_exeext
3582     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583     (eval $ac_link) 2>&5
3584     ac_status=$?
3585     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586     (exit $ac_status); } &&
3587     { ac_try='test -s conftest$ac_exeext'
3588     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589     (eval $ac_try) 2>&5
3590     ac_status=$?
3591     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592     (exit $ac_status); }; }; then
3593 gcodispo 1.7 ac_cv_lib_ssl_main=yes
3594 gcodispo 1.5 else
3595     echo "$as_me: failed program was:" >&5
3596     sed 's/^/| /' conftest.$ac_ext >&5
3597    
3598 gcodispo 1.7 ac_cv_lib_ssl_main=no
3599 gcodispo 1.5 fi
3600     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3601     LIBS=$ac_check_lib_save_LIBS
3602     fi
3603 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
3604     echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
3605     if test $ac_cv_lib_ssl_main = yes; then
3606 gcodispo 1.5 cat >>confdefs.h <<_ACEOF
3607 gcodispo 1.7 #define HAVE_LIBSSL 1
3608 gcodispo 1.5 _ACEOF
3609    
3610 gcodispo 1.7 LIBS="-lssl $LIBS"
3611    
3612     else
3613 gcodispo 1.8 { { echo "$as_me:$LINENO: error: Missing ssl library needed by mysql" >&5
3614     echo "$as_me: error: Missing ssl library needed by mysql" >&2;}
3615 gcodispo 1.7 { (exit 1); exit 1; }; }
3616     fi
3617    
3618 gcodispo 1.16 ssl_lib="-lssl"
3619 gcodispo 1.8 # if test -f "/usr/lib/libssl.a" ; then
3620     # ssl_lib="/usr/lib/libssl.a"
3621     # else
3622     # AC_MSG_WARN(found only dynamic library for ssl)
3623     # AC_MSG_WARN(your mysql dbUpdator may not work always)
3624     # echo -e "\tPRESS ANY KEY TO CONTINUE"
3625     # read -n 1 junk
3626     # ssl_lib="-lssl"
3627     # fi
3628 gcodispo 1.7
3629 gcodispo 1.16 fi
3630 gcodispo 1.5
3631     else
3632    
3633 gcodispo 1.16 { { echo "$as_me:$LINENO: error: mysqlclient library not found. Please check mysql installation and path" >&5
3634 gcodispo 1.7 echo "$as_me: error: mysqlclient library not found. Please check mysql installation and path" >&2;}
3635 gcodispo 1.5 { (exit 1); exit 1; }; }
3636 gcodispo 1.7
3637 gcodispo 1.5 fi
3638    
3639 gcodispo 1.16 fi
3640     # perform variable substitution
3641     #
3642     if test -n "${mysql_lib}" && test -n "${mysql_inc}" ; then
3643     mysql=mysql
3644    
3645    
3646    
3647    
3648     else
3649     echo "${mysql_lib}"
3650     { echo "$as_me:$LINENO: WARNING: \"Can't find mysql\"" >&5
3651     echo "$as_me: WARNING: \"Can't find mysql\"" >&2;}
3652     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3653     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3654     { (exit 1); exit 1; }; }
3655     fi
3656    
3657 gcodispo 1.1
3658 gcodispo 1.7
3659 gcodispo 1.16 echo "$as_me:$LINENO: result: checking for sqlite in:" >&5
3660     echo "${ECHO_T}checking for sqlite in:" >&6
3661     # checking command line options
3662    
3663     # Check whether --with-sqlite_dir or --without-sqlite_dir was given.
3664     if test "${with_sqlite_dir+set}" = set; then
3665     withval="$with_sqlite_dir"
3666     sqlite_dir=${withval}
3667     fi;
3668 gcodispo 1.7
3669 gcodispo 1.16 # Check whether --with-sqlite_lib or --without-sqlite_lib was given.
3670     if test "${with_sqlite_lib+set}" = set; then
3671     withval="$with_sqlite_lib"
3672     sqlite_lib=${withval}
3673     fi;
3674 gcodispo 1.1
3675 gcodispo 1.16 # Check whether --with-sqlite_include or --without-sqlite_include was given.
3676     if test "${with_sqlite_include+set}" = set; then
3677     withval="$with_sqlite_include"
3678     sqlite_inc=${withval}
3679     fi;
3680     #
3681     # if a top dir is provided
3682     #
3683     if test -n "${sqlite_dir}" ; then
3684     if test -d "${sqlite_dir}/lib" ; then
3685     sqlite_lib=`(cd ${sqlite_dir}/lib; pwd)`
3686     sqlite_lib_sh=${sqlite_lib}
3687     else
3688     { { echo "$as_me:$LINENO: error: sqlite lib dir not found. Please check sqlite installation and path" >&5
3689     echo "$as_me: error: sqlite lib dir not found. Please check sqlite installation and path" >&2;}
3690     { (exit 1); exit 1; }; }
3691     fi
3692     if test -d "${sqlite_dir}/include" ; then
3693     sqlite_inc=`(cd ${sqlite_dir}/include; pwd)`
3694     else
3695     { { echo "$as_me:$LINENO: error: sqlite include dir not found. Please check sqlite installation and path" >&5
3696     echo "$as_me: error: sqlite include dir not found. Please check sqlite installation and path" >&2;}
3697     { (exit 1); exit 1; }; }
3698     fi
3699     # test -d "${sqlite_dir}/lib" && sqlite_lib=`(cd ${sqlite_dir}/lib; pwd)`
3700     # test -d "${sqlite_dir}/include" && sqlite_inc=`(cd ${sqlite_dir}/include; pwd)`
3701     LIBS=" -L${sqlite_lib}"
3702     fi
3703     #
3704     # otherwise check for libs
3705     # starting from the one provided
3706     #
3707     if test -n "${sqlite_lib}" ; then
3708     test -d "${sqlite_lib}" && sqlite_lib=`(cd ${sqlite_lib}; pwd)`
3709     LIBS=" -L${sqlite_lib}"
3710     sqlite_lib_sh=${sqlite_lib}
3711     #
3712     # if not provided look in the current dir
3713     #
3714     else
3715 gcodispo 1.7 if test -d "$srcdir/sqlite" ; then
3716 gcodispo 1.19 sqlite_ld_path="$srcdir/sqlite/lib"
3717 gcodispo 1.26 sqlite_inc="\$(BOSS_ROOT)/sqlite/include"
3718     sqlite_lib="\$(BOSS_ROOT)/sqlite/lib"
3719     sqlite_lib_sh="\\\$BOSS_ROOT/sqlite/lib"
3720 gcodispo 1.19 LIBS=" -L$sqlite_ld_path"
3721 gcodispo 1.7 if test -f "$srcdir/sqlite/src/Makefile.in" ; then
3722     MAKE_SQLITE_DIR="$srcdir/sqlite/src/Makefile"
3723 gcodispo 1.5 fi
3724 gcodispo 1.7 if test -f "$srcdir/sqlite/Makefile" ; then
3725     MAKE_SQLITE="\$(MAKE) -C sqlite"
3726     MAKE_SQLITE_CLEAN="\$(MAKE) -C sqlite clean"
3727 gcodispo 1.1
3728    
3729 gcodispo 1.7 fi
3730 gcodispo 1.5 fi
3731 gcodispo 1.16 #
3732     # then in ${VO_CMS_SW_DIR}/lcg/external/sqlite
3733     #
3734     if test x"${sqlite_lib}" = x ; then
3735 gcodispo 1.5 for i in \
3736 gcodispo 1.14 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/sqlite/*3.[^0].**/${SYSTEM} 2>/dev/null` \
3737     `ls -dr /afs/cern.ch/cms/external/lcg/external/sqlite/*3.[^0].**/${SYSTEM} 2>/dev/null`
3738 gcodispo 1.5 do
3739 gcodispo 1.7 if test -f "$i/lib/libsqlite3.a" ; then
3740 gcodispo 1.8 sqlite_lib=`(cd $i/lib; pwd)`
3741 gcodispo 1.11 sqlite_lib_sh=${sqlite_lib}
3742 gcodispo 1.8 sqlite_inc=`(cd $i/include; pwd)`
3743 gcodispo 1.11 LIBS=" -L${sqlite_lib}"
3744 gcodispo 1.5 break
3745     fi
3746     done
3747     fi
3748 gcodispo 1.16 #
3749     # at the end check in a few common install locations
3750     #
3751     if test x"${sqlite_lib}" = x ; then
3752 gcodispo 1.5 for i in \
3753     `ls -d ${libdir} 2>/dev/null` \
3754 gcodispo 1.8 `ls -d /usr/lib/sqlite/libsqlite3.a 2>/dev/null` \
3755     `ls -d /usr/lib/libsqlite3.a 2>/dev/null` \
3756     `ls -d /usr/local/lib/sqlite/libsqlite3.a 2>/dev/null` \
3757     `ls -d /usr/local/lib/libsqlite3.a 2>/dev/null` \
3758     `ls -d /usr/contrib/lib/sqlite/libsqlite3.a 2>/dev/null` \
3759     `ls -d /usr/contrib/lib/libsqlite3.a 2>/dev/null`
3760 gcodispo 1.5 do
3761 gcodispo 1.8 if test -f "$i" ; then
3762     sqlite_lib=`dirname $i`
3763 gcodispo 1.11 sqlite_lib_sh=${sqlite_lib}
3764     LIBS=" -L${sqlite_lib}"
3765 gcodispo 1.5 break
3766     fi
3767     done
3768 gcodispo 1.8 if test x"${sqlite_lib}" != x; then
3769     for i in \
3770     `ls -d ${includedir} 2>/dev/null` \
3771     `ls -d /usr/include/sqlite/sqlite3.h 2>/dev/null` \
3772     `ls -d /usr/include/sqlite3.h 2>/dev/null` \
3773     `ls -d /usr/local/include/sqlite/sqlite3.h 2>/dev/null` \
3774     `ls -d /usr/local/include/sqlite3.h 2>/dev/null` \
3775     `ls -d /usr/contrib/include/sqlite/sqlite3.h 2>/dev/null` \
3776     `ls -d /usr/contrib/include/sqlite3.h 2>/dev/null`
3777     do
3778     if test -f "$i" ; then
3779     sqlite_inc=`dirname $i`
3780     break
3781     fi
3782     done
3783     fi
3784 gcodispo 1.5 fi
3785 gcodispo 1.16 fi
3786     #
3787 gcodispo 1.19 # now check if the include dir is there
3788     #
3789     if test -n "${sqlite_inc}" ; then
3790     test -z "${sqlite_ld_path}" && sqlite_inc=`(cd ${sqlite_inc}; pwd)`
3791     else
3792     { { echo "$as_me:$LINENO: error: sqlite include dir not found. Please check sqlite installation and path" >&5
3793     echo "$as_me: error: sqlite include dir not found. Please check sqlite installation and path" >&2;}
3794     { (exit 1); exit 1; }; }
3795     fi
3796     echo "$as_me:$LINENO: result: -> $sqlite_inc" >&5
3797     echo "${ECHO_T}-> $sqlite_inc" >&6
3798     #
3799 gcodispo 1.16 # check if the library is actually there
3800     #
3801     echo "$as_me:$LINENO: result: -> $sqlite_lib" >&5
3802     echo "${ECHO_T}-> $sqlite_lib" >&6
3803     if test x"${MAKE_SQLITE}" = x ; then
3804 gcodispo 1.7
3805     echo "$as_me:$LINENO: checking for main in -lsqlite3" >&5
3806     echo $ECHO_N "checking for main in -lsqlite3... $ECHO_C" >&6
3807     if test "${ac_cv_lib_sqlite3_main+set}" = set; then
3808 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3809     else
3810     ac_check_lib_save_LIBS=$LIBS
3811 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3812 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3813     #line $LINENO "configure"
3814     /* confdefs.h. */
3815     _ACEOF
3816     cat confdefs.h >>conftest.$ac_ext
3817     cat >>conftest.$ac_ext <<_ACEOF
3818     /* end confdefs.h. */
3819    
3820    
3821     int
3822     main ()
3823     {
3824     main ();
3825     ;
3826     return 0;
3827     }
3828     _ACEOF
3829     rm -f conftest.$ac_objext conftest$ac_exeext
3830     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831     (eval $ac_link) 2>&5
3832     ac_status=$?
3833     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834     (exit $ac_status); } &&
3835     { ac_try='test -s conftest$ac_exeext'
3836     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837     (eval $ac_try) 2>&5
3838     ac_status=$?
3839     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840     (exit $ac_status); }; }; then
3841 gcodispo 1.7 ac_cv_lib_sqlite3_main=yes
3842 gcodispo 1.5 else
3843     echo "$as_me: failed program was:" >&5
3844     sed 's/^/| /' conftest.$ac_ext >&5
3845    
3846 gcodispo 1.7 ac_cv_lib_sqlite3_main=no
3847 gcodispo 1.5 fi
3848     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3849     LIBS=$ac_check_lib_save_LIBS
3850     fi
3851 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_main" >&5
3852     echo "${ECHO_T}$ac_cv_lib_sqlite3_main" >&6
3853     if test $ac_cv_lib_sqlite3_main = yes; then
3854     cat >>confdefs.h <<_ACEOF
3855     #define HAVE_LIBSQLITE3 1
3856     _ACEOF
3857 gcodispo 1.5
3858 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3859 gcodispo 1.5
3860     else
3861    
3862 gcodispo 1.16 { { echo "$as_me:$LINENO: error: sqlite3 library not found. Please check sqlite installation and path" >&5
3863 gcodispo 1.7 echo "$as_me: error: sqlite3 library not found. Please check sqlite installation and path" >&2;}
3864 gcodispo 1.5 { (exit 1); exit 1; }; }
3865 gcodispo 1.7 fi
3866 gcodispo 1.1
3867 gcodispo 1.16 fi
3868     #
3869     # perform variable substitution
3870     #
3871     if test -n "${sqlite_lib}" && test -n "${sqlite_inc}" ; then
3872     sqlite=sqlite
3873 gcodispo 1.8
3874    
3875    
3876    
3877 gcodispo 1.16 else
3878     { echo "$as_me:$LINENO: WARNING: \"Can't find sqlite\"" >&5
3879 gcodispo 1.8 echo "$as_me: WARNING: \"Can't find sqlite\"" >&2;}
3880 gcodispo 1.16 { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3881 gcodispo 1.8 echo "$as_me: error: Please install it and rerun configuration" >&2;}
3882     { (exit 1); exit 1; }; }
3883 gcodispo 1.16 fi
3884 gcodispo 1.8
3885    
3886 gcodispo 1.16 echo "$as_me:$LINENO: result: checking for MonaLisa in:" >&5
3887     echo "${ECHO_T}checking for MonaLisa in:" >&6
3888     # checking command line options
3889    
3890     # Check whether --with-monalisa_dir or --without-monalisa_dir was given.
3891     if test "${with_monalisa_dir+set}" = set; then
3892     withval="$with_monalisa_dir"
3893     monalisa_dir=${withval}
3894     fi;
3895 gcodispo 1.8
3896 gcodispo 1.16 # Check whether --with-monalisa_lib or --without-monalisa_lib was given.
3897     if test "${with_monalisa_lib+set}" = set; then
3898     withval="$with_monalisa_lib"
3899     monalisa_lib=${withval}
3900     fi;
3901 gcodispo 1.8
3902 gcodispo 1.16 # Check whether --with-monalisa_include or --without-monalisa_include was given.
3903     if test "${with_monalisa_include+set}" = set; then
3904     withval="$with_monalisa_include"
3905     monalisa_inc=${withval}
3906     fi;
3907     #
3908     # if a top dir is provided
3909     #
3910     if test -n "${monalisa_dir}" ; then
3911     if test -d "${monalisa_dir}/lib" ; then
3912     monalisa_lib=`(cd ${monalisa_dir}/lib; pwd)`
3913     else
3914     { { echo "$as_me:$LINENO: error: monalisa lib dir not found. Please check monalisa installation and path" >&5
3915     echo "$as_me: error: monalisa lib dir not found. Please check monalisa installation and path" >&2;}
3916     { (exit 1); exit 1; }; }
3917     fi
3918     if test -d "${monalisa_dir}/include" ; then
3919     monalisa_inc=`(cd ${monalisa_dir}/include; pwd)`
3920     else
3921     { { echo "$as_me:$LINENO: error: monalisa include dir not found. Please check monalisa installation and path" >&5
3922     echo "$as_me: error: monalisa include dir not found. Please check monalisa installation and path" >&2;}
3923     { (exit 1); exit 1; }; }
3924     fi
3925     monalisa_lib_sh=${monalisa_lib}
3926     LIBS=" -L${monalisa_lib}"
3927     fi
3928     #
3929     # otherwise check for libs
3930     # starting from the one provided
3931     #
3932     if test -n "${monalisa_lib}" ; then
3933     test -d "${monalisa_lib}" && monalisa_lib=`(cd ${monalisa_lib}; pwd)`
3934     LIBS=" -L${monalisa_lib}"
3935     monalisa_lib_sh=${monalisa_lib}
3936     #
3937     # if not provided look in the current dir
3938     #
3939     else
3940 gcodispo 1.8 if test -d "$srcdir/MonaLisa" ; then
3941 gcodispo 1.19 monalisa_ld_path="$srcdir/MonaLisa/lib"
3942 gcodispo 1.26 monalisa_inc="\$(BOSS_ROOT)/MonaLisa/include"
3943     monalisa_lib="\$(BOSS_ROOT)/MonaLisa/lib"
3944     monalisa_lib_sh="\\\$BOSS_ROOT/MonaLisa/lib"
3945 gcodispo 1.19 LIBS=" -L$monalisa_ld_path"
3946 gcodispo 1.8 if test -f "$srcdir/MonaLisa/Makefile.in" ; then
3947     MAKE_MONALISA_DIR="$srcdir/MonaLisa/src/Makefile"
3948     fi
3949     if test -f "$srcdir/MonaLisa/Makefile" ; then
3950     MAKE_MONALISA="\$(MAKE) -C MonaLisa"
3951     MAKE_MONALISA_CLEAN="\$(MAKE) -C MonaLisa clean"
3952    
3953    
3954     fi
3955     fi
3956 gcodispo 1.16 #
3957     # then in ${VO_CMS_SW_DIR}/lcg/app/releases/MonaLisa
3958     #
3959     if test x"${monalisa_lib}" = x ; then
3960 gcodispo 1.8 for i in \
3961     `ls -dr ${VO_CMS_SW_DIR}/lcg/app/releases/MonaLisa 2>/dev/null` \
3962     `ls -dr /afs/cern.ch/cms/external/lcg/app/releases/MonaLisa 2>/dev/null`
3963     do
3964     if test -f "$i/lib/libMonaLisa.so" ; then
3965     monalisa_lib=`(cd $i/lib; pwd)`
3966     monalisa_inc=`(cd $i/include; pwd)`
3967 gcodispo 1.11 monalisa_lib_sh=${monalisa_lib}
3968     LIBS=" -L${monalisa_lib}"
3969 gcodispo 1.8 break
3970     fi
3971     done
3972     fi
3973     fi
3974 gcodispo 1.16 #
3975     # check if the library is actually there
3976     #
3977     echo "$as_me:$LINENO: result: -> $monalisa_lib" >&5
3978 gcodispo 1.8 echo "${ECHO_T}-> $monalisa_lib" >&6
3979 gcodispo 1.16 if test x"${MAKE_MONALISA}" = x ; then
3980 gcodispo 1.8
3981 gcodispo 1.10 echo "$as_me:$LINENO: checking for main in -lapmoncpp" >&5
3982     echo $ECHO_N "checking for main in -lapmoncpp... $ECHO_C" >&6
3983     if test "${ac_cv_lib_apmoncpp_main+set}" = set; then
3984 gcodispo 1.8 echo $ECHO_N "(cached) $ECHO_C" >&6
3985     else
3986     ac_check_lib_save_LIBS=$LIBS
3987 gcodispo 1.10 LIBS="-lapmoncpp $LIBS"
3988 gcodispo 1.8 cat >conftest.$ac_ext <<_ACEOF
3989     #line $LINENO "configure"
3990     /* confdefs.h. */
3991     _ACEOF
3992     cat confdefs.h >>conftest.$ac_ext
3993     cat >>conftest.$ac_ext <<_ACEOF
3994     /* end confdefs.h. */
3995    
3996    
3997     int
3998     main ()
3999     {
4000     main ();
4001     ;
4002     return 0;
4003     }
4004     _ACEOF
4005     rm -f conftest.$ac_objext conftest$ac_exeext
4006     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007     (eval $ac_link) 2>&5
4008     ac_status=$?
4009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010     (exit $ac_status); } &&
4011     { ac_try='test -s conftest$ac_exeext'
4012     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013     (eval $ac_try) 2>&5
4014     ac_status=$?
4015     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016     (exit $ac_status); }; }; then
4017 gcodispo 1.10 ac_cv_lib_apmoncpp_main=yes
4018 gcodispo 1.8 else
4019     echo "$as_me: failed program was:" >&5
4020     sed 's/^/| /' conftest.$ac_ext >&5
4021    
4022 gcodispo 1.10 ac_cv_lib_apmoncpp_main=no
4023 gcodispo 1.8 fi
4024     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4025     LIBS=$ac_check_lib_save_LIBS
4026     fi
4027 gcodispo 1.10 echo "$as_me:$LINENO: result: $ac_cv_lib_apmoncpp_main" >&5
4028     echo "${ECHO_T}$ac_cv_lib_apmoncpp_main" >&6
4029     if test $ac_cv_lib_apmoncpp_main = yes; then
4030 gcodispo 1.8 cat >>confdefs.h <<_ACEOF
4031 gcodispo 1.10 #define HAVE_LIBAPMONCPP 1
4032 gcodispo 1.8 _ACEOF
4033    
4034 gcodispo 1.10 LIBS="-lapmoncpp $LIBS"
4035 gcodispo 1.8
4036     else
4037    
4038 gcodispo 1.16 { { echo "$as_me:$LINENO: error: MonaLisa library not found. Please check MonaLisa installation and path" >&5
4039 gcodispo 1.9 echo "$as_me: error: MonaLisa library not found. Please check MonaLisa installation and path" >&2;}
4040 gcodispo 1.8 { (exit 1); exit 1; }; }
4041    
4042     fi
4043    
4044 gcodispo 1.16 fi
4045     #
4046     # now check if the include dir is there
4047     #
4048     echo "$as_me:$LINENO: result: -> $monalisa_inc" >&5
4049     echo "${ECHO_T}-> $monalisa_inc" >&6
4050     if test -n "${monalisa_inc}"; then
4051 gcodispo 1.19 test -z "${monalisa_ld_path}" && monalisa_inc=`(cd ${monalisa_inc}; pwd)`
4052 gcodispo 1.16 else
4053     { { echo "$as_me:$LINENO: error: monalisa include dir not found. Please check monalisa installation and path" >&5
4054     echo "$as_me: error: monalisa include dir not found. Please check monalisa installation and path" >&2;}
4055     { (exit 1); exit 1; }; }
4056     fi
4057     #
4058     # perform variable substitution
4059     #
4060     if test -n "${monalisa_lib}" && test -n "${monalisa_inc}" ; then
4061     monalisa=monalisa
4062 gcodispo 1.8
4063 gcodispo 1.10
4064 gcodispo 1.8
4065    
4066 gcodispo 1.16 else
4067     { echo "$as_me:$LINENO: WARNING: \"Can't find monalisa\"" >&5
4068     echo "$as_me: WARNING: \"Can't find monalisa\"" >&2;}
4069     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
4070     echo "$as_me: error: Please install it and rerun configuration" >&2;}
4071     { (exit 1); exit 1; }; }
4072     fi
4073 gcodispo 1.8
4074    
4075    
4076 gcodispo 1.16 # AC_MSG_RESULT(checking for clarens in:)
4077     # checking command line options
4078 gcodispo 1.8
4079 gcodispo 1.16 # Check whether --with-clarens_dir or --without-clarens_dir was given.
4080     if test "${with_clarens_dir+set}" = set; then
4081     withval="$with_clarens_dir"
4082     clarens_dir=${withval}
4083     fi;
4084 gcodispo 1.8
4085 gcodispo 1.16 # Check whether --with-clarens_lib or --without-clarens_lib was given.
4086     if test "${with_clarens_lib+set}" = set; then
4087     withval="$with_clarens_lib"
4088     clarens_lib=${withval}
4089     fi;
4090 gcodispo 1.1
4091 gcodispo 1.16 # Check whether --with-clarens_include or --without-clarens_include was given.
4092     if test "${with_clarens_include+set}" = set; then
4093     withval="$with_clarens_include"
4094     clarens_inc=${withval}
4095     fi;
4096 gcodispo 1.1
4097 gcodispo 1.16 clarens_lib=""
4098     clarens_inc=""
4099     clarens=""
4100     clarens_lib_sh=""
4101 gcodispo 1.15
4102    
4103    
4104    
4105    
4106 gcodispo 1.16 # DUMMY
4107 gcodispo 1.15
4108 gcodispo 1.28 echo "$as_me:$LINENO: result: checking for XercesC in:" >&5
4109     echo "${ECHO_T}checking for XercesC in:" >&6
4110     # checking command line options
4111    
4112     # Check whether --with-xercesc_dir or --without-xercesc_dir was given.
4113     if test "${with_xercesc_dir+set}" = set; then
4114     withval="$with_xercesc_dir"
4115     xercesc_dir=${withval}
4116     fi;
4117    
4118     # Check whether --with-xercesc_lib or --without-xercesc_lib was given.
4119     if test "${with_xercesc_lib+set}" = set; then
4120     withval="$with_xercesc_lib"
4121     xercesc_lib=${withval}
4122     fi;
4123    
4124     # Check whether --with-xercesc_include or --without-xercesc_include was given.
4125     if test "${with_xercesc_include+set}" = set; then
4126     withval="$with_xercesc_include"
4127     xercesc_inc=${withval}
4128     fi;
4129     #
4130     # if a top dir is provided
4131     #
4132     if test -n "${xercesc_dir}" ; then
4133     if test -d "${xercesc_dir}/lib" ; then
4134     xercesc_lib=`(cd ${xercesc_dir}/lib; pwd)`
4135     xercesc_lib_sh=${xercesc_lib}
4136     else
4137     { { echo "$as_me:$LINENO: error: xercesc lib dir not found. Please check xercesc installation and path" >&5
4138     echo "$as_me: error: xercesc lib dir not found. Please check xercesc installation and path" >&2;}
4139     { (exit 1); exit 1; }; }
4140     fi
4141     if test -d "${xercesc_dir}/include" ; then
4142     xercesc_inc=`(cd ${xercesc_dir}/include; pwd)`
4143     else
4144     { { echo "$as_me:$LINENO: error: xercesc include dir not found. Please check xercesc installation and path" >&5
4145     echo "$as_me: error: xercesc include dir not found. Please check xercesc installation and path" >&2;}
4146     { (exit 1); exit 1; }; }
4147     fi
4148     LIBS=" -L${xercesc_lib}"
4149     fi
4150     #
4151     # otherwise check for libs
4152     # starting from the one provided
4153     #
4154     if test -n "${xercesc_lib}" ; then
4155     test -d "${xercesc_lib}" && xercesc_lib=`(cd ${xercesc_lib}; pwd)`
4156     LIBS=" -L${xercesc_lib}"
4157     xercesc_lib_sh=${xercesc_lib}
4158     #
4159     # if not provided look in the current dir
4160     #
4161     else
4162     if test -d "$srcdir/xercesc" ; then
4163     xercesc_ld_path="$srcdir/xercesc/lib"
4164     xercesc_inc="\$(BOSS_ROOT)/xercesc/include"
4165     xercesc_lib="\$(BOSS_ROOT)/xercesc/lib"
4166     xercesc_lib_sh="\\\$BOSS_ROOT/xercesc/lib"
4167     LIBS=" -L$xercesc_ld_path"
4168     if test -f "$srcdir/xercesc/src/Makefile.in" ; then
4169     MAKE_XERCESC_DIR="$srcdir/xercesc/src/Makefile"
4170     fi
4171     if test -f "$srcdir/xercesc/Makefile" ; then
4172     MAKE_XERCESC="\$(MAKE) -C xercesc"
4173     MAKE_XERCESC_CLEAN="\$(MAKE) -C xercesc clean"
4174    
4175    
4176     fi
4177     fi
4178     #
4179     # then in ${VO_CMS_SW_DIR}/lcg/external/xercesc
4180     #
4181     if test x"${xercesc_lib}" = x ; then
4182     for i in \
4183     `ls -dr ${VO_CMS_SW_DIR}/lcg/external/xerces-c/2.*.*/${SYSTEM} 2>/dev/null` \
4184     `ls -dr /afs/cern.ch/cms/external/lcg/external/XercesC/2.*.*/${SYSTEM} 2>/dev/null`
4185     do
4186     if test -f "$i/lib/libxerces-c.so" ; then
4187     xercesc_lib=`(cd $i/lib; pwd)`
4188     xercesc_lib_sh=${xercesc_lib}
4189     xercesc_inc=`(cd $i/include; pwd)`
4190     LIBS=" -L${xercesc_lib}"
4191     break
4192     fi
4193     done
4194     fi
4195     #
4196     # at the end check in a few common install locations
4197     #
4198     if test x"${xercesc_lib}" = x ; then
4199     for i in \
4200     `ls -d ${libdir} 2>/dev/null` \
4201     `ls -d /usr/lib/xercesc/libxerces-c.so 2>/dev/null` \
4202     `ls -d /usr/lib/libxerces-c.so 2>/dev/null` \
4203     `ls -d /usr/local/lib/xercesc/libxerces-c.so 2>/dev/null` \
4204     `ls -d /usr/local/lib/libxerces-c.so 2>/dev/null` \
4205     `ls -d /usr/contrib/lib/xercesc/libxerces-c.so 2>/dev/null` \
4206     `ls -d /usr/contrib/lib/libxerces-c.so 2>/dev/null`
4207     do
4208     if test -f "$i" ; then
4209     xercesc_lib=`dirname $i`
4210     xercesc_lib_sh=${xercesc_lib}
4211     LIBS=" -L${xercesc_lib}"
4212     # echo $xercesc_inc
4213     break
4214     fi
4215     done
4216     if test x"${xercesc_lib}" != x; then
4217     for i in \
4218     `ls -d ${includedir} 2>/dev/null` \
4219     `ls -d /usr/include/xercesc/dom/DOM.hpp 2>/dev/null` \
4220     `ls -d /usr/local/include/xercesc/dom/DOM.hpp 2>/dev/null` \
4221     `ls -d /usr/contrib/include/xercesc/dom/DOM.hpp 2>/dev/null`
4222     do
4223     if test -f "$i" ; then
4224     xercesc_inc=`dirname $i`
4225     break
4226     fi
4227     done
4228     fi
4229     fi
4230     fi
4231     #
4232     # check if the library is actually there
4233     #
4234     echo "$as_me:$LINENO: result: -> $xercesc_lib" >&5
4235     echo "${ECHO_T}-> $xercesc_lib" >&6
4236     if test x"${MAKE_XERCESC}" = x ; then
4237    
4238     echo "$as_me:$LINENO: checking for main in -lxerces-c" >&5
4239     echo $ECHO_N "checking for main in -lxerces-c... $ECHO_C" >&6
4240     if test "${ac_cv_lib_xerces_c_main+set}" = set; then
4241     echo $ECHO_N "(cached) $ECHO_C" >&6
4242     else
4243     ac_check_lib_save_LIBS=$LIBS
4244     LIBS="-lxerces-c $LIBS"
4245     cat >conftest.$ac_ext <<_ACEOF
4246     #line $LINENO "configure"
4247     /* confdefs.h. */
4248     _ACEOF
4249     cat confdefs.h >>conftest.$ac_ext
4250     cat >>conftest.$ac_ext <<_ACEOF
4251     /* end confdefs.h. */
4252    
4253    
4254     int
4255     main ()
4256     {
4257     main ();
4258     ;
4259     return 0;
4260     }
4261     _ACEOF
4262     rm -f conftest.$ac_objext conftest$ac_exeext
4263     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264     (eval $ac_link) 2>&5
4265     ac_status=$?
4266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267     (exit $ac_status); } &&
4268     { ac_try='test -s conftest$ac_exeext'
4269     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270     (eval $ac_try) 2>&5
4271     ac_status=$?
4272     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273     (exit $ac_status); }; }; then
4274     ac_cv_lib_xerces_c_main=yes
4275     else
4276     echo "$as_me: failed program was:" >&5
4277     sed 's/^/| /' conftest.$ac_ext >&5
4278    
4279     ac_cv_lib_xerces_c_main=no
4280     fi
4281     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4282     LIBS=$ac_check_lib_save_LIBS
4283     fi
4284     echo "$as_me:$LINENO: result: $ac_cv_lib_xerces_c_main" >&5
4285     echo "${ECHO_T}$ac_cv_lib_xerces_c_main" >&6
4286     if test $ac_cv_lib_xerces_c_main = yes; then
4287     cat >>confdefs.h <<_ACEOF
4288     #define HAVE_LIBXERCES_C 1
4289     _ACEOF
4290    
4291     LIBS="-lxerces-c $LIBS"
4292    
4293     else
4294    
4295     { { echo "$as_me:$LINENO: error: xerces-c library not found. Please check xercesc installation and path" >&5
4296     echo "$as_me: error: xerces-c library not found. Please check xercesc installation and path" >&2;}
4297     { (exit 1); exit 1; }; }
4298     fi
4299    
4300     fi
4301     #
4302     # now check if the include dir is there
4303     #
4304     echo "$as_me:$LINENO: result: -> $xercesc_inc" >&5
4305     echo "${ECHO_T}-> $xercesc_inc" >&6
4306     if test -n "${xercesc_inc}" ; then
4307     test -z "${xercesc_ld_path}" && xercesc_inc=`(cd ${xercesc_inc}; pwd)`
4308     else
4309     { { echo "$as_me:$LINENO: error: xercesc include dir not found. Please check xercesc installation and path" >&5
4310     echo "$as_me: error: xercesc include dir not found. Please check xercesc installation and path" >&2;}
4311     { (exit 1); exit 1; }; }
4312     fi
4313    
4314     # if test [-f] "${xercesc_inc}/xercesc/dom/DOM.hpp" ; then
4315     # AC_MSG_RESULT([checking for ${xercesc_inc}/xercesc/dom/DOM.hpp... yes])
4316     # else
4317     # AC_MSG_WARN([checking for ${xercesc_inc}/xercesc/dom/DOM.hpp... not found!])
4318     # AC_MSG_ERROR([Please specify a valid path for xercesc/dom/DOM.hpp])
4319     # fi
4320     #
4321     # perform variable substitution
4322     #
4323     if test -n "${xercesc_lib}" && test -n "${xercesc_inc}" ; then
4324     xercesc=xercesc
4325    
4326    
4327    
4328    
4329     else
4330     { echo "$as_me:$LINENO: WARNING: \"Can't find xercesc\"" >&5
4331     echo "$as_me: WARNING: \"Can't find xercesc\"" >&2;}
4332     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
4333     echo "$as_me: error: Please install it and rerun configuration" >&2;}
4334     { (exit 1); exit 1; }; }
4335     fi
4336    
4337    
4338    
4339 gcodispo 1.27
4340 gcodispo 1.1 # Checks for header files.
4341    
4342     echo "$as_me:$LINENO: checking for egrep" >&5
4343     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4344     if test "${ac_cv_prog_egrep+set}" = set; then
4345     echo $ECHO_N "(cached) $ECHO_C" >&6
4346     else
4347     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4348     then ac_cv_prog_egrep='grep -E'
4349     else ac_cv_prog_egrep='egrep'
4350     fi
4351     fi
4352     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4353     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4354     EGREP=$ac_cv_prog_egrep
4355    
4356    
4357     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4358     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4359     if test "${ac_cv_header_stdc+set}" = set; then
4360     echo $ECHO_N "(cached) $ECHO_C" >&6
4361     else
4362     cat >conftest.$ac_ext <<_ACEOF
4363     #line $LINENO "configure"
4364     /* confdefs.h. */
4365     _ACEOF
4366     cat confdefs.h >>conftest.$ac_ext
4367     cat >>conftest.$ac_ext <<_ACEOF
4368     /* end confdefs.h. */
4369     #include <stdlib.h>
4370     #include <stdarg.h>
4371     #include <string.h>
4372     #include <float.h>
4373    
4374     int
4375     main ()
4376     {
4377    
4378     ;
4379     return 0;
4380     }
4381     _ACEOF
4382     rm -f conftest.$ac_objext
4383     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384     (eval $ac_compile) 2>&5
4385     ac_status=$?
4386     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387     (exit $ac_status); } &&
4388     { ac_try='test -s conftest.$ac_objext'
4389     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390     (eval $ac_try) 2>&5
4391     ac_status=$?
4392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393     (exit $ac_status); }; }; then
4394     ac_cv_header_stdc=yes
4395     else
4396     echo "$as_me: failed program was:" >&5
4397     sed 's/^/| /' conftest.$ac_ext >&5
4398    
4399     ac_cv_header_stdc=no
4400     fi
4401     rm -f conftest.$ac_objext conftest.$ac_ext
4402    
4403     if test $ac_cv_header_stdc = yes; then
4404     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405     cat >conftest.$ac_ext <<_ACEOF
4406     #line $LINENO "configure"
4407     /* confdefs.h. */
4408     _ACEOF
4409     cat confdefs.h >>conftest.$ac_ext
4410     cat >>conftest.$ac_ext <<_ACEOF
4411     /* end confdefs.h. */
4412     #include <string.h>
4413    
4414     _ACEOF
4415     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416     $EGREP "memchr" >/dev/null 2>&1; then
4417     :
4418     else
4419     ac_cv_header_stdc=no
4420     fi
4421     rm -f conftest*
4422    
4423     fi
4424    
4425     if test $ac_cv_header_stdc = yes; then
4426     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4427     cat >conftest.$ac_ext <<_ACEOF
4428     #line $LINENO "configure"
4429     /* confdefs.h. */
4430     _ACEOF
4431     cat confdefs.h >>conftest.$ac_ext
4432     cat >>conftest.$ac_ext <<_ACEOF
4433     /* end confdefs.h. */
4434     #include <stdlib.h>
4435    
4436     _ACEOF
4437     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4438     $EGREP "free" >/dev/null 2>&1; then
4439     :
4440     else
4441     ac_cv_header_stdc=no
4442     fi
4443     rm -f conftest*
4444    
4445     fi
4446    
4447     if test $ac_cv_header_stdc = yes; then
4448     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4449     if test "$cross_compiling" = yes; then
4450     :
4451     else
4452     cat >conftest.$ac_ext <<_ACEOF
4453     #line $LINENO "configure"
4454     /* confdefs.h. */
4455     _ACEOF
4456     cat confdefs.h >>conftest.$ac_ext
4457     cat >>conftest.$ac_ext <<_ACEOF
4458     /* end confdefs.h. */
4459     #include <ctype.h>
4460     #if ((' ' & 0x0FF) == 0x020)
4461     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4462     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4463     #else
4464     # define ISLOWER(c) \
4465     (('a' <= (c) && (c) <= 'i') \
4466     || ('j' <= (c) && (c) <= 'r') \
4467     || ('s' <= (c) && (c) <= 'z'))
4468     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469     #endif
4470    
4471     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4472     int
4473     main ()
4474     {
4475     int i;
4476     for (i = 0; i < 256; i++)
4477     if (XOR (islower (i), ISLOWER (i))
4478     || toupper (i) != TOUPPER (i))
4479     exit(2);
4480     exit (0);
4481     }
4482     _ACEOF
4483     rm -f conftest$ac_exeext
4484     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485     (eval $ac_link) 2>&5
4486     ac_status=$?
4487     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4489     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490     (eval $ac_try) 2>&5
4491     ac_status=$?
4492     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493     (exit $ac_status); }; }; then
4494     :
4495     else
4496     echo "$as_me: program exited with status $ac_status" >&5
4497     echo "$as_me: failed program was:" >&5
4498     sed 's/^/| /' conftest.$ac_ext >&5
4499    
4500     ( exit $ac_status )
4501     ac_cv_header_stdc=no
4502     fi
4503     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504     fi
4505     fi
4506     fi
4507     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4508     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4509     if test $ac_cv_header_stdc = yes; then
4510    
4511     cat >>confdefs.h <<\_ACEOF
4512     #define STDC_HEADERS 1
4513     _ACEOF
4514    
4515     fi
4516    
4517     echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4518     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4519     if test "${ac_cv_header_sys_wait_h+set}" = set; then
4520     echo $ECHO_N "(cached) $ECHO_C" >&6
4521     else
4522     cat >conftest.$ac_ext <<_ACEOF
4523     #line $LINENO "configure"
4524     /* confdefs.h. */
4525     _ACEOF
4526     cat confdefs.h >>conftest.$ac_ext
4527     cat >>conftest.$ac_ext <<_ACEOF
4528     /* end confdefs.h. */
4529     #include <sys/types.h>
4530     #include <sys/wait.h>
4531     #ifndef WEXITSTATUS
4532     # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4533     #endif
4534     #ifndef WIFEXITED
4535     # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4536     #endif
4537    
4538     int
4539     main ()
4540     {
4541     int s;
4542     wait (&s);
4543     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4544     ;
4545     return 0;
4546     }
4547     _ACEOF
4548     rm -f conftest.$ac_objext
4549     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550     (eval $ac_compile) 2>&5
4551     ac_status=$?
4552     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553     (exit $ac_status); } &&
4554     { ac_try='test -s conftest.$ac_objext'
4555     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556     (eval $ac_try) 2>&5
4557     ac_status=$?
4558     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559     (exit $ac_status); }; }; then
4560     ac_cv_header_sys_wait_h=yes
4561     else
4562     echo "$as_me: failed program was:" >&5
4563     sed 's/^/| /' conftest.$ac_ext >&5
4564    
4565     ac_cv_header_sys_wait_h=no
4566     fi
4567     rm -f conftest.$ac_objext conftest.$ac_ext
4568     fi
4569     echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4570     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4571     if test $ac_cv_header_sys_wait_h = yes; then
4572    
4573     cat >>confdefs.h <<\_ACEOF
4574     #define HAVE_SYS_WAIT_H 1
4575     _ACEOF
4576    
4577     fi
4578    
4579     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4580    
4581    
4582    
4583    
4584    
4585    
4586    
4587    
4588    
4589     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590     inttypes.h stdint.h unistd.h
4591     do
4592     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593     echo "$as_me:$LINENO: checking for $ac_header" >&5
4594     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4595     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4596     echo $ECHO_N "(cached) $ECHO_C" >&6
4597     else
4598     cat >conftest.$ac_ext <<_ACEOF
4599     #line $LINENO "configure"
4600     /* confdefs.h. */
4601     _ACEOF
4602     cat confdefs.h >>conftest.$ac_ext
4603     cat >>conftest.$ac_ext <<_ACEOF
4604     /* end confdefs.h. */
4605     $ac_includes_default
4606    
4607     #include <$ac_header>
4608     _ACEOF
4609     rm -f conftest.$ac_objext
4610     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611     (eval $ac_compile) 2>&5
4612     ac_status=$?
4613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614     (exit $ac_status); } &&
4615     { ac_try='test -s conftest.$ac_objext'
4616     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617     (eval $ac_try) 2>&5
4618     ac_status=$?
4619     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620     (exit $ac_status); }; }; then
4621     eval "$as_ac_Header=yes"
4622     else
4623     echo "$as_me: failed program was:" >&5
4624     sed 's/^/| /' conftest.$ac_ext >&5
4625    
4626     eval "$as_ac_Header=no"
4627     fi
4628     rm -f conftest.$ac_objext conftest.$ac_ext
4629     fi
4630     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4631     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4632     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4633     cat >>confdefs.h <<_ACEOF
4634     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635     _ACEOF
4636    
4637     fi
4638    
4639     done
4640    
4641    
4642    
4643    
4644    
4645    
4646    
4647    
4648    
4649     for ac_header in arpa/inet.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
4650     do
4651     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653     echo "$as_me:$LINENO: checking for $ac_header" >&5
4654     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4655     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4656     echo $ECHO_N "(cached) $ECHO_C" >&6
4657     fi
4658     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4660     else
4661     # Is the header compilable?
4662     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4663     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4664     cat >conftest.$ac_ext <<_ACEOF
4665     #line $LINENO "configure"
4666     /* confdefs.h. */
4667     _ACEOF
4668     cat confdefs.h >>conftest.$ac_ext
4669     cat >>conftest.$ac_ext <<_ACEOF
4670     /* end confdefs.h. */
4671     $ac_includes_default
4672     #include <$ac_header>
4673     _ACEOF
4674     rm -f conftest.$ac_objext
4675     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676     (eval $ac_compile) 2>&5
4677     ac_status=$?
4678     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679     (exit $ac_status); } &&
4680     { ac_try='test -s conftest.$ac_objext'
4681     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682     (eval $ac_try) 2>&5
4683     ac_status=$?
4684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685     (exit $ac_status); }; }; then
4686     ac_header_compiler=yes
4687     else
4688     echo "$as_me: failed program was:" >&5
4689     sed 's/^/| /' conftest.$ac_ext >&5
4690    
4691     ac_header_compiler=no
4692     fi
4693     rm -f conftest.$ac_objext conftest.$ac_ext
4694     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4695     echo "${ECHO_T}$ac_header_compiler" >&6
4696    
4697     # Is the header present?
4698     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4699     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4700     cat >conftest.$ac_ext <<_ACEOF
4701     #line $LINENO "configure"
4702     /* confdefs.h. */
4703     _ACEOF
4704     cat confdefs.h >>conftest.$ac_ext
4705     cat >>conftest.$ac_ext <<_ACEOF
4706     /* end confdefs.h. */
4707     #include <$ac_header>
4708     _ACEOF
4709     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4710     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4711     ac_status=$?
4712     grep -v '^ *+' conftest.er1 >conftest.err
4713     rm -f conftest.er1
4714     cat conftest.err >&5
4715     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716     (exit $ac_status); } >/dev/null; then
4717     if test -s conftest.err; then
4718     ac_cpp_err=$ac_c_preproc_warn_flag
4719     else
4720     ac_cpp_err=
4721     fi
4722     else
4723     ac_cpp_err=yes
4724     fi
4725     if test -z "$ac_cpp_err"; then
4726     ac_header_preproc=yes
4727     else
4728     echo "$as_me: failed program was:" >&5
4729     sed 's/^/| /' conftest.$ac_ext >&5
4730    
4731     ac_header_preproc=no
4732     fi
4733     rm -f conftest.err conftest.$ac_ext
4734     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4735     echo "${ECHO_T}$ac_header_preproc" >&6
4736    
4737     # So? What about this header?
4738     case $ac_header_compiler:$ac_header_preproc in
4739     yes:no )
4740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4741     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4743     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4744     (
4745     cat <<\_ASBOX
4746     ## ------------------------------------ ##
4747     ## Report this to bug-autoconf@gnu.org. ##
4748     ## ------------------------------------ ##
4749     _ASBOX
4750     ) |
4751     sed "s/^/$as_me: WARNING: /" >&2
4752     ;;
4753     no:yes )
4754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4755     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4756     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4757     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4760     (
4761     cat <<\_ASBOX
4762     ## ------------------------------------ ##
4763     ## Report this to bug-autoconf@gnu.org. ##
4764     ## ------------------------------------ ##
4765     _ASBOX
4766     ) |
4767     sed "s/^/$as_me: WARNING: /" >&2
4768     ;;
4769     esac
4770     echo "$as_me:$LINENO: checking for $ac_header" >&5
4771     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4772     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4773     echo $ECHO_N "(cached) $ECHO_C" >&6
4774     else
4775     eval "$as_ac_Header=$ac_header_preproc"
4776     fi
4777     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779    
4780     fi
4781     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4782     cat >>confdefs.h <<_ACEOF
4783     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784     _ACEOF
4785    
4786     fi
4787    
4788     done
4789    
4790    
4791     # Checks for typedefs, structures, and compiler characteristics.
4792     echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4793     echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4794     if test "${ac_cv_header_stdbool_h+set}" = set; then
4795     echo $ECHO_N "(cached) $ECHO_C" >&6
4796     else
4797     cat >conftest.$ac_ext <<_ACEOF
4798     #line $LINENO "configure"
4799     /* confdefs.h. */
4800     _ACEOF
4801     cat confdefs.h >>conftest.$ac_ext
4802     cat >>conftest.$ac_ext <<_ACEOF
4803     /* end confdefs.h. */
4804    
4805     #include <stdbool.h>
4806     #ifndef bool
4807     # error bool is not defined
4808     #endif
4809     #ifndef false
4810     # error false is not defined
4811     #endif
4812     #if false
4813     # error false is not 0
4814     #endif
4815     #ifndef true
4816     # error true is not defined
4817     #endif
4818     #if true != 1
4819     # error true is not 1
4820     #endif
4821     #ifndef __bool_true_false_are_defined
4822     # error __bool_true_false_are_defined is not defined
4823     #endif
4824    
4825     struct s { _Bool s: 1; _Bool t; } s;
4826    
4827     char a[true == 1 ? 1 : -1];
4828     char b[false == 0 ? 1 : -1];
4829     char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4830     char d[(bool) -0.5 == true ? 1 : -1];
4831     bool e = &s;
4832     char f[(_Bool) -0.0 == false ? 1 : -1];
4833     char g[true];
4834     char h[sizeof (_Bool)];
4835     char i[sizeof s.t];
4836    
4837     int
4838     main ()
4839     {
4840     return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4841     ;
4842     return 0;
4843     }
4844     _ACEOF
4845     rm -f conftest.$ac_objext
4846     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847     (eval $ac_compile) 2>&5
4848     ac_status=$?
4849     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850     (exit $ac_status); } &&
4851     { ac_try='test -s conftest.$ac_objext'
4852     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853     (eval $ac_try) 2>&5
4854     ac_status=$?
4855     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856     (exit $ac_status); }; }; then
4857     ac_cv_header_stdbool_h=yes
4858     else
4859     echo "$as_me: failed program was:" >&5
4860     sed 's/^/| /' conftest.$ac_ext >&5
4861    
4862     ac_cv_header_stdbool_h=no
4863     fi
4864     rm -f conftest.$ac_objext conftest.$ac_ext
4865     fi
4866     echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4867     echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4868     echo "$as_me:$LINENO: checking for _Bool" >&5
4869     echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4870     if test "${ac_cv_type__Bool+set}" = set; then
4871     echo $ECHO_N "(cached) $ECHO_C" >&6
4872     else
4873     cat >conftest.$ac_ext <<_ACEOF
4874     #line $LINENO "configure"
4875     /* confdefs.h. */
4876     _ACEOF
4877     cat confdefs.h >>conftest.$ac_ext
4878     cat >>conftest.$ac_ext <<_ACEOF
4879     /* end confdefs.h. */
4880     $ac_includes_default
4881     int
4882     main ()
4883     {
4884     if ((_Bool *) 0)
4885     return 0;
4886     if (sizeof (_Bool))
4887     return 0;
4888     ;
4889     return 0;
4890     }
4891     _ACEOF
4892     rm -f conftest.$ac_objext
4893     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894     (eval $ac_compile) 2>&5
4895     ac_status=$?
4896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897     (exit $ac_status); } &&
4898     { ac_try='test -s conftest.$ac_objext'
4899     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900     (eval $ac_try) 2>&5
4901     ac_status=$?
4902     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903     (exit $ac_status); }; }; then
4904     ac_cv_type__Bool=yes
4905     else
4906     echo "$as_me: failed program was:" >&5
4907     sed 's/^/| /' conftest.$ac_ext >&5
4908    
4909     ac_cv_type__Bool=no
4910     fi
4911     rm -f conftest.$ac_objext conftest.$ac_ext
4912     fi
4913     echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4914     echo "${ECHO_T}$ac_cv_type__Bool" >&6
4915     if test $ac_cv_type__Bool = yes; then
4916    
4917     cat >>confdefs.h <<_ACEOF
4918     #define HAVE__BOOL 1
4919     _ACEOF
4920    
4921    
4922     fi
4923    
4924     if test $ac_cv_header_stdbool_h = yes; then
4925    
4926     cat >>confdefs.h <<\_ACEOF
4927     #define HAVE_STDBOOL_H 1
4928     _ACEOF
4929    
4930     fi
4931    
4932     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4933     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4934     if test "${ac_cv_c_const+set}" = set; then
4935     echo $ECHO_N "(cached) $ECHO_C" >&6
4936     else
4937     cat >conftest.$ac_ext <<_ACEOF
4938     #line $LINENO "configure"
4939     /* confdefs.h. */
4940     _ACEOF
4941     cat confdefs.h >>conftest.$ac_ext
4942     cat >>conftest.$ac_ext <<_ACEOF
4943     /* end confdefs.h. */
4944    
4945     int
4946     main ()
4947     {
4948     /* FIXME: Include the comments suggested by Paul. */
4949     #ifndef __cplusplus
4950     /* Ultrix mips cc rejects this. */
4951     typedef int charset[2];
4952     const charset x;
4953     /* SunOS 4.1.1 cc rejects this. */
4954     char const *const *ccp;
4955     char **p;
4956     /* NEC SVR4.0.2 mips cc rejects this. */
4957     struct point {int x, y;};
4958     static struct point const zero = {0,0};
4959     /* AIX XL C 1.02.0.0 rejects this.
4960     It does not let you subtract one const X* pointer from another in
4961     an arm of an if-expression whose if-part is not a constant
4962     expression */
4963     const char *g = "string";
4964     ccp = &g + (g ? g-g : 0);
4965     /* HPUX 7.0 cc rejects these. */
4966     ++ccp;
4967     p = (char**) ccp;
4968     ccp = (char const *const *) p;
4969     { /* SCO 3.2v4 cc rejects this. */
4970     char *t;
4971     char const *s = 0 ? (char *) 0 : (char const *) 0;
4972    
4973     *t++ = 0;
4974     }
4975     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4976     int x[] = {25, 17};
4977     const int *foo = &x[0];
4978     ++foo;
4979     }
4980     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4981     typedef const int *iptr;
4982     iptr p = 0;
4983     ++p;
4984     }
4985     { /* AIX XL C 1.02.0.0 rejects this saying
4986     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4987     struct s { int j; const int *ap[3]; };
4988     struct s *b; b->j = 5;
4989     }
4990     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4991     const int foo = 10;
4992     }
4993     #endif
4994    
4995     ;
4996     return 0;
4997     }
4998     _ACEOF
4999     rm -f conftest.$ac_objext
5000     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001     (eval $ac_compile) 2>&5
5002     ac_status=$?
5003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004     (exit $ac_status); } &&
5005     { ac_try='test -s conftest.$ac_objext'
5006     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007     (eval $ac_try) 2>&5
5008     ac_status=$?
5009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010     (exit $ac_status); }; }; then
5011     ac_cv_c_const=yes
5012     else
5013     echo "$as_me: failed program was:" >&5
5014     sed 's/^/| /' conftest.$ac_ext >&5
5015    
5016     ac_cv_c_const=no
5017     fi
5018     rm -f conftest.$ac_objext conftest.$ac_ext
5019     fi
5020     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5021     echo "${ECHO_T}$ac_cv_c_const" >&6
5022     if test $ac_cv_c_const = no; then
5023    
5024     cat >>confdefs.h <<\_ACEOF
5025     #define const
5026     _ACEOF
5027    
5028     fi
5029    
5030     echo "$as_me:$LINENO: checking for inline" >&5
5031     echo $ECHO_N "checking for inline... $ECHO_C" >&6
5032     if test "${ac_cv_c_inline+set}" = set; then
5033     echo $ECHO_N "(cached) $ECHO_C" >&6
5034     else
5035     ac_cv_c_inline=no
5036     for ac_kw in inline __inline__ __inline; do
5037     cat >conftest.$ac_ext <<_ACEOF
5038     #line $LINENO "configure"
5039     /* confdefs.h. */
5040     _ACEOF
5041     cat confdefs.h >>conftest.$ac_ext
5042     cat >>conftest.$ac_ext <<_ACEOF
5043     /* end confdefs.h. */
5044     #ifndef __cplusplus
5045     typedef int foo_t;
5046     static $ac_kw foo_t static_foo () {return 0; }
5047     $ac_kw foo_t foo () {return 0; }
5048     #endif
5049    
5050     _ACEOF
5051     rm -f conftest.$ac_objext
5052     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053     (eval $ac_compile) 2>&5
5054     ac_status=$?
5055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056     (exit $ac_status); } &&
5057     { ac_try='test -s conftest.$ac_objext'
5058     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059     (eval $ac_try) 2>&5
5060     ac_status=$?
5061     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062     (exit $ac_status); }; }; then
5063     ac_cv_c_inline=$ac_kw; break
5064     else
5065     echo "$as_me: failed program was:" >&5
5066     sed 's/^/| /' conftest.$ac_ext >&5
5067    
5068     fi
5069     rm -f conftest.$ac_objext conftest.$ac_ext
5070     done
5071    
5072     fi
5073     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5074     echo "${ECHO_T}$ac_cv_c_inline" >&6
5075     case $ac_cv_c_inline in
5076     inline | yes) ;;
5077     no)
5078     cat >>confdefs.h <<\_ACEOF
5079     #define inline
5080     _ACEOF
5081     ;;
5082     *) cat >>confdefs.h <<_ACEOF
5083     #define inline $ac_cv_c_inline
5084     _ACEOF
5085     ;;
5086     esac
5087    
5088     echo "$as_me:$LINENO: checking for pid_t" >&5
5089     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5090     if test "${ac_cv_type_pid_t+set}" = set; then
5091     echo $ECHO_N "(cached) $ECHO_C" >&6
5092     else
5093     cat >conftest.$ac_ext <<_ACEOF
5094     #line $LINENO "configure"
5095     /* confdefs.h. */
5096     _ACEOF
5097     cat confdefs.h >>conftest.$ac_ext
5098     cat >>conftest.$ac_ext <<_ACEOF
5099     /* end confdefs.h. */
5100     $ac_includes_default
5101     int
5102     main ()
5103     {
5104     if ((pid_t *) 0)
5105     return 0;
5106     if (sizeof (pid_t))
5107     return 0;
5108     ;
5109     return 0;
5110     }
5111     _ACEOF
5112     rm -f conftest.$ac_objext
5113     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114     (eval $ac_compile) 2>&5
5115     ac_status=$?
5116     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117     (exit $ac_status); } &&
5118     { ac_try='test -s conftest.$ac_objext'
5119     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120     (eval $ac_try) 2>&5
5121     ac_status=$?
5122     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123     (exit $ac_status); }; }; then
5124     ac_cv_type_pid_t=yes
5125     else
5126     echo "$as_me: failed program was:" >&5
5127     sed 's/^/| /' conftest.$ac_ext >&5
5128    
5129     ac_cv_type_pid_t=no
5130     fi
5131     rm -f conftest.$ac_objext conftest.$ac_ext
5132     fi
5133     echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5134     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5135     if test $ac_cv_type_pid_t = yes; then
5136     :
5137     else
5138    
5139     cat >>confdefs.h <<_ACEOF
5140     #define pid_t int
5141     _ACEOF
5142    
5143     fi
5144    
5145     echo "$as_me:$LINENO: checking for size_t" >&5
5146     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5147     if test "${ac_cv_type_size_t+set}" = set; then
5148     echo $ECHO_N "(cached) $ECHO_C" >&6
5149     else
5150     cat >conftest.$ac_ext <<_ACEOF
5151     #line $LINENO "configure"
5152     /* confdefs.h. */
5153     _ACEOF
5154     cat confdefs.h >>conftest.$ac_ext
5155     cat >>conftest.$ac_ext <<_ACEOF
5156     /* end confdefs.h. */
5157     $ac_includes_default
5158     int
5159     main ()
5160     {
5161     if ((size_t *) 0)
5162     return 0;
5163     if (sizeof (size_t))
5164     return 0;
5165     ;
5166     return 0;
5167     }
5168     _ACEOF
5169     rm -f conftest.$ac_objext
5170     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171     (eval $ac_compile) 2>&5
5172     ac_status=$?
5173     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174     (exit $ac_status); } &&
5175     { ac_try='test -s conftest.$ac_objext'
5176     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177     (eval $ac_try) 2>&5
5178     ac_status=$?
5179     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180     (exit $ac_status); }; }; then
5181     ac_cv_type_size_t=yes
5182     else
5183     echo "$as_me: failed program was:" >&5
5184     sed 's/^/| /' conftest.$ac_ext >&5
5185    
5186     ac_cv_type_size_t=no
5187     fi
5188     rm -f conftest.$ac_objext conftest.$ac_ext
5189     fi
5190     echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5191     echo "${ECHO_T}$ac_cv_type_size_t" >&6
5192     if test $ac_cv_type_size_t = yes; then
5193     :
5194     else
5195    
5196     cat >>confdefs.h <<_ACEOF
5197     #define size_t unsigned
5198     _ACEOF
5199    
5200     fi
5201    
5202     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5203     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5204     if test "${ac_cv_header_time+set}" = set; then
5205     echo $ECHO_N "(cached) $ECHO_C" >&6
5206     else
5207     cat >conftest.$ac_ext <<_ACEOF
5208     #line $LINENO "configure"
5209     /* confdefs.h. */
5210     _ACEOF
5211     cat confdefs.h >>conftest.$ac_ext
5212     cat >>conftest.$ac_ext <<_ACEOF
5213     /* end confdefs.h. */
5214     #include <sys/types.h>
5215     #include <sys/time.h>
5216     #include <time.h>
5217    
5218     int
5219     main ()
5220     {
5221     if ((struct tm *) 0)
5222     return 0;
5223     ;
5224     return 0;
5225     }
5226     _ACEOF
5227     rm -f conftest.$ac_objext
5228     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229     (eval $ac_compile) 2>&5
5230     ac_status=$?
5231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232     (exit $ac_status); } &&
5233     { ac_try='test -s conftest.$ac_objext'
5234     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235     (eval $ac_try) 2>&5
5236     ac_status=$?
5237     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238     (exit $ac_status); }; }; then
5239     ac_cv_header_time=yes
5240     else
5241     echo "$as_me: failed program was:" >&5
5242     sed 's/^/| /' conftest.$ac_ext >&5
5243    
5244     ac_cv_header_time=no
5245     fi
5246     rm -f conftest.$ac_objext conftest.$ac_ext
5247     fi
5248     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5249     echo "${ECHO_T}$ac_cv_header_time" >&6
5250     if test $ac_cv_header_time = yes; then
5251    
5252     cat >>confdefs.h <<\_ACEOF
5253     #define TIME_WITH_SYS_TIME 1
5254     _ACEOF
5255    
5256     fi
5257    
5258     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5259     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5260     if test "${ac_cv_struct_tm+set}" = set; then
5261     echo $ECHO_N "(cached) $ECHO_C" >&6
5262     else
5263     cat >conftest.$ac_ext <<_ACEOF
5264     #line $LINENO "configure"
5265     /* confdefs.h. */
5266     _ACEOF
5267     cat confdefs.h >>conftest.$ac_ext
5268     cat >>conftest.$ac_ext <<_ACEOF
5269     /* end confdefs.h. */
5270     #include <sys/types.h>
5271     #include <time.h>
5272    
5273     int
5274     main ()
5275     {
5276     struct tm *tp; tp->tm_sec;
5277     ;
5278     return 0;
5279     }
5280     _ACEOF
5281     rm -f conftest.$ac_objext
5282     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283     (eval $ac_compile) 2>&5
5284     ac_status=$?
5285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286     (exit $ac_status); } &&
5287     { ac_try='test -s conftest.$ac_objext'
5288     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289     (eval $ac_try) 2>&5
5290     ac_status=$?
5291     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292     (exit $ac_status); }; }; then
5293     ac_cv_struct_tm=time.h
5294     else
5295     echo "$as_me: failed program was:" >&5
5296     sed 's/^/| /' conftest.$ac_ext >&5
5297    
5298     ac_cv_struct_tm=sys/time.h
5299     fi
5300     rm -f conftest.$ac_objext conftest.$ac_ext
5301     fi
5302     echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5303     echo "${ECHO_T}$ac_cv_struct_tm" >&6
5304     if test $ac_cv_struct_tm = sys/time.h; then
5305    
5306     cat >>confdefs.h <<\_ACEOF
5307     #define TM_IN_SYS_TIME 1
5308     _ACEOF
5309    
5310     fi
5311    
5312     echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5313     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5314     if test "${ac_cv_type_uid_t+set}" = set; then
5315     echo $ECHO_N "(cached) $ECHO_C" >&6
5316     else
5317     cat >conftest.$ac_ext <<_ACEOF
5318     #line $LINENO "configure"
5319     /* confdefs.h. */
5320     _ACEOF
5321     cat confdefs.h >>conftest.$ac_ext
5322     cat >>conftest.$ac_ext <<_ACEOF
5323     /* end confdefs.h. */
5324     #include <sys/types.h>
5325    
5326     _ACEOF
5327     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328     $EGREP "uid_t" >/dev/null 2>&1; then
5329     ac_cv_type_uid_t=yes
5330     else
5331     ac_cv_type_uid_t=no
5332     fi
5333     rm -f conftest*
5334    
5335     fi
5336     echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5337     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5338     if test $ac_cv_type_uid_t = no; then
5339    
5340     cat >>confdefs.h <<\_ACEOF
5341     #define uid_t int
5342     _ACEOF
5343    
5344    
5345     cat >>confdefs.h <<\_ACEOF
5346     #define gid_t int
5347     _ACEOF
5348    
5349     fi
5350    
5351    
5352     # Checks for library functions.
5353     echo "$as_me:$LINENO: checking for error_at_line" >&5
5354     echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
5355     if test "${ac_cv_lib_error_at_line+set}" = set; then
5356     echo $ECHO_N "(cached) $ECHO_C" >&6
5357     else
5358     cat >conftest.$ac_ext <<_ACEOF
5359     #line $LINENO "configure"
5360     /* confdefs.h. */
5361     _ACEOF
5362     cat confdefs.h >>conftest.$ac_ext
5363     cat >>conftest.$ac_ext <<_ACEOF
5364     /* end confdefs.h. */
5365    
5366     int
5367     main ()
5368     {
5369     error_at_line (0, 0, "", 0, "");
5370     ;
5371     return 0;
5372     }
5373     _ACEOF
5374     rm -f conftest.$ac_objext conftest$ac_exeext
5375     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5376     (eval $ac_link) 2>&5
5377     ac_status=$?
5378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379     (exit $ac_status); } &&
5380     { ac_try='test -s conftest$ac_exeext'
5381     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382     (eval $ac_try) 2>&5
5383     ac_status=$?
5384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385     (exit $ac_status); }; }; then
5386     ac_cv_lib_error_at_line=yes
5387     else
5388     echo "$as_me: failed program was:" >&5
5389     sed 's/^/| /' conftest.$ac_ext >&5
5390    
5391     ac_cv_lib_error_at_line=no
5392     fi
5393     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5394     fi
5395     echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5396     echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5397     if test $ac_cv_lib_error_at_line = no; then
5398     LIBOBJS="$LIBOBJS error.$ac_objext"
5399     fi
5400    
5401    
5402    
5403     for ac_header in unistd.h vfork.h
5404     do
5405     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407     echo "$as_me:$LINENO: checking for $ac_header" >&5
5408     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410     echo $ECHO_N "(cached) $ECHO_C" >&6
5411     fi
5412     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5413     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414     else
5415     # Is the header compilable?
5416     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5417     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5418     cat >conftest.$ac_ext <<_ACEOF
5419     #line $LINENO "configure"
5420     /* confdefs.h. */
5421     _ACEOF
5422     cat confdefs.h >>conftest.$ac_ext
5423     cat >>conftest.$ac_ext <<_ACEOF
5424     /* end confdefs.h. */
5425     $ac_includes_default
5426     #include <$ac_header>
5427     _ACEOF
5428     rm -f conftest.$ac_objext
5429     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430     (eval $ac_compile) 2>&5
5431     ac_status=$?
5432     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433     (exit $ac_status); } &&
5434     { ac_try='test -s conftest.$ac_objext'
5435     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436     (eval $ac_try) 2>&5
5437     ac_status=$?
5438     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439     (exit $ac_status); }; }; then
5440     ac_header_compiler=yes
5441     else
5442     echo "$as_me: failed program was:" >&5
5443     sed 's/^/| /' conftest.$ac_ext >&5
5444    
5445     ac_header_compiler=no
5446     fi
5447     rm -f conftest.$ac_objext conftest.$ac_ext
5448     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5449     echo "${ECHO_T}$ac_header_compiler" >&6
5450    
5451     # Is the header present?
5452     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5453     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5454     cat >conftest.$ac_ext <<_ACEOF
5455     #line $LINENO "configure"
5456     /* confdefs.h. */
5457     _ACEOF
5458     cat confdefs.h >>conftest.$ac_ext
5459     cat >>conftest.$ac_ext <<_ACEOF
5460     /* end confdefs.h. */
5461     #include <$ac_header>
5462     _ACEOF
5463     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5464     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5465     ac_status=$?
5466     grep -v '^ *+' conftest.er1 >conftest.err
5467     rm -f conftest.er1
5468     cat conftest.err >&5
5469     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470     (exit $ac_status); } >/dev/null; then
5471     if test -s conftest.err; then
5472     ac_cpp_err=$ac_c_preproc_warn_flag
5473     else
5474     ac_cpp_err=
5475     fi
5476     else
5477     ac_cpp_err=yes
5478     fi
5479     if test -z "$ac_cpp_err"; then
5480     ac_header_preproc=yes
5481     else
5482     echo "$as_me: failed program was:" >&5
5483     sed 's/^/| /' conftest.$ac_ext >&5
5484    
5485     ac_header_preproc=no
5486     fi
5487     rm -f conftest.err conftest.$ac_ext
5488     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5489     echo "${ECHO_T}$ac_header_preproc" >&6
5490    
5491     # So? What about this header?
5492     case $ac_header_compiler:$ac_header_preproc in
5493     yes:no )
5494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5495     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5497     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5498     (
5499     cat <<\_ASBOX
5500     ## ------------------------------------ ##
5501     ## Report this to bug-autoconf@gnu.org. ##
5502     ## ------------------------------------ ##
5503     _ASBOX
5504     ) |
5505     sed "s/^/$as_me: WARNING: /" >&2
5506     ;;
5507     no:yes )
5508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5509     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5511     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5513     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5514     (
5515     cat <<\_ASBOX
5516     ## ------------------------------------ ##
5517     ## Report this to bug-autoconf@gnu.org. ##
5518     ## ------------------------------------ ##
5519     _ASBOX
5520     ) |
5521     sed "s/^/$as_me: WARNING: /" >&2
5522     ;;
5523     esac
5524     echo "$as_me:$LINENO: checking for $ac_header" >&5
5525     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5526     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5527     echo $ECHO_N "(cached) $ECHO_C" >&6
5528     else
5529     eval "$as_ac_Header=$ac_header_preproc"
5530     fi
5531     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533    
5534     fi
5535     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5536     cat >>confdefs.h <<_ACEOF
5537     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5538     _ACEOF
5539    
5540     fi
5541    
5542     done
5543    
5544    
5545    
5546     for ac_func in fork vfork
5547     do
5548     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5549     echo "$as_me:$LINENO: checking for $ac_func" >&5
5550     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5551     if eval "test \"\${$as_ac_var+set}\" = set"; then
5552     echo $ECHO_N "(cached) $ECHO_C" >&6
5553     else
5554     cat >conftest.$ac_ext <<_ACEOF
5555     #line $LINENO "configure"
5556     /* confdefs.h. */
5557     _ACEOF
5558     cat confdefs.h >>conftest.$ac_ext
5559     cat >>conftest.$ac_ext <<_ACEOF
5560     /* end confdefs.h. */
5561     /* System header to define __stub macros and hopefully few prototypes,
5562     which can conflict with char $ac_func (); below.
5563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5564     <limits.h> exists even on freestanding compilers. */
5565     #ifdef __STDC__
5566     # include <limits.h>
5567     #else
5568     # include <assert.h>
5569     #endif
5570     /* Override any gcc2 internal prototype to avoid an error. */
5571     #ifdef __cplusplus
5572     extern "C"
5573     {
5574     #endif
5575     /* We use char because int might match the return type of a gcc2
5576     builtin and then its argument prototype would still apply. */
5577     char $ac_func ();
5578     /* The GNU C library defines this for functions which it implements
5579     to always fail with ENOSYS. Some functions are actually named
5580     something starting with __ and the normal name is an alias. */
5581     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5582     choke me
5583     #else
5584     char (*f) () = $ac_func;
5585     #endif
5586     #ifdef __cplusplus
5587     }
5588     #endif
5589    
5590     int
5591     main ()
5592     {
5593     return f != $ac_func;
5594     ;
5595     return 0;
5596     }
5597     _ACEOF
5598     rm -f conftest.$ac_objext conftest$ac_exeext
5599     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600     (eval $ac_link) 2>&5
5601     ac_status=$?
5602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603     (exit $ac_status); } &&
5604     { ac_try='test -s conftest$ac_exeext'
5605     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606     (eval $ac_try) 2>&5
5607     ac_status=$?
5608     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609     (exit $ac_status); }; }; then
5610     eval "$as_ac_var=yes"
5611     else
5612     echo "$as_me: failed program was:" >&5
5613     sed 's/^/| /' conftest.$ac_ext >&5
5614    
5615     eval "$as_ac_var=no"
5616     fi
5617     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618     fi
5619     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5620     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5621     if test `eval echo '${'$as_ac_var'}'` = yes; then
5622     cat >>confdefs.h <<_ACEOF
5623     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5624     _ACEOF
5625    
5626     fi
5627     done
5628    
5629     if test "x$ac_cv_func_fork" = xyes; then
5630     echo "$as_me:$LINENO: checking for working fork" >&5
5631     echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5632     if test "${ac_cv_func_fork_works+set}" = set; then
5633     echo $ECHO_N "(cached) $ECHO_C" >&6
5634     else
5635     if test "$cross_compiling" = yes; then
5636     ac_cv_func_fork_works=cross
5637     else
5638     cat >conftest.$ac_ext <<_ACEOF
5639     /* By Ruediger Kuhlmann. */
5640     #include <sys/types.h>
5641     #if HAVE_UNISTD_H
5642     # include <unistd.h>
5643     #endif
5644     /* Some systems only have a dummy stub for fork() */
5645     int main ()
5646     {
5647     if (fork() < 0)
5648     exit (1);
5649     exit (0);
5650     }
5651     _ACEOF
5652     rm -f conftest$ac_exeext
5653     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654     (eval $ac_link) 2>&5
5655     ac_status=$?
5656     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5658     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659     (eval $ac_try) 2>&5
5660     ac_status=$?
5661     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662     (exit $ac_status); }; }; then
5663     ac_cv_func_fork_works=yes
5664     else
5665     echo "$as_me: program exited with status $ac_status" >&5
5666     echo "$as_me: failed program was:" >&5
5667     sed 's/^/| /' conftest.$ac_ext >&5
5668    
5669     ( exit $ac_status )
5670     ac_cv_func_fork_works=no
5671     fi
5672     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5673     fi
5674     fi
5675     echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5676     echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5677    
5678     else
5679     ac_cv_func_fork_works=$ac_cv_func_fork
5680     fi
5681     if test "x$ac_cv_func_fork_works" = xcross; then
5682     case $host in
5683     *-*-amigaos* | *-*-msdosdjgpp*)
5684     # Override, as these systems have only a dummy fork() stub
5685     ac_cv_func_fork_works=no
5686     ;;
5687     *)
5688     ac_cv_func_fork_works=yes
5689     ;;
5690     esac
5691     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5692     echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5693     fi
5694     ac_cv_func_vfork_works=$ac_cv_func_vfork
5695     if test "x$ac_cv_func_vfork" = xyes; then
5696     echo "$as_me:$LINENO: checking for working vfork" >&5
5697     echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5698     if test "${ac_cv_func_vfork_works+set}" = set; then
5699     echo $ECHO_N "(cached) $ECHO_C" >&6
5700     else
5701     if test "$cross_compiling" = yes; then
5702     ac_cv_func_vfork_works=cross
5703     else
5704     cat >conftest.$ac_ext <<_ACEOF
5705     #line $LINENO "configure"
5706     /* confdefs.h. */
5707     _ACEOF
5708     cat confdefs.h >>conftest.$ac_ext
5709     cat >>conftest.$ac_ext <<_ACEOF
5710     /* end confdefs.h. */
5711     /* Thanks to Paul Eggert for this test. */
5712     #include <stdio.h>
5713     #include <stdlib.h>
5714     #include <sys/types.h>
5715     #include <sys/stat.h>
5716     #include <sys/wait.h>
5717     #if HAVE_UNISTD_H
5718     # include <unistd.h>
5719     #endif
5720     #if HAVE_VFORK_H
5721     # include <vfork.h>
5722     #endif
5723     /* On some sparc systems, changes by the child to local and incoming
5724     argument registers are propagated back to the parent. The compiler
5725     is told about this with #include <vfork.h>, but some compilers
5726     (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5727     static variable whose address is put into a register that is
5728     clobbered by the vfork. */
5729     static void
5730     #ifdef __cplusplus
5731     sparc_address_test (int arg)
5732     # else
5733     sparc_address_test (arg) int arg;
5734     #endif
5735     {
5736     static pid_t child;
5737     if (!child) {
5738     child = vfork ();
5739     if (child < 0) {
5740     perror ("vfork");
5741     _exit(2);
5742     }
5743     if (!child) {
5744     arg = getpid();
5745     write(-1, "", 0);
5746     _exit (arg);
5747     }
5748     }
5749     }
5750    
5751     int
5752     main ()
5753     {
5754     pid_t parent = getpid ();
5755     pid_t child;
5756    
5757     sparc_address_test (0);
5758    
5759     child = vfork ();
5760    
5761     if (child == 0) {
5762     /* Here is another test for sparc vfork register problems. This
5763     test uses lots of local variables, at least as many local
5764     variables as main has allocated so far including compiler
5765     temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5766     4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5767     reuse the register of parent for one of the local variables,
5768     since it will think that parent can't possibly be used any more
5769     in this routine. Assigning to the local variable will thus
5770     munge parent in the parent process. */
5771     pid_t
5772     p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5773     p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5774     /* Convince the compiler that p..p7 are live; otherwise, it might
5775     use the same hardware register for all 8 local variables. */
5776     if (p != p1 || p != p2 || p != p3 || p != p4
5777     || p != p5 || p != p6 || p != p7)
5778     _exit(1);
5779    
5780     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5781     from child file descriptors. If the child closes a descriptor
5782     before it execs or exits, this munges the parent's descriptor
5783     as well. Test for this by closing stdout in the child. */
5784     _exit(close(fileno(stdout)) != 0);
5785     } else {
5786     int status;
5787     struct stat st;
5788    
5789     while (wait(&status) != child)
5790     ;
5791     exit(
5792     /* Was there some problem with vforking? */
5793     child < 0
5794    
5795     /* Did the child fail? (This shouldn't happen.) */
5796     || status
5797    
5798     /* Did the vfork/compiler bug occur? */
5799     || parent != getpid()
5800    
5801     /* Did the file descriptor bug occur? */
5802     || fstat(fileno(stdout), &st) != 0
5803     );
5804     }
5805     }
5806     _ACEOF
5807     rm -f conftest$ac_exeext
5808     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809     (eval $ac_link) 2>&5
5810     ac_status=$?
5811     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5813     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814     (eval $ac_try) 2>&5
5815     ac_status=$?
5816     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817     (exit $ac_status); }; }; then
5818     ac_cv_func_vfork_works=yes
5819     else
5820     echo "$as_me: program exited with status $ac_status" >&5
5821     echo "$as_me: failed program was:" >&5
5822     sed 's/^/| /' conftest.$ac_ext >&5
5823    
5824     ( exit $ac_status )
5825     ac_cv_func_vfork_works=no
5826     fi
5827     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5828     fi
5829     fi
5830     echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5831     echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5832    
5833     fi;
5834     if test "x$ac_cv_func_fork_works" = xcross; then
5835     ac_cv_func_vfork_works=ac_cv_func_vfork
5836     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5837     echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5838     fi
5839    
5840     if test "x$ac_cv_func_vfork_works" = xyes; then
5841    
5842     cat >>confdefs.h <<\_ACEOF
5843     #define HAVE_WORKING_VFORK 1
5844     _ACEOF
5845    
5846     else
5847    
5848     cat >>confdefs.h <<\_ACEOF
5849     #define vfork fork
5850     _ACEOF
5851    
5852     fi
5853     if test "x$ac_cv_func_fork_works" = xyes; then
5854    
5855     cat >>confdefs.h <<\_ACEOF
5856     #define HAVE_WORKING_FORK 1
5857     _ACEOF
5858    
5859     fi
5860    
5861    
5862     for ac_header in stdlib.h
5863     do
5864     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5866     echo "$as_me:$LINENO: checking for $ac_header" >&5
5867     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5868     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869     echo $ECHO_N "(cached) $ECHO_C" >&6
5870     fi
5871     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5872     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5873     else
5874     # Is the header compilable?
5875     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5876     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5877     cat >conftest.$ac_ext <<_ACEOF
5878     #line $LINENO "configure"
5879     /* confdefs.h. */
5880     _ACEOF
5881     cat confdefs.h >>conftest.$ac_ext
5882     cat >>conftest.$ac_ext <<_ACEOF
5883     /* end confdefs.h. */
5884     $ac_includes_default
5885     #include <$ac_header>
5886     _ACEOF
5887     rm -f conftest.$ac_objext
5888     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889     (eval $ac_compile) 2>&5
5890     ac_status=$?
5891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892     (exit $ac_status); } &&
5893     { ac_try='test -s conftest.$ac_objext'
5894     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895     (eval $ac_try) 2>&5
5896     ac_status=$?
5897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898     (exit $ac_status); }; }; then
5899     ac_header_compiler=yes
5900     else
5901     echo "$as_me: failed program was:" >&5
5902     sed 's/^/| /' conftest.$ac_ext >&5
5903    
5904     ac_header_compiler=no
5905     fi
5906     rm -f conftest.$ac_objext conftest.$ac_ext
5907     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5908     echo "${ECHO_T}$ac_header_compiler" >&6
5909    
5910     # Is the header present?
5911     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5912     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5913     cat >conftest.$ac_ext <<_ACEOF
5914     #line $LINENO "configure"
5915     /* confdefs.h. */
5916     _ACEOF
5917     cat confdefs.h >>conftest.$ac_ext
5918     cat >>conftest.$ac_ext <<_ACEOF
5919     /* end confdefs.h. */
5920     #include <$ac_header>
5921     _ACEOF
5922     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5923     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5924     ac_status=$?
5925     grep -v '^ *+' conftest.er1 >conftest.err
5926     rm -f conftest.er1
5927     cat conftest.err >&5
5928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929     (exit $ac_status); } >/dev/null; then
5930     if test -s conftest.err; then
5931     ac_cpp_err=$ac_c_preproc_warn_flag
5932     else
5933     ac_cpp_err=
5934     fi
5935     else
5936     ac_cpp_err=yes
5937     fi
5938     if test -z "$ac_cpp_err"; then
5939     ac_header_preproc=yes
5940     else
5941     echo "$as_me: failed program was:" >&5
5942     sed 's/^/| /' conftest.$ac_ext >&5
5943    
5944     ac_header_preproc=no
5945     fi
5946     rm -f conftest.err conftest.$ac_ext
5947     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5948     echo "${ECHO_T}$ac_header_preproc" >&6
5949    
5950     # So? What about this header?
5951     case $ac_header_compiler:$ac_header_preproc in
5952     yes:no )
5953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5954     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5956     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5957     (
5958     cat <<\_ASBOX
5959     ## ------------------------------------ ##
5960     ## Report this to bug-autoconf@gnu.org. ##
5961     ## ------------------------------------ ##
5962     _ASBOX
5963     ) |
5964     sed "s/^/$as_me: WARNING: /" >&2
5965     ;;
5966     no:yes )
5967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5968     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5969     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5970     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5972     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5973     (
5974     cat <<\_ASBOX
5975     ## ------------------------------------ ##
5976     ## Report this to bug-autoconf@gnu.org. ##
5977     ## ------------------------------------ ##
5978     _ASBOX
5979     ) |
5980     sed "s/^/$as_me: WARNING: /" >&2
5981     ;;
5982     esac
5983     echo "$as_me:$LINENO: checking for $ac_header" >&5
5984     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5985     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5986     echo $ECHO_N "(cached) $ECHO_C" >&6
5987     else
5988     eval "$as_ac_Header=$ac_header_preproc"
5989     fi
5990     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992    
5993     fi
5994     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5995     cat >>confdefs.h <<_ACEOF
5996     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997     _ACEOF
5998    
5999     fi
6000    
6001     done
6002    
6003     echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6004     echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6005     if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6006     echo $ECHO_N "(cached) $ECHO_C" >&6
6007     else
6008     if test "$cross_compiling" = yes; then
6009     ac_cv_func_malloc_0_nonnull=no
6010     else
6011     cat >conftest.$ac_ext <<_ACEOF
6012     #line $LINENO "configure"
6013     /* confdefs.h. */
6014     _ACEOF
6015     cat confdefs.h >>conftest.$ac_ext
6016     cat >>conftest.$ac_ext <<_ACEOF
6017     /* end confdefs.h. */
6018     #if STDC_HEADERS || HAVE_STDLIB_H
6019     # include <stdlib.h>
6020     #else
6021     char *malloc ();
6022     #endif
6023    
6024     int
6025     main ()
6026     {
6027     exit (malloc (0) ? 0 : 1);
6028     ;
6029     return 0;
6030     }
6031     _ACEOF
6032     rm -f conftest$ac_exeext
6033     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034     (eval $ac_link) 2>&5
6035     ac_status=$?
6036     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039     (eval $ac_try) 2>&5
6040     ac_status=$?
6041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042     (exit $ac_status); }; }; then
6043     ac_cv_func_malloc_0_nonnull=yes
6044     else
6045     echo "$as_me: program exited with status $ac_status" >&5
6046     echo "$as_me: failed program was:" >&5
6047     sed 's/^/| /' conftest.$ac_ext >&5
6048    
6049     ( exit $ac_status )
6050     ac_cv_func_malloc_0_nonnull=no
6051     fi
6052     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6053     fi
6054     fi
6055     echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6056     echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6057     if test $ac_cv_func_malloc_0_nonnull = yes; then
6058    
6059     cat >>confdefs.h <<\_ACEOF
6060     #define HAVE_MALLOC 1
6061     _ACEOF
6062    
6063     else
6064     cat >>confdefs.h <<\_ACEOF
6065     #define HAVE_MALLOC 0
6066     _ACEOF
6067    
6068     LIBOBJS="$LIBOBJS malloc.$ac_objext"
6069    
6070     cat >>confdefs.h <<\_ACEOF
6071     #define malloc rpl_malloc
6072     _ACEOF
6073    
6074     fi
6075    
6076    
6077    
6078    
6079    
6080     for ac_header in sys/time.h unistd.h
6081     do
6082     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084     echo "$as_me:$LINENO: checking for $ac_header" >&5
6085     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6086     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087     echo $ECHO_N "(cached) $ECHO_C" >&6
6088     fi
6089     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6090     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6091     else
6092     # Is the header compilable?
6093     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6095     cat >conftest.$ac_ext <<_ACEOF
6096     #line $LINENO "configure"
6097     /* confdefs.h. */
6098     _ACEOF
6099     cat confdefs.h >>conftest.$ac_ext
6100     cat >>conftest.$ac_ext <<_ACEOF
6101     /* end confdefs.h. */
6102     $ac_includes_default
6103     #include <$ac_header>
6104     _ACEOF
6105     rm -f conftest.$ac_objext
6106     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107     (eval $ac_compile) 2>&5
6108     ac_status=$?
6109     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110     (exit $ac_status); } &&
6111     { ac_try='test -s conftest.$ac_objext'
6112     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113     (eval $ac_try) 2>&5
6114     ac_status=$?
6115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116     (exit $ac_status); }; }; then
6117     ac_header_compiler=yes
6118     else
6119     echo "$as_me: failed program was:" >&5
6120     sed 's/^/| /' conftest.$ac_ext >&5
6121    
6122     ac_header_compiler=no
6123     fi
6124     rm -f conftest.$ac_objext conftest.$ac_ext
6125     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6126     echo "${ECHO_T}$ac_header_compiler" >&6
6127    
6128     # Is the header present?
6129     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6130     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6131     cat >conftest.$ac_ext <<_ACEOF
6132     #line $LINENO "configure"
6133     /* confdefs.h. */
6134     _ACEOF
6135     cat confdefs.h >>conftest.$ac_ext
6136     cat >>conftest.$ac_ext <<_ACEOF
6137     /* end confdefs.h. */
6138     #include <$ac_header>
6139     _ACEOF
6140     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142     ac_status=$?
6143     grep -v '^ *+' conftest.er1 >conftest.err
6144     rm -f conftest.er1
6145     cat conftest.err >&5
6146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147     (exit $ac_status); } >/dev/null; then
6148     if test -s conftest.err; then
6149     ac_cpp_err=$ac_c_preproc_warn_flag
6150     else
6151     ac_cpp_err=
6152     fi
6153     else
6154     ac_cpp_err=yes
6155     fi
6156     if test -z "$ac_cpp_err"; then
6157     ac_header_preproc=yes
6158     else
6159     echo "$as_me: failed program was:" >&5
6160     sed 's/^/| /' conftest.$ac_ext >&5
6161    
6162     ac_header_preproc=no
6163     fi
6164     rm -f conftest.err conftest.$ac_ext
6165     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6166     echo "${ECHO_T}$ac_header_preproc" >&6
6167    
6168     # So? What about this header?
6169     case $ac_header_compiler:$ac_header_preproc in
6170     yes:no )
6171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6172     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175     (
6176     cat <<\_ASBOX
6177     ## ------------------------------------ ##
6178     ## Report this to bug-autoconf@gnu.org. ##
6179     ## ------------------------------------ ##
6180     _ASBOX
6181     ) |
6182     sed "s/^/$as_me: WARNING: /" >&2
6183     ;;
6184     no:yes )
6185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6186     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6187     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6188     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191     (
6192     cat <<\_ASBOX
6193     ## ------------------------------------ ##
6194     ## Report this to bug-autoconf@gnu.org. ##
6195     ## ------------------------------------ ##
6196     _ASBOX
6197     ) |
6198     sed "s/^/$as_me: WARNING: /" >&2
6199     ;;
6200     esac
6201     echo "$as_me:$LINENO: checking for $ac_header" >&5
6202     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204     echo $ECHO_N "(cached) $ECHO_C" >&6
6205     else
6206     eval "$as_ac_Header=$ac_header_preproc"
6207     fi
6208     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210    
6211     fi
6212     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6213     cat >>confdefs.h <<_ACEOF
6214     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6215     _ACEOF
6216    
6217     fi
6218    
6219     done
6220    
6221    
6222     for ac_func in alarm
6223     do
6224     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6225     echo "$as_me:$LINENO: checking for $ac_func" >&5
6226     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6227     if eval "test \"\${$as_ac_var+set}\" = set"; then
6228     echo $ECHO_N "(cached) $ECHO_C" >&6
6229     else
6230     cat >conftest.$ac_ext <<_ACEOF
6231     #line $LINENO "configure"
6232     /* confdefs.h. */
6233     _ACEOF
6234     cat confdefs.h >>conftest.$ac_ext
6235     cat >>conftest.$ac_ext <<_ACEOF
6236     /* end confdefs.h. */
6237     /* System header to define __stub macros and hopefully few prototypes,
6238     which can conflict with char $ac_func (); below.
6239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240     <limits.h> exists even on freestanding compilers. */
6241     #ifdef __STDC__
6242     # include <limits.h>
6243     #else
6244     # include <assert.h>
6245     #endif
6246     /* Override any gcc2 internal prototype to avoid an error. */
6247     #ifdef __cplusplus
6248     extern "C"
6249     {
6250     #endif
6251     /* We use char because int might match the return type of a gcc2
6252     builtin and then its argument prototype would still apply. */
6253     char $ac_func ();
6254     /* The GNU C library defines this for functions which it implements
6255     to always fail with ENOSYS. Some functions are actually named
6256     something starting with __ and the normal name is an alias. */
6257     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258     choke me
6259     #else
6260     char (*f) () = $ac_func;
6261     #endif
6262     #ifdef __cplusplus
6263     }
6264     #endif
6265    
6266     int
6267     main ()
6268     {
6269     return f != $ac_func;
6270     ;
6271     return 0;
6272     }
6273     _ACEOF
6274     rm -f conftest.$ac_objext conftest$ac_exeext
6275     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276     (eval $ac_link) 2>&5
6277     ac_status=$?
6278     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279     (exit $ac_status); } &&
6280     { ac_try='test -s conftest$ac_exeext'
6281     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282     (eval $ac_try) 2>&5
6283     ac_status=$?
6284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285     (exit $ac_status); }; }; then
6286     eval "$as_ac_var=yes"
6287     else
6288     echo "$as_me: failed program was:" >&5
6289     sed 's/^/| /' conftest.$ac_ext >&5
6290    
6291     eval "$as_ac_var=no"
6292     fi
6293     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6294     fi
6295     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6296     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6297     if test `eval echo '${'$as_ac_var'}'` = yes; then
6298     cat >>confdefs.h <<_ACEOF
6299     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6300     _ACEOF
6301    
6302     fi
6303     done
6304    
6305     echo "$as_me:$LINENO: checking for working mktime" >&5
6306     echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
6307     if test "${ac_cv_func_working_mktime+set}" = set; then
6308     echo $ECHO_N "(cached) $ECHO_C" >&6
6309     else
6310     if test "$cross_compiling" = yes; then
6311     ac_cv_func_working_mktime=no
6312     else
6313     cat >conftest.$ac_ext <<_ACEOF
6314     #line $LINENO "configure"
6315     /* confdefs.h. */
6316     _ACEOF
6317     cat confdefs.h >>conftest.$ac_ext
6318     cat >>conftest.$ac_ext <<_ACEOF
6319     /* end confdefs.h. */
6320     /* Test program from Paul Eggert and Tony Leneis. */
6321     #if TIME_WITH_SYS_TIME
6322     # include <sys/time.h>
6323     # include <time.h>
6324     #else
6325     # if HAVE_SYS_TIME_H
6326     # include <sys/time.h>
6327     # else
6328     # include <time.h>
6329     # endif
6330     #endif
6331    
6332     #if HAVE_UNISTD_H
6333     # include <unistd.h>
6334     #endif
6335    
6336     #if !HAVE_ALARM
6337     # define alarm(X) /* empty */
6338     #endif
6339    
6340     /* Work around redefinition to rpl_putenv by other config tests. */
6341     #undef putenv
6342    
6343     static time_t time_t_max;
6344    
6345     /* Values we'll use to set the TZ environment variable. */
6346     static const char *const tz_strings[] = {
6347     (const char *) 0, "TZ=GMT0", "TZ=JST-9",
6348     "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6349     };
6350     #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6351    
6352     /* Fail if mktime fails to convert a date in the spring-forward gap.
6353     Based on a problem report from Andreas Jaeger. */
6354     static void
6355     spring_forward_gap ()
6356     {
6357     /* glibc (up to about 1998-10-07) failed this test. */
6358     struct tm tm;
6359    
6360     /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6361     instead of "TZ=America/Vancouver" in order to detect the bug even
6362     on systems that don't support the Olson extension, or don't have the
6363     full zoneinfo tables installed. */
6364     putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6365    
6366     tm.tm_year = 98;
6367     tm.tm_mon = 3;
6368     tm.tm_mday = 5;
6369     tm.tm_hour = 2;
6370     tm.tm_min = 0;
6371     tm.tm_sec = 0;
6372     tm.tm_isdst = -1;
6373     if (mktime (&tm) == (time_t)-1)
6374     exit (1);
6375     }
6376    
6377     static void
6378     mktime_test (now)
6379     time_t now;
6380     {
6381     struct tm *lt;
6382     if ((lt = localtime (&now)) && mktime (lt) != now)
6383     exit (1);
6384     now = time_t_max - now;
6385     if ((lt = localtime (&now)) && mktime (lt) != now)
6386     exit (1);
6387     }
6388    
6389     static void
6390     irix_6_4_bug ()
6391     {
6392     /* Based on code from Ariel Faigon. */
6393     struct tm tm;
6394     tm.tm_year = 96;
6395     tm.tm_mon = 3;
6396     tm.tm_mday = 0;
6397     tm.tm_hour = 0;
6398     tm.tm_min = 0;
6399     tm.tm_sec = 0;
6400     tm.tm_isdst = -1;
6401     mktime (&tm);
6402     if (tm.tm_mon != 2 || tm.tm_mday != 31)
6403     exit (1);
6404     }
6405    
6406     static void
6407     bigtime_test (j)
6408     int j;
6409     {
6410     struct tm tm;
6411     time_t now;
6412     tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6413     now = mktime (&tm);
6414     if (now != (time_t) -1)
6415     {
6416     struct tm *lt = localtime (&now);
6417     if (! (lt
6418     && lt->tm_year == tm.tm_year
6419     && lt->tm_mon == tm.tm_mon
6420     && lt->tm_mday == tm.tm_mday
6421     && lt->tm_hour == tm.tm_hour
6422     && lt->tm_min == tm.tm_min
6423     && lt->tm_sec == tm.tm_sec
6424     && lt->tm_yday == tm.tm_yday
6425     && lt->tm_wday == tm.tm_wday
6426     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6427     == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6428     exit (1);
6429     }
6430     }
6431    
6432     int
6433     main ()
6434     {
6435     time_t t, delta;
6436     int i, j;
6437    
6438     /* This test makes some buggy mktime implementations loop.
6439     Give up after 60 seconds; a mktime slower than that
6440     isn't worth using anyway. */
6441     alarm (60);
6442    
6443     for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6444     continue;
6445     time_t_max--;
6446     delta = time_t_max / 997; /* a suitable prime number */
6447     for (i = 0; i < N_STRINGS; i++)
6448     {
6449     if (tz_strings[i])
6450     putenv (tz_strings[i]);
6451    
6452     for (t = 0; t <= time_t_max - delta; t += delta)
6453     mktime_test (t);
6454     mktime_test ((time_t) 60 * 60);
6455     mktime_test ((time_t) 60 * 60 * 24);
6456    
6457     for (j = 1; 0 < j; j *= 2)
6458     bigtime_test (j);
6459     bigtime_test (j - 1);
6460     }
6461     irix_6_4_bug ();
6462     spring_forward_gap ();
6463     exit (0);
6464     }
6465     _ACEOF
6466     rm -f conftest$ac_exeext
6467     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468     (eval $ac_link) 2>&5
6469     ac_status=$?
6470     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6472     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473     (eval $ac_try) 2>&5
6474     ac_status=$?
6475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476     (exit $ac_status); }; }; then
6477     ac_cv_func_working_mktime=yes
6478     else
6479     echo "$as_me: program exited with status $ac_status" >&5
6480     echo "$as_me: failed program was:" >&5
6481     sed 's/^/| /' conftest.$ac_ext >&5
6482    
6483     ( exit $ac_status )
6484     ac_cv_func_working_mktime=no
6485     fi
6486     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6487     fi
6488     fi
6489     echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
6490     echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
6491     if test $ac_cv_func_working_mktime = no; then
6492     LIBOBJS="$LIBOBJS mktime.$ac_objext"
6493     fi
6494    
6495    
6496     for ac_header in stdlib.h
6497     do
6498     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6499     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500     echo "$as_me:$LINENO: checking for $ac_header" >&5
6501     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6502     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6503     echo $ECHO_N "(cached) $ECHO_C" >&6
6504     fi
6505     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6506     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6507     else
6508     # Is the header compilable?
6509     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6510     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6511     cat >conftest.$ac_ext <<_ACEOF
6512     #line $LINENO "configure"
6513     /* confdefs.h. */
6514     _ACEOF
6515     cat confdefs.h >>conftest.$ac_ext
6516     cat >>conftest.$ac_ext <<_ACEOF
6517     /* end confdefs.h. */
6518     $ac_includes_default
6519     #include <$ac_header>
6520     _ACEOF
6521     rm -f conftest.$ac_objext
6522     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523     (eval $ac_compile) 2>&5
6524     ac_status=$?
6525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526     (exit $ac_status); } &&
6527     { ac_try='test -s conftest.$ac_objext'
6528     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529     (eval $ac_try) 2>&5
6530     ac_status=$?
6531     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532     (exit $ac_status); }; }; then
6533     ac_header_compiler=yes
6534     else
6535     echo "$as_me: failed program was:" >&5
6536     sed 's/^/| /' conftest.$ac_ext >&5
6537    
6538     ac_header_compiler=no
6539     fi
6540     rm -f conftest.$ac_objext conftest.$ac_ext
6541     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542     echo "${ECHO_T}$ac_header_compiler" >&6
6543    
6544     # Is the header present?
6545     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6546     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6547     cat >conftest.$ac_ext <<_ACEOF
6548     #line $LINENO "configure"
6549     /* confdefs.h. */
6550     _ACEOF
6551     cat confdefs.h >>conftest.$ac_ext
6552     cat >>conftest.$ac_ext <<_ACEOF
6553     /* end confdefs.h. */
6554     #include <$ac_header>
6555     _ACEOF
6556     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6557     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6558     ac_status=$?
6559     grep -v '^ *+' conftest.er1 >conftest.err
6560     rm -f conftest.er1
6561     cat conftest.err >&5
6562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563     (exit $ac_status); } >/dev/null; then
6564     if test -s conftest.err; then
6565     ac_cpp_err=$ac_c_preproc_warn_flag
6566     else
6567     ac_cpp_err=
6568     fi
6569     else
6570     ac_cpp_err=yes
6571     fi
6572     if test -z "$ac_cpp_err"; then
6573     ac_header_preproc=yes
6574     else
6575     echo "$as_me: failed program was:" >&5
6576     sed 's/^/| /' conftest.$ac_ext >&5
6577    
6578     ac_header_preproc=no
6579     fi
6580     rm -f conftest.err conftest.$ac_ext
6581     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582     echo "${ECHO_T}$ac_header_preproc" >&6
6583    
6584     # So? What about this header?
6585     case $ac_header_compiler:$ac_header_preproc in
6586     yes:no )
6587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6588     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6590     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6591     (
6592     cat <<\_ASBOX
6593     ## ------------------------------------ ##
6594     ## Report this to bug-autoconf@gnu.org. ##
6595     ## ------------------------------------ ##
6596     _ASBOX
6597     ) |
6598     sed "s/^/$as_me: WARNING: /" >&2
6599     ;;
6600     no:yes )
6601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6604     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6606     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6607     (
6608     cat <<\_ASBOX
6609     ## ------------------------------------ ##
6610     ## Report this to bug-autoconf@gnu.org. ##
6611     ## ------------------------------------ ##
6612     _ASBOX
6613     ) |
6614     sed "s/^/$as_me: WARNING: /" >&2
6615     ;;
6616     esac
6617     echo "$as_me:$LINENO: checking for $ac_header" >&5
6618     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6619     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6620     echo $ECHO_N "(cached) $ECHO_C" >&6
6621     else
6622     eval "$as_ac_Header=$ac_header_preproc"
6623     fi
6624     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626    
6627     fi
6628     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629     cat >>confdefs.h <<_ACEOF
6630     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631     _ACEOF
6632    
6633     fi
6634    
6635     done
6636    
6637     echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
6638     echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
6639     if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
6640     echo $ECHO_N "(cached) $ECHO_C" >&6
6641     else
6642     if test "$cross_compiling" = yes; then
6643     ac_cv_func_realloc_0_nonnull=no
6644     else
6645     cat >conftest.$ac_ext <<_ACEOF
6646     #line $LINENO "configure"
6647     /* confdefs.h. */
6648     _ACEOF
6649     cat confdefs.h >>conftest.$ac_ext
6650     cat >>conftest.$ac_ext <<_ACEOF
6651     /* end confdefs.h. */
6652     #if STDC_HEADERS || HAVE_STDLIB_H
6653     # include <stdlib.h>
6654     #else
6655     char *realloc ();
6656     #endif
6657    
6658     int
6659     main ()
6660     {
6661     exit (realloc (0, 0) ? 0 : 1);
6662     ;
6663     return 0;
6664     }
6665     _ACEOF
6666     rm -f conftest$ac_exeext
6667     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668     (eval $ac_link) 2>&5
6669     ac_status=$?
6670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6672     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673     (eval $ac_try) 2>&5
6674     ac_status=$?
6675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676     (exit $ac_status); }; }; then
6677     ac_cv_func_realloc_0_nonnull=yes
6678     else
6679     echo "$as_me: program exited with status $ac_status" >&5
6680     echo "$as_me: failed program was:" >&5
6681     sed 's/^/| /' conftest.$ac_ext >&5
6682    
6683     ( exit $ac_status )
6684     ac_cv_func_realloc_0_nonnull=no
6685     fi
6686     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6687     fi
6688     fi
6689     echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6690     echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
6691     if test $ac_cv_func_realloc_0_nonnull = yes; then
6692    
6693     cat >>confdefs.h <<\_ACEOF
6694     #define HAVE_REALLOC 1
6695     _ACEOF
6696    
6697     else
6698     cat >>confdefs.h <<\_ACEOF
6699     #define HAVE_REALLOC 0
6700     _ACEOF
6701    
6702     LIBOBJS="$LIBOBJS realloc.$ac_objext"
6703    
6704     cat >>confdefs.h <<\_ACEOF
6705     #define realloc rpl_realloc
6706     _ACEOF
6707    
6708     fi
6709    
6710    
6711    
6712    
6713    
6714     for ac_header in sys/select.h sys/socket.h
6715     do
6716     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6717     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718     echo "$as_me:$LINENO: checking for $ac_header" >&5
6719     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6720     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721     echo $ECHO_N "(cached) $ECHO_C" >&6
6722     fi
6723     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6724     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6725     else
6726     # Is the header compilable?
6727     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6728     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6729     cat >conftest.$ac_ext <<_ACEOF
6730     #line $LINENO "configure"
6731     /* confdefs.h. */
6732     _ACEOF
6733     cat confdefs.h >>conftest.$ac_ext
6734     cat >>conftest.$ac_ext <<_ACEOF
6735     /* end confdefs.h. */
6736     $ac_includes_default
6737     #include <$ac_header>
6738     _ACEOF
6739     rm -f conftest.$ac_objext
6740     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741     (eval $ac_compile) 2>&5
6742     ac_status=$?
6743     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744     (exit $ac_status); } &&
6745     { ac_try='test -s conftest.$ac_objext'
6746     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747     (eval $ac_try) 2>&5
6748     ac_status=$?
6749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750     (exit $ac_status); }; }; then
6751     ac_header_compiler=yes
6752     else
6753     echo "$as_me: failed program was:" >&5
6754     sed 's/^/| /' conftest.$ac_ext >&5
6755    
6756     ac_header_compiler=no
6757     fi
6758     rm -f conftest.$ac_objext conftest.$ac_ext
6759     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760     echo "${ECHO_T}$ac_header_compiler" >&6
6761    
6762     # Is the header present?
6763     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6765     cat >conftest.$ac_ext <<_ACEOF
6766     #line $LINENO "configure"
6767     /* confdefs.h. */
6768     _ACEOF
6769     cat confdefs.h >>conftest.$ac_ext
6770     cat >>conftest.$ac_ext <<_ACEOF
6771     /* end confdefs.h. */
6772     #include <$ac_header>
6773     _ACEOF
6774     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776     ac_status=$?
6777     grep -v '^ *+' conftest.er1 >conftest.err
6778     rm -f conftest.er1
6779     cat conftest.err >&5
6780     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781     (exit $ac_status); } >/dev/null; then
6782     if test -s conftest.err; then
6783     ac_cpp_err=$ac_c_preproc_warn_flag
6784     else
6785     ac_cpp_err=
6786     fi
6787     else
6788     ac_cpp_err=yes
6789     fi
6790     if test -z "$ac_cpp_err"; then
6791     ac_header_preproc=yes
6792     else
6793     echo "$as_me: failed program was:" >&5
6794     sed 's/^/| /' conftest.$ac_ext >&5
6795    
6796     ac_header_preproc=no
6797     fi
6798     rm -f conftest.err conftest.$ac_ext
6799     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6800     echo "${ECHO_T}$ac_header_preproc" >&6
6801    
6802     # So? What about this header?
6803     case $ac_header_compiler:$ac_header_preproc in
6804     yes:no )
6805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6806     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6808     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6809     (
6810     cat <<\_ASBOX
6811     ## ------------------------------------ ##
6812     ## Report this to bug-autoconf@gnu.org. ##
6813     ## ------------------------------------ ##
6814     _ASBOX
6815     ) |
6816     sed "s/^/$as_me: WARNING: /" >&2
6817     ;;
6818     no:yes )
6819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6820     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6821     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6822     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6824     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6825     (
6826     cat <<\_ASBOX
6827     ## ------------------------------------ ##
6828     ## Report this to bug-autoconf@gnu.org. ##
6829     ## ------------------------------------ ##
6830     _ASBOX
6831     ) |
6832     sed "s/^/$as_me: WARNING: /" >&2
6833     ;;
6834     esac
6835     echo "$as_me:$LINENO: checking for $ac_header" >&5
6836     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6837     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6838     echo $ECHO_N "(cached) $ECHO_C" >&6
6839     else
6840     eval "$as_ac_Header=$ac_header_preproc"
6841     fi
6842     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6843     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6844    
6845     fi
6846     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6847     cat >>confdefs.h <<_ACEOF
6848     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6849     _ACEOF
6850    
6851     fi
6852    
6853     done
6854    
6855     echo "$as_me:$LINENO: checking types of arguments for select" >&5
6856     echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
6857     if test "${ac_cv_func_select_args+set}" = set; then
6858     echo $ECHO_N "(cached) $ECHO_C" >&6
6859     else
6860     for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6861     for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
6862     for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6863     cat >conftest.$ac_ext <<_ACEOF
6864     #line $LINENO "configure"
6865     /* confdefs.h. */
6866     _ACEOF
6867     cat confdefs.h >>conftest.$ac_ext
6868     cat >>conftest.$ac_ext <<_ACEOF
6869     /* end confdefs.h. */
6870     $ac_includes_default
6871     #if HAVE_SYS_SELECT_H
6872     # include <sys/select.h>
6873     #endif
6874     #if HAVE_SYS_SOCKET_H
6875     # include <sys/socket.h>
6876     #endif
6877    
6878     int
6879     main ()
6880     {
6881     extern int select ($ac_arg1,
6882     $ac_arg234, $ac_arg234, $ac_arg234,
6883     $ac_arg5);
6884     ;
6885     return 0;
6886     }
6887     _ACEOF
6888     rm -f conftest.$ac_objext
6889     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890     (eval $ac_compile) 2>&5
6891     ac_status=$?
6892     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893     (exit $ac_status); } &&
6894     { ac_try='test -s conftest.$ac_objext'
6895     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896     (eval $ac_try) 2>&5
6897     ac_status=$?
6898     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899     (exit $ac_status); }; }; then
6900     ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6901     else
6902     echo "$as_me: failed program was:" >&5
6903     sed 's/^/| /' conftest.$ac_ext >&5
6904    
6905     fi
6906     rm -f conftest.$ac_objext conftest.$ac_ext
6907     done
6908     done
6909     done
6910     # Provide a safe default value.
6911     : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6912    
6913     fi
6914     echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6915     echo "${ECHO_T}$ac_cv_func_select_args" >&6
6916     ac_save_IFS=$IFS; IFS=','
6917     set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6918     IFS=$ac_save_IFS
6919     shift
6920    
6921     cat >>confdefs.h <<_ACEOF
6922     #define SELECT_TYPE_ARG1 $1
6923     _ACEOF
6924    
6925    
6926     cat >>confdefs.h <<_ACEOF
6927     #define SELECT_TYPE_ARG234 ($2)
6928     _ACEOF
6929    
6930    
6931     cat >>confdefs.h <<_ACEOF
6932     #define SELECT_TYPE_ARG5 ($3)
6933     _ACEOF
6934    
6935     rm -f conftest*
6936    
6937     echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6938     echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
6939     if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6940     echo $ECHO_N "(cached) $ECHO_C" >&6
6941     else
6942     rm -f conftest.sym conftest.file
6943     echo >conftest.file
6944     if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6945     if test "$cross_compiling" = yes; then
6946     ac_cv_func_lstat_dereferences_slashed_symlink=no
6947     else
6948     cat >conftest.$ac_ext <<_ACEOF
6949     #line $LINENO "configure"
6950     /* confdefs.h. */
6951     _ACEOF
6952     cat confdefs.h >>conftest.$ac_ext
6953     cat >>conftest.$ac_ext <<_ACEOF
6954     /* end confdefs.h. */
6955     $ac_includes_default
6956     int
6957     main ()
6958     {
6959     struct stat sbuf;
6960     /* Linux will dereference the symlink and fail.
6961     That is better in the sense that it means we will not
6962     have to compile and use the lstat wrapper. */
6963     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6964     ;
6965     return 0;
6966     }
6967     _ACEOF
6968     rm -f conftest$ac_exeext
6969     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970     (eval $ac_link) 2>&5
6971     ac_status=$?
6972     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6974     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975     (eval $ac_try) 2>&5
6976     ac_status=$?
6977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978     (exit $ac_status); }; }; then
6979     ac_cv_func_lstat_dereferences_slashed_symlink=yes
6980     else
6981     echo "$as_me: program exited with status $ac_status" >&5
6982     echo "$as_me: failed program was:" >&5
6983     sed 's/^/| /' conftest.$ac_ext >&5
6984    
6985     ( exit $ac_status )
6986     ac_cv_func_lstat_dereferences_slashed_symlink=no
6987     fi
6988     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6989     fi
6990     else
6991     # If the `ln -s' command failed, then we probably don't even
6992     # have an lstat function.
6993     ac_cv_func_lstat_dereferences_slashed_symlink=no
6994     fi
6995     rm -f conftest.sym conftest.file
6996    
6997     fi
6998     echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6999     echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
7000    
7001     test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7002    
7003     cat >>confdefs.h <<_ACEOF
7004     #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7005     _ACEOF
7006    
7007    
7008     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7009     LIBOBJS="$LIBOBJS lstat.$ac_objext"
7010     fi
7011    
7012     echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7013     echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
7014     if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7015     echo $ECHO_N "(cached) $ECHO_C" >&6
7016     else
7017     if test "$cross_compiling" = yes; then
7018     ac_cv_func_stat_empty_string_bug=yes
7019     else
7020     cat >conftest.$ac_ext <<_ACEOF
7021     #line $LINENO "configure"
7022     /* confdefs.h. */
7023     _ACEOF
7024     cat confdefs.h >>conftest.$ac_ext
7025     cat >>conftest.$ac_ext <<_ACEOF
7026     /* end confdefs.h. */
7027     $ac_includes_default
7028     int
7029     main ()
7030     {
7031     struct stat sbuf;
7032     exit (stat ("", &sbuf) ? 1 : 0);
7033     ;
7034     return 0;
7035     }
7036     _ACEOF
7037     rm -f conftest$ac_exeext
7038     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039     (eval $ac_link) 2>&5
7040     ac_status=$?
7041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7043     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044     (eval $ac_try) 2>&5
7045     ac_status=$?
7046     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047     (exit $ac_status); }; }; then
7048     ac_cv_func_stat_empty_string_bug=yes
7049     else
7050     echo "$as_me: program exited with status $ac_status" >&5
7051     echo "$as_me: failed program was:" >&5
7052     sed 's/^/| /' conftest.$ac_ext >&5
7053    
7054     ( exit $ac_status )
7055     ac_cv_func_stat_empty_string_bug=no
7056     fi
7057     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7058     fi
7059     fi
7060     echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7061     echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
7062     if test $ac_cv_func_stat_empty_string_bug = yes; then
7063     LIBOBJS="$LIBOBJS stat.$ac_objext"
7064    
7065     cat >>confdefs.h <<_ACEOF
7066     #define HAVE_STAT_EMPTY_STRING_BUG 1
7067     _ACEOF
7068    
7069     fi
7070    
7071    
7072    
7073    
7074    
7075    
7076    
7077    
7078    
7079    
7080    
7081    
7082    
7083    
7084    
7085    
7086    
7087    
7088    
7089     for ac_func in bzero dup2 getcwd gethostbyname gethostname inet_ntoa memmove memset mkfifo select setenv socket strchr strdup strerror strndup strstr uname
7090     do
7091     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7092     echo "$as_me:$LINENO: checking for $ac_func" >&5
7093     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7094     if eval "test \"\${$as_ac_var+set}\" = set"; then
7095     echo $ECHO_N "(cached) $ECHO_C" >&6
7096     else
7097     cat >conftest.$ac_ext <<_ACEOF
7098     #line $LINENO "configure"
7099     /* confdefs.h. */
7100     _ACEOF
7101     cat confdefs.h >>conftest.$ac_ext
7102     cat >>conftest.$ac_ext <<_ACEOF
7103     /* end confdefs.h. */
7104     /* System header to define __stub macros and hopefully few prototypes,
7105     which can conflict with char $ac_func (); below.
7106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107     <limits.h> exists even on freestanding compilers. */
7108     #ifdef __STDC__
7109     # include <limits.h>
7110     #else
7111     # include <assert.h>
7112     #endif
7113     /* Override any gcc2 internal prototype to avoid an error. */
7114     #ifdef __cplusplus
7115     extern "C"
7116     {
7117     #endif
7118     /* We use char because int might match the return type of a gcc2
7119     builtin and then its argument prototype would still apply. */
7120     char $ac_func ();
7121     /* The GNU C library defines this for functions which it implements
7122     to always fail with ENOSYS. Some functions are actually named
7123     something starting with __ and the normal name is an alias. */
7124     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7125     choke me
7126     #else
7127     char (*f) () = $ac_func;
7128     #endif
7129     #ifdef __cplusplus
7130     }
7131     #endif
7132    
7133     int
7134     main ()
7135     {
7136     return f != $ac_func;
7137     ;
7138     return 0;
7139     }
7140     _ACEOF
7141     rm -f conftest.$ac_objext conftest$ac_exeext
7142     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143     (eval $ac_link) 2>&5
7144     ac_status=$?
7145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146     (exit $ac_status); } &&
7147     { ac_try='test -s conftest$ac_exeext'
7148     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149     (eval $ac_try) 2>&5
7150     ac_status=$?
7151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152     (exit $ac_status); }; }; then
7153     eval "$as_ac_var=yes"
7154     else
7155     echo "$as_me: failed program was:" >&5
7156     sed 's/^/| /' conftest.$ac_ext >&5
7157    
7158     eval "$as_ac_var=no"
7159     fi
7160     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7161     fi
7162     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7163     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7164     if test `eval echo '${'$as_ac_var'}'` = yes; then
7165     cat >>confdefs.h <<_ACEOF
7166     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7167     _ACEOF
7168    
7169     fi
7170     done
7171    
7172    
7173 gcodispo 1.8 ac_config_files="$ac_config_files BossClient/Makefile BossClient/src/Makefile BossCore/Makefile BossCore/src/Makefile BossPython/Makefile BossRTMon/Makefile BossRTMon/src/Makefile BossSched/Makefile BossSched/src/Makefile BossWrapper/Makefile BossWrapper/src/Makefile ClassAdLite/Makefile ClassAdLite/src/Makefile ClassAdLite/test/Makefile Examples/Makefile Makefile OSUtils/Makefile OSUtils/src/Makefile OSUtils/test/Makefile SirDB/Makefile SirDB/src/Makefile install.sh"
7174 gcodispo 1.1
7175    
7176     ac_config_commands="$ac_config_commands install"
7177    
7178    
7179     cat >confcache <<\_ACEOF
7180     # This file is a shell script that caches the results of configure
7181     # tests run on this system so they can be shared between configure
7182     # scripts and configure runs, see configure's option --config-cache.
7183     # It is not useful on other systems. If it contains results you don't
7184     # want to keep, you may remove or edit it.
7185     #
7186     # config.status only pays attention to the cache file if you give it
7187     # the --recheck option to rerun configure.
7188     #
7189     # `ac_cv_env_foo' variables (set or unset) will be overridden when
7190     # loading this file, other *unset* `ac_cv_foo' will be assigned the
7191     # following values.
7192    
7193     _ACEOF
7194    
7195     # The following way of writing the cache mishandles newlines in values,
7196     # but we know of no workaround that is simple, portable, and efficient.
7197     # So, don't put newlines in cache variables' values.
7198     # Ultrix sh set writes to stderr and can't be redirected directly,
7199     # and sets the high bit in the cache file unless we assign to the vars.
7200     {
7201     (set) 2>&1 |
7202     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7203     *ac_space=\ *)
7204     # `set' does not quote correctly, so add quotes (double-quote
7205     # substitution turns \\\\ into \\, and sed turns \\ into \).
7206     sed -n \
7207     "s/'/'\\\\''/g;
7208     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7209     ;;
7210     *)
7211     # `set' quotes correctly as required by POSIX, so do not add quotes.
7212     sed -n \
7213     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7214     ;;
7215     esac;
7216     } |
7217     sed '
7218     t clear
7219     : clear
7220     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7221     t end
7222     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7223     : end' >>confcache
7224     if diff $cache_file confcache >/dev/null 2>&1; then :; else
7225     if test -w $cache_file; then
7226     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7227     cat confcache >$cache_file
7228     else
7229     echo "not updating unwritable cache $cache_file"
7230     fi
7231     fi
7232     rm -f confcache
7233    
7234     test "x$prefix" = xNONE && prefix=$ac_default_prefix
7235     # Let make expand exec_prefix.
7236     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7237    
7238     # VPATH may cause trouble with some makes, so we remove $(srcdir),
7239     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7240     # trailing colons and then remove the whole line if VPATH becomes empty
7241     # (actually we leave an empty line to preserve line numbers).
7242     if test "x$srcdir" = x.; then
7243     ac_vpsub='/^[ ]*VPATH[ ]*=/{
7244     s/:*\$(srcdir):*/:/;
7245     s/:*\${srcdir}:*/:/;
7246     s/:*@srcdir@:*/:/;
7247     s/^\([^=]*=[ ]*\):*/\1/;
7248     s/:*$//;
7249     s/^[^=]*=[ ]*$//;
7250     }'
7251     fi
7252    
7253     DEFS=-DHAVE_CONFIG_H
7254    
7255     ac_libobjs=
7256     ac_ltlibobjs=
7257     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7258     # 1. Remove the extension, and $U if already installed.
7259     ac_i=`echo "$ac_i" |
7260     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7261     # 2. Add them.
7262     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7263     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7264     done
7265     LIBOBJS=$ac_libobjs
7266    
7267     LTLIBOBJS=$ac_ltlibobjs
7268    
7269    
7270    
7271     : ${CONFIG_STATUS=./config.status}
7272     ac_clean_files_save=$ac_clean_files
7273     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7274     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7275     echo "$as_me: creating $CONFIG_STATUS" >&6;}
7276     cat >$CONFIG_STATUS <<_ACEOF
7277     #! $SHELL
7278     # Generated by $as_me.
7279     # Run this file to recreate the current configuration.
7280     # Compiler output produced by configure, useful for debugging
7281     # configure, is in config.log if it exists.
7282    
7283     debug=false
7284     ac_cs_recheck=false
7285     ac_cs_silent=false
7286     SHELL=\${CONFIG_SHELL-$SHELL}
7287     _ACEOF
7288    
7289     cat >>$CONFIG_STATUS <<\_ACEOF
7290     ## --------------------- ##
7291     ## M4sh Initialization. ##
7292     ## --------------------- ##
7293    
7294     # Be Bourne compatible
7295     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7296     emulate sh
7297     NULLCMD=:
7298     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7299     # is contrary to our usage. Disable this feature.
7300     alias -g '${1+"$@"}'='"$@"'
7301     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7302     set -o posix
7303     fi
7304    
7305     # Support unset when possible.
7306     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7307     as_unset=unset
7308     else
7309     as_unset=false
7310     fi
7311    
7312    
7313     # Work around bugs in pre-3.0 UWIN ksh.
7314     $as_unset ENV MAIL MAILPATH
7315     PS1='$ '
7316     PS2='> '
7317     PS4='+ '
7318    
7319     # NLS nuisances.
7320     for as_var in \
7321     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7322     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7323     LC_TELEPHONE LC_TIME
7324     do
7325     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7326     eval $as_var=C; export $as_var
7327     else
7328     $as_unset $as_var
7329     fi
7330     done
7331    
7332     # Required to use basename.
7333     if expr a : '\(a\)' >/dev/null 2>&1; then
7334     as_expr=expr
7335     else
7336     as_expr=false
7337     fi
7338    
7339     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7340     as_basename=basename
7341     else
7342     as_basename=false
7343     fi
7344    
7345    
7346     # Name of the executable.
7347     as_me=`$as_basename "$0" ||
7348     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7349     X"$0" : 'X\(//\)$' \| \
7350     X"$0" : 'X\(/\)$' \| \
7351     . : '\(.\)' 2>/dev/null ||
7352     echo X/"$0" |
7353     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7354     /^X\/\(\/\/\)$/{ s//\1/; q; }
7355     /^X\/\(\/\).*/{ s//\1/; q; }
7356     s/.*/./; q'`
7357    
7358    
7359     # PATH needs CR, and LINENO needs CR and PATH.
7360     # Avoid depending upon Character Ranges.
7361     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7362     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7363     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7364     as_cr_digits='0123456789'
7365     as_cr_alnum=$as_cr_Letters$as_cr_digits
7366    
7367     # The user is always right.
7368     if test "${PATH_SEPARATOR+set}" != set; then
7369     echo "#! /bin/sh" >conf$$.sh
7370     echo "exit 0" >>conf$$.sh
7371     chmod +x conf$$.sh
7372     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7373     PATH_SEPARATOR=';'
7374     else
7375     PATH_SEPARATOR=:
7376     fi
7377     rm -f conf$$.sh
7378     fi
7379    
7380    
7381     as_lineno_1=$LINENO
7382     as_lineno_2=$LINENO
7383     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7384     test "x$as_lineno_1" != "x$as_lineno_2" &&
7385     test "x$as_lineno_3" = "x$as_lineno_2" || {
7386     # Find who we are. Look in the path if we contain no path at all
7387     # relative or not.
7388     case $0 in
7389     *[\\/]* ) as_myself=$0 ;;
7390     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391     for as_dir in $PATH
7392     do
7393     IFS=$as_save_IFS
7394     test -z "$as_dir" && as_dir=.
7395     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7396     done
7397    
7398     ;;
7399     esac
7400     # We did not find ourselves, most probably we were run as `sh COMMAND'
7401     # in which case we are not to be found in the path.
7402     if test "x$as_myself" = x; then
7403     as_myself=$0
7404     fi
7405     if test ! -f "$as_myself"; then
7406     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7407     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7408     { (exit 1); exit 1; }; }
7409     fi
7410     case $CONFIG_SHELL in
7411     '')
7412     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7414     do
7415     IFS=$as_save_IFS
7416     test -z "$as_dir" && as_dir=.
7417     for as_base in sh bash ksh sh5; do
7418     case $as_dir in
7419     /*)
7420     if ("$as_dir/$as_base" -c '
7421     as_lineno_1=$LINENO
7422     as_lineno_2=$LINENO
7423     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7424     test "x$as_lineno_1" != "x$as_lineno_2" &&
7425     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7426     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7427     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7428     CONFIG_SHELL=$as_dir/$as_base
7429     export CONFIG_SHELL
7430     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7431     fi;;
7432     esac
7433     done
7434     done
7435     ;;
7436     esac
7437    
7438     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7439     # uniformly replaced by the line number. The first 'sed' inserts a
7440     # line-number line before each line; the second 'sed' does the real
7441     # work. The second script uses 'N' to pair each line-number line
7442     # with the numbered line, and appends trailing '-' during
7443     # substitution so that $LINENO is not a special case at line end.
7444     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7445     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7446     sed '=' <$as_myself |
7447     sed '
7448     N
7449     s,$,-,
7450     : loop
7451     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7452     t loop
7453     s,-$,,
7454     s,^['$as_cr_digits']*\n,,
7455     ' >$as_me.lineno &&
7456     chmod +x $as_me.lineno ||
7457     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7458     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7459     { (exit 1); exit 1; }; }
7460    
7461     # Don't try to exec as it changes $[0], causing all sort of problems
7462     # (the dirname of $[0] is not the place where we might find the
7463     # original and so on. Autoconf is especially sensible to this).
7464     . ./$as_me.lineno
7465     # Exit status is that of the last command.
7466     exit
7467     }
7468    
7469    
7470     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7471     *c*,-n*) ECHO_N= ECHO_C='
7472     ' ECHO_T=' ' ;;
7473     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7474     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7475     esac
7476    
7477     if expr a : '\(a\)' >/dev/null 2>&1; then
7478     as_expr=expr
7479     else
7480     as_expr=false
7481     fi
7482    
7483     rm -f conf$$ conf$$.exe conf$$.file
7484     echo >conf$$.file
7485     if ln -s conf$$.file conf$$ 2>/dev/null; then
7486     # We could just check for DJGPP; but this test a) works b) is more generic
7487     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7488     if test -f conf$$.exe; then
7489     # Don't use ln at all; we don't have any links
7490     as_ln_s='cp -p'
7491     else
7492     as_ln_s='ln -s'
7493     fi
7494     elif ln conf$$.file conf$$ 2>/dev/null; then
7495     as_ln_s=ln
7496     else
7497     as_ln_s='cp -p'
7498     fi
7499     rm -f conf$$ conf$$.exe conf$$.file
7500    
7501     if mkdir -p . 2>/dev/null; then
7502     as_mkdir_p=:
7503     else
7504     as_mkdir_p=false
7505     fi
7506    
7507     as_executable_p="test -f"
7508    
7509     # Sed expression to map a string onto a valid CPP name.
7510     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7511    
7512     # Sed expression to map a string onto a valid variable name.
7513     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7514    
7515    
7516     # IFS
7517     # We need space, tab and new line, in precisely that order.
7518     as_nl='
7519     '
7520     IFS=" $as_nl"
7521    
7522     # CDPATH.
7523     $as_unset CDPATH
7524    
7525     exec 6>&1
7526    
7527     # Open the log real soon, to keep \$[0] and so on meaningful, and to
7528     # report actual input values of CONFIG_FILES etc. instead of their
7529     # values after options handling. Logging --version etc. is OK.
7530     exec 5>>config.log
7531     {
7532     echo
7533     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7534     ## Running $as_me. ##
7535     _ASBOX
7536     } >&5
7537     cat >&5 <<_CSEOF
7538    
7539 gcodispo 1.22 This file was extended by BOSS $as_me `tail -1 ./VERSION | sed 's/BOSS_//g'`, which was
7540 gcodispo 1.1 generated by GNU Autoconf 2.57. Invocation command line was
7541    
7542     CONFIG_FILES = $CONFIG_FILES
7543     CONFIG_HEADERS = $CONFIG_HEADERS
7544     CONFIG_LINKS = $CONFIG_LINKS
7545     CONFIG_COMMANDS = $CONFIG_COMMANDS
7546     $ $0 $@
7547    
7548     _CSEOF
7549     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7550     echo >&5
7551     _ACEOF
7552    
7553     # Files that config.status was made for.
7554     if test -n "$ac_config_files"; then
7555     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7556     fi
7557    
7558     if test -n "$ac_config_headers"; then
7559     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7560     fi
7561    
7562     if test -n "$ac_config_links"; then
7563     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7564     fi
7565    
7566     if test -n "$ac_config_commands"; then
7567     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7568     fi
7569    
7570     cat >>$CONFIG_STATUS <<\_ACEOF
7571    
7572     ac_cs_usage="\
7573     \`$as_me' instantiates files from templates according to the
7574     current configuration.
7575    
7576     Usage: $0 [OPTIONS] [FILE]...
7577    
7578     -h, --help print this help, then exit
7579     -V, --version print version number, then exit
7580     -q, --quiet do not print progress messages
7581     -d, --debug don't remove temporary files
7582     --recheck update $as_me by reconfiguring in the same conditions
7583     --file=FILE[:TEMPLATE]
7584     instantiate the configuration file FILE
7585     --header=FILE[:TEMPLATE]
7586     instantiate the configuration header FILE
7587    
7588     Configuration files:
7589     $config_files
7590    
7591     Configuration headers:
7592     $config_headers
7593    
7594     Configuration commands:
7595     $config_commands
7596    
7597     Report bugs to <bug-autoconf@gnu.org>."
7598     _ACEOF
7599    
7600     cat >>$CONFIG_STATUS <<_ACEOF
7601     ac_cs_version="\\
7602 gcodispo 1.22 BOSS config.status `tail -1 ./VERSION | sed 's/BOSS_//g'`
7603 gcodispo 1.1 configured by $0, generated by GNU Autoconf 2.57,
7604     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7605    
7606     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7607     Free Software Foundation, Inc.
7608     This config.status script is free software; the Free Software Foundation
7609     gives unlimited permission to copy, distribute and modify it."
7610     srcdir=$srcdir
7611     _ACEOF
7612    
7613     cat >>$CONFIG_STATUS <<\_ACEOF
7614     # If no file are specified by the user, then we need to provide default
7615     # value. By we need to know if files were specified by the user.
7616     ac_need_defaults=:
7617     while test $# != 0
7618     do
7619     case $1 in
7620     --*=*)
7621     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7622     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7623     ac_shift=:
7624     ;;
7625     -*)
7626     ac_option=$1
7627     ac_optarg=$2
7628     ac_shift=shift
7629     ;;
7630     *) # This is not an option, so the user has probably given explicit
7631     # arguments.
7632     ac_option=$1
7633     ac_need_defaults=false;;
7634     esac
7635    
7636     case $ac_option in
7637     # Handling of the options.
7638     _ACEOF
7639     cat >>$CONFIG_STATUS <<\_ACEOF
7640     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7641     ac_cs_recheck=: ;;
7642     --version | --vers* | -V )
7643     echo "$ac_cs_version"; exit 0 ;;
7644     --he | --h)
7645     # Conflict between --help and --header
7646     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7647     Try \`$0 --help' for more information." >&5
7648     echo "$as_me: error: ambiguous option: $1
7649     Try \`$0 --help' for more information." >&2;}
7650     { (exit 1); exit 1; }; };;
7651     --help | --hel | -h )
7652     echo "$ac_cs_usage"; exit 0 ;;
7653     --debug | --d* | -d )
7654     debug=: ;;
7655     --file | --fil | --fi | --f )
7656     $ac_shift
7657     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7658     ac_need_defaults=false;;
7659     --header | --heade | --head | --hea )
7660     $ac_shift
7661     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7662     ac_need_defaults=false;;
7663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7664     | -silent | --silent | --silen | --sile | --sil | --si | --s)
7665     ac_cs_silent=: ;;
7666    
7667     # This is an error.
7668     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7669     Try \`$0 --help' for more information." >&5
7670     echo "$as_me: error: unrecognized option: $1
7671     Try \`$0 --help' for more information." >&2;}
7672     { (exit 1); exit 1; }; } ;;
7673    
7674     *) ac_config_targets="$ac_config_targets $1" ;;
7675    
7676     esac
7677     shift
7678     done
7679    
7680     ac_configure_extra_args=
7681    
7682     if $ac_cs_silent; then
7683     exec 6>/dev/null
7684     ac_configure_extra_args="$ac_configure_extra_args --silent"
7685     fi
7686    
7687     _ACEOF
7688     cat >>$CONFIG_STATUS <<_ACEOF
7689     if \$ac_cs_recheck; then
7690     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7691     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7692     fi
7693    
7694     _ACEOF
7695    
7696    
7697    
7698    
7699    
7700     cat >>$CONFIG_STATUS <<\_ACEOF
7701     for ac_config_target in $ac_config_targets
7702     do
7703     case "$ac_config_target" in
7704     # Handling of arguments.
7705     "BossClient/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/Makefile" ;;
7706     "BossClient/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/src/Makefile" ;;
7707     "BossCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/Makefile" ;;
7708     "BossCore/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/src/Makefile" ;;
7709     "BossPython/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossPython/Makefile" ;;
7710     "BossRTMon/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/Makefile" ;;
7711     "BossRTMon/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/src/Makefile" ;;
7712     "BossSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/Makefile" ;;
7713     "BossSched/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/src/Makefile" ;;
7714     "BossWrapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/Makefile" ;;
7715     "BossWrapper/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/src/Makefile" ;;
7716     "ClassAdLite/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/Makefile" ;;
7717     "ClassAdLite/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/src/Makefile" ;;
7718     "ClassAdLite/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/test/Makefile" ;;
7719     "Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
7720     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7721     "OSUtils/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/Makefile" ;;
7722     "OSUtils/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/src/Makefile" ;;
7723     "OSUtils/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/test/Makefile" ;;
7724     "SirDB/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/Makefile" ;;
7725     "SirDB/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/src/Makefile" ;;
7726     "install.sh" ) CONFIG_FILES="$CONFIG_FILES install.sh" ;;
7727     "install" ) CONFIG_COMMANDS="$CONFIG_COMMANDS install" ;;
7728     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7729     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7730     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7731     { (exit 1); exit 1; }; };;
7732     esac
7733     done
7734    
7735     # If the user did not use the arguments to specify the items to instantiate,
7736     # then the envvar interface is used. Set only those that are not.
7737     # We use the long form for the default assignment because of an extremely
7738     # bizarre bug on SunOS 4.1.3.
7739     if $ac_need_defaults; then
7740     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7741     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7742     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7743     fi
7744    
7745     # Have a temporary directory for convenience. Make it in the build tree
7746     # simply because there is no reason to put it here, and in addition,
7747     # creating and moving files from /tmp can sometimes cause problems.
7748     # Create a temporary directory, and hook for its removal unless debugging.
7749     $debug ||
7750     {
7751     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7752     trap '{ (exit 1); exit 1; }' 1 2 13 15
7753     }
7754    
7755     # Create a (secure) tmp directory for tmp files.
7756    
7757     {
7758     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7759     test -n "$tmp" && test -d "$tmp"
7760     } ||
7761     {
7762     tmp=./confstat$$-$RANDOM
7763     (umask 077 && mkdir $tmp)
7764     } ||
7765     {
7766     echo "$me: cannot create a temporary directory in ." >&2
7767     { (exit 1); exit 1; }
7768     }
7769    
7770     _ACEOF
7771    
7772     cat >>$CONFIG_STATUS <<_ACEOF
7773    
7774     #
7775     # CONFIG_FILES section.
7776     #
7777    
7778     # No need to generate the scripts if there are no CONFIG_FILES.
7779     # This happens for instance when ./config.status config.h
7780     if test -n "\$CONFIG_FILES"; then
7781     # Protect against being on the right side of a sed subst in config.status.
7782     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7783     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7784     s,@SHELL@,$SHELL,;t t
7785     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7786     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7787     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7788     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7789     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7790     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7791     s,@exec_prefix@,$exec_prefix,;t t
7792     s,@prefix@,$prefix,;t t
7793     s,@program_transform_name@,$program_transform_name,;t t
7794     s,@bindir@,$bindir,;t t
7795     s,@sbindir@,$sbindir,;t t
7796     s,@libexecdir@,$libexecdir,;t t
7797     s,@datadir@,$datadir,;t t
7798     s,@sysconfdir@,$sysconfdir,;t t
7799     s,@sharedstatedir@,$sharedstatedir,;t t
7800     s,@localstatedir@,$localstatedir,;t t
7801     s,@libdir@,$libdir,;t t
7802     s,@includedir@,$includedir,;t t
7803     s,@oldincludedir@,$oldincludedir,;t t
7804     s,@infodir@,$infodir,;t t
7805     s,@mandir@,$mandir,;t t
7806     s,@build_alias@,$build_alias,;t t
7807     s,@host_alias@,$host_alias,;t t
7808     s,@target_alias@,$target_alias,;t t
7809     s,@DEFS@,$DEFS,;t t
7810     s,@ECHO_C@,$ECHO_C,;t t
7811     s,@ECHO_N@,$ECHO_N,;t t
7812     s,@ECHO_T@,$ECHO_T,;t t
7813     s,@LIBS@,$LIBS,;t t
7814     s,@VERSION@,$VERSION,;t t
7815 gcodispo 1.5 s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
7816 gcodispo 1.31 s,@SONAME@,$SONAME,;t t
7817     s,@LINK_OPT@,$LINK_OPT,;t t
7818     s,@ARCH@,$ARCH,;t t
7819     s,@RELEASE@,$RELEASE,;t t
7820     s,@GCC_VERSION@,$GCC_VERSION,;t t
7821     s,@SYSTEM@,$SYSTEM,;t t
7822 gcodispo 1.24 s,@CXXFLAGS@,$CXXFLAGS,;t t
7823 elmer 1.21 s,@CC@,$CC,;t t
7824     s,@CFLAGS@,$CFLAGS,;t t
7825 gcodispo 1.1 s,@LDFLAGS@,$LDFLAGS,;t t
7826     s,@CPPFLAGS@,$CPPFLAGS,;t t
7827 elmer 1.21 s,@ac_ct_CC@,$ac_ct_CC,;t t
7828 gcodispo 1.1 s,@EXEEXT@,$EXEEXT,;t t
7829     s,@OBJEXT@,$OBJEXT,;t t
7830 elmer 1.21 s,@CXX@,$CXX,;t t
7831     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7832 gcodispo 1.1 s,@CPP@,$CPP,;t t
7833 gcodispo 1.29 s,@zlib_lib@,$zlib_lib,;t t
7834     s,@zlib_inc@,$zlib_inc,;t t
7835 gcodispo 1.20 s,@uuid_lib@,$uuid_lib,;t t
7836 gcodispo 1.16 s,@uuid_inc@,$uuid_inc,;t t
7837     s,@MAKE_PYTHON@,$MAKE_PYTHON,;t t
7838     s,@MAKE_PYTHON_CLEAN@,$MAKE_PYTHON_CLEAN,;t t
7839     s,@swig_generate@,$swig_generate,;t t
7840 gcodispo 1.7 s,@MAKE_MYSQL@,$MAKE_MYSQL,;t t
7841     s,@MAKE_MYSQL_CLEAN@,$MAKE_MYSQL_CLEAN,;t t
7842 gcodispo 1.16 s,@ssl_lib@,$ssl_lib,;t t
7843 gcodispo 1.8 s,@mysql@,$mysql,;t t
7844     s,@mysql_lib@,$mysql_lib,;t t
7845 gcodispo 1.11 s,@mysql_lib_sh@,$mysql_lib_sh,;t t
7846 gcodispo 1.8 s,@mysql_inc@,$mysql_inc,;t t
7847 gcodispo 1.1 s,@MAKE_SQLITE@,$MAKE_SQLITE,;t t
7848     s,@MAKE_SQLITE_CLEAN@,$MAKE_SQLITE_CLEAN,;t t
7849 gcodispo 1.8 s,@sqlite@,$sqlite,;t t
7850 gcodispo 1.1 s,@sqlite_lib@,$sqlite_lib,;t t
7851 gcodispo 1.11 s,@sqlite_lib_sh@,$sqlite_lib_sh,;t t
7852 gcodispo 1.8 s,@sqlite_inc@,$sqlite_inc,;t t
7853     s,@MAKE_MONALISA@,$MAKE_MONALISA,;t t
7854     s,@MAKE_MONALISA_CLEAN@,$MAKE_MONALISA_CLEAN,;t t
7855     s,@monalisa@,$monalisa,;t t
7856     s,@monalisa_lib@,$monalisa_lib,;t t
7857 gcodispo 1.11 s,@monalisa_lib_sh@,$monalisa_lib_sh,;t t
7858 gcodispo 1.8 s,@monalisa_inc@,$monalisa_inc,;t t
7859     s,@clarens@,$clarens,;t t
7860 gcodispo 1.16 s,@clarens_inc@,$clarens_inc,;t t
7861 gcodispo 1.8 s,@clarens_lib@,$clarens_lib,;t t
7862 gcodispo 1.16 s,@clarens_lib_sh@,$clarens_lib_sh,;t t
7863 gcodispo 1.28 s,@MAKE_XERCESC@,$MAKE_XERCESC,;t t
7864     s,@MAKE_XERCESC_CLEAN@,$MAKE_XERCESC_CLEAN,;t t
7865     s,@xercesc@,$xercesc,;t t
7866     s,@xercesc_lib@,$xercesc_lib,;t t
7867     s,@xercesc_lib_sh@,$xercesc_lib_sh,;t t
7868     s,@xercesc_inc@,$xercesc_inc,;t t
7869 gcodispo 1.1 s,@EGREP@,$EGREP,;t t
7870     s,@LIBOBJS@,$LIBOBJS,;t t
7871     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7872     CEOF
7873    
7874     _ACEOF
7875    
7876     cat >>$CONFIG_STATUS <<\_ACEOF
7877     # Split the substitutions into bite-sized pieces for seds with
7878     # small command number limits, like on Digital OSF/1 and HP-UX.
7879     ac_max_sed_lines=48
7880     ac_sed_frag=1 # Number of current file.
7881     ac_beg=1 # First line for current file.
7882     ac_end=$ac_max_sed_lines # Line after last line for current file.
7883     ac_more_lines=:
7884     ac_sed_cmds=
7885     while $ac_more_lines; do
7886     if test $ac_beg -gt 1; then
7887     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7888     else
7889     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7890     fi
7891     if test ! -s $tmp/subs.frag; then
7892     ac_more_lines=false
7893     else
7894     # The purpose of the label and of the branching condition is to
7895     # speed up the sed processing (if there are no `@' at all, there
7896     # is no need to browse any of the substitutions).
7897     # These are the two extra sed commands mentioned above.
7898     (echo ':t
7899     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7900     if test -z "$ac_sed_cmds"; then
7901     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7902     else
7903     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7904     fi
7905     ac_sed_frag=`expr $ac_sed_frag + 1`
7906     ac_beg=$ac_end
7907     ac_end=`expr $ac_end + $ac_max_sed_lines`
7908     fi
7909     done
7910     if test -z "$ac_sed_cmds"; then
7911     ac_sed_cmds=cat
7912     fi
7913     fi # test -n "$CONFIG_FILES"
7914    
7915     _ACEOF
7916     cat >>$CONFIG_STATUS <<\_ACEOF
7917     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7918     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7919     case $ac_file in
7920     - | *:- | *:-:* ) # input from stdin
7921     cat >$tmp/stdin
7922     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7923     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7924     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7925     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7926     * ) ac_file_in=$ac_file.in ;;
7927     esac
7928    
7929     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7930     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7931     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7932     X"$ac_file" : 'X\(//\)[^/]' \| \
7933     X"$ac_file" : 'X\(//\)$' \| \
7934     X"$ac_file" : 'X\(/\)' \| \
7935     . : '\(.\)' 2>/dev/null ||
7936     echo X"$ac_file" |
7937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7938     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7939     /^X\(\/\/\)$/{ s//\1/; q; }
7940     /^X\(\/\).*/{ s//\1/; q; }
7941     s/.*/./; q'`
7942     { if $as_mkdir_p; then
7943     mkdir -p "$ac_dir"
7944     else
7945     as_dir="$ac_dir"
7946     as_dirs=
7947     while test ! -d "$as_dir"; do
7948     as_dirs="$as_dir $as_dirs"
7949     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7950     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7951     X"$as_dir" : 'X\(//\)[^/]' \| \
7952     X"$as_dir" : 'X\(//\)$' \| \
7953     X"$as_dir" : 'X\(/\)' \| \
7954     . : '\(.\)' 2>/dev/null ||
7955     echo X"$as_dir" |
7956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7957     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7958     /^X\(\/\/\)$/{ s//\1/; q; }
7959     /^X\(\/\).*/{ s//\1/; q; }
7960     s/.*/./; q'`
7961     done
7962     test ! -n "$as_dirs" || mkdir $as_dirs
7963     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7964     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7965     { (exit 1); exit 1; }; }; }
7966    
7967     ac_builddir=.
7968    
7969     if test "$ac_dir" != .; then
7970     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7971     # A "../" for each directory in $ac_dir_suffix.
7972     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7973     else
7974     ac_dir_suffix= ac_top_builddir=
7975     fi
7976    
7977     case $srcdir in
7978     .) # No --srcdir option. We are building in place.
7979     ac_srcdir=.
7980     if test -z "$ac_top_builddir"; then
7981     ac_top_srcdir=.
7982     else
7983     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7984     fi ;;
7985     [\\/]* | ?:[\\/]* ) # Absolute path.
7986     ac_srcdir=$srcdir$ac_dir_suffix;
7987     ac_top_srcdir=$srcdir ;;
7988     *) # Relative path.
7989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7991     esac
7992     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7993     # absolute.
7994     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7995     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7996     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7997     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7998    
7999    
8000    
8001     if test x"$ac_file" != x-; then
8002     { echo "$as_me:$LINENO: creating $ac_file" >&5
8003     echo "$as_me: creating $ac_file" >&6;}
8004     rm -f "$ac_file"
8005     fi
8006     # Let's still pretend it is `configure' which instantiates (i.e., don't
8007     # use $as_me), people would be surprised to read:
8008     # /* config.h. Generated by config.status. */
8009     if test x"$ac_file" = x-; then
8010     configure_input=
8011     else
8012     configure_input="$ac_file. "
8013     fi
8014     configure_input=$configure_input"Generated from `echo $ac_file_in |
8015     sed 's,.*/,,'` by configure."
8016    
8017     # First look for the input files in the build tree, otherwise in the
8018     # src tree.
8019     ac_file_inputs=`IFS=:
8020     for f in $ac_file_in; do
8021     case $f in
8022     -) echo $tmp/stdin ;;
8023     [\\/$]*)
8024     # Absolute (can't be DOS-style, as IFS=:)
8025     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8026     echo "$as_me: error: cannot find input file: $f" >&2;}
8027     { (exit 1); exit 1; }; }
8028     echo $f;;
8029     *) # Relative
8030     if test -f "$f"; then
8031     # Build tree
8032     echo $f
8033     elif test -f "$srcdir/$f"; then
8034     # Source tree
8035     echo $srcdir/$f
8036     else
8037     # /dev/null tree
8038     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8039     echo "$as_me: error: cannot find input file: $f" >&2;}
8040     { (exit 1); exit 1; }; }
8041     fi;;
8042     esac
8043     done` || { (exit 1); exit 1; }
8044     _ACEOF
8045     cat >>$CONFIG_STATUS <<_ACEOF
8046     sed "$ac_vpsub
8047     $extrasub
8048     _ACEOF
8049     cat >>$CONFIG_STATUS <<\_ACEOF
8050     :t
8051     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8052     s,@configure_input@,$configure_input,;t t
8053     s,@srcdir@,$ac_srcdir,;t t
8054     s,@abs_srcdir@,$ac_abs_srcdir,;t t
8055     s,@top_srcdir@,$ac_top_srcdir,;t t
8056     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8057     s,@builddir@,$ac_builddir,;t t
8058     s,@abs_builddir@,$ac_abs_builddir,;t t
8059     s,@top_builddir@,$ac_top_builddir,;t t
8060     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8061     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8062     rm -f $tmp/stdin
8063     if test x"$ac_file" != x-; then
8064     mv $tmp/out $ac_file
8065     else
8066     cat $tmp/out
8067     rm -f $tmp/out
8068     fi
8069    
8070     done
8071     _ACEOF
8072     cat >>$CONFIG_STATUS <<\_ACEOF
8073    
8074     #
8075     # CONFIG_HEADER section.
8076     #
8077    
8078     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8079     # NAME is the cpp macro being defined and VALUE is the value it is being given.
8080     #
8081     # ac_d sets the value in "#define NAME VALUE" lines.
8082     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8083     ac_dB='[ ].*$,\1#\2'
8084     ac_dC=' '
8085     ac_dD=',;t'
8086     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8087     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8088     ac_uB='$,\1#\2define\3'
8089     ac_uC=' '
8090     ac_uD=',;t'
8091    
8092     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8093     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8094     case $ac_file in
8095     - | *:- | *:-:* ) # input from stdin
8096     cat >$tmp/stdin
8097     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8098     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8099     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8100     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101     * ) ac_file_in=$ac_file.in ;;
8102     esac
8103    
8104     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8105     echo "$as_me: creating $ac_file" >&6;}
8106    
8107     # First look for the input files in the build tree, otherwise in the
8108     # src tree.
8109     ac_file_inputs=`IFS=:
8110     for f in $ac_file_in; do
8111     case $f in
8112     -) echo $tmp/stdin ;;
8113     [\\/$]*)
8114     # Absolute (can't be DOS-style, as IFS=:)
8115     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8116     echo "$as_me: error: cannot find input file: $f" >&2;}
8117     { (exit 1); exit 1; }; }
8118     echo $f;;
8119     *) # Relative
8120     if test -f "$f"; then
8121     # Build tree
8122     echo $f
8123     elif test -f "$srcdir/$f"; then
8124     # Source tree
8125     echo $srcdir/$f
8126     else
8127     # /dev/null tree
8128     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8129     echo "$as_me: error: cannot find input file: $f" >&2;}
8130     { (exit 1); exit 1; }; }
8131     fi;;
8132     esac
8133     done` || { (exit 1); exit 1; }
8134     # Remove the trailing spaces.
8135     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8136    
8137     _ACEOF
8138    
8139     # Transform confdefs.h into two sed scripts, `conftest.defines' and
8140     # `conftest.undefs', that substitutes the proper values into
8141     # config.h.in to produce config.h. The first handles `#define'
8142     # templates, and the second `#undef' templates.
8143     # And first: Protect against being on the right side of a sed subst in
8144     # config.status. Protect against being in an unquoted here document
8145     # in config.status.
8146     rm -f conftest.defines conftest.undefs
8147     # Using a here document instead of a string reduces the quoting nightmare.
8148     # Putting comments in sed scripts is not portable.
8149     #
8150     # `end' is used to avoid that the second main sed command (meant for
8151     # 0-ary CPP macros) applies to n-ary macro definitions.
8152     # See the Autoconf documentation for `clear'.
8153     cat >confdef2sed.sed <<\_ACEOF
8154     s/[\\&,]/\\&/g
8155     s,[\\$`],\\&,g
8156     t clear
8157     : clear
8158     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8159     t end
8160     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8161     : end
8162     _ACEOF
8163     # If some macros were called several times there might be several times
8164     # the same #defines, which is useless. Nevertheless, we may not want to
8165     # sort them, since we want the *last* AC-DEFINE to be honored.
8166     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8167     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8168     rm -f confdef2sed.sed
8169    
8170     # This sed command replaces #undef with comments. This is necessary, for
8171     # example, in the case of _POSIX_SOURCE, which is predefined and required
8172     # on some systems where configure will not decide to define it.
8173     cat >>conftest.undefs <<\_ACEOF
8174     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8175     _ACEOF
8176    
8177     # Break up conftest.defines because some shells have a limit on the size
8178     # of here documents, and old seds have small limits too (100 cmds).
8179     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8180     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8181     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8182     echo ' :' >>$CONFIG_STATUS
8183     rm -f conftest.tail
8184     while grep . conftest.defines >/dev/null
8185     do
8186     # Write a limited-size here document to $tmp/defines.sed.
8187     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8188     # Speed up: don't consider the non `#define' lines.
8189     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8190     # Work around the forget-to-reset-the-flag bug.
8191     echo 't clr' >>$CONFIG_STATUS
8192     echo ': clr' >>$CONFIG_STATUS
8193     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8194     echo 'CEOF
8195     sed -f $tmp/defines.sed $tmp/in >$tmp/out
8196     rm -f $tmp/in
8197     mv $tmp/out $tmp/in
8198     ' >>$CONFIG_STATUS
8199     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8200     rm -f conftest.defines
8201     mv conftest.tail conftest.defines
8202     done
8203     rm -f conftest.defines
8204     echo ' fi # grep' >>$CONFIG_STATUS
8205     echo >>$CONFIG_STATUS
8206    
8207     # Break up conftest.undefs because some shells have a limit on the size
8208     # of here documents, and old seds have small limits too (100 cmds).
8209     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8210     rm -f conftest.tail
8211     while grep . conftest.undefs >/dev/null
8212     do
8213     # Write a limited-size here document to $tmp/undefs.sed.
8214     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8215     # Speed up: don't consider the non `#undef'
8216     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8217     # Work around the forget-to-reset-the-flag bug.
8218     echo 't clr' >>$CONFIG_STATUS
8219     echo ': clr' >>$CONFIG_STATUS
8220     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8221     echo 'CEOF
8222     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8223     rm -f $tmp/in
8224     mv $tmp/out $tmp/in
8225     ' >>$CONFIG_STATUS
8226     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8227     rm -f conftest.undefs
8228     mv conftest.tail conftest.undefs
8229     done
8230     rm -f conftest.undefs
8231    
8232     cat >>$CONFIG_STATUS <<\_ACEOF
8233     # Let's still pretend it is `configure' which instantiates (i.e., don't
8234     # use $as_me), people would be surprised to read:
8235     # /* config.h. Generated by config.status. */
8236     if test x"$ac_file" = x-; then
8237     echo "/* Generated by configure. */" >$tmp/config.h
8238     else
8239     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8240     fi
8241     cat $tmp/in >>$tmp/config.h
8242     rm -f $tmp/in
8243     if test x"$ac_file" != x-; then
8244     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8245     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8246     echo "$as_me: $ac_file is unchanged" >&6;}
8247     else
8248     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8249     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8250     X"$ac_file" : 'X\(//\)[^/]' \| \
8251     X"$ac_file" : 'X\(//\)$' \| \
8252     X"$ac_file" : 'X\(/\)' \| \
8253     . : '\(.\)' 2>/dev/null ||
8254     echo X"$ac_file" |
8255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8256     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8257     /^X\(\/\/\)$/{ s//\1/; q; }
8258     /^X\(\/\).*/{ s//\1/; q; }
8259     s/.*/./; q'`
8260     { if $as_mkdir_p; then
8261     mkdir -p "$ac_dir"
8262     else
8263     as_dir="$ac_dir"
8264     as_dirs=
8265     while test ! -d "$as_dir"; do
8266     as_dirs="$as_dir $as_dirs"
8267     as_dir=`(dirname "$as_dir") 2>/dev/null ||
8268     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8269     X"$as_dir" : 'X\(//\)[^/]' \| \
8270     X"$as_dir" : 'X\(//\)$' \| \
8271     X"$as_dir" : 'X\(/\)' \| \
8272     . : '\(.\)' 2>/dev/null ||
8273     echo X"$as_dir" |
8274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8275     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8276     /^X\(\/\/\)$/{ s//\1/; q; }
8277     /^X\(\/\).*/{ s//\1/; q; }
8278     s/.*/./; q'`
8279     done
8280     test ! -n "$as_dirs" || mkdir $as_dirs
8281     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8282     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8283     { (exit 1); exit 1; }; }; }
8284    
8285     rm -f $ac_file
8286     mv $tmp/config.h $ac_file
8287     fi
8288     else
8289     cat $tmp/config.h
8290     rm -f $tmp/config.h
8291     fi
8292     done
8293     _ACEOF
8294     cat >>$CONFIG_STATUS <<\_ACEOF
8295    
8296     #
8297     # CONFIG_COMMANDS section.
8298     #
8299     for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8300     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8301     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8302     ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8303     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8304     X"$ac_dest" : 'X\(//\)[^/]' \| \
8305     X"$ac_dest" : 'X\(//\)$' \| \
8306     X"$ac_dest" : 'X\(/\)' \| \
8307     . : '\(.\)' 2>/dev/null ||
8308     echo X"$ac_dest" |
8309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8310     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8311     /^X\(\/\/\)$/{ s//\1/; q; }
8312     /^X\(\/\).*/{ s//\1/; q; }
8313     s/.*/./; q'`
8314     ac_builddir=.
8315    
8316     if test "$ac_dir" != .; then
8317     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8318     # A "../" for each directory in $ac_dir_suffix.
8319     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8320     else
8321     ac_dir_suffix= ac_top_builddir=
8322     fi
8323    
8324     case $srcdir in
8325     .) # No --srcdir option. We are building in place.
8326     ac_srcdir=.
8327     if test -z "$ac_top_builddir"; then
8328     ac_top_srcdir=.
8329     else
8330     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8331     fi ;;
8332     [\\/]* | ?:[\\/]* ) # Absolute path.
8333     ac_srcdir=$srcdir$ac_dir_suffix;
8334     ac_top_srcdir=$srcdir ;;
8335     *) # Relative path.
8336     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8337     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8338     esac
8339     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8340     # absolute.
8341     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8342     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8343     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8344     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8345    
8346    
8347     { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8348     echo "$as_me: executing $ac_dest commands" >&6;}
8349     case $ac_dest in
8350 gcodispo 1.22 install ) chmod +x install.sh ;;
8351 gcodispo 1.1 esac
8352     done
8353     _ACEOF
8354    
8355     cat >>$CONFIG_STATUS <<\_ACEOF
8356    
8357     { (exit 0); exit 0; }
8358     _ACEOF
8359     chmod +x $CONFIG_STATUS
8360     ac_clean_files=$ac_clean_files_save
8361    
8362    
8363     # configure is writing to config.log, and then calls config.status.
8364     # config.status does its own redirection, appending to config.log.
8365     # Unfortunately, on DOS this fails, as config.log is still kept open
8366     # by configure, so config.status won't be able to write to it; its
8367     # output is simply discarded. So we exec the FD to /dev/null,
8368     # effectively closing config.log, so it can be properly (re)opened and
8369     # appended to by config.status. When coming back to configure, we
8370     # need to make the FD available again.
8371     if test "$no_create" != yes; then
8372     ac_cs_success=:
8373     ac_config_status_args=
8374     test "$silent" = yes &&
8375     ac_config_status_args="$ac_config_status_args --quiet"
8376     exec 5>/dev/null
8377     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8378     exec 5>>config.log
8379     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8380     # would make configure fail if this is the last instruction.
8381     $ac_cs_success || { (exit 1); exit 1; }
8382     fi
8383