ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.15
Committed: Fri Mar 24 11:32:48 2006 UTC (19 years, 1 month ago) by gcodispo
Branch: MAIN
CVS Tags: BOSS_v4_0_0-pre2
Changes since 1.14: +45 -17 lines
Log Message:
Configure now able to detect python and (eventual) swig version
and to allow compilation of python API and eventually (if swig is found)
the possibility to re-generate them.
( "make -C BossPython generate" or "make -C BossPython full" )
Please report any bug!

File Contents

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