ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/configure
Revision: 1.25
Committed: Wed May 3 14:19:56 2006 UTC (18 years, 11 months ago) by gcodispo
Branch: MAIN
CVS Tags: BOSS_4_0_6, BOSS_4_0_5
Changes since 1.24: +222 -22 lines
Log Message:
Added --with-xslt and --with-xml2 options

File Contents

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