ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.28
Committed: Mon Jun 5 13:30:35 2006 UTC (18 years, 10 months ago) by gcodispo
Branch: MAIN
CVS Tags: BOSS_4_3_0, BOSS_4_2_4, BOSS_4_2_3, BOSS_4_2_2, BOSS_4_2_1, BOSS_4_2_0, BOSS_4_1_10, BOSS_4_1_9, BOSS_4_1_9-test, BOSS_4_1_8, BOSS_4_1_7, BOSS_4_1_6, BOSS_4_1_5, BOSS_4_1_4, BOSS_4_1_3, BOSS_4_1_2, BOSS_4_1_1, BOSS_4_1_0
Changes since 1.27: +250 -318 lines
Log Message:
Workaround for temporary binary dustribution (needed by CRAB)

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