ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.19
Committed: Thu Apr 20 11:13:52 2006 UTC (19 years ago) by gcodispo
Branch: MAIN
CVS Tags: BOSS_4_0_0
Changes since 1.18: +45 -38 lines
Log Message:
fixed path for mysql lib ldd
small upgrade of make install

File Contents

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