ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.10
Committed: Fri Mar 17 11:00:08 2006 UTC (19 years, 1 month ago) by gcodispo
Branch: MAIN
Changes since 1.9: +24 -16 lines
Log Message:
A few improvements to allow using ApMon if not shipped with BOSS

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.8 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_inc ssl_lib sqlite_dir MAKE_SQLITE MAKE_SQLITE_CLEAN sqlite sqlite_lib sqlite_inc monalisa_dir MAKE_MONALISA MAKE_MONALISA_CLEAN monalisa monalisa_lib monalisa_inc clarens_dir clarens clarens_lib clarens_inc EGREP LIBOBJS LTLIBOBJS'
314 gcodispo 1.1 ac_subst_files=''
315    
316     # Initialize some variables set by options.
317     ac_init_help=
318     ac_init_version=false
319     # The variables have the same names as the options, with
320     # dashes changed to underlines.
321     cache_file=/dev/null
322     exec_prefix=NONE
323     no_create=
324     no_recursion=
325     prefix=NONE
326     program_prefix=NONE
327     program_suffix=NONE
328     program_transform_name=s,x,x,
329     silent=
330     site=
331     srcdir=
332     verbose=
333     x_includes=NONE
334     x_libraries=NONE
335    
336     # Installation directory options.
337     # These are left unexpanded so users can "make install exec_prefix=/foo"
338     # and all the variables that are supposed to be based on exec_prefix
339     # by default will actually change.
340     # Use braces instead of parens because sh, perl, etc. also accept them.
341     bindir='${exec_prefix}/bin'
342     sbindir='${exec_prefix}/sbin'
343     libexecdir='${exec_prefix}/libexec'
344     datadir='${prefix}/share'
345     sysconfdir='${prefix}/etc'
346     sharedstatedir='${prefix}/com'
347     localstatedir='${prefix}/var'
348     libdir='${exec_prefix}/lib'
349     includedir='${prefix}/include'
350     oldincludedir='/usr/include'
351     infodir='${prefix}/info'
352     mandir='${prefix}/man'
353    
354     ac_prev=
355     for ac_option
356     do
357     # If the previous option needs an argument, assign it.
358     if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362     fi
363    
364     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365    
366     # Accept the important Cygnus configure options, so we can diagnose typos.
367    
368     case $ac_option in
369    
370     -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374    
375     -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379    
380     -cache-file | --cache-file | --cache-fil | --cache-fi \
381     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386    
387     --config-cache | -C)
388     cache_file=config.cache ;;
389    
390     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393     | --da=*)
394     datadir=$ac_optarg ;;
395    
396     -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401     { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404    
405     -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410     { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414     *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417    
418     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420     | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424     | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426    
427     -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430    
431     -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437    
438     -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440     -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442    
443     -includedir | --includedir | --includedi | --included | --include \
444     | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447     | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449    
450     -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454    
455     -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457     -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459    
460     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461     | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464     | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466    
467     -localstatedir | --localstatedir | --localstatedi | --localstated \
468     | --localstate | --localstat | --localsta | --localst \
469     | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475    
476     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480    
481     -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484    
485     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486     | --no-cr | --no-c | -n)
487     no_create=yes ;;
488    
489     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492    
493     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495     | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501    
502     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506    
507     -program-prefix | --program-prefix | --program-prefi | --program-pref \
508     | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510     -program-prefix=* | --program-prefix=* | --program-prefi=* \
511     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513    
514     -program-suffix | --program-suffix | --program-suffi | --program-suff \
515     | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517     -program-suffix=* | --program-suffix=* | --program-suffi=* \
518     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520    
521     -program-transform-name | --program-transform-name \
522     | --program-transform-nam | --program-transform-na \
523     | --program-transform-n | --program-transform- \
524     | --program-transform | --program-transfor \
525     | --program-transfo | --program-transf \
526     | --program-trans | --program-tran \
527     | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529     -program-transform-name=* | --program-transform-name=* \
530     | --program-transform-nam=* | --program-transform-na=* \
531     | --program-transform-n=* | --program-transform-=* \
532     | --program-transform=* | --program-transfor=* \
533     | --program-transfo=* | --program-transf=* \
534     | --program-trans=* | --program-tran=* \
535     | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537    
538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539     | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541    
542     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545     | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547    
548     -sharedstatedir | --sharedstatedir | --sharedstatedi \
549     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550     | --sharedst | --shareds | --shared | --share | --shar \
551     | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556     | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558    
559     -site | --site | --sit)
560     ac_prev=site ;;
561     -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563    
564     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568    
569     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570     | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575    
576     -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580    
581     -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583    
584     -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586    
587     -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591     { echo "$as_me: error: invalid package name: $ac_package" >&2
592     { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596     *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599    
600     -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604     { echo "$as_me: error: invalid package name: $ac_package" >&2
605     { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608    
609     --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612    
613     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614     | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619    
620     -x-libraries | --x-libraries | --x-librarie | --x-librari \
621     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626    
627     -*) { echo "$as_me: error: unrecognized option: $ac_option
628     Try \`$0 --help' for more information." >&2
629     { (exit 1); exit 1; }; }
630     ;;
631    
632     *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637     { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641    
642     *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649    
650     esac
651     done
652    
653     if test -n "$ac_prev"; then
654     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655     { echo "$as_me: error: missing argument to $ac_option" >&2
656     { (exit 1); exit 1; }; }
657     fi
658    
659     # Be sure to have absolute paths.
660     for ac_var in exec_prefix prefix
661     do
662     eval ac_val=$`echo $ac_var`
663     case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666     { (exit 1); exit 1; }; };;
667     esac
668     done
669    
670     # Be sure to have absolute paths.
671     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672     localstatedir libdir includedir oldincludedir infodir mandir
673     do
674     eval ac_val=$`echo $ac_var`
675     case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678     { (exit 1); exit 1; }; };;
679     esac
680     done
681    
682     # There might be people who depend on the old broken behavior: `$host'
683     # used to hold the argument of --host etc.
684     # FIXME: To remove some day.
685     build=$build_alias
686     host=$host_alias
687     target=$target_alias
688    
689     # FIXME: To remove some day.
690     if test "x$host_alias" != x; then
691     if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695     elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697     fi
698     fi
699    
700     ac_tool_prefix=
701     test -n "$host_alias" && ac_tool_prefix=$host_alias-
702    
703     test "$silent" = yes && exec 6>/dev/null
704    
705    
706     # Find the source files, if location was not specified.
707     if test -z "$srcdir"; then
708     ac_srcdir_defaulted=yes
709     # Try the directory containing this script, then its parent.
710     ac_confdir=`(dirname "$0") 2>/dev/null ||
711     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712     X"$0" : 'X\(//\)[^/]' \| \
713     X"$0" : 'X\(//\)$' \| \
714     X"$0" : 'X\(/\)' \| \
715     . : '\(.\)' 2>/dev/null ||
716     echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719     /^X\(\/\/\)$/{ s//\1/; q; }
720     /^X\(\/\).*/{ s//\1/; q; }
721     s/.*/./; q'`
722     srcdir=$ac_confdir
723     if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725     fi
726     else
727     ac_srcdir_defaulted=no
728     fi
729     if test ! -r $srcdir/$ac_unique_file; then
730     if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732     { (exit 1); exit 1; }; }
733     else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735     { (exit 1); exit 1; }; }
736     fi
737     fi
738     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740     { (exit 1); exit 1; }; }
741     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742     ac_env_build_alias_set=${build_alias+set}
743     ac_env_build_alias_value=$build_alias
744     ac_cv_env_build_alias_set=${build_alias+set}
745     ac_cv_env_build_alias_value=$build_alias
746     ac_env_host_alias_set=${host_alias+set}
747     ac_env_host_alias_value=$host_alias
748     ac_cv_env_host_alias_set=${host_alias+set}
749     ac_cv_env_host_alias_value=$host_alias
750     ac_env_target_alias_set=${target_alias+set}
751     ac_env_target_alias_value=$target_alias
752     ac_cv_env_target_alias_set=${target_alias+set}
753     ac_cv_env_target_alias_value=$target_alias
754     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 `-lBossBase':
2735     #AC_CHECK_LIB([BossBase], [main])
2736     # FIXME: Replace `main' with a function in `-lClassAdLite':
2737     #AC_CHECK_LIB([ClassAdLite], [main])
2738     # FIXME: Replace `main' with a function in `-lMonaLisa':
2739     #AC_CHECK_LIB([MonaLisa], [main])
2740     # FIXME: Replace `main' with a function in `-lOSUtils':
2741     #AC_CHECK_LIB([OSUtils], [main])
2742 gcodispo 1.5 # FIXME: Replace `main' with a function in `-lmysqlclient':
2743     #AC_CHECK_LIB([mysqlclient], [main])
2744     # FIXME: Replace `main' with a function in `-lsqlite3':
2745     #AC_CHECK_LIB([sqlite3], [main])
2746 gcodispo 1.1 # FIXME: Replace `main' with a function in `-lSirDBMySQL':
2747     #AC_CHECK_LIB([SirDBMySQL], [main])
2748     # FIXME: Replace `main' with a function in `-lSirDBSQLite':
2749     #AC_CHECK_LIB([SirDBSQLite], [main])
2750     # FIXME: Replace `main' with a function in `-ldl':
2751    
2752    
2753     echo "$as_me:$LINENO: checking for main in -ldl" >&5
2754     echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
2755     if test "${ac_cv_lib_dl_main+set}" = set; then
2756     echo $ECHO_N "(cached) $ECHO_C" >&6
2757     else
2758     ac_check_lib_save_LIBS=$LIBS
2759     LIBS="-ldl $LIBS"
2760     cat >conftest.$ac_ext <<_ACEOF
2761     #line $LINENO "configure"
2762     /* confdefs.h. */
2763     _ACEOF
2764     cat confdefs.h >>conftest.$ac_ext
2765     cat >>conftest.$ac_ext <<_ACEOF
2766     /* end confdefs.h. */
2767    
2768    
2769     int
2770     main ()
2771     {
2772     main ();
2773     ;
2774     return 0;
2775     }
2776     _ACEOF
2777     rm -f conftest.$ac_objext conftest$ac_exeext
2778     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779     (eval $ac_link) 2>&5
2780     ac_status=$?
2781     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782     (exit $ac_status); } &&
2783     { ac_try='test -s conftest$ac_exeext'
2784     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785     (eval $ac_try) 2>&5
2786     ac_status=$?
2787     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788     (exit $ac_status); }; }; then
2789     ac_cv_lib_dl_main=yes
2790     else
2791     echo "$as_me: failed program was:" >&5
2792     sed 's/^/| /' conftest.$ac_ext >&5
2793    
2794     ac_cv_lib_dl_main=no
2795     fi
2796     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797     LIBS=$ac_check_lib_save_LIBS
2798     fi
2799     echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
2800     echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
2801     if test $ac_cv_lib_dl_main = yes; then
2802     cat >>confdefs.h <<_ACEOF
2803     #define HAVE_LIBDL 1
2804     _ACEOF
2805    
2806     LIBS="-ldl $LIBS"
2807    
2808     fi
2809    
2810     # FIXME: Replace `main' with a function in `-llog4cplus':
2811    
2812     echo "$as_me:$LINENO: checking for main in -llog4cplus" >&5
2813     echo $ECHO_N "checking for main in -llog4cplus... $ECHO_C" >&6
2814     if test "${ac_cv_lib_log4cplus_main+set}" = set; then
2815     echo $ECHO_N "(cached) $ECHO_C" >&6
2816     else
2817     ac_check_lib_save_LIBS=$LIBS
2818     LIBS="-llog4cplus $LIBS"
2819     cat >conftest.$ac_ext <<_ACEOF
2820     #line $LINENO "configure"
2821     /* confdefs.h. */
2822     _ACEOF
2823     cat confdefs.h >>conftest.$ac_ext
2824     cat >>conftest.$ac_ext <<_ACEOF
2825     /* end confdefs.h. */
2826    
2827    
2828     int
2829     main ()
2830     {
2831     main ();
2832     ;
2833     return 0;
2834     }
2835     _ACEOF
2836     rm -f conftest.$ac_objext conftest$ac_exeext
2837     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2838     (eval $ac_link) 2>&5
2839     ac_status=$?
2840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841     (exit $ac_status); } &&
2842     { ac_try='test -s conftest$ac_exeext'
2843     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844     (eval $ac_try) 2>&5
2845     ac_status=$?
2846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847     (exit $ac_status); }; }; then
2848     ac_cv_lib_log4cplus_main=yes
2849     else
2850     echo "$as_me: failed program was:" >&5
2851     sed 's/^/| /' conftest.$ac_ext >&5
2852    
2853     ac_cv_lib_log4cplus_main=no
2854     fi
2855     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2856     LIBS=$ac_check_lib_save_LIBS
2857     fi
2858     echo "$as_me:$LINENO: result: $ac_cv_lib_log4cplus_main" >&5
2859     echo "${ECHO_T}$ac_cv_lib_log4cplus_main" >&6
2860     if test $ac_cv_lib_log4cplus_main = yes; then
2861     cat >>confdefs.h <<_ACEOF
2862     #define HAVE_LIBLOG4CPLUS 1
2863     _ACEOF
2864    
2865     LIBS="-llog4cplus $LIBS"
2866    
2867     fi
2868    
2869     # FIXME: Replace `main' with a function in `-lpthread':
2870    
2871     echo "$as_me:$LINENO: checking for main in -lpthread" >&5
2872     echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
2873     if test "${ac_cv_lib_pthread_main+set}" = set; then
2874     echo $ECHO_N "(cached) $ECHO_C" >&6
2875     else
2876     ac_check_lib_save_LIBS=$LIBS
2877     LIBS="-lpthread $LIBS"
2878     cat >conftest.$ac_ext <<_ACEOF
2879     #line $LINENO "configure"
2880     /* confdefs.h. */
2881     _ACEOF
2882     cat confdefs.h >>conftest.$ac_ext
2883     cat >>conftest.$ac_ext <<_ACEOF
2884     /* end confdefs.h. */
2885    
2886    
2887     int
2888     main ()
2889     {
2890     main ();
2891     ;
2892     return 0;
2893     }
2894     _ACEOF
2895     rm -f conftest.$ac_objext conftest$ac_exeext
2896     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2897     (eval $ac_link) 2>&5
2898     ac_status=$?
2899     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900     (exit $ac_status); } &&
2901     { ac_try='test -s conftest$ac_exeext'
2902     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903     (eval $ac_try) 2>&5
2904     ac_status=$?
2905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906     (exit $ac_status); }; }; then
2907     ac_cv_lib_pthread_main=yes
2908     else
2909     echo "$as_me: failed program was:" >&5
2910     sed 's/^/| /' conftest.$ac_ext >&5
2911    
2912     ac_cv_lib_pthread_main=no
2913     fi
2914     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2915     LIBS=$ac_check_lib_save_LIBS
2916     fi
2917     echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
2918     echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
2919     if test $ac_cv_lib_pthread_main = yes; then
2920     cat >>confdefs.h <<_ACEOF
2921     #define HAVE_LIBPTHREAD 1
2922     _ACEOF
2923    
2924     LIBS="-lpthread $LIBS"
2925    
2926     fi
2927    
2928 gcodispo 1.5 # FIXME: Replace `main' with a function in `-luuid':
2929 gcodispo 1.1
2930 gcodispo 1.5 echo "$as_me:$LINENO: checking for main in -luuid" >&5
2931     echo $ECHO_N "checking for main in -luuid... $ECHO_C" >&6
2932     if test "${ac_cv_lib_uuid_main+set}" = set; then
2933 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2934     else
2935     ac_check_lib_save_LIBS=$LIBS
2936 gcodispo 1.5 LIBS="-luuid $LIBS"
2937 gcodispo 1.1 cat >conftest.$ac_ext <<_ACEOF
2938     #line $LINENO "configure"
2939     /* confdefs.h. */
2940     _ACEOF
2941     cat confdefs.h >>conftest.$ac_ext
2942     cat >>conftest.$ac_ext <<_ACEOF
2943     /* end confdefs.h. */
2944    
2945    
2946     int
2947     main ()
2948     {
2949     main ();
2950     ;
2951     return 0;
2952     }
2953     _ACEOF
2954     rm -f conftest.$ac_objext conftest$ac_exeext
2955     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956     (eval $ac_link) 2>&5
2957     ac_status=$?
2958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959     (exit $ac_status); } &&
2960     { ac_try='test -s conftest$ac_exeext'
2961     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962     (eval $ac_try) 2>&5
2963     ac_status=$?
2964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965     (exit $ac_status); }; }; then
2966 gcodispo 1.5 ac_cv_lib_uuid_main=yes
2967 gcodispo 1.1 else
2968     echo "$as_me: failed program was:" >&5
2969     sed 's/^/| /' conftest.$ac_ext >&5
2970    
2971 gcodispo 1.5 ac_cv_lib_uuid_main=no
2972 gcodispo 1.1 fi
2973     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2974     LIBS=$ac_check_lib_save_LIBS
2975     fi
2976 gcodispo 1.5 echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_main" >&5
2977     echo "${ECHO_T}$ac_cv_lib_uuid_main" >&6
2978     if test $ac_cv_lib_uuid_main = yes; then
2979 gcodispo 1.1 cat >>confdefs.h <<_ACEOF
2980 gcodispo 1.5 #define HAVE_LIBUUID 1
2981 gcodispo 1.1 _ACEOF
2982    
2983 gcodispo 1.5 LIBS="-luuid $LIBS"
2984 gcodispo 1.1
2985     fi
2986    
2987 gcodispo 1.5 # FIXME: Replace `main' with a function in `-lc':
2988 gcodispo 1.1
2989 gcodispo 1.5 echo "$as_me:$LINENO: checking for main in -lc" >&5
2990     echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
2991     if test "${ac_cv_lib_c_main+set}" = set; then
2992 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2993     else
2994     ac_check_lib_save_LIBS=$LIBS
2995 gcodispo 1.5 LIBS="-lc $LIBS"
2996 gcodispo 1.1 cat >conftest.$ac_ext <<_ACEOF
2997     #line $LINENO "configure"
2998     /* confdefs.h. */
2999     _ACEOF
3000     cat confdefs.h >>conftest.$ac_ext
3001     cat >>conftest.$ac_ext <<_ACEOF
3002     /* end confdefs.h. */
3003    
3004    
3005     int
3006     main ()
3007     {
3008     main ();
3009     ;
3010     return 0;
3011     }
3012     _ACEOF
3013     rm -f conftest.$ac_objext conftest$ac_exeext
3014     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3015     (eval $ac_link) 2>&5
3016     ac_status=$?
3017     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018     (exit $ac_status); } &&
3019     { ac_try='test -s conftest$ac_exeext'
3020     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021     (eval $ac_try) 2>&5
3022     ac_status=$?
3023     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024     (exit $ac_status); }; }; then
3025 gcodispo 1.5 ac_cv_lib_c_main=yes
3026 gcodispo 1.1 else
3027     echo "$as_me: failed program was:" >&5
3028     sed 's/^/| /' conftest.$ac_ext >&5
3029    
3030 gcodispo 1.5 ac_cv_lib_c_main=no
3031 gcodispo 1.1 fi
3032     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3033     LIBS=$ac_check_lib_save_LIBS
3034     fi
3035 gcodispo 1.5 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
3036     echo "${ECHO_T}$ac_cv_lib_c_main" >&6
3037     if test $ac_cv_lib_c_main = yes; then
3038 gcodispo 1.1 cat >>confdefs.h <<_ACEOF
3039 gcodispo 1.5 #define HAVE_LIBC 1
3040 gcodispo 1.1 _ACEOF
3041    
3042 gcodispo 1.5 LIBS="-lc $LIBS"
3043 gcodispo 1.1
3044     fi
3045    
3046 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lm':
3047    
3048     echo "$as_me:$LINENO: checking for main in -lm" >&5
3049     echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3050     if test "${ac_cv_lib_m_main+set}" = set; then
3051     echo $ECHO_N "(cached) $ECHO_C" >&6
3052     else
3053     ac_check_lib_save_LIBS=$LIBS
3054     LIBS="-lm $LIBS"
3055     cat >conftest.$ac_ext <<_ACEOF
3056     #line $LINENO "configure"
3057     /* confdefs.h. */
3058     _ACEOF
3059     cat confdefs.h >>conftest.$ac_ext
3060     cat >>conftest.$ac_ext <<_ACEOF
3061     /* end confdefs.h. */
3062    
3063    
3064     int
3065     main ()
3066     {
3067     main ();
3068     ;
3069     return 0;
3070     }
3071     _ACEOF
3072     rm -f conftest.$ac_objext conftest$ac_exeext
3073     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074     (eval $ac_link) 2>&5
3075     ac_status=$?
3076     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077     (exit $ac_status); } &&
3078     { ac_try='test -s conftest$ac_exeext'
3079     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080     (eval $ac_try) 2>&5
3081     ac_status=$?
3082     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083     (exit $ac_status); }; }; then
3084     ac_cv_lib_m_main=yes
3085     else
3086     echo "$as_me: failed program was:" >&5
3087     sed 's/^/| /' conftest.$ac_ext >&5
3088    
3089     ac_cv_lib_m_main=no
3090     fi
3091     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3092     LIBS=$ac_check_lib_save_LIBS
3093     fi
3094     echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3095     echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3096     if test $ac_cv_lib_m_main = yes; then
3097     cat >>confdefs.h <<_ACEOF
3098     #define HAVE_LIBM 1
3099     _ACEOF
3100    
3101     LIBS="-lm $LIBS"
3102    
3103     fi
3104    
3105 gcodispo 1.1 # FIXME: Replace `main' with a function in `-lz':
3106    
3107     echo "$as_me:$LINENO: checking for main in -lz" >&5
3108     echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6
3109     if test "${ac_cv_lib_z_main+set}" = set; then
3110     echo $ECHO_N "(cached) $ECHO_C" >&6
3111     else
3112     ac_check_lib_save_LIBS=$LIBS
3113     LIBS="-lz $LIBS"
3114     cat >conftest.$ac_ext <<_ACEOF
3115     #line $LINENO "configure"
3116     /* confdefs.h. */
3117     _ACEOF
3118     cat confdefs.h >>conftest.$ac_ext
3119     cat >>conftest.$ac_ext <<_ACEOF
3120     /* end confdefs.h. */
3121    
3122    
3123     int
3124     main ()
3125     {
3126     main ();
3127     ;
3128     return 0;
3129     }
3130     _ACEOF
3131     rm -f conftest.$ac_objext conftest$ac_exeext
3132     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133     (eval $ac_link) 2>&5
3134     ac_status=$?
3135     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136     (exit $ac_status); } &&
3137     { ac_try='test -s conftest$ac_exeext'
3138     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139     (eval $ac_try) 2>&5
3140     ac_status=$?
3141     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142     (exit $ac_status); }; }; then
3143     ac_cv_lib_z_main=yes
3144     else
3145     echo "$as_me: failed program was:" >&5
3146     sed 's/^/| /' conftest.$ac_ext >&5
3147    
3148     ac_cv_lib_z_main=no
3149     fi
3150     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3151     LIBS=$ac_check_lib_save_LIBS
3152     fi
3153     echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
3154     echo "${ECHO_T}$ac_cv_lib_z_main" >&6
3155     if test $ac_cv_lib_z_main = yes; then
3156     cat >>confdefs.h <<_ACEOF
3157     #define HAVE_LIBZ 1
3158     _ACEOF
3159    
3160     LIBS="-lz $LIBS"
3161    
3162     else
3163     { { echo "$as_me:$LINENO: error: Missing gzip compression library libz.a or libz.so needed by MySQL client library \"mysqlclient\"" >&5
3164     echo "$as_me: error: Missing gzip compression library libz.a or libz.so needed by MySQL client library \"mysqlclient\"" >&2;}
3165     { (exit 1); exit 1; }; }
3166     fi
3167    
3168 gcodispo 1.4 # FIXME: Replace `main' with a function in `-lxml2':
3169    
3170     echo "$as_me:$LINENO: checking for main in -lxml2" >&5
3171     echo $ECHO_N "checking for main in -lxml2... $ECHO_C" >&6
3172     if test "${ac_cv_lib_xml2_main+set}" = set; then
3173     echo $ECHO_N "(cached) $ECHO_C" >&6
3174     else
3175     ac_check_lib_save_LIBS=$LIBS
3176     LIBS="-lxml2 $LIBS"
3177     cat >conftest.$ac_ext <<_ACEOF
3178     #line $LINENO "configure"
3179     /* confdefs.h. */
3180     _ACEOF
3181     cat confdefs.h >>conftest.$ac_ext
3182     cat >>conftest.$ac_ext <<_ACEOF
3183     /* end confdefs.h. */
3184    
3185    
3186     int
3187     main ()
3188     {
3189     main ();
3190     ;
3191     return 0;
3192     }
3193     _ACEOF
3194     rm -f conftest.$ac_objext conftest$ac_exeext
3195     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196     (eval $ac_link) 2>&5
3197     ac_status=$?
3198     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199     (exit $ac_status); } &&
3200     { ac_try='test -s conftest$ac_exeext'
3201     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202     (eval $ac_try) 2>&5
3203     ac_status=$?
3204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205     (exit $ac_status); }; }; then
3206     ac_cv_lib_xml2_main=yes
3207     else
3208     echo "$as_me: failed program was:" >&5
3209     sed 's/^/| /' conftest.$ac_ext >&5
3210    
3211     ac_cv_lib_xml2_main=no
3212     fi
3213     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3214     LIBS=$ac_check_lib_save_LIBS
3215     fi
3216     echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_main" >&5
3217     echo "${ECHO_T}$ac_cv_lib_xml2_main" >&6
3218     if test $ac_cv_lib_xml2_main = yes; then
3219     cat >>confdefs.h <<_ACEOF
3220     #define HAVE_LIBXML2 1
3221     _ACEOF
3222    
3223     LIBS="-lxml2 $LIBS"
3224    
3225     else
3226     { { echo "$as_me:$LINENO: error: Missing xml2 library needed by XMLdoc" >&5
3227     echo "$as_me: error: Missing xml2 library needed by XMLdoc" >&2;}
3228     { (exit 1); exit 1; }; }
3229     fi
3230    
3231     # FIXME: Replace `main' with a function in `-lxslt':
3232    
3233     echo "$as_me:$LINENO: checking for main in -lxslt" >&5
3234     echo $ECHO_N "checking for main in -lxslt... $ECHO_C" >&6
3235     if test "${ac_cv_lib_xslt_main+set}" = set; then
3236     echo $ECHO_N "(cached) $ECHO_C" >&6
3237     else
3238     ac_check_lib_save_LIBS=$LIBS
3239     LIBS="-lxslt $LIBS"
3240     cat >conftest.$ac_ext <<_ACEOF
3241     #line $LINENO "configure"
3242     /* confdefs.h. */
3243     _ACEOF
3244     cat confdefs.h >>conftest.$ac_ext
3245     cat >>conftest.$ac_ext <<_ACEOF
3246     /* end confdefs.h. */
3247    
3248    
3249     int
3250     main ()
3251     {
3252     main ();
3253     ;
3254     return 0;
3255     }
3256     _ACEOF
3257     rm -f conftest.$ac_objext conftest$ac_exeext
3258     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259     (eval $ac_link) 2>&5
3260     ac_status=$?
3261     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262     (exit $ac_status); } &&
3263     { ac_try='test -s conftest$ac_exeext'
3264     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265     (eval $ac_try) 2>&5
3266     ac_status=$?
3267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268     (exit $ac_status); }; }; then
3269     ac_cv_lib_xslt_main=yes
3270     else
3271     echo "$as_me: failed program was:" >&5
3272     sed 's/^/| /' conftest.$ac_ext >&5
3273    
3274     ac_cv_lib_xslt_main=no
3275     fi
3276     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3277     LIBS=$ac_check_lib_save_LIBS
3278     fi
3279     echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_main" >&5
3280     echo "${ECHO_T}$ac_cv_lib_xslt_main" >&6
3281     if test $ac_cv_lib_xslt_main = yes; then
3282     cat >>confdefs.h <<_ACEOF
3283     #define HAVE_LIBXSLT 1
3284     _ACEOF
3285    
3286     LIBS="-lxslt $LIBS"
3287    
3288     else
3289     { { echo "$as_me:$LINENO: error: Missing xslt library needed by XMLdoc" >&5
3290     echo "$as_me: error: Missing xslt library needed by XMLdoc" >&2;}
3291     { (exit 1); exit 1; }; }
3292     fi
3293    
3294    
3295 gcodispo 1.7 #Checks for db backend location (macro defined in acinclude.m4)
3296 gcodispo 1.4
3297     if test "${ARCH+set}" = set; then
3298     echo $ECHO_N "(cached) $ECHO_C" >&6
3299     else
3300    
3301     for p in `uname -m` ; do
3302     case "$p" in
3303     *x86_64*)
3304     ARCH=amd64_
3305     ;;
3306     *i386* | *i686* )
3307     ARCH=ia32_
3308     ;;
3309     esac
3310     done
3311    
3312    
3313     fi
3314    
3315    
3316     if test "${RELEASE+set}" = set; then
3317     echo $ECHO_N "(cached) $ECHO_C" >&6
3318     else
3319    
3320     for p in `cat /etc/redhat-release 2>/dev/null; cat /etc/issue* 2>/dev/null` ; do
3321     case "$p" in
3322     *SL* | *Scientific*Linux* )
3323     RELEASE=slc`sed 's/[^0-9]//g' /etc/redhat-release | cut -c 1`_
3324     ;;
3325     *Mandrake* | *Red*Hat*Linux* | *SuSE* | *Debian*GNU*Linux*3*0* )
3326     RELEASE=rh73_
3327     ARC=""
3328    
3329     ;;
3330     *Debian*GNU*Linux*3*1* | *Fedora* | *Fermi* | *Red*Hat*Enterprise* | *Rocks* )
3331     RELEASE=slc3_
3332     ;;
3333     esac
3334     done
3335    
3336    
3337     fi
3338    
3339    
3340     if test "${GCC_VERSION+set}" = set; then
3341     echo $ECHO_N "(cached) $ECHO_C" >&6
3342     else
3343    
3344     for p in "`gcc --version | cut -d ' ' -f 1,3 `" ; do
3345     case "$p" in
3346     *gcc* )
3347     GCC_VERSION=gcc`echo $p | cut -d ' ' -f 2 |sed 's/[^0-9]//g' `
3348     ;;
3349     esac
3350     done
3351    
3352    
3353     fi
3354    
3355    
3356     if test "${SYSTEM+set}" = set; then
3357     echo $ECHO_N "(cached) $ECHO_C" >&6
3358     else
3359    
3360     SYSTEM=${RELEASE}${ARCH}${GCC_VERSION}
3361     echo system attributes... ${SYSTEM}
3362    
3363    
3364     fi
3365    
3366    
3367 gcodispo 1.1
3368    
3369 gcodispo 1.7
3370 gcodispo 1.9 if test -n "${mysql_dir}" ; then
3371 gcodispo 1.10 mysql_lib=`(ls -d ${mysql_dir}/lib/mysql 2>/dev/null)`
3372     if test -z "${mysql_lib}" ; then
3373     mysql_lib=`(ls -d ${mysql_dir}/lib 2>/dev/null)`
3374     fi
3375     mysql_lib=`(cd ${mysql_lib}; pwd)`
3376     mysql_inc=`(ls -d ${mysql_dir}/include/mysql 2>/dev/null)`
3377     if test -z "${mysql_inc}" ; then
3378     mysql_inc=`(ls -d ${mysql_dir}/include 2>/dev/null)`
3379     fi
3380     mysql_inc=`(cd ${mysql_inc}; pwd)`
3381 gcodispo 1.9 fi
3382 gcodispo 1.7 if test x"${mysql_dir}" = x ; then
3383     if test "${mysql_dir+set}" = set; then
3384 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
3385     else
3386    
3387 gcodispo 1.7 if test -d "$srcdir/mysql" ; then
3388     mysql_dir=`(cd $srcdir/mysql; pwd)`
3389 gcodispo 1.8 mysql_inc=`(cd $srcdir/mysql/include; pwd)`
3390     mysql_lib="$mysql_dir/lib"
3391 gcodispo 1.5 if test -f "$srcdir/mysql/Makefile.in" ; then
3392 gcodispo 1.7 MAKE_MYSQL_DIR="$srcdir/mysql/src/Makefile"
3393 gcodispo 1.5 fi
3394 gcodispo 1.7 if test -f "$srcdir/mysql/Makefile" ; then
3395     MAKE_MYSQL="\$(MAKE) -C mysql"
3396     MAKE_MYSQL_CLEAN="\$(MAKE) -C mysql clean"
3397 gcodispo 1.1
3398    
3399 gcodispo 1.7 fi
3400 gcodispo 1.5 fi
3401 gcodispo 1.1
3402 gcodispo 1.7 # check for ${VO_CMS_SW_DIR}/lcg/external/mysql
3403     if test x"${mysql_dir}" = x ; then
3404 gcodispo 1.5 for i in \
3405 gcodispo 1.9 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/mysql/*[4-5.*.*]*/${SYSTEM} 2>/dev/null` \
3406     `ls -dr /afs/cern.ch/cms/external/lcg/external/mysql/*[4-5.*.*]*/${SYSTEM} 2>/dev/null`
3407 gcodispo 1.5 do
3408 gcodispo 1.7 if test -f "$i/lib/libmysqlclient.so" ; then
3409     mysql_dir=`(cd $i; pwd)`
3410 gcodispo 1.8 mysql_lib=`(cd $i/lib; pwd)`
3411     mysql_inc=`(cd $i/include; pwd)`
3412 gcodispo 1.5 break
3413     fi
3414     done
3415     fi
3416 gcodispo 1.1
3417     # check in a few common install locations
3418 gcodispo 1.7 if test x"${mysql_dir}" = x ; then
3419 gcodispo 1.5 for i in \
3420     `ls -d ${libdir} 2>/dev/null` \
3421 gcodispo 1.8 `ls -d /usr/lib/mysql/libmysqlclient.a 2>/dev/null` \
3422     `ls -d /usr/lib/libmysqlclient.a 2>/dev/null` \
3423     `ls -d /usr/local/lib/mysql/libmysqlclient.a 2>/dev/null` \
3424     `ls -d /usr/local/lib/libmysqlclient.a 2>/dev/null` \
3425     `ls -d /usr/contrib/lib/mysql/libmysqlclient.a 2>/dev/null` \
3426     `ls -d /usr/contrib/lib/libmysqlclient.a 2>/dev/null`
3427 gcodispo 1.5 do
3428 gcodispo 1.8 if test -f "$i" ; then
3429     mysql_lib=`dirname $i`
3430     # echo $mysql_inc
3431 gcodispo 1.5 break
3432     fi
3433     done
3434 gcodispo 1.8 if test x"${mysql_lib}" != x; then
3435     for i in \
3436     `ls -d ${includedir} 2>/dev/null` \
3437     `ls -d /usr/include/mysql/mysql.h 2>/dev/null` \
3438     `ls -d /usr/include/mysql.h 2>/dev/null` \
3439     `ls -d /usr/local/include/mysql/mysql.h 2>/dev/null` \
3440     `ls -d /usr/local/include/mysql.h 2>/dev/null` \
3441     `ls -d /usr/contrib/include/mysql/mysql.h 2>/dev/null` \
3442     `ls -d /usr/contrib/include/mysql.h 2>/dev/null`
3443     do
3444     if test -f "$i" ; then
3445     mysql_inc=`dirname $i`
3446     mysql_dir=`dirname $mysql_inc`
3447     # echo $mysql_inc
3448     break
3449     fi
3450     done
3451     fi
3452 gcodispo 1.5 fi
3453 gcodispo 1.1
3454 gcodispo 1.5 fi
3455 gcodispo 1.1
3456     fi
3457    
3458 gcodispo 1.8 if test -d "${mysql_dir}" ; then
3459     echo "$as_me:$LINENO: result: found mysql:" >&5
3460     echo "${ECHO_T}found mysql:" >&6
3461     echo "$as_me:$LINENO: result: -> $mysql_lib" >&5
3462     echo "${ECHO_T}-> $mysql_lib" >&6
3463     echo "$as_me:$LINENO: result: -> $mysql_inc" >&5
3464     echo "${ECHO_T}-> $mysql_inc" >&6
3465     mysql=mysql
3466    
3467    
3468    
3469    
3470     else
3471     echo "${mysql_dir}"
3472 gcodispo 1.7 { echo "$as_me:$LINENO: WARNING: \"Can't find mysql\"" >&5
3473     echo "$as_me: WARNING: \"Can't find mysql\"" >&2;}
3474 gcodispo 1.1 { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3475     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3476     { (exit 1); exit 1; }; }
3477 gcodispo 1.7 fi
3478    
3479 gcodispo 1.8 if test x"${MAKE_MYSQL}" = x ; then
3480 gcodispo 1.10 LIBS=" -L${mysql_lib}"
3481 gcodispo 1.8 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
3482 gcodispo 1.7 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
3483     if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
3484     echo $ECHO_N "(cached) $ECHO_C" >&6
3485     else
3486     ac_check_lib_save_LIBS=$LIBS
3487     LIBS="-lmysqlclient $LIBS"
3488     cat >conftest.$ac_ext <<_ACEOF
3489     #line $LINENO "configure"
3490     /* confdefs.h. */
3491     _ACEOF
3492     cat confdefs.h >>conftest.$ac_ext
3493     cat >>conftest.$ac_ext <<_ACEOF
3494     /* end confdefs.h. */
3495    
3496 gcodispo 1.5
3497 gcodispo 1.7 int
3498     main ()
3499     {
3500     main ();
3501     ;
3502     return 0;
3503     }
3504     _ACEOF
3505     rm -f conftest.$ac_objext conftest$ac_exeext
3506     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507     (eval $ac_link) 2>&5
3508     ac_status=$?
3509     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510     (exit $ac_status); } &&
3511     { ac_try='test -s conftest$ac_exeext'
3512     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513     (eval $ac_try) 2>&5
3514     ac_status=$?
3515     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516     (exit $ac_status); }; }; then
3517     ac_cv_lib_mysqlclient_main=yes
3518     else
3519     echo "$as_me: failed program was:" >&5
3520     sed 's/^/| /' conftest.$ac_ext >&5
3521 gcodispo 1.5
3522 gcodispo 1.7 ac_cv_lib_mysqlclient_main=no
3523     fi
3524     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525     LIBS=$ac_check_lib_save_LIBS
3526 gcodispo 1.5 fi
3527 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
3528     echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
3529     if test $ac_cv_lib_mysqlclient_main = yes; then
3530 gcodispo 1.5
3531 gcodispo 1.8 for p in `ldd ${mysql_lib}/libmysqlclient.so`; do
3532     case $p in
3533     *ssl* )
3534     ssl="yes"
3535     ;;
3536     * )
3537     ;;
3538     esac
3539     done
3540     if test "${ssl}" = "yes" ; then
3541     echo "$as_me:$LINENO: result: -> found ssl dependency in mysl" >&5
3542 gcodispo 1.7 echo "${ECHO_T}-> found ssl dependency in mysl" >&6
3543 gcodispo 1.5
3544 gcodispo 1.7 echo "$as_me:$LINENO: checking for main in -lssl" >&5
3545     echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
3546     if test "${ac_cv_lib_ssl_main+set}" = set; then
3547 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3548     else
3549     ac_check_lib_save_LIBS=$LIBS
3550 gcodispo 1.7 LIBS="-lssl $LIBS"
3551 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3552     #line $LINENO "configure"
3553     /* confdefs.h. */
3554     _ACEOF
3555     cat confdefs.h >>conftest.$ac_ext
3556     cat >>conftest.$ac_ext <<_ACEOF
3557     /* end confdefs.h. */
3558    
3559    
3560     int
3561     main ()
3562     {
3563     main ();
3564     ;
3565     return 0;
3566     }
3567     _ACEOF
3568     rm -f conftest.$ac_objext conftest$ac_exeext
3569     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3570     (eval $ac_link) 2>&5
3571     ac_status=$?
3572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573     (exit $ac_status); } &&
3574     { ac_try='test -s conftest$ac_exeext'
3575     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576     (eval $ac_try) 2>&5
3577     ac_status=$?
3578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579     (exit $ac_status); }; }; then
3580 gcodispo 1.7 ac_cv_lib_ssl_main=yes
3581 gcodispo 1.5 else
3582     echo "$as_me: failed program was:" >&5
3583     sed 's/^/| /' conftest.$ac_ext >&5
3584    
3585 gcodispo 1.7 ac_cv_lib_ssl_main=no
3586 gcodispo 1.5 fi
3587     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3588     LIBS=$ac_check_lib_save_LIBS
3589     fi
3590 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
3591     echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
3592     if test $ac_cv_lib_ssl_main = yes; then
3593 gcodispo 1.5 cat >>confdefs.h <<_ACEOF
3594 gcodispo 1.7 #define HAVE_LIBSSL 1
3595 gcodispo 1.5 _ACEOF
3596    
3597 gcodispo 1.7 LIBS="-lssl $LIBS"
3598    
3599     else
3600 gcodispo 1.8 { { echo "$as_me:$LINENO: error: Missing ssl library needed by mysql" >&5
3601     echo "$as_me: error: Missing ssl library needed by mysql" >&2;}
3602 gcodispo 1.7 { (exit 1); exit 1; }; }
3603     fi
3604    
3605 gcodispo 1.8 ssl_lib="-lssl"
3606     # if test -f "/usr/lib/libssl.a" ; then
3607     # ssl_lib="/usr/lib/libssl.a"
3608     # else
3609     # AC_MSG_WARN(found only dynamic library for ssl)
3610     # AC_MSG_WARN(your mysql dbUpdator may not work always)
3611     # echo -e "\tPRESS ANY KEY TO CONTINUE"
3612     # read -n 1 junk
3613     # ssl_lib="-lssl"
3614     # fi
3615 gcodispo 1.7
3616 gcodispo 1.8 fi
3617 gcodispo 1.5
3618     else
3619    
3620 gcodispo 1.8 { { echo "$as_me:$LINENO: error: mysqlclient library not found. Please check mysql installation and path" >&5
3621 gcodispo 1.7 echo "$as_me: error: mysqlclient library not found. Please check mysql installation and path" >&2;}
3622 gcodispo 1.5 { (exit 1); exit 1; }; }
3623 gcodispo 1.7
3624 gcodispo 1.5 fi
3625    
3626 gcodispo 1.8 fi
3627 gcodispo 1.1
3628 gcodispo 1.7
3629    
3630 gcodispo 1.9 if test -n "${sqlite_dir}" ; then
3631     sqlite_lib=`(cd ${sqlite_dir}/lib; pwd)`
3632     sqlite_inc=`(cd ${sqlite_dir}/include; pwd)`
3633     fi
3634 gcodispo 1.7 if test x"${sqlite_dir}" = x ; then
3635     if test "${sqlite_dir+set}" = set; then
3636 gcodispo 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
3637     else
3638    
3639 gcodispo 1.7 if test -d "$srcdir/sqlite" ; then
3640     sqlite_dir=`(cd $srcdir/sqlite; pwd)`
3641 gcodispo 1.8 sqlite_inc=`(cd $srcdir/sqlite/include; pwd)`
3642     sqlite_lib="$sqlite_dir/lib"
3643 gcodispo 1.7 if test -f "$srcdir/sqlite/src/Makefile.in" ; then
3644     MAKE_SQLITE_DIR="$srcdir/sqlite/src/Makefile"
3645 gcodispo 1.5 fi
3646 gcodispo 1.7 if test -f "$srcdir/sqlite/Makefile" ; then
3647     MAKE_SQLITE="\$(MAKE) -C sqlite"
3648     MAKE_SQLITE_CLEAN="\$(MAKE) -C sqlite clean"
3649 gcodispo 1.1
3650    
3651 gcodispo 1.7 fi
3652 gcodispo 1.5 fi
3653 gcodispo 1.1
3654 gcodispo 1.7 # check for ${VO_CMS_SW_DIR}/lcg/external/sqlite
3655     if test x"${sqlite_dir}" = x ; then
3656 gcodispo 1.5 for i in \
3657 gcodispo 1.7 `ls -dr ${VO_CMS_SW_DIR}/lcg/external/sqlite/*3.*.**/${SYSTEM} 2>/dev/null` \
3658     `ls -dr /afs/cern.ch/cms/external/lcg/external/sqlite/*3.*.**/${SYSTEM} 2>/dev/null`
3659 gcodispo 1.5 do
3660 gcodispo 1.7 if test -f "$i/lib/libsqlite3.a" ; then
3661     sqlite_dir=`(cd $i; pwd)`
3662 gcodispo 1.8 sqlite_lib=`(cd $i/lib; pwd)`
3663     sqlite_inc=`(cd $i/include; pwd)`
3664 gcodispo 1.5 break
3665     fi
3666     done
3667     fi
3668 gcodispo 1.1
3669     # check in a few common install locations
3670 gcodispo 1.7 if test x"${sqlite_dir}" = x ; then
3671 gcodispo 1.5 for i in \
3672     `ls -d ${libdir} 2>/dev/null` \
3673 gcodispo 1.8 `ls -d /usr/lib/sqlite/libsqlite3.a 2>/dev/null` \
3674     `ls -d /usr/lib/libsqlite3.a 2>/dev/null` \
3675     `ls -d /usr/local/lib/sqlite/libsqlite3.a 2>/dev/null` \
3676     `ls -d /usr/local/lib/libsqlite3.a 2>/dev/null` \
3677     `ls -d /usr/contrib/lib/sqlite/libsqlite3.a 2>/dev/null` \
3678     `ls -d /usr/contrib/lib/libsqlite3.a 2>/dev/null`
3679 gcodispo 1.5 do
3680 gcodispo 1.8 if test -f "$i" ; then
3681     sqlite_lib=`dirname $i`
3682 gcodispo 1.5 break
3683     fi
3684     done
3685 gcodispo 1.8 if test x"${sqlite_lib}" != x; then
3686     for i in \
3687     `ls -d ${includedir} 2>/dev/null` \
3688     `ls -d /usr/include/sqlite/sqlite3.h 2>/dev/null` \
3689     `ls -d /usr/include/sqlite3.h 2>/dev/null` \
3690     `ls -d /usr/local/include/sqlite/sqlite3.h 2>/dev/null` \
3691     `ls -d /usr/local/include/sqlite3.h 2>/dev/null` \
3692     `ls -d /usr/contrib/include/sqlite/sqlite3.h 2>/dev/null` \
3693     `ls -d /usr/contrib/include/sqlite3.h 2>/dev/null`
3694     do
3695     if test -f "$i" ; then
3696     sqlite_inc=`dirname $i`
3697     sqlite_dir=`dirname $sqlite_inc`
3698     break
3699     fi
3700     done
3701     fi
3702 gcodispo 1.5 fi
3703 gcodispo 1.1
3704 gcodispo 1.5 fi
3705 gcodispo 1.1
3706     fi
3707    
3708 gcodispo 1.8 if test x"${MAKE_SQLITE}" = x ; then
3709 gcodispo 1.10 LIBS=" -L${sqlite_lib}"
3710 gcodispo 1.7
3711     echo "$as_me:$LINENO: checking for main in -lsqlite3" >&5
3712     echo $ECHO_N "checking for main in -lsqlite3... $ECHO_C" >&6
3713     if test "${ac_cv_lib_sqlite3_main+set}" = set; then
3714 gcodispo 1.5 echo $ECHO_N "(cached) $ECHO_C" >&6
3715     else
3716     ac_check_lib_save_LIBS=$LIBS
3717 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3718 gcodispo 1.5 cat >conftest.$ac_ext <<_ACEOF
3719     #line $LINENO "configure"
3720     /* confdefs.h. */
3721     _ACEOF
3722     cat confdefs.h >>conftest.$ac_ext
3723     cat >>conftest.$ac_ext <<_ACEOF
3724     /* end confdefs.h. */
3725    
3726    
3727     int
3728     main ()
3729     {
3730     main ();
3731     ;
3732     return 0;
3733     }
3734     _ACEOF
3735     rm -f conftest.$ac_objext conftest$ac_exeext
3736     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3737     (eval $ac_link) 2>&5
3738     ac_status=$?
3739     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740     (exit $ac_status); } &&
3741     { ac_try='test -s conftest$ac_exeext'
3742     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743     (eval $ac_try) 2>&5
3744     ac_status=$?
3745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746     (exit $ac_status); }; }; then
3747 gcodispo 1.7 ac_cv_lib_sqlite3_main=yes
3748 gcodispo 1.5 else
3749     echo "$as_me: failed program was:" >&5
3750     sed 's/^/| /' conftest.$ac_ext >&5
3751    
3752 gcodispo 1.7 ac_cv_lib_sqlite3_main=no
3753 gcodispo 1.5 fi
3754     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755     LIBS=$ac_check_lib_save_LIBS
3756     fi
3757 gcodispo 1.7 echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_main" >&5
3758     echo "${ECHO_T}$ac_cv_lib_sqlite3_main" >&6
3759     if test $ac_cv_lib_sqlite3_main = yes; then
3760     cat >>confdefs.h <<_ACEOF
3761     #define HAVE_LIBSQLITE3 1
3762     _ACEOF
3763 gcodispo 1.5
3764 gcodispo 1.7 LIBS="-lsqlite3 $LIBS"
3765 gcodispo 1.5
3766     else
3767    
3768 gcodispo 1.8 { { echo "$as_me:$LINENO: error: sqlite3 library not found. Please check sqlite installation and path" >&5
3769 gcodispo 1.7 echo "$as_me: error: sqlite3 library not found. Please check sqlite installation and path" >&2;}
3770 gcodispo 1.5 { (exit 1); exit 1; }; }
3771 gcodispo 1.7 fi
3772 gcodispo 1.1
3773 gcodispo 1.8 fi
3774    
3775     if test -d "${sqlite_dir}" ; then
3776     echo "$as_me:$LINENO: result: found sqlite:" >&5
3777     echo "${ECHO_T}found sqlite:" >&6
3778     echo "$as_me:$LINENO: result: -> $sqlite_lib" >&5
3779     echo "${ECHO_T}-> $sqlite_lib" >&6
3780     echo "$as_me:$LINENO: result: -> $sqlite_inc" >&5
3781     echo "${ECHO_T}-> $sqlite_inc" >&6
3782     sqlite=sqlite
3783    
3784    
3785    
3786    
3787     else
3788     { echo "$as_me:$LINENO: WARNING: \"Can't find sqlite\"" >&5
3789     echo "$as_me: WARNING: \"Can't find sqlite\"" >&2;}
3790     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3791     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3792     { (exit 1); exit 1; }; }
3793     fi
3794    
3795    
3796    
3797 gcodispo 1.9 if test -n "${monalisa_dir}" ; then
3798     monalisa_lib=`(cd ${monalisa_dir}/lib; pwd)`
3799     monalisa_inc=`(cd ${monalisa_dir}/include; pwd)`
3800     fi
3801 gcodispo 1.8 if test x"${monalisa_dir}" = x ; then
3802     if test "${monalisa_dir+set}" = set; then
3803     echo $ECHO_N "(cached) $ECHO_C" >&6
3804     else
3805    
3806     if test -d "$srcdir/MonaLisa" ; then
3807     monalisa_dir=`(cd $srcdir/MonaLisa; pwd)`
3808     monalisa_inc=`(cd $srcdir/MonaLisa/include; pwd)`
3809     monalisa_lib="$monalisa_dir/lib"
3810     if test -f "$srcdir/MonaLisa/Makefile.in" ; then
3811     MAKE_MONALISA_DIR="$srcdir/MonaLisa/src/Makefile"
3812     fi
3813     if test -f "$srcdir/MonaLisa/Makefile" ; then
3814     MAKE_MONALISA="\$(MAKE) -C MonaLisa"
3815     MAKE_MONALISA_CLEAN="\$(MAKE) -C MonaLisa clean"
3816    
3817    
3818     fi
3819     fi
3820    
3821     # check for ${VO_CMS_SW_DIR}/lcg/app/releases/MonaLisa
3822     if test x"${monalisa_dir}" = x ; then
3823     for i in \
3824     `ls -dr ${VO_CMS_SW_DIR}/lcg/app/releases/MonaLisa 2>/dev/null` \
3825     `ls -dr /afs/cern.ch/cms/external/lcg/app/releases/MonaLisa 2>/dev/null`
3826     do
3827     if test -f "$i/lib/libMonaLisa.so" ; then
3828     monalisa_dir=`(cd $i; pwd)`
3829     monalisa_lib=`(cd $i/lib; pwd)`
3830     monalisa_inc=`(cd $i/include; pwd)`
3831     break
3832     fi
3833     done
3834     fi
3835    
3836     fi
3837    
3838     fi
3839    
3840     if test -d "${monalisa_dir}" ; then
3841     echo "$as_me:$LINENO: result: found monalisa:" >&5
3842     echo "${ECHO_T}found monalisa:" >&6
3843     echo "$as_me:$LINENO: result: -> $monalisa_lib" >&5
3844     echo "${ECHO_T}-> $monalisa_lib" >&6
3845     echo "$as_me:$LINENO: result: -> $monalisa_inc" >&5
3846     echo "${ECHO_T}-> $monalisa_inc" >&6
3847     monalisa=monalisa
3848    
3849    
3850    
3851    
3852     else
3853     { echo "$as_me:$LINENO: WARNING: \"Can't find monalisa\"" >&5
3854     echo "$as_me: WARNING: \"Can't find monalisa\"" >&2;}
3855     { { echo "$as_me:$LINENO: error: Please install it and rerun configuration" >&5
3856     echo "$as_me: error: Please install it and rerun configuration" >&2;}
3857     { (exit 1); exit 1; }; }
3858     fi
3859    
3860     if test x"${MAKE_MONALISA}" = x ; then
3861     LIBS=" -L${monalisa_lib}"
3862    
3863 gcodispo 1.10 echo "$as_me:$LINENO: checking for main in -lapmoncpp" >&5
3864     echo $ECHO_N "checking for main in -lapmoncpp... $ECHO_C" >&6
3865     if test "${ac_cv_lib_apmoncpp_main+set}" = set; then
3866 gcodispo 1.8 echo $ECHO_N "(cached) $ECHO_C" >&6
3867     else
3868     ac_check_lib_save_LIBS=$LIBS
3869 gcodispo 1.10 LIBS="-lapmoncpp $LIBS"
3870 gcodispo 1.8 cat >conftest.$ac_ext <<_ACEOF
3871     #line $LINENO "configure"
3872     /* confdefs.h. */
3873     _ACEOF
3874     cat confdefs.h >>conftest.$ac_ext
3875     cat >>conftest.$ac_ext <<_ACEOF
3876     /* end confdefs.h. */
3877    
3878    
3879     int
3880     main ()
3881     {
3882     main ();
3883     ;
3884     return 0;
3885     }
3886     _ACEOF
3887     rm -f conftest.$ac_objext conftest$ac_exeext
3888     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889     (eval $ac_link) 2>&5
3890     ac_status=$?
3891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892     (exit $ac_status); } &&
3893     { ac_try='test -s conftest$ac_exeext'
3894     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895     (eval $ac_try) 2>&5
3896     ac_status=$?
3897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898     (exit $ac_status); }; }; then
3899 gcodispo 1.10 ac_cv_lib_apmoncpp_main=yes
3900 gcodispo 1.8 else
3901     echo "$as_me: failed program was:" >&5
3902     sed 's/^/| /' conftest.$ac_ext >&5
3903    
3904 gcodispo 1.10 ac_cv_lib_apmoncpp_main=no
3905 gcodispo 1.8 fi
3906     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3907     LIBS=$ac_check_lib_save_LIBS
3908     fi
3909 gcodispo 1.10 echo "$as_me:$LINENO: result: $ac_cv_lib_apmoncpp_main" >&5
3910     echo "${ECHO_T}$ac_cv_lib_apmoncpp_main" >&6
3911     if test $ac_cv_lib_apmoncpp_main = yes; then
3912 gcodispo 1.8 cat >>confdefs.h <<_ACEOF
3913 gcodispo 1.10 #define HAVE_LIBAPMONCPP 1
3914 gcodispo 1.8 _ACEOF
3915    
3916 gcodispo 1.10 LIBS="-lapmoncpp $LIBS"
3917 gcodispo 1.8
3918     else
3919    
3920 gcodispo 1.9 { { echo "$as_me:$LINENO: error: MonaLisa library not found. Please check MonaLisa installation and path" >&5
3921     echo "$as_me: error: MonaLisa library not found. Please check MonaLisa installation and path" >&2;}
3922 gcodispo 1.8 { (exit 1); exit 1; }; }
3923    
3924     fi
3925    
3926     fi
3927    
3928 gcodispo 1.10
3929 gcodispo 1.8
3930    
3931    
3932     clarens_dir=""
3933     clarens_lib=""
3934     clarens_inc=""
3935     clarens=""
3936    
3937    
3938    
3939    
3940 gcodispo 1.1
3941 gcodispo 1.8 # DUMMY
3942 gcodispo 1.1
3943     # Checks for header files.
3944    
3945     echo "$as_me:$LINENO: checking for egrep" >&5
3946     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3947     if test "${ac_cv_prog_egrep+set}" = set; then
3948     echo $ECHO_N "(cached) $ECHO_C" >&6
3949     else
3950     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3951     then ac_cv_prog_egrep='grep -E'
3952     else ac_cv_prog_egrep='egrep'
3953     fi
3954     fi
3955     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3956     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3957     EGREP=$ac_cv_prog_egrep
3958    
3959    
3960     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3961     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3962     if test "${ac_cv_header_stdc+set}" = set; then
3963     echo $ECHO_N "(cached) $ECHO_C" >&6
3964     else
3965     cat >conftest.$ac_ext <<_ACEOF
3966     #line $LINENO "configure"
3967     /* confdefs.h. */
3968     _ACEOF
3969     cat confdefs.h >>conftest.$ac_ext
3970     cat >>conftest.$ac_ext <<_ACEOF
3971     /* end confdefs.h. */
3972     #include <stdlib.h>
3973     #include <stdarg.h>
3974     #include <string.h>
3975     #include <float.h>
3976    
3977     int
3978     main ()
3979     {
3980    
3981     ;
3982     return 0;
3983     }
3984     _ACEOF
3985     rm -f conftest.$ac_objext
3986     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987     (eval $ac_compile) 2>&5
3988     ac_status=$?
3989     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990     (exit $ac_status); } &&
3991     { ac_try='test -s conftest.$ac_objext'
3992     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993     (eval $ac_try) 2>&5
3994     ac_status=$?
3995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996     (exit $ac_status); }; }; then
3997     ac_cv_header_stdc=yes
3998     else
3999     echo "$as_me: failed program was:" >&5
4000     sed 's/^/| /' conftest.$ac_ext >&5
4001    
4002     ac_cv_header_stdc=no
4003     fi
4004     rm -f conftest.$ac_objext conftest.$ac_ext
4005    
4006     if test $ac_cv_header_stdc = yes; then
4007     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4008     cat >conftest.$ac_ext <<_ACEOF
4009     #line $LINENO "configure"
4010     /* confdefs.h. */
4011     _ACEOF
4012     cat confdefs.h >>conftest.$ac_ext
4013     cat >>conftest.$ac_ext <<_ACEOF
4014     /* end confdefs.h. */
4015     #include <string.h>
4016    
4017     _ACEOF
4018     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019     $EGREP "memchr" >/dev/null 2>&1; then
4020     :
4021     else
4022     ac_cv_header_stdc=no
4023     fi
4024     rm -f conftest*
4025    
4026     fi
4027    
4028     if test $ac_cv_header_stdc = yes; then
4029     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030     cat >conftest.$ac_ext <<_ACEOF
4031     #line $LINENO "configure"
4032     /* confdefs.h. */
4033     _ACEOF
4034     cat confdefs.h >>conftest.$ac_ext
4035     cat >>conftest.$ac_ext <<_ACEOF
4036     /* end confdefs.h. */
4037     #include <stdlib.h>
4038    
4039     _ACEOF
4040     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041     $EGREP "free" >/dev/null 2>&1; then
4042     :
4043     else
4044     ac_cv_header_stdc=no
4045     fi
4046     rm -f conftest*
4047    
4048     fi
4049    
4050     if test $ac_cv_header_stdc = yes; then
4051     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4052     if test "$cross_compiling" = yes; then
4053     :
4054     else
4055     cat >conftest.$ac_ext <<_ACEOF
4056     #line $LINENO "configure"
4057     /* confdefs.h. */
4058     _ACEOF
4059     cat confdefs.h >>conftest.$ac_ext
4060     cat >>conftest.$ac_ext <<_ACEOF
4061     /* end confdefs.h. */
4062     #include <ctype.h>
4063     #if ((' ' & 0x0FF) == 0x020)
4064     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4065     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4066     #else
4067     # define ISLOWER(c) \
4068     (('a' <= (c) && (c) <= 'i') \
4069     || ('j' <= (c) && (c) <= 'r') \
4070     || ('s' <= (c) && (c) <= 'z'))
4071     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4072     #endif
4073    
4074     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4075     int
4076     main ()
4077     {
4078     int i;
4079     for (i = 0; i < 256; i++)
4080     if (XOR (islower (i), ISLOWER (i))
4081     || toupper (i) != TOUPPER (i))
4082     exit(2);
4083     exit (0);
4084     }
4085     _ACEOF
4086     rm -f conftest$ac_exeext
4087     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4088     (eval $ac_link) 2>&5
4089     ac_status=$?
4090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4092     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093     (eval $ac_try) 2>&5
4094     ac_status=$?
4095     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096     (exit $ac_status); }; }; then
4097     :
4098     else
4099     echo "$as_me: program exited with status $ac_status" >&5
4100     echo "$as_me: failed program was:" >&5
4101     sed 's/^/| /' conftest.$ac_ext >&5
4102    
4103     ( exit $ac_status )
4104     ac_cv_header_stdc=no
4105     fi
4106     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4107     fi
4108     fi
4109     fi
4110     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4111     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4112     if test $ac_cv_header_stdc = yes; then
4113    
4114     cat >>confdefs.h <<\_ACEOF
4115     #define STDC_HEADERS 1
4116     _ACEOF
4117    
4118     fi
4119    
4120     echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4121     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4122     if test "${ac_cv_header_sys_wait_h+set}" = set; then
4123     echo $ECHO_N "(cached) $ECHO_C" >&6
4124     else
4125     cat >conftest.$ac_ext <<_ACEOF
4126     #line $LINENO "configure"
4127     /* confdefs.h. */
4128     _ACEOF
4129     cat confdefs.h >>conftest.$ac_ext
4130     cat >>conftest.$ac_ext <<_ACEOF
4131     /* end confdefs.h. */
4132     #include <sys/types.h>
4133     #include <sys/wait.h>
4134     #ifndef WEXITSTATUS
4135     # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4136     #endif
4137     #ifndef WIFEXITED
4138     # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4139     #endif
4140    
4141     int
4142     main ()
4143     {
4144     int s;
4145     wait (&s);
4146     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4147     ;
4148     return 0;
4149     }
4150     _ACEOF
4151     rm -f conftest.$ac_objext
4152     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153     (eval $ac_compile) 2>&5
4154     ac_status=$?
4155     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156     (exit $ac_status); } &&
4157     { ac_try='test -s conftest.$ac_objext'
4158     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159     (eval $ac_try) 2>&5
4160     ac_status=$?
4161     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162     (exit $ac_status); }; }; then
4163     ac_cv_header_sys_wait_h=yes
4164     else
4165     echo "$as_me: failed program was:" >&5
4166     sed 's/^/| /' conftest.$ac_ext >&5
4167    
4168     ac_cv_header_sys_wait_h=no
4169     fi
4170     rm -f conftest.$ac_objext conftest.$ac_ext
4171     fi
4172     echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4173     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4174     if test $ac_cv_header_sys_wait_h = yes; then
4175    
4176     cat >>confdefs.h <<\_ACEOF
4177     #define HAVE_SYS_WAIT_H 1
4178     _ACEOF
4179    
4180     fi
4181    
4182     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4183    
4184    
4185    
4186    
4187    
4188    
4189    
4190    
4191    
4192     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4193     inttypes.h stdint.h unistd.h
4194     do
4195     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196     echo "$as_me:$LINENO: checking for $ac_header" >&5
4197     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199     echo $ECHO_N "(cached) $ECHO_C" >&6
4200     else
4201     cat >conftest.$ac_ext <<_ACEOF
4202     #line $LINENO "configure"
4203     /* confdefs.h. */
4204     _ACEOF
4205     cat confdefs.h >>conftest.$ac_ext
4206     cat >>conftest.$ac_ext <<_ACEOF
4207     /* end confdefs.h. */
4208     $ac_includes_default
4209    
4210     #include <$ac_header>
4211     _ACEOF
4212     rm -f conftest.$ac_objext
4213     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214     (eval $ac_compile) 2>&5
4215     ac_status=$?
4216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217     (exit $ac_status); } &&
4218     { ac_try='test -s conftest.$ac_objext'
4219     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220     (eval $ac_try) 2>&5
4221     ac_status=$?
4222     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223     (exit $ac_status); }; }; then
4224     eval "$as_ac_Header=yes"
4225     else
4226     echo "$as_me: failed program was:" >&5
4227     sed 's/^/| /' conftest.$ac_ext >&5
4228    
4229     eval "$as_ac_Header=no"
4230     fi
4231     rm -f conftest.$ac_objext conftest.$ac_ext
4232     fi
4233     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4234     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4235     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236     cat >>confdefs.h <<_ACEOF
4237     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238     _ACEOF
4239    
4240     fi
4241    
4242     done
4243    
4244    
4245    
4246    
4247    
4248    
4249    
4250    
4251    
4252     for ac_header in arpa/inet.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
4253     do
4254     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4255     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256     echo "$as_me:$LINENO: checking for $ac_header" >&5
4257     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259     echo $ECHO_N "(cached) $ECHO_C" >&6
4260     fi
4261     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4262     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4263     else
4264     # Is the header compilable?
4265     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4266     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4267     cat >conftest.$ac_ext <<_ACEOF
4268     #line $LINENO "configure"
4269     /* confdefs.h. */
4270     _ACEOF
4271     cat confdefs.h >>conftest.$ac_ext
4272     cat >>conftest.$ac_ext <<_ACEOF
4273     /* end confdefs.h. */
4274     $ac_includes_default
4275     #include <$ac_header>
4276     _ACEOF
4277     rm -f conftest.$ac_objext
4278     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279     (eval $ac_compile) 2>&5
4280     ac_status=$?
4281     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282     (exit $ac_status); } &&
4283     { ac_try='test -s conftest.$ac_objext'
4284     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285     (eval $ac_try) 2>&5
4286     ac_status=$?
4287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288     (exit $ac_status); }; }; then
4289     ac_header_compiler=yes
4290     else
4291     echo "$as_me: failed program was:" >&5
4292     sed 's/^/| /' conftest.$ac_ext >&5
4293    
4294     ac_header_compiler=no
4295     fi
4296     rm -f conftest.$ac_objext conftest.$ac_ext
4297     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298     echo "${ECHO_T}$ac_header_compiler" >&6
4299    
4300     # Is the header present?
4301     echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4303     cat >conftest.$ac_ext <<_ACEOF
4304     #line $LINENO "configure"
4305     /* confdefs.h. */
4306     _ACEOF
4307     cat confdefs.h >>conftest.$ac_ext
4308     cat >>conftest.$ac_ext <<_ACEOF
4309     /* end confdefs.h. */
4310     #include <$ac_header>
4311     _ACEOF
4312     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4314     ac_status=$?
4315     grep -v '^ *+' conftest.er1 >conftest.err
4316     rm -f conftest.er1
4317     cat conftest.err >&5
4318     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319     (exit $ac_status); } >/dev/null; then
4320     if test -s conftest.err; then
4321     ac_cpp_err=$ac_c_preproc_warn_flag
4322     else
4323     ac_cpp_err=
4324     fi
4325     else
4326     ac_cpp_err=yes
4327     fi
4328     if test -z "$ac_cpp_err"; then
4329     ac_header_preproc=yes
4330     else
4331     echo "$as_me: failed program was:" >&5
4332     sed 's/^/| /' conftest.$ac_ext >&5
4333    
4334     ac_header_preproc=no
4335     fi
4336     rm -f conftest.err conftest.$ac_ext
4337     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4338     echo "${ECHO_T}$ac_header_preproc" >&6
4339    
4340     # So? What about this header?
4341     case $ac_header_compiler:$ac_header_preproc in
4342     yes:no )
4343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4344     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4346     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4347     (
4348     cat <<\_ASBOX
4349     ## ------------------------------------ ##
4350     ## Report this to bug-autoconf@gnu.org. ##
4351     ## ------------------------------------ ##
4352     _ASBOX
4353     ) |
4354     sed "s/^/$as_me: WARNING: /" >&2
4355     ;;
4356     no:yes )
4357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4358     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4359     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4360     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4362     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4363     (
4364     cat <<\_ASBOX
4365     ## ------------------------------------ ##
4366     ## Report this to bug-autoconf@gnu.org. ##
4367     ## ------------------------------------ ##
4368     _ASBOX
4369     ) |
4370     sed "s/^/$as_me: WARNING: /" >&2
4371     ;;
4372     esac
4373     echo "$as_me:$LINENO: checking for $ac_header" >&5
4374     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4375     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4376     echo $ECHO_N "(cached) $ECHO_C" >&6
4377     else
4378     eval "$as_ac_Header=$ac_header_preproc"
4379     fi
4380     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4381     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4382    
4383     fi
4384     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385     cat >>confdefs.h <<_ACEOF
4386     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387     _ACEOF
4388    
4389     fi
4390    
4391     done
4392    
4393    
4394     # Checks for typedefs, structures, and compiler characteristics.
4395     echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4396     echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4397     if test "${ac_cv_header_stdbool_h+set}" = set; then
4398     echo $ECHO_N "(cached) $ECHO_C" >&6
4399     else
4400     cat >conftest.$ac_ext <<_ACEOF
4401     #line $LINENO "configure"
4402     /* confdefs.h. */
4403     _ACEOF
4404     cat confdefs.h >>conftest.$ac_ext
4405     cat >>conftest.$ac_ext <<_ACEOF
4406     /* end confdefs.h. */
4407    
4408     #include <stdbool.h>
4409     #ifndef bool
4410     # error bool is not defined
4411     #endif
4412     #ifndef false
4413     # error false is not defined
4414     #endif
4415     #if false
4416     # error false is not 0
4417     #endif
4418     #ifndef true
4419     # error true is not defined
4420     #endif
4421     #if true != 1
4422     # error true is not 1
4423     #endif
4424     #ifndef __bool_true_false_are_defined
4425     # error __bool_true_false_are_defined is not defined
4426     #endif
4427    
4428     struct s { _Bool s: 1; _Bool t; } s;
4429    
4430     char a[true == 1 ? 1 : -1];
4431     char b[false == 0 ? 1 : -1];
4432     char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4433     char d[(bool) -0.5 == true ? 1 : -1];
4434     bool e = &s;
4435     char f[(_Bool) -0.0 == false ? 1 : -1];
4436     char g[true];
4437     char h[sizeof (_Bool)];
4438     char i[sizeof s.t];
4439    
4440     int
4441     main ()
4442     {
4443     return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4444     ;
4445     return 0;
4446     }
4447     _ACEOF
4448     rm -f conftest.$ac_objext
4449     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450     (eval $ac_compile) 2>&5
4451     ac_status=$?
4452     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453     (exit $ac_status); } &&
4454     { ac_try='test -s conftest.$ac_objext'
4455     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456     (eval $ac_try) 2>&5
4457     ac_status=$?
4458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459     (exit $ac_status); }; }; then
4460     ac_cv_header_stdbool_h=yes
4461     else
4462     echo "$as_me: failed program was:" >&5
4463     sed 's/^/| /' conftest.$ac_ext >&5
4464    
4465     ac_cv_header_stdbool_h=no
4466     fi
4467     rm -f conftest.$ac_objext conftest.$ac_ext
4468     fi
4469     echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4470     echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4471     echo "$as_me:$LINENO: checking for _Bool" >&5
4472     echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4473     if test "${ac_cv_type__Bool+set}" = set; then
4474     echo $ECHO_N "(cached) $ECHO_C" >&6
4475     else
4476     cat >conftest.$ac_ext <<_ACEOF
4477     #line $LINENO "configure"
4478     /* confdefs.h. */
4479     _ACEOF
4480     cat confdefs.h >>conftest.$ac_ext
4481     cat >>conftest.$ac_ext <<_ACEOF
4482     /* end confdefs.h. */
4483     $ac_includes_default
4484     int
4485     main ()
4486     {
4487     if ((_Bool *) 0)
4488     return 0;
4489     if (sizeof (_Bool))
4490     return 0;
4491     ;
4492     return 0;
4493     }
4494     _ACEOF
4495     rm -f conftest.$ac_objext
4496     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497     (eval $ac_compile) 2>&5
4498     ac_status=$?
4499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500     (exit $ac_status); } &&
4501     { ac_try='test -s conftest.$ac_objext'
4502     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503     (eval $ac_try) 2>&5
4504     ac_status=$?
4505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506     (exit $ac_status); }; }; then
4507     ac_cv_type__Bool=yes
4508     else
4509     echo "$as_me: failed program was:" >&5
4510     sed 's/^/| /' conftest.$ac_ext >&5
4511    
4512     ac_cv_type__Bool=no
4513     fi
4514     rm -f conftest.$ac_objext conftest.$ac_ext
4515     fi
4516     echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4517     echo "${ECHO_T}$ac_cv_type__Bool" >&6
4518     if test $ac_cv_type__Bool = yes; then
4519    
4520     cat >>confdefs.h <<_ACEOF
4521     #define HAVE__BOOL 1
4522     _ACEOF
4523    
4524    
4525     fi
4526    
4527     if test $ac_cv_header_stdbool_h = yes; then
4528    
4529     cat >>confdefs.h <<\_ACEOF
4530     #define HAVE_STDBOOL_H 1
4531     _ACEOF
4532    
4533     fi
4534    
4535     echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4536     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4537     if test "${ac_cv_c_const+set}" = set; then
4538     echo $ECHO_N "(cached) $ECHO_C" >&6
4539     else
4540     cat >conftest.$ac_ext <<_ACEOF
4541     #line $LINENO "configure"
4542     /* confdefs.h. */
4543     _ACEOF
4544     cat confdefs.h >>conftest.$ac_ext
4545     cat >>conftest.$ac_ext <<_ACEOF
4546     /* end confdefs.h. */
4547    
4548     int
4549     main ()
4550     {
4551     /* FIXME: Include the comments suggested by Paul. */
4552     #ifndef __cplusplus
4553     /* Ultrix mips cc rejects this. */
4554     typedef int charset[2];
4555     const charset x;
4556     /* SunOS 4.1.1 cc rejects this. */
4557     char const *const *ccp;
4558     char **p;
4559     /* NEC SVR4.0.2 mips cc rejects this. */
4560     struct point {int x, y;};
4561     static struct point const zero = {0,0};
4562     /* AIX XL C 1.02.0.0 rejects this.
4563     It does not let you subtract one const X* pointer from another in
4564     an arm of an if-expression whose if-part is not a constant
4565     expression */
4566     const char *g = "string";
4567     ccp = &g + (g ? g-g : 0);
4568     /* HPUX 7.0 cc rejects these. */
4569     ++ccp;
4570     p = (char**) ccp;
4571     ccp = (char const *const *) p;
4572     { /* SCO 3.2v4 cc rejects this. */
4573     char *t;
4574     char const *s = 0 ? (char *) 0 : (char const *) 0;
4575    
4576     *t++ = 0;
4577     }
4578     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4579     int x[] = {25, 17};
4580     const int *foo = &x[0];
4581     ++foo;
4582     }
4583     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4584     typedef const int *iptr;
4585     iptr p = 0;
4586     ++p;
4587     }
4588     { /* AIX XL C 1.02.0.0 rejects this saying
4589     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4590     struct s { int j; const int *ap[3]; };
4591     struct s *b; b->j = 5;
4592     }
4593     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4594     const int foo = 10;
4595     }
4596     #endif
4597    
4598     ;
4599     return 0;
4600     }
4601     _ACEOF
4602     rm -f conftest.$ac_objext
4603     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604     (eval $ac_compile) 2>&5
4605     ac_status=$?
4606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607     (exit $ac_status); } &&
4608     { ac_try='test -s conftest.$ac_objext'
4609     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610     (eval $ac_try) 2>&5
4611     ac_status=$?
4612     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613     (exit $ac_status); }; }; then
4614     ac_cv_c_const=yes
4615     else
4616     echo "$as_me: failed program was:" >&5
4617     sed 's/^/| /' conftest.$ac_ext >&5
4618    
4619     ac_cv_c_const=no
4620     fi
4621     rm -f conftest.$ac_objext conftest.$ac_ext
4622     fi
4623     echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4624     echo "${ECHO_T}$ac_cv_c_const" >&6
4625     if test $ac_cv_c_const = no; then
4626    
4627     cat >>confdefs.h <<\_ACEOF
4628     #define const
4629     _ACEOF
4630    
4631     fi
4632    
4633     echo "$as_me:$LINENO: checking for inline" >&5
4634     echo $ECHO_N "checking for inline... $ECHO_C" >&6
4635     if test "${ac_cv_c_inline+set}" = set; then
4636     echo $ECHO_N "(cached) $ECHO_C" >&6
4637     else
4638     ac_cv_c_inline=no
4639     for ac_kw in inline __inline__ __inline; do
4640     cat >conftest.$ac_ext <<_ACEOF
4641     #line $LINENO "configure"
4642     /* confdefs.h. */
4643     _ACEOF
4644     cat confdefs.h >>conftest.$ac_ext
4645     cat >>conftest.$ac_ext <<_ACEOF
4646     /* end confdefs.h. */
4647     #ifndef __cplusplus
4648     typedef int foo_t;
4649     static $ac_kw foo_t static_foo () {return 0; }
4650     $ac_kw foo_t foo () {return 0; }
4651     #endif
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_inline=$ac_kw; break
4667     else
4668     echo "$as_me: failed program was:" >&5
4669     sed 's/^/| /' conftest.$ac_ext >&5
4670    
4671     fi
4672     rm -f conftest.$ac_objext conftest.$ac_ext
4673     done
4674    
4675     fi
4676     echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4677     echo "${ECHO_T}$ac_cv_c_inline" >&6
4678     case $ac_cv_c_inline in
4679     inline | yes) ;;
4680     no)
4681     cat >>confdefs.h <<\_ACEOF
4682     #define inline
4683     _ACEOF
4684     ;;
4685     *) cat >>confdefs.h <<_ACEOF
4686     #define inline $ac_cv_c_inline
4687     _ACEOF
4688     ;;
4689     esac
4690    
4691     echo "$as_me:$LINENO: checking for pid_t" >&5
4692     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4693     if test "${ac_cv_type_pid_t+set}" = set; then
4694     echo $ECHO_N "(cached) $ECHO_C" >&6
4695     else
4696     cat >conftest.$ac_ext <<_ACEOF
4697     #line $LINENO "configure"
4698     /* confdefs.h. */
4699     _ACEOF
4700     cat confdefs.h >>conftest.$ac_ext
4701     cat >>conftest.$ac_ext <<_ACEOF
4702     /* end confdefs.h. */
4703     $ac_includes_default
4704     int
4705     main ()
4706     {
4707     if ((pid_t *) 0)
4708     return 0;
4709     if (sizeof (pid_t))
4710     return 0;
4711     ;
4712     return 0;
4713     }
4714     _ACEOF
4715     rm -f conftest.$ac_objext
4716     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717     (eval $ac_compile) 2>&5
4718     ac_status=$?
4719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720     (exit $ac_status); } &&
4721     { ac_try='test -s conftest.$ac_objext'
4722     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723     (eval $ac_try) 2>&5
4724     ac_status=$?
4725     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726     (exit $ac_status); }; }; then
4727     ac_cv_type_pid_t=yes
4728     else
4729     echo "$as_me: failed program was:" >&5
4730     sed 's/^/| /' conftest.$ac_ext >&5
4731    
4732     ac_cv_type_pid_t=no
4733     fi
4734     rm -f conftest.$ac_objext conftest.$ac_ext
4735     fi
4736     echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4737     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4738     if test $ac_cv_type_pid_t = yes; then
4739     :
4740     else
4741    
4742     cat >>confdefs.h <<_ACEOF
4743     #define pid_t int
4744     _ACEOF
4745    
4746     fi
4747    
4748     echo "$as_me:$LINENO: checking for size_t" >&5
4749     echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4750     if test "${ac_cv_type_size_t+set}" = set; then
4751     echo $ECHO_N "(cached) $ECHO_C" >&6
4752     else
4753     cat >conftest.$ac_ext <<_ACEOF
4754     #line $LINENO "configure"
4755     /* confdefs.h. */
4756     _ACEOF
4757     cat confdefs.h >>conftest.$ac_ext
4758     cat >>conftest.$ac_ext <<_ACEOF
4759     /* end confdefs.h. */
4760     $ac_includes_default
4761     int
4762     main ()
4763     {
4764     if ((size_t *) 0)
4765     return 0;
4766     if (sizeof (size_t))
4767     return 0;
4768     ;
4769     return 0;
4770     }
4771     _ACEOF
4772     rm -f conftest.$ac_objext
4773     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774     (eval $ac_compile) 2>&5
4775     ac_status=$?
4776     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777     (exit $ac_status); } &&
4778     { ac_try='test -s conftest.$ac_objext'
4779     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780     (eval $ac_try) 2>&5
4781     ac_status=$?
4782     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783     (exit $ac_status); }; }; then
4784     ac_cv_type_size_t=yes
4785     else
4786     echo "$as_me: failed program was:" >&5
4787     sed 's/^/| /' conftest.$ac_ext >&5
4788    
4789     ac_cv_type_size_t=no
4790     fi
4791     rm -f conftest.$ac_objext conftest.$ac_ext
4792     fi
4793     echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4794     echo "${ECHO_T}$ac_cv_type_size_t" >&6
4795     if test $ac_cv_type_size_t = yes; then
4796     :
4797     else
4798    
4799     cat >>confdefs.h <<_ACEOF
4800     #define size_t unsigned
4801     _ACEOF
4802    
4803     fi
4804    
4805     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4806     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4807     if test "${ac_cv_header_time+set}" = set; then
4808     echo $ECHO_N "(cached) $ECHO_C" >&6
4809     else
4810     cat >conftest.$ac_ext <<_ACEOF
4811     #line $LINENO "configure"
4812     /* confdefs.h. */
4813     _ACEOF
4814     cat confdefs.h >>conftest.$ac_ext
4815     cat >>conftest.$ac_ext <<_ACEOF
4816     /* end confdefs.h. */
4817     #include <sys/types.h>
4818     #include <sys/time.h>
4819     #include <time.h>
4820    
4821     int
4822     main ()
4823     {
4824     if ((struct tm *) 0)
4825     return 0;
4826     ;
4827     return 0;
4828     }
4829     _ACEOF
4830     rm -f conftest.$ac_objext
4831     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832     (eval $ac_compile) 2>&5
4833     ac_status=$?
4834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835     (exit $ac_status); } &&
4836     { ac_try='test -s conftest.$ac_objext'
4837     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838     (eval $ac_try) 2>&5
4839     ac_status=$?
4840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841     (exit $ac_status); }; }; then
4842     ac_cv_header_time=yes
4843     else
4844     echo "$as_me: failed program was:" >&5
4845     sed 's/^/| /' conftest.$ac_ext >&5
4846    
4847     ac_cv_header_time=no
4848     fi
4849     rm -f conftest.$ac_objext conftest.$ac_ext
4850     fi
4851     echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4852     echo "${ECHO_T}$ac_cv_header_time" >&6
4853     if test $ac_cv_header_time = yes; then
4854    
4855     cat >>confdefs.h <<\_ACEOF
4856     #define TIME_WITH_SYS_TIME 1
4857     _ACEOF
4858    
4859     fi
4860    
4861     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4862     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4863     if test "${ac_cv_struct_tm+set}" = set; then
4864     echo $ECHO_N "(cached) $ECHO_C" >&6
4865     else
4866     cat >conftest.$ac_ext <<_ACEOF
4867     #line $LINENO "configure"
4868     /* confdefs.h. */
4869     _ACEOF
4870     cat confdefs.h >>conftest.$ac_ext
4871     cat >>conftest.$ac_ext <<_ACEOF
4872     /* end confdefs.h. */
4873     #include <sys/types.h>
4874     #include <time.h>
4875    
4876     int
4877     main ()
4878     {
4879     struct tm *tp; tp->tm_sec;
4880     ;
4881     return 0;
4882     }
4883     _ACEOF
4884     rm -f conftest.$ac_objext
4885     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886     (eval $ac_compile) 2>&5
4887     ac_status=$?
4888     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889     (exit $ac_status); } &&
4890     { ac_try='test -s conftest.$ac_objext'
4891     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892     (eval $ac_try) 2>&5
4893     ac_status=$?
4894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895     (exit $ac_status); }; }; then
4896     ac_cv_struct_tm=time.h
4897     else
4898     echo "$as_me: failed program was:" >&5
4899     sed 's/^/| /' conftest.$ac_ext >&5
4900    
4901     ac_cv_struct_tm=sys/time.h
4902     fi
4903     rm -f conftest.$ac_objext conftest.$ac_ext
4904     fi
4905     echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4906     echo "${ECHO_T}$ac_cv_struct_tm" >&6
4907     if test $ac_cv_struct_tm = sys/time.h; then
4908    
4909     cat >>confdefs.h <<\_ACEOF
4910     #define TM_IN_SYS_TIME 1
4911     _ACEOF
4912    
4913     fi
4914    
4915     echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4916     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4917     if test "${ac_cv_type_uid_t+set}" = set; then
4918     echo $ECHO_N "(cached) $ECHO_C" >&6
4919     else
4920     cat >conftest.$ac_ext <<_ACEOF
4921     #line $LINENO "configure"
4922     /* confdefs.h. */
4923     _ACEOF
4924     cat confdefs.h >>conftest.$ac_ext
4925     cat >>conftest.$ac_ext <<_ACEOF
4926     /* end confdefs.h. */
4927     #include <sys/types.h>
4928    
4929     _ACEOF
4930     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931     $EGREP "uid_t" >/dev/null 2>&1; then
4932     ac_cv_type_uid_t=yes
4933     else
4934     ac_cv_type_uid_t=no
4935     fi
4936     rm -f conftest*
4937    
4938     fi
4939     echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4940     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4941     if test $ac_cv_type_uid_t = no; then
4942    
4943     cat >>confdefs.h <<\_ACEOF
4944     #define uid_t int
4945     _ACEOF
4946    
4947    
4948     cat >>confdefs.h <<\_ACEOF
4949     #define gid_t int
4950     _ACEOF
4951    
4952     fi
4953    
4954    
4955     # Checks for library functions.
4956     echo "$as_me:$LINENO: checking for error_at_line" >&5
4957     echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4958     if test "${ac_cv_lib_error_at_line+set}" = set; then
4959     echo $ECHO_N "(cached) $ECHO_C" >&6
4960     else
4961     cat >conftest.$ac_ext <<_ACEOF
4962     #line $LINENO "configure"
4963     /* confdefs.h. */
4964     _ACEOF
4965     cat confdefs.h >>conftest.$ac_ext
4966     cat >>conftest.$ac_ext <<_ACEOF
4967     /* end confdefs.h. */
4968    
4969     int
4970     main ()
4971     {
4972     error_at_line (0, 0, "", 0, "");
4973     ;
4974     return 0;
4975     }
4976     _ACEOF
4977     rm -f conftest.$ac_objext conftest$ac_exeext
4978     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979     (eval $ac_link) 2>&5
4980     ac_status=$?
4981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982     (exit $ac_status); } &&
4983     { ac_try='test -s conftest$ac_exeext'
4984     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985     (eval $ac_try) 2>&5
4986     ac_status=$?
4987     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988     (exit $ac_status); }; }; then
4989     ac_cv_lib_error_at_line=yes
4990     else
4991     echo "$as_me: failed program was:" >&5
4992     sed 's/^/| /' conftest.$ac_ext >&5
4993    
4994     ac_cv_lib_error_at_line=no
4995     fi
4996     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997     fi
4998     echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4999     echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5000     if test $ac_cv_lib_error_at_line = no; then
5001     LIBOBJS="$LIBOBJS error.$ac_objext"
5002     fi
5003    
5004    
5005    
5006     for ac_header in unistd.h vfork.h
5007     do
5008     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010     echo "$as_me:$LINENO: checking for $ac_header" >&5
5011     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5012     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5013     echo $ECHO_N "(cached) $ECHO_C" >&6
5014     fi
5015     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017     else
5018     # Is the header compilable?
5019     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5020     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5021     cat >conftest.$ac_ext <<_ACEOF
5022     #line $LINENO "configure"
5023     /* confdefs.h. */
5024     _ACEOF
5025     cat confdefs.h >>conftest.$ac_ext
5026     cat >>conftest.$ac_ext <<_ACEOF
5027     /* end confdefs.h. */
5028     $ac_includes_default
5029     #include <$ac_header>
5030     _ACEOF
5031     rm -f conftest.$ac_objext
5032     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033     (eval $ac_compile) 2>&5
5034     ac_status=$?
5035     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036     (exit $ac_status); } &&
5037     { ac_try='test -s conftest.$ac_objext'
5038     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039     (eval $ac_try) 2>&5
5040     ac_status=$?
5041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042     (exit $ac_status); }; }; then
5043     ac_header_compiler=yes
5044     else
5045     echo "$as_me: failed program was:" >&5
5046     sed 's/^/| /' conftest.$ac_ext >&5
5047    
5048     ac_header_compiler=no
5049     fi
5050     rm -f conftest.$ac_objext conftest.$ac_ext
5051     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5052     echo "${ECHO_T}$ac_header_compiler" >&6
5053    
5054     # Is the header present?
5055     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5056     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5057     cat >conftest.$ac_ext <<_ACEOF
5058     #line $LINENO "configure"
5059     /* confdefs.h. */
5060     _ACEOF
5061     cat confdefs.h >>conftest.$ac_ext
5062     cat >>conftest.$ac_ext <<_ACEOF
5063     /* end confdefs.h. */
5064     #include <$ac_header>
5065     _ACEOF
5066     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068     ac_status=$?
5069     grep -v '^ *+' conftest.er1 >conftest.err
5070     rm -f conftest.er1
5071     cat conftest.err >&5
5072     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073     (exit $ac_status); } >/dev/null; then
5074     if test -s conftest.err; then
5075     ac_cpp_err=$ac_c_preproc_warn_flag
5076     else
5077     ac_cpp_err=
5078     fi
5079     else
5080     ac_cpp_err=yes
5081     fi
5082     if test -z "$ac_cpp_err"; then
5083     ac_header_preproc=yes
5084     else
5085     echo "$as_me: failed program was:" >&5
5086     sed 's/^/| /' conftest.$ac_ext >&5
5087    
5088     ac_header_preproc=no
5089     fi
5090     rm -f conftest.err conftest.$ac_ext
5091     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5092     echo "${ECHO_T}$ac_header_preproc" >&6
5093    
5094     # So? What about this header?
5095     case $ac_header_compiler:$ac_header_preproc in
5096     yes:no )
5097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5098     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5100     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5101     (
5102     cat <<\_ASBOX
5103     ## ------------------------------------ ##
5104     ## Report this to bug-autoconf@gnu.org. ##
5105     ## ------------------------------------ ##
5106     _ASBOX
5107     ) |
5108     sed "s/^/$as_me: WARNING: /" >&2
5109     ;;
5110     no:yes )
5111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5112     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5113     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5114     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5116     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5117     (
5118     cat <<\_ASBOX
5119     ## ------------------------------------ ##
5120     ## Report this to bug-autoconf@gnu.org. ##
5121     ## ------------------------------------ ##
5122     _ASBOX
5123     ) |
5124     sed "s/^/$as_me: WARNING: /" >&2
5125     ;;
5126     esac
5127     echo "$as_me:$LINENO: checking for $ac_header" >&5
5128     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5129     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5130     echo $ECHO_N "(cached) $ECHO_C" >&6
5131     else
5132     eval "$as_ac_Header=$ac_header_preproc"
5133     fi
5134     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5135     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5136    
5137     fi
5138     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139     cat >>confdefs.h <<_ACEOF
5140     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141     _ACEOF
5142    
5143     fi
5144    
5145     done
5146    
5147    
5148    
5149     for ac_func in fork vfork
5150     do
5151     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5152     echo "$as_me:$LINENO: checking for $ac_func" >&5
5153     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5154     if eval "test \"\${$as_ac_var+set}\" = set"; then
5155     echo $ECHO_N "(cached) $ECHO_C" >&6
5156     else
5157     cat >conftest.$ac_ext <<_ACEOF
5158     #line $LINENO "configure"
5159     /* confdefs.h. */
5160     _ACEOF
5161     cat confdefs.h >>conftest.$ac_ext
5162     cat >>conftest.$ac_ext <<_ACEOF
5163     /* end confdefs.h. */
5164     /* System header to define __stub macros and hopefully few prototypes,
5165     which can conflict with char $ac_func (); below.
5166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167     <limits.h> exists even on freestanding compilers. */
5168     #ifdef __STDC__
5169     # include <limits.h>
5170     #else
5171     # include <assert.h>
5172     #endif
5173     /* Override any gcc2 internal prototype to avoid an error. */
5174     #ifdef __cplusplus
5175     extern "C"
5176     {
5177     #endif
5178     /* We use char because int might match the return type of a gcc2
5179     builtin and then its argument prototype would still apply. */
5180     char $ac_func ();
5181     /* The GNU C library defines this for functions which it implements
5182     to always fail with ENOSYS. Some functions are actually named
5183     something starting with __ and the normal name is an alias. */
5184     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185     choke me
5186     #else
5187     char (*f) () = $ac_func;
5188     #endif
5189     #ifdef __cplusplus
5190     }
5191     #endif
5192    
5193     int
5194     main ()
5195     {
5196     return f != $ac_func;
5197     ;
5198     return 0;
5199     }
5200     _ACEOF
5201     rm -f conftest.$ac_objext conftest$ac_exeext
5202     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203     (eval $ac_link) 2>&5
5204     ac_status=$?
5205     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206     (exit $ac_status); } &&
5207     { ac_try='test -s conftest$ac_exeext'
5208     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209     (eval $ac_try) 2>&5
5210     ac_status=$?
5211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212     (exit $ac_status); }; }; then
5213     eval "$as_ac_var=yes"
5214     else
5215     echo "$as_me: failed program was:" >&5
5216     sed 's/^/| /' conftest.$ac_ext >&5
5217    
5218     eval "$as_ac_var=no"
5219     fi
5220     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5221     fi
5222     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5223     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5224     if test `eval echo '${'$as_ac_var'}'` = yes; then
5225     cat >>confdefs.h <<_ACEOF
5226     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5227     _ACEOF
5228    
5229     fi
5230     done
5231    
5232     if test "x$ac_cv_func_fork" = xyes; then
5233     echo "$as_me:$LINENO: checking for working fork" >&5
5234     echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5235     if test "${ac_cv_func_fork_works+set}" = set; then
5236     echo $ECHO_N "(cached) $ECHO_C" >&6
5237     else
5238     if test "$cross_compiling" = yes; then
5239     ac_cv_func_fork_works=cross
5240     else
5241     cat >conftest.$ac_ext <<_ACEOF
5242     /* By Ruediger Kuhlmann. */
5243     #include <sys/types.h>
5244     #if HAVE_UNISTD_H
5245     # include <unistd.h>
5246     #endif
5247     /* Some systems only have a dummy stub for fork() */
5248     int main ()
5249     {
5250     if (fork() < 0)
5251     exit (1);
5252     exit (0);
5253     }
5254     _ACEOF
5255     rm -f conftest$ac_exeext
5256     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257     (eval $ac_link) 2>&5
5258     ac_status=$?
5259     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5261     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262     (eval $ac_try) 2>&5
5263     ac_status=$?
5264     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265     (exit $ac_status); }; }; then
5266     ac_cv_func_fork_works=yes
5267     else
5268     echo "$as_me: program exited with status $ac_status" >&5
5269     echo "$as_me: failed program was:" >&5
5270     sed 's/^/| /' conftest.$ac_ext >&5
5271    
5272     ( exit $ac_status )
5273     ac_cv_func_fork_works=no
5274     fi
5275     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5276     fi
5277     fi
5278     echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5279     echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5280    
5281     else
5282     ac_cv_func_fork_works=$ac_cv_func_fork
5283     fi
5284     if test "x$ac_cv_func_fork_works" = xcross; then
5285     case $host in
5286     *-*-amigaos* | *-*-msdosdjgpp*)
5287     # Override, as these systems have only a dummy fork() stub
5288     ac_cv_func_fork_works=no
5289     ;;
5290     *)
5291     ac_cv_func_fork_works=yes
5292     ;;
5293     esac
5294     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5295     echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5296     fi
5297     ac_cv_func_vfork_works=$ac_cv_func_vfork
5298     if test "x$ac_cv_func_vfork" = xyes; then
5299     echo "$as_me:$LINENO: checking for working vfork" >&5
5300     echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5301     if test "${ac_cv_func_vfork_works+set}" = set; then
5302     echo $ECHO_N "(cached) $ECHO_C" >&6
5303     else
5304     if test "$cross_compiling" = yes; then
5305     ac_cv_func_vfork_works=cross
5306     else
5307     cat >conftest.$ac_ext <<_ACEOF
5308     #line $LINENO "configure"
5309     /* confdefs.h. */
5310     _ACEOF
5311     cat confdefs.h >>conftest.$ac_ext
5312     cat >>conftest.$ac_ext <<_ACEOF
5313     /* end confdefs.h. */
5314     /* Thanks to Paul Eggert for this test. */
5315     #include <stdio.h>
5316     #include <stdlib.h>
5317     #include <sys/types.h>
5318     #include <sys/stat.h>
5319     #include <sys/wait.h>
5320     #if HAVE_UNISTD_H
5321     # include <unistd.h>
5322     #endif
5323     #if HAVE_VFORK_H
5324     # include <vfork.h>
5325     #endif
5326     /* On some sparc systems, changes by the child to local and incoming
5327     argument registers are propagated back to the parent. The compiler
5328     is told about this with #include <vfork.h>, but some compilers
5329     (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5330     static variable whose address is put into a register that is
5331     clobbered by the vfork. */
5332     static void
5333     #ifdef __cplusplus
5334     sparc_address_test (int arg)
5335     # else
5336     sparc_address_test (arg) int arg;
5337     #endif
5338     {
5339     static pid_t child;
5340     if (!child) {
5341     child = vfork ();
5342     if (child < 0) {
5343     perror ("vfork");
5344     _exit(2);
5345     }
5346     if (!child) {
5347     arg = getpid();
5348     write(-1, "", 0);
5349     _exit (arg);
5350     }
5351     }
5352     }
5353    
5354     int
5355     main ()
5356     {
5357     pid_t parent = getpid ();
5358     pid_t child;
5359    
5360     sparc_address_test (0);
5361    
5362     child = vfork ();
5363    
5364     if (child == 0) {
5365     /* Here is another test for sparc vfork register problems. This
5366     test uses lots of local variables, at least as many local
5367     variables as main has allocated so far including compiler
5368     temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5369     4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5370     reuse the register of parent for one of the local variables,
5371     since it will think that parent can't possibly be used any more
5372     in this routine. Assigning to the local variable will thus
5373     munge parent in the parent process. */
5374     pid_t
5375     p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5376     p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5377     /* Convince the compiler that p..p7 are live; otherwise, it might
5378     use the same hardware register for all 8 local variables. */
5379     if (p != p1 || p != p2 || p != p3 || p != p4
5380     || p != p5 || p != p6 || p != p7)
5381     _exit(1);
5382    
5383     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5384     from child file descriptors. If the child closes a descriptor
5385     before it execs or exits, this munges the parent's descriptor
5386     as well. Test for this by closing stdout in the child. */
5387     _exit(close(fileno(stdout)) != 0);
5388     } else {
5389     int status;
5390     struct stat st;
5391    
5392     while (wait(&status) != child)
5393     ;
5394     exit(
5395     /* Was there some problem with vforking? */
5396     child < 0
5397    
5398     /* Did the child fail? (This shouldn't happen.) */
5399     || status
5400    
5401     /* Did the vfork/compiler bug occur? */
5402     || parent != getpid()
5403    
5404     /* Did the file descriptor bug occur? */
5405     || fstat(fileno(stdout), &st) != 0
5406     );
5407     }
5408     }
5409     _ACEOF
5410     rm -f conftest$ac_exeext
5411     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5412     (eval $ac_link) 2>&5
5413     ac_status=$?
5414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5416     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417     (eval $ac_try) 2>&5
5418     ac_status=$?
5419     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420     (exit $ac_status); }; }; then
5421     ac_cv_func_vfork_works=yes
5422     else
5423     echo "$as_me: program exited with status $ac_status" >&5
5424     echo "$as_me: failed program was:" >&5
5425     sed 's/^/| /' conftest.$ac_ext >&5
5426    
5427     ( exit $ac_status )
5428     ac_cv_func_vfork_works=no
5429     fi
5430     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431     fi
5432     fi
5433     echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5434     echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5435    
5436     fi;
5437     if test "x$ac_cv_func_fork_works" = xcross; then
5438     ac_cv_func_vfork_works=ac_cv_func_vfork
5439     { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5440     echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5441     fi
5442    
5443     if test "x$ac_cv_func_vfork_works" = xyes; then
5444    
5445     cat >>confdefs.h <<\_ACEOF
5446     #define HAVE_WORKING_VFORK 1
5447     _ACEOF
5448    
5449     else
5450    
5451     cat >>confdefs.h <<\_ACEOF
5452     #define vfork fork
5453     _ACEOF
5454    
5455     fi
5456     if test "x$ac_cv_func_fork_works" = xyes; then
5457    
5458     cat >>confdefs.h <<\_ACEOF
5459     #define HAVE_WORKING_FORK 1
5460     _ACEOF
5461    
5462     fi
5463    
5464    
5465     for ac_header in stdlib.h
5466     do
5467     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469     echo "$as_me:$LINENO: checking for $ac_header" >&5
5470     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5471     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5472     echo $ECHO_N "(cached) $ECHO_C" >&6
5473     fi
5474     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5475     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5476     else
5477     # Is the header compilable?
5478     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5479     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5480     cat >conftest.$ac_ext <<_ACEOF
5481     #line $LINENO "configure"
5482     /* confdefs.h. */
5483     _ACEOF
5484     cat confdefs.h >>conftest.$ac_ext
5485     cat >>conftest.$ac_ext <<_ACEOF
5486     /* end confdefs.h. */
5487     $ac_includes_default
5488     #include <$ac_header>
5489     _ACEOF
5490     rm -f conftest.$ac_objext
5491     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492     (eval $ac_compile) 2>&5
5493     ac_status=$?
5494     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495     (exit $ac_status); } &&
5496     { ac_try='test -s conftest.$ac_objext'
5497     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498     (eval $ac_try) 2>&5
5499     ac_status=$?
5500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501     (exit $ac_status); }; }; then
5502     ac_header_compiler=yes
5503     else
5504     echo "$as_me: failed program was:" >&5
5505     sed 's/^/| /' conftest.$ac_ext >&5
5506    
5507     ac_header_compiler=no
5508     fi
5509     rm -f conftest.$ac_objext conftest.$ac_ext
5510     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5511     echo "${ECHO_T}$ac_header_compiler" >&6
5512    
5513     # Is the header present?
5514     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5515     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5516     cat >conftest.$ac_ext <<_ACEOF
5517     #line $LINENO "configure"
5518     /* confdefs.h. */
5519     _ACEOF
5520     cat confdefs.h >>conftest.$ac_ext
5521     cat >>conftest.$ac_ext <<_ACEOF
5522     /* end confdefs.h. */
5523     #include <$ac_header>
5524     _ACEOF
5525     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5526     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5527     ac_status=$?
5528     grep -v '^ *+' conftest.er1 >conftest.err
5529     rm -f conftest.er1
5530     cat conftest.err >&5
5531     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532     (exit $ac_status); } >/dev/null; then
5533     if test -s conftest.err; then
5534     ac_cpp_err=$ac_c_preproc_warn_flag
5535     else
5536     ac_cpp_err=
5537     fi
5538     else
5539     ac_cpp_err=yes
5540     fi
5541     if test -z "$ac_cpp_err"; then
5542     ac_header_preproc=yes
5543     else
5544     echo "$as_me: failed program was:" >&5
5545     sed 's/^/| /' conftest.$ac_ext >&5
5546    
5547     ac_header_preproc=no
5548     fi
5549     rm -f conftest.err conftest.$ac_ext
5550     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5551     echo "${ECHO_T}$ac_header_preproc" >&6
5552    
5553     # So? What about this header?
5554     case $ac_header_compiler:$ac_header_preproc in
5555     yes:no )
5556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5557     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5559     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5560     (
5561     cat <<\_ASBOX
5562     ## ------------------------------------ ##
5563     ## Report this to bug-autoconf@gnu.org. ##
5564     ## ------------------------------------ ##
5565     _ASBOX
5566     ) |
5567     sed "s/^/$as_me: WARNING: /" >&2
5568     ;;
5569     no:yes )
5570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5573     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5575     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5576     (
5577     cat <<\_ASBOX
5578     ## ------------------------------------ ##
5579     ## Report this to bug-autoconf@gnu.org. ##
5580     ## ------------------------------------ ##
5581     _ASBOX
5582     ) |
5583     sed "s/^/$as_me: WARNING: /" >&2
5584     ;;
5585     esac
5586     echo "$as_me:$LINENO: checking for $ac_header" >&5
5587     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5588     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5589     echo $ECHO_N "(cached) $ECHO_C" >&6
5590     else
5591     eval "$as_ac_Header=$ac_header_preproc"
5592     fi
5593     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595    
5596     fi
5597     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598     cat >>confdefs.h <<_ACEOF
5599     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600     _ACEOF
5601    
5602     fi
5603    
5604     done
5605    
5606     echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5607     echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5608     if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5609     echo $ECHO_N "(cached) $ECHO_C" >&6
5610     else
5611     if test "$cross_compiling" = yes; then
5612     ac_cv_func_malloc_0_nonnull=no
5613     else
5614     cat >conftest.$ac_ext <<_ACEOF
5615     #line $LINENO "configure"
5616     /* confdefs.h. */
5617     _ACEOF
5618     cat confdefs.h >>conftest.$ac_ext
5619     cat >>conftest.$ac_ext <<_ACEOF
5620     /* end confdefs.h. */
5621     #if STDC_HEADERS || HAVE_STDLIB_H
5622     # include <stdlib.h>
5623     #else
5624     char *malloc ();
5625     #endif
5626    
5627     int
5628     main ()
5629     {
5630     exit (malloc (0) ? 0 : 1);
5631     ;
5632     return 0;
5633     }
5634     _ACEOF
5635     rm -f conftest$ac_exeext
5636     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637     (eval $ac_link) 2>&5
5638     ac_status=$?
5639     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5641     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642     (eval $ac_try) 2>&5
5643     ac_status=$?
5644     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645     (exit $ac_status); }; }; then
5646     ac_cv_func_malloc_0_nonnull=yes
5647     else
5648     echo "$as_me: program exited with status $ac_status" >&5
5649     echo "$as_me: failed program was:" >&5
5650     sed 's/^/| /' conftest.$ac_ext >&5
5651    
5652     ( exit $ac_status )
5653     ac_cv_func_malloc_0_nonnull=no
5654     fi
5655     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5656     fi
5657     fi
5658     echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5659     echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5660     if test $ac_cv_func_malloc_0_nonnull = yes; then
5661    
5662     cat >>confdefs.h <<\_ACEOF
5663     #define HAVE_MALLOC 1
5664     _ACEOF
5665    
5666     else
5667     cat >>confdefs.h <<\_ACEOF
5668     #define HAVE_MALLOC 0
5669     _ACEOF
5670    
5671     LIBOBJS="$LIBOBJS malloc.$ac_objext"
5672    
5673     cat >>confdefs.h <<\_ACEOF
5674     #define malloc rpl_malloc
5675     _ACEOF
5676    
5677     fi
5678    
5679    
5680    
5681    
5682    
5683     for ac_header in sys/time.h unistd.h
5684     do
5685     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5686     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5687     echo "$as_me:$LINENO: checking for $ac_header" >&5
5688     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5689     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5690     echo $ECHO_N "(cached) $ECHO_C" >&6
5691     fi
5692     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5693     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5694     else
5695     # Is the header compilable?
5696     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5697     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5698     cat >conftest.$ac_ext <<_ACEOF
5699     #line $LINENO "configure"
5700     /* confdefs.h. */
5701     _ACEOF
5702     cat confdefs.h >>conftest.$ac_ext
5703     cat >>conftest.$ac_ext <<_ACEOF
5704     /* end confdefs.h. */
5705     $ac_includes_default
5706     #include <$ac_header>
5707     _ACEOF
5708     rm -f conftest.$ac_objext
5709     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710     (eval $ac_compile) 2>&5
5711     ac_status=$?
5712     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713     (exit $ac_status); } &&
5714     { ac_try='test -s conftest.$ac_objext'
5715     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716     (eval $ac_try) 2>&5
5717     ac_status=$?
5718     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719     (exit $ac_status); }; }; then
5720     ac_header_compiler=yes
5721     else
5722     echo "$as_me: failed program was:" >&5
5723     sed 's/^/| /' conftest.$ac_ext >&5
5724    
5725     ac_header_compiler=no
5726     fi
5727     rm -f conftest.$ac_objext conftest.$ac_ext
5728     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5729     echo "${ECHO_T}$ac_header_compiler" >&6
5730    
5731     # Is the header present?
5732     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5733     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5734     cat >conftest.$ac_ext <<_ACEOF
5735     #line $LINENO "configure"
5736     /* confdefs.h. */
5737     _ACEOF
5738     cat confdefs.h >>conftest.$ac_ext
5739     cat >>conftest.$ac_ext <<_ACEOF
5740     /* end confdefs.h. */
5741     #include <$ac_header>
5742     _ACEOF
5743     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5744     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5745     ac_status=$?
5746     grep -v '^ *+' conftest.er1 >conftest.err
5747     rm -f conftest.er1
5748     cat conftest.err >&5
5749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750     (exit $ac_status); } >/dev/null; then
5751     if test -s conftest.err; then
5752     ac_cpp_err=$ac_c_preproc_warn_flag
5753     else
5754     ac_cpp_err=
5755     fi
5756     else
5757     ac_cpp_err=yes
5758     fi
5759     if test -z "$ac_cpp_err"; then
5760     ac_header_preproc=yes
5761     else
5762     echo "$as_me: failed program was:" >&5
5763     sed 's/^/| /' conftest.$ac_ext >&5
5764    
5765     ac_header_preproc=no
5766     fi
5767     rm -f conftest.err conftest.$ac_ext
5768     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5769     echo "${ECHO_T}$ac_header_preproc" >&6
5770    
5771     # So? What about this header?
5772     case $ac_header_compiler:$ac_header_preproc in
5773     yes:no )
5774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5775     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5777     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5778     (
5779     cat <<\_ASBOX
5780     ## ------------------------------------ ##
5781     ## Report this to bug-autoconf@gnu.org. ##
5782     ## ------------------------------------ ##
5783     _ASBOX
5784     ) |
5785     sed "s/^/$as_me: WARNING: /" >&2
5786     ;;
5787     no:yes )
5788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5789     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5790     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5791     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5793     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5794     (
5795     cat <<\_ASBOX
5796     ## ------------------------------------ ##
5797     ## Report this to bug-autoconf@gnu.org. ##
5798     ## ------------------------------------ ##
5799     _ASBOX
5800     ) |
5801     sed "s/^/$as_me: WARNING: /" >&2
5802     ;;
5803     esac
5804     echo "$as_me:$LINENO: checking for $ac_header" >&5
5805     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5806     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807     echo $ECHO_N "(cached) $ECHO_C" >&6
5808     else
5809     eval "$as_ac_Header=$ac_header_preproc"
5810     fi
5811     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5812     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5813    
5814     fi
5815     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5816     cat >>confdefs.h <<_ACEOF
5817     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818     _ACEOF
5819    
5820     fi
5821    
5822     done
5823    
5824    
5825     for ac_func in alarm
5826     do
5827     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5828     echo "$as_me:$LINENO: checking for $ac_func" >&5
5829     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5830     if eval "test \"\${$as_ac_var+set}\" = set"; then
5831     echo $ECHO_N "(cached) $ECHO_C" >&6
5832     else
5833     cat >conftest.$ac_ext <<_ACEOF
5834     #line $LINENO "configure"
5835     /* confdefs.h. */
5836     _ACEOF
5837     cat confdefs.h >>conftest.$ac_ext
5838     cat >>conftest.$ac_ext <<_ACEOF
5839     /* end confdefs.h. */
5840     /* System header to define __stub macros and hopefully few prototypes,
5841     which can conflict with char $ac_func (); below.
5842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843     <limits.h> exists even on freestanding compilers. */
5844     #ifdef __STDC__
5845     # include <limits.h>
5846     #else
5847     # include <assert.h>
5848     #endif
5849     /* Override any gcc2 internal prototype to avoid an error. */
5850     #ifdef __cplusplus
5851     extern "C"
5852     {
5853     #endif
5854     /* We use char because int might match the return type of a gcc2
5855     builtin and then its argument prototype would still apply. */
5856     char $ac_func ();
5857     /* The GNU C library defines this for functions which it implements
5858     to always fail with ENOSYS. Some functions are actually named
5859     something starting with __ and the normal name is an alias. */
5860     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5861     choke me
5862     #else
5863     char (*f) () = $ac_func;
5864     #endif
5865     #ifdef __cplusplus
5866     }
5867     #endif
5868    
5869     int
5870     main ()
5871     {
5872     return f != $ac_func;
5873     ;
5874     return 0;
5875     }
5876     _ACEOF
5877     rm -f conftest.$ac_objext conftest$ac_exeext
5878     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5879     (eval $ac_link) 2>&5
5880     ac_status=$?
5881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882     (exit $ac_status); } &&
5883     { ac_try='test -s conftest$ac_exeext'
5884     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885     (eval $ac_try) 2>&5
5886     ac_status=$?
5887     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888     (exit $ac_status); }; }; then
5889     eval "$as_ac_var=yes"
5890     else
5891     echo "$as_me: failed program was:" >&5
5892     sed 's/^/| /' conftest.$ac_ext >&5
5893    
5894     eval "$as_ac_var=no"
5895     fi
5896     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5897     fi
5898     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5899     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5900     if test `eval echo '${'$as_ac_var'}'` = yes; then
5901     cat >>confdefs.h <<_ACEOF
5902     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5903     _ACEOF
5904    
5905     fi
5906     done
5907    
5908     echo "$as_me:$LINENO: checking for working mktime" >&5
5909     echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
5910     if test "${ac_cv_func_working_mktime+set}" = set; then
5911     echo $ECHO_N "(cached) $ECHO_C" >&6
5912     else
5913     if test "$cross_compiling" = yes; then
5914     ac_cv_func_working_mktime=no
5915     else
5916     cat >conftest.$ac_ext <<_ACEOF
5917     #line $LINENO "configure"
5918     /* confdefs.h. */
5919     _ACEOF
5920     cat confdefs.h >>conftest.$ac_ext
5921     cat >>conftest.$ac_ext <<_ACEOF
5922     /* end confdefs.h. */
5923     /* Test program from Paul Eggert and Tony Leneis. */
5924     #if TIME_WITH_SYS_TIME
5925     # include <sys/time.h>
5926     # include <time.h>
5927     #else
5928     # if HAVE_SYS_TIME_H
5929     # include <sys/time.h>
5930     # else
5931     # include <time.h>
5932     # endif
5933     #endif
5934    
5935     #if HAVE_UNISTD_H
5936     # include <unistd.h>
5937     #endif
5938    
5939     #if !HAVE_ALARM
5940     # define alarm(X) /* empty */
5941     #endif
5942    
5943     /* Work around redefinition to rpl_putenv by other config tests. */
5944     #undef putenv
5945    
5946     static time_t time_t_max;
5947    
5948     /* Values we'll use to set the TZ environment variable. */
5949     static const char *const tz_strings[] = {
5950     (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5951     "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5952     };
5953     #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5954    
5955     /* Fail if mktime fails to convert a date in the spring-forward gap.
5956     Based on a problem report from Andreas Jaeger. */
5957     static void
5958     spring_forward_gap ()
5959     {
5960     /* glibc (up to about 1998-10-07) failed this test. */
5961     struct tm tm;
5962    
5963     /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5964     instead of "TZ=America/Vancouver" in order to detect the bug even
5965     on systems that don't support the Olson extension, or don't have the
5966     full zoneinfo tables installed. */
5967     putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5968    
5969     tm.tm_year = 98;
5970     tm.tm_mon = 3;
5971     tm.tm_mday = 5;
5972     tm.tm_hour = 2;
5973     tm.tm_min = 0;
5974     tm.tm_sec = 0;
5975     tm.tm_isdst = -1;
5976     if (mktime (&tm) == (time_t)-1)
5977     exit (1);
5978     }
5979    
5980     static void
5981     mktime_test (now)
5982     time_t now;
5983     {
5984     struct tm *lt;
5985     if ((lt = localtime (&now)) && mktime (lt) != now)
5986     exit (1);
5987     now = time_t_max - now;
5988     if ((lt = localtime (&now)) && mktime (lt) != now)
5989     exit (1);
5990     }
5991    
5992     static void
5993     irix_6_4_bug ()
5994     {
5995     /* Based on code from Ariel Faigon. */
5996     struct tm tm;
5997     tm.tm_year = 96;
5998     tm.tm_mon = 3;
5999     tm.tm_mday = 0;
6000     tm.tm_hour = 0;
6001     tm.tm_min = 0;
6002     tm.tm_sec = 0;
6003     tm.tm_isdst = -1;
6004     mktime (&tm);
6005     if (tm.tm_mon != 2 || tm.tm_mday != 31)
6006     exit (1);
6007     }
6008    
6009     static void
6010     bigtime_test (j)
6011     int j;
6012     {
6013     struct tm tm;
6014     time_t now;
6015     tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6016     now = mktime (&tm);
6017     if (now != (time_t) -1)
6018     {
6019     struct tm *lt = localtime (&now);
6020     if (! (lt
6021     && lt->tm_year == tm.tm_year
6022     && lt->tm_mon == tm.tm_mon
6023     && lt->tm_mday == tm.tm_mday
6024     && lt->tm_hour == tm.tm_hour
6025     && lt->tm_min == tm.tm_min
6026     && lt->tm_sec == tm.tm_sec
6027     && lt->tm_yday == tm.tm_yday
6028     && lt->tm_wday == tm.tm_wday
6029     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6030     == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6031     exit (1);
6032     }
6033     }
6034    
6035     int
6036     main ()
6037     {
6038     time_t t, delta;
6039     int i, j;
6040    
6041     /* This test makes some buggy mktime implementations loop.
6042     Give up after 60 seconds; a mktime slower than that
6043     isn't worth using anyway. */
6044     alarm (60);
6045    
6046     for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6047     continue;
6048     time_t_max--;
6049     delta = time_t_max / 997; /* a suitable prime number */
6050     for (i = 0; i < N_STRINGS; i++)
6051     {
6052     if (tz_strings[i])
6053     putenv (tz_strings[i]);
6054    
6055     for (t = 0; t <= time_t_max - delta; t += delta)
6056     mktime_test (t);
6057     mktime_test ((time_t) 60 * 60);
6058     mktime_test ((time_t) 60 * 60 * 24);
6059    
6060     for (j = 1; 0 < j; j *= 2)
6061     bigtime_test (j);
6062     bigtime_test (j - 1);
6063     }
6064     irix_6_4_bug ();
6065     spring_forward_gap ();
6066     exit (0);
6067     }
6068     _ACEOF
6069     rm -f conftest$ac_exeext
6070     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071     (eval $ac_link) 2>&5
6072     ac_status=$?
6073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6075     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076     (eval $ac_try) 2>&5
6077     ac_status=$?
6078     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079     (exit $ac_status); }; }; then
6080     ac_cv_func_working_mktime=yes
6081     else
6082     echo "$as_me: program exited with status $ac_status" >&5
6083     echo "$as_me: failed program was:" >&5
6084     sed 's/^/| /' conftest.$ac_ext >&5
6085    
6086     ( exit $ac_status )
6087     ac_cv_func_working_mktime=no
6088     fi
6089     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6090     fi
6091     fi
6092     echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
6093     echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
6094     if test $ac_cv_func_working_mktime = no; then
6095     LIBOBJS="$LIBOBJS mktime.$ac_objext"
6096     fi
6097    
6098    
6099     for ac_header in stdlib.h
6100     do
6101     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6102     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103     echo "$as_me:$LINENO: checking for $ac_header" >&5
6104     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6105     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6106     echo $ECHO_N "(cached) $ECHO_C" >&6
6107     fi
6108     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6109     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6110     else
6111     # Is the header compilable?
6112     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6113     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6114     cat >conftest.$ac_ext <<_ACEOF
6115     #line $LINENO "configure"
6116     /* confdefs.h. */
6117     _ACEOF
6118     cat confdefs.h >>conftest.$ac_ext
6119     cat >>conftest.$ac_ext <<_ACEOF
6120     /* end confdefs.h. */
6121     $ac_includes_default
6122     #include <$ac_header>
6123     _ACEOF
6124     rm -f conftest.$ac_objext
6125     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126     (eval $ac_compile) 2>&5
6127     ac_status=$?
6128     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129     (exit $ac_status); } &&
6130     { ac_try='test -s conftest.$ac_objext'
6131     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132     (eval $ac_try) 2>&5
6133     ac_status=$?
6134     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135     (exit $ac_status); }; }; then
6136     ac_header_compiler=yes
6137     else
6138     echo "$as_me: failed program was:" >&5
6139     sed 's/^/| /' conftest.$ac_ext >&5
6140    
6141     ac_header_compiler=no
6142     fi
6143     rm -f conftest.$ac_objext conftest.$ac_ext
6144     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145     echo "${ECHO_T}$ac_header_compiler" >&6
6146    
6147     # Is the header present?
6148     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6149     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6150     cat >conftest.$ac_ext <<_ACEOF
6151     #line $LINENO "configure"
6152     /* confdefs.h. */
6153     _ACEOF
6154     cat confdefs.h >>conftest.$ac_ext
6155     cat >>conftest.$ac_ext <<_ACEOF
6156     /* end confdefs.h. */
6157     #include <$ac_header>
6158     _ACEOF
6159     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161     ac_status=$?
6162     grep -v '^ *+' conftest.er1 >conftest.err
6163     rm -f conftest.er1
6164     cat conftest.err >&5
6165     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166     (exit $ac_status); } >/dev/null; then
6167     if test -s conftest.err; then
6168     ac_cpp_err=$ac_c_preproc_warn_flag
6169     else
6170     ac_cpp_err=
6171     fi
6172     else
6173     ac_cpp_err=yes
6174     fi
6175     if test -z "$ac_cpp_err"; then
6176     ac_header_preproc=yes
6177     else
6178     echo "$as_me: failed program was:" >&5
6179     sed 's/^/| /' conftest.$ac_ext >&5
6180    
6181     ac_header_preproc=no
6182     fi
6183     rm -f conftest.err conftest.$ac_ext
6184     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6185     echo "${ECHO_T}$ac_header_preproc" >&6
6186    
6187     # So? What about this header?
6188     case $ac_header_compiler:$ac_header_preproc in
6189     yes:no )
6190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6191     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6193     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6194     (
6195     cat <<\_ASBOX
6196     ## ------------------------------------ ##
6197     ## Report this to bug-autoconf@gnu.org. ##
6198     ## ------------------------------------ ##
6199     _ASBOX
6200     ) |
6201     sed "s/^/$as_me: WARNING: /" >&2
6202     ;;
6203     no:yes )
6204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6205     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6206     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6207     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6209     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6210     (
6211     cat <<\_ASBOX
6212     ## ------------------------------------ ##
6213     ## Report this to bug-autoconf@gnu.org. ##
6214     ## ------------------------------------ ##
6215     _ASBOX
6216     ) |
6217     sed "s/^/$as_me: WARNING: /" >&2
6218     ;;
6219     esac
6220     echo "$as_me:$LINENO: checking for $ac_header" >&5
6221     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6222     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223     echo $ECHO_N "(cached) $ECHO_C" >&6
6224     else
6225     eval "$as_ac_Header=$ac_header_preproc"
6226     fi
6227     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6228     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6229    
6230     fi
6231     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6232     cat >>confdefs.h <<_ACEOF
6233     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234     _ACEOF
6235    
6236     fi
6237    
6238     done
6239    
6240     echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
6241     echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
6242     if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
6243     echo $ECHO_N "(cached) $ECHO_C" >&6
6244     else
6245     if test "$cross_compiling" = yes; then
6246     ac_cv_func_realloc_0_nonnull=no
6247     else
6248     cat >conftest.$ac_ext <<_ACEOF
6249     #line $LINENO "configure"
6250     /* confdefs.h. */
6251     _ACEOF
6252     cat confdefs.h >>conftest.$ac_ext
6253     cat >>conftest.$ac_ext <<_ACEOF
6254     /* end confdefs.h. */
6255     #if STDC_HEADERS || HAVE_STDLIB_H
6256     # include <stdlib.h>
6257     #else
6258     char *realloc ();
6259     #endif
6260    
6261     int
6262     main ()
6263     {
6264     exit (realloc (0, 0) ? 0 : 1);
6265     ;
6266     return 0;
6267     }
6268     _ACEOF
6269     rm -f conftest$ac_exeext
6270     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271     (eval $ac_link) 2>&5
6272     ac_status=$?
6273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6275     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276     (eval $ac_try) 2>&5
6277     ac_status=$?
6278     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279     (exit $ac_status); }; }; then
6280     ac_cv_func_realloc_0_nonnull=yes
6281     else
6282     echo "$as_me: program exited with status $ac_status" >&5
6283     echo "$as_me: failed program was:" >&5
6284     sed 's/^/| /' conftest.$ac_ext >&5
6285    
6286     ( exit $ac_status )
6287     ac_cv_func_realloc_0_nonnull=no
6288     fi
6289     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290     fi
6291     fi
6292     echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6293     echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
6294     if test $ac_cv_func_realloc_0_nonnull = yes; then
6295    
6296     cat >>confdefs.h <<\_ACEOF
6297     #define HAVE_REALLOC 1
6298     _ACEOF
6299    
6300     else
6301     cat >>confdefs.h <<\_ACEOF
6302     #define HAVE_REALLOC 0
6303     _ACEOF
6304    
6305     LIBOBJS="$LIBOBJS realloc.$ac_objext"
6306    
6307     cat >>confdefs.h <<\_ACEOF
6308     #define realloc rpl_realloc
6309     _ACEOF
6310    
6311     fi
6312    
6313    
6314    
6315    
6316    
6317     for ac_header in sys/select.h sys/socket.h
6318     do
6319     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6320     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321     echo "$as_me:$LINENO: checking for $ac_header" >&5
6322     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324     echo $ECHO_N "(cached) $ECHO_C" >&6
6325     fi
6326     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6327     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6328     else
6329     # Is the header compilable?
6330     echo "$as_me:$LINENO: checking $ac_header usability" >&5
6331     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6332     cat >conftest.$ac_ext <<_ACEOF
6333     #line $LINENO "configure"
6334     /* confdefs.h. */
6335     _ACEOF
6336     cat confdefs.h >>conftest.$ac_ext
6337     cat >>conftest.$ac_ext <<_ACEOF
6338     /* end confdefs.h. */
6339     $ac_includes_default
6340     #include <$ac_header>
6341     _ACEOF
6342     rm -f conftest.$ac_objext
6343     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344     (eval $ac_compile) 2>&5
6345     ac_status=$?
6346     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347     (exit $ac_status); } &&
6348     { ac_try='test -s conftest.$ac_objext'
6349     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350     (eval $ac_try) 2>&5
6351     ac_status=$?
6352     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353     (exit $ac_status); }; }; then
6354     ac_header_compiler=yes
6355     else
6356     echo "$as_me: failed program was:" >&5
6357     sed 's/^/| /' conftest.$ac_ext >&5
6358    
6359     ac_header_compiler=no
6360     fi
6361     rm -f conftest.$ac_objext conftest.$ac_ext
6362     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363     echo "${ECHO_T}$ac_header_compiler" >&6
6364    
6365     # Is the header present?
6366     echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6368     cat >conftest.$ac_ext <<_ACEOF
6369     #line $LINENO "configure"
6370     /* confdefs.h. */
6371     _ACEOF
6372     cat confdefs.h >>conftest.$ac_ext
6373     cat >>conftest.$ac_ext <<_ACEOF
6374     /* end confdefs.h. */
6375     #include <$ac_header>
6376     _ACEOF
6377     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6378     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6379     ac_status=$?
6380     grep -v '^ *+' conftest.er1 >conftest.err
6381     rm -f conftest.er1
6382     cat conftest.err >&5
6383     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384     (exit $ac_status); } >/dev/null; then
6385     if test -s conftest.err; then
6386     ac_cpp_err=$ac_c_preproc_warn_flag
6387     else
6388     ac_cpp_err=
6389     fi
6390     else
6391     ac_cpp_err=yes
6392     fi
6393     if test -z "$ac_cpp_err"; then
6394     ac_header_preproc=yes
6395     else
6396     echo "$as_me: failed program was:" >&5
6397     sed 's/^/| /' conftest.$ac_ext >&5
6398    
6399     ac_header_preproc=no
6400     fi
6401     rm -f conftest.err conftest.$ac_ext
6402     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403     echo "${ECHO_T}$ac_header_preproc" >&6
6404    
6405     # So? What about this header?
6406     case $ac_header_compiler:$ac_header_preproc in
6407     yes:no )
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412     (
6413     cat <<\_ASBOX
6414     ## ------------------------------------ ##
6415     ## Report this to bug-autoconf@gnu.org. ##
6416     ## ------------------------------------ ##
6417     _ASBOX
6418     ) |
6419     sed "s/^/$as_me: WARNING: /" >&2
6420     ;;
6421     no:yes )
6422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6427     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6428     (
6429     cat <<\_ASBOX
6430     ## ------------------------------------ ##
6431     ## Report this to bug-autoconf@gnu.org. ##
6432     ## ------------------------------------ ##
6433     _ASBOX
6434     ) |
6435     sed "s/^/$as_me: WARNING: /" >&2
6436     ;;
6437     esac
6438     echo "$as_me:$LINENO: checking for $ac_header" >&5
6439     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441     echo $ECHO_N "(cached) $ECHO_C" >&6
6442     else
6443     eval "$as_ac_Header=$ac_header_preproc"
6444     fi
6445     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447    
6448     fi
6449     if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450     cat >>confdefs.h <<_ACEOF
6451     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452     _ACEOF
6453    
6454     fi
6455    
6456     done
6457    
6458     echo "$as_me:$LINENO: checking types of arguments for select" >&5
6459     echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
6460     if test "${ac_cv_func_select_args+set}" = set; then
6461     echo $ECHO_N "(cached) $ECHO_C" >&6
6462     else
6463     for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6464     for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
6465     for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6466     cat >conftest.$ac_ext <<_ACEOF
6467     #line $LINENO "configure"
6468     /* confdefs.h. */
6469     _ACEOF
6470     cat confdefs.h >>conftest.$ac_ext
6471     cat >>conftest.$ac_ext <<_ACEOF
6472     /* end confdefs.h. */
6473     $ac_includes_default
6474     #if HAVE_SYS_SELECT_H
6475     # include <sys/select.h>
6476     #endif
6477     #if HAVE_SYS_SOCKET_H
6478     # include <sys/socket.h>
6479     #endif
6480    
6481     int
6482     main ()
6483     {
6484     extern int select ($ac_arg1,
6485     $ac_arg234, $ac_arg234, $ac_arg234,
6486     $ac_arg5);
6487     ;
6488     return 0;
6489     }
6490     _ACEOF
6491     rm -f conftest.$ac_objext
6492     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493     (eval $ac_compile) 2>&5
6494     ac_status=$?
6495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496     (exit $ac_status); } &&
6497     { ac_try='test -s conftest.$ac_objext'
6498     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499     (eval $ac_try) 2>&5
6500     ac_status=$?
6501     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502     (exit $ac_status); }; }; then
6503     ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6504     else
6505     echo "$as_me: failed program was:" >&5
6506     sed 's/^/| /' conftest.$ac_ext >&5
6507    
6508     fi
6509     rm -f conftest.$ac_objext conftest.$ac_ext
6510     done
6511     done
6512     done
6513     # Provide a safe default value.
6514     : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6515    
6516     fi
6517     echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6518     echo "${ECHO_T}$ac_cv_func_select_args" >&6
6519     ac_save_IFS=$IFS; IFS=','
6520     set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6521     IFS=$ac_save_IFS
6522     shift
6523    
6524     cat >>confdefs.h <<_ACEOF
6525     #define SELECT_TYPE_ARG1 $1
6526     _ACEOF
6527    
6528    
6529     cat >>confdefs.h <<_ACEOF
6530     #define SELECT_TYPE_ARG234 ($2)
6531     _ACEOF
6532    
6533    
6534     cat >>confdefs.h <<_ACEOF
6535     #define SELECT_TYPE_ARG5 ($3)
6536     _ACEOF
6537    
6538     rm -f conftest*
6539    
6540     echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6541     echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
6542     if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6543     echo $ECHO_N "(cached) $ECHO_C" >&6
6544     else
6545     rm -f conftest.sym conftest.file
6546     echo >conftest.file
6547     if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6548     if test "$cross_compiling" = yes; then
6549     ac_cv_func_lstat_dereferences_slashed_symlink=no
6550     else
6551     cat >conftest.$ac_ext <<_ACEOF
6552     #line $LINENO "configure"
6553     /* confdefs.h. */
6554     _ACEOF
6555     cat confdefs.h >>conftest.$ac_ext
6556     cat >>conftest.$ac_ext <<_ACEOF
6557     /* end confdefs.h. */
6558     $ac_includes_default
6559     int
6560     main ()
6561     {
6562     struct stat sbuf;
6563     /* Linux will dereference the symlink and fail.
6564     That is better in the sense that it means we will not
6565     have to compile and use the lstat wrapper. */
6566     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6567     ;
6568     return 0;
6569     }
6570     _ACEOF
6571     rm -f conftest$ac_exeext
6572     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573     (eval $ac_link) 2>&5
6574     ac_status=$?
6575     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6577     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578     (eval $ac_try) 2>&5
6579     ac_status=$?
6580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581     (exit $ac_status); }; }; then
6582     ac_cv_func_lstat_dereferences_slashed_symlink=yes
6583     else
6584     echo "$as_me: program exited with status $ac_status" >&5
6585     echo "$as_me: failed program was:" >&5
6586     sed 's/^/| /' conftest.$ac_ext >&5
6587    
6588     ( exit $ac_status )
6589     ac_cv_func_lstat_dereferences_slashed_symlink=no
6590     fi
6591     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6592     fi
6593     else
6594     # If the `ln -s' command failed, then we probably don't even
6595     # have an lstat function.
6596     ac_cv_func_lstat_dereferences_slashed_symlink=no
6597     fi
6598     rm -f conftest.sym conftest.file
6599    
6600     fi
6601     echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6602     echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6603    
6604     test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6605    
6606     cat >>confdefs.h <<_ACEOF
6607     #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6608     _ACEOF
6609    
6610    
6611     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
6612     LIBOBJS="$LIBOBJS lstat.$ac_objext"
6613     fi
6614    
6615     echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6616     echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6617     if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6618     echo $ECHO_N "(cached) $ECHO_C" >&6
6619     else
6620     if test "$cross_compiling" = yes; then
6621     ac_cv_func_stat_empty_string_bug=yes
6622     else
6623     cat >conftest.$ac_ext <<_ACEOF
6624     #line $LINENO "configure"
6625     /* confdefs.h. */
6626     _ACEOF
6627     cat confdefs.h >>conftest.$ac_ext
6628     cat >>conftest.$ac_ext <<_ACEOF
6629     /* end confdefs.h. */
6630     $ac_includes_default
6631     int
6632     main ()
6633     {
6634     struct stat sbuf;
6635     exit (stat ("", &sbuf) ? 1 : 0);
6636     ;
6637     return 0;
6638     }
6639     _ACEOF
6640     rm -f conftest$ac_exeext
6641     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642     (eval $ac_link) 2>&5
6643     ac_status=$?
6644     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647     (eval $ac_try) 2>&5
6648     ac_status=$?
6649     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650     (exit $ac_status); }; }; then
6651     ac_cv_func_stat_empty_string_bug=yes
6652     else
6653     echo "$as_me: program exited with status $ac_status" >&5
6654     echo "$as_me: failed program was:" >&5
6655     sed 's/^/| /' conftest.$ac_ext >&5
6656    
6657     ( exit $ac_status )
6658     ac_cv_func_stat_empty_string_bug=no
6659     fi
6660     rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6661     fi
6662     fi
6663     echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6664     echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6665     if test $ac_cv_func_stat_empty_string_bug = yes; then
6666     LIBOBJS="$LIBOBJS stat.$ac_objext"
6667    
6668     cat >>confdefs.h <<_ACEOF
6669     #define HAVE_STAT_EMPTY_STRING_BUG 1
6670     _ACEOF
6671    
6672     fi
6673    
6674    
6675    
6676    
6677    
6678    
6679    
6680    
6681    
6682    
6683    
6684    
6685    
6686    
6687    
6688    
6689    
6690    
6691    
6692     for ac_func in bzero dup2 getcwd gethostbyname gethostname inet_ntoa memmove memset mkfifo select setenv socket strchr strdup strerror strndup strstr uname
6693     do
6694     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6695     echo "$as_me:$LINENO: checking for $ac_func" >&5
6696     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6697     if eval "test \"\${$as_ac_var+set}\" = set"; then
6698     echo $ECHO_N "(cached) $ECHO_C" >&6
6699     else
6700     cat >conftest.$ac_ext <<_ACEOF
6701     #line $LINENO "configure"
6702     /* confdefs.h. */
6703     _ACEOF
6704     cat confdefs.h >>conftest.$ac_ext
6705     cat >>conftest.$ac_ext <<_ACEOF
6706     /* end confdefs.h. */
6707     /* System header to define __stub macros and hopefully few prototypes,
6708     which can conflict with char $ac_func (); below.
6709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710     <limits.h> exists even on freestanding compilers. */
6711     #ifdef __STDC__
6712     # include <limits.h>
6713     #else
6714     # include <assert.h>
6715     #endif
6716     /* Override any gcc2 internal prototype to avoid an error. */
6717     #ifdef __cplusplus
6718     extern "C"
6719     {
6720     #endif
6721     /* We use char because int might match the return type of a gcc2
6722     builtin and then its argument prototype would still apply. */
6723     char $ac_func ();
6724     /* The GNU C library defines this for functions which it implements
6725     to always fail with ENOSYS. Some functions are actually named
6726     something starting with __ and the normal name is an alias. */
6727     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6728     choke me
6729     #else
6730     char (*f) () = $ac_func;
6731     #endif
6732     #ifdef __cplusplus
6733     }
6734     #endif
6735    
6736     int
6737     main ()
6738     {
6739     return f != $ac_func;
6740     ;
6741     return 0;
6742     }
6743     _ACEOF
6744     rm -f conftest.$ac_objext conftest$ac_exeext
6745     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746     (eval $ac_link) 2>&5
6747     ac_status=$?
6748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749     (exit $ac_status); } &&
6750     { ac_try='test -s conftest$ac_exeext'
6751     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752     (eval $ac_try) 2>&5
6753     ac_status=$?
6754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755     (exit $ac_status); }; }; then
6756     eval "$as_ac_var=yes"
6757     else
6758     echo "$as_me: failed program was:" >&5
6759     sed 's/^/| /' conftest.$ac_ext >&5
6760    
6761     eval "$as_ac_var=no"
6762     fi
6763     rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6764     fi
6765     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6766     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6767     if test `eval echo '${'$as_ac_var'}'` = yes; then
6768     cat >>confdefs.h <<_ACEOF
6769     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6770     _ACEOF
6771    
6772     fi
6773     done
6774    
6775    
6776 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"
6777 gcodispo 1.1
6778    
6779     ac_config_commands="$ac_config_commands install"
6780    
6781    
6782     cat >confcache <<\_ACEOF
6783     # This file is a shell script that caches the results of configure
6784     # tests run on this system so they can be shared between configure
6785     # scripts and configure runs, see configure's option --config-cache.
6786     # It is not useful on other systems. If it contains results you don't
6787     # want to keep, you may remove or edit it.
6788     #
6789     # config.status only pays attention to the cache file if you give it
6790     # the --recheck option to rerun configure.
6791     #
6792     # `ac_cv_env_foo' variables (set or unset) will be overridden when
6793     # loading this file, other *unset* `ac_cv_foo' will be assigned the
6794     # following values.
6795    
6796     _ACEOF
6797    
6798     # The following way of writing the cache mishandles newlines in values,
6799     # but we know of no workaround that is simple, portable, and efficient.
6800     # So, don't put newlines in cache variables' values.
6801     # Ultrix sh set writes to stderr and can't be redirected directly,
6802     # and sets the high bit in the cache file unless we assign to the vars.
6803     {
6804     (set) 2>&1 |
6805     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6806     *ac_space=\ *)
6807     # `set' does not quote correctly, so add quotes (double-quote
6808     # substitution turns \\\\ into \\, and sed turns \\ into \).
6809     sed -n \
6810     "s/'/'\\\\''/g;
6811     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6812     ;;
6813     *)
6814     # `set' quotes correctly as required by POSIX, so do not add quotes.
6815     sed -n \
6816     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6817     ;;
6818     esac;
6819     } |
6820     sed '
6821     t clear
6822     : clear
6823     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6824     t end
6825     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6826     : end' >>confcache
6827     if diff $cache_file confcache >/dev/null 2>&1; then :; else
6828     if test -w $cache_file; then
6829     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6830     cat confcache >$cache_file
6831     else
6832     echo "not updating unwritable cache $cache_file"
6833     fi
6834     fi
6835     rm -f confcache
6836    
6837     test "x$prefix" = xNONE && prefix=$ac_default_prefix
6838     # Let make expand exec_prefix.
6839     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6840    
6841     # VPATH may cause trouble with some makes, so we remove $(srcdir),
6842     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6843     # trailing colons and then remove the whole line if VPATH becomes empty
6844     # (actually we leave an empty line to preserve line numbers).
6845     if test "x$srcdir" = x.; then
6846     ac_vpsub='/^[ ]*VPATH[ ]*=/{
6847     s/:*\$(srcdir):*/:/;
6848     s/:*\${srcdir}:*/:/;
6849     s/:*@srcdir@:*/:/;
6850     s/^\([^=]*=[ ]*\):*/\1/;
6851     s/:*$//;
6852     s/^[^=]*=[ ]*$//;
6853     }'
6854     fi
6855    
6856     DEFS=-DHAVE_CONFIG_H
6857    
6858     ac_libobjs=
6859     ac_ltlibobjs=
6860     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6861     # 1. Remove the extension, and $U if already installed.
6862     ac_i=`echo "$ac_i" |
6863     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6864     # 2. Add them.
6865     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6866     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6867     done
6868     LIBOBJS=$ac_libobjs
6869    
6870     LTLIBOBJS=$ac_ltlibobjs
6871    
6872    
6873    
6874     : ${CONFIG_STATUS=./config.status}
6875     ac_clean_files_save=$ac_clean_files
6876     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6877     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6878     echo "$as_me: creating $CONFIG_STATUS" >&6;}
6879     cat >$CONFIG_STATUS <<_ACEOF
6880     #! $SHELL
6881     # Generated by $as_me.
6882     # Run this file to recreate the current configuration.
6883     # Compiler output produced by configure, useful for debugging
6884     # configure, is in config.log if it exists.
6885    
6886     debug=false
6887     ac_cs_recheck=false
6888     ac_cs_silent=false
6889     SHELL=\${CONFIG_SHELL-$SHELL}
6890     _ACEOF
6891    
6892     cat >>$CONFIG_STATUS <<\_ACEOF
6893     ## --------------------- ##
6894     ## M4sh Initialization. ##
6895     ## --------------------- ##
6896    
6897     # Be Bourne compatible
6898     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6899     emulate sh
6900     NULLCMD=:
6901     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6902     # is contrary to our usage. Disable this feature.
6903     alias -g '${1+"$@"}'='"$@"'
6904     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6905     set -o posix
6906     fi
6907    
6908     # Support unset when possible.
6909     if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6910     as_unset=unset
6911     else
6912     as_unset=false
6913     fi
6914    
6915    
6916     # Work around bugs in pre-3.0 UWIN ksh.
6917     $as_unset ENV MAIL MAILPATH
6918     PS1='$ '
6919     PS2='> '
6920     PS4='+ '
6921    
6922     # NLS nuisances.
6923     for as_var in \
6924     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6925     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6926     LC_TELEPHONE LC_TIME
6927     do
6928     if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6929     eval $as_var=C; export $as_var
6930     else
6931     $as_unset $as_var
6932     fi
6933     done
6934    
6935     # Required to use basename.
6936     if expr a : '\(a\)' >/dev/null 2>&1; then
6937     as_expr=expr
6938     else
6939     as_expr=false
6940     fi
6941    
6942     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6943     as_basename=basename
6944     else
6945     as_basename=false
6946     fi
6947    
6948    
6949     # Name of the executable.
6950     as_me=`$as_basename "$0" ||
6951     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6952     X"$0" : 'X\(//\)$' \| \
6953     X"$0" : 'X\(/\)$' \| \
6954     . : '\(.\)' 2>/dev/null ||
6955     echo X/"$0" |
6956     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6957     /^X\/\(\/\/\)$/{ s//\1/; q; }
6958     /^X\/\(\/\).*/{ s//\1/; q; }
6959     s/.*/./; q'`
6960    
6961    
6962     # PATH needs CR, and LINENO needs CR and PATH.
6963     # Avoid depending upon Character Ranges.
6964     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6965     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6966     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6967     as_cr_digits='0123456789'
6968     as_cr_alnum=$as_cr_Letters$as_cr_digits
6969    
6970     # The user is always right.
6971     if test "${PATH_SEPARATOR+set}" != set; then
6972     echo "#! /bin/sh" >conf$$.sh
6973     echo "exit 0" >>conf$$.sh
6974     chmod +x conf$$.sh
6975     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6976     PATH_SEPARATOR=';'
6977     else
6978     PATH_SEPARATOR=:
6979     fi
6980     rm -f conf$$.sh
6981     fi
6982    
6983    
6984     as_lineno_1=$LINENO
6985     as_lineno_2=$LINENO
6986     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6987     test "x$as_lineno_1" != "x$as_lineno_2" &&
6988     test "x$as_lineno_3" = "x$as_lineno_2" || {
6989     # Find who we are. Look in the path if we contain no path at all
6990     # relative or not.
6991     case $0 in
6992     *[\\/]* ) as_myself=$0 ;;
6993     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994     for as_dir in $PATH
6995     do
6996     IFS=$as_save_IFS
6997     test -z "$as_dir" && as_dir=.
6998     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6999     done
7000    
7001     ;;
7002     esac
7003     # We did not find ourselves, most probably we were run as `sh COMMAND'
7004     # in which case we are not to be found in the path.
7005     if test "x$as_myself" = x; then
7006     as_myself=$0
7007     fi
7008     if test ! -f "$as_myself"; then
7009     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7010     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7011     { (exit 1); exit 1; }; }
7012     fi
7013     case $CONFIG_SHELL in
7014     '')
7015     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7017     do
7018     IFS=$as_save_IFS
7019     test -z "$as_dir" && as_dir=.
7020     for as_base in sh bash ksh sh5; do
7021     case $as_dir in
7022     /*)
7023     if ("$as_dir/$as_base" -c '
7024     as_lineno_1=$LINENO
7025     as_lineno_2=$LINENO
7026     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7027     test "x$as_lineno_1" != "x$as_lineno_2" &&
7028     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7029     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7030     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7031     CONFIG_SHELL=$as_dir/$as_base
7032     export CONFIG_SHELL
7033     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7034     fi;;
7035     esac
7036     done
7037     done
7038     ;;
7039     esac
7040    
7041     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7042     # uniformly replaced by the line number. The first 'sed' inserts a
7043     # line-number line before each line; the second 'sed' does the real
7044     # work. The second script uses 'N' to pair each line-number line
7045     # with the numbered line, and appends trailing '-' during
7046     # substitution so that $LINENO is not a special case at line end.
7047     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7048     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7049     sed '=' <$as_myself |
7050     sed '
7051     N
7052     s,$,-,
7053     : loop
7054     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7055     t loop
7056     s,-$,,
7057     s,^['$as_cr_digits']*\n,,
7058     ' >$as_me.lineno &&
7059     chmod +x $as_me.lineno ||
7060     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7061     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7062     { (exit 1); exit 1; }; }
7063    
7064     # Don't try to exec as it changes $[0], causing all sort of problems
7065     # (the dirname of $[0] is not the place where we might find the
7066     # original and so on. Autoconf is especially sensible to this).
7067     . ./$as_me.lineno
7068     # Exit status is that of the last command.
7069     exit
7070     }
7071    
7072    
7073     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7074     *c*,-n*) ECHO_N= ECHO_C='
7075     ' ECHO_T=' ' ;;
7076     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7077     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7078     esac
7079    
7080     if expr a : '\(a\)' >/dev/null 2>&1; then
7081     as_expr=expr
7082     else
7083     as_expr=false
7084     fi
7085    
7086     rm -f conf$$ conf$$.exe conf$$.file
7087     echo >conf$$.file
7088     if ln -s conf$$.file conf$$ 2>/dev/null; then
7089     # We could just check for DJGPP; but this test a) works b) is more generic
7090     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7091     if test -f conf$$.exe; then
7092     # Don't use ln at all; we don't have any links
7093     as_ln_s='cp -p'
7094     else
7095     as_ln_s='ln -s'
7096     fi
7097     elif ln conf$$.file conf$$ 2>/dev/null; then
7098     as_ln_s=ln
7099     else
7100     as_ln_s='cp -p'
7101     fi
7102     rm -f conf$$ conf$$.exe conf$$.file
7103    
7104     if mkdir -p . 2>/dev/null; then
7105     as_mkdir_p=:
7106     else
7107     as_mkdir_p=false
7108     fi
7109    
7110     as_executable_p="test -f"
7111    
7112     # Sed expression to map a string onto a valid CPP name.
7113     as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7114    
7115     # Sed expression to map a string onto a valid variable name.
7116     as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7117    
7118    
7119     # IFS
7120     # We need space, tab and new line, in precisely that order.
7121     as_nl='
7122     '
7123     IFS=" $as_nl"
7124    
7125     # CDPATH.
7126     $as_unset CDPATH
7127    
7128     exec 6>&1
7129    
7130     # Open the log real soon, to keep \$[0] and so on meaningful, and to
7131     # report actual input values of CONFIG_FILES etc. instead of their
7132     # values after options handling. Logging --version etc. is OK.
7133     exec 5>>config.log
7134     {
7135     echo
7136     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7137     ## Running $as_me. ##
7138     _ASBOX
7139     } >&5
7140     cat >&5 <<_CSEOF
7141    
7142 gcodispo 1.5 This file was extended by boss $as_me `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`, which was
7143 gcodispo 1.1 generated by GNU Autoconf 2.57. Invocation command line was
7144    
7145     CONFIG_FILES = $CONFIG_FILES
7146     CONFIG_HEADERS = $CONFIG_HEADERS
7147     CONFIG_LINKS = $CONFIG_LINKS
7148     CONFIG_COMMANDS = $CONFIG_COMMANDS
7149     $ $0 $@
7150    
7151     _CSEOF
7152     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7153     echo >&5
7154     _ACEOF
7155    
7156     # Files that config.status was made for.
7157     if test -n "$ac_config_files"; then
7158     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7159     fi
7160    
7161     if test -n "$ac_config_headers"; then
7162     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7163     fi
7164    
7165     if test -n "$ac_config_links"; then
7166     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7167     fi
7168    
7169     if test -n "$ac_config_commands"; then
7170     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7171     fi
7172    
7173     cat >>$CONFIG_STATUS <<\_ACEOF
7174    
7175     ac_cs_usage="\
7176     \`$as_me' instantiates files from templates according to the
7177     current configuration.
7178    
7179     Usage: $0 [OPTIONS] [FILE]...
7180    
7181     -h, --help print this help, then exit
7182     -V, --version print version number, then exit
7183     -q, --quiet do not print progress messages
7184     -d, --debug don't remove temporary files
7185     --recheck update $as_me by reconfiguring in the same conditions
7186     --file=FILE[:TEMPLATE]
7187     instantiate the configuration file FILE
7188     --header=FILE[:TEMPLATE]
7189     instantiate the configuration header FILE
7190    
7191     Configuration files:
7192     $config_files
7193    
7194     Configuration headers:
7195     $config_headers
7196    
7197     Configuration commands:
7198     $config_commands
7199    
7200     Report bugs to <bug-autoconf@gnu.org>."
7201     _ACEOF
7202    
7203     cat >>$CONFIG_STATUS <<_ACEOF
7204     ac_cs_version="\\
7205 gcodispo 1.5 boss config.status `tail -1 ./VERSION | sed 's/_/./g' | sed 's/^0-9.//g'`
7206 gcodispo 1.1 configured by $0, generated by GNU Autoconf 2.57,
7207     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7208    
7209     Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7210     Free Software Foundation, Inc.
7211     This config.status script is free software; the Free Software Foundation
7212     gives unlimited permission to copy, distribute and modify it."
7213     srcdir=$srcdir
7214     _ACEOF
7215    
7216     cat >>$CONFIG_STATUS <<\_ACEOF
7217     # If no file are specified by the user, then we need to provide default
7218     # value. By we need to know if files were specified by the user.
7219     ac_need_defaults=:
7220     while test $# != 0
7221     do
7222     case $1 in
7223     --*=*)
7224     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7225     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7226     ac_shift=:
7227     ;;
7228     -*)
7229     ac_option=$1
7230     ac_optarg=$2
7231     ac_shift=shift
7232     ;;
7233     *) # This is not an option, so the user has probably given explicit
7234     # arguments.
7235     ac_option=$1
7236     ac_need_defaults=false;;
7237     esac
7238    
7239     case $ac_option in
7240     # Handling of the options.
7241     _ACEOF
7242     cat >>$CONFIG_STATUS <<\_ACEOF
7243     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7244     ac_cs_recheck=: ;;
7245     --version | --vers* | -V )
7246     echo "$ac_cs_version"; exit 0 ;;
7247     --he | --h)
7248     # Conflict between --help and --header
7249     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7250     Try \`$0 --help' for more information." >&5
7251     echo "$as_me: error: ambiguous option: $1
7252     Try \`$0 --help' for more information." >&2;}
7253     { (exit 1); exit 1; }; };;
7254     --help | --hel | -h )
7255     echo "$ac_cs_usage"; exit 0 ;;
7256     --debug | --d* | -d )
7257     debug=: ;;
7258     --file | --fil | --fi | --f )
7259     $ac_shift
7260     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7261     ac_need_defaults=false;;
7262     --header | --heade | --head | --hea )
7263     $ac_shift
7264     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7265     ac_need_defaults=false;;
7266     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7267     | -silent | --silent | --silen | --sile | --sil | --si | --s)
7268     ac_cs_silent=: ;;
7269    
7270     # This is an error.
7271     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7272     Try \`$0 --help' for more information." >&5
7273     echo "$as_me: error: unrecognized option: $1
7274     Try \`$0 --help' for more information." >&2;}
7275     { (exit 1); exit 1; }; } ;;
7276    
7277     *) ac_config_targets="$ac_config_targets $1" ;;
7278    
7279     esac
7280     shift
7281     done
7282    
7283     ac_configure_extra_args=
7284    
7285     if $ac_cs_silent; then
7286     exec 6>/dev/null
7287     ac_configure_extra_args="$ac_configure_extra_args --silent"
7288     fi
7289    
7290     _ACEOF
7291     cat >>$CONFIG_STATUS <<_ACEOF
7292     if \$ac_cs_recheck; then
7293     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7294     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7295     fi
7296    
7297     _ACEOF
7298    
7299    
7300    
7301    
7302    
7303     cat >>$CONFIG_STATUS <<\_ACEOF
7304     for ac_config_target in $ac_config_targets
7305     do
7306     case "$ac_config_target" in
7307     # Handling of arguments.
7308     "BossClient/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/Makefile" ;;
7309     "BossClient/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossClient/src/Makefile" ;;
7310     "BossCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/Makefile" ;;
7311     "BossCore/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossCore/src/Makefile" ;;
7312     "BossPython/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossPython/Makefile" ;;
7313     "BossRTMon/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/Makefile" ;;
7314     "BossRTMon/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossRTMon/src/Makefile" ;;
7315     "BossSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/Makefile" ;;
7316     "BossSched/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossSched/src/Makefile" ;;
7317     "BossWrapper/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/Makefile" ;;
7318     "BossWrapper/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES BossWrapper/src/Makefile" ;;
7319     "ClassAdLite/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/Makefile" ;;
7320     "ClassAdLite/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/src/Makefile" ;;
7321     "ClassAdLite/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ClassAdLite/test/Makefile" ;;
7322     "Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
7323     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7324     "OSUtils/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/Makefile" ;;
7325     "OSUtils/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/src/Makefile" ;;
7326     "OSUtils/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES OSUtils/test/Makefile" ;;
7327     "SirDB/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/Makefile" ;;
7328     "SirDB/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES SirDB/src/Makefile" ;;
7329     "install.sh" ) CONFIG_FILES="$CONFIG_FILES install.sh" ;;
7330     "install" ) CONFIG_COMMANDS="$CONFIG_COMMANDS install" ;;
7331     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7332     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7333     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7334     { (exit 1); exit 1; }; };;
7335     esac
7336     done
7337    
7338     # If the user did not use the arguments to specify the items to instantiate,
7339     # then the envvar interface is used. Set only those that are not.
7340     # We use the long form for the default assignment because of an extremely
7341     # bizarre bug on SunOS 4.1.3.
7342     if $ac_need_defaults; then
7343     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7344     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7345     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7346     fi
7347    
7348     # Have a temporary directory for convenience. Make it in the build tree
7349     # simply because there is no reason to put it here, and in addition,
7350     # creating and moving files from /tmp can sometimes cause problems.
7351     # Create a temporary directory, and hook for its removal unless debugging.
7352     $debug ||
7353     {
7354     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7355     trap '{ (exit 1); exit 1; }' 1 2 13 15
7356     }
7357    
7358     # Create a (secure) tmp directory for tmp files.
7359    
7360     {
7361     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7362     test -n "$tmp" && test -d "$tmp"
7363     } ||
7364     {
7365     tmp=./confstat$$-$RANDOM
7366     (umask 077 && mkdir $tmp)
7367     } ||
7368     {
7369     echo "$me: cannot create a temporary directory in ." >&2
7370     { (exit 1); exit 1; }
7371     }
7372    
7373     _ACEOF
7374    
7375     cat >>$CONFIG_STATUS <<_ACEOF
7376    
7377     #
7378     # CONFIG_FILES section.
7379     #
7380    
7381     # No need to generate the scripts if there are no CONFIG_FILES.
7382     # This happens for instance when ./config.status config.h
7383     if test -n "\$CONFIG_FILES"; then
7384     # Protect against being on the right side of a sed subst in config.status.
7385     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7386     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7387     s,@SHELL@,$SHELL,;t t
7388     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7389     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7390     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7391     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7392     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7393     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7394     s,@exec_prefix@,$exec_prefix,;t t
7395     s,@prefix@,$prefix,;t t
7396     s,@program_transform_name@,$program_transform_name,;t t
7397     s,@bindir@,$bindir,;t t
7398     s,@sbindir@,$sbindir,;t t
7399     s,@libexecdir@,$libexecdir,;t t
7400     s,@datadir@,$datadir,;t t
7401     s,@sysconfdir@,$sysconfdir,;t t
7402     s,@sharedstatedir@,$sharedstatedir,;t t
7403     s,@localstatedir@,$localstatedir,;t t
7404     s,@libdir@,$libdir,;t t
7405     s,@includedir@,$includedir,;t t
7406     s,@oldincludedir@,$oldincludedir,;t t
7407     s,@infodir@,$infodir,;t t
7408     s,@mandir@,$mandir,;t t
7409     s,@build_alias@,$build_alias,;t t
7410     s,@host_alias@,$host_alias,;t t
7411     s,@target_alias@,$target_alias,;t t
7412     s,@DEFS@,$DEFS,;t t
7413     s,@ECHO_C@,$ECHO_C,;t t
7414     s,@ECHO_N@,$ECHO_N,;t t
7415     s,@ECHO_T@,$ECHO_T,;t t
7416     s,@LIBS@,$LIBS,;t t
7417     s,@VERSION@,$VERSION,;t t
7418 gcodispo 1.5 s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
7419 gcodispo 1.1 s,@CXX@,$CXX,;t t
7420     s,@CXXFLAGS@,$CXXFLAGS,;t t
7421     s,@LDFLAGS@,$LDFLAGS,;t t
7422     s,@CPPFLAGS@,$CPPFLAGS,;t t
7423     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7424     s,@EXEEXT@,$EXEEXT,;t t
7425     s,@OBJEXT@,$OBJEXT,;t t
7426     s,@CC@,$CC,;t t
7427     s,@CFLAGS@,$CFLAGS,;t t
7428     s,@ac_ct_CC@,$ac_ct_CC,;t t
7429     s,@CPP@,$CPP,;t t
7430 gcodispo 1.4 s,@ARCH@,$ARCH,;t t
7431     s,@RELEASE@,$RELEASE,;t t
7432     s,@GCC_VERSION@,$GCC_VERSION,;t t
7433     s,@SYSTEM@,$SYSTEM,;t t
7434 gcodispo 1.7 s,@mysql_dir@,$mysql_dir,;t t
7435     s,@MAKE_MYSQL@,$MAKE_MYSQL,;t t
7436     s,@MAKE_MYSQL_CLEAN@,$MAKE_MYSQL_CLEAN,;t t
7437 gcodispo 1.8 s,@mysql@,$mysql,;t t
7438     s,@mysql_lib@,$mysql_lib,;t t
7439     s,@mysql_inc@,$mysql_inc,;t t
7440 gcodispo 1.7 s,@ssl_lib@,$ssl_lib,;t t
7441 gcodispo 1.5 s,@sqlite_dir@,$sqlite_dir,;t t
7442 gcodispo 1.1 s,@MAKE_SQLITE@,$MAKE_SQLITE,;t t
7443     s,@MAKE_SQLITE_CLEAN@,$MAKE_SQLITE_CLEAN,;t t
7444 gcodispo 1.8 s,@sqlite@,$sqlite,;t t
7445 gcodispo 1.1 s,@sqlite_lib@,$sqlite_lib,;t t
7446 gcodispo 1.8 s,@sqlite_inc@,$sqlite_inc,;t t
7447     s,@monalisa_dir@,$monalisa_dir,;t t
7448     s,@MAKE_MONALISA@,$MAKE_MONALISA,;t t
7449     s,@MAKE_MONALISA_CLEAN@,$MAKE_MONALISA_CLEAN,;t t
7450     s,@monalisa@,$monalisa,;t t
7451     s,@monalisa_lib@,$monalisa_lib,;t t
7452     s,@monalisa_inc@,$monalisa_inc,;t t
7453     s,@clarens_dir@,$clarens_dir,;t t
7454     s,@clarens@,$clarens,;t t
7455     s,@clarens_lib@,$clarens_lib,;t t
7456     s,@clarens_inc@,$clarens_inc,;t t
7457 gcodispo 1.1 s,@EGREP@,$EGREP,;t t
7458     s,@LIBOBJS@,$LIBOBJS,;t t
7459     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7460     CEOF
7461    
7462     _ACEOF
7463    
7464     cat >>$CONFIG_STATUS <<\_ACEOF
7465     # Split the substitutions into bite-sized pieces for seds with
7466     # small command number limits, like on Digital OSF/1 and HP-UX.
7467     ac_max_sed_lines=48
7468     ac_sed_frag=1 # Number of current file.
7469     ac_beg=1 # First line for current file.
7470     ac_end=$ac_max_sed_lines # Line after last line for current file.
7471     ac_more_lines=:
7472     ac_sed_cmds=
7473     while $ac_more_lines; do
7474     if test $ac_beg -gt 1; then
7475     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7476     else
7477     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7478     fi
7479     if test ! -s $tmp/subs.frag; then
7480     ac_more_lines=false
7481     else
7482     # The purpose of the label and of the branching condition is to
7483     # speed up the sed processing (if there are no `@' at all, there
7484     # is no need to browse any of the substitutions).
7485     # These are the two extra sed commands mentioned above.
7486     (echo ':t
7487     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7488     if test -z "$ac_sed_cmds"; then
7489     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7490     else
7491     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7492     fi
7493     ac_sed_frag=`expr $ac_sed_frag + 1`
7494     ac_beg=$ac_end
7495     ac_end=`expr $ac_end + $ac_max_sed_lines`
7496     fi
7497     done
7498     if test -z "$ac_sed_cmds"; then
7499     ac_sed_cmds=cat
7500     fi
7501     fi # test -n "$CONFIG_FILES"
7502    
7503     _ACEOF
7504     cat >>$CONFIG_STATUS <<\_ACEOF
7505     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7506     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7507     case $ac_file in
7508     - | *:- | *:-:* ) # input from stdin
7509     cat >$tmp/stdin
7510     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7511     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7512     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7513     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7514     * ) ac_file_in=$ac_file.in ;;
7515     esac
7516    
7517     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7518     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7519     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7520     X"$ac_file" : 'X\(//\)[^/]' \| \
7521     X"$ac_file" : 'X\(//\)$' \| \
7522     X"$ac_file" : 'X\(/\)' \| \
7523     . : '\(.\)' 2>/dev/null ||
7524     echo X"$ac_file" |
7525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7526     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7527     /^X\(\/\/\)$/{ s//\1/; q; }
7528     /^X\(\/\).*/{ s//\1/; q; }
7529     s/.*/./; q'`
7530     { if $as_mkdir_p; then
7531     mkdir -p "$ac_dir"
7532     else
7533     as_dir="$ac_dir"
7534     as_dirs=
7535     while test ! -d "$as_dir"; do
7536     as_dirs="$as_dir $as_dirs"
7537     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7538     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7539     X"$as_dir" : 'X\(//\)[^/]' \| \
7540     X"$as_dir" : 'X\(//\)$' \| \
7541     X"$as_dir" : 'X\(/\)' \| \
7542     . : '\(.\)' 2>/dev/null ||
7543     echo X"$as_dir" |
7544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7545     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7546     /^X\(\/\/\)$/{ s//\1/; q; }
7547     /^X\(\/\).*/{ s//\1/; q; }
7548     s/.*/./; q'`
7549     done
7550     test ! -n "$as_dirs" || mkdir $as_dirs
7551     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7552     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7553     { (exit 1); exit 1; }; }; }
7554    
7555     ac_builddir=.
7556    
7557     if test "$ac_dir" != .; then
7558     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7559     # A "../" for each directory in $ac_dir_suffix.
7560     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7561     else
7562     ac_dir_suffix= ac_top_builddir=
7563     fi
7564    
7565     case $srcdir in
7566     .) # No --srcdir option. We are building in place.
7567     ac_srcdir=.
7568     if test -z "$ac_top_builddir"; then
7569     ac_top_srcdir=.
7570     else
7571     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7572     fi ;;
7573     [\\/]* | ?:[\\/]* ) # Absolute path.
7574     ac_srcdir=$srcdir$ac_dir_suffix;
7575     ac_top_srcdir=$srcdir ;;
7576     *) # Relative path.
7577     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7578     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7579     esac
7580     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7581     # absolute.
7582     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7583     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7584     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7585     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7586    
7587    
7588    
7589     if test x"$ac_file" != x-; then
7590     { echo "$as_me:$LINENO: creating $ac_file" >&5
7591     echo "$as_me: creating $ac_file" >&6;}
7592     rm -f "$ac_file"
7593     fi
7594     # Let's still pretend it is `configure' which instantiates (i.e., don't
7595     # use $as_me), people would be surprised to read:
7596     # /* config.h. Generated by config.status. */
7597     if test x"$ac_file" = x-; then
7598     configure_input=
7599     else
7600     configure_input="$ac_file. "
7601     fi
7602     configure_input=$configure_input"Generated from `echo $ac_file_in |
7603     sed 's,.*/,,'` by configure."
7604    
7605     # First look for the input files in the build tree, otherwise in the
7606     # src tree.
7607     ac_file_inputs=`IFS=:
7608     for f in $ac_file_in; do
7609     case $f in
7610     -) echo $tmp/stdin ;;
7611     [\\/$]*)
7612     # Absolute (can't be DOS-style, as IFS=:)
7613     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7614     echo "$as_me: error: cannot find input file: $f" >&2;}
7615     { (exit 1); exit 1; }; }
7616     echo $f;;
7617     *) # Relative
7618     if test -f "$f"; then
7619     # Build tree
7620     echo $f
7621     elif test -f "$srcdir/$f"; then
7622     # Source tree
7623     echo $srcdir/$f
7624     else
7625     # /dev/null tree
7626     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7627     echo "$as_me: error: cannot find input file: $f" >&2;}
7628     { (exit 1); exit 1; }; }
7629     fi;;
7630     esac
7631     done` || { (exit 1); exit 1; }
7632     _ACEOF
7633     cat >>$CONFIG_STATUS <<_ACEOF
7634     sed "$ac_vpsub
7635     $extrasub
7636     _ACEOF
7637     cat >>$CONFIG_STATUS <<\_ACEOF
7638     :t
7639     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7640     s,@configure_input@,$configure_input,;t t
7641     s,@srcdir@,$ac_srcdir,;t t
7642     s,@abs_srcdir@,$ac_abs_srcdir,;t t
7643     s,@top_srcdir@,$ac_top_srcdir,;t t
7644     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7645     s,@builddir@,$ac_builddir,;t t
7646     s,@abs_builddir@,$ac_abs_builddir,;t t
7647     s,@top_builddir@,$ac_top_builddir,;t t
7648     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7649     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7650     rm -f $tmp/stdin
7651     if test x"$ac_file" != x-; then
7652     mv $tmp/out $ac_file
7653     else
7654     cat $tmp/out
7655     rm -f $tmp/out
7656     fi
7657    
7658     done
7659     _ACEOF
7660     cat >>$CONFIG_STATUS <<\_ACEOF
7661    
7662     #
7663     # CONFIG_HEADER section.
7664     #
7665    
7666     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7667     # NAME is the cpp macro being defined and VALUE is the value it is being given.
7668     #
7669     # ac_d sets the value in "#define NAME VALUE" lines.
7670     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7671     ac_dB='[ ].*$,\1#\2'
7672     ac_dC=' '
7673     ac_dD=',;t'
7674     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7675     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7676     ac_uB='$,\1#\2define\3'
7677     ac_uC=' '
7678     ac_uD=',;t'
7679    
7680     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7681     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7682     case $ac_file in
7683     - | *:- | *:-:* ) # input from stdin
7684     cat >$tmp/stdin
7685     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7686     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7687     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7688     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7689     * ) ac_file_in=$ac_file.in ;;
7690     esac
7691    
7692     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7693     echo "$as_me: creating $ac_file" >&6;}
7694    
7695     # First look for the input files in the build tree, otherwise in the
7696     # src tree.
7697     ac_file_inputs=`IFS=:
7698     for f in $ac_file_in; do
7699     case $f in
7700     -) echo $tmp/stdin ;;
7701     [\\/$]*)
7702     # Absolute (can't be DOS-style, as IFS=:)
7703     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7704     echo "$as_me: error: cannot find input file: $f" >&2;}
7705     { (exit 1); exit 1; }; }
7706     echo $f;;
7707     *) # Relative
7708     if test -f "$f"; then
7709     # Build tree
7710     echo $f
7711     elif test -f "$srcdir/$f"; then
7712     # Source tree
7713     echo $srcdir/$f
7714     else
7715     # /dev/null tree
7716     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7717     echo "$as_me: error: cannot find input file: $f" >&2;}
7718     { (exit 1); exit 1; }; }
7719     fi;;
7720     esac
7721     done` || { (exit 1); exit 1; }
7722     # Remove the trailing spaces.
7723     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7724    
7725     _ACEOF
7726    
7727     # Transform confdefs.h into two sed scripts, `conftest.defines' and
7728     # `conftest.undefs', that substitutes the proper values into
7729     # config.h.in to produce config.h. The first handles `#define'
7730     # templates, and the second `#undef' templates.
7731     # And first: Protect against being on the right side of a sed subst in
7732     # config.status. Protect against being in an unquoted here document
7733     # in config.status.
7734     rm -f conftest.defines conftest.undefs
7735     # Using a here document instead of a string reduces the quoting nightmare.
7736     # Putting comments in sed scripts is not portable.
7737     #
7738     # `end' is used to avoid that the second main sed command (meant for
7739     # 0-ary CPP macros) applies to n-ary macro definitions.
7740     # See the Autoconf documentation for `clear'.
7741     cat >confdef2sed.sed <<\_ACEOF
7742     s/[\\&,]/\\&/g
7743     s,[\\$`],\\&,g
7744     t clear
7745     : clear
7746     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7747     t end
7748     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7749     : end
7750     _ACEOF
7751     # If some macros were called several times there might be several times
7752     # the same #defines, which is useless. Nevertheless, we may not want to
7753     # sort them, since we want the *last* AC-DEFINE to be honored.
7754     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7755     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7756     rm -f confdef2sed.sed
7757    
7758     # This sed command replaces #undef with comments. This is necessary, for
7759     # example, in the case of _POSIX_SOURCE, which is predefined and required
7760     # on some systems where configure will not decide to define it.
7761     cat >>conftest.undefs <<\_ACEOF
7762     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7763     _ACEOF
7764    
7765     # Break up conftest.defines because some shells have a limit on the size
7766     # of here documents, and old seds have small limits too (100 cmds).
7767     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7768     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7769     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7770     echo ' :' >>$CONFIG_STATUS
7771     rm -f conftest.tail
7772     while grep . conftest.defines >/dev/null
7773     do
7774     # Write a limited-size here document to $tmp/defines.sed.
7775     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7776     # Speed up: don't consider the non `#define' lines.
7777     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7778     # Work around the forget-to-reset-the-flag bug.
7779     echo 't clr' >>$CONFIG_STATUS
7780     echo ': clr' >>$CONFIG_STATUS
7781     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7782     echo 'CEOF
7783     sed -f $tmp/defines.sed $tmp/in >$tmp/out
7784     rm -f $tmp/in
7785     mv $tmp/out $tmp/in
7786     ' >>$CONFIG_STATUS
7787     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7788     rm -f conftest.defines
7789     mv conftest.tail conftest.defines
7790     done
7791     rm -f conftest.defines
7792     echo ' fi # grep' >>$CONFIG_STATUS
7793     echo >>$CONFIG_STATUS
7794    
7795     # Break up conftest.undefs because some shells have a limit on the size
7796     # of here documents, and old seds have small limits too (100 cmds).
7797     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7798     rm -f conftest.tail
7799     while grep . conftest.undefs >/dev/null
7800     do
7801     # Write a limited-size here document to $tmp/undefs.sed.
7802     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7803     # Speed up: don't consider the non `#undef'
7804     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7805     # Work around the forget-to-reset-the-flag bug.
7806     echo 't clr' >>$CONFIG_STATUS
7807     echo ': clr' >>$CONFIG_STATUS
7808     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7809     echo 'CEOF
7810     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7811     rm -f $tmp/in
7812     mv $tmp/out $tmp/in
7813     ' >>$CONFIG_STATUS
7814     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7815     rm -f conftest.undefs
7816     mv conftest.tail conftest.undefs
7817     done
7818     rm -f conftest.undefs
7819    
7820     cat >>$CONFIG_STATUS <<\_ACEOF
7821     # Let's still pretend it is `configure' which instantiates (i.e., don't
7822     # use $as_me), people would be surprised to read:
7823     # /* config.h. Generated by config.status. */
7824     if test x"$ac_file" = x-; then
7825     echo "/* Generated by configure. */" >$tmp/config.h
7826     else
7827     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7828     fi
7829     cat $tmp/in >>$tmp/config.h
7830     rm -f $tmp/in
7831     if test x"$ac_file" != x-; then
7832     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7833     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7834     echo "$as_me: $ac_file is unchanged" >&6;}
7835     else
7836     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7837     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7838     X"$ac_file" : 'X\(//\)[^/]' \| \
7839     X"$ac_file" : 'X\(//\)$' \| \
7840     X"$ac_file" : 'X\(/\)' \| \
7841     . : '\(.\)' 2>/dev/null ||
7842     echo X"$ac_file" |
7843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7844     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7845     /^X\(\/\/\)$/{ s//\1/; q; }
7846     /^X\(\/\).*/{ s//\1/; q; }
7847     s/.*/./; q'`
7848     { if $as_mkdir_p; then
7849     mkdir -p "$ac_dir"
7850     else
7851     as_dir="$ac_dir"
7852     as_dirs=
7853     while test ! -d "$as_dir"; do
7854     as_dirs="$as_dir $as_dirs"
7855     as_dir=`(dirname "$as_dir") 2>/dev/null ||
7856     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7857     X"$as_dir" : 'X\(//\)[^/]' \| \
7858     X"$as_dir" : 'X\(//\)$' \| \
7859     X"$as_dir" : 'X\(/\)' \| \
7860     . : '\(.\)' 2>/dev/null ||
7861     echo X"$as_dir" |
7862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7863     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7864     /^X\(\/\/\)$/{ s//\1/; q; }
7865     /^X\(\/\).*/{ s//\1/; q; }
7866     s/.*/./; q'`
7867     done
7868     test ! -n "$as_dirs" || mkdir $as_dirs
7869     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7870     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7871     { (exit 1); exit 1; }; }; }
7872    
7873     rm -f $ac_file
7874     mv $tmp/config.h $ac_file
7875     fi
7876     else
7877     cat $tmp/config.h
7878     rm -f $tmp/config.h
7879     fi
7880     done
7881     _ACEOF
7882     cat >>$CONFIG_STATUS <<\_ACEOF
7883    
7884     #
7885     # CONFIG_COMMANDS section.
7886     #
7887     for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7888     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7889     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7890     ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7891     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7892     X"$ac_dest" : 'X\(//\)[^/]' \| \
7893     X"$ac_dest" : 'X\(//\)$' \| \
7894     X"$ac_dest" : 'X\(/\)' \| \
7895     . : '\(.\)' 2>/dev/null ||
7896     echo X"$ac_dest" |
7897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7898     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7899     /^X\(\/\/\)$/{ s//\1/; q; }
7900     /^X\(\/\).*/{ s//\1/; q; }
7901     s/.*/./; q'`
7902     ac_builddir=.
7903    
7904     if test "$ac_dir" != .; then
7905     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7906     # A "../" for each directory in $ac_dir_suffix.
7907     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7908     else
7909     ac_dir_suffix= ac_top_builddir=
7910     fi
7911    
7912     case $srcdir in
7913     .) # No --srcdir option. We are building in place.
7914     ac_srcdir=.
7915     if test -z "$ac_top_builddir"; then
7916     ac_top_srcdir=.
7917     else
7918     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7919     fi ;;
7920     [\\/]* | ?:[\\/]* ) # Absolute path.
7921     ac_srcdir=$srcdir$ac_dir_suffix;
7922     ac_top_srcdir=$srcdir ;;
7923     *) # Relative path.
7924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7926     esac
7927     # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7928     # absolute.
7929     ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7930     ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7931     ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7932     ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7933    
7934    
7935     { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7936     echo "$as_me: executing $ac_dest commands" >&6;}
7937     case $ac_dest in
7938     install ) chmod +x install.sh; ./install.sh ;;
7939     esac
7940     done
7941     _ACEOF
7942    
7943     cat >>$CONFIG_STATUS <<\_ACEOF
7944    
7945     { (exit 0); exit 0; }
7946     _ACEOF
7947     chmod +x $CONFIG_STATUS
7948     ac_clean_files=$ac_clean_files_save
7949    
7950    
7951     # configure is writing to config.log, and then calls config.status.
7952     # config.status does its own redirection, appending to config.log.
7953     # Unfortunately, on DOS this fails, as config.log is still kept open
7954     # by configure, so config.status won't be able to write to it; its
7955     # output is simply discarded. So we exec the FD to /dev/null,
7956     # effectively closing config.log, so it can be properly (re)opened and
7957     # appended to by config.status. When coming back to configure, we
7958     # need to make the FD available again.
7959     if test "$no_create" != yes; then
7960     ac_cs_success=:
7961     ac_config_status_args=
7962     test "$silent" = yes &&
7963     ac_config_status_args="$ac_config_status_args --quiet"
7964     exec 5>/dev/null
7965     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7966     exec 5>>config.log
7967     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7968     # would make configure fail if this is the last instruction.
7969     $ac_cs_success || { (exit 1); exit 1; }
7970     fi
7971